/**
 * License limited to a single site, for use on another site please purchase a license for this module.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 *
 * @author    Dingedi.com
 * @copyright Copyright 2025 © Dingedi All right reserved
 * @license   http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
 *
 * @category  Dingedi PrestaShop Modules
 */
(self.webpackChunkdgtranslationall=self.webpackChunkdgtranslationall||[]).push([[96],{45:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8587);function o(e,t){if(null==e)return{};var n,o,a=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},285:(e,t,n)=>{"use strict";n.d(t,{Hd:()=>a,VE:()=>i});var r=n(2650);function o(){var e=r.M.getState();return e.moduleConfig.module_name+e.moduleConfig.module_version+"hide"}function a(e){localStorage.setItem(o()+e,"1")}function i(e){return null!==localStorage.getItem(o()+e)}},296:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7800);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||(0,r.A)(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.")}()}},311:e=>{"use strict";e.exports=function(e,t,n,r,o,a,i,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,i,l],c=0;(s=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},388:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2284);function o(e,t){if(t&&("object"==(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}},467:(e,t,n)=>{"use strict";function r(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,a){var i=e.apply(t,n);function l(e){r(i,o,a,l,s,"next",e)}function s(e){r(i,o,a,l,s,"throw",e)}l(void 0)})}}n.d(t,{A:()=>o})},472:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=n(6540),s=n(6519),u=n(6261),c=n(6754),d=n(4390),f=["bsPrefix","className","variant","as"],p=l.forwardRef(function(e,t){var n=e.bsPrefix,a=e.className,u=e.variant,c=e.as,d=void 0===c?"img":c,p=(0,o.A)(e,f),m=(0,s.oU)(n,"card-img");return l.createElement(d,(0,r.A)({ref:t,className:i()(u?m+"-"+u:m,a)},p))});p.displayName="CardImg",p.defaultProps={variant:null};const m=p;var h=["bsPrefix","className","bg","text","border","body","children","as"],v=(0,c.A)("h5"),g=(0,c.A)("h6"),y=(0,u.A)("card-body"),b=(0,u.A)("card-title",{Component:v}),w=(0,u.A)("card-subtitle",{Component:g}),E=(0,u.A)("card-link",{Component:"a"}),x=(0,u.A)("card-text",{Component:"p"}),k=(0,u.A)("card-header"),S=(0,u.A)("card-footer"),A=(0,u.A)("card-img-overlay"),C=l.forwardRef(function(e,t){var n=e.bsPrefix,a=e.className,u=e.bg,c=e.text,f=e.border,p=e.body,m=e.children,v=e.as,g=void 0===v?"div":v,b=(0,o.A)(e,h),w=(0,s.oU)(n,"card"),E=(0,l.useMemo)(function(){return{cardHeaderBsPrefix:w+"-header"}},[w]);return l.createElement(d.A.Provider,{value:E},l.createElement(g,(0,r.A)({ref:t},b,{className:i()(a,w,u&&"bg-"+u,c&&"text-"+c,f&&"border-"+f)}),p?l.createElement(y,null,m):m))});C.displayName="Card",C.defaultProps={body:!1},C.Img=m,C.Title=b,C.Subtitle=w,C.Body=y,C.Link=E,C.Text=x,C.Header=k,C.Footer=S,C.ImgOverlay=A;const _=C},494:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=n(6540),s=n(9703),u=n(1942),c=(n(9771),n(3559)),d=n(5724),f=["active","className","eventKey","onSelect","onClick","as"],p=l.forwardRef(function(e,t){var n=e.active,a=e.className,s=e.eventKey,p=e.onSelect,m=e.onClick,h=e.as,v=(0,o.A)(e,f),g=(0,d.u)(s,v.href),y=(0,l.useContext)(d.A),b=(0,l.useContext)(c.A),w=n;if(b){v.role||"tablist"!==b.role||(v.role="tab");var E=b.getControllerId(g),x=b.getControlledId(g);v["data-rb-event-key"]=g,v.id=E||v.id,v["aria-controls"]=x||v["aria-controls"],w=null==n&&null!=g?b.activeKey===g:n}"tab"===v.role&&(v.disabled&&(v.tabIndex=-1,v["aria-disabled"]=!0),v["aria-selected"]=w);var k=(0,u.A)(function(e){m&&m(e),null!=g&&(p&&p(g,e),y&&y(g,e))});return l.createElement(h,(0,r.A)({},v,{ref:t,onClick:k,className:i()(a,w&&"active")}))});p.defaultProps={disabled:!1};const m=p;var h=n(6519),v=["bsPrefix","disabled","className","href","eventKey","onSelect","as"],g={disabled:!1,as:s.A},y=l.forwardRef(function(e,t){var n=e.bsPrefix,a=e.disabled,s=e.className,u=e.href,c=e.eventKey,d=e.onSelect,f=e.as,p=(0,o.A)(e,v);return n=(0,h.oU)(n,"nav-link"),l.createElement(m,(0,r.A)({},p,{href:u,ref:t,eventKey:c,as:f,disabled:a,onSelect:d,className:i()(s,n,a&&"disabled")}))});y.displayName="NavLink",y.defaultProps=g;const b=y},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},579:(e,t,n)=>{var r=n(3738).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},816:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2284);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},887:(e,t,n)=>{var r=n(6993),o=n(1791);e.exports=function(e,t,n,a,i){return new o(r().w(e,t,n,a),i||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},923:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2660),o=n(5797);function a(e,t){var n=(0,r.A)(e,t)||"",o=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*o}function i(e,t){var n=a(e,"transitionDuration"),r=a(e,"transitionDelay"),i=(0,o.A)(e,function(n){n.target===e&&(i(),t(n))},n+r)}},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){}}(),e.exports=n(2551)},976:(e,t,n)=>{"use strict";n.d(t,{A:()=>hr});var r=n(6540),o=n(1008),a=n(2284),i=n(5458),l=n(4467),s=n(3029),u=n(2901),c=n(388),d=n(3954),f=n(5501),p=n(4479),m=n(1105),h=n(6867),v=n(6052),g=n(5615),y=n(9367),b=n(4494),w=n(5498),E=n(1468),x=n(5523),k=n(5289),S=n(7226),A=n(5556),C=n.n(A);function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_=function(){return!!e})()}var O=function(e){function t(){return(0,s.A)(this,t),e=this,n=t,r=arguments,n=(0,d.A)(n),(0,c.A)(e,_()?Reflect.construct(n,r||[],(0,d.A)(e).constructor):n.apply(e,r));var e,n,r}return(0,f.A)(t,e),(0,u.A)(t,[{key:"getLabel",value:function(e){return"per_request"===e?(0,w.pw)("Translation speed",this.props.translations):""}},{key:"getTranslationSpeedValue",value:function(e){var t=this.props.translations;return 2===(e=Number(e))?(0,w.pw)("Normal",t):10===e?(0,w.pw)("Fast",t):e}},{key:"render",value:function(){var e=this,t=this.props.translations;return r.createElement(S.A,{keyboard:!1,id:"dingedimodule-container",show:!0,backdrop:"static",centered:!0,backdropClassName:"dg-modal",dialogClassName:"dg-modal",onHide:this.props.onClose},r.createElement(S.A.Header,{closeButton:!0},r.createElement(S.A.Title,{style:{fontSize:"18px",marginTop:"7px"},className:"font-weight-bold"},(0,w.pw)("Recommended settings",t))),r.createElement(S.A.Body,null,r.createElement("div",{className:"py-3"},Object.entries(this.props.recommandedParameters).map(function(t,n){return r.createElement("span",{className:"h4 font-weight-normal",key:n},e.getLabel(t[0]),": ",r.createElement("strong",null,e.getTranslationSpeedValue(t[1])," (",t[1],")"))}))),r.createElement(S.A.Footer,null,r.createElement(g.A,{onClick:this.props.onApply,variant:"primary"},(0,w.pw)("Apply recommended settings",t)),r.createElement(g.A,{onClick:this.props.onClose,variant:"secondary"},(0,w.pw)("Keep current settings",t))))}}])}(r.Component);O.propTypes={onClose:C().func.isRequired,onApply:C().func.isRequired,recommandedParameters:C().object,translations:C().object};const N=(0,E.Ng)(function(e){return{translations:(0,k.fF)(e)}})(O);var P=n(8004),T=n(9567),R=n(5677),I=n(8168),M=n(45),F=n(296),L=n(2532),D=n(3524),j=["ref"];function z(e){var t=(0,E.d4)(k.fF),n=(0,r.useState)(!1),o=(0,F.A)(n,2),a=o[0],i=o[1];function l(){i(!a)}return r.createElement(r.Fragment,null,e.label&&r.createElement("label",{htmlFor:e.id},e.label),r.createElement("div",{className:"input-group flex-nowrap"},r.createElement("input",{style:{height:"35px"},id:e.id,placeholder:e.placeholder,onChange:function(t){return e.onChange(t)},value:e.value,autoComplete:"off",type:!1===a?"password":"text",className:"form-control"}),r.createElement(L.A,{placement:"top",overlay:r.createElement(D.A,{id:"tooltip-top"},!1===a&&(0,w.pw)("Show",t),!0===a&&(0,w.pw)("Hide",t))},function(e){var t=e.ref,n=(0,M.A)(e,j);return r.createElement("span",(0,I.A)({},n,{ref:t,className:"btn input-group-text",onClick:l}),r.createElement("span",{className:"material-icons",style:{fontSize:"17px"}},!1===a&&"visibility_off",!0===a&&"visibility"))})))}z.propTypes={onChange:C().func.isRequired,placeholder:C().string.isRequired,value:C().string.isRequired,label:C().oneOfType([C().node,C().string]),id:C().string.isRequired};const V=(0,r.memo)(z);function U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(U=function(){return!!e})()}var B=function(e){function t(e){var n,r,o,a;return(0,s.A)(this,t),r=this,o=t,a=[e],o=(0,d.A)(o),(n=(0,c.A)(r,U()?Reflect.construct(o,a||[],(0,d.A)(r).constructor):o.apply(r,a))).state={step:1},n}return(0,f.A)(t,e),(0,u.A)(t,[{key:"keyListener",value:function(e){"ArrowLeft"===e.key&&this.previous(),"ArrowRight"===e.key&&this.next()}},{key:"componentDidMount",value:function(){var e=this;window.addEventListener("keydown",function(t){return e.keyListener(t)})}},{key:"componentWillUnmount",value:function(){var e=this;window.removeEventListener("keydown",function(t){return e.keyListener(t)})}},{key:"previous",value:function(){var e=this.state.step-1;e<1||this.setState({step:e})}},{key:"next",value:function(){var e=this.state.step+1;e>this.getSteps().length||this.setState({step:e})}},{key:"getSteps",value:function(){var e;return null!==(e=this.props.steps)&&void 0!==e?e:[]}},{key:"render",value:function(){var e=this,t=this.props.translations,n=this.getSteps(),o=n.length,a=this.state.step>1,i=this.state.step<o;return r.createElement(S.A,{keyboard:!1,id:"dingedimodule-container",show:!0,backdrop:"static",centered:!0,backdropClassName:"dg-modal",dialogClassName:"dg-modal dg-modal-fw",onHide:this.props.onClose},r.createElement(S.A.Header,{closeButton:!0},r.createElement(S.A.Title,{style:{fontSize:"18px",marginTop:"7px"},className:"font-weight-bold"},(0,w.pw)("Setup wizard",t)," - ",r.createElement("span",null,this.state.step,"/",o))),r.createElement(S.A.Body,null,r.createElement("div",{className:"py-3"},n.map(function(t,n){return r.createElement("div",{key:n,hidden:n+1!==e.state.step},t)}))),r.createElement(S.A.Footer,null,n.length>1&&r.createElement(g.A,{disabled:!a,onClick:function(){return e.previous()},variant:"secondary"},r.createElement("i",{className:"material-icons"},"keyboard_arrow_left")," ",(0,w.pw)("Previous",t)),i&&r.createElement(g.A,{onClick:function(){return e.next()},variant:"secondary"},(0,w.pw)("Next",t),r.createElement("i",{className:"material-icons"},"keyboard_arrow_right")),!i&&r.createElement(g.A,{onClick:function(){return e.props.onClose()},variant:"primary"},(0,w.pw)("Finish",t))))}}])}(r.Component);const H=(0,E.Ng)(function(e){return{translations:(0,k.fF)(e)}})(B),W="carousel",q="controller",K="portal",G="toolbar",Q="loading",Y="error",X="complete",J=e=>`active-slide-${e}`,Z=(J(Q),J("playing"),J(Y),J(X),"flex_center"),ee="no_scroll_padding",te="slide",ne="prev",re="next",oe="swipe",ae="close",ie="onPointerDown",le="onPointerMove",se="onPointerUp",ue="onPointerLeave",ce="onPointerCancel",de="onKeyDown",fe="onWheel",pe="icon",me="contain",he="cover";var ve=n(961);const ge="yarl__";function ye(...e){return[...e].filter(Boolean).join(" ")}function be(e){return`${ge}${e}`}function we(e){return`--${ge}${e}`}function Ee(e,t){return`${e}${t?`_${t}`:""}`}function xe(e){return t=>Ee(e,t)}function ke(e,t){var n;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:t}function Se(e,t,n){return ke(e,"{index} of {total}").replace(/\{index}/g,`${Re(n,t.length)+1}`).replace(/\{total}/g,`${t.length}`)}function Ae(...e){return()=>{e.forEach(e=>{e()})}}function Ce(e,t,n){return()=>{const o=r.useContext(n);if(!o)throw new Error(`${e} must be used within a ${t}.Provider`);return o}}function _e(){return"undefined"!=typeof window}function Oe(e){return void 0===e.type||"image"===e.type}function Ne(e){return"string"==typeof e?Number.parseInt(e,10):e}function Pe(e){if("number"==typeof e)return{pixel:e};if("string"==typeof e){const t=Ne(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function Te(e,t){const n=Pe(t),r=void 0!==n.percent?e.width/100*n.percent:n.pixel;return{width:Math.max(e.width-2*r,0),height:Math.max(e.height-2*r,0)}}function Re(e,t){return t>0?(e%t+t)%t:0}function Ie(e){return e.length>0}function Me(e,t){return e[Re(t,e.length)]}function Fe(e,t){return Ie(e)?Me(e,t):void 0}function Le(e){return Oe(e)?e.src:void 0}const De=Number(r.version.split(".")[0])>=19;const je={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[ae]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:me,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,preventDefaultWheelX:!0,preventDefaultWheelY:!1,disableSwipeNavigation:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function ze(e,t){return{name:e,component:t}}function Ve(e,t){return{module:e,children:t}}function Ue(e,t,n){return e.module.name===t?n(e):e.children?[Ve(e.module,e.children.flatMap(e=>{var r;return null!==(r=Ue(e,t,n))&&void 0!==r?r:[]}))]:[e]}function Be(e,t,n){return e.flatMap(e=>{var r;return null!==(r=Ue(e,t,n))&&void 0!==r?r:[]})}const He=r.createContext(null),$e=Ce("useA11yContext","A11yContext",He);function We({children:e}){const[t,n]=r.useState(!1),[o,a]=r.useState(!1),i=r.useMemo(()=>({focusWithin:t,trackFocusWithin:(e,t)=>{const r=r=>o=>{var a;o.currentTarget.contains(o.relatedTarget)||n(r),null===(a=r?e:t)||void 0===a||a(o)};return{onFocus:r(!0),onBlur:r(!1)}},autoPlaying:o,setAutoPlaying:a}),[t,o]);return r.createElement(He.Provider,{value:i},e)}const qe=r.createContext(null),Ke=Ce("useDocument","DocumentContext",qe);function Ge({nodeRef:e,children:t}){const n=r.useMemo(()=>{const t=t=>{var n;return(null===(n=t||e.current)||void 0===n?void 0:n.ownerDocument)||document};return{getOwnerDocument:t,getOwnerWindow:e=>{var n;return(null===(n=t(e))||void 0===n?void 0:n.defaultView)||window}}},[e]);return r.createElement(qe.Provider,{value:n},t)}const Qe=r.createContext(null),Ye=Ce("useEvents","EventsContext",Qe);function Xe({children:e}){const[t]=r.useState({});r.useEffect(()=>()=>{Object.keys(t).forEach(e=>delete t[e])},[t]);const n=r.useMemo(()=>{const e=(e,n)=>{var r;null===(r=t[e])||void 0===r||r.splice(0,t[e].length,...t[e].filter(e=>e!==n))};return{publish:(...[e,n])=>{var r;null===(r=t[e])||void 0===r||r.forEach(e=>e(n))},subscribe:(n,r)=>(t[n]||(t[n]=[]),t[n].push(r),()=>e(n,r)),unsubscribe:e}},[t]);return r.createElement(Qe.Provider,{value:n},e)}const Je=r.createContext(null),Ze=Ce("useLightboxProps","LightboxPropsContext",Je);function et({children:e,...t}){return r.createElement(Je.Provider,{value:t},e)}const tt=r.createContext(null),nt=Ce("useLightboxState","LightboxStateContext",tt),rt=r.createContext(null),ot=Ce("useLightboxDispatch","LightboxDispatchContext",rt);function at(e,t){switch(t.type){case"swipe":{const{slides:n}=e,r=(null==t?void 0:t.increment)||0,o=e.globalIndex+r,a=Re(o,n.length);return{slides:n,currentIndex:a,globalIndex:o,currentSlide:Fe(n,a),animation:r||void 0!==t.duration?{increment:r,duration:t.duration,easing:t.easing}:void 0}}case"update":return t.slides!==e.slides||t.index!==e.currentIndex?{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:Fe(t.slides,t.index)}:e;default:throw new Error("Unknown action type")}}function it({slides:e,index:t,children:n}){const[o,a]=r.useReducer(at,{slides:e,currentIndex:t,globalIndex:t,currentSlide:Fe(e,t)});r.useEffect(()=>{a({type:"update",slides:e,index:t})},[e,t]);const i=r.useMemo(()=>({...o,state:o,dispatch:a}),[o,a]);return r.createElement(rt.Provider,{value:a},r.createElement(tt.Provider,{value:i},n))}const lt=r.createContext(null),st=Ce("useTimeouts","TimeoutsContext",lt);function ut({children:e}){const[t]=r.useState([]);r.useEffect(()=>()=>{t.forEach(e=>window.clearTimeout(e)),t.splice(0,t.length)},[t]);const n=r.useMemo(()=>{const e=e=>{t.splice(0,t.length,...t.filter(t=>t!==e))};return{setTimeout:(n,r)=>{const o=window.setTimeout(()=>{e(o),n()},r);return t.push(o),o},clearTimeout:t=>{void 0!==t&&(e(t),window.clearTimeout(t))}}},[t]);return r.createElement(lt.Provider,{value:n},e)}const ct=r.forwardRef(function({label:e,className:t,icon:n,renderIcon:o,onClick:a,style:i,...l},s){const{styles:u,labels:c}=Ze(),d=ke(c,e);return r.createElement("button",{ref:s,type:"button",title:d,"aria-label":d,className:ye(be("button"),t),onClick:a,style:{...i,...u.button},...l},o?o():r.createElement(n,{className:be(pe),style:u.icon}))});function dt(e,t){const n=e=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...e},t);return n.displayName=e,n}function ft(e,t){return dt(e,r.createElement("g",{fill:"currentColor"},r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const pt=ft("Close",r.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),mt=ft("Previous",r.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),ht=ft("Next",r.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),vt=ft("Loading",r.createElement(r.Fragment,null,Array.from({length:8}).map((e,t,n)=>r.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/n.length*(t+1),transform:`rotate(${360/n.length*t}, 12, 12)`})))),gt=ft("Error",r.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),yt=_e()?r.useLayoutEffect:r.useEffect;function bt(){const[e,t]=r.useState(!1);return r.useEffect(()=>{var e,n;const r=null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-reduced-motion: reduce)");t(null==r?void 0:r.matches);const o=e=>t(e.matches);return null===(n=null==r?void 0:r.addEventListener)||void 0===n||n.call(r,"change",o),()=>{var e;return null===(e=null==r?void 0:r.removeEventListener)||void 0===e?void 0:e.call(r,"change",o)}},[]),e}function wt(e,t){const n=r.useRef(void 0),o=r.useRef(void 0),a=bt();return yt(()=>{var r,i,l;if(e.current&&void 0!==n.current&&!a){const{keyframes:a,duration:s,easing:u,onfinish:c}=t(n.current,e.current.getBoundingClientRect(),function(e){let t=0,n=0,r=0;const o=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(o){const e=o[1].split(",").map(Ne);6===e.length?(t=e[4],n=e[5]):16===e.length&&(t=e[12],n=e[13],r=e[14])}return{x:t,y:n,z:r}}(e.current))||{};if(a&&s){null===(r=o.current)||void 0===r||r.cancel(),o.current=void 0;try{o.current=null===(l=(i=e.current).animate)||void 0===l?void 0:l.call(i,a,{duration:s,easing:u})}catch(e){}o.current&&(o.current.onfinish=()=>{o.current=void 0,null==c||c()})}}n.current=void 0}),{prepareAnimation:e=>{n.current=e},isAnimationPlaying:()=>{var e;return"running"===(null===(e=o.current)||void 0===e?void 0:e.playState)}}}function Et(){const e=r.useRef(null),t=r.useRef(void 0),[n,o]=r.useState(),a=r.useCallback(n=>{e.current=n,t.current&&(t.current.disconnect(),t.current=void 0);const r=()=>{if(n){const e=window.getComputedStyle(n),t=e=>parseFloat(e)||0;o({width:Math.round(n.clientWidth-t(e.paddingLeft)-t(e.paddingRight)),height:Math.round(n.clientHeight-t(e.paddingTop)-t(e.paddingBottom))})}else o(void 0)};r(),n&&"undefined"!=typeof ResizeObserver&&(t.current=new ResizeObserver(r),t.current.observe(n))},[]);return{setContainerRef:a,containerRef:e,containerRect:n}}function xt(){const e=r.useRef(void 0),{setTimeout:t,clearTimeout:n}=st();return r.useCallback((r,o)=>{n(e.current),e.current=t(r,o>0?o:0)},[t,n])}function kt(e){const t=r.useRef(e);return yt(()=>{t.current=e}),r.useCallback((...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}function St(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function At(e,t){return r.useMemo(()=>null==e&&null==t?null:n=>{St(e,n),St(t,n)},[e,t])}function Ct(e,t=!1){const n=r.useRef(!1);yt(()=>{t&&n.current&&(n.current=!1,e())},[t,e]);return{onFocus:r.useCallback(()=>{n.current=!0},[]),onBlur:r.useCallback(()=>{n.current=!1},[])}}function _t(){const[e,t]=r.useState(!1);return yt(()=>{t("rtl"===window.getComputedStyle(window.document.documentElement).direction)},[]),e}function Ot(e,t){const n=r.useRef(0),o=xt(),a=kt((...t)=>{n.current=Date.now(),e(t)});return r.useCallback((...e)=>{o(()=>{a(e)},t-(Date.now()-n.current))},[t,a,o])}const Nt=xe("slide"),Pt=xe("slide_image");function Tt({slide:e,offset:t,render:n,rect:o,imageFit:a,imageProps:i,onClick:l,onLoad:s,onError:u,style:c}){var d,f,p,m,h,v,g,y;const[b,w]=r.useState(Q),{publish:E}=Ye(),{setTimeout:x}=st(),k=r.useRef(null);r.useEffect(()=>{0===t&&E(J(b))},[t,b,E]);const S=kt(e=>{("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{e.parentNode&&(w(X),x(()=>{null==s||s(e)},0))})}),A=r.useCallback(e=>{k.current=e,(null==e?void 0:e.complete)&&S(e)},[S]),C=r.useCallback(e=>{S(e.currentTarget)},[S]),_=kt(()=>{w(Y),null==u||u()}),O=function(e,t){return e.imageFit===he||e.imageFit!==me&&t===he}(e,a),N=(e,t)=>Number.isFinite(e)?e:t,P=N(Math.max(...(null!==(f=null===(d=e.srcSet)||void 0===d?void 0:d.map(e=>e.width))&&void 0!==f?f:[]).concat(e.width?[e.width]:[]).filter(Boolean)),(null===(p=k.current)||void 0===p?void 0:p.naturalWidth)||0),T=N(Math.max(...(null!==(h=null===(m=e.srcSet)||void 0===m?void 0:m.map(e=>e.height))&&void 0!==h?h:[]).concat(e.height?[e.height]:[]).filter(Boolean)),(null===(v=k.current)||void 0===v?void 0:v.naturalHeight)||0),R=P&&T?{maxWidth:`min(${P}px, 100%)`,maxHeight:`min(${T}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},I=null===(g=e.srcSet)||void 0===g?void 0:g.sort((e,t)=>e.width-t.width).map(e=>`${e.src} ${e.width}w`).join(", "),M=I&&o&&_e()?`${Math.round(Math.min(o&&!O&&e.width&&e.height?o.height/e.height*e.width:Number.MAX_VALUE,o.width))}px`:void 0,{style:F,className:L,...D}=i||{};return r.createElement(r.Fragment,null,r.createElement("img",{ref:A,onLoad:C,onError:_,onClick:l,draggable:!1,className:ye(be(Pt()),O&&be(Pt("cover")),b!==X&&be(Pt("loading")),L),style:{...R,...c,...F},...D,alt:null!==(y=e.alt)&&void 0!==y?y:"",sizes:M,srcSet:I,src:e.src}),b!==X&&r.createElement("div",{className:be(Nt("placeholder"))},b===Q&&((null==n?void 0:n.iconLoading)?n.iconLoading():r.createElement(vt,{className:ye(be(pe),be(Nt(Q)))})),b===Y&&((null==n?void 0:n.iconError)?n.iconError():r.createElement(gt,{className:ye(be(pe),be(Nt(Y)))}))))}const Rt=r.forwardRef(function({className:e,children:t,onFocus:n,onBlur:o,...a},i){const l=r.useRef(null),{trackFocusWithin:s}=$e();return r.createElement(Ge,{nodeRef:l},r.createElement("div",{ref:At(i,l),className:ye(be("root"),e),...s(n,o),...a},t))});var It,Mt;!function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"}(It||(It={})),function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"}(Mt||(Mt={}));function Ft({disableSwipeNavigation:e,closeOnBackdropClick:t},n,o,a,i,l,s,u,c,d,f,p,m,h,v,g){const y=r.useRef(0),b=r.useRef([]),w=r.useRef(void 0),E=r.useRef(0),x=r.useRef(Mt.NONE),k=r.useCallback(e=>{w.current===e.pointerId&&(w.current=void 0,x.current=Mt.NONE);const t=b.current;t.splice(0,t.length,...t.filter(t=>t.pointerId!==e.pointerId))},[]),S=r.useCallback(e=>{k(e),e.persist(),b.current.push(e)},[k]),A=r.useCallback(e=>b.current.find(({pointerId:t})=>e.pointerId===t),[]),C=kt(e=>{S(e)}),_=(e,t)=>f&&e>t||d&&e<-t,O=kt(e=>{const n=A(e);if(n)if(w.current===e.pointerId){const e=Date.now()-E.current,t=y.current;x.current===Mt.SWIPE?Math.abs(t)>.3*a||Math.abs(t)>5&&e<i?u(t,e):c(t):x.current===Mt.PULL&&(_(t,60)?h(t,e):v(t)),y.current=0,x.current=Mt.NONE}else{const{target:r}=e;t&&r instanceof HTMLElement&&r===n.target&&(r.classList.contains(be(te))||r.classList.contains(be("slide_wrapper")))&&g()}k(e)});!function(e,t,n,o,a){r.useEffect(()=>a?()=>{}:Ae(e(ie,t),e(le,n),e(se,o),e(ue,o),e(ce,o)),[e,t,n,o,a])}(n,C,kt(t=>{const n=A(t);if(n){const r=w.current===t.pointerId;if(0===t.buttons)return void(r&&0!==y.current?O(t):k(n));const a=t.clientX-n.clientX,i=t.clientY-n.clientY;if(void 0===w.current){const n=e=>{S(t),w.current=t.pointerId,E.current=Date.now(),x.current=e};Math.abs(a)>Math.abs(i)&&Math.abs(a)>30&&o(a)?e||(n(Mt.SWIPE),l()):Math.abs(i)>Math.abs(a)&&_(i,30)&&(n(Mt.PULL),p())}else r&&(x.current===Mt.SWIPE?(y.current=a,s(a)):x.current===Mt.PULL&&(y.current=i,m(i)))}}),O)}const Lt=xe("container"),Dt=r.createContext(null),jt=Ce("useController","ControllerContext",Dt);const zt=ze(q,function({children:e,...t}){var n;const{carousel:o,animation:a,controller:i,on:l,styles:s,render:u}=t,{closeOnPullUp:c,closeOnPullDown:d,preventDefaultWheelX:f,preventDefaultWheelY:p}=i,[m,h]=r.useState(),v=nt(),g=ot(),[y,b]=r.useState(It.NONE),w=r.useRef(0),E=r.useRef(0),x=r.useRef(1),{registerSensors:k,subscribeSensors:S}=function(){const[e]=r.useState({}),t=r.useCallback((t,n)=>{var r;null===(r=e[t])||void 0===r||r.forEach(e=>{n.isPropagationStopped()||e(n)})},[e]);return{registerSensors:r.useMemo(()=>({onPointerDown:e=>t(ie,e),onPointerMove:e=>t(le,e),onPointerUp:e=>t(se,e),onPointerLeave:e=>t(ue,e),onPointerCancel:e=>t(ce,e),onKeyDown:e=>t(de,e),onKeyUp:e=>t("onKeyUp",e),onWheel:e=>t(fe,e)}),[t]),subscribeSensors:r.useCallback((t,n)=>(e[t]||(e[t]=[]),e[t].unshift(n),()=>{const r=e[t];r&&r.splice(0,r.length,...r.filter(e=>e!==n))}),[e])}}(),{subscribe:A,publish:C}=Ye(),_=xt(),O=xt(),N=xt(),{containerRef:P,setContainerRef:T,containerRect:R}=Et(),I=At(function({preventDefaultWheelX:e,preventDefaultWheelY:t}){const n=r.useRef(null),o=kt(n=>{const r=Math.abs(n.deltaX)>Math.abs(n.deltaY);(r&&e||!r&&t||n.ctrlKey)&&n.preventDefault()});return r.useCallback(e=>{var t;e?e.addEventListener("wheel",o,{passive:!1}):null===(t=n.current)||void 0===t||t.removeEventListener("wheel",o),n.current=e},[o])}({preventDefaultWheelX:f,preventDefaultWheelY:p}),T),M=r.useRef(null),F=At(M,void 0),{getOwnerDocument:L}=Ke(),D=_t(),j=e=>(D?-1:1)*("number"==typeof e?e:1),z=kt(()=>{var e;return null===(e=P.current)||void 0===e?void 0:e.focus()}),V=kt(()=>t),U=kt(()=>v),B=r.useCallback(e=>C(ne,e),[C]),H=r.useCallback(e=>C(re,e),[C]),$=r.useCallback(()=>C(ae),[C]),W=e=>!(o.finite&&(j(e)>0&&0===v.currentIndex||j(e)<0&&v.currentIndex===v.slides.length-1)),q=e=>{var t;w.current=e,null===(t=P.current)||void 0===t||t.style.setProperty(we("swipe_offset"),`${Math.round(e)}px`)},G=e=>{var t,n;E.current=e,x.current=(()=>{const t=d&&e>0?e:c&&e<0?-e:0;return Math.min(Math.max(function(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}(1-t/60*.5,2),.5),1)})(),null===(t=P.current)||void 0===t||t.style.setProperty(we("pull_offset"),`${Math.round(e)}px`),null===(n=P.current)||void 0===n||n.style.setProperty(we("pull_opacity"),`${x.current}`)},{prepareAnimation:Q}=wt(M,(e,t,n)=>{if(M.current&&R)return{keyframes:[{transform:`translate(0, ${e.rect.y-t.y+n.y}px)`,opacity:e.opacity},{transform:"translate(0, 0)",opacity:1}],duration:e.duration,easing:a.easing.fade}}),Y=(e,t)=>{if(c||d){G(e);let n=0;M.current&&(n=a.fade*(t?2:1),Q({rect:M.current.getBoundingClientRect(),opacity:x.current,duration:n})),N(()=>{G(0),b(It.NONE)},n),b(It.ANIMATION),t||$()}},{prepareAnimation:X,isAnimationPlaying:J}=wt(M,(e,t,n)=>{var r;if(M.current&&R&&(null===(r=v.animation)||void 0===r?void 0:r.duration)){const r=Pe(o.spacing),a=(r.percent?r.percent*R.width/100:r.pixel)||0;return{keyframes:[{transform:`translate(${j(v.globalIndex-e.index)*(R.width+a)+e.rect.x-t.x+n.x}px, 0)`},{transform:"translate(0, 0)"}],duration:v.animation.duration,easing:v.animation.easing}}}),ee=kt(e=>{var t,n;const r=e.offset||0,o=r?a.swipe:null!==(t=a.navigation)&&void 0!==t?t:a.swipe,i=r||J()?a.easing.swipe:a.easing.navigation;let{direction:l}=e;const s=null!==(n=e.count)&&void 0!==n?n:1;let u=It.ANIMATION,c=o*s;if(!l){const t=null==R?void 0:R.width,n=e.duration||0,a=t?o/t*Math.abs(r):o;0!==s?(n<a?c=c/a*Math.max(n,a/5):t&&(c=o/t*(t-Math.abs(r))),l=j(r)>0?ne:re):c=o/2}let d=0;l===ne?W(j(1))?d=-s:(u=It.NONE,c=o):l===re&&(W(j(-1))?d=s:(u=It.NONE,c=o)),c=Math.round(c),O(()=>{q(0),b(It.NONE)},c),M.current&&X({rect:M.current.getBoundingClientRect(),index:v.globalIndex}),b(u),C(oe,{type:"swipe",increment:d,duration:c,easing:i})});r.useEffect(()=>{var e,t;(null===(e=v.animation)||void 0===e?void 0:e.increment)&&(null===(t=v.animation)||void 0===t?void 0:t.duration)&&_(()=>g({type:"swipe",increment:0}),v.animation.duration)},[v.animation,g,_]);const te=[S,W,(null==R?void 0:R.width)||0,a.swipe,()=>b(It.SWIPE),e=>q(e),(e,t)=>ee({offset:e,duration:t,count:1}),e=>ee({offset:e,count:0})],pe=[()=>{d&&b(It.PULL)},e=>G(e),e=>Y(e),e=>Y(e,!0)];Ft(i,...te,c,d,...pe,$),function(e,t,n,o,a,i,l,s,u){const c=r.useRef(0),d=r.useRef(0),f=r.useRef(void 0),p=r.useRef(void 0),m=r.useRef(0),h=r.useRef(void 0),v=r.useRef(0),{setTimeout:g,clearTimeout:y}=st(),b=r.useCallback(()=>{f.current&&(y(f.current),f.current=void 0)},[y]),w=r.useCallback(()=>{p.current&&(y(p.current),p.current=void 0)},[y]),E=kt(()=>{e!==It.SWIPE&&(c.current=0,v.current=0,b(),w())});r.useEffect(E,[e,E]);const x=kt(e=>{p.current=void 0,c.current===e&&u(c.current)}),k=kt(t=>{if(t.ctrlKey)return;if(Math.abs(t.deltaY)>Math.abs(t.deltaX))return;const r=e=>{m.current=e,y(h.current),h.current=e>0?g(()=>{m.current=0,h.current=void 0},300):void 0};if(e===It.NONE){if(Math.abs(t.deltaX)<=1.2*Math.abs(m.current))return void r(t.deltaX);if(!n(-t.deltaX))return;if(d.current+=t.deltaX,b(),Math.abs(d.current)>30)d.current=0,r(0),v.current=Date.now(),i();else{const e=d.current;f.current=g(()=>{f.current=void 0,e===d.current&&(d.current=0)},a)}}else if(e===It.SWIPE){let e=c.current-t.deltaX;if(e=Math.min(Math.abs(e),o)*Math.sign(e),c.current=e,l(e),w(),Math.abs(e)>.2*o)return r(t.deltaX),void s(e,Date.now()-v.current);p.current=g(()=>x(e),2*a)}else r(t.deltaX)});r.useEffect(()=>t(fe,k),[t,k])}(y,...te);const me=kt(()=>{i.focus&&L().querySelector(`.${be(K)} .${be(Lt())}`)&&z()});r.useEffect(me,[me]);const he=kt(()=>{var e;null===(e=l.view)||void 0===e||e.call(l,{index:v.currentIndex})});r.useEffect(he,[v.globalIndex,he]),r.useEffect(()=>Ae(A(ne,e=>ee({direction:ne,...e})),A(re,e=>ee({direction:re,...e})),A(oe,e=>g(e))),[A,ee,g]);const ve=r.useMemo(()=>({prev:B,next:H,close:$,focus:z,slideRect:R?Te(R,o.padding):{width:0,height:0},containerRect:R||{width:0,height:0},subscribeSensors:S,containerRef:P,setCarouselRef:F,toolbarWidth:m,setToolbarWidth:h}),[B,H,$,z,S,R,P,F,m,h,o.padding]);return r.useImperativeHandle(i.ref,()=>({prev:B,next:H,close:$,focus:z,getLightboxProps:V,getLightboxState:U}),[B,H,$,z,V,U]),r.createElement("div",{ref:I,className:ye(be(Lt()),be(Z)),style:{...y===It.SWIPE?{[we("swipe_offset")]:`${Math.round(w.current)}px`}:null,...y===It.PULL?{[we("pull_offset")]:`${Math.round(E.current)}px`,[we("pull_opacity")]:`${x.current}`}:null,..."none"!==i.touchAction?{[we("controller_touch_action")]:i.touchAction}:null,...s.container},tabIndex:-1,...k},R&&r.createElement(Dt.Provider,{value:ve},e,null===(n=u.controls)||void 0===n?void 0:n.call(u)))});function Vt(e){return Ee(W,e)}function Ut(e){return Ee(te,e)}function Bt({slide:e,offset:t}){const n=r.useRef(null),{currentIndex:o,slides:a}=nt(),{slideRect:i,focus:l}=jt(),{render:s,carousel:{imageFit:u,imageProps:c},on:{click:d},styles:{slide:f},labels:p}=Ze(),{getOwnerDocument:m}=Ke(),h=0!==t;r.useEffect(()=>{var e;h&&(null===(e=n.current)||void 0===e?void 0:e.contains(m().activeElement))&&l()},[h,l,m]);return r.createElement("div",{ref:n,className:ye(be(Ut()),!h&&be(Ut("current")),be(Z)),...(v=h,{inert:De?v:v?"":void 0}),style:f,role:"group","aria-roledescription":ke(p,"Slide"),"aria-label":Se(p,a,o+t)},(()=>{var n,a,l,f;let p=null===(n=s.slide)||void 0===n?void 0:n.call(s,{slide:e,offset:t,rect:i});return!p&&Oe(e)&&(p=r.createElement(Tt,{slide:e,offset:t,render:s,rect:i,imageFit:u,imageProps:c,onClick:h?void 0:()=>null==d?void 0:d({index:o})})),p?r.createElement(r.Fragment,null,null===(a=s.slideHeader)||void 0===a?void 0:a.call(s,{slide:e}),(null!==(l=s.slideContainer)&&void 0!==l?l:({children:e})=>e)({slide:e,children:p}),null===(f=s.slideFooter)||void 0===f?void 0:f.call(s,{slide:e})):null})());var v}function Ht(){const e=Ze().styles.slide;return r.createElement("div",{className:be(te),style:e})}const $t=ze(W,function({carousel:e,labels:t}){const{slides:n,currentIndex:o,globalIndex:a}=nt(),{setCarouselRef:i}=jt(),{autoPlaying:l,focusWithin:s}=$e(),u=Pe(e.spacing),c=Pe(e.padding),d=function(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}(e,n,1),f=[];if(Ie(n))for(let t=o-d;t<=o+d;t+=1){const r=Me(n,t),i=a-o+t,l=e.finite&&(t<0||t>n.length-1);f.push(l?{key:i}:{key:[`${i}`,Le(r)].filter(Boolean).join("|"),offset:t-o,slide:r})}return r.createElement("div",{ref:i,className:ye(be(Vt()),f.length>0&&be(Vt("with_slides"))),style:{[`${we(Vt("slides_count"))}`]:f.length,[`${we(Vt("spacing_px"))}`]:u.pixel||0,[`${we(Vt("spacing_percent"))}`]:u.percent||0,[`${we(Vt("padding_px"))}`]:c.pixel||0,[`${we(Vt("padding_percent"))}`]:c.percent||0},role:"region","aria-live":l&&!s?"off":"polite","aria-roledescription":ke(t,"Carousel"),"aria-label":ke(t,"Photo gallery")},f.map(({key:e,slide:t,offset:n})=>t?r.createElement(Bt,{key:e,slide:t,offset:n}):r.createElement(Ht,{key:e})))});function Wt(){const{carousel:e}=Ze(),{slides:t,currentIndex:n}=nt();return{prevDisabled:0===t.length||e.finite&&0===n,nextDisabled:0===t.length||e.finite&&n===t.length-1}}function qt({label:e,icon:t,renderIcon:n,action:o,onClick:a,disabled:i,style:l}){return r.createElement(ct,{label:e,icon:t,renderIcon:n,className:be(`navigation_${o}`),disabled:i,onClick:a,style:l,...Ct(jt().focus,i)})}const Kt=ze("navigation",function({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:o},styles:a}){const{prev:i,next:l,subscribeSensors:s}=jt(),{prevDisabled:u,nextDisabled:c}=Wt();return function(e){var t;const n=_t(),{publish:o}=Ye(),{animation:a}=Ze(),{prevDisabled:i,nextDisabled:l}=Wt(),s=(null!==(t=a.navigation)&&void 0!==t?t:a.swipe)/2,u=Ot(()=>o(ne),s),c=Ot(()=>o(re),s),d=kt(e=>{switch(e.key){case"Escape":o(ae);break;case"ArrowLeft":(n?l:i)||(n?c:u)();break;case"ArrowRight":(n?i:l)||(n?u:c)()}});r.useEffect(()=>e(de,d),[e,d])}(s),r.createElement(r.Fragment,null,e?e():r.createElement(qt,{label:"Previous",action:ne,icon:mt,renderIcon:n,style:a.navigationPrev,disabled:u,onClick:i}),t?t():r.createElement(qt,{label:"Next",action:re,icon:ht,renderIcon:o,style:a.navigationNext,disabled:c,onClick:l}))}),Gt=be("no_scroll"),Qt=be(ee);function Yt(e){return"style"in e}function Xt(e,t,n){const r=window.getComputedStyle(e),o=n?"padding-left":"padding-right",a=n?r.paddingLeft:r.paddingRight,i=e.style.getPropertyValue(o);return e.style.setProperty(o,`${(Ne(a)||0)+t}px`),()=>{i?e.style.setProperty(o,i):e.style.removeProperty(o)}}const Jt=ze("no-scroll",function({noScroll:{disabled:e},children:t}){const n=_t(),{getOwnerDocument:o,getOwnerWindow:a}=Ke();return r.useEffect(()=>{if(e)return()=>{};const t=[],r=a(),{body:i,documentElement:l}=o(),s=Math.round(r.innerWidth-l.clientWidth);if(s>0){t.push(Xt(i,s,n));const e=i.getElementsByTagName("*");for(let o=0;o<e.length;o+=1){const a=e[o];Yt(a)&&"fixed"===r.getComputedStyle(a).getPropertyValue("position")&&!a.classList.contains(Qt)&&t.push(Xt(a,s,n))}}return i.classList.add(Gt),()=>{i.classList.remove(Gt),t.forEach(e=>e())}},[n,e,o,a]),r.createElement(r.Fragment,null,t)});function Zt(e){return Ee(K,e)}function en(e,t,n){const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}const tn=ze(K,function({children:e,animation:t,styles:n,className:o,on:a,portal:i,close:l,labels:s}){const[u,c]=r.useState(!1),[d,f]=r.useState(!1),p=r.useRef([]),m=r.useRef(null),{setTimeout:h}=st(),{subscribe:v}=Ye(),g=bt()?0:t.fade;r.useEffect(()=>(c(!0),()=>{c(!1),f(!1)}),[]);const y=kt(()=>{p.current.forEach(e=>e()),p.current=[]}),b=kt(()=>{var e;f(!1),y(),null===(e=a.exiting)||void 0===e||e.call(a),h(()=>{var e;null===(e=a.exited)||void 0===e||e.call(a),l()},g)});r.useEffect(()=>v(ae,b),[v,b]);const w=kt(e=>{var t,n,r;!function(e){e.scrollTop}(e),f(!0),null===(t=a.entering)||void 0===t||t.call(a);const o=null!==(r=null===(n=e.parentNode)||void 0===n?void 0:n.children)&&void 0!==r?r:[];for(let t=0;t<o.length;t+=1){const n=o[t];-1===["TEMPLATE","SCRIPT","STYLE"].indexOf(n.tagName)&&n!==e&&(p.current.push(en(n,"inert","")),p.current.push(en(n,"aria-hidden","true")))}p.current.push(()=>{var e,t;null===(t=null===(e=m.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}),h(()=>{var e;null===(e=a.entered)||void 0===e||e.call(a)},g)}),E=r.useCallback(e=>{e?w(e):y()},[w,y]);return u?(0,ve.createPortal)(r.createElement(Rt,{ref:E,className:ye(o,be(Zt()),be(ee),d&&be(Zt("open"))),"aria-modal":!0,role:"dialog","aria-label":ke(s,"Lightbox"),style:{...t.fade!==je.animation.fade?{[we("fade_animation_duration")]:`${g}ms`}:null,...t.easing.fade!==je.animation.easing.fade?{[we("fade_animation_timing_function")]:t.easing.fade}:null,...n.root},onFocus:e=>{m.current||(m.current=e.relatedTarget)}},e),i.root||document.body):null});const nn=ze("root",function({children:e}){return r.createElement(r.Fragment,null,e)});const rn=ze(G,function({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:o}){const{close:a,setToolbarWidth:i}=jt(),{setContainerRef:l,containerRect:s}=Et();return yt(()=>{i(null==s?void 0:s.width)},[i,null==s?void 0:s.width]),r.createElement("div",{ref:l,style:o.toolbar,className:be(Ee(G,u))},null==e?void 0:e.map(e=>e===ae?t?t():r.createElement(ct,{key:ae,label:"Close",icon:pt,renderIcon:n,onClick:a}):e));var u});function on(e,t){var n;return r.createElement(e.module.component,{key:e.module.name,...t},null===(n=e.children)||void 0===n?void 0:n.map(e=>on(e,t)))}function an(e,t={}){const{easing:n,...r}=e,{easing:o,...a}=t;return{easing:{...n,...o},...r,...a}}function ln({carousel:e,animation:t,render:n,toolbar:o,controller:a,noScroll:i,on:l,plugins:s,slides:u,index:c,...d}){const{animation:f,carousel:p,render:m,toolbar:h,controller:v,noScroll:g,on:y,slides:b,index:w,plugins:E,...x}=je,{config:k,augmentation:S}=function(e,t=[],n=[]){let r=e;const o=e=>{const t=[...r];for(;t.length>0;){const n=t.pop();if((null==n?void 0:n.module.name)===e)return!0;(null==n?void 0:n.children)&&t.push(...n.children)}return!1},a=(e,t)=>{r=""!==e?Be(r,e,e=>[Ve(t,[e])]):[Ve(t,r)]},i=(e,t)=>{r=Be(r,e,e=>[Ve(e.module,[Ve(t,e.children)])])},l=(e,t,n)=>{r=Be(r,e,e=>{var r;return[Ve(e.module,[...n?[Ve(t)]:[],...null!==(r=e.children)&&void 0!==r?r:[],...n?[]:[Ve(t)]])]})},s=(e,t,n)=>{r=Be(r,e,e=>[...n?[Ve(t)]:[],e,...n?[]:[Ve(t)]])},u=e=>{i(q,e)},c=(e,t)=>{r=Be(r,e,e=>[Ve(t,e.children)])},d=e=>{r=Be(r,e,e=>e.children)},f=e=>{n.push(e)};return t.forEach(e=>{e({contains:o,addParent:a,append:i,addChild:l,addSibling:s,addModule:u,replace:c,remove:d,augment:f})}),{config:r,augmentation:e=>n.reduce((e,t)=>t(e),e)}}([Ve(tn,[Ve(Jt,[Ve(zt,[Ve($t),Ve(rn),Ve(Kt)])])])],s||E),A=S({animation:an(f,t),carousel:{...p,...e},render:{...m,...n},toolbar:{...h,...o},controller:{...v,...a},noScroll:{...g,...i},on:{...y,...l},...x,...d});return A.open?r.createElement(et,{...A},r.createElement(it,{slides:u||b,index:Ne(c||w)},r.createElement(ut,null,r.createElement(Xe,null,r.createElement(We,null,on(Ve(nn,k),A)))))):null}var sn=n(5072),un=n.n(sn),cn=n(7825),dn=n.n(cn),fn=n(7659),pn=n.n(fn),mn=n(5056),hn=n.n(mn),vn=n(540),gn=n.n(vn),yn=n(1113),bn=n.n(yn),wn=n(6653),En={};En.styleTagTransform=bn(),En.setAttributes=hn(),En.insert=pn().bind(null,"head"),En.domAPI=dn(),En.insertStyleElement=gn();un()(wn.A,En);wn.A&&wn.A.locals&&wn.A.locals;function xn(e){var t=(0,E.d4)(k.fF),n=(0,r.useState)(!1),o=(0,F.A)(n,2),a=o[0],i=o[1];return r.createElement("figure",{className:"figure"},r.createElement("img",{style:{cursor:"pointer"},className:"img-thumbnail",onClick:function(){return i(!0)},src:e.imgSrc}),r.createElement("figcaption",{className:"figure-caption"},(0,w.pw)("Click to view in full screen",t)),r.createElement(ln,{styles:{root:{zIndex:"999999999"}},open:a,carousel:{finite:!0},slides:[{src:e.imgSrc}],close:function(){return i(!1)},render:{buttonPrev:function(){return null},buttonNext:function(){return null}}}))}xn.propTypes={imgSrc:C().string.isRequired};const kn=(0,r.memo)(xn);function Sn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sn=function(){return!!e})()}var An=function(e){function t(e){var n,r,o,a;return(0,s.A)(this,t),r=this,o=t,a=[e],o=(0,d.A)(o),n=(0,c.A)(r,Sn()?Reflect.construct(o,a||[],(0,d.A)(r).constructor):o.apply(r,a)),(0,l.A)(n,"IMG_DIRECTORY","google_cloud"),n}return(0,f.A)(t,e),(0,u.A)(t,[{key:"imgSrc",value:function(e){return this.props.constants.psBaseUrl+"/modules/"+this.props.constants.moduleName+"/views/img/tutorials/"+this.IMG_DIRECTORY+"/"+e+".png"}},{key:"getSteps",value:function(){var e=this.props.translations;return[r.createElement(r.Fragment,null,r.createElement("h3",{className:"mt-2"},(0,w.pw)("Video tutorial",e)),r.createElement("iframe",{width:"560",height:"315",src:"https://www.youtube.com/embed/RQaVKYPs9P8",title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),r.createElement("div",{className:"mt-5"},r.createElement("h3",null,"1."),r.createElement("ul",null,r.createElement("li",{className:"font-weight-bold"},(0,w.pw)("You must have a Google Cloud account before starting.",e),r.createElement("a",{className:"p-0",target:"_blank",rel:"noopener noreferrer",href:this.props.provider.informations.registration_url}," ",(0,w.pw)("Click here",e))," ",(0,w.pw)("to create one.",e)),r.createElement("li",{className:"font-weight-bold"},r.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://console.cloud.google.com/getting-started"},(0,w.pw)("Go to the Google Cloud dashboard",e)))))),r.createElement(r.Fragment,null,r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"2. ",(0,w.pw)('Click on "Select a project"',e)),r.createElement(kn,{imgSrc:this.imgSrc(1)})),r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"3. ",(0,w.pw)('Click on "New project"',e)),r.createElement(kn,{imgSrc:this.imgSrc(2)})))),r.createElement(r.Fragment,null,r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"4. ",(0,w.pw)("Create a project",e)),r.createElement(kn,{imgSrc:this.imgSrc(3)})),r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"5. ",(0,w.pw)("Select the project",e)),r.createElement(kn,{imgSrc:this.imgSrc(4)})))),r.createElement(r.Fragment,null,r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"6. ",(0,w.pw)('Click on "APIs & Services"',e)),r.createElement(kn,{imgSrc:this.imgSrc(5)})),r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"7. ",(0,w.pw)('Click on "Enable APIs and Services"',e)),r.createElement(kn,{imgSrc:this.imgSrc(6)})))),r.createElement(r.Fragment,null,r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"8. ",(0,w.pw)('Search and select "Cloud Translation API"',e)),r.createElement(kn,{imgSrc:this.imgSrc(7)})),r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"9. ",(0,w.pw)('Enable "Cloud Translation API',e)),r.createElement(kn,{imgSrc:this.imgSrc(8)})))),r.createElement(r.Fragment,null,r.createElement(R.A,{variant:"info"},(0,w.pw)("You can skip these two steps if you already have a billing account in your Google Cloud account.",e)),r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"10."),r.createElement(kn,{imgSrc:this.imgSrc(9)})),r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"11."),r.createElement(kn,{imgSrc:this.imgSrc(10)})))),r.createElement(r.Fragment,null,r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"12."),r.createElement(kn,{imgSrc:this.imgSrc(11)})),r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"13. ",(0,w.pw)("Create an API key",e)),r.createElement(kn,{imgSrc:this.imgSrc(12)})))),r.createElement(r.Fragment,null,r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-12",style:{maxWidth:"97%"}},r.createElement("h3",null,"14. ",(0,w.pw)("Copy and enter it in the module",e)),r.createElement(kn,{imgSrc:this.imgSrc(13)}))))]}},{key:"render",value:function(){return r.createElement(H,{onClose:this.props.onClose,steps:this.getSteps()})}}])}(r.Component);An.propTypes={provider:C().object.isRequired,onClose:C().func.isRequired};const Cn=(0,E.Ng)(function(e){return{translations:(0,k.fF)(e),constants:e.constants}})(An);function _n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_n=function(){return!!e})()}var On=function(e){function t(e){var n,r,o,a;return(0,s.A)(this,t),r=this,o=t,a=[e],o=(0,d.A)(o),n=(0,c.A)(r,_n()?Reflect.construct(o,a||[],(0,d.A)(r).constructor):o.apply(r,a)),(0,l.A)(n,"IMG_DIRECTORY","microsoft_azure"),n}return(0,f.A)(t,e),(0,u.A)(t,[{key:"imgSrc",value:function(e){return this.props.constants.psBaseUrl+"/modules/"+this.props.constants.moduleName+"/views/img/tutorials/"+this.IMG_DIRECTORY+"/"+e+".png"}},{key:"getSteps",value:function(){var e=this.props.translations;return[r.createElement(r.Fragment,null,r.createElement("h3",{className:"mt-2"},(0,w.pw)("Video tutorial",e)),r.createElement("iframe",{width:"560",height:"315",src:"https://www.youtube.com/embed/aXVr39LnpOE",title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),r.createElement("div",{className:"mt-5"},r.createElement("h3",null,"1."),r.createElement("ul",null,r.createElement("li",{className:"font-weight-bold"},(0,w.pw)("You must have a Microsoft Azure account before starting.",e),r.createElement("a",{className:"p-0",target:"_blank",rel:"noopener noreferrer",href:this.props.provider.informations.registration_url}," ",(0,w.pw)("Click here",e))," ",(0,w.pw)("to create one.",e)),r.createElement("li",{className:"font-weight-bold"},r.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://portal.azure.com"},(0,w.pw)("Go to the Microsoft Azure dashboard",e)))))),r.createElement(r.Fragment,null,r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"2. ",(0,w.pw)('Click on "Create a ressource"',e)),r.createElement(kn,{imgSrc:this.imgSrc(1)})),r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"3. ",(0,w.pw)('Search "Translator text"',e)),r.createElement(kn,{imgSrc:this.imgSrc(2)})))),r.createElement(r.Fragment,null,r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"4. ",(0,w.pw)('Click on "Create"',e)),r.createElement(kn,{imgSrc:this.imgSrc(3)})),r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"5. ",(0,w.pw)('Fill in the required fields and click on "Review + create"',e)),r.createElement(kn,{imgSrc:this.imgSrc(4)})))),r.createElement(r.Fragment,null,r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"6. ",(0,w.pw)('Click on "Create"',e)),r.createElement(kn,{imgSrc:this.imgSrc(5)})),r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"7. ",(0,w.pw)("Go to ressource",e)),r.createElement(kn,{imgSrc:this.imgSrc(6)})))),r.createElement(r.Fragment,null,r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"8. ",(0,w.pw)('Click on "Keys and Endpoint"',e)),r.createElement(kn,{imgSrc:this.imgSrc(7)})),r.createElement("div",{className:"col-md-6",style:{maxWidth:"45%"}},r.createElement("h3",null,"9. ",(0,w.pw)("Copy KEY 1 enter it in the module",e)),r.createElement(kn,{imgSrc:this.imgSrc(8)}))))]}},{key:"render",value:function(){return r.createElement(H,{onClose:this.props.onClose,steps:this.getSteps()})}}])}(r.Component);On.propTypes={provider:C().object.isRequired,onClose:C().func.isRequired};const Nn=(0,E.Ng)(function(e){return{translations:(0,k.fF)(e),constants:e.constants}})(On);function Pn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pn=function(){return!!e})()}var Tn=function(e){function t(e){var n,r,o,a;return(0,s.A)(this,t),r=this,o=t,a=[e],o=(0,d.A)(o),n=(0,c.A)(r,Pn()?Reflect.construct(o,a||[],(0,d.A)(r).constructor):o.apply(r,a)),(0,l.A)(n,"IMG_DIRECTORY","dingedi"),n}return(0,f.A)(t,e),(0,u.A)(t,[{key:"imgSrc",value:function(e){return this.props.constants.psBaseUrl+"/modules/"+this.props.constants.moduleName+"/views/img/tutorials/"+this.IMG_DIRECTORY+"/"+e+".png"}},{key:"getSteps",value:function(){var e=this.props.translations;return[r.createElement(r.Fragment,null,r.createElement("h3",null,"1. ",r.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:this.props.provider.informations.registration_url},(0,w.pw)("Access your invoices on PrestaShop Addons",e))),r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-12",style:{maxWidth:"95%"}},r.createElement("h3",null,"2. ",(0,w.pw)("Copy the order ID of the module",e)),r.createElement(kn,{imgSrc:this.imgSrc(1)}))))]}},{key:"render",value:function(){return r.createElement(H,{onClose:this.props.onClose,steps:this.getSteps()})}}])}(r.Component);Tn.propTypes={provider:C().object.isRequired,onClose:C().func.isRequired};const Rn=(0,E.Ng)(function(e){return{translations:(0,k.fF)(e),constants:e.constants}})(Tn);function In(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(In=function(){return!!e})()}var Mn=function(e){function t(e){var n,r,o,a;return(0,s.A)(this,t),r=this,o=t,a=[e],o=(0,d.A)(o),n=(0,c.A)(r,In()?Reflect.construct(o,a||[],(0,d.A)(r).constructor):o.apply(r,a)),(0,l.A)(n,"IMG_DIRECTORY","deepl"),n}return(0,f.A)(t,e),(0,u.A)(t,[{key:"imgSrc",value:function(e){return this.props.constants.psBaseUrl+"/modules/"+this.props.constants.moduleName+"/views/img/tutorials/"+this.IMG_DIRECTORY+"/"+e+".png"}},{key:"getSteps",value:function(){var e=this.props.translations;return[r.createElement(r.Fragment,null,r.createElement("h3",null,"1. ",r.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.deepl.com/pro-account/summary"},(0,w.pw)("Access your DeepL API account",e))),r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-12",style:{maxWidth:"95%"}},r.createElement("h3",null,"2. ",(0,w.pw)("Copy the API Key",e)),r.createElement(kn,{imgSrc:this.imgSrc(1)}))))]}},{key:"render",value:function(){return r.createElement(H,{onClose:this.props.onClose,steps:this.getSteps()})}}])}(r.Component);Mn.propTypes={provider:C().object.isRequired,onClose:C().func.isRequired};const Fn=(0,E.Ng)(function(e){return{translations:(0,k.fF)(e),constants:e.constants}})(Mn);function Ln(){var e=(0,E.d4)(k.fF),t=(0,E.d4)(k.VF);return(0,E.d4)(k.JX)?r.createElement(R.A,{variant:"success"},r.createElement("p",{style:{padding:0}},(0,w.pw)("You benefit from faster translation speed.",e))):t?r.createElement(R.A,{variant:"success"},r.createElement("div",{style:{padding:0},className:"mb-1"},(0,i.A)(Array(5)).map(function(e,t){return r.createElement("i",{key:t,style:{color:"#f2bb3a",fontSize:"13px"},className:"material-icons"},"star")})),r.createElement("p",{style:{padding:0}},(0,w.pw)("Leave a review on our module and instantly get better translation speed",e)),r.createElement("a",{className:"d-block mt-1",style:{padding:0},href:"https://addons.prestashop.com/ratings.php",target:"_blank"},r.createElement(g.A,{variant:"outline-primary"},(0,w.pw)("Leave a review",e)))):r.createElement(r.Fragment,null)}const Dn=(0,r.memo)(Ln);function jn(e){var t=(0,E.d4)(k.fF),n=(0,E.d4)(P.c),o=(0,r.useState)(!1),a=(0,F.A)(o,2),i=a[0],l=a[1];return r.createElement(L.A,{placement:"top",overlay:r.createElement(D.A,null,(0,w.pw)("Check that the API key is valid. This will consume 2 characters.",t))},r.createElement(g.A,{onClick:function(){l(!0);var t={apiKeys:e.translationsProviders.providers.map(function(e){return{key:e.key,api_key:e.api_key,configuration:e.configuration}}),defaultProvider:e.provider.value};$.ajax({async:!0,type:"POST",url:(0,w.fN)("GlobalTestApiKey",n),data:{translation_data:t},dataType:"json",success:function(e){var t;$.growl.notice({title:"Success",message:null!==(t=null==e?void 0:e.message)&&void 0!==t?t:""}),l(!1)},error:function(e){var t,n;$.growl.error({title:"Error",message:null!==(t=null==e||null===(n=e.responseJSON)||void 0===n?void 0:n.message)&&void 0!==t?t:""}),l(!1)}})},variant:"secondary",size:"xs",className:"ml-1 mb-3",disabled:i},i&&r.createElement("div",{style:{marginRight:"5px"},className:"icon-spin icon-spinner"}),(0,w.pw)("Test the API key",t)))}jn.propTypes={provider:C().object.isRequired,translationsProviders:C().object.isRequired};const zn=jn;var Vn=["ref"];function Un(e){e.translationsProviders;var t=e.provider,n=(0,E.d4)(k.fF);return r.createElement("div",{className:"row mt-3"},r.createElement("div",{className:"col-md-4"},r.createElement("label",{className:"d-block",htmlFor:"dg-deepl-plan"},(0,w.pw)("Plan",n)),r.createElement("select",{id:"dg-deepl-plan",value:t.configuration.plan,className:"form-control d-inline-block ml-1",style:{width:"auto"},onChange:function(n){return e.onInputChange(t.value,{configuration:{plan:n.target.value}})}},r.createElement("option",{value:"api-free"},"DeepL API Free"),r.createElement("option",{value:"api"},"DeepL API Pro"))),r.createElement("div",{className:"col-md-1"}),r.createElement("div",{className:"col-md-4"},r.createElement("label",{className:"d-block",htmlFor:"dg-deepl-formality"},(0,w.pw)("Formality",n),r.createElement(L.A,{placement:"top",overlay:r.createElement(D.A,{id:"tooltip-top"},(0,w.pw)("Sets whether the translated text should lean towards formal or informal language for supported languages",n)," (DE, FR, IT, ES, NL, PL, PT, RU)")},function(e){var t=e.ref,n=(0,M.A)(e,Vn);return r.createElement("a",(0,I.A)({},n,{ref:t,href:"#",className:"toolbar-button"}),r.createElement("i",{className:"material-icons",style:{fontSize:"19px",marginLeft:"2px",marginTop:"-3px"}},"help"))})),r.createElement("select",{id:"dg-deepl-formality",value:t.configuration.formality,className:"form-control d-inline-block ml-1",style:{width:"auto"},onChange:function(n){return e.onInputChange(t.value,{configuration:{formality:n.target.value}})}},r.createElement("option",{value:"default"},(0,w.pw)("Default",n)),r.createElement("option",{value:"more"},(0,w.pw)("Formal",n)),r.createElement("option",{value:"less"},(0,w.pw)("Informal",n)))))}const Bn=(0,r.memo)(Un);var Hn=["-","australiaeast","brazilsouth","canadacentral","centralindia","centralus","centraluseuap","eastasia","eastus","eastus2","francecentral","japaneast","japanwest","koreacentral","northcentralus","northeurope","southcentralus","southeastasia","uksouth","westcentralus","westeurope","westus","westus2","southafricanorth"];function $n(e){e.translationsProviders;var t=e.provider,n=(0,E.d4)(k.fF);return r.createElement("div",{className:"row mt-3"},r.createElement("div",{className:"col-md-4"},r.createElement("label",{className:"d-block",htmlFor:"dg-microsoft-server"},(0,w.pw)("Server",n)),r.createElement("select",{id:"dg-microsoft-server",value:t.configuration.server,className:"form-control d-inline-block ml-1",style:{width:"auto"},onChange:function(n){return e.onInputChange(t.value,{configuration:{server:n.target.value}})}},n.api_keys.microsoftProvider.map(function(e,t){return r.createElement("option",{key:t,value:e.value},e.label)}))),r.createElement("div",{className:"col-md-4 col-md-push-1"},r.createElement("label",{className:"d-block",htmlFor:"dg-microsoft-location"},(0,w.pw)("Location",n)),r.createElement("select",{id:"dg-microsoft-location",value:t.configuration.location,className:"form-control d-inline-block ml-1",style:{width:"auto"},onChange:function(n){return e.onInputChange(t.value,{configuration:{location:n.target.value}})}},Hn.map(function(e,t){return r.createElement("option",{key:t,value:e},e)}))))}const Wn=(0,r.memo)($n);function qn(e){e.translationsProviders;var t=e.provider,n=(0,E.d4)(k.fF);return r.createElement("div",{className:"row mt-3"},r.createElement("div",{className:"col-md-12"},r.createElement(V,{onChange:function(n){return e.onInputChange(t.value,{configuration:{folderId:n.target.value}})},id:"provider-folderid",value:t.configuration.folderId,label:(0,w.pw)("Folder ID",n),placeholder:(0,w.pw)("Folder ID",n)})))}const Kn=(0,r.memo)(qn);function Gn(e){var t=(0,E.d4)(k.fF),n=(e.translationsProviders,e.provider);return r.createElement("div",null,r.createElement("div",{className:"row mt-4"},r.createElement("div",{className:"col-md-4"},r.createElement("label",{className:"d-block",htmlFor:"dg-chatgpt-model"},"Model"),r.createElement("select",{id:"dg-chatgpt-model",value:n.configuration.model,className:"form-control d-inline-block ml-1",style:{width:"auto"},onChange:function(t){return e.onInputChange(n.value,{configuration:{model:t.target.value}})}},r.createElement("option",{value:"gpt-3.5-turbo"},"ChatGPT 3.5 turbo"),r.createElement("option",{value:"gpt-4"},"GPT 4"),r.createElement("option",{value:"gpt-4-turbo"},"GPT 4 turbo"),r.createElement("option",{value:"gpt-4o"},"GPT 4o"),r.createElement("option",{value:"gpt-4o-mini"},"GPT-4o mini"),r.createElement("option",{value:"gpt-4.1"},"GPT 4.1"),r.createElement("option",{value:"gpt-4.1-mini"},"GPT 4.1 mini"),r.createElement("option",{value:"o3"},"o3"),r.createElement("option",{value:"o3-mini"},"o3-mini"),r.createElement("option",{value:"o4-mini"},"o4-mini"),r.createElement("option",{value:"gpt-5"},"GPT 5"),r.createElement("option",{value:"gpt-5-mini"},"GPT 5 mini"),r.createElement("option",{value:"gpt-5-nano"},"GPT 5 nano")))),r.createElement("div",{className:"row mt-4"},r.createElement("div",{className:"col-md-12"},r.createElement("div",{className:"mt-3"},r.createElement("div",{className:"form-group"},r.createElement("label",{htmlFor:""},(0,w.pw)("Temperature",t),r.createElement(L.A,{placement:"top",overlay:r.createElement(D.A,{id:"tooltip-top"},(0,w.pw)("What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.",t))},r.createElement("span",{style:{fontSize:"14px"},className:"ml-1 material-icons"},"info"))),r.createElement("input",{className:"form-control",type:"number",name:"dld",value:n.configuration.temperature,min:0,step:.1,onChange:function(t){return e.onInputChange(n.value,{configuration:{temperature:t.target.value}})},max:2}),r.createElement("label",{htmlFor:""},(0,w.pw)("Translation sentence",t),r.createElement(L.A,{placement:"top",overlay:r.createElement(D.A,{id:"tooltip-top"},(0,w.pw)("Be careful when changing this setting, the translation may no longer work.",t))},r.createElement("span",{style:{fontSize:"14px"},className:"ml-1 material-icons"},"warning"))),r.createElement("input",{className:"form-control",type:"text",name:"dld",onChange:function(t){return e.onInputChange(n.value,{configuration:{sentence:t.target.value}})},value:n.configuration.sentence}))))))}const Qn=(0,r.memo)(Gn);var Yn=n(9288);function Xn(e){var t=(0,E.d4)(P.c),n=(0,E.d4)(k.fF),o=(0,E.d4)(k.aR),a=(0,r.useState)(!1),i=(0,F.A)(a,2),l=i[0],s=i[1];return r.createElement(Yn.A,{translations:n,modalTitle:"",modalBody:r.createElement("div",{className:"mt-2 mb-4",style:{fontSize:"16px"}},r.createElement("div",{className:"mt-4 d-flex flex-column align-items-center justify-content-center"},!l&&r.createElement(r.Fragment,null,r.createElement("img",{height:80,src:t.psBaseUrl+"/modules/"+o+"/views/img/speed.png",alt:o+" speed",className:"mb-3"}),r.createElement("p",{style:{textAlign:"center"}},r.createElement("strong",null,(0,w.pw)("Get instantly a million characters for free to use the translation service of your choice by leaving a review on our module",n)),r.createElement("br",null),r.createElement("strong",null,(0,w.pw)("Also get better translation speed for",n)," Dingedi Free Translate")),r.createElement("a",{href:"https://addons.prestashop.com/ratings.php",target:"_blank"},r.createElement(g.A,{onClick:function(){s(!0)},variant:"primary"},(0,w.pw)("Leave a review",n)))),l&&r.createElement(r.Fragment,null,r.createElement("img",{width:"100%",src:t.psBaseUrl+"/modules/"+o+"/views/img/speed_help.png",alt:o+" speed help",className:"mb-3"}),r.createElement("p",{className:"mb-0",style:{textAlign:"center"}},r.createElement("strong",null,(0,w.pw)("Once your review is submitted, wait a few seconds and refresh the page to benefit from the offer.",n))),r.createElement("a",{className:"text-primary mb-4 mt-1",style:{fontSize:"12px"},href:"https://addons.prestashop.com/ratings.php",target:"_blank"},(0,w.pw)("Click here to reopen the page",n)),r.createElement(g.A,{onClick:function(){e.onSubmit()},variant:"primary"},(0,w.pw)("Refresh",n))))),showSubmitBtn:!1,showCancelBtn:!0,show:e.show,onHide:e.onHide,onSubmit:e.onSubmit})}function Jn(e){var t=e.provider,n=(0,E.d4)(k.fF),o=(0,E.d4)(k.JX),a=(0,r.useState)(!1),i=(0,F.A)(a,2),l=i[0],s=i[1];return r.createElement(r.Fragment,null,r.createElement("div",{className:"row mt-3"},r.createElement("div",{className:"col-md-12"},!o&&r.createElement(r.Fragment,null,r.createElement(R.A,{variant:"success"},r.createElement("strong",{className:"h3"},(0,w.pw)("Temporary offer",n)),r.createElement("p",{className:"mt-1"},(0,w.pw)("Get instantly a million characters for free to use the translation service of your choice by leaving a review on our module",n))),r.createElement(R.A,{variant:"info"},(0,w.pw)('Please configure "Dingedi Free Translate" and leave a review to benefit from this offer',n),r.createElement("br",null),r.createElement(g.A,{className:"mt-2",onClick:function(){s(!0)}},(0,w.pw)("Leave a review",n)))),o&&r.createElement(R.A,{variant:"success"},(0,w.pw)("You benefit from a million free characters",n)),r.createElement("label",{className:"d-block",htmlFor:"dg-microsoft-location"},(0,w.pw)("Service",n)),r.createElement("select",{id:"dg-freeofer-provider",value:t.configuration.provider,className:"form-control",style:{width:"auto"},onChange:function(n){return e.onInputChange(t.value,{configuration:{provider:n.target.value}})}},r.createElement("option",{value:"microsoft"},"Microsoft Translate"),r.createElement("option",{value:"google"},"Google Translate"),r.createElement("option",{value:"deepl"},"DeepL"),r.createElement("option",{value:"gpt-3.5-turbo"},"ChatGPT 3.5 turbo"),r.createElement("option",{value:"gpt-4"},"ChatGPT 4"),r.createElement("option",{value:"gpt-4-turbo"},"ChatGPT 4 turbo"),r.createElement("option",{value:"gpt-4o"},"ChatGPT 4o"),r.createElement("option",{value:"gpt-4o-mini"},"GPT-4o mini")))),r.createElement(Xn,{show:l,onHide:function(){s(!1)},onSubmit:function(){window.location.reload()}}))}const Zn=(0,r.memo)(Jn);function er(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(er=function(){return!!e})()}var tr=function(e){function t(e){var n,r,o,a;return(0,s.A)(this,t),r=this,o=t,a=[e],o=(0,d.A)(o),n=(0,c.A)(r,er()?Reflect.construct(o,a||[],(0,d.A)(r).constructor):o.apply(r,a)),(0,l.A)(n,"IMG_DIRECTORY","chatgpt"),n}return(0,f.A)(t,e),(0,u.A)(t,[{key:"imgSrc",value:function(e){return this.props.constants.psBaseUrl+"/modules/"+this.props.constants.moduleName+"/views/img/tutorials/"+this.IMG_DIRECTORY+"/"+e+".png"}},{key:"getSteps",value:function(){var e=this.props.translations;return[r.createElement(r.Fragment,null,r.createElement("h3",null,"1. ",r.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://platform.openai.com/account/api-keys"},(0,w.pw)("Access your OpenAPI account",e))),r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-12",style:{maxWidth:"95%"}},r.createElement("h3",null,"2. ",(0,w.pw)('Click on "Create new secret key"',e)),r.createElement(kn,{imgSrc:this.imgSrc(1)})))),r.createElement(r.Fragment,null,r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-6"},r.createElement("h3",null,"2. ",(0,w.pw)('Click on "Create key"',e)),r.createElement(kn,{imgSrc:this.imgSrc(2)})),r.createElement("div",{className:"col-md-6"},r.createElement("h3",null,"2. ",(0,w.pw)("Copy and save API key",e)),r.createElement(kn,{imgSrc:this.imgSrc(3)}))))]}},{key:"render",value:function(){return r.createElement(H,{onClose:this.props.onClose,steps:this.getSteps()})}}])}(r.Component);tr.propTypes={provider:C().object.isRequired,onClose:C().func.isRequired};const nr=(0,E.Ng)(function(e){return{translations:(0,k.fF)(e),constants:e.constants}})(tr);function rr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rr=function(){return!!e})()}var or=function(e){function t(e){var n,r,o,a;return(0,s.A)(this,t),r=this,o=t,a=[e],o=(0,d.A)(o),(n=(0,c.A)(r,rr()?Reflect.construct(o,a||[],(0,d.A)(r).constructor):o.apply(r,a))).state={showSetupWizard:{},form:{loading:!1}},n}return(0,f.A)(t,e),(0,u.A)(t,[{key:"showSetupWizard",value:function(e){this.setState({showSetupWizard:!1!==e&&e})}},{key:"getInputLabel",value:function(e){var t;return null!==(t={dingedi_v1:(0,w.pw)("PrestaShop Addons order ID",this.props.translations),yandex_v2:(0,w.pw)("API Key",this.props.translations)+" / IAM Token"}[e.value])&&void 0!==t?t:(0,w.pw)("API Key",this.props.translations)}},{key:"render",value:function(){var e=this;if(this.props.translations){var t,n,a,i,l,s,u,c,d=this.props,f=d.translations,p=d.provider,m=d.translationsProviders,h=d.hasReview,v=d.freeChars;return r.createElement(r.Fragment,null,r.createElement(o.A.Pane,{eventKey:p.key},r.createElement(T.A,{defaultActiveKey:p+"-configuration",id:"dg-"+p+"tabs"},r.createElement(o.A,{eventKey:p+"-configuration",title:(0,w.pw)("Configuration",f)},(null==p||null===(t=p.informations)||void 0===t?void 0:t.depreacated)&&r.createElement(R.A,{variant:"danger",className:"pr-2"},r.createElement("strong",null,(0,w.pw)("Message from",f)," ",p.label,":"),r.createElement("br",null),r.createElement("br",null),r.createElement("strong",null,'"',null==p||null===(n=p.informations)||void 0===n?void 0:n.depreacated,'"')),r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-6"},r.createElement("div",{className:"d-block mb-3"},["google_v2","microsoft_v3","dingedi_v1","deepl_v2","chatgpt"].includes(p.key)&&r.createElement(g.A,{onClick:function(){return e.showSetupWizard(p)},className:"mr-3 mb-3",size:"xs",variant:"primary"},(0,w.pw)("Tutorial",f),r.createElement("span",{className:"ml-2 material-icons"},"help")),r.createElement(zn,{provider:p,translationsProviders:m}),this.props.isProviderHideRecommandedParameters(p.key)&&this.props.getRecommandedParameters(p.key)&&r.createElement(g.A,{onClick:function(){return e.props.showRecommandedParametersModal()},className:"ml-1 mb-3",size:"xs",variant:"secondary"},(0,w.pw)("Recommanded parameters",f))),"dingedi_free_offer"!==p.value&&r.createElement(V,{onChange:function(t){return e.props.onInputChange(p.value,{api_key:t.target.value})},id:"provider-"+p.key,value:p.api_key,label:this.getInputLabel(p),placeholder:p.label}),"microsoft_v3"===p.value&&r.createElement(Wn,{provider:p,onInputChange:this.props.onInputChange,translationsProviders:m}),"yandex_v2"===p.value&&r.createElement(Kn,{provider:p,onInputChange:this.props.onInputChange,translationsProviders:m}),"deepl_v2"===p.value&&r.createElement(Bn,{provider:p,onInputChange:this.props.onInputChange,translationsProviders:m}),"chatgpt"===p.value&&r.createElement(Qn,{provider:p,onInputChange:this.props.onInputChange,translationsProviders:m}),"dingedi_free_offer"===p.value&&r.createElement(Zn,{provider:p,onInputChange:this.props.onInputChange,translationsProviders:m})),r.createElement("div",{className:"col-md-6"},r.createElement("div",null,!(0,w.cc)()&&"dingedi_v1"===p.value&&r.createElement(Dn,null),(null==p||null===(a=p.informations)||void 0===a?void 0:a.trial_offer)&&r.createElement(R.A,{className:"mt-3 font-weight-bold",variant:"success"},p.label," ",(0,w.pw)("offers a trial offer: %s credit for %s months",f,null==p?void 0:p.informations.trial_offer.ammount,null==p?void 0:p.informations.trial_offer.months_duration)),(null==p||null===(i=p.informations)||void 0===i?void 0:i.free_offer)&&r.createElement(R.A,{className:"mt-3 font-weight-bold",variant:"success"},p.label," ",(0,w.pw)("offers a free offer with a quota of %s characters per month",f,null==p?void 0:p.informations.free_offer)),r.createElement("div",{className:"mt-1"},(null==p||null===(l=p.informations)||void 0===l?void 0:l.pricing_url)&&r.createElement("a",{style:{fontSize:"15px"},target:"_blank",rel:"noopener noreferrer",className:"mt-3 mr-2 d-inline-block font-weight-bold",href:null==p?void 0:p.informations.pricing_url},(0,w.pw)("Pricing options",f),r.createElement("i",{className:"icon-external-link-sign"})),(null==p||null===(s=p.informations)||void 0===s?void 0:s.free_monthly_quota)&&r.createElement("span",{className:"font-weight-bold text-muted"},r.createElement("u",null,"(",(0,w.pw)("Free monthly quota of %s characters",f,null==p?void 0:p.informations.free_monthly_quota),")")),(null==p||null===(u=p.informations)||void 0===u?void 0:u.registration_url)&&r.createElement("a",{style:{fontSize:"15px"},target:"_blank",rel:"noopener noreferrer",className:"mt-1 d-block font-weight-bold",href:null==p?void 0:p.informations.registration_url},(0,w.pw)("Obtain an API key",f),r.createElement("i",{className:"icon-external-link-sign"})),"dingedi_v1"===p.value&&r.createElement(r.Fragment,null,h&&Number(v)<=0&&r.createElement(R.A,{variant:"warning",className:"mt-2"},r.createElement(r.Fragment,null,(0,w.pw)("You have not completed the free quota offer or your free quota has been fully used",f))),r.createElement(R.A,{variant:"info",className:"mt-2"},r.createElement(r.Fragment,null,(0,w.pw)("We offer a free and unlimited translation service. To be able to use this service, please configure your PrestaShop Addons order ID.",f))))))))),p.languages&&r.createElement(o.A,{eventKey:p+"-iso",title:(0,w.pw)("Supported languages",f)+" ("+p.iso.length+")"},r.createElement("h4",null,(0,w.pw)("List of ISO codes accepted for translation",f)),r.createElement("table",{className:"table"},r.createElement("thead",null,r.createElement("tr",null,r.createElement("th",{className:"font-weight-bold"},(0,w.pw)("Language",f)),r.createElement("th",{className:"font-weight-bold"},(0,w.pw)("Code ISO",f)))),r.createElement("tbody",null,(null==p||null===(c=p.languages)||void 0===c?void 0:c.length)&&p.languages.map(function(e){return e=Object.entries(e)[0],r.createElement("tr",{key:e[0]},r.createElement("td",null,e[0]),r.createElement("td",null,e[1]))})))))),"google_v2"===this.state.showSetupWizard.key&&r.createElement(Cn,{provider:this.state.showSetupWizard,onClose:function(){return e.showSetupWizard(!1)}}),"microsoft_v3"===this.state.showSetupWizard.key&&r.createElement(Nn,{provider:this.state.showSetupWizard,onClose:function(){return e.showSetupWizard(!1)}}),"dingedi_v1"===this.state.showSetupWizard.key&&r.createElement(Rn,{provider:this.state.showSetupWizard,onClose:function(){return e.showSetupWizard(!1)}}),"deepl_v2"===this.state.showSetupWizard.key&&r.createElement(Fn,{provider:this.state.showSetupWizard,onClose:function(){return e.showSetupWizard(!1)}}),"chatgpt"===this.state.showSetupWizard.key&&r.createElement(nr,{provider:this.state.showSetupWizard,onClose:function(){return e.showSetupWizard(!1)}}))}return r.createElement(y.A,null)}}])}(r.Component);const ar=(0,E.Ng)(function(e){return{module_name:(0,k.aR)(e),translations:(0,k.fF)(e),constants:(0,P.c)(e),hasReview:(0,k.JX)(e),freeChars:(0,k.mv)(e)}})(or);function ir(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 lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ir(Object(n),!0).forEach(function(t){(0,l.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sr=function(){return!!e})()}var ur=["yandex_v15","lectoai_v1","yandex_v2","libretranslate_v1"],cr=function(e){function t(e){var n,r,o,a;return(0,s.A)(this,t),r=this,o=t,a=[e],o=(0,d.A)(o),(n=(0,c.A)(r,sr()?Reflect.construct(o,a||[],(0,d.A)(r).constructor):o.apply(r,a))).getRecommandedParameters=n.getRecommandedParameters.bind(n),n.isProviderHideRecommandedParameters=n.isProviderHideRecommandedParameters.bind(n),n.onInputChange=n.onInputChange.bind(n),n.state={showSetupWizard:{},hideRecommandedParameters:[],showApplyRecommandedParametersModal:!1,recommandedParameters:{},translationsProviders:e.translationsProviders,showMore:!1,form:{loading:!1}},n}return(0,f.A)(t,e),(0,u.A)(t,[{key:"handleSubmit",value:function(){var e,t,n=this;this.setState({form:{loading:!0}});var r=this.state.translationsProviders,o=null!==(e=null===(t=this.state.form)||void 0===t?void 0:t.per_request)&&void 0!==e?e:null,a={apiKeys:r.providers.map(function(e){return{key:e.key,api_key:e.api_key,configuration:e.configuration}}),defaultProvider:r.default};null!==o&&(a.per_request=o),$.ajax({async:!0,type:"POST",url:(0,w.fN)("GlobalSaveApiKeys",this.props.constants),data:{translation_data:a},dataType:"json",success:function(e){$.growl.notice({title:"Success",message:e.message}),n.props.dispatch((0,x._s)(r)),null!==o&&n.props.dispatch((0,x.aL)(o)),n.setState({form:{loading:!1}})},error:function(e){var t;$.growl.error({title:"Error",message:null!==(t=e.responseJSON.message)&&void 0!==t?t:""}),n.setState({form:{loading:!1}})}})}},{key:"showRecommandedParametersModal",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getRecommandedParameters(e);(t&&!1!==n||!1!==n&&!this.isProviderHideRecommandedParameters(e))&&this.setState({showApplyRecommandedParametersModal:!0,recommandedParameters:n})}},{key:"isProviderHideRecommandedParameters",value:function(e){return this.state.hideRecommandedParameters.includes(e)}},{key:"onDefaultProviderChange",value:function(e){this.showRecommandedParametersModal(e),this.setState(function(t){return{translationsProviders:lr(lr({},t.translationsProviders),{},{default:e})}})}},{key:"getRecommandedParameters",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null===e&&(e=this.state.translationsProviders.default);var t=Number(this.props.translationsProviders.per_request);return"dingedi_v1"===e&&t>2?{per_request:2}:"dingedi_v1"!==e&&10!==t&&{per_request:10}}},{key:"applyRecommandedParameters",value:function(){var e=this;this.setState(function(t){return{showApplyRecommandedParametersModal:!1,form:lr(lr({},t.form),e.getRecommandedParameters())}})}},{key:"hideRecommandedParametersModal",value:function(){var e=this;this.setState(function(t){return{hideRecommandedParameters:(0,i.A)(new Set([].concat((0,i.A)(t.hideRecommandedParameters),[e.state.translationsProviders.default]))),showApplyRecommandedParametersModal:!1}})}},{key:"onInputChange",value:function(e,t){"dingedi_v1"===e&&null!=t&&t.api_key&&(t.api_key=t.api_key.split("").filter(function(e){return["0","1","2","3","4","5","6","7","8","9"].includes(e)}).join("")),this.setState(function(n){return{translationsProviders:lr(lr({},n.translationsProviders),{},(0,l.A)((0,l.A)({},e,lr(lr({},n.translationsProviders[e]),t)),"providers",n.translationsProviders.providers.map(function(n){return n.key===e&&(n="object"===(0,a.A)(t[Object.keys(t)])?lr(lr({},n),{},(0,l.A)({},Object.keys(t)[0],lr(lr({},n[Object.keys(t)[0]]),t[Object.keys(t)[0]]))):lr(lr({},n),t)),n})))}})}},{key:"showSetupWizard",value:function(e){this.setState({showSetupWizard:!1!==e&&e})}},{key:"showMore",value:function(){this.setState({showMore:!this.state.showMore})}},{key:"getInShowMore",value:function(){var e=this;return ur.filter(function(t){return t!==e.props.defaultProvider.key})}},{key:"render",value:function(){var e=this;if(this.props.translations){var t=this.state.translationsProviders,n=this.props,a=n.translations,i=n.module_name,l=t.providers.map(function(e){return lr({label:e.title,value:e.key},e)});return r.createElement(r.Fragment,null,r.createElement("div",{className:"mt-3"},r.createElement("form",null,r.createElement(o.A.Container,{defaultActiveKey:t.default},r.createElement(p.A,null,r.createElement(m.A,{md:3},r.createElement(h.A,{variant:"pills",className:"flex-column"},l.map(function(n,o){return!1===e.state.showMore&&e.getInShowMore().includes(n.value)?null:r.createElement(h.A.Item,{key:o},r.createElement(h.A.Link,{eventKey:n.key},r.createElement("img",{height:20,src:e.props.constants.psBaseUrl+"/modules/"+i+"/views/img/"+n.value+".png",alt:n.label}),r.createElement("label",{className:"ml-2 mb-0",htmlFor:"provider-"+n.key,style:{fontSize:"15px"}},n.label," ",r.createElement("span",{style:{fontSize:"10px"},className:"text-secondary"},"v",n.api_version),t.default===n.key&&r.createElement(r.Fragment,null,r.createElement("i",{className:"material-icons text-primary ml-2",style:{fontSize:"21px"}},"check_circle"),""===n.api_key.trim()&&r.createElement(r.Fragment,null,r.createElement("i",{className:"material-icons text-danger ml-2",style:{fontSize:"21px"}},"warning"))),"dingedi_free_offer"===n.key&&r.createElement(v.A,{className:"ml-2 mt-1",variant:"success"},(0,w.pw)("temporary offer",a)))))})),r.createElement(h.A.Item,null,r.createElement(h.A.Link,{onClick:function(){return e.showMore()}},this.state.showMore&&(0,w.pw)("Hide",a),!this.state.showMore&&(0,w.pw)("Show more",a)," (",this.getInShowMore().length,")"))),r.createElement(m.A,{md:9},r.createElement(o.A.Content,{className:"pt-0"},l.map(function(n){return r.createElement(ar,{provider:n,key:n.key,translationsProviders:t,isProviderHideRecommandedParameters:e.isProviderHideRecommandedParameters,getRecommandedParameters:e.getRecommandedParameters,showRecommandedParametersModal:function(){return e.showRecommandedParametersModal(n.key,!0)},onInputChange:e.onInputChange})}))))))),r.createElement("div",{className:"form-select mt-4",style:{width:"400px"}},r.createElement("label",null,(0,w.pw)("Service to use",a)),r.createElement(b.A,{closeMenuOnSelect:!0,onSelect:function(t){return e.onDefaultProviderChange(t.value)},selectedOptions:l.filter(function(e){return e.value===t.default})[0],options:l})),r.createElement(g.A,{disabled:this.state.form.loading,variant:"primary",className:"mt-3",onClick:function(){return e.handleSubmit()}},this.state.form.loading&&r.createElement("div",{style:{marginRight:"5px"},className:"icon-spin icon-spinner"}),(0,w.pw)("Save",a)),this.state.showApplyRecommandedParametersModal&&r.createElement(N,{recommandedParameters:this.getRecommandedParameters(),onApply:function(){return e.applyRecommandedParameters()},onClose:function(){return e.hideRecommandedParametersModal()}}))}return r.createElement(y.A,null)}}])}(r.Component);const dr=(0,E.Ng)(function(e){return{defaultProvider:(0,k.hZ)(e),module_name:(0,k.aR)(e),translations:(0,k.fF)(e),translationsProviders:(0,k.n$)(e),constants:(0,P.c)(e)}})(cr);var fr=n(5168),pr=["ref"];function mr(){var e,t=(0,E.d4)(k.fF),n=(0,E.d4)(k.n$),o=(0,E.wA)(),a=(0,fr.T)({per_request:null!==(e=n.per_request)&&void 0!==e?e:2},function(e){e.error||o((0,x.aL)(i.per_request))}),i=a.form,l=a.updateForm,s=a.handleSubmit,u=(0,r.useState)(!1),c=(0,F.A)(u,2),d=c[0],f=c[1];(0,r.useEffect)(function(){var e;l({per_request:null!==(e=n.per_request)&&void 0!==e?e:2})},[n.per_request]);var p=function(e){return![2,10,20].includes(Number(e))},m=function(){return p(i.per_request)||d?"custom":i.per_request},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"custom"===e?f(!0):(l({per_request:e}),f(!!t||p(e)))},v=d||"custom"===m();return r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-6"},r.createElement("div",{className:"form-group"},r.createElement(R.A,{variant:"warning"},(0,w.pw)("Please note that a translation speed that is too high for your chosen server or translation service may result in server errors.",t)),r.createElement("label",{className:"h3 mb-4 mt-2 d-inline-block",htmlFor:"dg-form-per-request"},(0,w.pw)("Translation speed",t),r.createElement(L.A,{placement:"top",overlay:r.createElement(D.A,{id:"tooltip-top"},(0,w.pw)("The value corresponds to the number of items (e.g. products) translated in each query.",t))},function(e){var t=e.ref,n=(0,M.A)(e,pr);return r.createElement("a",(0,I.A)({},n,{ref:t,href:"#",className:"toolbar-button"}),r.createElement("i",{className:"material-icons",style:{fontSize:"19px",marginLeft:"2px",marginTop:"-3px"}},"help"))})),r.createElement("select",{className:"form-control",value:m(),id:"dg-form-per-request",style:{width:"400px"},onChange:function(e){return h(e.target.value)}},r.createElement("option",{value:"2"},(0,w.pw)("Normal",t)," (2)"),r.createElement("option",{value:"10"},(0,w.pw)("Fast",t)," (10)"),r.createElement("option",{value:"20"},(0,w.pw)("Very fast",t)," (20)"),r.createElement("option",{value:"custom"},(0,w.pw)("Custom",t))),v&&r.createElement("div",{className:"form-group mt-3"},r.createElement("label",{htmlFor:"dg-form-custom-per-request"},(0,w.pw)("Custom value",t)," (1-100)"),r.createElement("input",{value:i.per_request,onChange:function(e){return h(e.target.value,!0)},className:"form-control",type:"number",min:1,max:100,style:{width:"200px"},id:"dg-form-custom-per-request"}))),r.createElement(g.A,{disabled:i.loading,variant:"primary",className:"mt-3",onClick:s},i.loading&&r.createElement("div",{style:{marginRight:"5px"},className:"icon-spin icon-spinner"}),(0,w.pw)("Save",t))))}const hr=function(e){return[r.createElement(o.A,{key:0,eventKey:"api-keys",title:(0,w.pw)("API Keys",e)},r.createElement(dr,null)),r.createElement(o.A,{key:1,eventKey:"translation-speed",title:(0,w.pw)("Translation speed",e)},r.createElement(mr,null))]}},1008:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(7387),o=n(6540),a=n(9425),i=n(7867),l=n(2014),s=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")},t}(o.Component);s.Container=a.A,s.Content=i.A,s.Pane=l.A;const u=s},1069:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=n(6540),s=n(6519),u=n(9703),c=["active","disabled","className","style","activeLabel","children"],d=["children"],f=l.forwardRef(function(e,t){var n=e.active,a=e.disabled,s=e.className,d=e.style,f=e.activeLabel,p=e.children,m=(0,o.A)(e,c),h=n||a?"span":u.A;return l.createElement("li",{ref:t,style:d,className:i()(s,"page-item",{active:n,disabled:a})},l.createElement(h,(0,r.A)({className:"page-link",disabled:a},m),p,n&&f&&l.createElement("span",{className:"sr-only"},f)))});f.defaultProps={active:!1,disabled:!1,activeLabel:"(current)"},f.displayName="PageItem";const p=f;function m(e,t,n){function r(e){var r=e.children,a=(0,o.A)(e,d);return l.createElement(f,a,l.createElement("span",{"aria-hidden":"true"},r||t),l.createElement("span",{className:"sr-only"},n))}return void 0===n&&(n=e),r.displayName=e,r}var h=m("First","«"),v=m("Prev","‹","Previous"),g=m("Ellipsis","…","More"),y=m("Next","›"),b=m("Last","»"),w=["bsPrefix","className","children","size"],E=l.forwardRef(function(e,t){var n=e.bsPrefix,a=e.className,u=e.children,c=e.size,d=(0,o.A)(e,w),f=(0,s.oU)(n,"pagination");return l.createElement("ul",(0,r.A)({ref:t},d,{className:i()(a,f,c&&f+"-"+c)}),u)});E.First=h,E.Prev=v,E.Ellipsis=g,E.Item=p,E.Next=y,E.Last=b;const x=E},1105:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=n(6540),s=n(6519),u=["bsPrefix","className","as"],c=["xl","lg","md","sm","xs"],d=l.forwardRef(function(e,t){var n=e.bsPrefix,a=e.className,d=e.as,f=void 0===d?"div":d,p=(0,o.A)(e,u),m=(0,s.oU)(n,"col"),h=[],v=[];return c.forEach(function(e){var t,n,r,o=p[e];if(delete p[e],"object"==typeof o&&null!=o){var a=o.span;t=void 0===a||a,n=o.offset,r=o.order}else t=o;var i="xs"!==e?"-"+e:"";t&&h.push(!0===t?""+m+i:""+m+i+"-"+t),null!=r&&v.push("order"+i+"-"+r),null!=n&&v.push("offset"+i+"-"+n)}),h.length||h.push(m),l.createElement(f,(0,r.A)({},p,{ref:t,className:i().apply(void 0,[a].concat(h,v))}))});d.displayName="Col";const f=d},1113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1244:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);function o(){return(0,r.useState)(null)}},1284:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(8394),o=n(5019);const a=function(e,t,n,a){return(0,r.Ay)(e,t,n,a),function(){(0,o.A)(e,t,n,a)}}},1313:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(3029),o=n(2901),a=n(388),i=n(3954),l=n(5501),s=n(6540),u=n(5498),c=n(1468),d=n(2532),f=n(3524),p=n(6545),m=n(5289);function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}var v=function(e){function t(){return(0,r.A)(this,t),e=this,n=t,o=arguments,n=(0,i.A)(n),(0,a.A)(e,h()?Reflect.construct(n,o||[],(0,i.A)(e).constructor):n.apply(e,o));var e,n,o}return(0,l.A)(t,e),(0,o.A)(t,[{key:"showUrlRewriteInfo",value:function(){return!1===this.props.moduleConfig.shopConfig.PS_REWRITING_SETTINGS}},{key:"showAccentedUrlCharsInfo",value:function(){return!1===this.props.moduleConfig.shopConfig.PS_ALLOW_ACCENTED_CHARS_URL&&this.props.moduleConfig.shopConfig.HAS_LANGUAGES_REQUIRE_ACCENTED_CHARS}},{key:"getSelectedProvider",value:function(){return this.props.defaultProvider}},{key:"showSelectedProviderNotConfiguredInfo",value:function(){return""===this.getSelectedProvider().api_key.trim()}},{key:"showInstallLanguageInfo",value:function(){var e;return 1===(null!==(e=this.props.moduleConfig.languages.length)&&void 0!==e?e:1)}},{key:"render",value:function(){var e=this.props.moduleConfig,t=e.translations,n=e.shopConfig;return s.createElement(s.Fragment,null,this.showSelectedProviderNotConfiguredInfo()&&s.createElement("div",{className:"alert alert-danger"},s.createElement("strong",{className:"pl-0"},(0,u.pw)("Please configure the selected translation service",t)," (",this.getSelectedProvider().title,")")),this.showInstallLanguageInfo()&&s.createElement("div",{className:"alert alert-warning"},s.createElement("strong",{className:"pl-0"},(0,u.pw)("Please install a language to translate in order to use the module",t)),s.createElement("a",{href:this.props.moduleConfig.add_language_link,target:"_blank"},(0,u.pw)("Click here",t))),s.createElement(p.A,{variant:"info",alertKey:"backupdb"},(0,u.pw)("Do not forget to make a backup of your database before starting the translation!",t),s.createElement("a",{href:this.props.moduleConfig.link_admin_db_backup,target:"_blank"},(0,u.pw)("Click here",t))),(this.showUrlRewriteInfo()||this.showAccentedUrlCharsInfo())&&s.createElement(p.A,{alertKey:"urlinfo",variant:"warning"},s.createElement("ul",null,this.showUrlRewriteInfo()&&s.createElement("li",null,(0,u.pw)("Friendly URLs are disabled, internal links in your content will not be translated.",t)),this.showAccentedUrlCharsInfo()&&s.createElement("li",null,(0,u.pw)("Accented URLs are disabled, urls will not be translated for languages using non-Latin characters.",t),s.createElement(d.A,{placement:"top",overlay:s.createElement(f.A,{id:"tooltip-top"},(0,u.pw)("Some installed languages use non-Latin characters:",t),s.createElement("ul",null,n.LANGUAGES_REQUIRE_ACCENTED_CHARS.map(function(e){return s.createElement("li",{key:e.id_lang},e.name)})))},s.createElement("a",{href:"#",className:"toolbar-button"},s.createElement("i",{className:"material-icons",style:{fontSize:"19px",marginLeft:"2px",marginTop:"-3px"}},"help")))),s.createElement("a",{className:"d-block mt-2",href:this.props.moduleConfig.link_admin_update_url_settings,target:"_blank"},(0,u.pw)("Change settings",t)))))}}])}(s.Component);const g=(0,c.Ng)(function(e){return{moduleConfig:e.moduleConfig,defaultProvider:(0,m.hZ)(e)}})(v)},1458:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o});var r=n(8168);function o(e){var t,n,o,a,i,l=e.enabled,s=e.enableEvents,u=e.placement,c=e.flip,d=e.offset,f=e.fixed,p=e.containerPadding,m=e.arrowElement,h=e.popperConfig,v=void 0===h?{}:h,g=function(e){var t={};return Array.isArray(e)?(null==e||e.forEach(function(e){t[e.name]=e}),t):e||t}(v.modifiers);return(0,r.A)({},v,{placement:u,enabled:l,strategy:f?"fixed":v.strategy,modifiers:(i=(0,r.A)({},g,{eventListeners:{enabled:s},preventOverflow:(0,r.A)({},g.preventOverflow,{options:p?(0,r.A)({padding:p},null==(t=g.preventOverflow)?void 0:t.options):null==(n=g.preventOverflow)?void 0:n.options}),offset:{options:(0,r.A)({offset:d},null==(o=g.offset)?void 0:o.options)},arrow:(0,r.A)({},g.arrow,{enabled:!!m,options:(0,r.A)({},null==(a=g.arrow)?void 0:a.options,{element:m})}),flip:(0,r.A)({enabled:!!c},g.flip)}),void 0===i&&(i={}),Array.isArray(i)?i:Object.keys(i).map(function(e){return i[e].name=e,i[e]}))})}},1468:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>te,Ng:()=>ee,d4:()=>ce,wA:()=>le});var r=n(6540),o=n(8418),a=r.version.startsWith("19"),i=Symbol.for(a?"react.transitional.element":"react.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=p,b=v;function w(e){if("object"==typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case i:switch(e=e.type){case s:case c:case u:case m:case h:return e;default:switch(e=e&&e.$$typeof){case f:case p:case g:case v:case d:return e;default:return t}}case l:return t}}}function E(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:i}){let l,s,u,c,d,f=!1;function p(f,p){const m=!a(p,s),h=!o(f,l,p,s);return l=f,s=p,m&&h?(u=e(l,s),t.dependsOnOwnProps&&(c=t(r,s)),d=n(u,c,s),d):m?(e.dependsOnOwnProps&&(u=e(l,s)),t.dependsOnOwnProps&&(c=t(r,s)),d=n(u,c,s),d):h?function(){const t=e(l,s),r=!i(t,u);return u=t,r&&(d=n(u,c,s)),d}():d}return function(o,a){return f?p(o,a):(l=o,s=a,u=e(l,s),c=t(r,s),d=n(u,c,s),f=!0,d)}}function x(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function k(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function S(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=k(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=k(o),o=r(t,n)),o},r}}function A(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function C(e,t,n){return{...n,...e,...t}}function _(e){e()}var O={notify(){},get:()=>[]};function N(e,t){let n,r=O,o=0,a=!1;function i(){u.onStateChange&&u.onStateChange()}function l(){o++,n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){_(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function s(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=O)}const u={addNestedSub:function(e){l();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,l())},tryUnsubscribe:function(){a&&(a=!1,s())},getListeners:()=>r};return u}var P=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),T=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),R=(()=>P||T?r.useLayoutEffect:r.useEffect)();function I(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function M(e,t){if(I(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!I(e[n[r]],t[n[r]]))return!1;return!0}var F={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},L={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},D={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},j={[y]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[b]:D};function z(e){return w(e)===v?D:j[e.$$typeof]||F}var V=Object.defineProperty,U=Object.getOwnPropertyNames,B=Object.getOwnPropertySymbols,H=Object.getOwnPropertyDescriptor,$=Object.getPrototypeOf,W=Object.prototype;function q(e,t){if("string"!=typeof t){if(W){const n=$(t);n&&n!==W&&q(e,n)}let n=U(t);B&&(n=n.concat(B(t)));const r=z(e),o=z(t);for(let a=0;a<n.length;++a){const i=n[a];if(!(L[i]||o&&o[i]||r&&r[i])){const n=H(t,i);try{V(e,i,n)}catch(e){}}}}return e}var K=Symbol.for("react-redux-context"),G="undefined"!=typeof globalThis?globalThis:{};function Q(){if(!r.createContext)return{};const e=G[K]??=new Map;let t=e.get(r.createContext);return t||(t=r.createContext(null),e.set(r.createContext,t)),t}var Y=Q(),X=[null,null];function J(e,t,n,r,o,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function Z(e,t){return e===t}var ee=function(e,t,n,{pure:o,areStatesEqual:a=Z,areOwnPropsEqual:i=M,areStatePropsEqual:l=M,areMergedPropsEqual:s=M,forwardRef:u=!1,context:c=Y}={}){const d=c,f=function(e){return e?"function"==typeof e?S(e):A(e,"mapStateToProps"):x(()=>({}))}(e),p=function(e){return e&&"object"==typeof e?x(t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t)):e?"function"==typeof e?S(e):A(e,"mapDispatchToProps"):x(e=>({dispatch:e}))}(t),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,a=!1;return function(t,n,i){const l=e(t,n,i);return a?r(l,o)||(o=l):(a=!0,o=l),o}}}(e):A(e,"mergeProps"):()=>C}(n),h=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,o={shouldHandleStateChanges:h,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:a,areStatePropsEqual:l,areOwnPropsEqual:i,areMergedPropsEqual:s};function c(t){const[n,a,i]=r.useMemo(()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]},[t]),l=r.useMemo(()=>d,[n,d]),s=r.useContext(l),u=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),c=Boolean(s)&&Boolean(s.store);const f=u?t.store:s.store,p=c?s.getServerState:f.getState,m=r.useMemo(()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return E(t(e,o),n(e,o),r(e,o),e,o)}(f.dispatch,o),[f]),[v,g]=r.useMemo(()=>{if(!h)return X;const e=N(f,u?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[f,u,s]),y=r.useMemo(()=>u?s:{...s,subscription:v},[u,s,v]),b=r.useRef(void 0),w=r.useRef(i),x=r.useRef(void 0),k=r.useRef(!1),S=r.useRef(!1),A=r.useRef(void 0);R(()=>(S.current=!0,()=>{S.current=!1}),[]);const C=r.useMemo(()=>()=>x.current&&i===w.current?x.current:m(f.getState(),i),[f,i]),_=r.useMemo(()=>e=>v?function(e,t,n,r,o,a,i,l,s,u,c){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!l.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(e){p=e,f=e}p||(f=null),n===a.current?i.current||u():(a.current=n,s.current=n,i.current=!0,c())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,f,v,m,w,b,k,S,x,g,e):()=>{},[v]);var O,P,T;let I;O=J,P=[w,b,k,i,x,g],R(()=>O(...P),T);try{I=r.useSyncExternalStore(_,C,p?()=>m(p(),i):C)}catch(e){throw A.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${A.current.stack}\n\n`),e}R(()=>{A.current=void 0,x.current=void 0,b.current=I});const M=r.useMemo(()=>r.createElement(e,{...I,ref:a}),[a,e,I]);return r.useMemo(()=>h?r.createElement(l.Provider,{value:y},M):M,[l,M,y])}const v=r.memo(c);if(v.WrappedComponent=e,v.displayName=c.displayName=n,u){const t=r.forwardRef(function(e,t){return r.createElement(v,{...e,reactReduxForwardedRef:t})});return t.displayName=n,t.WrappedComponent=e,q(t,e)}return q(v,e)}};var te=function(e){const{children:t,context:n,serverState:o,store:a}=e,i=r.useMemo(()=>{const e=N(a);return{store:a,subscription:e,getServerState:o?()=>o:void 0}},[a,o]),l=r.useMemo(()=>a.getState(),[a]);R(()=>{const{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==a.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[i,l]);const s=n||Y;return r.createElement(s.Provider,{value:i},t)};function ne(e=Y){return function(){return r.useContext(e)}}var re=ne();function oe(e=Y){const t=e===Y?re:ne(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var ae=oe();function ie(e=Y){const t=e===Y?ae:oe(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var le=ie(),se=(e,t)=>e===t;function ue(e=Y){const t=e===Y?re:ne(e),n=(e,n={})=>{const{equalityFn:a=se}="function"==typeof n?{equalityFn:n}:n;const i=t(),{store:l,subscription:s,getServerState:u}=i,c=(r.useRef(!0),r.useCallback({[e.name]:t=>e(t)}[e.name],[e])),d=(0,o.useSyncExternalStoreWithSelector)(s.addNestedSub,l.getState,u||l.getState,c,a);return r.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var ce=ue()},1558:(e,t,n)=>{"use strict";n.d(t,{Zw:()=>u,iC:()=>s});var r=n(8168),o=n(8587),a=n(6540);n(311);function i(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function l(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,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function s(e,t,n){var r=(0,a.useRef)(void 0!==e),o=(0,a.useState)(t),i=o[0],l=o[1],s=void 0!==e,u=r.current;return r.current=s,!s&&u&&i!==t&&l(t),[s?e:i,(0,a.useCallback)(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n&&n.apply(void 0,[e].concat(r)),l(e)},[n])]}function u(e,t){return Object.keys(t).reduce(function(n,a){var u,c=n,d=c[i(a)],f=c[a],p=(0,o.A)(c,[i(a),a].map(l)),m=t[a],h=s(f,d,e[m]),v=h[0],g=h[1];return(0,r.A)({},p,((u={})[a]=v,u[m]=g,u))},e)}function c(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function d(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function f(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}c.__suppressDeprecationWarning=!0,d.__suppressDeprecationWarning=!0,f.__suppressDeprecationWarning=!0},1577:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);function o(e){const t=function(e){const t=(0,r.useRef)(e);return t.current=e,t}(e);(0,r.useEffect)(()=>()=>t.current(),[])}},1601:e=>{"use strict";e.exports=function(e){return e[1]}},1625:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},1791:(e,t,n)=>{var r=n(5172),o=n(5546);e.exports=function e(t,n){function a(e,o,i,l){try{var s=t[e](o),u=s.value;return u instanceof r?n.resolve(u.v).then(function(e){a("next",e,i,l)},function(e){a("throw",e,i,l)}):n.resolve(u).then(function(e){s.value=e,i(s)},function(e){return a("throw",e,i,l)})}catch(e){l(e)}}var i;this.next||(o(e.prototype),o(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(e,t,r){function o(){return new n(function(t,n){a(e,r,t,n)})}return i=i?i.then(o,o):o()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},1837:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(4467),o=n(467),a=n(3029),i=n(2901),l=n(388),s=n(3954),u=n(5501),c=n(4756),d=n.n(c),f=n(6540),p=n(5556),m=n.n(p),h=n(4494),v=n(5615),g=n(2532),y=n(3524),b=n(1468),w=n(5289),E=n(5498);function x(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 k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!e})()}var A=function(e){function t(e){var n,r,o,i,u,c;(0,a.A)(this,t),i=this,u=t,c=[e],u=(0,s.A)(u),(o=(0,l.A)(i,S()?Reflect.construct(u,c||[],(0,s.A)(i).constructor):u.apply(i,c))).defaultLanguage=null!==(n=e.defaultLanguage)&&void 0!==n?n:e.languages.find(function(t){return Number(t.value)===Number(e.default_lang)});var d=void 0!==e.lockLanguageFrom,f=null;return!1===d&&(f=o.defaultLanguage),o.state={loading:!1,lockLanguageFrom:d,showLockLanguageFrom:d,form:{from:f,to:null!==(r=e.defaultLanguagesToTranslate)&&void 0!==r?r:null,isValid:!1,fromDisabled:d}},o}return(0,u.A)(t,e),(0,i.A)(t,[{key:"componentDidMount",value:function(){Array.isArray(this.state.form.to)&&this.state.form.to.length&&this.onSelectLanguage({to:this.state.form.to})}},{key:"lockOrUnlockLanguageFrom",value:(r=(0,o.A)(d().mark(function e(){var t,n=arguments;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=!(n.length>0&&void 0!==n[0])||n[0],e.next=1,this.setState(function(e){return{showLockLanguageFrom:t,form:k(k({},e.form),{},{from:null,fromDisabled:t})}});case 1:if(!1!==t){e.next=2;break}return e.next=2,this.onSelectLanguage({from:this.defaultLanguage});case 2:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"isValid",value:function(e){var t=!1,n=null!==e.to&&(null==e?void 0:e.to.length)>0;return!0===this.state.showLockLanguageFrom&&null===e.from&&n&&(t=!0),!1===this.state.showLockLanguageFrom&&null!==e.from&&n&&(t=!0),t}},{key:"onSelectLanguage",value:(n=(0,o.A)(d().mark(function e(t){var n=this;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.state.lockLanguageFrom||!1!==this.state.showLockLanguageFrom||null!==t.from){e.next=1;break}return e.abrupt("return",this.lockOrUnlockLanguageFrom(!0));case 1:this.setState(function(e){return{form:k(k(k({},e.form),t),{},{isValid:n.isValid(k(k({},e.form),t))})}},function(){n.props.onUpdate(n.state.form)});case 2:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"getLanguagesOptions",value:function(){var e=this.props,t=e.languages,n=e.translationsProviders,r=n.providers.find(function(e){return e.key==n.default});return t=t.map(function(e){return e=r.iso.includes(e.iso_code)?k(k({},e),{},{isDisabled:!1}):k(k({},e),{},{isDisabled:!0})})}},{key:"componentDidUpdate",value:function(e,t,n){var r=this.props,o=r.from,a=r.to;((0,E.eJ)(e.from,o)&&(0,E.eJ)(this.state.form.from,o)||(0,E.eJ)(e.to,a)&&(0,E.eJ)(this.state.form.to,a))&&this.onSelectLanguage({from:o,to:a})}},{key:"render",value:function(){var e,t,n,r,o,a=this,i=this.props.translations,l=this.getLanguagesOptions();return f.createElement(f.Fragment,null,f.createElement("div",{className:"col-md-"+(null!==(e=this.props.colSize)&&void 0!==e?e:"3")},f.createElement(h.A,{onSelect:function(e){return a.onSelectLanguage({from:e})},isMulti:!1,closeMenuOnSelect:!0,label:(0,E.pw)("Source language",i),isDisabled:null!==(t=null!==(n=this.state.form.fromDisabled)&&void 0!==n?n:this.props.loading)&&void 0!==t&&t,options:l,selectedOptions:this.state.form.from,isClearable:this.state.lockLanguageFrom,placeholder:!1===this.state.form.fromDisabled?void 0:(0,E.pw)("English by default",i),afterLabel:f.createElement(f.Fragment,null,!0===this.state.lockLanguageFrom&&!0===this.state.showLockLanguageFrom&&f.createElement(g.A,{placement:"top",overlay:f.createElement(y.A,{id:"tooltip-top"},this.props.lockLanguageFrom)},f.createElement(v.A,{onClick:function(){return a.lockOrUnlockLanguageFrom(!1)},size:"sm",variant:"outline-secondary"},(0,E.pw)("Change default language",i))),!0===this.state.lockLanguageFrom&&!1===this.state.showLockLanguageFrom&&f.createElement(f.Fragment,null,f.createElement(v.A,{onClick:function(){return a.lockOrUnlockLanguageFrom(!0)},size:"sm",variant:"outline-secondary"},(0,E.pw)("Reset",i)),f.createElement("span",{className:"text-danger ml-1"},f.createElement("span",{style:{fontSize:"17px",marginTop:"-3px",marginRight:"3px"},className:"material-icons"},"warning"),(0,E.pw)("warning",i)))),tooltipIcon:"help",tooltipText:(0,E.pw)("The source language is the language you want to translate from",i),langInput:!0})),f.createElement("div",{className:"col-md-"+(null!==(r=this.props.colSize)&&void 0!==r?r:"3")},f.createElement(h.A,{onSelect:function(e){return a.onSelectLanguage({to:e})},isMulti:!0,closeMenuOnSelect:!1,label:(0,E.pw)("Languages to translate",i),isDisabled:null!==(o=this.props.loading)&&void 0!==o&&o,options:l,selectedOptions:this.state.form.to,optionsDisabled:this.state.form.from,tooltipIcon:"help",tooltipText:(0,E.pw)("The languages to translate are the languages you want to translate, from the source language selected previously",i),langInput:!0})))}}]);var n,r}(f.Component);A.propTypes={loading:m().bool,fromDisabled:m().bool,defaultLanguage:m().any,defaultLanguagesToTranslate:m().array,onUpdate:m().func.isRequired,colSize:m().string};const C=(0,b.Ng)(function(e){return{translations:(0,w.fF)(e),languages:(0,w.kr)(e),translationsProviders:(0,w.n$)(e),default_lang:(0,w.ne)(e)}})(A)},1942:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6540);const o=function(e){const t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e},[e]),t};function a(e){const t=o(e);return(0,r.useCallback)(function(...e){return t.current&&t.current(...e)},[t])}},2014:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=n(6540),s=n(6519),u=n(4629),c=n(5724),d=n(7285),f=["activeKey","getControlledId","getControllerId"],p=["bsPrefix","className","active","onEnter","onEntering","onEntered","onExit","onExiting","onExited","mountOnEnter","unmountOnExit","transition","as","eventKey"];var m=l.forwardRef(function(e,t){var n=function(e){var t=(0,l.useContext)(u.A);if(!t)return e;var n=t.activeKey,a=t.getControlledId,i=t.getControllerId,s=(0,o.A)(t,f),p=!1!==e.transition&&!1!==s.transition,m=(0,c.u)(e.eventKey);return(0,r.A)({},e,{active:null==e.active&&null!=m?(0,c.u)(n)===m:e.active,id:a(e.eventKey),"aria-labelledby":i(e.eventKey),transition:p&&(e.transition||s.transition||d.A),mountOnEnter:null!=e.mountOnEnter?e.mountOnEnter:s.mountOnEnter,unmountOnExit:null!=e.unmountOnExit?e.unmountOnExit:s.unmountOnExit})}(e),a=n.bsPrefix,m=n.className,h=n.active,v=n.onEnter,g=n.onEntering,y=n.onEntered,b=n.onExit,w=n.onExiting,E=n.onExited,x=n.mountOnEnter,k=n.unmountOnExit,S=n.transition,A=n.as,C=void 0===A?"div":A,_=(n.eventKey,(0,o.A)(n,p)),O=(0,s.oU)(a,"tab-pane");if(!h&&!S&&k)return null;var N=l.createElement(C,(0,r.A)({},_,{ref:t,role:"tabpanel","aria-hidden":!h,className:i()(m,O,{active:h})}));return S&&(N=l.createElement(S,{in:h,onEnter:v,onEntering:g,onEntered:y,onExit:b,onExiting:w,onExited:E,mountOnEnter:x,unmountOnExit:k},N)),l.createElement(u.A.Provider,{value:null},l.createElement(c.A.Provider,{value:null},N))});m.displayName="TabPane";const h=m},2284:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{A:()=>r})},2431:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=n(6540),s=n(6519),u=["bsPrefix","className","striped","bordered","borderless","hover","size","variant","responsive"];const c=l.forwardRef(function(e,t){var n=e.bsPrefix,a=e.className,c=e.striped,d=e.bordered,f=e.borderless,p=e.hover,m=e.size,h=e.variant,v=e.responsive,g=(0,o.A)(e,u),y=(0,s.oU)(n,"table"),b=i()(a,y,h&&y+"-"+h,m&&y+"-"+m,c&&y+"-striped",d&&y+"-bordered",f&&y+"-borderless",p&&y+"-hover"),w=l.createElement("table",(0,r.A)({},g,{className:b,ref:t}));if(v){var E=y+"-responsive";return"string"==typeof v&&(E=E+"-"+v),l.createElement("div",{className:E},w)}return w})},2532:(e,t,n)=>{"use strict";n.d(t,{A:()=>V});var r=n(8168),o=n(8587),a=n(7387),i=n(6406),l=n(6540),s=n(8880),u=n(1577);const c=2**31-1;function d(e,t,n){const r=n-Date.now();e.current=r<=c?setTimeout(t,r):setTimeout(()=>d(e,t,n),c)}function f(){const e=(0,s.A)(),t=(0,l.useRef)();return(0,u.A)(()=>clearTimeout(t.current)),(0,l.useMemo)(()=>{const n=()=>clearTimeout(t.current);return{set:function(r,o=0){e()&&(n(),o<=c?t.current=setTimeout(r,o):d(t,r,Date.now()+o))},clear:n,handleRef:t}},[])}var p=n(6816),m=(n(9771),n(1558)),h=n(6942),v=n.n(h),g=n(5556),y=n.n(g),b=n(961),w=n(1244),E=n(3804),x=n(4278),k=n(4483),S=n(8040),A=n(9808),C=n(1458),_=l.forwardRef(function(e,t){var n=e.flip,a=e.offset,i=e.placement,s=e.containerPadding,u=void 0===s?5:s,c=e.popperConfig,d=void 0===c?{}:c,f=e.transition,p=(0,w.A)(),m=p[0],h=p[1],v=(0,w.A)(),g=v[0],y=v[1],x=(0,E.A)(h,t),_=(0,A.A)(e.container),O=(0,A.A)(e.target),N=(0,l.useState)(!e.show),P=N[0],T=N[1],R=(0,k.A)(O,m,(0,C.Ay)({placement:i,enableEvents:!!e.show,containerPadding:u||5,flip:n,offset:a,arrowElement:g,popperConfig:d})),I=R.styles,M=R.attributes,F=(0,o.A)(R,["styles","attributes"]);e.show?P&&T(!1):e.transition||P||T(!0);var L=e.show||f&&!P;if((0,S.A)(m,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!L)return null;var D=e.children((0,r.A)({},F,{show:!!e.show,props:(0,r.A)({},M.popper,{style:I.popper,ref:x}),arrowProps:(0,r.A)({},M.arrow,{style:I.arrow,ref:y})}));if(f){var j=e.onExit,z=e.onExiting,V=e.onEnter,U=e.onEntering,B=e.onEntered;D=l.createElement(f,{in:e.show,appear:!0,onExit:j,onExiting:z,onExited:function(){T(!0),e.onExited&&e.onExited.apply(e,arguments)},onEnter:V,onEntering:U,onEntered:B},D)}return _?b.createPortal(D,_):null});_.displayName="Overlay",_.propTypes={show:y().bool,placement:y().oneOf(x.DD),target:y().any,container:y().any,flip:y().bool,children:y().func.isRequired,containerPadding:y().number,popperConfig:y().object,rootClose:y().bool,rootCloseEvent:y().oneOf(["click","mousedown"]),rootCloseDisabled:y().bool,onHide:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;return e.rootClose?(o=y().func).isRequired.apply(o,[e].concat(n)):y().func.apply(y(),[e].concat(n))},transition:y().elementType,onEnter:y().func,onEntering:y().func,onEntered:y().func,onExit:y().func,onExiting:y().func,onExited:y().func};const O=_;var N=n(6500),P=n(7285),T=["children","transition","popperConfig"],R=["props","arrowProps","show","update","forceUpdate","placement","state"],I={transition:P.A,rootClose:!1,show:!1,placement:"top"};function M(e){var t=e.children,n=e.transition,a=e.popperConfig,i=void 0===a?{}:a,s=(0,o.A)(e,T),u=(0,l.useRef)({}),c=(0,N.A)(),d=c[0],f=c[1],m=!0===n?P.A:n||null;return l.createElement(O,(0,r.A)({},s,{ref:d,popperConfig:(0,r.A)({},i,{modifiers:f.concat(i.modifiers||[])}),transition:m}),function(e){var a,i=e.props,s=e.arrowProps,c=e.show,d=e.update,f=(e.forceUpdate,e.placement),m=e.state,h=(0,o.A)(e,R);!function(e,t){var n=e.ref,r=t.ref;e.ref=n.__wrapped||(n.__wrapped=function(e){return n((0,p.A)(e))}),t.ref=r.__wrapped||(r.__wrapped=function(e){return r((0,p.A)(e))})}(i,s);var g=Object.assign(u.current,{state:m,scheduleUpdate:d,placement:f,outOfBoundaries:(null==m||null==(a=m.modifiersData.hide)?void 0:a.isReferenceHidden)||!1});return"function"==typeof t?t((0,r.A)({},h,i,{placement:f,show:c},!n&&c&&{className:"show"},{popper:g,arrowProps:s})):l.cloneElement(t,(0,r.A)({},h,i,{placement:f,arrowProps:s,popper:g,className:v()(t.props.className,!n&&c&&"show"),style:(0,r.A)({},t.props.style,i.style)}))})}M.defaultProps=I;const F=M;var L=["trigger","overlay","children","popperConfig","show","defaultShow","onToggle","delay","placement","flip"],D=function(e){function t(){return e.apply(this,arguments)||this}return(0,a.A)(t,e),t.prototype.render=function(){return this.props.children},t}(l.Component);function j(e,t,n){var r=t[0],o=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];a&&a===o||(0,i.A)(o,a)||e.apply(void 0,t)}function z(e){var t=e.trigger,n=e.overlay,a=e.children,i=e.popperConfig,s=void 0===i?{}:i,u=e.show,c=e.defaultShow,d=void 0!==c&&c,h=e.onToggle,v=e.delay,g=e.placement,y=e.flip,b=void 0===y?g&&-1!==g.indexOf("auto"):y,w=(0,o.A)(e,L),E=(0,l.useRef)(null),x=f(),k=(0,l.useRef)(""),S=(0,m.iC)(u,d,h),A=S[0],C=S[1],_=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(v),O="function"!=typeof a?l.Children.only(a).props:{},N=O.onFocus,P=O.onBlur,T=O.onClick,R=(0,l.useCallback)(function(){return(0,p.A)(E.current)},[]),I=(0,l.useCallback)(function(){x.clear(),k.current="show",_.show?x.set(function(){"show"===k.current&&C(!0)},_.show):C(!0)},[_.show,C,x]),M=(0,l.useCallback)(function(){x.clear(),k.current="hide",_.hide?x.set(function(){"hide"===k.current&&C(!1)},_.hide):C(!1)},[_.hide,C,x]),z=(0,l.useCallback)(function(){I();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==N||N.apply(void 0,t)},[I,N]),V=(0,l.useCallback)(function(){M();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==P||P.apply(void 0,t)},[M,P]),U=(0,l.useCallback)(function(){C(!A),T&&T.apply(void 0,arguments)},[T,C,A]),B=(0,l.useCallback)(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];j(I,t,"fromElement")},[I]),H=(0,l.useCallback)(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];j(M,t,"toElement")},[M]),$=null==t?[]:[].concat(t),W={};return-1!==$.indexOf("click")&&(W.onClick=U),-1!==$.indexOf("focus")&&(W.onFocus=z,W.onBlur=V),-1!==$.indexOf("hover")&&(W.onMouseOver=B,W.onMouseOut=H),l.createElement(l.Fragment,null,"function"==typeof a?a((0,r.A)({},W,{ref:E})):l.createElement(D,{ref:E},(0,l.cloneElement)(a,W)),l.createElement(F,(0,r.A)({},w,{show:A,onHide:M,flip:b,placement:g,popperConfig:s,target:R}),n))}z.defaultProps={defaultShow:!1,trigger:["hover","focus"]};const V=z},2551:(e,t,n)=>{"use strict";
/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(6540),o=n(9982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,l={};function s(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},m={};function h(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){v[e]=new h(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];v[t]=new h(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){v[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){v[e]=new h(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){v[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){v[e]=new h(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){v[e]=new h(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){v[e]=new h(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){v[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)});var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(m,e)||!d.call(p,e)&&(f.test(e)?m[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(g,y);v[t]=new h(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(g,y);v[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(g,y);v[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){v[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)}),v.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){v[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)});var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),x=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),_=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function F(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=M&&e[M]||e["@@iterator"])?e:null}var L,D=Object.assign;function j(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var z=!1;function V(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function U(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 1:return e=V(e.type,!0);default:return""}}function B(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case k:return"Fragment";case x:return"Portal";case A:return"Profiler";case S:return"StrictMode";case N:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:B(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return B(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function $(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=$(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){X(e,t);var n=$(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:$(n)}}function ae(e,t){var n=$(t.value),r=$(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach(function(e){me.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ge=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,ke=null,Se=null;function Ae(e){if(e=wo(e)){if("function"!=typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Ce(e){ke?Se?Se.push(e):Se=[e]:ke=e}function _e(){if(ke){var e=ke,t=Se;if(Se=ke=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function Oe(e,t){return e(t)}function Ne(){}var Pe=!1;function Te(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Oe(e,t,n)}finally{Pe=!1,(null!==ke||null!==Se)&&(Ne(),_e())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ie=!1;if(c)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(ce){Ie=!1}function Fe(e,t,n,r,o,a,i,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Le=!1,De=null,je=!1,ze=null,Ve={onError:function(e){Le=!0,De=e}};function Ue(e,t,n,r,o,a,i,l,s){Le=!1,De=null,Fe.apply(Ve,arguments)}function Be(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function $e(e){if(Be(e)!==e)throw Error(a(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Be(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return $e(o),e;if(i===r)return $e(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Ke=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Xe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=dt(l):0!==(a&=i)&&(r=dt(a))}else 0!==(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Et,xt,kt,St,At,Ct=!1,_t=[],Ot=null,Nt=null,Pt=null,Tt=new Map,Rt=new Map,It=[],Mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ft(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Lt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Dt(e){var t=bo(e.target);if(null!==t){var n=Be(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void At(e.priority,function(){kt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function zt(e,t,n){jt(e)&&n.delete(t)}function Vt(){Ct=!1,null!==Ot&&jt(Ot)&&(Ot=null),null!==Nt&&jt(Nt)&&(Nt=null),null!==Pt&&jt(Pt)&&(Pt=null),Tt.forEach(zt),Rt.forEach(zt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Vt)))}function Bt(e){function t(t){return Ut(t,e)}if(0<_t.length){Ut(_t[0],e);for(var n=1;n<_t.length;n++){var r=_t[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&Ut(Ot,e),null!==Nt&&Ut(Nt,e),null!==Pt&&Ut(Pt,e),Tt.forEach(t),Rt.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)Dt(n),null===n.blockedOn&&It.shift()}var Ht=w.ReactCurrentBatchConfig,$t=!0;function Wt(e,t,n,r){var o=bt,a=Ht.transition;Ht.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=o,Ht.transition=a}}function qt(e,t,n,r){var o=bt,a=Ht.transition;Ht.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=o,Ht.transition=a}}function Kt(e,t,n,r){if($t){var o=Qt(e,t,n,r);if(null===o)$r(e,t,r,Gt,n),Ft(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Ot=Lt(Ot,e,t,n,r,o),!0;case"dragenter":return Nt=Lt(Nt,e,t,n,r,o),!0;case"mouseover":return Pt=Lt(Pt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Tt.set(a,Lt(Tt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Rt.set(a,Lt(Rt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Ft(e,r),4&t&&-1<Mt.indexOf(e)){for(;null!==o;){var a=wo(o);if(null!==a&&Et(a),null===(a=Qt(e,t,n,r))&&$r(e,t,r,Gt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else $r(e,t,r,null,n)}}var Gt=null;function Qt(e,t,n,r){if(Gt=null,null!==(e=bo(e=Ee(r))))if(null===(t=Be(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=D({},un,{view:0,detail:0}),fn=on(dn),pn=D({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),mn=on(pn),hn=on(D({},pn,{dataTransfer:0})),vn=on(D({},dn,{relatedTarget:0})),gn=on(D({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=D({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(D({},un,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function An(){return Sn}var Cn=D({},dn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),_n=on(Cn),On=on(D({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=on(D({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),Pn=on(D({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tn=D({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=on(Tn),In=[9,13,27,32],Mn=c&&"CompositionEvent"in window,Fn=null;c&&"documentMode"in document&&(Fn=document.documentMode);var Ln=c&&"TextEvent"in window&&!Fn,Dn=c&&(!Mn||Fn&&8<Fn&&11>=Fn),jn=String.fromCharCode(32),zn=!1;function Vn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Wn(e,t,n,r){Ce(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Kn=null;function Gn(e){jr(e,0)}function Qn(e){if(K(Eo(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Kn=qn=null)}function nr(e){if("value"===e.propertyName&&Qn(Kn)){var t=[];Wn(t,Kn,e,Ee(e)),Te(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Kn)}function ar(e,t){if("click"===e)return Qn(t)}function ir(e,t){if("input"===e||"change"===e)return Qn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=cr(n,a);var i=cr(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==G(r)||("selectionStart"in(r=vr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&sr(yr,r)||(yr=r,0<(r=qr(gr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},kr={},Sr={};function Ar(e){if(kr[e])return kr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return kr[e]=n[t];return e}c&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Cr=Ar("animationend"),_r=Ar("animationiteration"),Or=Ar("animationstart"),Nr=Ar("transitionend"),Pr=new Map,Tr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Pr.set(e,t),s(t,[e])}for(var Ir=0;Ir<Tr.length;Ir++){var Mr=Tr[Ir];Rr(Mr.toLowerCase(),"on"+(Mr[0].toUpperCase()+Mr.slice(1)))}Rr(Cr,"onAnimationEnd"),Rr(_r,"onAnimationIteration"),Rr(Or,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Nr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fr));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,s,u){if(Ue.apply(this,arguments),Le){if(!Le)throw Error(a(198));var c=De;Le=!1,De=null,je||(je=!0,ze=c)}}(r,t,void 0,e),e.currentTarget=null}function jr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;Dr(o,l,u),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,u=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;Dr(o,l,u),a=s}}}if(je)throw e=ze,je=!1,ze=null,e}function zr(e,t){var n=t[vo];void 0===n&&(n=t[vo]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Vr(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[Ur]){e[Ur]=!0,i.forEach(function(t){"selectionchange"!==t&&(Lr.has(t)||Vr(t,!1,e),Vr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Vr("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Yt(t)){case 1:var o=Wt;break;case 4:o=qt;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function $r(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=bo(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}Te(function(){var r=a,o=Ee(n),i=[];e:{var l=Pr.get(e);if(void 0!==l){var s=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=_n;break;case"focusin":u="focus",s=vn;break;case"focusout":u="blur",s=vn;break;case"beforeblur":case"afterblur":s=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Nn;break;case Cr:case _r:case Or:s=gn;break;case Nr:s=Pn;break;case"scroll":s=fn;break;case"wheel":s=Rn;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=On}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==f&&(null!=(h=Re(m,f))&&c.push(Wr(m,h,p)))),d)break;m=m.return}0<c.length&&(l=new s(l,u,null,n,o),i.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[ho])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(d=Be(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=mn,h="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=On,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==s?l:Eo(s),p=null==u?l:Eo(u),(l=new c(h,m+"leave",s,n,o)).target=d,l.relatedTarget=p,h=null,bo(o)===r&&((c=new c(f,m+"enter",u,n,o)).target=p,c.relatedTarget=d,h=c),d=h,s&&u)e:{for(f=u,m=0,p=c=s;p;p=Kr(p))m++;for(p=0,h=f;h;h=Kr(h))p++;for(;0<m-p;)c=Kr(c),m--;for(;0<p-m;)f=Kr(f),p--;for(;m--;){if(c===f||null!==f&&c===f.alternate)break e;c=Kr(c),f=Kr(f)}c=null}else c=null;null!==s&&Gr(i,l,s,c,!1),null!==u&&null!==d&&Gr(i,d,u,c,!0)}if("select"===(s=(l=r?Eo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var v=Yn;else if($n(l))if(Xn)v=ir;else{v=or;var g=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ar);switch(v&&(v=v(e,r))?Wn(i,v,n,o):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ee(l,"number",l.value)),g=r?Eo(r):window,e){case"focusin":($n(g)||"true"===g.contentEditable)&&(vr=g,gr=r,yr=null);break;case"focusout":yr=gr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(i,n,o);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":wr(i,n,o)}var y;if(Mn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Vn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=en()):(Jt="value"in(Xt=o)?Xt.value:Xt.textContent,Bn=!0)),0<(g=qr(r,b)).length&&(b=new wn(b,e,null,n,o),i.push({event:b,listeners:g}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=Ln?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(zn=!0,jn);case"textInput":return(e=t.data)===jn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Mn&&Vn(e,t)?(e=en(),Zt=Jt=Xt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=qr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y))}jr(i,t)})}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Re(e,n))&&r.unshift(Wr(e,a,o)),null!=(a=Re(e,t))&&r.push(Wr(e,a,o))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Re(n,a))&&i.unshift(Wr(n,s,l)):o||null!=(s=Re(n,a))&&i.push(Wr(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Qr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Yr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(a(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout(function(){throw e})}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,mo="__reactProps$"+fo,ho="__reactContainer$"+fo,vo="__reactEvents$"+fo,go="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ho]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[ho])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function xo(e){return e[mo]||null}var ko=[],So=-1;function Ao(e){return{current:e}}function Co(e){0>So||(e.current=ko[So],ko[So]=null,So--)}function _o(e,t){So++,ko[So]=e.current,e.current=t}var Oo={},No=Ao(Oo),Po=Ao(!1),To=Oo;function Ro(e,t){var n=e.type.contextTypes;if(!n)return Oo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Io(e){return null!=(e=e.childContextTypes)}function Mo(){Co(Po),Co(No)}function Fo(e,t,n){if(No.current!==Oo)throw Error(a(168));_o(No,t),_o(Po,n)}function Lo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,H(e)||"Unknown",o));return D({},n,r)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oo,To=No.current,_o(No,e),_o(Po,Po.current),!0}function jo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Lo(e,t,To),r.__reactInternalMemoizedMergedChildContext=e,Co(Po),Co(No),_o(No,e)):Co(Po),_o(Po,n)}var zo=null,Vo=!1,Uo=!1;function Bo(e){null===zo?zo=[e]:zo.push(e)}function Ho(){if(!Uo&&null!==zo){Uo=!0;var e=0,t=bt;try{var n=zo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}zo=null,Vo=!1}catch(t){throw null!==zo&&(zo=zo.slice(e+1)),Ke(Ze,Ho),t}finally{bt=t,Uo=!1}}return null}var $o=[],Wo=0,qo=null,Ko=0,Go=[],Qo=0,Yo=null,Xo=1,Jo="";function Zo(e,t){$o[Wo++]=Ko,$o[Wo++]=qo,qo=e,Ko=t}function ea(e,t,n){Go[Qo++]=Xo,Go[Qo++]=Jo,Go[Qo++]=Yo,Yo=e;var r=Xo;e=Jo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Xo=1<<32-it(t)+o|n<<o|r,Jo=a+e}else Xo=1<<a|n<<o|r,Jo=e}function ta(e){null!==e.return&&(Zo(e,1),ea(e,1,0))}function na(e){for(;e===qo;)qo=$o[--Wo],$o[Wo]=null,Ko=$o[--Wo],$o[Wo]=null;for(;e===Yo;)Yo=Go[--Qo],Go[Qo]=null,Jo=Go[--Qo],Go[Qo]=null,Xo=Go[--Qo],Go[Qo]=null}var ra=null,oa=null,aa=!1,ia=null;function la(e,t){var n=Pu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Xo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ua(e){return!(!(1&e.mode)||128&e.flags)}function ca(e){if(aa){var t=oa;if(t){var n=t;if(!sa(e,t)){if(ua(e))throw Error(a(418));t=uo(n.nextSibling);var r=ra;t&&sa(e,t)?la(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ua(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function fa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ua(e))throw pa(),Error(a(418));for(;t;)la(e,t),t=uo(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oa=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?uo(e.stateNode.nextSibling):null;return!0}function pa(){for(var e=oa;e;)e=uo(e.nextSibling)}function ma(){oa=ra=null,aa=!1}function ha(e){null===ia?ia=[e]:ia.push(e)}var va=w.ReactCurrentBatchConfig;function ga(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ya(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ba(e){return(0,e._init)(e._payload)}function wa(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ru(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Lu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===k?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===R&&ba(a)===t.type)?((r=o(t,n.props)).ref=ga(e,t,n),r.return=e,r):((r=Iu(n.type,n.key,n.props,null,e.mode,r)).ref=ga(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Du(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Mu(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Lu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Iu(t.type,t.key,t.props,null,e.mode,n)).ref=ga(e,null,t),n.return=e,n;case x:return(t=Du(t,e.mode,n)).return=e,t;case R:return f(e,(0,t._init)(t._payload),n)}if(te(t)||F(t))return(t=Mu(t,e.mode,n,null)).return=e,t;ya(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?u(e,t,n,r):null;case x:return n.key===o?c(e,t,n,r):null;case R:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||F(n))return null!==o?null:d(e,t,n,r,null);ya(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return m(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||F(r))return d(t,e=e.get(n)||null,r,o,null);ya(t,r)}return null}function h(o,a,l,s){for(var u=null,c=null,d=a,h=a=0,v=null;null!==d&&h<l.length;h++){d.index>h?(v=d,d=null):v=d.sibling;var g=p(o,d,l[h],s);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(o,d),a=i(g,a,h),null===c?u=g:c.sibling=g,c=g,d=v}if(h===l.length)return n(o,d),aa&&Zo(o,h),u;if(null===d){for(;h<l.length;h++)null!==(d=f(o,l[h],s))&&(a=i(d,a,h),null===c?u=d:c.sibling=d,c=d);return aa&&Zo(o,h),u}for(d=r(o,d);h<l.length;h++)null!==(v=m(d,o,h,l[h],s))&&(e&&null!==v.alternate&&d.delete(null===v.key?h:v.key),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v);return e&&d.forEach(function(e){return t(o,e)}),aa&&Zo(o,h),u}function v(o,l,s,u){var c=F(s);if("function"!=typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var d=c=null,h=l,v=l=0,g=null,y=s.next();null!==h&&!y.done;v++,y=s.next()){h.index>v?(g=h,h=null):g=h.sibling;var b=p(o,h,y.value,u);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),l=i(b,l,v),null===d?c=b:d.sibling=b,d=b,h=g}if(y.done)return n(o,h),aa&&Zo(o,v),c;if(null===h){for(;!y.done;v++,y=s.next())null!==(y=f(o,y.value,u))&&(l=i(y,l,v),null===d?c=y:d.sibling=y,d=y);return aa&&Zo(o,v),c}for(h=r(o,h);!y.done;v++,y=s.next())null!==(y=m(h,o,v,y.value,u))&&(e&&null!==y.alternate&&h.delete(null===y.key?v:y.key),l=i(y,l,v),null===d?c=y:d.sibling=y,d=y);return e&&h.forEach(function(e){return t(o,e)}),aa&&Zo(o,v),c}return function e(r,a,i,s){if("object"==typeof i&&null!==i&&i.type===k&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case E:e:{for(var u=i.key,c=a;null!==c;){if(c.key===u){if((u=i.type)===k){if(7===c.tag){n(r,c.sibling),(a=o(c,i.props.children)).return=r,r=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===R&&ba(u)===c.type){n(r,c.sibling),(a=o(c,i.props)).ref=ga(r,c,i),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}i.type===k?((a=Mu(i.props.children,r.mode,s,i.key)).return=r,r=a):((s=Iu(i.type,i.key,i.props,null,r.mode,s)).ref=ga(r,a,i),s.return=r,r=s)}return l(r);case x:e:{for(c=i.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Du(i,r.mode,s)).return=r,r=a}return l(r);case R:return e(r,a,(c=i._init)(i._payload),s)}if(te(i))return h(r,a,i,s);if(F(i))return v(r,a,i,s);ya(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=Lu(i,r.mode,s)).return=r,r=a),l(r)):n(r,a)}}var Ea=wa(!0),xa=wa(!1),ka=Ao(null),Sa=null,Aa=null,Ca=null;function _a(){Ca=Aa=Sa=null}function Oa(e){var t=ka.current;Co(ka),e._currentValue=t}function Na(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Pa(e,t){Sa=e,Ca=Aa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(yl=!0),e.firstContext=null)}function Ta(e){var t=e._currentValue;if(Ca!==e)if(e={context:e,memoizedValue:t,next:null},null===Aa){if(null===Sa)throw Error(a(308));Aa=e,Sa.dependencies={lanes:0,firstContext:e}}else Aa=Aa.next=e;return t}var Ra=null;function Ia(e){null===Ra?Ra=[e]:Ra.push(e)}function Ma(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ia(t)):(n.next=o.next,o.next=n),t.interleaved=n,Fa(e,r)}function Fa(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var La=!1;function Da(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ja(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function za(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Va(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&_s){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Fa(e,n)}return null===(o=r.interleaved)?(t.next=t,Ia(r)):(t.next=o.next,o.next=t),r.interleaved=t,Fa(e,n)}function Ua(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ba(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ha(e,t,n,r){var o=e.updateQueue;La=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===i?a=u:i.next=u,i=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==a){var d=o.baseState;for(i=0,c=u=s=null,l=a;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(f=t,p=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(f="function"==typeof(m=h.payload)?m.call(p,d,f):m))break e;d=D({},d,f);break e;case 2:La=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=p,s=d):c=c.next=p,i|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Fs|=i,e.lanes=i,e.memoizedState=d}}function $a(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var Wa={},qa=Ao(Wa),Ka=Ao(Wa),Ga=Ao(Wa);function Qa(e){if(e===Wa)throw Error(a(174));return e}function Ya(e,t){switch(_o(Ga,t),_o(Ka,e),_o(qa,Wa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Co(qa),_o(qa,t)}function Xa(){Co(qa),Co(Ka),Co(Ga)}function Ja(e){Qa(Ga.current);var t=Qa(qa.current),n=se(t,e.type);t!==n&&(_o(Ka,e),_o(qa,n))}function Za(e){Ka.current===e&&(Co(qa),Co(Ka))}var ei=Ao(0);function ti(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ni=[];function ri(){for(var e=0;e<ni.length;e++)ni[e]._workInProgressVersionPrimary=null;ni.length=0}var oi=w.ReactCurrentDispatcher,ai=w.ReactCurrentBatchConfig,ii=0,li=null,si=null,ui=null,ci=!1,di=!1,fi=0,pi=0;function mi(){throw Error(a(321))}function hi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function vi(e,t,n,r,o,i){if(ii=i,li=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oi.current=null===e||null===e.memoizedState?Zi:el,e=n(r,o),di){i=0;do{if(di=!1,fi=0,25<=i)throw Error(a(301));i+=1,ui=si=null,t.updateQueue=null,oi.current=tl,e=n(r,o)}while(di)}if(oi.current=Ji,t=null!==si&&null!==si.next,ii=0,ui=si=li=null,ci=!1,t)throw Error(a(300));return e}function gi(){var e=0!==fi;return fi=0,e}function yi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ui?li.memoizedState=ui=e:ui=ui.next=e,ui}function bi(){if(null===si){var e=li.alternate;e=null!==e?e.memoizedState:null}else e=si.next;var t=null===ui?li.memoizedState:ui.next;if(null!==t)ui=t,si=e;else{if(null===e)throw Error(a(310));e={memoizedState:(si=e).memoizedState,baseState:si.baseState,baseQueue:si.baseQueue,queue:si.queue,next:null},null===ui?li.memoizedState=ui=e:ui=ui.next=e}return ui}function wi(e,t){return"function"==typeof t?t(e):t}function Ei(e){var t=bi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=si,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var s=l=null,u=null,c=i;do{var d=c.lane;if((ii&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=f,l=r):u=u.next=f,li.lanes|=d,Fs|=d}c=c.next}while(null!==c&&c!==i);null===u?l=r:u.next=s,lr(r,t.memoizedState)||(yl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,li.lanes|=i,Fs|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xi(e){var t=bi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);lr(i,t.memoizedState)||(yl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ki(){}function Si(e,t){var n=li,r=bi(),o=t(),i=!lr(r.memoizedState,o);if(i&&(r.memoizedState=o,yl=!0),r=r.queue,Li(_i.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==ui&&1&ui.memoizedState.tag){if(n.flags|=2048,Ti(9,Ci.bind(null,n,r,o,t),void 0,null),null===Os)throw Error(a(349));30&ii||Ai(n,t,o)}return o}function Ai(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=li.updateQueue)?(t={lastEffect:null,stores:null},li.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ci(e,t,n,r){t.value=n,t.getSnapshot=r,Oi(t)&&Ni(e)}function _i(e,t,n){return n(function(){Oi(t)&&Ni(e)})}function Oi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Ni(e){var t=Fa(e,1);null!==t&&tu(t,e,1,-1)}function Pi(e){var t=yi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wi,lastRenderedState:e},t.queue=e,e=e.dispatch=Gi.bind(null,li,e),[t.memoizedState,e]}function Ti(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=li.updateQueue)?(t={lastEffect:null,stores:null},li.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ri(){return bi().memoizedState}function Ii(e,t,n,r){var o=yi();li.flags|=e,o.memoizedState=Ti(1|t,n,void 0,void 0===r?null:r)}function Mi(e,t,n,r){var o=bi();r=void 0===r?null:r;var a=void 0;if(null!==si){var i=si.memoizedState;if(a=i.destroy,null!==r&&hi(r,i.deps))return void(o.memoizedState=Ti(t,n,a,r))}li.flags|=e,o.memoizedState=Ti(1|t,n,a,r)}function Fi(e,t){return Ii(8390656,8,e,t)}function Li(e,t){return Mi(2048,8,e,t)}function Di(e,t){return Mi(4,2,e,t)}function ji(e,t){return Mi(4,4,e,t)}function zi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Vi(e,t,n){return n=null!=n?n.concat([e]):null,Mi(4,4,zi.bind(null,t,e),n)}function Ui(){}function Bi(e,t){var n=bi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&hi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Hi(e,t){var n=bi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&hi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function $i(e,t,n){return 21&ii?(lr(n,t)||(n=ht(),li.lanes|=n,Fs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yl=!0),e.memoizedState=n)}function Wi(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ai.transition;ai.transition={};try{e(!1),t()}finally{bt=n,ai.transition=r}}function qi(){return bi().memoizedState}function Ki(e,t,n){var r=eu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qi(e))Yi(t,n);else if(null!==(n=Ma(e,t,n,r))){tu(n,e,r,Zs()),Xi(n,t,r)}}function Gi(e,t,n){var r=eu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qi(e))Yi(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,i)){var s=t.interleaved;return null===s?(o.next=o,Ia(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ma(e,t,o,r))&&(tu(n,e,r,o=Zs()),Xi(n,t,r))}}function Qi(e){var t=e.alternate;return e===li||null!==t&&t===li}function Yi(e,t){di=ci=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xi(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ji={readContext:Ta,useCallback:mi,useContext:mi,useEffect:mi,useImperativeHandle:mi,useInsertionEffect:mi,useLayoutEffect:mi,useMemo:mi,useReducer:mi,useRef:mi,useState:mi,useDebugValue:mi,useDeferredValue:mi,useTransition:mi,useMutableSource:mi,useSyncExternalStore:mi,useId:mi,unstable_isNewReconciler:!1},Zi={readContext:Ta,useCallback:function(e,t){return yi().memoizedState=[e,void 0===t?null:t],e},useContext:Ta,useEffect:Fi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ii(4194308,4,zi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ii(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ii(4,2,e,t)},useMemo:function(e,t){var n=yi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=yi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ki.bind(null,li,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},yi().memoizedState=e},useState:Pi,useDebugValue:Ui,useDeferredValue:function(e){return yi().memoizedState=e},useTransition:function(){var e=Pi(!1),t=e[0];return e=Wi.bind(null,e[1]),yi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=li,o=yi();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Os)throw Error(a(349));30&ii||Ai(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Fi(_i.bind(null,r,i,e),[e]),r.flags|=2048,Ti(9,Ci.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=yi(),t=Os.identifierPrefix;if(aa){var n=Jo;t=":"+t+"R"+(n=(Xo&~(1<<32-it(Xo)-1)).toString(32)+n),0<(n=fi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Ta,useCallback:Bi,useContext:Ta,useEffect:Li,useImperativeHandle:Vi,useInsertionEffect:Di,useLayoutEffect:ji,useMemo:Hi,useReducer:Ei,useRef:Ri,useState:function(){return Ei(wi)},useDebugValue:Ui,useDeferredValue:function(e){return $i(bi(),si.memoizedState,e)},useTransition:function(){return[Ei(wi)[0],bi().memoizedState]},useMutableSource:ki,useSyncExternalStore:Si,useId:qi,unstable_isNewReconciler:!1},tl={readContext:Ta,useCallback:Bi,useContext:Ta,useEffect:Li,useImperativeHandle:Vi,useInsertionEffect:Di,useLayoutEffect:ji,useMemo:Hi,useReducer:xi,useRef:Ri,useState:function(){return xi(wi)},useDebugValue:Ui,useDeferredValue:function(e){var t=bi();return null===si?t.memoizedState=e:$i(t,si.memoizedState,e)},useTransition:function(){return[xi(wi)[0],bi().memoizedState]},useMutableSource:ki,useSyncExternalStore:Si,useId:qi,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&Be(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Zs(),o=eu(e),a=za(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Va(e,a,o))&&(tu(t,e,o,r),Ua(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Zs(),o=eu(e),a=za(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Va(e,a,o))&&(tu(t,e,o,r),Ua(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Zs(),r=eu(e),o=za(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Va(e,o,r))&&(tu(t,e,r,n),Ua(t,e,r))}};function al(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(o,a))}function il(e,t,n){var r=!1,o=Oo,a=t.contextType;return"object"==typeof a&&null!==a?a=Ta(a):(o=Io(t)?To:No.current,a=(r=null!=(r=t.contextTypes))?Ro(e,o):Oo),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ll(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function sl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Da(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Ta(a):(a=Io(t)?To:No.current,o.context=Ro(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(rl(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Ha(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ul(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}var dl="function"==typeof WeakMap?WeakMap:Map;function fl(e,t,n){(n=za(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hs||(Hs=!0,$s=r)},n}function pl(e,t,n){(n=za(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ws?Ws=new Set([this]):Ws.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new dl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Su.bind(null,e,t,n),t.then(e,e))}function hl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vl(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=za(-1,1)).tag=2,Va(n,t,1))),n.lanes|=1),e)}var gl=w.ReactCurrentOwner,yl=!1;function bl(e,t,n,r){t.child=null===e?xa(t,null,n,r):Ea(t,e.child,n,r)}function wl(e,t,n,r,o){n=n.render;var a=t.ref;return Pa(t,o),r=vi(e,t,n,r,a,o),n=gi(),null===e||yl?(aa&&n&&ta(t),t.flags|=1,bl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o))}function El(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Tu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Iu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,xl(e,t,a,r,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)return Hl(e,t,o)}return t.flags|=1,(e=Ru(a,r)).ref=t.ref,e.return=t,t.child=e}function xl(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(sr(a,r)&&e.ref===t.ref){if(yl=!1,t.pendingProps=r=a,0===(e.lanes&o))return t.lanes=e.lanes,Hl(e,t,o);131072&e.flags&&(yl=!0)}}return Al(e,t,n,r,o)}function kl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_o(Rs,Ts),Ts|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,_o(Rs,Ts),Ts|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_o(Rs,Ts),Ts|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,_o(Rs,Ts),Ts|=r;return bl(e,t,o,n),t.child}function Sl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Al(e,t,n,r,o){var a=Io(n)?To:No.current;return a=Ro(t,a),Pa(t,o),n=vi(e,t,n,r,a,o),r=gi(),null===e||yl?(aa&&r&&ta(t),t.flags|=1,bl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o))}function Cl(e,t,n,r,o){if(Io(n)){var a=!0;Do(t)}else a=!1;if(Pa(t,o),null===t.stateNode)Bl(e,t),il(t,n,r),sl(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,u=n.contextType;"object"==typeof u&&null!==u?u=Ta(u):u=Ro(t,u=Io(n)?To:No.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==u)&&ll(t,i,r,u),La=!1;var f=t.memoizedState;i.state=f,Ha(t,r,i,o),s=t.memoizedState,l!==r||f!==s||Po.current||La?("function"==typeof c&&(rl(t,n,c,r),s=t.memoizedState),(l=La||al(t,n,l,r,f,s,u))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=u,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,ja(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:nl(t.type,l),i.props=u,d=t.pendingProps,f=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=Ta(s):s=Ro(t,s=Io(n)?To:No.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||f!==s)&&ll(t,i,r,s),La=!1,f=t.memoizedState,i.state=f,Ha(t,r,i,o);var m=t.memoizedState;l!==d||f!==m||Po.current||La?("function"==typeof p&&(rl(t,n,p,r),m=t.memoizedState),(u=La||al(t,n,u,r,f,m,s)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=s,r=u):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return _l(e,t,n,r,a,o)}function _l(e,t,n,r,o,a){Sl(e,t);var i=!!(128&t.flags);if(!r&&!i)return o&&jo(t,n,!1),Hl(e,t,a);r=t.stateNode,gl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ea(t,e.child,null,a),t.child=Ea(t,null,l,a)):bl(e,t,l,a),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Ol(e){var t=e.stateNode;t.pendingContext?Fo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Fo(0,t.context,!1),Ya(e,t.containerInfo)}function Nl(e,t,n,r,o){return ma(),ha(o),t.flags|=256,bl(e,t,n,r),t.child}var Pl,Tl,Rl,Il,Ml={dehydrated:null,treeContext:null,retryLane:0};function Fl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ll(e,t,n){var r,o=t.pendingProps,i=ei.current,l=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),_o(ei,1&i),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},1&o||null===l?l=Fu(s,o,0,null):(l.childLanes=0,l.pendingProps=s),e=Mu(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Fl(n),t.memoizedState=Ml,e):Dl(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,l){if(n)return 256&t.flags?(t.flags&=-257,jl(e,t,l,r=cl(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Fu({mode:"visible",children:r.children},o,0,null),(i=Mu(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&Ea(t,e.child,null,l),t.child.memoizedState=Fl(l),t.memoizedState=Ml,i);if(!(1&t.mode))return jl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,jl(e,t,l,r=cl(i=Error(a(419)),r,void 0))}if(s=0!==(l&e.childLanes),yl||s){if(null!==(r=Os)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|l))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Fa(e,o),tu(r,e,o,-1))}return mu(),jl(e,t,l,r=cl(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Cu.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=uo(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Go[Qo++]=Xo,Go[Qo++]=Jo,Go[Qo++]=Yo,Xo=e.id,Jo=e.overflow,Yo=t),t=Dl(t,r.children),t.flags|=4096,t)}(e,t,s,o,r,i,n);if(l){l=o.fallback,s=t.mode,r=(i=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&s||t.child===i?(o=Ru(i,u)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?l=Ru(r,l):(l=Mu(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?Fl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Ml,o}return e=(l=e.child).sibling,o=Ru(l,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Dl(e,t){return(t=Fu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function jl(e,t,n,r){return null!==r&&ha(r),Ea(t,e.child,null,n),(e=Dl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Na(e.return,t,n)}function Vl(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Ul(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(bl(e,t,r.children,n),2&(r=ei.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zl(e,n,t);else if(19===e.tag)zl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_o(ei,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ti(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vl(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ti(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vl(t,!0,n,null,a);break;case"together":Vl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Bl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fs|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ru(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ru(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $l(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Wl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ql(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wl(t),null;case 1:case 17:return Io(t.type)&&Mo(),Wl(t),null;case 3:return r=t.stateNode,Xa(),Co(Po),Co(No),ri(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ia&&(au(ia),ia=null))),Tl(e,t),Wl(t),null;case 5:Za(t);var o=Qa(Ga.current);if(n=t.type,null!==e&&null!=t.stateNode)Rl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Wl(t),null}if(e=Qa(qa.current),fa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[po]=t,r[mo]=i,e=!!(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(o=0;o<Fr.length;o++)zr(Fr[o],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":Y(r,i),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},zr("invalid",r);break;case"textarea":oe(r,i),zr("invalid",r)}for(var s in ye(n,i),o=null,i)if(i.hasOwnProperty(s)){var u=i[s];"children"===s?"string"==typeof u?r.textContent!==u&&(!0!==i.suppressHydrationWarning&&Jr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==i.suppressHydrationWarning&&Jr(r.textContent,u,e),o=["children",""+u]):l.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&zr("scroll",r)}switch(n){case"input":q(r),Z(r,i,!0);break;case"textarea":q(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[po]=t,e[mo]=r,Pl(e,t,!1,!1),t.stateNode=e;e:{switch(s=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),o=r;break;case"iframe":case"object":case"embed":zr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Fr.length;o++)zr(Fr[o],e);o=r;break;case"source":zr("error",e),o=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),o=r;break;case"details":zr("toggle",e),o=r;break;case"input":Y(e,r),o=Q(e,r),zr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=D({},r,{value:void 0}),zr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),zr("invalid",e)}for(i in ye(n,o),u=o)if(u.hasOwnProperty(i)){var c=u[i];"style"===i?ve(e,c):"dangerouslySetInnerHTML"===i?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===i?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(l.hasOwnProperty(i)?null!=c&&"onScroll"===i&&zr("scroll",e):null!=c&&b(e,i,c,s))}switch(n){case"input":q(e),Z(e,r,!1);break;case"textarea":q(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+$(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Wl(t),null;case 6:if(e&&null!=t.stateNode)Il(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=Qa(Ga.current),Qa(qa.current),fa(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(i=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Jr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Wl(t),null;case 13:if(Co(ei),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&1&t.mode&&!(128&t.flags))pa(),ma(),t.flags|=98560,i=!1;else if(i=fa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[po]=t}else ma(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Wl(t),i=!1}else null!==ia&&(au(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ei.current?0===Is&&(Is=3):mu())),null!==t.updateQueue&&(t.flags|=4),Wl(t),null);case 4:return Xa(),Tl(e,t),null===e&&Br(t.stateNode.containerInfo),Wl(t),null;case 10:return Oa(t.type._context),Wl(t),null;case 19:if(Co(ei),null===(i=t.memoizedState))return Wl(t),null;if(r=!!(128&t.flags),null===(s=i.rendering))if(r)$l(i,!1);else{if(0!==Is||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=ti(e))){for(t.flags|=128,$l(i,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(s=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _o(ei,1&ei.current|2),t.child}e=e.sibling}null!==i.tail&&Xe()>Us&&(t.flags|=128,r=!0,$l(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ti(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),$l(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate&&!aa)return Wl(t),null}else 2*Xe()-i.renderingStartTime>Us&&1073741824!==n&&(t.flags|=128,r=!0,$l(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=i.last)?n.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Xe(),t.sibling=null,n=ei.current,_o(ei,r?1&n|2:1&n),t):(Wl(t),null);case 22:case 23:return cu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Ts)&&(Wl(t),6&t.subtreeFlags&&(t.flags|=8192)):Wl(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Kl(e,t){switch(na(t),t.tag){case 1:return Io(t.type)&&Mo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xa(),Co(Po),Co(No),ri(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Za(t),null;case 13:if(Co(ei),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ma()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Co(ei),null;case 4:return Xa(),null;case 10:return Oa(t.type._context),null;case 22:case 23:return cu(),null;default:return null}}Pl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Tl=function(){},Rl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Qa(qa.current);var a,i=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),i=[];break;case"select":o=D({},o,{value:void 0}),r=D({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in ye(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(i=i||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(i=i||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&zr("scroll",e),i||s===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Il=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gl=!1,Ql=!1,Yl="function"==typeof WeakSet?WeakSet:Set,Xl=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){ku(e,t,n)}else n.current=null}function Zl(e,t,n){try{n()}catch(n){ku(e,t,n)}}var es=!1;function ts(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&Zl(t,n,a)}o=o.next}while(o!==r)}}function ns(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rs(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function os(e){var t=e.alternate;null!==t&&(e.alternate=null,os(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[mo],delete t[vo],delete t[go],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function as(e){return 5===e.tag||3===e.tag||4===e.tag}function is(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||as(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ls(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ls(e,t,n),e=e.sibling;null!==e;)ls(e,t,n),e=e.sibling}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}var us=null,cs=!1;function ds(e,t,n){for(n=n.child;null!==n;)fs(e,t,n),n=n.sibling}function fs(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ql||Jl(n,t);case 6:var r=us,o=cs;us=null,ds(e,t,n),cs=o,null!==(us=r)&&(cs?(e=us,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):us.removeChild(n.stateNode));break;case 18:null!==us&&(cs?(e=us,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Bt(e)):so(us,n.stateNode));break;case 4:r=us,o=cs,us=n.stateNode.containerInfo,cs=!0,ds(e,t,n),us=r,cs=o;break;case 0:case 11:case 14:case 15:if(!Ql&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(2&a||4&a)&&Zl(n,t,i),o=o.next}while(o!==r)}ds(e,t,n);break;case 1:if(!Ql&&(Jl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){ku(n,t,e)}ds(e,t,n);break;case 21:ds(e,t,n);break;case 22:1&n.mode?(Ql=(r=Ql)||null!==n.memoizedState,ds(e,t,n),Ql=r):ds(e,t,n);break;default:ds(e,t,n)}}function ps(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Yl),t.forEach(function(t){var r=_u.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ms(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:us=s.stateNode,cs=!1;break e;case 3:case 4:us=s.stateNode.containerInfo,cs=!0;break e}s=s.return}if(null===us)throw Error(a(160));fs(i,l,o),us=null,cs=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){ku(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)hs(t,e),t=t.sibling}function hs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),vs(e),4&r){try{ts(3,e,e.return),ns(3,e)}catch(t){ku(e,e.return,t)}try{ts(5,e,e.return)}catch(t){ku(e,e.return,t)}}break;case 1:ms(t,e),vs(e),512&r&&null!==n&&Jl(n,n.return);break;case 5:if(ms(t,e),vs(e),512&r&&null!==n&&Jl(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){ku(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,l=null!==n?n.memoizedProps:i,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===i.type&&null!=i.name&&X(o,i),be(s,l);var c=be(s,i);for(l=0;l<u.length;l+=2){var d=u[l],f=u[l+1];"style"===d?ve(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,c)}switch(s){case"input":J(o,i);break;case"textarea":ae(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?ne(o,!!i.multiple,m,!1):p!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[mo]=i}catch(t){ku(e,e.return,t)}}break;case 6:if(ms(t,e),vs(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){ku(e,e.return,t)}}break;case 3:if(ms(t,e),vs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(t){ku(e,e.return,t)}break;case 4:default:ms(t,e),vs(e);break;case 13:ms(t,e),vs(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Vs=Xe())),4&r&&ps(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ql=(c=Ql)||d,ms(t,e),Ql=c):ms(t,e),vs(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Xl=e,d=e.child;null!==d;){for(f=Xl=d;null!==Xl;){switch(m=(p=Xl).child,p.tag){case 0:case 11:case 14:case 15:ts(4,p,p.return);break;case 1:Jl(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){ku(r,n,e)}}break;case 5:Jl(p,p.return);break;case 22:if(null!==p.memoizedState){ws(f);continue}}null!==m?(m.return=p,Xl=m):ws(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=f.stateNode,l=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=he("display",l))}catch(t){ku(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){ku(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ms(t,e),vs(e),4&r&&ps(e);case 21:}}function vs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(as(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),ss(e,is(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;ls(e,is(e),i);break;default:throw Error(a(161))}}catch(t){ku(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gs(e,t,n){Xl=e,ys(e,t,n)}function ys(e,t,n){for(var r=!!(1&e.mode);null!==Xl;){var o=Xl,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Gl;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Ql;l=Gl;var u=Ql;if(Gl=i,(Ql=s)&&!u)for(Xl=o;null!==Xl;)s=(i=Xl).child,22===i.tag&&null!==i.memoizedState?Es(o):null!==s?(s.return=i,Xl=s):Es(o);for(;null!==a;)Xl=a,ys(a,t,n),a=a.sibling;Xl=o,Gl=l,Ql=u}bs(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,Xl=a):bs(e)}}function bs(e){for(;null!==Xl;){var t=Xl;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ql||ns(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ql)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&$a(t,i,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}$a(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Bt(f)}}}break;default:throw Error(a(163))}Ql||512&t.flags&&rs(t)}catch(e){ku(t,t.return,e)}}if(t===e){Xl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xl=n;break}Xl=t.return}}function ws(e){for(;null!==Xl;){var t=Xl;if(t===e){Xl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xl=n;break}Xl=t.return}}function Es(e){for(;null!==Xl;){var t=Xl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ns(4,t)}catch(e){ku(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){ku(t,o,e)}}var a=t.return;try{rs(t)}catch(e){ku(t,a,e)}break;case 5:var i=t.return;try{rs(t)}catch(e){ku(t,i,e)}}}catch(e){ku(t,t.return,e)}if(t===e){Xl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Xl=l;break}Xl=t.return}}var xs,ks=Math.ceil,Ss=w.ReactCurrentDispatcher,As=w.ReactCurrentOwner,Cs=w.ReactCurrentBatchConfig,_s=0,Os=null,Ns=null,Ps=0,Ts=0,Rs=Ao(0),Is=0,Ms=null,Fs=0,Ls=0,Ds=0,js=null,zs=null,Vs=0,Us=1/0,Bs=null,Hs=!1,$s=null,Ws=null,qs=!1,Ks=null,Gs=0,Qs=0,Ys=null,Xs=-1,Js=0;function Zs(){return 6&_s?Xe():-1!==Xs?Xs:Xs=Xe()}function eu(e){return 1&e.mode?2&_s&&0!==Ps?Ps&-Ps:null!==va.transition?(0===Js&&(Js=ht()),Js):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function tu(e,t,n,r){if(50<Qs)throw Qs=0,Ys=null,Error(a(185));gt(e,n,r),2&_s&&e===Os||(e===Os&&(!(2&_s)&&(Ls|=n),4===Is&&iu(e,Ps)),nu(e,r),1===n&&0===_s&&!(1&t.mode)&&(Us=Xe()+500,Vo&&Ho()))}function nu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),l=1<<i,s=o[i];-1===s?0!==(l&n)&&0===(l&r)||(o[i]=pt(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=ft(e,e===Os?Ps:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Vo=!0,Bo(e)}(lu.bind(null,e)):Bo(lu.bind(null,e)),io(function(){!(6&_s)&&Ho()}),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ou(n,ru.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ru(e,t){if(Xs=-1,Js=0,6&_s)throw Error(a(327));var n=e.callbackNode;if(Eu()&&e.callbackNode!==n)return null;var r=ft(e,e===Os?Ps:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=hu(e,r);else{t=r;var o=_s;_s|=2;var i=pu();for(Os===e&&Ps===t||(Bs=null,Us=Xe()+500,du(e,t));;)try{gu();break}catch(t){fu(e,t)}_a(),Ss.current=i,_s=o,null!==Ns?t=0:(Os=null,Ps=0,t=Is)}if(0!==t){if(2===t&&(0!==(o=mt(e))&&(r=o,t=ou(e,o))),1===t)throw n=Ms,du(e,0),iu(e,r),nu(e,Xe()),n;if(6===t)iu(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!lr(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=hu(e,r),2===t&&(i=mt(e),0!==i&&(r=i,t=ou(e,i))),1!==t)))throw n=Ms,du(e,0),iu(e,r),nu(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:wu(e,zs,Bs);break;case 3:if(iu(e,r),(130023424&r)===r&&10<(t=Vs+500-Xe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Zs(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(wu.bind(null,e,zs,Bs),t);break}wu(e,zs,Bs);break;case 4:if(iu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-it(r);i=1<<l,(l=t[l])>o&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ks(r/1960))-r)){e.timeoutHandle=ro(wu.bind(null,e,zs,Bs),r);break}wu(e,zs,Bs);break;default:throw Error(a(329))}}}return nu(e,Xe()),e.callbackNode===n?ru.bind(null,e):null}function ou(e,t){var n=js;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=hu(e,t))&&(t=zs,zs=n,null!==t&&au(t)),e}function au(e){null===zs?zs=e:zs.push.apply(zs,e)}function iu(e,t){for(t&=~Ds,t&=~Ls,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&_s)throw Error(a(327));Eu();var t=ft(e,0);if(!(1&t))return nu(e,Xe()),null;var n=hu(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=ou(e,r))}if(1===n)throw n=Ms,du(e,0),iu(e,t),nu(e,Xe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,zs,Bs),nu(e,Xe()),null}function su(e,t){var n=_s;_s|=1;try{return e(t)}finally{0===(_s=n)&&(Us=Xe()+500,Vo&&Ho())}}function uu(e){null!==Ks&&0===Ks.tag&&!(6&_s)&&Eu();var t=_s;_s|=1;var n=Cs.transition,r=bt;try{if(Cs.transition=null,bt=1,e)return e()}finally{bt=r,Cs.transition=n,!(6&(_s=t))&&Ho()}}function cu(){Ts=Rs.current,Co(Rs)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ns)for(n=Ns.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Mo();break;case 3:Xa(),Co(Po),Co(No),ri();break;case 5:Za(r);break;case 4:Xa();break;case 13:case 19:Co(ei);break;case 10:Oa(r.type._context);break;case 22:case 23:cu()}n=n.return}if(Os=e,Ns=e=Ru(e.current,null),Ps=Ts=t,Is=0,Ms=null,Ds=Ls=Fs=0,zs=js=null,null!==Ra){for(t=0;t<Ra.length;t++)if(null!==(r=(n=Ra[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Ra=null}return e}function fu(e,t){for(;;){var n=Ns;try{if(_a(),oi.current=Ji,ci){for(var r=li.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ci=!1}if(ii=0,ui=si=li=null,di=!1,fi=0,As.current=null,null===n||null===n.return){Is=1,Ms=t,Ns=null;break}e:{var i=e,l=n.return,s=n,u=t;if(t=Ps,s.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=s,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=hl(l);if(null!==m){m.flags&=-257,vl(m,l,s,0,t),1&m.mode&&ml(i,c,t),u=c;var h=(t=m).updateQueue;if(null===h){var v=new Set;v.add(u),t.updateQueue=v}else h.add(u);break e}if(!(1&t)){ml(i,c,t),mu();break e}u=Error(a(426))}else if(aa&&1&s.mode){var g=hl(l);if(null!==g){!(65536&g.flags)&&(g.flags|=256),vl(g,l,s,0,t),ha(ul(u,s));break e}}i=u=ul(u,s),4!==Is&&(Is=2),null===js?js=[i]:js.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ba(i,fl(0,u,t));break e;case 1:s=u;var y=i.type,b=i.stateNode;if(!(128&i.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Ws&&Ws.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Ba(i,pl(i,s,t));break e}}i=i.return}while(null!==i)}bu(n)}catch(e){t=e,Ns===n&&null!==n&&(Ns=n=n.return);continue}break}}function pu(){var e=Ss.current;return Ss.current=Ji,null===e?Ji:e}function mu(){0!==Is&&3!==Is&&2!==Is||(Is=4),null===Os||!(268435455&Fs)&&!(268435455&Ls)||iu(Os,Ps)}function hu(e,t){var n=_s;_s|=2;var r=pu();for(Os===e&&Ps===t||(Bs=null,du(e,t));;)try{vu();break}catch(t){fu(e,t)}if(_a(),_s=n,Ss.current=r,null!==Ns)throw Error(a(261));return Os=null,Ps=0,Is}function vu(){for(;null!==Ns;)yu(Ns)}function gu(){for(;null!==Ns&&!Qe();)yu(Ns)}function yu(e){var t=xs(e.alternate,e,Ts);e.memoizedProps=e.pendingProps,null===t?bu(e):Ns=t,As.current=null}function bu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Kl(n,t)))return n.flags&=32767,void(Ns=n);if(null===e)return Is=6,void(Ns=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=ql(n,t,Ts)))return void(Ns=n);if(null!==(t=t.sibling))return void(Ns=t);Ns=t=e}while(null!==t);0===Is&&(Is=5)}function wu(e,t,n){var r=bt,o=Cs.transition;try{Cs.transition=null,bt=1,function(e,t,n,r){do{Eu()}while(null!==Ks);if(6&_s)throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Os&&(Ns=Os=null,Ps=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||qs||(qs=!0,Ou(tt,function(){return Eu(),null})),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=Cs.transition,Cs.transition=null;var l=bt;bt=1;var s=_s;_s|=4,As.current=null,function(e,t){if(eo=$t,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var l=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==n||0!==o&&3!==f.nodeType||(s=l+o),f!==i||0!==r&&3!==f.nodeType||(u=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(m=f.firstChild);)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++c===o&&(s=l),p===i&&++d===r&&(u=l),null!==(m=f.nextSibling))break;p=(f=p).parentNode}f=m}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},$t=!1,Xl=t;null!==Xl;)if(e=(t=Xl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xl=e;else for(;null!==Xl;){t=Xl;try{var h=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var v=h.memoizedProps,g=h.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:nl(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(e){ku(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xl=e;break}Xl=t.return}h=es,es=!1}(e,n),hs(n,e),mr(to),$t=!!eo,to=eo=null,e.current=n,gs(n,e,o),Ye(),_s=s,bt=l,Cs.transition=i}else e.current=n;if(qs&&(qs=!1,Ks=e,Gs=o),i=e.pendingLanes,0===i&&(Ws=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),nu(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Hs)throw Hs=!1,e=$s,$s=null,e;!!(1&Gs)&&0!==e.tag&&Eu(),i=e.pendingLanes,1&i?e===Ys?Qs++:(Qs=0,Ys=e):Qs=0,Ho()}(e,t,n,r)}finally{Cs.transition=o,bt=r}return null}function Eu(){if(null!==Ks){var e=wt(Gs),t=Cs.transition,n=bt;try{if(Cs.transition=null,bt=16>e?16:e,null===Ks)var r=!1;else{if(e=Ks,Ks=null,Gs=0,6&_s)throw Error(a(331));var o=_s;for(_s|=4,Xl=e.current;null!==Xl;){var i=Xl,l=i.child;if(16&Xl.flags){var s=i.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Xl=c;null!==Xl;){var d=Xl;switch(d.tag){case 0:case 11:case 15:ts(8,d,i)}var f=d.child;if(null!==f)f.return=d,Xl=f;else for(;null!==Xl;){var p=(d=Xl).sibling,m=d.return;if(os(d),d===c){Xl=null;break}if(null!==p){p.return=m,Xl=p;break}Xl=m}}}var h=i.alternate;if(null!==h){var v=h.child;if(null!==v){h.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Xl=i}}if(2064&i.subtreeFlags&&null!==l)l.return=i,Xl=l;else e:for(;null!==Xl;){if(2048&(i=Xl).flags)switch(i.tag){case 0:case 11:case 15:ts(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Xl=y;break e}Xl=i.return}}var b=e.current;for(Xl=b;null!==Xl;){var w=(l=Xl).child;if(2064&l.subtreeFlags&&null!==w)w.return=l,Xl=w;else e:for(l=b;null!==Xl;){if(2048&(s=Xl).flags)try{switch(s.tag){case 0:case 11:case 15:ns(9,s)}}catch(e){ku(s,s.return,e)}if(s===l){Xl=null;break e}var E=s.sibling;if(null!==E){E.return=s.return,Xl=E;break e}Xl=s.return}}if(_s=o,Ho(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Cs.transition=t}}return!1}function xu(e,t,n){e=Va(e,t=fl(0,t=ul(n,t),1),1),t=Zs(),null!==e&&(gt(e,1,t),nu(e,t))}function ku(e,t,n){if(3===e.tag)xu(e,e,n);else for(;null!==t;){if(3===t.tag){xu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ws||!Ws.has(r))){t=Va(t,e=pl(t,e=ul(n,e),1),1),e=Zs(),null!==t&&(gt(t,1,e),nu(t,e));break}}t=t.return}}function Su(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Zs(),e.pingedLanes|=e.suspendedLanes&n,Os===e&&(Ps&n)===n&&(4===Is||3===Is&&(130023424&Ps)===Ps&&500>Xe()-Vs?du(e,0):Ds|=n),nu(e,t)}function Au(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=Zs();null!==(e=Fa(e,t))&&(gt(e,t,n),nu(e,n))}function Cu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Au(e,n)}function _u(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Au(e,n)}function Ou(e,t){return Ke(e,t)}function Nu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pu(e,t,n,r){return new Nu(e,t,n,r)}function Tu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ru(e,t){var n=e.alternate;return null===n?((n=Pu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Iu(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Tu(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case k:return Mu(n.children,o,i,t);case S:l=8,o|=8;break;case A:return(e=Pu(12,n,t,2|o)).elementType=A,e.lanes=i,e;case N:return(e=Pu(13,n,t,o)).elementType=N,e.lanes=i,e;case P:return(e=Pu(19,n,t,o)).elementType=P,e.lanes=i,e;case I:return Fu(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:l=10;break e;case _:l=9;break e;case O:l=11;break e;case T:l=14;break e;case R:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Pu(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Mu(e,t,n,r){return(e=Pu(7,e,r,t)).lanes=n,e}function Fu(e,t,n,r){return(e=Pu(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function Lu(e,t,n){return(e=Pu(6,e,null,t)).lanes=n,e}function Du(e,t,n){return(t=Pu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ju(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zu(e,t,n,r,o,a,i,l,s){return e=new ju(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Pu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Da(a),e}function Vu(e){if(!e)return Oo;e:{if(Be(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Io(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Io(n))return Lo(e,n,t)}return t}function Uu(e,t,n,r,o,a,i,l,s){return(e=zu(n,r,!0,e,0,a,0,l,s)).context=Vu(null),n=e.current,(a=za(r=Zs(),o=eu(n))).callback=null!=t?t:null,Va(n,a,o),e.current.lanes=o,gt(e,o,r),nu(e,r),e}function Bu(e,t,n,r){var o=t.current,a=Zs(),i=eu(o);return n=Vu(n),null===t.context?t.context=n:t.pendingContext=n,(t=za(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Va(o,t,i))&&(tu(e,o,i,a),Ua(e,o,i)),i}function Hu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $u(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wu(e,t){$u(e,t),(e=e.alternate)&&$u(e,t)}xs=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Po.current)yl=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return yl=!1,function(e,t,n){switch(t.tag){case 3:Ol(t),ma();break;case 5:Ja(t);break;case 1:Io(t.type)&&Do(t);break;case 4:Ya(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;_o(ka,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_o(ei,1&ei.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ll(e,t,n):(_o(ei,1&ei.current),null!==(e=Hl(e,t,n))?e.sibling:null);_o(ei,1&ei.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Ul(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),_o(ei,ei.current),r)break;return null;case 22:case 23:return t.lanes=0,kl(e,t,n)}return Hl(e,t,n)}(e,t,n);yl=!!(131072&e.flags)}else yl=!1,aa&&1048576&t.flags&&ea(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bl(e,t),e=t.pendingProps;var o=Ro(t,No.current);Pa(t,n),o=vi(null,t,r,e,o,n);var i=gi();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Io(r)?(i=!0,Do(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Da(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,sl(t,r,e,n),t=_l(null,t,r,!0,i,n)):(t.tag=0,aa&&i&&ta(t),bl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Tu(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===T)return 14}return 2}(r),e=nl(r,e),o){case 0:t=Al(null,t,r,e,n);break e;case 1:t=Cl(null,t,r,e,n);break e;case 11:t=wl(null,t,r,e,n);break e;case 14:t=El(null,t,r,nl(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Al(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 1:return r=t.type,o=t.pendingProps,Cl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 3:e:{if(Ol(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,ja(e,t),Ha(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Nl(e,t,r,n,o=ul(Error(a(423)),t));break e}if(r!==o){t=Nl(e,t,r,n,o=ul(Error(a(424)),t));break e}for(oa=uo(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,n=xa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ma(),r===o){t=Hl(e,t,n);break e}bl(e,t,r,n)}t=t.child}return t;case 5:return Ja(t),null===e&&ca(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==i&&no(r,i)&&(t.flags|=32),Sl(e,t),bl(e,t,l,n),t.child;case 6:return null===e&&ca(t),null;case 13:return Ll(e,t,n);case 4:return Ya(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ea(t,null,r,n):bl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,wl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 7:return bl(e,t,t.pendingProps,n),t.child;case 8:case 12:return bl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,_o(ka,r._currentValue),r._currentValue=l,null!==i)if(lr(i.value,l)){if(i.children===o.children&&!Po.current){t=Hl(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){l=i.child;for(var u=s.firstContext;null!==u;){if(u.context===r){if(1===i.tag){(u=za(-1,n&-n)).tag=2;var c=i.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=n,null!==(u=i.alternate)&&(u.lanes|=n),Na(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(a(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Na(l,n,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}bl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Pa(t,n),r=r(o=Ta(o)),t.flags|=1,bl(e,t,r,n),t.child;case 14:return o=nl(r=t.type,t.pendingProps),El(e,t,r,o=nl(r.type,o),n);case 15:return xl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nl(r,o),Bl(e,t),t.tag=1,Io(r)?(e=!0,Do(t)):e=!1,Pa(t,n),il(t,r,o),sl(t,r,o,n),_l(null,t,r,!0,e,n);case 19:return Ul(e,t,n);case 22:return kl(e,t,n)}throw Error(a(156,t.tag))};var qu="function"==typeof reportError?reportError:function(e){};function Ku(e){this._internalRoot=e}function Gu(e){this._internalRoot=e}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xu(){}function Ju(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=Hu(i);l.call(e)}}Bu(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Hu(i);a.call(e)}}var i=Uu(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=i,e[ho]=i.current,Br(8===e.nodeType?e.parentNode:e),uu(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Hu(s);l.call(e)}}var s=zu(e,0,!1,null,0,!1,0,"",Xu);return e._reactRootContainer=s,e[ho]=s.current,Br(8===e.nodeType?e.parentNode:e),uu(function(){Bu(t,s,n,r)}),s}(n,t,e,o,r);return Hu(i)}Gu.prototype.render=Ku.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Bu(e,t,null,null)},Gu.prototype.unmount=Ku.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uu(function(){Bu(null,e,null,null)}),t[ho]=null}},Gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&Dt(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),nu(t,Xe()),!(6&_s)&&(Us=Xe()+500,Ho()))}break;case 13:uu(function(){var t=Fa(e,1);if(null!==t){var n=Zs();tu(t,e,1,n)}}),Wu(e,1)}},xt=function(e){if(13===e.tag){var t=Fa(e,134217728);if(null!==t)tu(t,e,134217728,Zs());Wu(e,134217728)}},kt=function(e){if(13===e.tag){var t=eu(e),n=Fa(e,t);if(null!==n)tu(n,e,t,Zs());Wu(e,t)}},St=function(){return bt},At=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(a(90));K(r),J(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Oe=su,Ne=uu;var Zu={usingClientEntryPoint:!1,Events:[wo,Eo,xo,Ce,_e,su]},ec={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tc={bundleType:ec.bundleType,version:ec.version,rendererPackageName:ec.rendererPackageName,rendererConfig:ec.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:ec.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nc.isDisabled&&nc.supportsFiber)try{ot=nc.inject(tc),at=nc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Qu(e))throw Error(a(299));var n=!1,r="",o=qu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zu(e,1,!1,null,0,n,0,r,o),e[ho]=t.current,Br(8===e.nodeType?e.parentNode:e),new Ku(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return uu(e)},t.hydrate=function(e,t,n){if(!Yu(t))throw Error(a(200));return Ju(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qu(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",l=qu;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Uu(t,null,e,1,null!=n?n:null,o,0,i,l),e[ho]=t.current,Br(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Gu(t)},t.render=function(e,t,n){if(!Yu(t))throw Error(a(200));return Ju(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Yu(e))throw Error(a(40));return!!e._reactRootContainer&&(uu(function(){Ju(null,null,e,!1,function(){e._reactRootContainer=null,e[ho]=null})}),!0)},t.unstable_batchedUpdates=su,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Yu(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Ju(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},2630:(e,t,n)=>{"use strict";n.d(t,{FB:()=>o,LL:()=>c,WT:()=>u,fh:()=>r,pU:()=>s,sN:()=>a,y8:()=>d,zz:()=>l});var r="ADD_ALERT",o="CLEAR_ALERT",a="REMOVE_ALERT";function i(e){return{type:r,value:{message:e,variant:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info"}}}function l(e){return i(e,"success")}function s(e){return i(e,"danger")}function u(e){return i(e,"info")}function c(e){return{type:a,value:{index:e}}}function d(){return{type:o}}},2650:(e,t,n)=>{"use strict";n.d(t,{d:()=>m,M:()=>h});var r=n(5523),o=n(2630),a=[];const i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.fh:return e=[t.value];case o.FB:return a;case o.sN:return e=e.filter(function(e,n){return n!==t.value.index});default:return e}};var l=n(4467),s=n(8938);function u(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){(0,l.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.type===s.t?c(c({},e),t.value):e};var f=n(8588),p=n(5452),m={moduleConfig:r.Ay,alertsManager:i,constants:d,failedTranslation:f.Ay},h=(0,p.U1)({reducer:m})},2660:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(1625);function o(e,t){return function(e){var t=(0,r.A)(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}var a=/([A-Z])/g;var i=/^ms-/;function l(e){return function(e){return e.replace(a,"-$1").toLowerCase()}(e).replace(i,"-ms-")}var s=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const u=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(l(t))||o(e).getPropertyValue(l(t));Object.keys(t).forEach(function(o){var a=t[o];a||0===a?!function(e){return!(!e||!s.test(e))}(o)?n+=l(o)+": "+a+";":r+=o+"("+a+") ":e.style.removeProperty(l(o))}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},2792:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(3029),o=n(2901),a=n(388),i=n(3954),l=n(5501),s=n(6540),u=n(7226),c=n(5556),d=n.n(c);function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var p=function(e){function t(){return(0,r.A)(this,t),e=this,n=t,o=arguments,n=(0,i.A)(n),(0,a.A)(e,f()?Reflect.construct(n,o||[],(0,i.A)(e).constructor):n.apply(e,o));var e,n,o}return(0,l.A)(t,e),(0,o.A)(t,[{key:"render",value:function(){return s.createElement(u.A,{backdrop:"static",centered:!0,backdropClassName:"dg-modal",dialogClassName:"dg-modal",show:this.props.show,onHide:this.props.onHide},s.createElement(u.A.Header,{closeButton:!0},s.createElement(u.A.Title,null,s.createElement("h3",{style:{marginTop:"0.45rem"}},this.props.title))),s.createElement(u.A.Body,{className:"pt-3",style:{fontSize:"1rem"}},this.props.modalBody),s.createElement(u.A.Footer,null,this.props.modalFooter))}}])}(s.Component);p.propTypes={title:d().oneOfType([d().string,d().element]).isRequired,show:d().bool.isRequired,modalBody:d().element.isRequired,modalFooter:d().element.isRequired,onHide:d().func.isRequired};const m=p},2799:(e,t)=>{"use strict";
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case a:case l:case i:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case h:case s:return e;default:return t}}case o:return t}}}function x(e){return E(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=v,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||E(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===h},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===i||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===s||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=E},2816:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.default)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=null;return t.forEach(function(e){if(null==o){var t=e.apply(void 0,n);null!=t&&(o=t)}}),o})};var r,o=n(5441),a=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},2894:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(5458),o=n(3029),a=n(2901),i=function(){return(0,a.A)(function e(){return(0,o.A)(this,e),e.instance||(this.ajaxManager=new l,e.instance=this),e.instance},[{key:"getAjaxManager",value:function(){return this.ajaxManager}}])}(),l=function(){return(0,a.A)(function e(){(0,o.A)(this,e),this._pending=[],this._pausedQueue=[],this._isPaused=!1,this._current=null,this._pollTid=null,this._pauseTid=null},[{key:"getCurrentRequest",value:function(){return this._pending[0]||null}},{key:"getRequestsPaused",value:function(){return(0,r.A)(this._pausedQueue)}},{key:"setRequestsPaused",value:function(e){Array.isArray(e)&&(this._pausedQueue=(0,r.A)(e))}},{key:"addReq",value:function(e){this._isPaused?this._pausedQueue.push(e):(this._pending.push(e),this._start())}},{key:"addReqFirsts",value:function(e){var t=this._isPaused?this._pausedQueue:this._pending,n=Math.min(2,t.length);t.splice(n,0,e),this._start()}},{key:"removeReq",value:function(e){[this._pending,this._pausedQueue].forEach(function(t){var n=t.indexOf(e);n>-1&&t.splice(n,1)})}},{key:"pause",value:function(){this._isPaused||(this._isPaused=!0,this._pausedQueue=[].concat((0,r.A)(this._pending),(0,r.A)(this._pausedQueue)),this._pending=[],this.stop())}},{key:"stopPause",value:function(){var e=this;this._isPaused&&(clearTimeout(this._pauseTid),this._pauseTid=setTimeout(function(){e._isPaused=!1,e._pending=[].concat((0,r.A)(e._pausedQueue),(0,r.A)(e._pending)),e._pausedQueue=[],e._start()},1500))}},{key:"_start",value:function(){this._isPaused||null!==this._current||this.run()}},{key:"run",value:function(){var e=this;if(!this._isPaused&&null===this._current)if(0!==this._pending.length){var t=this._pending.shift(),n=t.complete,r=t.error,o=this;t.complete=function(e,t){"function"==typeof n&&n(e,t),o._current=null,o.run()},t.error=function(e){"abort"!==(null==e?void 0:e.statusText)&&"function"==typeof r&&r(e)};var a=$.ajax(t);this._current={opt:t,jqXHR:a}}else this._pollTid=setTimeout(function(){return e.run()},1e3)}},{key:"stop",value:function(){if(clearTimeout(this._pollTid),this._current){var e=this._current,t=e.opt;e.jqXHR.abort(),this._isPaused?this._pausedQueue.unshift(t):this._pending.unshift(t),this._current=null}}},{key:"reset",value:function(){this.stop(),this._isPaused=!1,this._start()}}])}(),s=new i;Object.freeze(s);const u=s},2901:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(816);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},3029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},3097:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(6540),o=n(5556),a=n.n(o),i=n(1468),l=n(8004);n(5289);function s(e){var t,n=(0,i.d4)(l.c),o=e.language;return r.createElement("img",{height:11,width:16,src:n.psBaseUrl+"/img/l/"+(null!==(t=o.value)&&void 0!==t?t:o)+".jpg",style:{marginRight:"5px",marginTop:"-2px"}})}s.propTypes={language:a().oneOfType([a().object,a().number]).isRequired};const u=(0,r.memo)(s)},3145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},3340:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=n(6540),s=n(1558),u=n(6519),c=n(5724),d=l.createContext(null);d.displayName="AccordionContext";const f=d;var p=["as","children","eventKey","onClick"];const m=l.forwardRef(function(e,t){var n=e.as,a=void 0===n?"button":n,i=e.children,s=e.eventKey,u=e.onClick,d=(0,o.A)(e,p),m=function(e,t){var n=(0,l.useContext)(f),r=(0,l.useContext)(c.A);return function(o){r&&r(e===n?null:e,o),t&&t(o)}}(s,u);return"button"===a&&(d.type="button"),l.createElement(a,(0,r.A)({ref:t,onClick:m},d),i)});var h=n(8280),v=["children","eventKey"],g=l.forwardRef(function(e,t){var n=e.children,a=e.eventKey,i=(0,o.A)(e,v),s=(0,l.useContext)(f);return l.createElement(c.A.Provider,{value:null},l.createElement(h.A,(0,r.A)({ref:t,in:s===a},i),l.createElement("div",null,l.Children.only(n))))});g.displayName="AccordionCollapse";const y=g;var b=["as","activeKey","bsPrefix","children","className","onSelect"],w=l.forwardRef(function(e,t){var n=(0,s.Zw)(e,{activeKey:"onSelect"}),a=n.as,d=void 0===a?"div":a,p=n.activeKey,m=n.bsPrefix,h=n.children,v=n.className,g=n.onSelect,y=(0,o.A)(n,b),w=i()(v,(0,u.oU)(m,"accordion"));return l.createElement(f.Provider,{value:p||null},l.createElement(c.A.Provider,{value:g||null},l.createElement(d,(0,r.A)({ref:t},y,{className:w}),h)))});w.displayName="Accordion",w.Toggle=m,w.Collapse=y;const E=w},3399:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=n(6540),s=n(6519),u=n(9528),c=["min","now","max","label","srOnly","striped","animated","className","style","variant","bsPrefix"],d=["isChild"],f=["min","now","max","label","srOnly","striped","animated","bsPrefix","variant","className","children"];function p(e,t,n){var r=(e-t)/(n-t)*100;return Math.round(1e3*r)/1e3}function m(e,t){var n,a=e.min,s=e.now,u=e.max,d=e.label,f=e.srOnly,m=e.striped,h=e.animated,v=e.className,g=e.style,y=e.variant,b=e.bsPrefix,w=(0,o.A)(e,c);return l.createElement("div",(0,r.A)({ref:t},w,{role:"progressbar",className:i()(v,b+"-bar",(n={},n["bg-"+y]=y,n[b+"-bar-animated"]=h,n[b+"-bar-striped"]=h||m,n)),style:(0,r.A)({width:p(s,a,u)+"%"},g),"aria-valuenow":s,"aria-valuemin":a,"aria-valuemax":u}),f?l.createElement("span",{className:"sr-only"},d):d)}var h=l.forwardRef(function(e,t){var n=e.isChild,a=(0,o.A)(e,d);if(a.bsPrefix=(0,s.oU)(a.bsPrefix,"progress"),n)return m(a,t);var c=a.min,p=a.now,h=a.max,v=a.label,g=a.srOnly,y=a.striped,b=a.animated,w=a.bsPrefix,E=a.variant,x=a.className,k=a.children,S=(0,o.A)(a,f);return l.createElement("div",(0,r.A)({ref:t},S,{className:i()(x,w)}),k?(0,u.T)(k,function(e){return(0,l.cloneElement)(e,{isChild:!0})}):m({min:c,now:p,max:h,label:v,srOnly:g,striped:y,animated:b,bsPrefix:w,variant:E},t))});h.displayName="ProgressBar",h.defaultProps={min:0,max:100,animated:!1,isChild:!1,srOnly:!1,striped:!1};const v=h},3440:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(3029),o=n(2901),a=n(388),i=n(3954),l=n(5501),s=n(4467),u=n(6540),c=n(9367),d=n(2532),f=n(3524),p=n(5498),m=n(1468),h=n(5289),v=n(5556),g=n.n(v);function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}var b=function(e){function t(e){var n,o,l,u;return(0,r.A)(this,t),o=this,l=t,u=[e],l=(0,i.A)(l),n=(0,a.A)(o,y()?Reflect.construct(l,u||[],(0,i.A)(o).constructor):l.apply(o,u)),(0,s.A)(n,"interval",void 0),n.state={loading:!1,remainingTime:e.remainingTime,dislayRemainingTime:null},n}return(0,l.A)(t,e),(0,o.A)(t,[{key:"componentDidMount",value:function(){this.renderTimeAgo()}},{key:"componentDidUpdate",value:function(e,t,n){var r=this;e.remainingTime!==this.props.remainingTime&&this.setState({remainingTime:this.props.remainingTime},function(){r.renderTimeAgo()})}},{key:"renderTimeAgo",value:function(){var e=this;clearInterval(this.interval);var t=new Date((new Date).getTime()+1e3*this.state.remainingTime),n=Date.parse(t)-Date.parse(new Date),r=Math.floor(n/1e3%60),o=Math.floor(n/1e3/60%60),a=Math.floor(n/36e5%24);a<=0&&o<=0&&r<=0?this.setState({loading:!0}):this.setState({loading:!1});var i=function(e){return("0"+e).slice(-2)};this.setState({remainingTime:this.state.remainingTime-1,dislayRemainingTime:i(a)+":"+i(o)+":"+i(r)}),this.interval=setInterval(function(){e.renderTimeAgo()},1e3)}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){var e=this.state,t=e.loading,n=e.dislayRemainingTime,r=this.props.translations;return u.createElement(u.Fragment,null,t&&u.createElement(u.Fragment,null,u.createElement("span",{style:{float:"left"},className:"mr-2"},(0,p.pw)("Search for elements to translate",r)),u.createElement(c.A,{size:16})),!t&&u.createElement(u.Fragment,null,this.props.showLabel&&u.createElement("span",{className:"mr-1"},(0,p.pw)("Translation in progress",r)," - "),u.createElement("time",null,n),u.createElement(d.A,{placement:"top",overlay:u.createElement(f.A,{id:"tooltip-top"},(0,p.pw)("Estimated time remaining before the end of the translation.",r))},u.createElement("a",{href:"#",className:"toolbar-button"},u.createElement("i",{className:"material-icons",style:{fontSize:"15px",marginLeft:"2px",marginTop:"-3px"}},"info")))))}}])}(u.Component);b.propTypes={remainingTime:g().string.isRequired,showLabel:g().bool},b.defaultProps={showLabel:!0};const w=(0,m.Ng)(function(e){return{translations:(0,h.fF)(e)}})(b)},3524:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=n(6540),s=(n(8239),n(6519)),u=["bsPrefix","placement","className","style","children","arrowProps","popper","show"],c=l.forwardRef(function(e,t){var n=e.bsPrefix,a=e.placement,c=e.className,d=e.style,f=e.children,p=e.arrowProps,m=(e.popper,e.show,(0,o.A)(e,u));n=(0,s.oU)(n,"tooltip");var h=((null==a?void 0:a.split("-"))||[])[0];return l.createElement("div",(0,r.A)({ref:t,style:d,role:"tooltip","x-placement":h,className:i()(c,n,"bs-tooltip-"+h)},m),l.createElement("div",(0,r.A)({className:"arrow"},p)),l.createElement("div",{className:n+"-inner"},f))});c.defaultProps={placement:"right"},c.displayName="Tooltip";const d=c},3559:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540).createContext(null);r.displayName="NavContext";const o=r},3662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},3674:(e,t,n)=>{"use strict";n.d(t,{_K:()=>f,ns:()=>d,kp:()=>c,ze:()=>p,Ay:()=>v});var r=n(8587),o=n(7387),a=n(6540),i=n(961);const l=!1,s=a.createContext(null);var u="unmounted",c="exited",d="entering",f="entered",p="exiting",m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=c,r.appearStatus=d):o=f:o=t.unmountOnExit||t.mountOnEnter?u:c,r.state={status:o},r.nextCallback=null,r}(0,o.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:c}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==f&&(t=d):n!==d&&n!==f||(t=p)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.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}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===d){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:i.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:u})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[i.findDOMNode(this),r],a=o[0],s=o[1],u=this.getTimeouts(),c=r?u.appear:u.enter;!e&&!n||l?this.safeSetState({status:f},function(){t.props.onEntered(a)}):(this.props.onEnter(a,s),this.safeSetState({status:d},function(){t.props.onEntering(a,s),t.onTransitionEnd(c,function(){t.safeSetState({status:f},function(){t.props.onEntered(a,s)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:i.findDOMNode(this);t&&!l?(this.props.onExit(r),this.safeSetState({status:p},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:c},function(){e.props.onExited(r)})})})):this.safeSetState({status:c},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.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},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:i.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],l=o[1];this.props.addEndListener(a,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.createElement(s.Provider,{value:null},"function"==typeof n?n(e,o):a.cloneElement(a.Children.only(n),o))},t}(a.Component);function h(){}m.contextType=s,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},m.UNMOUNTED=u,m.EXITED=c,m.ENTERING=d,m.ENTERED=f,m.EXITING=p;const v=m},3738:e=>{function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3804:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6540);const o=e=>e&&"function"!=typeof e?t=>{e.current=t}:e;const a=function(e,t){return(0,r.useMemo)(()=>function(e,t){const n=o(e),r=o(t);return e=>{n&&n(e),r&&r(e)}}(e,t),[e,t])}},3954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},4103:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);function o(e){const t=(0,r.useRef)(null);return(0,r.useEffect)(()=>{t.current=e}),t.current}},4146:(e,t,n)=>{"use strict";var r=n(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var i=c(n);d&&(i=i.concat(d(n)));for(var l=s(t),h=s(n),v=0;v<i.length;++v){var g=i[v];if(!(a[g]||r&&r[g]||h&&h[g]||l&&l[g])){var y=f(n,g);try{u(t,g,y)}catch(e){}}}}return t}},4243:(e,t,n)=>{"use strict";function r(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}n.d(t,{A:()=>r})},4278:(e,t,n)=>{"use strict";n.d(t,{DD:()=>v,GM:()=>g,Mn:()=>r,OM:()=>s,Ol:()=>h,R9:()=>f,WY:()=>d,_N:()=>c,ir:()=>m,kb:()=>i,ni:()=>u,pG:()=>a,qZ:()=>l,sQ:()=>o,xf:()=>p});var r="top",o="bottom",a="right",i="left",l="auto",s=[r,o,a,i],u="start",c="end",d="clippingParents",f="viewport",p="popper",m="reference",h=s.reduce(function(e,t){return e.concat([t+"-"+u,t+"-"+c])},[]),v=[].concat(s,[l]).reduce(function(e,t){return e.concat([t,t+"-"+u,t+"-"+c])},[]),g=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},4373:e=>{e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},4390:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540).createContext(null);r.displayName="CardContext";const o=r},4417:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},4467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(816);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},4479:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=n(6540),s=n(6519),u=["bsPrefix","className","noGutters","as"],c=["xl","lg","md","sm","xs"],d=l.forwardRef(function(e,t){var n=e.bsPrefix,a=e.className,d=e.noGutters,f=e.as,p=void 0===f?"div":f,m=(0,o.A)(e,u),h=(0,s.oU)(n,"row"),v=h+"-cols",g=[];return c.forEach(function(e){var t,n=m[e];delete m[e];var r="xs"!==e?"-"+e:"";null!=(t=null!=n&&"object"==typeof n?n.cols:n)&&g.push(""+v+r+"-"+t)}),l.createElement(p,(0,r.A)({ref:t},m,{className:i().apply(void 0,[a,h,d&&"no-gutters"].concat(g))}))});d.displayName="Row",d.defaultProps={noGutters:!1};const f=d},4483:(e,t,n)=>{"use strict";n.d(t,{A:()=>fe});var r=n(8168),o=n(8587),a=n(6540),i=n(8880);const l=function(e){const t=(0,i.A)();return[e[0],(0,a.useCallback)(n=>{if(t())return e[1](n)},[t,e[1]])]};function s(e){return e.split("-")[0]}function u(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function c(e){return e instanceof u(e).Element||e instanceof Element}function d(e){return e instanceof u(e).HTMLElement||e instanceof HTMLElement}function f(e){return"undefined"!=typeof ShadowRoot&&(e instanceof u(e).ShadowRoot||e instanceof ShadowRoot)}var p=Math.max,m=Math.min,h=Math.round;function v(){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 g(){return!/^((?!chrome|android).)*safari/i.test(v())}function y(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&d(e)&&(o=e.offsetWidth>0&&h(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&h(r.height)/e.offsetHeight||1);var i=(c(e)?u(e):window).visualViewport,l=!g()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,f=(r.top+(l&&i?i.offsetTop:0))/a,p=r.width/o,m=r.height/a;return{width:p,height:m,top:f,right:s+p,bottom:f+m,left:s,x:s,y:f}}function b(e){var t=y(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 w(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&f(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function E(e){return e?(e.nodeName||"").toLowerCase():null}function x(e){return u(e).getComputedStyle(e)}function k(e){return["table","td","th"].indexOf(E(e))>=0}function S(e){return((c(e)?e.ownerDocument:e.document)||window.document).documentElement}function A(e){return"html"===E(e)?e:e.assignedSlot||e.parentNode||(f(e)?e.host:null)||S(e)}function C(e){return d(e)&&"fixed"!==x(e).position?e.offsetParent:null}function _(e){for(var t=u(e),n=C(e);n&&k(n)&&"static"===x(n).position;)n=C(n);return n&&("html"===E(n)||"body"===E(n)&&"static"===x(n).position)?t:n||function(e){var t=/firefox/i.test(v());if(/Trident/i.test(v())&&d(e)&&"fixed"===x(e).position)return null;var n=A(e);for(f(n)&&(n=n.host);d(n)&&["html","body"].indexOf(E(n))<0;){var r=x(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 O(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function N(e,t,n){return p(e,m(t,n))}function P(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function T(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var R=n(4278);const I={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=s(n.placement),u=O(l),c=[R.kb,R.pG].indexOf(l)>=0?"height":"width";if(a&&i){var d=function(e,t){return P("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:T(e,R.OM))}(o.padding,n),f=b(a),p="y"===u?R.Mn:R.kb,m="y"===u?R.sQ:R.pG,h=n.rects.reference[c]+n.rects.reference[u]-i[u]-n.rects.popper[c],v=i[u]-n.rects.reference[u],g=_(a),y=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,w=h/2-v/2,E=d[p],x=y-f[c]-d[m],k=y/2-f[c]/2+w,S=N(E,k,x),A=u;n.modifiersData[r]=((t={})[A]=S,t.centerOffset=S-k,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)))&&w(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function M(e){return e.split("-")[1]}var F={top:"auto",right:"auto",bottom:"auto",left:"auto"};function L(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=i.x,m=void 0===p?0:p,v=i.y,g=void 0===v?0:v,y="function"==typeof d?d({x:m,y:g}):{x:m,y:g};m=y.x,g=y.y;var b=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),E=R.kb,k=R.Mn,A=window;if(c){var C=_(n),O="clientHeight",N="clientWidth";if(C===u(n)&&"static"!==x(C=S(n)).position&&"absolute"===l&&(O="scrollHeight",N="scrollWidth"),o===R.Mn||(o===R.kb||o===R.pG)&&a===R._N)k=R.sQ,g-=(f&&C===A&&A.visualViewport?A.visualViewport.height:C[O])-r.height,g*=s?1:-1;if(o===R.kb||(o===R.Mn||o===R.sQ)&&a===R._N)E=R.pG,m-=(f&&C===A&&A.visualViewport?A.visualViewport.width:C[N])-r.width,m*=s?1:-1}var P,T=Object.assign({position:l},c&&F),I=!0===d?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:h(n*o)/o||0,y:h(r*o)/o||0}}({x:m,y:g},u(n)):{x:m,y:g};return m=I.x,g=I.y,s?Object.assign({},T,((P={})[k]=w?"0":"",P[E]=b?"0":"",P.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",P)):Object.assign({},T,((t={})[k]=w?g+"px":"",t[E]=b?m+"px":"",t.transform="",t))}var D={passive:!0};var j={left:"right",right:"left",bottom:"top",top:"bottom"};function z(e){return e.replace(/left|right|bottom|top/g,function(e){return j[e]})}var V={start:"end",end:"start"};function U(e){return e.replace(/start|end/g,function(e){return V[e]})}function B(e){var t=u(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function H(e){return y(S(e)).left+B(e).scrollLeft}function $(e){var t=x(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function W(e){return["html","body","#document"].indexOf(E(e))>=0?e.ownerDocument.body:d(e)&&$(e)?e:W(A(e))}function q(e,t){var n;void 0===t&&(t=[]);var r=W(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=u(r),i=o?[a].concat(a.visualViewport||[],$(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(q(A(i)))}function K(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function G(e,t,n){return t===R.R9?K(function(e,t){var n=u(e),r=S(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=g();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+H(e),y:s}}(e,n)):c(t)?function(e,t){var n=y(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):K(function(e){var t,n=S(e),r=B(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=p(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=p(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+H(e),s=-r.scrollTop;return"rtl"===x(o||n).direction&&(l+=p(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(S(e)))}function Q(e,t,n,r){var o="clippingParents"===t?function(e){var t=q(A(e)),n=["absolute","fixed"].indexOf(x(e).position)>=0&&d(e)?_(e):e;return c(n)?t.filter(function(e){return c(e)&&w(e,n)&&"body"!==E(e)}):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce(function(t,n){var o=G(e,n,r);return t.top=p(o.top,t.top),t.right=m(o.right,t.right),t.bottom=m(o.bottom,t.bottom),t.left=p(o.left,t.left),t},G(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Y(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?s(o):null,i=o?M(o):null,l=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(a){case R.Mn:t={x:l,y:n.y-r.height};break;case R.sQ:t={x:l,y:n.y+n.height};break;case R.pG:t={x:n.x+n.width,y:u};break;case R.kb:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=a?O(a):null;if(null!=c){var d="y"===c?"height":"width";switch(i){case R.ni:t[c]=t[c]-(n[d]/2-r[d]/2);break;case R._N:t[c]=t[c]+(n[d]/2-r[d]/2)}}return t}function X(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?R.WY:l,u=n.rootBoundary,d=void 0===u?R.R9:u,f=n.elementContext,p=void 0===f?R.xf:f,m=n.altBoundary,h=void 0!==m&&m,v=n.padding,g=void 0===v?0:v,b=P("number"!=typeof g?g:T(g,R.OM)),w=p===R.xf?R.ir:R.xf,E=e.rects.popper,x=e.elements[h?w:p],k=Q(c(x)?x:x.contextElement||S(e.elements.popper),s,d,i),A=y(e.elements.reference),C=Y({reference:A,element:E,strategy:"absolute",placement:o}),_=K(Object.assign({},E,C)),O=p===R.xf?_:A,N={top:k.top-O.top+b.top,bottom:O.bottom-k.bottom+b.bottom,left:k.left-O.left+b.left,right:O.right-k.right+b.right},I=e.modifiersData.offset;if(p===R.xf&&I){var M=I[o];Object.keys(N).forEach(function(e){var t=[R.pG,R.sQ].indexOf(e)>=0?1:-1,n=[R.Mn,R.sQ].indexOf(e)>=0?"y":"x";N[e]+=M[n]*t})}return N}function J(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 Z(e){return[R.Mn,R.pG,R.sQ,R.kb].some(function(t){return e[t]>=0})}const ee={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=R.DD.reduce(function(e,n){return e[n]=function(e,t,n){var r=s(e),o=[R.kb,R.Mn].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[R.kb,R.pG].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e},{}),l=i[t.placement],u=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}};const te={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,v=void 0===h||h,g=n.tetherOffset,y=void 0===g?0:g,w=X(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),E=s(t.placement),x=M(t.placement),k=!x,S=O(E),A="x"===S?"y":"x",C=t.modifiersData.popperOffsets,P=t.rects.reference,T=t.rects.popper,I="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,F="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(C){if(a){var j,z="y"===S?R.Mn:R.kb,V="y"===S?R.sQ:R.pG,U="y"===S?"height":"width",B=C[S],H=B+w[z],$=B-w[V],W=v?-T[U]/2:0,q=x===R.ni?P[U]:T[U],K=x===R.ni?-T[U]:-P[U],G=t.elements.arrow,Q=v&&G?b(G):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},J=Y[z],Z=Y[V],ee=N(0,P[U],Q[U]),te=k?P[U]/2-W-ee-J-F.mainAxis:q-ee-J-F.mainAxis,ne=k?-P[U]/2+W+ee+Z+F.mainAxis:K+ee+Z+F.mainAxis,re=t.elements.arrow&&_(t.elements.arrow),oe=re?"y"===S?re.clientTop||0:re.clientLeft||0:0,ae=null!=(j=null==L?void 0:L[S])?j:0,ie=B+ne-ae,le=N(v?m(H,B+te-ae-oe):H,B,v?p($,ie):$);C[S]=le,D[S]=le-B}if(l){var se,ue="x"===S?R.Mn:R.kb,ce="x"===S?R.sQ:R.pG,de=C[A],fe="y"===A?"height":"width",pe=de+w[ue],me=de-w[ce],he=-1!==[R.Mn,R.kb].indexOf(E),ve=null!=(se=null==L?void 0:L[A])?se:0,ge=he?pe:de-P[fe]-T[fe]-ve+F.altAxis,ye=he?de+P[fe]+T[fe]-ve-F.altAxis:me,be=v&&he?function(e,t,n){var r=N(e,t,n);return r>n?n:r}(ge,de,ye):N(v?ge:pe,de,v?ye:me);C[A]=be,D[A]=be-de}t.modifiersData[r]=D}},requiresIfExists:["offset"]};function ne(e,t,n){void 0===n&&(n=!1);var r,o,a=d(t),i=d(t)&&function(e){var t=e.getBoundingClientRect(),n=h(t.width)/e.offsetWidth||1,r=h(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=S(t),s=y(e,i,n),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(a||!a&&!n)&&(("body"!==E(t)||$(l))&&(c=(r=t)!==u(r)&&d(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:B(r)),d(t)?((f=y(t,!0)).x+=t.clientLeft,f.y+=t.clientTop):l&&(f.x=H(l))),{x:s.left+c.scrollLeft-f.x,y:s.top+c.scrollTop-f.y,width:s.width,height:s.height}}function re(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}var oe={placement:"bottom",modifiers:[],strategy:"absolute"};function ae(){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)})}function ie(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?oe:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},oe,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],u=!1,d={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;f(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:c(e)?q(e):e.contextElement?q(e.contextElement):[],popper:q(t)};var i,u,p=function(e){var t=re(e);return R.GM.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((i=[].concat(r,l.options.modifiers),u=i.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(u).map(function(e){return u[e]})));return l.orderedModifiers=p.filter(function(e){return e.enabled}),l.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:d,options:r}),i=function(){};s.push(a||i)}}),d.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(ae(t,n)){l.rects={reference:ne(t,_(n),"fixed"===l.options.strategy),popper:b(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,c=o.name;"function"==typeof a&&(l=a({state:l,options:s,name:c,instance:d})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise(function(e){d.forceUpdate(),e(l)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(o())})})),i}),destroy:function(){f(),u=!0}};if(!ae(e,t))return d;function f(){s.forEach(function(e){return e()}),s=[]}return d.setOptions(n).then(function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)}),d}}var le=ie({defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=X(t,{elementContext:"reference"}),l=X(t,{altBoundary:!0}),s=J(i,r),u=J(l,o,a),c=Z(s),d=Z(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Y({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,u=void 0===l||l,c={placement:s(t.placement),variation:M(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,L(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,L(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=u(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",n.update,D)}),l&&s.addEventListener("resize",n.update,D),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",n.update,D)}),l&&s.removeEventListener("resize",n.update,D)}},data:{}},ee,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,u=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,h=void 0===m||m,v=n.allowedAutoPlacements,g=t.options.placement,y=s(g),b=u||(y===g||!h?[z(g)]:function(e){if(s(e)===R.qZ)return[];var t=z(e);return[U(e),t,U(t)]}(g)),w=[g].concat(b).reduce(function(e,n){return e.concat(s(n)===R.qZ?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?R.DD:u,d=M(r),f=d?l?R.Ol:R.Ol.filter(function(e){return M(e)===d}):R.OM,p=f.filter(function(e){return c.indexOf(e)>=0});0===p.length&&(p=f);var m=p.reduce(function(t,n){return t[n]=X(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[s(n)],t},{});return Object.keys(m).sort(function(e,t){return m[e]-m[t]})}(t,{placement:n,boundary:d,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:v}):n)},[]),E=t.rects.reference,x=t.rects.popper,k=new Map,S=!0,A=w[0],C=0;C<w.length;C++){var _=w[C],O=s(_),N=M(_)===R.ni,P=[R.Mn,R.sQ].indexOf(O)>=0,T=P?"width":"height",I=X(t,{placement:_,boundary:d,rootBoundary:f,altBoundary:p,padding:c}),F=P?N?R.pG:R.kb:N?R.sQ:R.Mn;E[T]>x[T]&&(F=z(F));var L=z(F),D=[];if(a&&D.push(I[O]<=0),l&&D.push(I[F]<=0,I[L]<=0),D.every(function(e){return e})){A=_,S=!1;break}k.set(_,D)}if(S)for(var j=function(e){var t=w.find(function(t){var n=k.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return A=t,"break"},V=h?3:1;V>0;V--){if("break"===j(V))break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},te,I]}),se=function(e){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}},ue={name:"applyStyles",enabled:!1},ce={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:function(e){var t=e.state;return function(){var e=t.elements,n=e.reference,r=e.popper;if("removeAttribute"in n){var o=(n.getAttribute("aria-describedby")||"").split(",").filter(function(e){return e.trim()!==r.id});o.length?n.setAttribute("aria-describedby",o.join(",")):n.removeAttribute("aria-describedby")}}},fn:function(e){var t,n=e.state.elements,r=n.popper,o=n.reference,a=null==(t=r.getAttribute("role"))?void 0:t.toLowerCase();if(r.id&&"tooltip"===a&&"setAttribute"in o){var i=o.getAttribute("aria-describedby");if(i&&-1!==i.split(",").indexOf(r.id))return;o.setAttribute("aria-describedby",i?i+","+r.id:r.id)}}},de=[];const fe=function(e,t,n){var i=void 0===n?{}:n,s=i.enabled,u=void 0===s||s,c=i.placement,d=void 0===c?"bottom":c,f=i.strategy,p=void 0===f?"absolute":f,m=i.modifiers,h=void 0===m?de:m,v=(0,o.A)(i,["enabled","placement","strategy","modifiers"]),g=(0,a.useRef)(),y=(0,a.useCallback)(function(){var e;null==(e=g.current)||e.update()},[]),b=(0,a.useCallback)(function(){var e;null==(e=g.current)||e.forceUpdate()},[]),w=l((0,a.useState)({placement:d,update:y,forceUpdate:b,attributes:{},styles:{popper:se(p),arrow:{}}})),E=w[0],x=w[1],k=(0,a.useMemo)(function(){return{name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:function(e){var t=e.state,n={},r={};Object.keys(t.elements).forEach(function(e){n[e]=t.styles[e],r[e]=t.attributes[e]}),x({state:t,styles:n,attributes:r,update:y,forceUpdate:b,placement:t.placement})}}},[y,b,x]);return(0,a.useEffect)(function(){g.current&&u&&g.current.setOptions({placement:d,strategy:p,modifiers:[].concat(h,[k,ue])})},[p,d,k,u]),(0,a.useEffect)(function(){if(u&&null!=e&&null!=t)return g.current=le(e,t,(0,r.A)({},v,{placement:d,strategy:p,modifiers:[].concat(h,[ce,k])})),function(){null!=g.current&&(g.current.destroy(),g.current=void 0,x(function(e){return(0,r.A)({},e,{attributes:{},styles:{popper:se(p)}})}))}},[u,e,t]),E}},4494:(e,t,n)=>{"use strict";n.d(t,{A:()=>Gr});var r=n(8168),o=n(45),a=n(3029),i=n(2901),l=n(388),s=n(3954),u=n(5501),c=n(6540),d=n.t(c,2),f=n(4467);function p(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){(0,f.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var h=n(296),v=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}var y=n(5458);var b=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),w=Math.abs,E=String.fromCharCode,x=Object.assign;function k(e){return e.trim()}function S(e,t,n){return e.replace(t,n)}function A(e,t){return e.indexOf(t)}function C(e,t){return 0|e.charCodeAt(t)}function _(e,t,n){return e.slice(t,n)}function O(e){return e.length}function N(e){return e.length}function P(e,t){return t.push(e),e}var T=1,R=1,I=0,M=0,F=0,L="";function D(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:T,column:R,length:i,return:""}}function j(e,t){return x(D("",null,null,"",null,null,0),e,{length:-e.length},t)}function z(){return F=M>0?C(L,--M):0,R--,10===F&&(R=1,T--),F}function V(){return F=M<I?C(L,M++):0,R++,10===F&&(R=1,T++),F}function U(){return C(L,M)}function B(){return M}function H(e,t){return _(L,e,t)}function $(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function W(e){return T=R=1,I=O(L=e),M=0,[]}function q(e){return L="",e}function K(e){return k(H(M-1,Y(91===e?e+2:40===e?e+1:e)))}function G(e){for(;(F=U())&&F<33;)V();return $(e)>2||$(F)>3?"":" "}function Q(e,t){for(;--t&&V()&&!(F<48||F>102||F>57&&F<65||F>70&&F<97););return H(e,B()+(t<6&&32==U()&&32==V()))}function Y(e){for(;V();)switch(F){case e:return M;case 34:case 39:34!==e&&39!==e&&Y(F);break;case 40:41===e&&Y(e);break;case 92:V()}return M}function X(e,t){for(;V()&&e+F!==57&&(e+F!==84||47!==U()););return"/*"+H(t,M-1)+"*"+E(47===e?e:V())}function J(e){for(;!$(U());)V();return H(e,M)}var Z="-ms-",ee="-moz-",te="-webkit-",ne="comm",re="rule",oe="decl",ae="@keyframes";function ie(e,t){for(var n="",r=N(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function le(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case oe:return e.return=e.return||e.value;case ne:return"";case ae:return e.return=e.value+"{"+ie(e.children,r)+"}";case re:e.value=e.props.join(",")}return O(n=ie(e.children,r))?e.return=e.value+"{"+n+"}":""}function se(e){return q(ue("",null,null,null,[""],e=W(e),0,[0],e))}function ue(e,t,n,r,o,a,i,l,s){for(var u=0,c=0,d=i,f=0,p=0,m=0,h=1,v=1,g=1,y=0,b="",w=o,x=a,k=r,_=b;v;)switch(m=y,y=V()){case 40:if(108!=m&&58==C(_,d-1)){-1!=A(_+=S(K(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:_+=K(y);break;case 9:case 10:case 13:case 32:_+=G(m);break;case 92:_+=Q(B()-1,7);continue;case 47:switch(U()){case 42:case 47:P(de(X(V(),B()),t,n),s);break;default:_+="/"}break;case 123*h:l[u++]=O(_)*g;case 125*h:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:-1==g&&(_=S(_,/\f/g,"")),p>0&&O(_)-d&&P(p>32?fe(_+";",r,n,d-1):fe(S(_," ","")+";",r,n,d-2),s);break;case 59:_+=";";default:if(P(k=ce(_,t,n,u,c,o,l,b,w=[],x=[],d),a),123===y)if(0===c)ue(_,t,k,k,w,a,d,l,x);else switch(99===f&&110===C(_,3)?100:f){case 100:case 108:case 109:case 115:ue(e,k,k,r&&P(ce(e,k,k,0,0,o,l,b,o,w=[],d),x),o,x,d,l,r?w:x);break;default:ue(_,k,k,k,[""],x,0,l,x)}}u=c=p=0,h=g=1,b=_="",d=i;break;case 58:d=1+O(_),p=m;default:if(h<1)if(123==y)--h;else if(125==y&&0==h++&&125==z())continue;switch(_+=E(y),y*h){case 38:g=c>0?1:(_+="\f",-1);break;case 44:l[u++]=(O(_)-1)*g,g=1;break;case 64:45===U()&&(_+=K(V())),f=U(),c=d=O(b=_+=J(B())),y++;break;case 45:45===m&&2==O(_)&&(h=0)}}return a}function ce(e,t,n,r,o,a,i,l,s,u,c){for(var d=o-1,f=0===o?a:[""],p=N(f),m=0,h=0,v=0;m<r;++m)for(var g=0,y=_(e,d+1,d=w(h=i[m])),b=e;g<p;++g)(b=k(h>0?f[g]+" "+y:S(y,/&\f/g,f[g])))&&(s[v++]=b);return D(e,t,n,0===o?re:l,s,u,c)}function de(e,t,n){return D(e,t,n,ne,E(F),_(e,2,-2),0)}function fe(e,t,n,r){return D(e,t,n,oe,_(e,0,r),_(e,r+1,-1),r)}var pe=function(e,t,n){for(var r=0,o=0;r=o,o=U(),38===r&&12===o&&(t[n]=1),!$(o);)V();return H(e,M)},me=function(e,t){return q(function(e,t){var n=-1,r=44;do{switch($(r)){case 0:38===r&&12===U()&&(t[n]=1),e[n]+=pe(M-1,t,n);break;case 2:e[n]+=K(r);break;case 4:if(44===r){e[++n]=58===U()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=E(r)}}while(r=V());return e}(W(e),t))},he=new WeakMap,ve=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||he.get(n))&&!r){he.set(e,!0);for(var o=[],a=me(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var u=0;u<i.length;u++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[u]):i[u]+" "+a[l]}}},ge=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ye(e,t){switch(function(e,t){return 45^C(e,0)?(((t<<2^C(e,0))<<2^C(e,1))<<2^C(e,2))<<2^C(e,3):0}(e,t)){case 5103:return te+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return te+e+ee+e+Z+e+e;case 6828:case 4268:return te+e+Z+e+e;case 6165:return te+e+Z+"flex-"+e+e;case 5187:return te+e+S(e,/(\w+).+(:[^]+)/,te+"box-$1$2"+Z+"flex-$1$2")+e;case 5443:return te+e+Z+"flex-item-"+S(e,/flex-|-self/,"")+e;case 4675:return te+e+Z+"flex-line-pack"+S(e,/align-content|flex-|-self/,"")+e;case 5548:return te+e+Z+S(e,"shrink","negative")+e;case 5292:return te+e+Z+S(e,"basis","preferred-size")+e;case 6060:return te+"box-"+S(e,"-grow","")+te+e+Z+S(e,"grow","positive")+e;case 4554:return te+S(e,/([^-])(transform)/g,"$1"+te+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,te+"$1"),/(image-set)/,te+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,te+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,te+"box-pack:$3"+Z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+te+e+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,te+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(O(e)-1-t>6)switch(C(e,t+1)){case 109:if(45!==C(e,t+4))break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+ee+(108==C(e,t+3)?"$3":"$2-$3"))+e;case 115:return~A(e,"stretch")?ye(S(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==C(e,t+1))break;case 6444:switch(C(e,O(e)-3-(~A(e,"!important")&&10))){case 107:return S(e,":",":"+te)+e;case 101:return S(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(45===C(e,14)?"inline-":"")+"box$3$1"+te+"$2$3$1"+Z+"$2box$3")+e}break;case 5936:switch(C(e,t+11)){case 114:return te+e+Z+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+Z+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+Z+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+Z+e+e}return e}var be=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case oe:e.return=ye(e.value,e.length);break;case ae:return ie([j(e,{value:S(e.value,"@","@"+te)})],r);case re:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ie([j(e,{props:[S(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ie([j(e,{props:[S(t,/:(plac\w+)/,":"+te+"input-$1")]}),j(e,{props:[S(t,/:(plac\w+)/,":-moz-$1")]}),j(e,{props:[S(t,/:(plac\w+)/,Z+"input-$1")]})],r)}return""})}}],we=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,a=e.stylisPlugins||be,i={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)});var s,u,c,d,f=[le,(d=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[ve,ge].concat(a,f),c=N(u),function(e,t,n,r){for(var o="",a=0;a<c;a++)o+=u[a](e,t,n,r)||"";return o});o=function(e,t,n,r){s=n,ie(se(e?e+"{"+t.styles+"}":t.styles),p),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new b({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return m.sheet.hydrate(l),m};var Ee=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var xe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function ke(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Se=/[A-Z]|^ms/g,Ae=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ce=function(e){return 45===e.charCodeAt(1)},_e=function(e){return null!=e&&"boolean"!=typeof e},Oe=ke(function(e){return Ce(e)?e:e.replace(Se,"-$&").toLowerCase()}),Ne=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ae,function(e,t,n){return Te={name:t,styles:n,next:Te},t})}return 1===xe[e]||Ce(e)||"number"!=typeof t||0===t?t:t+"px"};function Pe(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Te={name:o.name,styles:o.styles,next:Te},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)Te={name:i.name,styles:i.styles,next:Te},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Pe(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var l=i;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":_e(l)&&(r+=Oe(a)+":"+Ne(a,l)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=Pe(e,t,i);switch(a){case"animation":case"animationName":r+=Oe(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var u=0;u<i.length;u++)_e(i[u])&&(r+=Oe(a)+":"+Ne(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var l=Te,s=n(e);return Te=l,Pe(e,t,s)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var Te,Re=/label:\s*([^\s;{]+)\s*(;|$)/g;function Ie(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Te=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Pe(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=Pe(n,t,e[i]),r)o+=a[i]}Re.lastIndex=0;for(var l,s="";null!==(l=Re.exec(o));)s+="-"+l[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:u,styles:o,next:Te}}var Me=!!d.useInsertionEffect&&d.useInsertionEffect,Fe=Me||function(e){return e()},Le=(Me||c.useLayoutEffect,c.createContext("undefined"!=typeof HTMLElement?we({key:"css"}):null)),De=(Le.Provider,function(e){return(0,c.forwardRef)(function(t,n){var r=(0,c.useContext)(Le);return e(t,r,n)})}),je=c.createContext({});var ze,Ve,Ue={}.hasOwnProperty,Be="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",He=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ee(t,n,r),Fe(function(){return function(e,t,n){Ee(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)}),null},$e=De(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Be],a=[r],i="";"string"==typeof e.className?i=function(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var l=Ie(a,void 0,c.useContext(je));i+=t.key+"-"+l.name;var s={};for(var u in e)Ue.call(e,u)&&"css"!==u&&u!==Be&&(s[u]=e[u]);return s.className=i,n&&(s.ref=n),c.createElement(c.Fragment,null,c.createElement(He,{cache:t,serialized:l,isStringTag:"string"==typeof o}),c.createElement(o,s))}),We=$e,qe=(n(4146),function(e,t){var n=arguments;if(null==t||!Ue.call(t,"css"))return c.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=We,o[1]=function(e,t){var n={};for(var r in t)Ue.call(t,r)&&(n[r]=t[r]);return n[Be]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return c.createElement.apply(null,o)});ze=qe||(qe={}),Ve||(Ve=ze.JSX||(ze.JSX={}));function Ke(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ie(t)}var Ge=n(2284);var Qe=n(961);const Ye=Math.min,Xe=Math.max,Je=Math.round,Ze=Math.floor,et=e=>({x:e,y:e});function tt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function nt(){return"undefined"!=typeof window}function rt(e){return it(e)?(e.nodeName||"").toLowerCase():"#document"}function ot(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function at(e){var t;return null==(t=(it(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function it(e){return!!nt()&&(e instanceof Node||e instanceof ot(e).Node)}function lt(e){return!!nt()&&(e instanceof Element||e instanceof ot(e).Element)}function st(e){return!!nt()&&(e instanceof HTMLElement||e instanceof ot(e).HTMLElement)}function ut(e){return!(!nt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ot(e).ShadowRoot)}const ct=new Set(["inline","contents"]);function dt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ct.has(o)}function ft(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const pt=new Set(["html","body","#document"]);function mt(e){return pt.has(rt(e))}function ht(e){return ot(e).getComputedStyle(e)}function vt(e){if("html"===rt(e))return e;const t=e.assignedSlot||e.parentNode||ut(e)&&e.host||at(e);return ut(t)?t.host:t}function gt(e){const t=vt(e);return mt(t)?e.ownerDocument?e.ownerDocument.body:e.body:st(t)&&dt(t)?t:gt(t)}function yt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=gt(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=ot(o);if(a){const e=bt(i);return t.concat(i,i.visualViewport||[],dt(o)?o:[],e&&n?yt(e):[])}return t.concat(o,yt(o,[],n))}function bt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wt(e){const t=ht(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=st(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=Je(n)!==a||Je(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function Et(e){return lt(e)?e:e.contextElement}function xt(e){const t=Et(e);if(!st(t))return et(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=wt(t);let i=(a?Je(n.width):n.width)/r,l=(a?Je(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}const kt=et(0);function St(e){const t=ot(e);return ft()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:kt}function At(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=Et(e);let i=et(1);t&&(r?lt(r)&&(i=xt(r)):i=xt(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ot(e))&&t}(a,n,r)?St(a):et(0);let s=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,c=o.width/i.x,d=o.height/i.y;if(a){const e=ot(a),t=r&&lt(r)?ot(r):r;let n=e,o=bt(n);for(;o&&r&&t!==n;){const e=xt(o),t=o.getBoundingClientRect(),r=ht(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,d*=e.y,s+=a,u+=i,n=ot(o),o=bt(n)}}return tt({width:c,height:d,x:s,y:u})}function Ct(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _t(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,u=Et(e),c=o||a?[...u?yt(u):[],...yt(t)]:[];c.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const d=u&&l?function(e,t){let n,r=null;const o=at(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(l||t(),!f||!p)return;const m={rootMargin:-Ze(d)+"px "+-Ze(o.clientWidth-(c+f))+"px "+-Ze(o.clientHeight-(d+p))+"px "+-Ze(c)+"px",threshold:Xe(0,Ye(1,s))||1};let h=!0;function v(t){const r=t[0].intersectionRatio;if(r!==s){if(!h)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||Ct(u,e.getBoundingClientRect())||i(),h=!1}try{r=new IntersectionObserver(v,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(v,m)}r.observe(e)}(!0),a}(u,n):null;let f,p=-1,m=null;i&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),u&&!s&&m.observe(u),m.observe(t));let h=s?At(e):null;return s&&function t(){const r=At(e);h&&!Ct(h,r)&&n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(f)}}var Ot=c.useLayoutEffect,Nt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Pt=function(){};function Tt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Rt(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&a.push("".concat(Tt(e,i)));return a.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var It=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,Ge.A)(e)&&null!==e?[e]:[];var t},Mt=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,m({},(0,o.A)(e,Nt))},Ft=function(e,t,n){var r=e.cx,o=e.getStyles,a=e.getClassNames,i=e.className;return{css:o(t,e),className:r(null!=n?n:{},a(t,e),i)}};function Lt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Dt(e){return Lt(e)?window.pageYOffset:e.scrollTop}function jt(e,t){Lt(e)?window.scrollTo(0,t):e.scrollTop=t}function zt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Pt,o=Dt(e),a=t-o,i=0;!function t(){var l,s=a*((l=(l=i+=10)/n-1)*l*l+1)+o;jt(e,s),i<n?window.requestAnimationFrame(t):r(e)}()}function Vt(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?jt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&jt(e,Math.max(t.offsetTop-o,0))}function Ut(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Bt=!1,Ht={get passive(){return Bt=!0}},$t="undefined"!=typeof window?window:{};$t.addEventListener&&$t.removeEventListener&&($t.addEventListener("p",Pt,Ht),$t.removeEventListener("p",Pt,!1));var Wt=Bt;function qt(e){return null!=e}function Kt(e,t,n){return e?t:n}var Gt=["children","innerProps"],Qt=["children","innerProps"];function Yt(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,l=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,d=s.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,m=f.height,h=f.top,v=n.offsetParent.getBoundingClientRect().top,g=i?window.innerHeight:Lt(c=s)?window.innerHeight:c.clientHeight,y=Dt(s),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),E=v-w,x=g-h,k=E+y,S=d-y-h,A=p-g+y+b,C=y+h-w,_=160;switch(o){case"auto":case"bottom":if(x>=m)return{placement:"bottom",maxHeight:t};if(S>=m&&!i)return a&&zt(s,A,_),{placement:"bottom",maxHeight:t};if(!i&&S>=r||i&&x>=r)return a&&zt(s,A,_),{placement:"bottom",maxHeight:i?x-b:S-b};if("auto"===o||i){var O=t,N=i?E:k;return N>=r&&(O=Math.min(N-b-l,t)),{placement:"top",maxHeight:O}}if("bottom"===o)return a&&jt(s,A),{placement:"bottom",maxHeight:t};break;case"top":if(E>=m)return{placement:"top",maxHeight:t};if(k>=m&&!i)return a&&zt(s,C,_),{placement:"top",maxHeight:t};if(!i&&k>=r||i&&E>=r){var P=t;return(!i&&k>=r||i&&E>=r)&&(P=i?E-w:k-w),a&&zt(s,C,_),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var Xt,Jt=function(e){return"auto"===e?"bottom":e},Zt=(0,c.createContext)(null),en=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,a=e.menuPosition,i=e.menuShouldScrollIntoView,l=e.theme,s=((0,c.useContext)(Zt)||{}).setPortalPlacement,u=(0,c.useRef)(null),d=(0,c.useState)(r),f=(0,h.A)(d,2),p=f[0],v=f[1],g=(0,c.useState)(null),y=(0,h.A)(g,2),b=y[0],w=y[1],E=l.spacing.controlHeight;return Ot(function(){var e=u.current;if(e){var t="fixed"===a,l=Yt({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:i&&!t,isFixedPosition:t,controlHeight:E});v(l.maxHeight),w(l.placement),null==s||s(l.placement)}},[r,o,a,i,n,s,E]),t({ref:u,placerProps:m(m({},e),{},{placement:b||Jt(o),maxHeight:p})})},tn=function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return qe("div",(0,r.A)({},Ft(e,"menu",{menu:!0}),{ref:n},o),t)},nn=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return m({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},rn=nn,on=nn,an=["size"],ln=["innerProps","isRtl","size"];var sn,un,cn={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},dn=function(e){var t=e.size,n=(0,o.A)(e,an);return qe("svg",(0,r.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:cn},n))},fn=function(e){return qe(dn,(0,r.A)({size:20},e),qe("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},pn=function(e){return qe(dn,(0,r.A)({size:20},e),qe("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},mn=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return m({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},hn=mn,vn=mn,gn=function(){var e=Ke.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Xt||(sn=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],un||(un=sn.slice(0)),Xt=Object.freeze(Object.defineProperties(sn,{raw:{value:Object.freeze(un)}})))),yn=function(e){var t=e.delay,n=e.offset;return qe("span",{css:Ke({animation:"".concat(gn," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},bn=function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,a=e.innerRef,i=e.innerProps,l=e.menuIsOpen;return qe("div",(0,r.A)({ref:a},Ft(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":l}),i,{"aria-disabled":n||void 0}),t)},wn=["data"],En=function(e){var t=e.children,n=e.cx,o=e.getStyles,a=e.getClassNames,i=e.Heading,l=e.headingProps,s=e.innerProps,u=e.label,c=e.theme,d=e.selectProps;return qe("div",(0,r.A)({},Ft(e,"group",{group:!0}),s),qe(i,(0,r.A)({},l,{selectProps:d,theme:c,getStyles:o,getClassNames:a,cx:n}),u),qe("div",null,t))},xn=["innerRef","isDisabled","isHidden","inputClassName"],kn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Sn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":m({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},kn)},An=function(e){return m({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},kn)},Cn=function(e){var t=e.children,n=e.innerProps;return qe("div",n,t)};var _n=function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,i=e.removeProps,l=e.selectProps,s=n.Container,u=n.Label,c=n.Remove;return qe(s,{data:r,innerProps:m(m({},Ft(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},qe(u,{data:r,innerProps:m({},Ft(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),qe(c,{data:r,innerProps:m(m({},Ft(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:l}))},On={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return qe("div",(0,r.A)({},Ft(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||qe(fn,null))},Control:bn,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return qe("div",(0,r.A)({},Ft(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||qe(pn,null))},DownChevron:pn,CrossIcon:fn,Group:En,GroupHeading:function(e){var t=Mt(e);t.data;var n=(0,o.A)(t,wn);return qe("div",(0,r.A)({},Ft(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return qe("div",(0,r.A)({},Ft(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return qe("span",(0,r.A)({},t,Ft(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,a=Mt(e),i=a.innerRef,l=a.isDisabled,s=a.isHidden,u=a.inputClassName,c=(0,o.A)(a,xn);return qe("div",(0,r.A)({},Ft(e,"input",{"input-container":!0}),{"data-value":n||""}),qe("input",(0,r.A)({className:t({input:!0},u),ref:i,style:An(s),disabled:l},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,a=e.size,i=void 0===a?4:a,l=(0,o.A)(e,ln);return qe("div",(0,r.A)({},Ft(m(m({},l),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),qe(yn,{delay:0,offset:n}),qe(yn,{delay:160,offset:!0}),qe(yn,{delay:320,offset:!n}))},Menu:tn,MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,a=e.isMulti;return qe("div",(0,r.A)({},Ft(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,a=e.innerProps,i=e.menuPlacement,l=e.menuPosition,s=(0,c.useRef)(null),u=(0,c.useRef)(null),d=(0,c.useState)(Jt(i)),f=(0,h.A)(d,2),p=f[0],v=f[1],g=(0,c.useMemo)(function(){return{setPortalPlacement:v}},[]),y=(0,c.useState)(null),b=(0,h.A)(y,2),w=b[0],E=b[1],x=(0,c.useCallback)(function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===l?0:window.pageYOffset,n=e[p]+t;n===(null==w?void 0:w.offset)&&e.left===(null==w?void 0:w.rect.left)&&e.width===(null==w?void 0:w.rect.width)||E({offset:n,rect:e})}},[o,l,p,null==w?void 0:w.offset,null==w?void 0:w.rect.left,null==w?void 0:w.rect.width]);Ot(function(){x()},[x]);var k=(0,c.useCallback)(function(){"function"==typeof u.current&&(u.current(),u.current=null),o&&s.current&&(u.current=_t(o,s.current,x,{elementResize:"ResizeObserver"in window}))},[o,x]);Ot(function(){k()},[k]);var S=(0,c.useCallback)(function(e){s.current=e,k()},[k]);if(!t&&"fixed"!==l||!w)return null;var A=qe("div",(0,r.A)({ref:S},Ft(m(m({},e),{},{offset:w.offset,position:l,rect:w.rect}),"menuPortal",{"menu-portal":!0}),a),n);return qe(Zt.Provider,{value:g},t?(0,Qe.createPortal)(A,t):A)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,a=e.innerProps,i=(0,o.A)(e,Qt);return qe("div",(0,r.A)({},Ft(m(m({},i),{},{children:n,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,a=e.innerProps,i=(0,o.A)(e,Gt);return qe("div",(0,r.A)({},Ft(m(m({},i),{},{children:n,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),n)},MultiValue:_n,MultiValueContainer:Cn,MultiValueLabel:Cn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return qe("div",(0,r.A)({role:"button"},n),t||qe(fn,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,a=e.isSelected,i=e.innerRef,l=e.innerProps;return qe("div",(0,r.A)({},Ft(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":a}),{ref:i,"aria-disabled":n},l),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return qe("div",(0,r.A)({},Ft(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,a=e.isRtl;return qe("div",(0,r.A)({},Ft(e,"container",{"--is-disabled":o,"--is-rtl":a}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return qe("div",(0,r.A)({},Ft(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,a=e.hasValue;return qe("div",(0,r.A)({},Ft(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a}),n),t)}},Nn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Pn(e,t){return e===t||!(!Nn(e)||!Nn(t))}function Tn(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Pn(e[n],t[n]))return!1;return!0}for(var Rn={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},In=function(e){return qe("span",(0,r.A)({css:Rn},e))},Mn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,l=e.isDisabled,s=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(c(i,n),".");if("menu"===t&&u){var d=l?" disabled":"",f="".concat(s?" selected":"").concat(d);return"".concat(a).concat(f,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Fn=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,l=e.selectProps,s=e.id,u=e.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,h=l.isMulti,v=l.isOptionDisabled,g=l.isSearchable,y=l.menuIsOpen,b=l.options,w=l.screenReaderStatus,E=l.tabSelectsValue,x=l.isLoading,k=l["aria-label"],S=l["aria-live"],A=(0,c.useMemo)(function(){return m(m({},Mn),d||{})},[d]),C=(0,c.useMemo)(function(){var e,n="";if(t&&A.onChange){var r=t.option,o=t.options,a=t.removedValue,l=t.removedValues,s=t.value,u=a||r||(e=s,Array.isArray(e)?null:e),c=u?f(u):"",d=o||l||void 0,p=d?d.map(f):[],h=m({isDisabled:u&&v(u,i),label:c,labels:p},t);n=A.onChange(h)}return n},[t,A,v,i,f]),_=(0,c.useMemo)(function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&A.onFocus){var l={focused:t,label:f(t),isDisabled:v(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i,isAppleDevice:u};e=A.onFocus(l)}return e},[n,r,f,v,A,o,i,u]),O=(0,c.useMemo)(function(){var e="";if(y&&b.length&&!x&&A.onFilter){var t=w({count:o.length});e=A.onFilter({inputValue:p,resultsMessage:t})}return e},[o,p,y,A,b,w,x]),N="initial-input-focus"===(null==t?void 0:t.action),P=(0,c.useMemo)(function(){var e="";if(A.guidance){var t=r?"value":y?"menu":"input";e=A.guidance({"aria-label":k,context:t,isDisabled:n&&v(n,i),isMulti:h,isSearchable:g,tabSelectsValue:E,isInitialFocus:N})}return e},[k,n,r,h,v,g,y,A,i,E,N]),T=qe(c.Fragment,null,qe("span",{id:"aria-selection"},C),qe("span",{id:"aria-focused"},_),qe("span",{id:"aria-results"},O),qe("span",{id:"aria-guidance"},P));return qe(c.Fragment,null,qe(In,{id:s},N&&T),qe(In,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!N&&T))},Ln=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],Dn=new RegExp("["+Ln.map(function(e){return e.letters}).join("")+"]","g"),jn={},zn=0;zn<Ln.length;zn++)for(var Vn=Ln[zn],Un=0;Un<Vn.letters.length;Un++)jn[Vn.letters[Un]]=Vn.base;var Bn=function(e){return e.replace(Dn,function(e){return jn[e]})},Hn=function(e,t){void 0===t&&(t=Tn);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(Bn),$n=function(e){return e.replace(/^\s+|\s+$/g,"")},Wn=function(e){return"".concat(e.label," ").concat(e.value)},qn=["innerRef"];function Kn(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter(function(e){var t=(0,h.A)(e,1)[0];return!n.includes(t)});return o.reduce(function(e,t){var n=(0,h.A)(t,2),r=n[0],o=n[1];return e[r]=o,e},{})}((0,o.A)(e,qn),"onExited","in","enter","exit","appear");return qe("input",(0,r.A)({ref:t},n,{css:Ke({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Gn=["boxSizing","height","overflow","paddingRight","position"],Qn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Yn(e){e.cancelable&&e.preventDefault()}function Xn(e){e.stopPropagation()}function Jn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Zn(){return"ontouchstart"in window||navigator.maxTouchPoints}var er=!("undefined"==typeof window||!window.document||!window.document.createElement),tr=0,nr={capture:!1,passive:!1};var rr=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},or={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ar(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,c.useRef)(!1),l=(0,c.useRef)(!1),s=(0,c.useRef)(0),u=(0,c.useRef)(null),d=(0,c.useCallback)(function(e,t){if(null!==u.current){var s=u.current,c=s.scrollTop,d=s.scrollHeight,f=s.clientHeight,p=u.current,m=t>0,h=d-f-c,v=!1;h>t&&i.current&&(r&&r(e),i.current=!1),m&&l.current&&(a&&a(e),l.current=!1),m&&t>h?(n&&!i.current&&n(e),p.scrollTop=d,v=!0,i.current=!0):!m&&-t>c&&(o&&!l.current&&o(e),p.scrollTop=0,v=!0,l.current=!0),v&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,o,a]),f=(0,c.useCallback)(function(e){d(e,e.deltaY)},[d]),p=(0,c.useCallback)(function(e){s.current=e.changedTouches[0].clientY},[]),m=(0,c.useCallback)(function(e){var t=s.current-e.changedTouches[0].clientY;d(e,t)},[d]),h=(0,c.useCallback)(function(e){if(e){var t=!!Wt&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",m,t)}},[m,p,f]),v=(0,c.useCallback)(function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",m,!1))},[m,p,f]);return(0,c.useEffect)(function(){if(t){var e=u.current;return h(e),function(){v(e)}}},[t,h,v]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,c.useRef)({}),a=(0,c.useRef)(null),i=(0,c.useCallback)(function(e){if(er){var t=document.body,n=t&&t.style;if(r&&Gn.forEach(function(e){var t=n&&n[e];o.current[e]=t}),r&&tr<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,l=window.innerWidth-i+a||0;Object.keys(Qn).forEach(function(e){var t=Qn[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(l,"px"))}t&&Zn()&&(t.addEventListener("touchmove",Yn,nr),e&&(e.addEventListener("touchstart",Jn,nr),e.addEventListener("touchmove",Xn,nr))),tr+=1}},[r]),l=(0,c.useCallback)(function(e){if(er){var t=document.body,n=t&&t.style;tr=Math.max(tr-1,0),r&&tr<1&&Gn.forEach(function(e){var t=o.current[e];n&&(n[e]=t)}),t&&Zn()&&(t.removeEventListener("touchmove",Yn,nr),e&&(e.removeEventListener("touchstart",Jn,nr),e.removeEventListener("touchmove",Xn,nr)))}},[r]);return(0,c.useEffect)(function(){if(t){var e=a.current;return i(e),function(){l(e)}}},[t,i,l]),function(e){a.current=e}}({isEnabled:n});return qe(c.Fragment,null,n&&qe("div",{onClick:rr,css:or}),t(function(e){o(e),a(e)}))}var ir={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},lr=function(e){var t=e.name,n=e.onFocus;return qe("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:ir,value:"",onChange:function(){}})};function sr(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function ur(){return sr(/^Mac/i)}function cr(){return sr(/^iPhone/i)||sr(/^iPad/i)||ur()&&navigator.maxTouchPoints>1}var dr={clearIndicator:vn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,i=o.borderRadius;return m({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:hn,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return m({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return m({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,i=o.colors;return m(m({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Sn),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,i=o.spacing.baseUnit;return m({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i})},loadingMessage:on,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,i=o.spacing,l=o.colors;return m((n={label:"menu"},(0,f.A)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),(0,f.A)(n,"position","absolute"),(0,f.A)(n,"width","100%"),(0,f.A)(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return m({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return m({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return m({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,i=e.isFocused;return m({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:i?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:rn,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,i=a.spacing,l=a.colors;return m({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return m({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return m({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return m({alignItems:"center",display:r&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var fr,pr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},mr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ut(),captureMenuScroll:!Ut(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=m({ignoreCase:!0,ignoreAccents:!0,stringify:Wn,trim:!0,matchFrom:"any"},fr),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,l=n.matchFrom,s=i?$n(t):t,u=i?$n(a(e)):a(e);return r&&(s=s.toLowerCase(),u=u.toLowerCase()),o&&(s=Hn(s),u=Bn(u)),"start"===l?u.substr(0,s.length)===s:u.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function hr(e,t,n,r){return{type:"option",data:t,isDisabled:kr(e,t,n),isSelected:Sr(e,t,n),label:Er(e,t),value:xr(e,t),index:r}}function vr(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(n,r){return hr(e,n,t,r)}).filter(function(t){return br(e,t)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=hr(e,n,t,r);return br(e,a)?a:void 0}).filter(qt)}function gr(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,(0,y.A)(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function yr(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,(0,y.A)(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function br(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,l=t.value;return(!Cr(e)||!a)&&Ar(e,{label:i,value:l,data:o},r)}var wr=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},Er=function(e,t){return e.getOptionLabel(t)},xr=function(e,t){return e.getOptionValue(t)};function kr(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Sr(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=xr(e,t);return n.some(function(t){return xr(e,t)===r})}function Ar(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Cr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},_r=1,Or=function(e){(0,u.A)(n,e);var t=function(e){var t=g();return function(){var n,r=(0,s.A)(e);if(t){var o=(0,s.A)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.A)(this,n)}}(n);function n(e){var r;if((0,a.A)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,a=n.name;t.name=a,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,a=o.closeMenuOnSelect,i=o.isMulti,l=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:l}),a&&(r.setState({inputIsHiddenAfterUpdate:!i}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,a=t.name,i=r.state.selectValue,l=o&&r.isOptionSelected(e,i),s=r.isOptionDisabled(e,i);if(l){var u=r.getOptionValue(e);r.setValue(i.filter(function(e){return r.getOptionValue(e)!==u}),"deselect-option",e)}else{if(s)return void r.ariaOnChange(e,{action:"select-option",option:e,name:a});o?r.setValue([].concat((0,y.A)(i),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),a=n.filter(function(e){return r.getOptionValue(e)!==o}),i=Kt(t,a,a[0]||null);r.onChange(i,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Kt(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),a=Kt(e,o,o[0]||null);n&&r.onChange(a,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return wr(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return yr(vr(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Rt.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Er(r.props,e)},r.getOptionValue=function(e){return xr(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=dr[e](t,n);o.boxSizing="border-box";var a=r.props.styles[e];return a?a(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,m(m({},On),e.components);var e},r.buildCategorizedOptions=function(){return vr(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return gr(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:m({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Lt(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),a=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||a>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return Cr(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,l=t.isClearable,s=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=r.state,m=p.focusedOption,h=p.focusedValue,v=p.selectValue;if(!(s||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||i)return;r.focusValue("previous");break;case"ArrowRight":if(!n||i)return;r.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(h)r.removeValue(h);else{if(!o)return;n?r.popValue():l&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!d||!m||f&&r.isOptionSelected(m,v))return;r.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(u){if(!m)return;if(r.isComposing)return;r.selectOption(m);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:i}),r.onMenuClose()):l&&a&&r.clearValue();break;case" ":if(i)return;if(!u){r.openMenu("first");break}if(!m)return;r.selectOption(m);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++_r),r.state.selectValue=It(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),l=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[l],r.state.focusedOptionId=wr(o,i[l])}return r}return(0,i.A)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Vt(this.menuListRef,this.focusedOptionRef),(ur()||cr())&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Vt(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var l=a.indexOf(r[0]);l>-1&&(i=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i],focusedOptionId:this.getFocusedOptionId(a[i])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(pr):m(m({},pr),this.props.theme):pr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,l=this.props,s=l.isMulti,u=l.isRtl,c=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:c,selectOption:a,selectProps:l,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return kr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Sr(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ar(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,a=e.inputValue,i=e.tabIndex,l=e.form,s=e.menuIsOpen,u=e.required,d=this.getComponents().Input,f=this.state,p=f.inputIsHidden,h=f.ariaSelection,v=this.commonProps,g=o||this.getElementId("input"),y=m(m(m({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?c.createElement(d,(0,r.A)({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:l,type:"text",value:a},y)):c.createElement(Kn,(0,r.A)({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Pt,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:l,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,a=t.MultiValueLabel,i=t.MultiValueRemove,l=t.SingleValue,s=t.Placeholder,u=this.commonProps,d=this.props,f=d.controlShouldRenderValue,p=d.isDisabled,m=d.isMulti,h=d.inputValue,v=d.placeholder,g=this.state,y=g.selectValue,b=g.focusedValue,w=g.isFocused;if(!this.hasValue()||!f)return h?null:c.createElement(s,(0,r.A)({},u,{key:"placeholder",isDisabled:p,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),v);if(m)return y.map(function(t,l){var s=t===b,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return c.createElement(n,(0,r.A)({},u,{components:{Container:o,Label:a,Remove:i},isFocused:s,isDisabled:p,key:d,index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(h)return null;var E=y[0];return c.createElement(l,(0,r.A)({},u,{data:E,isDisabled:p}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,a=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||a)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return c.createElement(e,(0,r.A)({},t,{innerProps:l,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,a=n.isLoading,i=this.state.isFocused;if(!e||!a)return null;return c.createElement(e,(0,r.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return c.createElement(n,(0,r.A)({},o,{isDisabled:a,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return c.createElement(e,(0,r.A)({},t,{innerProps:a,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,a=t.Menu,i=t.MenuList,l=t.MenuPortal,s=t.LoadingMessage,u=t.NoOptionsMessage,d=t.Option,f=this.commonProps,p=this.state.focusedOption,m=this.props,h=m.captureMenuScroll,v=m.inputValue,g=m.isLoading,y=m.loadingMessage,b=m.minMenuHeight,w=m.maxMenuHeight,E=m.menuIsOpen,x=m.menuPlacement,k=m.menuPosition,S=m.menuPortalTarget,A=m.menuShouldBlockScroll,C=m.menuShouldScrollIntoView,_=m.noOptionsMessage,O=m.onMenuScrollToTop,N=m.onMenuScrollToBottom;if(!E)return null;var P,T=function(t,n){var o=t.type,a=t.data,i=t.isDisabled,l=t.isSelected,s=t.label,u=t.value,m=p===a,h=i?void 0:function(){return e.onOptionHover(a)},v=i?void 0:function(){return e.selectOption(a)},g="".concat(e.getElementId("option"),"-").concat(n),y={id:g,onClick:v,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:l};return c.createElement(d,(0,r.A)({},f,{innerProps:y,data:a,isDisabled:i,isSelected:l,key:g,label:s,type:o,value:u,isFocused:m,innerRef:m?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map(function(t){if("group"===t.type){var a=t.data,i=t.options,l=t.index,s="".concat(e.getElementId("group"),"-").concat(l),u="".concat(s,"-heading");return c.createElement(n,(0,r.A)({},f,{key:s,data:a,options:i,Heading:o,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return T(e,"".concat(l,"-").concat(e.index))}))}if("option"===t.type)return T(t,"".concat(t.index))});else if(g){var R=y({inputValue:v});if(null===R)return null;P=c.createElement(s,f,R)}else{var I=_({inputValue:v});if(null===I)return null;P=c.createElement(u,f,I)}var M={minMenuHeight:b,maxMenuHeight:w,menuPlacement:x,menuPosition:k,menuShouldScrollIntoView:C},F=c.createElement(en,(0,r.A)({},f,M),function(t){var n=t.ref,o=t.placerProps,l=o.placement,s=o.maxHeight;return c.createElement(a,(0,r.A)({},f,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:l}),c.createElement(ar,{captureEnabled:h,onTopArrive:O,onBottomArrive:N,lockEnabled:A},function(t){return c.createElement(i,(0,r.A)({},f,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":f.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:s,focusedOption:p}),P)}))});return S||"fixed"===k?c.createElement(l,(0,r.A)({},f,{appendTo:S,controlElement:this.controlRef,menuPlacement:x,menuPosition:k}),F):F}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,l=this.state.selectValue;if(i&&!this.hasValue()&&!r)return c.createElement(lr,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var s=l.map(function(t){return e.getOptionValue(t)}).join(n);return c.createElement("input",{name:a,type:"hidden",value:s})}var u=l.length>0?l.map(function(t,n){return c.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})}):c.createElement("input",{name:a,type:"hidden",value:""});return c.createElement("div",null,u)}var d=l[0]?this.getOptionValue(l[0]):"";return c.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,a=t.focusedValue,i=t.isFocused,l=t.selectValue,s=this.getFocusableOptions();return c.createElement(Fn,(0,r.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:a,isFocused:i,selectValue:l,focusableOptions:s,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,a=e.ValueContainer,i=this.props,l=i.className,s=i.id,u=i.isDisabled,d=i.menuIsOpen,f=this.state.isFocused,p=this.commonProps=this.getCommonProps();return c.createElement(o,(0,r.A)({},p,{className:l,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:f}),this.renderLiveRegion(),c.createElement(t,(0,r.A)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:f,menuIsOpen:d}),c.createElement(a,(0,r.A)({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),c.createElement(n,(0,r.A)({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,l=t.prevWasFocused,s=t.instancePrefix,u=e.options,c=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=It(c),v={};if(n&&(c!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return gr(vr(e,t))}(e,h):[],y=d?yr(vr(e,h),"".concat(s,"-option")):[],b=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,w=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);v={selectValue:h,focusedOption:w,focusedOptionId:wr(y,w),focusableOptionsWithIds:y,focusedValue:b,clearFocusValueOnUpdate:!1}}var E=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=a,k=i&&l;return i&&!k&&(x={value:Kt(p,h,h[0]||null),options:h,action:"initial-input-focus"},k=!l),"initial-input-focus"===(null==a?void 0:a.action)&&(x=null),m(m(m({},v),E),{},{prevProps:e,ariaSelection:x,prevWasFocused:k})}}]),n}(c.Component);Or.defaultProps=mr;var Nr=(0,c.forwardRef)(function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,a=void 0!==r&&r,i=e.defaultValue,l=void 0===i?null:i,s=e.inputValue,u=e.menuIsOpen,d=e.onChange,f=e.onInputChange,p=e.onMenuClose,g=e.onMenuOpen,y=e.value,b=(0,o.A)(e,v),w=(0,c.useState)(void 0!==s?s:n),E=(0,h.A)(w,2),x=E[0],k=E[1],S=(0,c.useState)(void 0!==u?u:a),A=(0,h.A)(S,2),C=A[0],_=A[1],O=(0,c.useState)(void 0!==y?y:l),N=(0,h.A)(O,2),P=N[0],T=N[1],R=(0,c.useCallback)(function(e,t){"function"==typeof d&&d(e,t),T(e)},[d]),I=(0,c.useCallback)(function(e,t){var n;"function"==typeof f&&(n=f(e,t)),k(void 0!==n?n:e)},[f]),M=(0,c.useCallback)(function(){"function"==typeof g&&g(),_(!0)},[g]),F=(0,c.useCallback)(function(){"function"==typeof p&&p(),_(!1)},[p]),L=void 0!==s?s:x,D=void 0!==u?u:C,j=void 0!==y?y:P;return m(m({},b),{},{inputValue:L,menuIsOpen:D,onChange:R,onInputChange:I,onMenuClose:F,onMenuOpen:M,value:j})}(e);return c.createElement(Or,(0,r.A)({ref:t},n))}),Pr=Nr,Tr=n(5498),Rr=n(2532),Ir=n(3524),Mr=n(5615),Fr=n(1468),Lr=n(5556),Dr=n.n(Lr),jr=n(5289);function zr(e){var t=e.items.join(", "),n=e.items.length,r="+ ".concat(n);return c.createElement("div",{style:{marginLeft:"auto",background:"#d4eefa",borderRadius:"4px",fontSize:"11px",padding:"3px",order:99},title:t},r)}const Vr=(0,c.memo)(zr);var Ur=n(8004);function Br(e){var t=(0,Fr.d4)(jr.fF),n=(0,Fr.d4)(Ur.c),r=(0,Fr.d4)(jr.hZ),o=e.data;return c.createElement(c.Fragment,null,o.iso_code&&c.createElement("img",{height:11,width:16,src:n.psBaseUrl+"/img/l/"+o.value+".jpg",style:{marginRight:"5px",marginTop:"-2px"}}),o.key&&void 0!==o.api_key&&c.createElement("img",{height:18,width:18,src:n.psBaseUrl+"/modules/"+n.moduleName+"/views/img/"+o.key+".png",alt:o.label,style:{marginRight:"5px",marginTop:"-2px"}}),o.label,o.isDisabled&&c.createElement(Rr.A,{placement:"top",overlay:c.createElement(Ir.A,{id:"tooltip-top"},(0,Tr.pw)("Not available with",t)," ",r.title)},c.createElement("a",{href:"#",className:"toolbar-button"},c.createElement("i",{className:"material-icons",style:{fontSize:"15px",marginLeft:"2px",marginTop:"-3px"}},"info"))),0===Number(null==o?void 0:o.active)&&c.createElement(Rr.A,{placement:"top",overlay:c.createElement(Ir.A,{id:"tooltip-top"},(0,Tr.pw)("This language is disabled, the links present in the content cannot be translated.",t))},c.createElement("a",{href:"#",className:"toolbar-button"},c.createElement("i",{className:"material-icons",style:{fontSize:"15px",marginLeft:"2px",marginTop:"-3px"}},"info"))))}const Hr=(0,c.memo)(Br);var $r=["ref"],Wr=["index","getValue"];function qr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qr=function(){return!!e})()}var Kr=function(e){function t(e){var n;return(0,a.A)(this,t),n=function(e,t,n){return t=(0,s.A)(t),(0,l.A)(e,qr()?Reflect.construct(t,n||[],(0,s.A)(e).constructor):t.apply(e,n))}(this,t,[e]),n.state={optionsDisabled:e.optionsDisabled,options:e.options.filter(function(t){var n;return null==e||null===(n=e.optionsDisabled)||void 0===n||!n.value||Number(t.value)!==Number(e.optionsDisabled.value)}),selectedOptions:e.selectedOptions},n}return(0,u.A)(t,e),(0,i.A)(t,[{key:"componentDidUpdate",value:function(e,t,n){var r,o=this;if((0,Tr.eJ)(this.props.options,e.options)&&void 0===(null===(r=this.props)||void 0===r?void 0:r.optionsDisabled)&&this.setState({options:this.props.options}),void 0!==this.props.optionsDisabled&&((0,Tr.eJ)(this.props.optionsDisabled,e.optionsDisabled)||(0,Tr.eJ)(this.props.options,e.options))){var a,i=null!==(a=this.state.selectedOptions)&&void 0!==a?a:[];this.state.selectedOptions&&null!==this.props.optionsDisabled&&(1===i.length&&i[0].value===this.props.optionsDisabled.value?i=null:i.length>1&&(i=i.filter(function(e){return Number(e.value)!==Number(o.props.optionsDisabled.value)})));var l=this.props.options;null!==this.props.optionsDisabled&&(l=l.filter(function(e){return Number(e.value)!==Number(o.props.optionsDisabled.value)})),this.setState({options:l},function(){o.setSelectedOptions(i)})}if(void 0!==this.props.selectedOptions&&(0,Tr.eJ)(this.props.selectedOptions,e.selectedOptions)){var s;if(void 0!==(null===(s=this.props.selectedOptions)||void 0===s?void 0:s.api_key)&&!(0,Tr.eJ)(this.props.selectedOptions.api_key,e.selectedOptions.api_key))return;this.setSelectedOptions(this.props.selectedOptions)}}},{key:"setSelectedOptions",value:function(e){this.setState({selectedOptions:e}),this.props.onSelect&&this.props.onSelect(e)}},{key:"selectAll",value:function(){this.setSelectedOptions(this.state.options.filter(function(e){var t;return!1===(null!==(t=null==e?void 0:e.isDisabled)&&void 0!==t&&t)}))}},{key:"unselectAll",value:function(){this.setSelectedOptions([])}},{key:"render",value:function(){var e,t,n,a,i,l=this,s=this.props,u=s.translations,d=s.moduleConfig;return c.createElement("div",{style:{width:"100%"}},c.createElement("form",null,this.props.label&&c.createElement("div",{className:"d-inline-block",style:{minHeight:"37px"}},c.createElement("label",{className:"mb-3 d-inline-block"},null!==(e=this.props.label)&&void 0!==e?e:"",this.props.tooltipIcon&&this.props.tooltipText&&c.createElement(Rr.A,{placement:"top",overlay:c.createElement(Ir.A,{id:"tooltip-top"},this.props.tooltipText)},function(e){var t=e.ref,n=(0,o.A)(e,$r);return c.createElement("a",(0,r.A)({},n,{ref:t,href:"#",className:"toolbar-button"}),c.createElement("i",{className:"material-icons",style:{fontSize:"19px",marginLeft:"2px",marginTop:"-3px"}},l.props.tooltipIcon))})),c.createElement("div",{className:"d-inline-block"},null!==(t=this.props.afterLabel)&&void 0!==t?t:"")),c.createElement(Pr,(0,r.A)({placeholder:null!==(n=null!==(a=this.props.placeholder)&&void 0!==a?a:this.props.label)&&void 0!==n?n:"",value:this.state.selectedOptions,isMulti:null!==(i=this.props.isMulti)&&void 0!==i&&i,onChange:function(e){return l.setSelectedOptions(e)},autoComplete:"off"},this.props,{options:this.state.options,components:{Menu:function(e){var t,n,o,a,i,s,f,p;return c.createElement(On.Menu,(0,r.A)({},e,{className:"dg-select-bg"}),c.createElement(On.Menu,e,e.children),!0===(null===(t=l.props)||void 0===t?void 0:t.langInput)&&c.createElement("a",{className:"text-decoration-none",target:"_blank",href:d.add_language_link},c.createElement(Mr.A,{size:"sm",variant:"info",className:"btn-block"},c.createElement("i",{className:"material-icons",style:{fontSize:"19px",marginRight:"4px",marginTop:"-3px"}},"add_circle_outline"),(0,Tr.pw)("Add a language",u))),l.state.options.length>=2&&!0===(null===(n=l.props)||void 0===n?void 0:n.isMulti)&&c.createElement("div",{className:"row mt-1"},c.createElement("div",{className:"col-md-6"},c.createElement(Mr.A,{disabled:(null!==(o=null===(a=l.state.selectedOptions)||void 0===a?void 0:a.length)&&void 0!==o?o:0)===(null!==(i=null===(s=l.state.options)||void 0===s?void 0:s.length)&&void 0!==i?i:0),size:"sm",variant:"outline-secondary",className:"btn-block",onClick:function(){return l.selectAll()}},(0,Tr.pw)("Select all",u))),c.createElement("div",{className:"col-md-6"},c.createElement(Mr.A,{disabled:0===(null!==(f=null===(p=l.state.selectedOptions)||void 0===p?void 0:p.length)&&void 0!==f?f:0),size:"sm",variant:"outline-secondary",className:"btn-block",onClick:function(){return l.unselectAll()}},(0,Tr.pw)("Unselect all",u)))))},Option:function(e){return c.createElement(On.Option,e,c.createElement(Hr,e))},MultiValueLabel:function(e){return c.createElement(On.MultiValueLabel,e,c.createElement(Hr,e))},SingleValue:function(e){return c.createElement(On.SingleValue,e,c.createElement(Hr,e))},MultiValue:function(e){var t=e.index,n=e.getValue,a=(0,o.A)(e,Wr),i=n().slice(50).map(function(e){return e.label});return t<50?c.createElement(On.MultiValue,(0,r.A)({},a,{children:c.createElement(c.Fragment,null)})):50===t?c.createElement(Vr,{items:i}):null}}}))))}}])}(c.Component);Kr.propTypes={optionsDisabled:Dr().any,selectedOptions:Dr().any,label:Dr().string,tooltipIcon:Dr().string,tooltipText:Dr().string,options:Dr().any.isRequired};const Gr=(0,Fr.Ng)(function(e){return{constants:(0,Ur.c)(e),moduleConfig:e.moduleConfig,translations:(0,jr.fF)(e)}})(Kr)},4501:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=n(6540),s=n(6519),u=["bsPrefix","className","children","as"],c=l.forwardRef(function(e,t){var n=e.bsPrefix,a=e.className,c=e.children,d=e.as,f=void 0===d?"div":d,p=(0,o.A)(e,u);return n=(0,s.oU)(n,"nav-item"),l.createElement(f,(0,r.A)({},p,{ref:t,className:i()(a,n)}),c)});c.displayName="NavItem";const d=c},4583:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(3029),o=n(2901),a=n(388),i=n(3954),l=n(5501),s=n(6540),u=n(5677),c=n(5615),d=n(8280),f=n(7226),p=n(1468),m=n(2630),h=n(5498),v=n(5289),g=n(6545);function y(e){var t=(0,p.d4)(v.n$),n=(0,p.d4)(v.fF),r=(0,p.d4)(v.JX);return!(void 0!==t.providers.find(function(e){return"dingedi_free_offer"===e.key}))||r?s.createElement(s.Fragment,null):s.createElement(g.A,{alertKey:"freeoffer",variant:"info"},s.createElement("strong",{style:{padding:0}},(0,h.pw)("Temporary offer available, get 1 million characters for free",n)),s.createElement("br",null),s.createElement("br",null),s.createElement(c.A,{onClick:function(){return e.handleChangeTab("settings")},variant:"outline-primary"},(0,h.pw)("See",n)))}const b=(0,s.memo)(y);function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(w=function(){return!!e})()}var E=function(e){function t(e){var n,o,l,s;return(0,r.A)(this,t),o=this,l=t,s=[e],l=(0,i.A)(l),(n=(0,a.A)(o,w()?Reflect.construct(l,s||[],(0,i.A)(o).constructor):l.apply(o,s))).state={open:!1,openModal:!1},n}return(0,l.A)(t,e),(0,o.A)(t,[{key:"setOpenModal",value:function(e){this.setState({openModal:e})}},{key:"setOpen",value:function(e){this.setState({open:e})}},{key:"render",value:function(){var e,t=this,n=this.state,r=n.open,o=n.openModal,a=this.props.translations,i=null!==(e=this.props.alerts)&&void 0!==e?e:[];return s.createElement(s.Fragment,null,s.createElement(b,{handleChangeTab:this.props.handleChangeTab}),i.map(function(e,n){var i,l;return s.createElement(u.A,{key:n,variant:null!==(i=e.variant)&&void 0!==i?i:"info",onClose:function(){return t.props.dispatch((0,m.LL)(n))},dismissible:!0},"string"==typeof e.message&&e.message,"string"!=typeof e.message&&s.createElement(s.Fragment,null,s.createElement("div",null,null===(l=e.message)||void 0===l?void 0:l.title,s.createElement("a",{onClick:function(){return t.setOpen(!r)},href:"#",className:"ml-1","aria-controls":"example-fade-text","aria-expanded":r},(0,h.pw)("show details",a))),s.createElement(c.A,{variant:"outline-primary",size:"sm",className:"d-block p-1 mt-3 ml-2",onClick:function(){return t.setOpenModal(!0)}},s.createElement("i",{className:"material-icons"},"help")," ",(0,h.pw)("Help to solve the error",a)),s.createElement(d.A,{in:r},s.createElement("div",{className:"pl-0 mt-3 font-weight-bold"},e.message.content,s.createElement(f.A,{show:o,onHide:function(){return t.setOpenModal(!1)},backdrop:"static",centered:!0,backdropClassName:"dg-modal",dialogClassName:"dg-modal"},s.createElement(f.A.Header,{closeButton:!0},s.createElement(f.A.Title,null,s.createElement("h2",null,(0,h.pw)("Help",a)))),s.createElement(f.A.Body,null,s.createElement("div",{className:"pb-3"},s.createElement("p",{style:{fontSize:"15px"}},(0,h.pw)("Here are several solutions to solve this error:",a)),s.createElement("ul",{style:{fontSize:"14px"}},s.createElement("li",{className:"mt-1"},s.createElement("strong",null,(0,h.pw)("Reduce the translation speed in the module settings.",a))),s.createElement("li",{className:"mt-1"},s.createElement("strong",null,(0,h.pw)('Increase the "max_execution_time" parameter in the php.ini configuration file of your server.',a))),s.createElement("li",{className:"mt-1"},s.createElement("strong",null,(0,h.pw)('Contact your server manager to increase the "Timeout" setting of your Apache web server.',a)))),s.createElement("p",{className:"mt-4"},(0,h.pw)("If the error is still present, please contact us.",a)))),s.createElement(f.A.Footer,null,s.createElement(c.A,{variant:"secondary",onClick:function(){return t.setOpenModal(!1)}},(0,h.pw)("Close",a))))))))}))}}])}(s.Component);const x=(0,p.Ng)(function(e){return{alerts:e.alertsManager,translations:(0,v.fF)(e)}})(E)},4629:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(6540).createContext(null)},4633:(e,t,n)=>{var r=n(5172),o=n(6993),a=n(5869),i=n(887),l=n(1791),s=n(4373),u=n(579);function c(){"use strict";var t=o(),n=t.m(c),d=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function f(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function m(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,p[e],t)},delegateYield:function(e,o,a){return t.resultName=o,n(r.d,u(e),a)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,n,r,o){return t.w(m(e),n,r,o&&o.reverse())},isGeneratorFunction:f,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:l,async:function(e,t,n,r,o){return(f(t)?i:a)(m(e),t,n,r,o)},keys:s,values:u}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},4644:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>u,Qd:()=>l,Tw:()=>d,Zz:()=>c,ve:()=>f,y$:()=>s});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),a=()=>Math.random().toString(36).substring(7).split("").join("."),i={INIT:`@@redux/INIT${a()}`,REPLACE:`@@redux/REPLACE${a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a()}`};function l(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function s(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(s)(e,t)}let a=e,u=t,c=new Map,d=c,f=0,p=!1;function m(){d===c&&(d=new Map,c.forEach((e,t)=>{d.set(t,e)}))}function h(){if(p)throw new Error(r(3));return u}function v(e){if("function"!=typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;m();const n=f++;return d.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,m(),d.delete(n),c=null}}}function g(e){if(!l(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(p)throw new Error(r(9));try{p=!0,u=a(u,e)}finally{p=!1}return(c=d).forEach(e=>{e()}),e}g({type:i.INIT});return{dispatch:g,subscribe:v,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));a=e,g({type:i.REPLACE})},[o]:function(){const e=v;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(h())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function u(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let a;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:i.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))})}(n)}catch(e){a=e}return function(e={},t){if(a)throw a;let i=!1;const l={};for(let a=0;a<o.length;a++){const s=o[a],u=n[s],c=e[s],d=u(c,t);if(void 0===d){t&&t.type;throw new Error(r(14))}l[s]=d,i=i||d!==c}return i=i||o.length!==Object.keys(e).length,i?l:e}}function c(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function d(...e){return t=>(n,o)=>{const a=t(n,o);let i=()=>{throw new Error(r(15))};const l={getState:a.getState,dispatch:(e,...t)=>i(e,...t)},s=e.map(e=>e(l));return i=c(...s)(a.dispatch),{...a,dispatch:i}}}function f(e){return l(e)&&"type"in e&&"string"==typeof e.type}},4756:(e,t,n)=>{var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},4778:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540).createContext(null);r.displayName="NavbarContext";const o=r},4803:(e,t,n)=>{"use strict";n.d(t,{A:()=>re});var r=n(6540),o=n(1008),a=n(5498),i=n(5458),l=n(4467),s=n(3029),u=n(2901),c=n(388),d=n(3954),f=n(5501),p=n(5677),m=n(5615),h=n(5855),v=n(8440),g=n(1468),y=n(5289);function b(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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){(0,l.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(E=function(){return!!e})()}var x={enter:13},k=[x.comma,x.enter],S=function(e){function t(e){var n,r,o,a;(0,s.A)(this,t),r=this,o=t,a=[e],o=(0,d.A)(o),n=(0,c.A)(r,E()?Reflect.construct(o,a||[],(0,d.A)(r).constructor):o.apply(r,a));var i=e.translationsProviders;return n.state={form:{sortBy:"order",value:"",loading:!1,exclude:i.exclude,excluded:i.excluded}},n.handleChange=n.handleChange.bind(n),n.handleSubmit=n.handleSubmit.bind(n),n.onKeyPressed=n.onKeyPressed.bind(n),n.excludeAllBrands=n.excludeAllBrands.bind(n),n}return(0,f.A)(t,e),(0,u.A)(t,[{key:"handleSubmit",value:function(){var e=this,t=this.state.form;this.setState(function(e){return{form:w(w({},e.form),{},{loading:!0})}}),$.ajax({async:!0,type:"POST",url:(0,a.fN)("GlobalSaveSettings",this.props.constants),data:{translation_data:{exclude:t.exclude,excluded:t.excluded.length?t.excluded:null}},dataType:"json",success:function(t){t.error?$.growl.error({title:"Error",message:t.message}):$.growl.notice({title:"Success",message:t.message}),e.setState(function(e){return{form:w(w({},e.form),{},{loading:!1})}})},error:function(t){var n,r,o=null!==(n=null==t||null===(r=t.responseJSON)||void 0===r?void 0:r.message)&&void 0!==n?n:(0,a.pw)("Server error",translations);$.growl.error({title:"Error",message:o}),e.setState(function(e){return{form:w(w({},e.form),{},{loading:!1})}})}})}},{key:"updateForm",value:function(e){this.setState(function(t){return{form:w(w({},t.form),e)}})}},{key:"excludeAllBrands",value:function(){this.handleAdd(this.props.translationsProviders.manufacturers)}},{key:"handleChange",value:function(e){this.updateForm({value:e.target.value})}},{key:"handleAdd",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.form.value;e=Array.isArray(e)?e:[e],e=[].concat((0,i.A)(this.state.form.excluded),(0,i.A)(e)),e=(e=(0,i.A)(new Set(e))).filter(function(e){return e.length}),this.updateForm({excluded:e,value:""})}},{key:"onKeyPressed",value:function(e){k.includes(e.keyCode)&&this.handleAdd(e.target.value)}},{key:"handleDelete",value:function(e){var t=this.state.form.excluded.filter(function(t){return t!==e});this.updateForm({excluded:t})}},{key:"canAddWord",value:function(){return this.state.form.excluded.includes(this.state.form.value)}},{key:"getSortedList",value:function(){var e=this.state.form.sortBy,t=this.state.form.excluded,n=(0,i.A)(t);return"alph"===e&&n.sort(function(e,t){return e.localeCompare(t)}),n}},{key:"render",value:function(){var e=this,t=this.props.translations,n=this.state.form,o=this.canAddWord(),i=this.getSortedList();return r.createElement(r.Fragment,null,r.createElement("h4",{className:"h3"},(0,a.pw)("Exclude words from translation",t)),r.createElement(p.A,{variant:"info alert-info-primary"},(0,a.pw)("The words you add will not be translated. For example, you can add brand names.",t)),r.createElement(v.A,{onChange:function(t){return e.updateForm({exclude:t})},checked:n.exclude}),r.createElement("div",{className:"mt-4 "+(n.exclude?"":"dg-disabled")},r.createElement(m.A,{variant:"outline-primary",size:"sm",className:"mb-3",onClick:this.excludeAllBrands},(0,a.pw)("Exclude all brands",t)," ",r.createElement("i",{className:"material-icons"},"add_circle_outline")),r.createElement("div",{className:"form-row align-items-center mb-3"},r.createElement("div",{className:"col-sm-6"},r.createElement("label",{className:"sr-only",htmlFor:"inputExcludeWord"},"Name"),r.createElement("input",{type:"text",className:"form-control",id:"inputExcludeWord",autoComplete:"off",value:this.state.form.value,placeholder:(0,a.pw)("Add a word to exclude from the translation",t),onChange:this.handleChange,onKeyUp:this.onKeyPressed})),r.createElement("div",{className:"col-sm-2"},r.createElement(m.A,{disabled:o,onClick:function(){return e.handleAdd()},variant:"primary"},(0,a.pw)("Add",t))),r.createElement("div",{className:"col-sm-2"}),r.createElement("div",{className:"col-sm-2"},r.createElement(h.A,{className:"float-right"},r.createElement(h.A.Toggle,{variant:"",id:"dropdown-basic"},(0,a.pw)("Sort by",t)),r.createElement(h.A.Menu,null,r.createElement(h.A.Item,{active:"order"===this.state.form.sortBy,onClick:function(){return e.updateForm({sortBy:"order"})}},(0,a.pw)("Order of addition",t)),r.createElement(h.A.Item,{active:"alph"===this.state.form.sortBy,onClick:function(){return e.updateForm({sortBy:"alph"})}},(0,a.pw)("Alphabetical order",t)))))),o&&r.createElement("span",{className:"text-warning d-block mb-3"},(0,a.pw)("Word already excluded",t)),r.createElement("div",{className:"mt-3 mb-3"},i.map(function(t,n){return r.createElement(m.A,{key:n,className:"btn-excluded mb-2 mr-2",variant:"secondary"},t,r.createElement("span",{onClick:function(){return e.handleDelete(t)},style:{marginLeft:"4px",fontSize:"17px"},className:"material-icons"},"close"))}))),r.createElement(m.A,{disabled:this.state.form.loading,variant:"primary",className:"mt-3",onClick:this.handleSubmit},this.state.form.loading&&r.createElement("div",{style:{marginRight:"5px"},className:"icon-spin icon-spinner"}),(0,a.pw)("Save",t)))}}])}(r.Component);const A=(0,g.Ng)(function(e){return{translations:(0,y.fF)(e),translationsProviders:(0,y.n$)(e),constants:e.constants}})(S);var C=n(2431),_=n(2532),O=n(3524),N=n(7226),P=n(8168),T=n(8587),R=n(6942),I=n.n(R),M=n(6519),F=["bsPrefix","fluid","as","className"],L=r.forwardRef(function(e,t){var n=e.bsPrefix,o=e.fluid,a=e.as,i=void 0===a?"div":a,l=e.className,s=(0,T.A)(e,F),u=(0,M.oU)(n,"container"),c="string"==typeof o?"-"+o:"-fluid";return r.createElement(i,(0,P.A)({ref:t},s,{className:I()(l,o?""+u+c:u)}))});L.displayName="Container",L.defaultProps={fluid:!1};const D=L;var j=n(4479),z=n(1105),V=n(8765),U=n(5556),B=n.n(U),H=n(4494),W=n(3097),q=n(7112);function K(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 G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach(function(t){(0,l.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Q(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Q=function(){return!!e})()}var Y=function(e){function t(e){var n,r,o,a,i,l;(0,s.A)(this,t),a=this,i=t,l=[e],i=(0,d.A)(i),o=(0,c.A)(a,Q()?Reflect.construct(i,l||[],(0,d.A)(a).constructor):i.apply(a,l));var u=null!==e.itemId?e.smartDictionary[e.itemId]:{};return void 0===u.from&&(u=G(G({},u),{},{caseSensitive:!0,from:Number(e.default_lang)})),"false"===(null===(n=u)||void 0===n?void 0:n.caseSensitive)&&(u=G(G({},u),{},{caseSensitive:!1})),"true"===(null===(r=u)||void 0===r?void 0:r.caseSensitive)&&(u=G(G({},u),{},{caseSensitive:!0})),o.state={item:u},o.onAdd=o.onAdd.bind(o),o}return(0,f.A)(t,e),(0,u.A)(t,[{key:"updateItem",value:function(e,t){this.setState(function(n){return{item:G(G({},n.item),{},(0,l.A)({},Number(e.value),t))}})}},{key:"updateCaseSensitive",value:function(e){this.setState(function(t){return{item:G(G({},t.item),{},{caseSensitive:e})}})}},{key:"onAdd",value:function(){this.props.onAdd(this.state.item)}},{key:"updateFrom",value:function(e){var t=G(G({},this.state.item),{},{from:Number(e.value)});delete t[Number(this.state.item.from)],this.setState({item:t})}},{key:"hasFormError",value:function(){var e=this,t=!1;if(this.state.item[Number(this.state.item.from)]){var n=(0,i.A)(this.props.smartDictionary);null!==this.props.itemId&&this.state.item[Number(this.state.item.from)]===this.props.smartDictionary[this.props.itemId][this.state.item.from]||n.push(this.state.item),n.filter(function(t){return Number(t.from)===Number(e.state.item.from)}).map(function(t){return t[Number(e.state.item.from)]}).filter(function(t){return t===e.state.item[Number(e.state.item.from)]}).length>1&&(t=!0)}return t}},{key:"isFormDisabled",value:function(){var e=Object.assign({},this.state.item);return delete e[Number(this.state.item.from)],delete e.from,delete e.caseSensitive,!this.state.item[Number(this.state.item.from)]||""===this.state.item[Number(this.state.item.from)].trim()||!Object.values(e).find(function(e){return""!==(null==e?void 0:e.trim())})}},{key:"displaySpacesAlert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e!==e.trim())return r.createElement(_.A,{placement:"top",overlay:r.createElement(O.A,{id:"tooltip-top"},(0,a.pw)("Warning, spaces are present which could alter the formatting after the translation",this.props.translations))},r.createElement("a",{href:"#",className:"toolbar-button"},r.createElement("i",{className:"material-icons text-warning",style:{fontSize:"18px",marginTop:(t?"53":"6")+"px"}},"warning")))}},{key:"render",value:function(){var e,t,n,o,i=this,l=this.props,s=l.languages,u=l.translations,c=s.find(function(e){return Number(e.value)===Number(i.state.item.from)}),d=this.isFormDisabled(),f=this.hasFormError();return r.createElement(N.A,{show:!0,size:"lg",backdropClassName:"dg-modal",dialogClassName:"dg-modal",centered:!0,backdrop:"static",onHide:this.props.onHide},r.createElement(N.A.Header,{closeButton:!0},r.createElement(N.A.Title,{id:"contained-modal-title-vcenter"})),r.createElement(N.A.Body,null,r.createElement(D,{style:{overflow:"auto",maxHeight:"100vh"}},r.createElement(j.A,{className:"mb-3"},r.createElement(z.A,{md:11},r.createElement(p.A,{variant:"info alert-info-primary"},(0,a.pw)("Add the word whose translation you want to change first, then add the translations you want.",u)))),r.createElement(j.A,null,r.createElement(z.A,{md:3,className:"font-weight-bold d-flex align-items-center"},r.createElement("span",{style:{fontSize:"15px"}},r.createElement(W.A,{language:c})," From: ",r.createElement("span",{className:"text-primary"},c.label))),r.createElement(z.A,{md:7},r.createElement(H.A,{onSelect:function(e){return i.updateFrom(e)},isMulti:!1,closeMenuOnSelect:!0,options:s,selectedOptions:c,langInput:!0}),r.createElement(V.A.Control,{isInvalid:f,className:"mt-2",value:null!==(e=null===(t=this.state)||void 0===t?void 0:t.item[Number(this.state.item.from)])&&void 0!==e?e:"",onChange:function(e){return i.updateItem(c,e.target.value)},type:"text"}),r.createElement(q.A,{className:"mt-3",checked:null===(n=this.state.item.caseSensitive)||void 0===n||n,onChange:function(e){return i.updateCaseSensitive(e.target.checked)},label:r.createElement(r.Fragment,null,(0,a.pw)("exact word",u),r.createElement(_.A,{placement:"top",overlay:r.createElement(O.A,{id:"tooltip-top"},(0,a.pw)('If you deactivate this option, similar words with upper or lower case will also be taken into account. For the word "hello" variants like "Hello", "HELLO", etc will also be taken into account.',u))},r.createElement("a",{href:"#",className:"toolbar-button"},r.createElement("i",{className:"material-icons",style:{fontSize:"19px",marginLeft:"2px",marginTop:"-3px"}},"info"))))}),f&&r.createElement(V.A.Control.Feedback,{type:"invalid"},(0,a.pw)("This word already exists for this language",u))),r.createElement(z.A,{md:2},this.displaySpacesAlert(null===(o=this.state)||void 0===o?void 0:o.item[Number(this.state.item.from)],!0))),r.createElement("div",{className:"d-flex justify-content-center mt-4"},r.createElement("span",{className:"material-icons text-white p-2 bg-primary"},"arrow_downward")),s.filter(function(e){var t;return null!==(t=Number(e.value)!==Number(i.state.item.from))&&void 0!==t?t:-1}).map(function(e,t){var n,o,a;return r.createElement(j.A,{key:t,className:"mt-4"},r.createElement(z.A,{md:3,className:"font-weight-bold d-flex align-items-center"},r.createElement(W.A,{language:e}),e.label),r.createElement(z.A,{md:7},r.createElement(V.A.Control,{value:null!==(n=null===(o=i.state)||void 0===o?void 0:o.item[e.value])&&void 0!==n?n:"",onChange:function(t){return i.updateItem(e,t.target.value)},type:"text"})),r.createElement(z.A,{md:2},i.displaySpacesAlert(null===(a=i.state)||void 0===a?void 0:a.item[e.value])))}))),r.createElement(N.A.Footer,null,r.createElement(m.A,{disabled:f||d,onClick:this.onAdd},null!==this.props.itemId&&(0,a.pw)("Update",u),null===this.props.itemId&&(0,a.pw)("Add",u))))}}])}(r.Component);Y.propTypes={smartDictionary:B().array.isRequired,itemId:B().number,onHide:B().func.isRequired,onAdd:B().func.isRequired};const X=(0,g.Ng)(function(e){return{languages:(0,y.kr)(e),translations:(0,y.fF)(e),default_lang:(0,y.ne)(e),constants:e.constants}})(Y);function J(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 Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach(function(t){(0,l.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ee=function(){return!!e})()}var te=function(e){function t(e){var n,r,o,a,i,l;(0,s.A)(this,t),a=this,i=t,l=[e],i=(0,d.A)(i),o=(0,c.A)(a,ee()?Reflect.construct(i,l||[],(0,d.A)(a).constructor):i.apply(a,l));var u=e.translationsProviders;return o.state={show:!1,itemId:null,form:{loading:!1,smart_dictionary_enabled:null===(n=u.smart_dictionary_enabled)||void 0===n||n,smart_dictionary:null!==(r=u.smart_dictionary)&&void 0!==r?r:[]}},o.onHide=o.onHide.bind(o),o.onAdd=o.onAdd.bind(o),o.addNewItem=o.addNewItem.bind(o),o}return(0,f.A)(t,e),(0,u.A)(t,[{key:"handleSubmit",value:function(){var e=this,t=this.state.form;this.setState(function(e){return{form:Z(Z({},e.form),{},{loading:!0})}}),$.ajax({async:!0,type:"POST",url:(0,a.fN)("GlobalSaveSettings",this.props.constants),data:{translation_data:{smart_dictionary_enabled:t.smart_dictionary_enabled,smart_dictionary:t.smart_dictionary.length?JSON.stringify(t.smart_dictionary):null}},dataType:"json",success:function(t){t.error?$.growl.error({title:"Error",message:t.message}):$.growl.notice({title:"Success",message:t.message}),e.setState(function(e){return{form:Z(Z({},e.form),{},{loading:!1})}})},error:function(t){var n,r,o=null!==(n=null==t||null===(r=t.responseJSON)||void 0===r?void 0:r.message)&&void 0!==n?n:(0,a.pw)("Server error",e.props.translations);$.growl.error({title:"Error",message:o}),e.setState(function(e){return{form:Z(Z({},e.form),{},{loading:!1})}})}})}},{key:"updateForm",value:function(e){this.setState(function(t){return{form:Z(Z({},t.form),e)}})}},{key:"onAdd",value:function(e){var t=this,n=this.state.form.smart_dictionary;n=null===this.state.itemId?[].concat((0,i.A)(n),[e]):n.map(function(n,r){return r===t.state.itemId&&(n=e),n}),this.setState(function(e){return{form:Z(Z({},e.form),{},{smart_dictionary:n})}},function(){t.onHide()})}},{key:"addNewItem",value:function(){this.setState({show:!0,itemId:null})}},{key:"onHide",value:function(){this.setState({show:!1,itemId:null})}},{key:"handleEdit",value:function(e){this.setState({itemId:e,show:!0})}},{key:"handleDelete",value:function(e){var t=this.state.form.smart_dictionary;t=t.filter(function(t,n){return n!==e}),this.setState(function(e){return{form:Z(Z({},e.form),{},{smart_dictionary:t})}})}},{key:"render",value:function(){var e=this,t=this.props,n=t.languages,o=t.translations,l=this.state.form,s=n.findIndex(function(t){return Number(t.value)===e.props.default_lang}),u=n[s];return n=n.filter(function(e,t){return t!==s}),n=[u].concat((0,i.A)(n)),r.createElement(r.Fragment,null,r.createElement("h4",{className:"h3"},(0,a.pw)("Smart dictionary",o)),r.createElement(p.A,{variant:"info alert-info-primary"},(0,a.pw)("If the translation of certain words do not fit, you can define your own translations here.",o)),r.createElement(v.A,{onChange:function(t){return e.updateForm({smart_dictionary_enabled:t})},checked:l.smart_dictionary_enabled}),r.createElement("div",{className:"mt-4"},r.createElement(m.A,{onClick:this.addNewItem,className:"mt-3 mb-4",variant:"secondary"},(0,a.pw)("Add a word",o)),r.createElement(C.A,{hover:!0,style:{overflow:"auto",display:"block"}},r.createElement("thead",null,r.createElement("tr",null,r.createElement("th",null),n.map(function(e,t){return r.createElement("th",{key:t},r.createElement(W.A,{language:e}),e.label)}))),r.createElement("tbody",null,l.smart_dictionary.map(function(t,o){return r.createElement("tr",{key:o,style:{height:"50px"}},r.createElement("td",null,r.createElement(m.A,{onClick:function(){return e.handleEdit(o)},variant:"link",className:"dg-btn-link"},r.createElement("i",{className:"material-icons"},"edit")),r.createElement(m.A,{onClick:function(){return e.handleDelete(o)},variant:"link",className:"dg-btn-link"},r.createElement("i",{className:"material-icons"},"delete"))),n.map(function(e,n){var o;return r.createElement("td",{key:n},r.createElement("span",{style:{fontSize:"15px"},className:Number(e.value)===Number(t.from)?"text-primary font-weight-bold":""},null!==(o=t[e.value])&&void 0!==o?o:""))}))})))),r.createElement(m.A,{disabled:l.loading,variant:"primary",className:"mt-3",onClick:function(){return e.handleSubmit()}},l.loading&&r.createElement("div",{style:{marginRight:"5px"},className:"icon-spin icon-spinner"}),(0,a.pw)("Save",o)),this.state.show&&r.createElement(X,{onHide:this.onHide,onAdd:this.onAdd,itemId:this.state.itemId,smartDictionary:l.smart_dictionary}))}}])}(r.Component);const ne=(0,g.Ng)(function(e){return{languages:(0,y.kr)(e),translations:(0,y.fF)(e),default_lang:(0,y.ne)(e),translationsProviders:(0,y.n$)(e),constants:e.constants}})(te);const re=function(e){return[r.createElement(o.A,{key:0,eventKey:"tools-excludedwords",title:r.createElement(r.Fragment,null,r.createElement("span",{className:"tab-tools-icon material-icons"},"remove_circle"),(0,a.pw)("Excluded words",e))},r.createElement(A,null)),r.createElement(o.A,{key:1,eventKey:"tools-smartdictionary",title:r.createElement(r.Fragment,null,r.createElement("span",{className:"tab-tools-icon material-icons"},"library_books"),(0,a.pw)("Smart dictionary",e))},r.createElement(ne,null))]}},5003:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=Function.prototype.bind.call(Function.prototype.call,[].slice);function o(e,t){return r(e.querySelectorAll(t))}},5019:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=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)}},5056:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},5072:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],l=0;l<e.length;l++){var s=e[l],u=r.base?s[0]+r.base:s[0],c=a[u]||0,d="".concat(u," ").concat(c);a[u]=c+1;var f=n(d),p={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var m=o(p,r);r.byIndex=l,t.splice(l,0,{identifier:d,updater:m,references:1})}i.push(d)}return i}function o(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var l=n(a[i]);t[l].references--}for(var s=r(e,o),u=0;u<a.length;u++){var c=n(a[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}a=s}}},5160:(e,t,n)=>{"use strict";
/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(6540);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useSyncExternalStore,i=r.useRef,l=r.useEffect,s=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s(function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return i=t}return i=e}if(t=i,o(a,e))return t;var n=r(e);return void 0!==c&&c(t,n)?(a=e,t):(a=e,i=n)}var a,i,l=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,n,r,c]);var p=a(e,d[0],d[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}},5168:(e,t,n)=>{"use strict";n.d(t,{T:()=>d});var r=n(4467),o=n(296),a=n(6540),i=n(5498),l=n(1468),s=n(5289);function u(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){var n=(0,l.d4)(function(e){return e.constants}),r=(0,l.d4)(s.fF),u=(0,a.useState)(c(c({},e),{},{loading:!1})),d=(0,o.A)(u,2),f=d[0],p=d[1];return{form:f,updateForm:function(e){return p(function(t){return c(c({},t),e)})},handleSubmit:function(){p(function(e){return c(c({},e),{},{loading:!0})}),$.ajax({type:"POST",url:(0,i.fN)("GlobalSaveSettings",n),data:{translation_data:c({},f)},dataType:"json",success:function(e){e.api_error?$.growl.error({title:"Error",message:e.api_error}):($.growl.notice({title:"Success",message:e.message}),t&&t(f,e)),p(function(e){return c(c({},e),{},{loading:!1})})},error:function(e){var t,n,o=null!==(t=null==e||null===(n=e.responseJSON)||void 0===n?void 0:n.message)&&void 0!==t?t:(0,i.pw)("Server error",r);$.growl.error({title:"Error",message:o}),p(function(e){return c(c({},e),{},{loading:!1})})}})}}}},5172:e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},5184:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(467),o=n(4756),a=n.n(o),i=n(5498),l=n(6540),s=n(5556),u=n.n(s),c=n(1468),d=n(5289),f=n(8794),p=n.n(f),m=n(9288);function h(){return v.apply(this,arguments)}function v(){return v=(0,r.A)(a().mark(function e(){var t,n=arguments;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=1,p()(function(e){var n=e.show,r=e.onSubmit,o=e.onDismiss;return l.createElement(m.A,{translations:t,modalTitle:(0,i.pw)("Translation service not configured",t),modalBody:l.createElement("div",{className:"alert alert-danger"},l.createElement("strong",{className:"pl-0"},(0,i.pw)("An API key for the selected translation service must be configured before starting the translation",t),".",l.createElement("br",null),(0,i.pw)('Go to "Parameters > API Key"',t))),cancelText:(0,i.pw)("Cancel",t),showSubmitBtn:!1,show:n,onSubmit:r,onHide:o})});case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)})),v.apply(this,arguments)}var g=n(8168),y=n(296),b=n(5615),w=n(285),E="leaveReviewModal";function x(e){var t=e.translations,n=e.constants,r=e.moduleName,o=(0,l.useState)(!1),a=(0,y.A)(o,2),s=a[0],u=a[1];return l.createElement(m.A,{translations:t,modalTitle:"",modalBody:l.createElement("div",{className:"mt-2 mb-4",style:{fontSize:"16px"}},l.createElement("div",{className:"mt-4 d-flex flex-column align-items-center justify-content-center"},!s&&l.createElement(l.Fragment,null,l.createElement("img",{height:80,src:n.psBaseUrl+"/modules/"+r+"/views/img/speed.png",alt:r+" speed",className:"mb-3"}),l.createElement("p",{style:{textAlign:"center"}},l.createElement("strong",null,(0,i.pw)("Leave a review on our module and instantly get better translation speed",t))),l.createElement("a",{href:"https://addons.prestashop.com/ratings.php",target:"_blank"},l.createElement(b.A,{onClick:function(){u(!0)},variant:"primary"},(0,i.pw)("Leave a review",t)))),s&&l.createElement(l.Fragment,null,l.createElement("img",{width:"100%",src:n.psBaseUrl+"/modules/"+r+"/views/img/speed_help.png",alt:r+" speed help",className:"mb-3"}),l.createElement("p",{className:"mb-0",style:{textAlign:"center"}},l.createElement("strong",null,(0,i.pw)("Once your review is submitted, click the button below to start your translation with better translation speed.",t))),l.createElement("a",{className:"text-primary mb-4 mt-1",style:{fontSize:"11px"},href:"https://addons.prestashop.com/ratings.php",target:"_blank"},(0,i.pw)("Click here to reopen the page",t)),l.createElement(b.A,{onClick:function(){e.onSubmit()},variant:"primary"},(0,i.pw)("Start translation",t))))),beforeFooter:l.createElement(l.Fragment,null,l.createElement("a",{onClick:function(){(0,w.Hd)(E),e.onHide()},style:{fontSize:"9px",textDecoration:"none",color:"#d7d7d7",position:"absolute",left:"1.825rem"},href:"#"},(0,i.pw)("Do not show again",t))),cancelText:(0,i.pw)("No thanks",t),showSubmitBtn:!1,showCancelBtn:!s,show:e.show,onSubmit:e.onSubmit,onHide:e.onHide})}function k(e){return S.apply(this,arguments)}function S(){return(S=(0,r.A)(a().mark(function e(t){return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,w.VE)(E)){e.next=1;break}return e.abrupt("return",!0);case 1:return e.next=2,p()(function(e){var n=e.show,r=e.onSubmit,o=e.onDismiss;return l.createElement(x,(0,g.A)({show:n,onSubmit:r,onHide:o},t))});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}var A=n(8004);function C(e){var t=(0,c.d4)(d.fF),n=(0,c.d4)(A.c),o=(0,c.d4)(d.aR),s=(0,c.d4)(d.VF),u=(0,c.d4)(d.hZ);function f(){return(f=(0,r.A)(a().mark(function r(){return a().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(e.loading){r.next=3;break}if(""!==u.api_key.trim()){r.next=2;break}return r.next=1,h(t);case 1:return r.abrupt("return");case 2:if("dingedi_v1"!==u.key||!s){r.next=3;break}return r.next=3,k({translations:t,constants:n,moduleName:o});case 3:e.handleSubmit();case 4:case"end":return r.stop()}},r)}))).apply(this,arguments)}return l.createElement("button",{onClick:function(){return f.apply(this,arguments)},disabled:e.disabled,type:"button",className:"btn btn-lg btn-primary",style:{height:"44px"}},void 0!==(null==e?void 0:e.totalSelected)&&l.createElement(l.Fragment,null,"(",e.totalSelected,")"),e.loading&&l.createElement(l.Fragment,null," ",(0,i.pw)("Stop",t),l.createElement("div",{style:{marginLeft:"5px",marginRight:"3px"},className:"icon-spin icon-spinner"})),!e.loading&&l.createElement(l.Fragment,null," ",(0,i.pw)("Translate",t)))}C.propTypes={handleSubmit:u().func.isRequired,totalSelected:u().number,loading:u().bool.isRequired,disabled:u().bool.isRequired};const _=(0,l.memo)(C)},5258:(e,t,n)=>{"use strict";function r(e){e.offsetHeight}n.d(t,{A:()=>r})},5287:(e,t)=>{"use strict";
/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||m}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||m}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var w=b.prototype=new y;w.constructor=b,h(w,g.prototype),w.isPureReactComponent=!0;var E=Array.isArray,x=Object.prototype.hasOwnProperty,k={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,r){var o,a={},i=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)x.call(t,o)&&!S.hasOwnProperty(o)&&(a[o]=t[o]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===a[o]&&(a[o]=s[o]);return{$$typeof:n,type:e,key:i,ref:l,props:a,_owner:k.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var _=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function N(e,t,o,a,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return i=i(s=e),e=""===a?"."+O(s,0):a,E(i)?(o="",null!=e&&(o=e.replace(_,"$&/")+"/"),N(i,t,o,"",function(e){return e})):null!=i&&(C(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(_,"$&/")+"/")+e)),t.push(i)),1;if(s=0,a=""===a?".":a+":",E(e))for(var u=0;u<e.length;u++){var c=a+O(l=e[u],u);s+=N(l,t,o,c,i)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(l=e.next()).done;)s+=N(l=l.value,t,o,c=a+O(l,u++),i);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function P(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",function(e){return t.call(n,e,o++)}),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},I={transition:null},M={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:I,ReactCurrentOwner:k};function F(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=o,t.Profiler=i,t.PureComponent=b,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.act=F,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),a=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=k.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)x.call(t,u)&&!S.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=A,t.createFactory=function(e){var t=A.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=F,t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.3.1"},5289:(e,t,n)=>{"use strict";n.d(t,{Ig:()=>h,JX:()=>u,RF:()=>g,VF:()=>s,aR:()=>l,bq:()=>v,fF:()=>i,gx:()=>d,hZ:()=>p,kr:()=>a,mv:()=>c,n$:()=>f,ne:()=>m,zi:()=>y});var r=n(5508),o=function(e){return e.moduleConfig},a=(0,r.Mz)([o],function(e){return e.languages}),i=(0,r.Mz)([o],function(e){return e.translations}),l=(0,r.Mz)([o],function(e){return e.module_name}),s=(0,r.Mz)([o],function(e){return e.show_leave_review}),u=(0,r.Mz)([o],function(e){return e.has_review}),c=(0,r.Mz)([o],function(e){return e.free_chars}),d=((0,r.Mz)([o],function(e){return e.module_version}),(0,r.Mz)([o],function(e){return e.module_id})),f=(0,r.Mz)([o],function(e){return e.translationsProviders}),p=(0,r.Mz)([f],function(e){var t;return null===(t=e.providers.filter(function(t){return t.key===e.default}))||void 0===t?void 0:t[0]}),m=(0,r.Mz)([o],function(e){return Number(e.default_lang)}),h=(0,r.Mz)([o],function(e){return e.cron_cli_command}),v=(0,r.Mz)([o],function(e){return e.is_ps_16}),g=(0,r.Mz)([o],function(e){return null==e?void 0:e.type}),y=(0,r.Mz)([a,function(e,t){return t}],function(e,t){return e.find(function(e){return Number(e.value)===Number(t.id_lang)})});
/**
 * License limited to a single site, for use on another site please purchase a license for this module.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 *
 * @author    Dingedi.com
 * @copyright Copyright 2025 © Dingedi All right reserved
 * @license   http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
 * @category  Dingedi PrestaShop Modules
 */},5338:(e,t,n)=>{"use strict";var r=n(961);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},5441:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,r,o,a,i){var l=o||"<<anonymous>>",s=i||r;if(null==n[r])return t?new Error("Required "+a+" `"+s+"` was not specified in `"+l+"`."):null;for(var u=arguments.length,c=Array(u>6?u-6:0),d=6;d<u;d++)c[d-6]=arguments[d];return e.apply(void 0,[n,r,l,a,s].concat(c))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},e.exports=t.default},5452:(e,t,n)=>{"use strict";n.d(t,{U1:()=>le,Z0:()=>pe});var r=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),a=Symbol.for("immer-state");function i(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var l=Object.getPrototypeOf;function s(e){return!!e&&!!e[a]}function u(e){return!!e&&(f(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||g(e)||y(e))}var c=Object.prototype.constructor.toString(),d=new WeakMap;function f(e){if(!e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if("function"!=typeof n)return!1;let r=d.get(n);return void 0===r&&(r=Function.toString.call(n),d.set(n,r)),r===c}function p(e,t,n=!0){if(0===m(e)){(n?Reflect.ownKeys(e):Object.keys(e)).forEach(n=>{t(n,e[n],e)})}else e.forEach((n,r)=>t(r,n,e))}function m(e){const t=e[a];return t?t.type_:Array.isArray(e)?1:g(e)?2:y(e)?3:0}function h(e,t){return 2===m(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function v(e,t,n){const r=m(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function g(e){return e instanceof Map}function y(e){return e instanceof Set}function b(e){return e.copy_||e.base_}function w(e,t){if(g(e))return new Map(e);if(y(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=f(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[a];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],a=t[o];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(l(e),t)}{const t=l(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function E(e,t=!1){return k(e)||s(e)||!u(e)||(m(e)>1&&Object.defineProperties(e,{set:x,add:x,clear:x,delete:x}),Object.freeze(e),t&&Object.values(e).forEach(e=>E(e,!0))),e}var x={value:function(){i(2)}};function k(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var S,A={};function C(e){const t=A[e];return t||i(0),t}function _(){return S}function O(e,t){t&&(C("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function N(e){P(e),e.drafts_.forEach(R),e.drafts_=null}function P(e){e===S&&(S=e.parent_)}function T(e){return S={drafts_:[],parent_:S,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function R(e){const t=e[a];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function I(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[a].modified_&&(N(t),i(4)),u(e)&&(e=M(t,e),t.parent_||L(t,e)),t.patches_&&C("Patches").generateReplacementPatches_(n[a].base_,e,t.patches_,t.inversePatches_)):e=M(t,n,[]),N(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==r?e:void 0}function M(e,t,n){if(k(t))return t;const r=e.immer_.shouldUseStrictIteration(),o=t[a];if(!o)return p(t,(r,a)=>F(e,o,t,r,a,n),r),t;if(o.scope_!==e)return t;if(!o.modified_)return L(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const t=o.copy_;let a=t,i=!1;3===o.type_&&(a=new Set(t),t.clear(),i=!0),p(a,(r,a)=>F(e,o,t,r,a,n,i),r),L(e,t,!1),n&&e.patches_&&C("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function F(e,t,n,r,o,a,i){if(null==o)return;if("object"!=typeof o&&!i)return;const l=k(o);if(!l||i){if(s(o)){const i=M(e,o,a&&t&&3!==t.type_&&!h(t.assigned_,r)?a.concat(r):void 0);if(v(n,r,i),!s(i))return;e.canAutoFreeze_=!1}else i&&n.add(o);if(u(o)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;if(t&&t.base_&&t.base_[r]===o&&l)return;M(e,o),t&&t.scope_.parent_||"symbol"==typeof r||!(g(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))||L(e,o)}}}function L(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&E(t,n)}var D={get(e,t){if(t===a)return e;const n=b(e);if(!h(n,t))return function(e,t,n){const r=V(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!u(r)?r:r===z(e.base_,t)?(B(e),e.copy_[t]=H(r,e)):r},has:(e,t)=>t in b(e),ownKeys:e=>Reflect.ownKeys(b(e)),set(e,t,n){const r=V(b(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=z(b(e),t),l=r?.[a];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(i=r)?0!==o||1/o==1/i:o!=o&&i!=i)&&(void 0!==n||h(e.base_,t)))return!0;B(e),U(e)}var o,i;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==z(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,B(e),U(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=b(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){i(11)},getPrototypeOf:e=>l(e.base_),setPrototypeOf(){i(12)}},j={};function z(e,t){const n=e[a];return(n?b(n):e)[t]}function V(e,t){if(!(t in e))return;let n=l(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=l(n)}}function U(e){e.modified_||(e.modified_=!0,e.parent_&&U(e.parent_))}function B(e){e.copy_||(e.copy_=w(e.base_,e.scope_.immer_.useStrictShallowCopy_))}p(D,(e,t)=>{j[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),j.deleteProperty=function(e,t){return j.set.call(this,e,t,void 0)},j.set=function(e,t,n){return D.set.call(this,e[0],t,n,e[0])};function H(e,t){const n=g(e)?C("MapSet").proxyMap_(e,t):y(e)?C("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:_(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,a=D;n&&(o=[r],a=j);const{revoke:i,proxy:l}=Proxy.revocable(o,a);return r.draft_=l,r.revoke_=i,l}(e,t);return(t?t.scope_:_()).drafts_.push(n),n}function $(e){if(!u(e)||k(e))return e;const t=e[a];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=w(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=w(e,!0);return p(n,(e,t)=>{v(n,e,$(t))},r),t&&(t.finalized_=!1),n}var W=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,e=>t.call(this,e,...o))}}let o;if("function"!=typeof t&&i(6),void 0!==n&&"function"!=typeof n&&i(7),u(e)){const r=T(this),a=H(e,void 0);let i=!0;try{o=t(a),i=!1}finally{i?N(r):P(r)}return O(r,n),I(o,r)}if(!e||"object"!=typeof e){if(o=t(e),void 0===o&&(o=e),o===r&&(o=void 0),this.autoFreeze_&&E(o,!0),n){const t=[],r=[];C("Patches").generateReplacementPatches_(e,o,t,r),n(t,r)}return o}i(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){u(e)||i(8),s(e)&&(e=function(e){s(e)||i(10);return $(e)}(e));const t=T(this),n=H(e,void 0);return n[a].isManual_=!0,P(t),n}finishDraft(e,t){const n=e&&e[a];n&&n.isManual_||i(9);const{scope_:r}=n;return O(r,t),I(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=C("Patches").applyPatches_;return s(e)?r(e,t):this.produce(e,e=>r(e,t))}},q=W.produce,K=W.setUseStrictIteration.bind(W);var G=n(4644);function Q(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var Y=Q(),X=Q,J="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?G.Zz:G.Zz.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Z(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(ve(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>(0,G.ve)(t)&&t.type===e,n}var ee=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function te(e){return u(e)?q(e,()=>{}):e}function ne(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var re=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let a=new ee;return t&&("boolean"==typeof t?a.push(Y):a.push(X(t.extraArgument))),a},oe="RTK_autoBatch",ae=e=>t=>{setTimeout(t,e)},ie=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new ee(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,a=!1,i=!1;const l=new Set,s="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:ae(10):"callback"===e.type?e.queueNotification:ae(e.timeout),u=()=>{i=!1,a&&(a=!1,l.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){const t=r.subscribe(()=>o&&e());return l.add(e),()=>{t(),l.delete(e)}},dispatch(e){try{return o=!e?.meta?.[oe],a=!o,a&&(i||(i=!0,s(u))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r};function le(e){const t=re(),{reducer:n,middleware:r,devTools:o=!0,duplicateMiddlewareCheck:a=!0,preloadedState:i,enhancers:l}=e||{};let s,u;if("function"==typeof n)s=n;else{if(!(0,G.Qd)(n))throw new Error(ve(1));s=(0,G.HY)(n)}u="function"==typeof r?r(t):t();let c=G.Zz;o&&(c=J({trace:!1,..."object"==typeof o&&o}));const d=(0,G.Tw)(...u),f=ie(d);const p=c(..."function"==typeof l?l(f):f());return(0,G.y$)(s,i,p)}function se(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(ve(28));if(r in t)throw new Error(ve(29));return t[r]=n,o},addAsyncThunk:(e,r)=>(r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),o),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}K(!1);var ue=Symbol.for("rtk-slice-createasyncthunk");function ce(e,t){return`${e}/${t}`}function de({creators:e}={}){const t=e?.asyncThunk?.[ue];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(ve(11));const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},a=Object.keys(o),i={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(ve(12));if(n in i.sliceCaseReducersByType)throw new Error(ve(13));return i.sliceCaseReducersByType[n]=t,l},addMatcher:(e,t)=>(i.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(i.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(i.sliceCaseReducersByName[e]=t,l)};function c(){const[t={},n=[],r]="function"==typeof e.extraReducers?se(e.extraReducers):[e.extraReducers],o={...t,...i.sliceCaseReducersByType};return function(e,t){let n,[r,o,a]=se(t);if("function"==typeof e)n=()=>te(e());else{const t=te(e);n=()=>t}function i(e=n(),t){let i=[r[t.type],...o.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===i.filter(e=>!!e).length&&(i=[a]),i.reduce((e,n)=>{if(n){if(s(e)){const r=n(e,t);return void 0===r?e:r}if(u(e))return q(e,e=>n(e,t));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e},e)}return i.getInitialState=n,i}(e.initialState,e=>{for(let t in o)e.addCase(t,o[t]);for(let t of i.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}a.forEach(r=>{const a=o[r],i={reducerName:r,type:ce(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(a)?function({type:e,reducerName:t,createNotation:n},r,o){let a,i;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(ve(17));a=r.reducer,i=r.prepare}else a=r;o.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,i?Z(e,i):Z(e))}(i,a,l):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(ve(18));const{payloadCreator:a,fulfilled:i,pending:l,rejected:s,settled:u,options:c}=n,d=o(e,a,c);r.exposeAction(t,d),i&&r.addCase(d.fulfilled,i);l&&r.addCase(d.pending,l);s&&r.addCase(d.rejected,s);u&&r.addMatcher(d.settled,u);r.exposeCaseReducer(t,{fulfilled:i||me,pending:l||me,rejected:s||me,settled:u||me})}(i,a,l,t)});const d=e=>e,f=new Map,p=new WeakMap;let m;function h(e,t){return m||(m=c()),m(e,t)}function v(){return m||(m=c()),m.getInitialState()}function g(t,n=!1){function r(e){let o=e[t];return void 0===o&&n&&(o=ne(p,r,v)),o}function o(t=d){const r=ne(f,n,()=>new WeakMap);return ne(r,t,()=>{const r={};for(const[o,a]of Object.entries(e.selectors??{}))r[o]=fe(a,t,()=>ne(p,t,v),n);return r})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const y={name:n,reducer:h,actions:i.actionCreators,caseReducers:i.sliceCaseReducersByName,getInitialState:v,...g(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:h},n),{...y,...g(o,!0)}}};return y}}function fe(e,t,n,r){function o(o,...a){let i=t(o);return void 0===i&&r&&(i=n()),e(i,...a)}return o.unwrapped=e,o}var pe=de();function me(){}var{assign:he}=Object;Symbol.for("rtk-state-proxy-original");function ve(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},5458:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(3145);var o=n(7800);function a(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.A)(e)||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.")}()}},5498:(e,t,n)=>{"use strict";n.d(t,{Im:()=>u,T:()=>o,cc:()=>d,cv:()=>c,eJ:()=>s,fN:()=>i,fo:()=>a,pw:()=>l});var r=n(7604).sprintf,o=function(e){var t="danger";return(e=Number(e))<40?t="danger-hover":e<70?t="warning-hover":e<100?t="success-hover":100===e&&(t="success"),t},a=function(e,t){var n=3;return!1===e&&!1===t?n=0:!0===e&&!1===t?n=1:!1===e&&!0===t&&(n=2),n},i=function(e,t){return t.baseUrl+"&ajax=1&action="+e},l=function(e,t){var n,o=void 0===t?e:null!==(n=t[e])&&void 0!==n?n:e,a=document.createElement("textarea");a.innerHTML=o,t&&t[e];for(var i=arguments.length,l=new Array(i>2?i-2:0),s=2;s<i;s++)l[s-2]=arguments[s];return r.apply(void 0,[a.value].concat(l))},s=function(e,t){return JSON.stringify(e)!==JSON.stringify(t)},u=function(e){for(var t in e)return!1;return!0},c=function(){if(!window.navigator.language)return"en";var e=window.navigator.language.slice(0,2);return["fr","es","it","pl","nl","pt","ru","de"].includes(e)?e:"en"},d=function(){return"psdemo1.dingedi.com"===window.location.hostname}},5501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3662);function o(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&&(0,r.A)(e,t)}},5508:(e,t,n)=>{"use strict";n.d(t,{Mz:()=>c});function r(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}var o=e=>Array.isArray(e)?e:[e];function a(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var i="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function l(){return{s:0,v:void 0,o:null,p:null}}function s(e,t={}){let n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:r}=t;let o,a=0;function s(){let t=n;const{length:s}=arguments;for(let e=0,n=s;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=l(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=l(),e.set(n,t)):t=r}}const u=t;let c;if(1===t.s)c=t.v;else if(c=e.apply(null,arguments),a++,r){const e=o?.deref?.()??o;null!=e&&r(e,c)&&(c=e,0!==a&&a--);o="object"==typeof c&&null!==c||"function"==typeof c?new i(c):c}return u.s=1,u.v=c,c}return s.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},s.resetResultsCount()},s.resultsCount=()=>a,s.resetResultsCount=()=>{a=0},s}function u(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,i=(...e)=>{let t,i=0,l=0,u={},c=e.pop();"object"==typeof c&&(u=c,c=e.pop()),r(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const d={...n,...u},{memoize:f,memoizeOptions:p=[],argsMemoize:m=s,argsMemoizeOptions:h=[],devModeChecks:v={}}=d,g=o(p),y=o(h),b=a(e),w=f(function(){return i++,c.apply(null,arguments)},...g);const E=m(function(){l++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(b,arguments);return t=w.apply(null,e),t},...y);return Object.assign(E,{resultFunc:c,memoizedResultFunc:w,dependencies:b,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>t,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:m})};return Object.assign(i,{withTypes:()=>i}),i}var c=u(s),d=Object.assign((e,t=c)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>d})},5523:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,_s:()=>s,aL:()=>l,bH:()=>a,r1:()=>i});var r=(0,n(5452).Z0)({name:"moduleConfig",initialState:{},reducers:{setModuleConfig:function(e,t){return t.payload},setDefaultLangId:function(e,t){e.default_lang=Number(t.payload)},setExcludeEnabled:function(e,t){e.translationsProviders.exclude=t.payload},setExcludedList:function(e,t){e.translationsProviders.excluded=t.payload},setPerformanceSpeed:function(e,t){e.translationsProviders.per_request=t.payload},updateProvidersConfig:function(e,t){e.translationsProviders.default=t.payload.default,e.translationsProviders.providers=t.payload.providers},updateTranslationsConfig:function(e,t){e.translationsProviders=t.payload}}}),o=r.actions,a=o.setModuleConfig,i=o.setDefaultLangId,l=(o.setExcludeEnabled,o.setExcludedList,o.setPerformanceSpeed),s=o.updateProvidersConfig;o.updateTranslationsConfig;const u=r.reducer},5546:e=>{function t(n,r,o,a){var i=Object.defineProperty;try{i({},"",{})}catch(n){i=0}e.exports=t=function(e,n,r,o){function a(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?i?i(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r:(a("next",0),a("throw",1),a("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,o,a)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},5556:(e,t,n)=>{e.exports=n(2694)()},5615:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=n(6540),s=n(6519),u=n(9703),c=["bsPrefix","variant","size","active","className","block","type","as"],d=l.forwardRef(function(e,t){var n=e.bsPrefix,a=e.variant,d=e.size,f=e.active,p=e.className,m=e.block,h=e.type,v=e.as,g=(0,o.A)(e,c),y=(0,s.oU)(n,"btn"),b=i()(p,y,f&&"active",a&&y+"-"+a,m&&y+"-block",d&&y+"-"+d);if(g.href)return l.createElement(u.A,(0,r.A)({},g,{as:v,ref:t,className:i()(b,g.disabled&&"disabled")}));t&&(g.ref=t),h?g.type=h:v||(g.type="button");var w=v||"button";return l.createElement(w,(0,r.A)({},g,{className:b}))});d.displayName="Button",d.defaultProps={variant:"primary",active:!1,disabled:!1};const f=d},5677:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=n(6540),s=n(1558),u=n(1942),c=n(6519),d=n(7285),f=n(8515),p=n(6754),m=n(6261),h=n(9703),v=["bsPrefix","show","closeLabel","className","children","variant","onClose","dismissible","transition"],g=(0,p.A)("h4");g.displayName="DivStyledAsH4";var y=(0,m.A)("alert-heading",{Component:g}),b=(0,m.A)("alert-link",{Component:h.A}),w={show:!0,transition:d.A,closeLabel:"Close alert"},E=l.forwardRef(function(e,t){var n=(0,s.Zw)(e,{show:"onClose"}),a=n.bsPrefix,p=n.show,m=n.closeLabel,h=n.className,g=n.children,y=n.variant,b=n.onClose,w=n.dismissible,E=n.transition,x=(0,o.A)(n,v),k=(0,c.oU)(a,"alert"),S=(0,u.A)(function(e){b&&b(!1,e)}),A=!0===E?d.A:E,C=l.createElement("div",(0,r.A)({role:"alert"},A?void 0:x,{ref:t,className:i()(h,k,y&&k+"-"+y,w&&k+"-dismissible")}),w&&l.createElement(f.A,{onClick:S,label:m}),g);return A?l.createElement(A,(0,r.A)({unmountOnExit:!0},x,{ref:void 0,in:p}),C):p?C:null});E.displayName="Alert",E.defaultProps=w,E.Link=b,E.Heading=y;const x=E},5724:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,u:()=>o});var r=n(6540),o=function(e,t){return void 0===t&&(t=null),null!=e?String(e):t||null};const a=r.createContext(null)},5797:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2660),o=n(1284);function a(e,t,n){void 0===n&&(n=5);var r=!1,a=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(t,n,r),e.dispatchEvent(o)}}(e,"transitionend",!0)},t+n),i=(0,o.A)(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(a),i()}}function i(e,t,n,i){var l,s,u;null==n&&(l=e,s=(0,r.A)(l,"transitionDuration")||"",u=-1===s.indexOf("ms")?1e3:1,n=parseFloat(s)*u||0);var c=a(e,n,i),d=(0,o.A)(e,"transitionend",t);return function(){c(),d()}}},5855:(e,t,n)=>{"use strict";n.d(t,{A:()=>ue});var r,o=n(8168),a=n(8587),i=n(6942),l=n.n(i),s=n(6540);var u=n(5003),c=n(8394),d=n(5556),f=n.n(d),p=n(1558),m=n(4103),h=n(8342),v=n(1942);function g(e,t,n=!1){return function(e,t,n,r=!1){const o=(0,v.A)(n);(0,s.useEffect)(()=>{const n="function"==typeof e?e():e;return n.addEventListener(t,o,r),()=>n.removeEventListener(t,o,r)},[e])}((0,s.useCallback)(()=>document,[]),e,t,n)}const y=s.createContext(null);var b=n(1244),w=n(4483),E=n(8040),x=n(1458),k=function(){};function S(e){void 0===e&&(e={});var t=(0,s.useContext)(y),n=(0,b.A)(),r=n[0],a=n[1],i=(0,s.useRef)(!1),l=e,u=l.flip,c=l.offset,d=l.rootCloseEvent,f=l.fixed,p=void 0!==f&&f,m=l.popperConfig,h=void 0===m?{}:m,v=l.usePopper,g=void 0===v?!!t:v,S=null==(null==t?void 0:t.show)?!!e.show:t.show,A=null==(null==t?void 0:t.alignEnd)?e.alignEnd:t.alignEnd;S&&!i.current&&(i.current=!0);var C=t||{},_=C.drop,O=C.setMenu,N=C.menuElement,P=C.toggleElement,T=A?"bottom-end":"bottom-start";"up"===_?T=A?"top-end":"top-start":"right"===_?T=A?"right-end":"right-start":"left"===_&&(T=A?"left-end":"left-start");var R=(0,w.A)(P,N,(0,x.Ay)({placement:T,enabled:!(!g||!S),enableEvents:S,offset:c,flip:u,fixed:p,arrowElement:r,popperConfig:h})),I=(0,o.A)({ref:O||k,"aria-labelledby":null==P?void 0:P.id},R.attributes.popper,{style:R.styles.popper}),M={show:S,alignEnd:A,hasShown:i.current,toggle:null==t?void 0:t.toggle,popper:g?R:null,arrowProps:g?(0,o.A)({ref:a},R.attributes.arrow,{style:R.styles.arrow}):{}};return(0,E.A)(N,function(e){null==t||t.toggle(!1,e)},{clickTrigger:d,disabled:!S}),[I,M]}var A={children:f().func.isRequired,show:f().bool,alignEnd:f().bool,flip:f().bool,usePopper:f().oneOf([!0,!1]),popperConfig:f().object,rootCloseEvent:f().string};function C(e){var t=e.children,n=S((0,a.A)(e,["children"])),r=n[0],o=n[1];return s.createElement(s.Fragment,null,o.hasShown?t(r,o):null)}C.displayName="ReactOverlaysDropdownMenu",C.propTypes=A,C.defaultProps={usePopper:!0};const _=C;var O=function(){};function N(){var e=(0,s.useContext)(y)||{},t=e.show,n=void 0!==t&&t,r=e.toggle,o=void 0===r?O:r,a=e.setToggle,i=(0,s.useCallback)(function(e){o(!n,e)},[n,o]);return[{ref:a||O,onClick:i,"aria-haspopup":!0,"aria-expanded":!!n},{show:n,toggle:o}]}var P={children:f().func.isRequired};function T(e){var t=e.children,n=N(),r=n[0],o=n[1];return s.createElement(s.Fragment,null,t(r,o))}T.displayName="ReactOverlaysDropdownToggle",T.propTypes=P;const R=T;var I={children:f().node,drop:f().oneOf(["up","left","right","down"]),focusFirstItemOnShow:f().oneOf([!1,!0,"keyboard"]),itemSelector:f().string,alignEnd:f().bool,show:f().bool,defaultShow:f().bool,onToggle:f().func};function M(){var e=(0,h.A)(),t=(0,s.useRef)(null),n=(0,s.useCallback)(function(n){t.current=n,e()},[e]);return[t,n]}function F(e){var t=e.drop,n=e.alignEnd,o=e.defaultShow,a=e.show,i=e.onToggle,l=e.itemSelector,d=void 0===l?"* > *":l,f=e.focusFirstItemOnShow,h=e.children,b=(0,p.iC)(a,o,i),w=b[0],E=b[1],x=M(),k=x[0],S=x[1],A=k.current,C=M(),_=C[0],O=C[1],N=_.current,P=(0,m.A)(w),T=(0,s.useRef)(null),R=(0,s.useRef)(!1),I=(0,s.useCallback)(function(e,t){E(e,t)},[E]),F=(0,s.useMemo)(function(){return{toggle:I,drop:t,show:w,alignEnd:n,menuElement:A,toggleElement:N,setMenu:S,setToggle:O}},[I,t,w,n,A,N,S,O]);A&&P&&!w&&(R.current=A.contains(document.activeElement));var L=(0,v.A)(function(){N&&N.focus&&N.focus()}),D=(0,v.A)(function(){var e=T.current,t=f;if(null==t&&(t=!(!k.current||!function(e,t){if(!r){var n=document.body,o=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;r=function(e,t){return o.call(e,t)}}return r(e,t)}(k.current,"[role=menu]"))&&"keyboard"),!1!==t&&("keyboard"!==t||/^key.+$/.test(e))){var n=(0,u.A)(k.current,d)[0];n&&n.focus&&n.focus()}});(0,s.useEffect)(function(){w?D():R.current&&(R.current=!1,L())},[w,R,L,D]),(0,s.useEffect)(function(){T.current=null});var j=function(e,t){if(!k.current)return null;var n=(0,u.A)(k.current,d),r=n.indexOf(e)+t;return n[r=Math.max(0,Math.min(r,n.length))]};return g("keydown",function(e){var t,n,r=e.key,o=e.target,a=null==(t=k.current)?void 0:t.contains(o),i=null==(n=_.current)?void 0:n.contains(o);if((!/input|textarea/i.test(o.tagName)||!(" "===r||"Escape"!==r&&a))&&(a||i)&&(k.current||"Tab"!==r))switch(T.current=e.type,r){case"ArrowUp":var l=j(o,-1);return l&&l.focus&&l.focus(),void e.preventDefault();case"ArrowDown":if(e.preventDefault(),w){var s=j(o,1);s&&s.focus&&s.focus()}else E(!0,e);return;case"Tab":(0,c.Ay)(document,"keyup",function(t){var n;("Tab"!==t.key||t.target)&&null!=(n=k.current)&&n.contains(t.target)||E(!1,e)},{once:!0});break;case"Escape":e.preventDefault(),e.stopPropagation(),E(!1,e)}}),s.createElement(y.Provider,{value:F},h)}F.displayName="ReactOverlaysDropdown",F.propTypes=I,F.Menu=_,F.Toggle=R;const L=F;var D=n(5724),j=n(6519),z=n(3559),V=n(9703),U=["bsPrefix","className","children","eventKey","disabled","href","onClick","onSelect","active","as"],B={as:V.A,disabled:!1},H=s.forwardRef(function(e,t){var n=e.bsPrefix,r=e.className,i=e.children,u=e.eventKey,c=e.disabled,d=e.href,f=e.onClick,p=e.onSelect,m=e.active,h=e.as,g=(0,a.A)(e,U),y=(0,j.oU)(n,"dropdown-item"),b=(0,s.useContext)(D.A),w=((0,s.useContext)(z.A)||{}).activeKey,E=(0,D.u)(u,d),x=null==m&&null!=E?(0,D.u)(w)===E:m,k=(0,v.A)(function(e){c||(f&&f(e),b&&b(E,e),p&&p(E,e))});return s.createElement(h,(0,o.A)({},g,{ref:t,href:d,disabled:c,className:l()(r,y,x&&"active",c&&"disabled"),onClick:k}),i)});H.displayName="DropdownItem",H.defaultProps=B;const $=H;var W=n(3804),q=(n(9771),n(4778));n(311);function K(e,t){return e}var G=n(6500),Q=["bsPrefix","className","align","alignRight","rootCloseEvent","flip","show","renderOnMount","as","popperConfig"],Y=f().oneOf(["left","right"]),X=(f().oneOfType([Y,f().shape({sm:Y}),f().shape({md:Y}),f().shape({lg:Y}),f().shape({xl:Y})]),s.forwardRef(function(e,t){var n=e.bsPrefix,r=e.className,i=e.align,u=e.alignRight,c=e.rootCloseEvent,d=e.flip,f=e.show,p=e.renderOnMount,m=e.as,h=void 0===m?"div":m,v=e.popperConfig,g=(0,a.A)(e,Q),y=(0,s.useContext)(q.A),b=(0,j.oU)(n,"dropdown-menu"),w=(0,G.A)(),E=w[0],x=w[1],k=[];if(i)if("object"==typeof i){var A=Object.keys(i);if(A.length){var C=A[0],_=i[C];u="left"===_,k.push(b+"-"+C+"-"+_)}}else"right"===i&&(u=!0);var O=S({flip:d,rootCloseEvent:c,show:f,alignEnd:u,usePopper:!y&&0===k.length,popperConfig:(0,o.A)({},v,{modifiers:x.concat((null==v?void 0:v.modifiers)||[])})}),N=O[0],P=O[1],T=P.hasShown,R=P.popper,I=P.show,M=P.alignEnd,F=P.toggle;if(N.ref=(0,W.A)(E,(0,W.A)(K(t),N.ref)),!T&&!p)return null;"string"!=typeof h&&(N.show=I,N.close=function(){return null==F?void 0:F(!1)},N.alignRight=M);var L=g.style;return null!=R&&R.placement&&(L=(0,o.A)({},g.style,N.style),g["x-placement"]=R.placement),s.createElement(h,(0,o.A)({},g,N,{style:L,className:l().apply(void 0,[r,b,I&&"show",M&&b+"-right"].concat(k))}))}));X.displayName="DropdownMenu",X.defaultProps={align:"left",alignRight:!1,flip:!0};const J=X;n(8239);var Z=n(5615),ee=["bsPrefix","split","className","childBsPrefix","as"],te=s.forwardRef(function(e,t){var n=e.bsPrefix,r=e.split,i=e.className,u=e.childBsPrefix,c=e.as,d=void 0===c?Z.A:c,f=(0,a.A)(e,ee),p=(0,j.oU)(n,"dropdown-toggle");void 0!==u&&(f.bsPrefix=u);var m=N()[0];return m.ref=(0,W.A)(m.ref,K(t)),s.createElement(d,(0,o.A)({className:l()(i,p,r&&p+"-split")},m,f))});te.displayName="DropdownToggle";const ne=te;var re=n(6261),oe=["bsPrefix","drop","show","className","alignRight","onSelect","onToggle","focusFirstItemOnShow","as","navbar"],ae=(0,re.A)("dropdown-header",{defaultProps:{role:"heading"}}),ie=(0,re.A)("dropdown-divider",{defaultProps:{role:"separator"}}),le=(0,re.A)("dropdown-item-text",{Component:"span"}),se=s.forwardRef(function(e,t){var n=(0,p.Zw)(e,{show:"onToggle"}),r=n.bsPrefix,i=n.drop,u=n.show,c=n.className,d=n.alignRight,f=n.onSelect,m=n.onToggle,h=n.focusFirstItemOnShow,g=n.as,y=void 0===g?"div":g,b=(n.navbar,(0,a.A)(n,oe)),w=(0,s.useContext)(D.A),E=(0,j.oU)(r,"dropdown"),x=(0,v.A)(function(e,t,n){void 0===n&&(n=t.type),t.currentTarget!==document||"keydown"===n&&"Escape"!==t.key||(n="rootClose"),m&&m(e,t,{source:n})}),k=(0,v.A)(function(e,t){w&&w(e,t),f&&f(e,t),x(!1,t,"select")});return s.createElement(D.A.Provider,{value:k},s.createElement(L,{drop:i,show:u,alignEnd:d,onToggle:x,focusFirstItemOnShow:h,itemSelector:"."+E+"-item:not(.disabled):not(:disabled)"},s.createElement(y,(0,o.A)({},b,{ref:t,className:l()(c,u&&"show",(!i||"down"===i)&&E,"up"===i&&"dropup","right"===i&&"dropright","left"===i&&"dropleft")}))))});se.displayName="Dropdown",se.defaultProps={navbar:!1},se.Divider=ie,se.Header=ae,se.Item=$,se.ItemText=le,se.Menu=J,se.Toggle=ne;const ue=se},5869:(e,t,n)=>{var r=n(887);e.exports=function(e,t,n,o,a){var i=r(e,t,n,o,a);return i.next().then(function(e){return e.done?e.value:i.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},6052:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=n(6540),s=n(6519),u=["bsPrefix","variant","pill","className","as"],c=l.forwardRef(function(e,t){var n=e.bsPrefix,a=e.variant,c=e.pill,d=e.className,f=e.as,p=void 0===f?"span":f,m=(0,o.A)(e,u),h=(0,s.oU)(n,"badge");return l.createElement(p,(0,r.A)({ref:t},m,{className:i()(d,h,c&&h+"-pill",a&&h+"-"+a)}))});c.displayName="Badge",c.defaultProps={pill:!1};const d=c},6261:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=/-(.)/g;var s=n(6540),u=n(6519),c=["className","bsPrefix","as"],d=function(e){return e[0].toUpperCase()+(t=e,t.replace(l,function(e,t){return t.toUpperCase()})).slice(1);var t};function f(e,t){var n=void 0===t?{}:t,a=n.displayName,l=void 0===a?d(e):a,f=n.Component,p=n.defaultProps,m=s.forwardRef(function(t,n){var a=t.className,l=t.bsPrefix,d=t.as,p=void 0===d?f||"div":d,m=(0,o.A)(t,c),h=(0,u.oU)(l,e);return s.createElement(p,(0,r.A)({ref:n,className:i()(a,h)},m))});return m.defaultProps=p,m.displayName=l,m}},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(i[s]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&i[c[0]]||(void 0!==a&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=a),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},6406:(e,t,n)=>{"use strict";function r(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}n.d(t,{A:()=>r})},6467:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=n(4467),o=n(3029),a=n(2901),i=n(388),l=n(3954),s=n(5501),u=n(6540),c=n(5615),d=n(7226),f=n(1468),p=n(7112),m=n(5289),h=n(5498);function v(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}var b={form:{to:null,latinOutput:!1,overwrite:!1}},w=function(e){function t(e){var n,r,a,s;return(0,o.A)(this,t),r=this,a=t,s=[e],a=(0,l.A)(a),(n=(0,i.A)(r,y()?Reflect.construct(a,s||[],(0,l.A)(r).constructor):a.apply(r,s))).state={form:{to:null,latinOutput:!1,overwrite:!1}},n.handleInputChange=n.handleInputChange.bind(n),n}return(0,s.A)(t,e),(0,a.A)(t,[{key:"handleInputChange",value:function(e,t){this.setState(function(n){return{form:g(g({},n.form),{},(0,r.A)({},e,t))}})}},{key:"onModalHide",value:function(e){this.setState(b),this.props.handleClose(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.translations,r=t.form;return u.createElement(d.A,{backdrop:"static",centered:!0,backdropClassName:"dg-modal",dialogClassName:"dg-modal",show:this.props.show,onHide:this.props.handleModalHide},u.createElement(d.A.Header,{closeButton:!0},u.createElement(d.A.Title,null,u.createElement("h2",null,(0,h.pw)("Advanced parameters",n)))),u.createElement(d.A.Body,null,u.createElement(p.A,{disabled:r.loading,checked:r.overwrite,onChange:function(t){return e.props.updateForm({overwrite:t.target.checked})},label:(0,h.pw)("Overwrite all translations",n)}),u.createElement("h4",{className:"pt-3 pb-1"},(0,h.pw)("Latin option (for supported languages)",n)),this.props.showLatinInput&&u.createElement("div",{className:"form-group"},u.createElement(p.A,{disabled:r.loading,checked:r.latinInput,onChange:function(t){return e.props.updateForm({latinInput:t.target.checked})},label:(0,h.pw)("My source text is in Latin characters")})),u.createElement("div",{className:"form-group"},u.createElement(p.A,{disabled:r.loading,checked:r.latinOutput,onChange:function(t){return e.props.updateForm({latinOutput:t.target.checked})},label:(0,h.pw)("I want to translate into Latin characters",n)}))),u.createElement(d.A.Footer,null,u.createElement(c.A,{onClick:this.props.handleModalHide,variant:"secondary"},"Save")))}}])}(u.Component);const E=(0,f.Ng)(function(e){return{translations:(0,m.fF)(e)}})(w)},6500:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6540),o=n(4243),a=n(6519);function i(e){var t=window.getComputedStyle(e);return{top:parseFloat(t.marginTop)||0,right:parseFloat(t.marginRight)||0,bottom:parseFloat(t.marginBottom)||0,left:parseFloat(t.marginLeft)||0}}function l(){var e=(0,r.useRef)(null),t=(0,r.useRef)(null),n=(0,r.useRef)(null),l=(0,a.oU)(void 0,"popover"),s=(0,a.oU)(void 0,"dropdown-menu");return[(0,r.useCallback)(function(n){n&&((0,o.A)(n,l)||(0,o.A)(n,s))&&(t.current=i(n),n.style.margin="0",e.current=n)},[l,s]),[(0,r.useMemo)(function(){return{name:"offset",options:{offset:function(e){var n=e.placement;if(!t.current)return[0,0];var r=t.current,o=r.top,a=r.left,i=r.bottom,l=r.right;switch(n.split("-")[0]){case"top":return[0,i];case"left":return[0,l];case"bottom":return[0,o];case"right":return[0,a];default:return[0,0]}}}}},[t]),(0,r.useMemo)(function(){return{name:"arrow",options:{padding:function(){if(!n.current)return 0;var e=n.current,t=e.top,r=e.right,o=t||r;return{top:o,left:o,right:o,bottom:o}}}}},[n]),(0,r.useMemo)(function(){return{name:"popoverArrowMargins",enabled:!0,phase:"main",fn:function(){},requiresIfExists:["arrow"],effect:function(t){var r=t.state;if(e.current&&r.elements.arrow&&(0,o.A)(e.current,l)){if(r.modifiersData["arrow#persistent"]){var a=i(r.elements.arrow),s=a.top,u=a.right,c=s||u;r.modifiersData["arrow#persistent"].padding={top:c,left:c,right:c,bottom:c}}else n.current=i(r.elements.arrow);return r.elements.arrow.style.margin="0",function(){r.elements.arrow&&(r.elements.arrow.style.margin="")}}}}},[l])]]}},6519:(e,t,n)=>{"use strict";n.d(t,{oU:()=>a});var r=n(6540),o=r.createContext({});o.Consumer,o.Provider;function a(e,t){var n=(0,r.useContext)(o);return e||n[t]||t}},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},6545:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(296),o=n(6540),a=n(5677),i=n(285),l=n(5556),s=n.n(l);function u(e){var t=(0,o.useState)(!(0,i.VE)(e.alertKey)),n=(0,r.A)(t,2),l=n[0],s=n[1];return o.createElement(a.A,{show:l,variant:null==e?void 0:e.variant,className:null==e?void 0:e.className,onClose:function(){(0,i.Hd)(e.alertKey),s(!1)},dismissible:!0},e.children)}u.propTypes={alertKey:s().string.isRequired,className:s().string};const c=(0,o.memo)(u)},6653:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(1601),o=n.n(r),a=n(6314),i=n.n(a)()(o());i.push([e.id,".yarl__fullsize{height:100%;width:100%}.yarl__relative{position:relative}.yarl__portal{bottom:0;left:0;opacity:0;overflow:hidden;position:fixed;right:0;top:0;transition:opacity var(--yarl__fade_animation_duration,.25s) var(--yarl__fade_animation_timing_function,ease);z-index:var(--yarl__portal_zindex,9999)}.yarl__portal_open{opacity:1}.yarl__container{background-color:var(--yarl__container_background_color,var(--yarl__color_backdrop,#000));bottom:0;left:0;outline:none;overflow:hidden;overscroll-behavior:var(--yarl__controller_overscroll_behavior,contain);position:absolute;right:0;top:0;touch-action:var(--yarl__controller_touch_action,none);-webkit-user-select:none;-moz-user-select:none;user-select:none}.yarl__carousel{align-content:center;align-items:stretch;display:flex;flex:0 0 auto;height:100%;justify-content:center;opacity:var(--yarl__pull_opacity,1);transform:translate(var(--yarl__swipe_offset,0),var(--yarl__pull_offset,0));width:calc(100% + (var(--yarl__carousel_slides_count) - 1)*(100% + var(--yarl__carousel_spacing_px, 0)*1px + var(--yarl__carousel_spacing_percent, 0)*1%))}.yarl__carousel_with_slides{-moz-column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%);column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%)}.yarl__flex_center{align-content:center;align-items:center;display:flex;justify-content:center}.yarl__slide{flex:1;overflow:hidden;padding:calc(var(--yarl__carousel_padding_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_padding_percent, 0)*1%);position:relative}[dir=rtl] .yarl__slide{--yarl__direction:-1}.yarl__slide_image{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;touch-action:var(--yarl__controller_touch_action,none);-moz-user-select:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.yarl__slide_image_cover{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.yarl__slide_image_loading{opacity:0}@media screen and (min-width:800px){.yarl__slide_wrapper:not(.yarl__slide_wrapper_interactive) .yarl__slide_image{-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);-webkit-transform-style:preserve-3d}}.yarl__slide_placeholder{left:50%;line-height:0;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%)}.yarl__slide_loading{animation:yarl__delayed_fadein 1s linear;color:var(--yarl__slide_icon_loading_color,var(--yarl__color_button,hsla(0,0%,100%,.8)))}.yarl__slide_loading line{animation:yarl__stroke_opacity 1s linear infinite}.yarl__slide_loading line:first-of-type{animation-delay:-1.875s}.yarl__slide_loading line:nth-of-type(2){animation-delay:-1.75s}.yarl__slide_loading line:nth-of-type(3){animation-delay:-1.625s}.yarl__slide_loading line:nth-of-type(4){animation-delay:-1.5s}.yarl__slide_loading line:nth-of-type(5){animation-delay:-1.375s}.yarl__slide_loading line:nth-of-type(6){animation-delay:-1.25s}.yarl__slide_loading line:nth-of-type(7){animation-delay:-1.125s}.yarl__slide_loading line:nth-of-type(8){animation-delay:-1s}.yarl__slide_error{color:var(--yarl__slide_icon_error_color,red);height:var(--yarl__slide_icon_error_size,48px);width:var(--yarl__slide_icon_error_size,48px)}@media (prefers-reduced-motion){.yarl__portal,.yarl__slide{transition:unset}.yarl__slide_loading,.yarl__slide_loading line{animation:unset}}.yarl__toolbar{bottom:auto;display:flex;justify-content:flex-end;left:auto;padding:var(--yarl__toolbar_padding,8px);position:absolute;right:0;top:0}[dir=rtl] .yarl__toolbar{bottom:auto;left:0;right:auto;top:0}.yarl__icon{height:var(--yarl__icon_size,32px);width:var(--yarl__icon_size,32px)}.yarl__button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--yarl__button_background_color,transparent);border:var(--yarl__button_border,0);color:var(--yarl__color_button,hsla(0,0%,100%,.8));cursor:pointer;filter:var(--yarl__button_filter,drop-shadow(2px 2px 2px rgba(0,0,0,.8)));line-height:0;margin:var(--yarl__button_margin,0);outline:none;padding:var(--yarl__button_padding,8px);-webkit-tap-highlight-color:transparent}.yarl__button:focus{color:var(--yarl__color_button_active,#fff)}.yarl__button:focus:not(:focus-visible){color:var(--yarl__color_button,hsla(0,0%,100%,.8))}.yarl__button:focus-visible{color:var(--yarl__color_button_active,#fff)}@media (hover:hover){.yarl__button:focus-visible:hover,.yarl__button:focus:hover,.yarl__button:hover{color:var(--yarl__color_button_active,#fff)}}.yarl__button:disabled{color:var(--yarl__color_button_disabled,hsla(0,0%,100%,.4));cursor:default}.yarl__navigation_next,.yarl__navigation_prev{padding:var(--yarl__navigation_button_padding,24px 16px);position:absolute;top:50%;transform:translateY(-50%)}.yarl__navigation_prev{left:0}[dir=rtl] .yarl__navigation_prev{left:unset;right:0;transform:translateY(-50%) rotate(180deg)}.yarl__navigation_next{right:0}[dir=rtl] .yarl__navigation_next{left:0;right:unset;transform:translateY(-50%) rotate(180deg)}.yarl__no_scroll{height:100%;overflow:hidden;overscroll-behavior:none}@keyframes yarl__delayed_fadein{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes yarl__stroke_opacity{0%{stroke-opacity:1}to{stroke-opacity:.125}}",""]);const l=i},6754:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8168),o=n(6540),a=n(6942),i=n.n(a);const l=function(e){return o.forwardRef(function(t,n){return o.createElement("div",(0,r.A)({},t,{ref:n,className:i()(t.className,e)}))})}},6797:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(6545),o=n(5498),a=n(3440),i=n(3399),l=n(6540),s=n(1468),u=n(5289),c=n(5556),d=n.n(c),f=n(9473);function p(e){var t,n,r,o=(0,s.d4)(function(t){return(0,u.zi)(t,{id_lang:e.currentTranslation.group.idLangTo})});return l.createElement(l.Fragment,null,null!==(t=null===(n=e.currentTranslation.group)||void 0===n?void 0:n.item.label)&&void 0!==t?t:e.currentTranslation.group.getTableName()," - ",null!==(r=o.label)&&void 0!==r?r:""," (",e.currentTranslation.current,"/",e.currentTranslation.total,")")}p.propTypes={currentTranslation:d().shape({total:d().number,current:d().number,group:d().instanceOf(f.S)}).isRequired};const m=(0,l.memo)(p);function h(e){var t=(0,s.d4)(u.fF),n=(0,s.d4)(u.hZ),c=(0,s.d4)(u.VF);return l.createElement("div",{className:"mt-3"},l.createElement("div",{className:"h4 mt-5 mb-2 d-block"},"dingedi_v1"===n.key&&c&&l.createElement(r.A,{alertKey:"speed",variant:"info"},l.createElement("p",{style:{padding:0}},(0,o.pw)("Leave a review on our module and instantly get better translation speed",t),l.createElement("a",{className:"ml-1",href:"https://addons.prestashop.com/ratings.php",target:"_blank"},(0,o.pw)("Leave a review",t)))),e.currentTranslation&&l.createElement(m,{currentTranslation:e.currentTranslation}),e.remainingTime&&l.createElement("span",{className:"float-right"},l.createElement(a.A,{remainingTime:e.remainingTime}))),l.createElement("div",{className:"d-block",style:{overflow:"hidden",width:"100%"}},l.createElement(i.A,{className:"dg-progress-container",label:l.createElement(l.Fragment,null,e.translationPercent,"%"),animated:!0,now:0===Number(e.translationPercent)?0:e.translationPercent})))}h.propTypes={translationPercent:d().oneOfType([d().string,d().number]).isRequired,currentTranslation:d().oneOfType([d().bool,d().object]),remainingTime:d().oneOfType([d().bool,d().string]).isRequired};const v=(0,l.memo)(h)},6816:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(961);function o(e){return e&&"setState"in e?r.findDOMNode(e):null!=e?e:null}},6867:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=(n(2816),n(6540)),s=n(1558),u=n(6519),c=n(4778),d=n(4390),f=n(5003),p=n(8342),m=n(3804),h=n(3559),v=n(5724),g=n(4629),y=["as","onSelect","activeKey","role","onKeyDown"],b=function(){};const w=l.forwardRef(function(e,t){var n,a,i=e.as,s=void 0===i?"ul":i,u=e.onSelect,c=e.activeKey,d=e.role,w=e.onKeyDown,E=(0,o.A)(e,y),x=(0,p.A)(),k=(0,l.useRef)(!1),S=(0,l.useContext)(v.A),A=(0,l.useContext)(g.A);A&&(d=d||"tablist",c=A.activeKey,n=A.getControlledId,a=A.getControllerId);var C=(0,l.useRef)(null),_=function(e){var t=C.current;if(!t)return null;var n=(0,f.A)(t,"[data-rb-event-key]:not(.disabled)"),r=t.querySelector(".active");if(!r)return null;var o=n.indexOf(r);if(-1===o)return null;var a=o+e;return a>=n.length&&(a=0),a<0&&(a=n.length-1),n[a]},O=function(e,t){null!=e&&(u&&u(e,t),S&&S(e,t))};(0,l.useEffect)(function(){if(C.current&&k.current){var e=C.current.querySelector("[data-rb-event-key].active");e&&e.focus()}k.current=!1});var N=(0,m.A)(t,C);return l.createElement(v.A.Provider,{value:O},l.createElement(h.A.Provider,{value:{role:d,activeKey:(0,v.u)(c),getControlledId:n||b,getControllerId:a||b}},l.createElement(s,(0,r.A)({},E,{onKeyDown:function(e){var t;switch(w&&w(e),e.key){case"ArrowLeft":case"ArrowUp":t=_(-1);break;case"ArrowRight":case"ArrowDown":t=_(1);break;default:return}t&&(e.preventDefault(),O(t.dataset.rbEventKey,e),k.current=!0,x())},ref:N,role:d}))))});var E=n(4501),x=n(494),k=["as","bsPrefix","variant","fill","justify","navbar","navbarScroll","className","children","activeKey"],S=l.forwardRef(function(e,t){var n,a,f,p=(0,s.Zw)(e,{activeKey:"onSelect"}),m=p.as,h=void 0===m?"div":m,v=p.bsPrefix,g=p.variant,y=p.fill,b=p.justify,E=p.navbar,x=p.navbarScroll,S=p.className,A=p.children,C=p.activeKey,_=(0,o.A)(p,k),O=(0,u.oU)(v,"nav"),N=!1,P=(0,l.useContext)(c.A),T=(0,l.useContext)(d.A);return P?(a=P.bsPrefix,N=null==E||E):T&&(f=T.cardHeaderBsPrefix),l.createElement(w,(0,r.A)({as:h,ref:t,activeKey:C,className:i()(S,(n={},n[O]=!N,n[a+"-nav"]=N,n[a+"-nav-scroll"]=N&&x,n[f+"-"+g]=!!f,n[O+"-"+g]=!!g,n[O+"-fill"]=y,n[O+"-justified"]=b,n))},_),A)});S.displayName="Nav",S.defaultProps={justify:!1,fill:!1},S.Item=E.A,S.Link=x.A;const A=S},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6942:(e,t)=>{var n;
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},6993:(e,t,n)=>{var r=n(5546);function o(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var t,n,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.toStringTag||"@@toStringTag";function s(e,o,a,i){var l=o&&o.prototype instanceof c?o:c,s=Object.create(l.prototype);return r(s,"_invoke",function(e,r,o){var a,i,l,s=0,c=o||[],d=!1,f={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return a=e,i=0,l=t,f.n=n,u}};function p(e,r){for(i=e,l=r,n=0;!d&&s&&!o&&n<c.length;n++){var o,a=c[n],p=f.p,m=a[2];e>3?(o=m===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=t):a[0]<=p&&((o=e<2&&p<a[1])?(i=0,f.v=r,f.n=a[1]):p<m&&(o=e<3||a[0]>r||r>m)&&(a[4]=e,a[5]=r,f.n=m,i=0))}if(o||e>1)return u;throw d=!0,r}return function(o,c,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,m),i=c,l=m;(n=i<2?t:l)||!d;){a||(i?i<3?(i>1&&(f.n=-1),p(i,l)):f.n=l:f.v=l);try{if(s=2,a){if(i||(o="next"),n=a[o]){if(!(n=n.call(a,l)))throw TypeError("iterator result is not an object");if(!n.done)return n;l=n.value,i<2&&(i=0)}else 1===i&&(n=a.return)&&n.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=t}else if((n=(d=f.n<0)?l:e.call(r,f))!==u)break}catch(e){a=t,i=1,l=e}finally{s=1}}return{value:n,done:d}}}(e,a,i),!0),s}var u={};function c(){}function d(){}function f(){}n=Object.getPrototypeOf;var p=[][i]?n(n([][i]())):(r(n={},i,function(){return this}),n),m=f.prototype=c.prototype=Object.create(p);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,r(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e}return d.prototype=f,r(m,"constructor",f),r(f,"constructor",d),d.displayName="GeneratorFunction",r(f,l,"GeneratorFunction"),r(m),r(m,l,"Generator"),r(m,i,function(){return this}),r(m,"toString",function(){return"[object Generator]"}),(e.exports=o=function(){return{w:s,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},7112:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(8168),o=n(6540),a=n(5556),i=n.n(a);function l(e){var t,n,a,i,l,s;name=Math.random().toString(36).substring(2);var u=void 0!==e.checked?{checked:e.checked}:{};return o.createElement("div",{className:null!==(t="md-checkbox "+e.className)&&void 0!==t?t:"",style:null!==(n=e.style)&&void 0!==n?n:{}},o.createElement("label",null,o.createElement("input",(0,r.A)({type:null!==(a=e.type)&&void 0!==a?a:"checkbox",name:null!==(i=e.name)&&void 0!==i?i:name},u,{onChange:e.onChange,disabled:null!==(l=e.disabled)&&void 0!==l?l:null})),o.createElement("i",{className:"md-checkbox-control"}),null!==(s=e.label)&&void 0!==s?s:""))}l.propTypes={className:i().string,style:i().object,type:i().string,name:i().string,label:i().oneOfType([i().string,i().element]),disabled:i().bool,checked:i().bool,onChange:i().func.isRequired};const s=(0,o.memo)(l)},7226:(e,t,n)=>{"use strict";n.d(t,{A:()=>ve});var r,o=n(8587),a=n(8168),i=n(6942),l=n.n(i),s=n(8394),u=n(7828),c=n(1625),d=n(5019);function f(e){if((!r&&0!==r||e)&&u.A){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),r=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return r}var p=n(1244),m=n(1942),h=n(1577),v=n(5797),g=n(6540);function y(e){void 0===e&&(e=(0,c.A)());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}var b=n(6406),w=n(1284),E=n(5556),x=n.n(E),k=n(961),S=n(8880),A=n(4103),C=n(4243);function _(e,t){e.classList?e.classList.add(t):(0,C.A)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function O(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function N(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=O(e.className,t):e.setAttribute("class",O(e.className&&e.className.baseVal||"",t))}var P=n(2660);function T(e){return"window"in e&&e.window===e?e:"nodeType"in(t=e)&&t.nodeType===document.DOCUMENT_NODE&&e.defaultView||!1;var t}function R(e){var t;return T(e)||(t=e)&&"body"===t.tagName.toLowerCase()?function(e){var t=T(e)?(0,c.A)():(0,c.A)(e),n=T(e)||t.defaultView;return t.body.clientWidth<n.innerWidth}(e):e.scrollHeight>e.clientHeight}var I=["template","script","style"],M=function(e,t,n){[].forEach.call(e.children,function(e){var r,o,a;-1===t.indexOf(e)&&(o=(r=e).nodeType,a=r.tagName,1===o&&-1===I.indexOf(a.toLowerCase()))&&n(e)})};function F(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}const L=function(){function e(e){var t=void 0===e?{}:e,n=t.hideSiblingNodes,r=void 0===n||n,o=t.handleContainerOverflow,a=void 0===o||o;this.hideSiblingNodes=void 0,this.handleContainerOverflow=void 0,this.modals=void 0,this.containers=void 0,this.data=void 0,this.scrollbarSize=void 0,this.hideSiblingNodes=r,this.handleContainerOverflow=a,this.modals=[],this.containers=[],this.data=[],this.scrollbarSize=f()}var t=e.prototype;return t.isContainerOverflowing=function(e){var t=this.data[this.containerIndexFromModal(e)];return t&&t.overflowing},t.containerIndexFromModal=function(e){return t=this.data,n=function(t){return-1!==t.modals.indexOf(e)},r=-1,t.some(function(e,t){return!!n(e,t)&&(r=t,!0)}),r;var t,n,r},t.setContainerStyle=function(e,t){var n={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight},e.overflowing&&(n.paddingRight=parseInt((0,P.A)(t,"paddingRight")||"0",10)+this.scrollbarSize+"px"),(0,P.A)(t,n)},t.removeContainerStyle=function(e,t){Object.assign(t.style,e.style)},t.add=function(e,t,n){var r=this.modals.indexOf(e),o=this.containers.indexOf(t);if(-1!==r)return r;if(r=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&function(e,t){var n=t.dialog,r=t.backdrop;M(e,[n,r],function(e){return F(!0,e)})}(t,e),-1!==o)return this.data[o].modals.push(e),r;var a={modals:[e],classes:n?n.split(/\s+/):[],overflowing:R(t)};return this.handleContainerOverflow&&this.setContainerStyle(a,t),a.classes.forEach(_.bind(null,t)),this.containers.push(t),this.data.push(a),r},t.remove=function(e){var t=this.modals.indexOf(e);if(-1!==t){var n=this.containerIndexFromModal(e),r=this.data[n],o=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.classes.forEach(N.bind(null,o)),this.handleContainerOverflow&&this.removeContainerStyle(r,o),this.hideSiblingNodes&&function(e,t){var n=t.dialog,r=t.backdrop;M(e,[n,r],function(e){return F(!1,e)})}(o,e),this.containers.splice(n,1),this.data.splice(n,1);else if(this.hideSiblingNodes){var a=r.modals[r.modals.length-1],i=a.backdrop;F(!1,a.dialog),F(!1,i)}}},t.isTopModal=function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e},e}();var D,j=n(9808);function z(e){var t=e||(D||(D=new L),D),n=(0,g.useRef)({dialog:null,backdrop:null});return Object.assign(n.current,{add:function(e,r){return t.add(n.current,e,r)},remove:function(){return t.remove(n.current)},isTopModal:function(){return t.isTopModal(n.current)},setDialogRef:(0,g.useCallback)(function(e){n.current.dialog=e},[]),setBackdropRef:(0,g.useCallback)(function(e){n.current.backdrop=e},[])})}var V=(0,g.forwardRef)(function(e,t){var n=e.show,r=void 0!==n&&n,i=e.role,l=void 0===i?"dialog":i,s=e.className,c=e.style,d=e.children,f=e.backdrop,p=void 0===f||f,v=e.keyboard,E=void 0===v||v,x=e.onBackdropClick,C=e.onEscapeKeyDown,_=e.transition,O=e.backdropTransition,N=e.autoFocus,P=void 0===N||N,T=e.enforceFocus,R=void 0===T||T,I=e.restoreFocus,M=void 0===I||I,F=e.restoreFocusOptions,L=e.renderDialog,D=e.renderBackdrop,V=void 0===D?function(e){return g.createElement("div",e)}:D,U=e.manager,B=e.container,H=e.containerClassName,$=e.onShow,W=e.onHide,q=void 0===W?function(){}:W,K=e.onExit,G=e.onExited,Q=e.onExiting,Y=e.onEnter,X=e.onEntering,J=e.onEntered,Z=(0,o.A)(e,["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","backdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","containerClassName","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"]),ee=(0,j.A)(B),te=z(U),ne=(0,S.A)(),re=(0,A.A)(r),oe=(0,g.useState)(!r),ae=oe[0],ie=oe[1],le=(0,g.useRef)(null);(0,g.useImperativeHandle)(t,function(){return te},[te]),u.A&&!re&&r&&(le.current=y()),_||r||ae?r&&ae&&ie(!1):ie(!0);var se=(0,m.A)(function(){if(te.add(ee,H),me.current=(0,w.A)(document,"keydown",fe),pe.current=(0,w.A)(document,"focus",function(){return setTimeout(ce)},!0),$&&$(),P){var e=y(document);te.dialog&&e&&!(0,b.A)(te.dialog,e)&&(le.current=e,te.dialog.focus())}}),ue=(0,m.A)(function(){var e;(te.remove(),null==me.current||me.current(),null==pe.current||pe.current(),M)&&(null==(e=le.current)||null==e.focus||e.focus(F),le.current=null)});(0,g.useEffect)(function(){r&&ee&&se()},[r,ee,se]),(0,g.useEffect)(function(){ae&&ue()},[ae,ue]),(0,h.A)(function(){ue()});var ce=(0,m.A)(function(){if(R&&ne()&&te.isTopModal()){var e=y();te.dialog&&e&&!(0,b.A)(te.dialog,e)&&te.dialog.focus()}}),de=(0,m.A)(function(e){e.target===e.currentTarget&&(null==x||x(e),!0===p&&q())}),fe=(0,m.A)(function(e){E&&27===e.keyCode&&te.isTopModal()&&(null==C||C(e),e.defaultPrevented||q())}),pe=(0,g.useRef)(),me=(0,g.useRef)(),he=_;if(!ee||!(r||he&&!ae))return null;var ve=(0,a.A)({role:l,ref:te.setDialogRef,"aria-modal":"dialog"===l||void 0},Z,{style:c,className:s,tabIndex:-1}),ge=L?L(ve):g.createElement("div",ve,g.cloneElement(d,{role:"document"}));he&&(ge=g.createElement(he,{appear:!0,unmountOnExit:!0,in:!!r,onExit:K,onExiting:Q,onExited:function(){ie(!0);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==G||G.apply(void 0,t)},onEnter:Y,onEntering:X,onEntered:J},ge));var ye=null;if(p){var be=O;ye=V({ref:te.setBackdropRef,onClick:de}),be&&(ye=g.createElement(be,{appear:!0,in:!!r},ye))}return g.createElement(g.Fragment,null,k.createPortal(g.createElement(g.Fragment,null,ye,ge),ee))}),U={show:x().bool,container:x().any,onShow:x().func,onHide:x().func,backdrop:x().oneOfType([x().bool,x().oneOf(["static"])]),renderDialog:x().func,renderBackdrop:x().func,onEscapeKeyDown:x().func,onBackdropClick:x().func,containerClassName:x().string,keyboard:x().bool,transition:x().elementType,backdropTransition:x().elementType,autoFocus:x().bool,enforceFocus:x().bool,restoreFocus:x().bool,restoreFocusOptions:x().shape({preventScroll:x().bool}),onEnter:x().func,onEntering:x().func,onEntered:x().func,onExit:x().func,onExiting:x().func,onExited:x().func,manager:x().instanceOf(L)};V.displayName="Modal",V.propTypes=U;const B=Object.assign(V,{Manager:L});n(9771);var H=n(7387),$=n(5003),W=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",q=".sticky-top",K=".navbar-toggler",G=function(e){function t(){return e.apply(this,arguments)||this}(0,H.A)(t,e);var n=t.prototype;return n.adjustAndStore=function(e,t,n){var r,o=t.style[e];t.dataset[e]=o,(0,P.A)(t,((r={})[e]=parseFloat((0,P.A)(t,e))+n+"px",r))},n.restore=function(e,t){var n,r=t.dataset[e];void 0!==r&&(delete t.dataset[e],(0,P.A)(t,((n={})[e]=r,n)))},n.setContainerStyle=function(t,n){var r=this;if(e.prototype.setContainerStyle.call(this,t,n),t.overflowing){var o=f();(0,$.A)(n,W).forEach(function(e){return r.adjustAndStore("paddingRight",e,o)}),(0,$.A)(n,q).forEach(function(e){return r.adjustAndStore("marginRight",e,-o)}),(0,$.A)(n,K).forEach(function(e){return r.adjustAndStore("marginRight",e,o)})}},n.removeContainerStyle=function(t,n){var r=this;e.prototype.removeContainerStyle.call(this,t,n),(0,$.A)(n,W).forEach(function(e){return r.restore("paddingRight",e)}),(0,$.A)(n,q).forEach(function(e){return r.restore("marginRight",e)}),(0,$.A)(n,K).forEach(function(e){return r.restore("marginRight",e)})},t}(L),Q=n(7285),Y=n(6261);const X=(0,Y.A)("modal-body");const J=g.createContext({onHide:function(){}});var Z=n(6519),ee=["bsPrefix","className","contentClassName","centered","size","children","scrollable"],te=g.forwardRef(function(e,t){var n=e.bsPrefix,r=e.className,i=e.contentClassName,s=e.centered,u=e.size,c=e.children,d=e.scrollable,f=(0,o.A)(e,ee),p=(n=(0,Z.oU)(n,"modal"))+"-dialog";return g.createElement("div",(0,a.A)({},f,{ref:t,className:l()(p,r,u&&n+"-"+u,s&&p+"-centered",d&&p+"-scrollable")}),g.createElement("div",{className:l()(n+"-content",i)},c))});te.displayName="ModalDialog";const ne=te,re=(0,Y.A)("modal-footer");var oe=n(8515),ae=["bsPrefix","closeLabel","closeButton","onHide","className","children"],ie=g.forwardRef(function(e,t){var n=e.bsPrefix,r=e.closeLabel,i=e.closeButton,s=e.onHide,u=e.className,c=e.children,d=(0,o.A)(e,ae);n=(0,Z.oU)(n,"modal-header");var f=(0,g.useContext)(J),p=(0,m.A)(function(){f&&f.onHide(),s&&s()});return g.createElement("div",(0,a.A)({ref:t},d,{className:l()(u,n)}),c,i&&g.createElement(oe.A,{label:r,onClick:p}))});ie.displayName="ModalHeader",ie.defaultProps={closeLabel:"Close",closeButton:!1};const le=ie;var se=(0,n(6754).A)("h4");const ue=(0,Y.A)("modal-title",{Component:se});var ce,de=["bsPrefix","className","style","dialogClassName","contentClassName","children","dialogAs","aria-labelledby","aria-describedby","aria-label","show","animation","backdrop","keyboard","onEscapeKeyDown","onShow","onHide","container","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","onEntered","onExit","onExiting","onEnter","onEntering","onExited","backdropClassName","manager"],fe={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,animation:!0,dialogAs:ne};function pe(e){return g.createElement(Q.A,(0,a.A)({},e,{timeout:null}))}function me(e){return g.createElement(Q.A,(0,a.A)({},e,{timeout:null}))}var he=g.forwardRef(function(e,t){var n=e.bsPrefix,r=e.className,i=e.style,y=e.dialogClassName,b=e.contentClassName,w=e.children,E=e.dialogAs,x=e["aria-labelledby"],k=e["aria-describedby"],S=e["aria-label"],A=e.show,C=e.animation,_=e.backdrop,O=e.keyboard,N=e.onEscapeKeyDown,P=e.onShow,T=e.onHide,R=e.container,I=e.autoFocus,M=e.enforceFocus,F=e.restoreFocus,L=e.restoreFocusOptions,D=e.onEntered,j=e.onExit,z=e.onExiting,V=e.onEnter,U=e.onEntering,H=e.onExited,$=e.backdropClassName,W=e.manager,q=(0,o.A)(e,de),K=(0,g.useState)({}),Q=K[0],Y=K[1],X=(0,g.useState)(!1),ee=X[0],te=X[1],ne=(0,g.useRef)(!1),re=(0,g.useRef)(!1),oe=(0,g.useRef)(null),ae=(0,p.A)(),ie=ae[0],le=ae[1],se=(0,m.A)(T);n=(0,Z.oU)(n,"modal"),(0,g.useImperativeHandle)(t,function(){return{get _modal(){return ie}}},[ie]);var ue=(0,g.useMemo)(function(){return{onHide:se}},[se]);function fe(){return W||(ce||(ce=new G),ce)}function he(e){if(u.A){var t=fe().isContainerOverflowing(ie),n=e.scrollHeight>(0,c.A)(e).documentElement.clientHeight;Y({paddingRight:t&&!n?f():void 0,paddingLeft:!t&&n?f():void 0})}}var ve=(0,m.A)(function(){ie&&he(ie.dialog)});(0,h.A)(function(){(0,d.A)(window,"resize",ve),oe.current&&oe.current()});var ge=function(){ne.current=!0},ye=function(e){ne.current&&ie&&e.target===ie.dialog&&(re.current=!0),ne.current=!1},be=function(){te(!0),oe.current=(0,v.A)(ie.dialog,function(){te(!1)})},we=function(e){"static"!==_?re.current||e.target!==e.currentTarget?re.current=!1:null==T||T():function(e){e.target===e.currentTarget&&be()}(e)},Ee=(0,g.useCallback)(function(e){return g.createElement("div",(0,a.A)({},e,{className:l()(n+"-backdrop",$,!C&&"show")}))},[C,$,n]),xe=(0,a.A)({},i,Q);C||(xe.display="block");return g.createElement(J.Provider,{value:ue},g.createElement(B,{show:A,ref:le,backdrop:_,container:R,keyboard:!0,autoFocus:I,enforceFocus:M,restoreFocus:F,restoreFocusOptions:L,onEscapeKeyDown:function(e){O||"static"!==_?O&&N&&N(e):(e.preventDefault(),be())},onShow:P,onHide:T,onEnter:function(e,t){e&&(e.style.display="block",he(e)),null==V||V(e,t)},onEntering:function(e,t){null==U||U(e,t),(0,s.Ay)(window,"resize",ve)},onEntered:D,onExit:function(e){null==oe.current||oe.current(),null==j||j(e)},onExiting:z,onExited:function(e){e&&(e.style.display=""),null==H||H(e),(0,d.A)(window,"resize",ve)},manager:fe(),containerClassName:n+"-open",transition:C?pe:void 0,backdropTransition:C?me:void 0,renderBackdrop:Ee,renderDialog:function(e){return g.createElement("div",(0,a.A)({role:"dialog"},e,{style:xe,className:l()(r,n,ee&&n+"-static"),onClick:_?we:void 0,onMouseUp:ye,"aria-label":S,"aria-labelledby":x,"aria-describedby":k}),g.createElement(E,(0,a.A)({},q,{onMouseDown:ge,className:y,contentClassName:b}),w))}}))});he.displayName="Modal",he.defaultProps=fe,he.Body=X,he.Header=le,he.Title=ue,he.Footer=re,he.Dialog=ne,he.TRANSITION_DURATION=300,he.BACKDROP_TRANSITION_DURATION=150;const ve=he},7285:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r,o=n(8168),a=n(8587),i=n(6942),l=n.n(i),s=n(6540),u=n(3674),c=n(923),d=n(5258),f=["className","children"],p=((r={})[u.ns]="show",r[u._K]="show",r),m=s.forwardRef(function(e,t){var n=e.className,r=e.children,i=(0,a.A)(e,f),m=(0,s.useCallback)(function(e){(0,d.A)(e),i.onEnter&&i.onEnter(e)},[i]);return s.createElement(u.Ay,(0,o.A)({ref:t,addEndListener:c.A},i,{onEnter:m}),function(e,t){return s.cloneElement(r,(0,o.A)({},t,{className:l()("fade",n,r.props.className,p[e])}))})});m.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},m.displayName="Fade";const h=m},7387:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3662);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},7463:(e,t)=>{"use strict";
/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>a(s,n))u<o&&0>a(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<o&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var u=[],c=[],d=1,f=null,p=3,m=!1,h=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function E(e){if(v=!1,w(e),!h)if(null!==r(u))h=!0,I(x);else{var t=r(c);null!==t&&M(E,t.startTime-e)}}function x(e,n){h=!1,v&&(v=!1,y(C),C=-1),m=!0;var a=p;try{for(w(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!N());){var i=f.callback;if("function"==typeof i){f.callback=null,p=f.priorityLevel;var l=i(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(u)&&o(u),w(n)}else o(u);f=r(u)}if(null!==f)var s=!0;else{var d=r(c);null!==d&&M(E,d.startTime-n),s=!1}return s}finally{f=null,p=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,A=null,C=-1,_=5,O=-1;function N(){return!(t.unstable_now()-O<_)}function P(){if(null!==A){var e=t.unstable_now();O=e;var n=!0;try{n=A(!0,e)}finally{n?k():(S=!1,A=null)}}else S=!1}if("function"==typeof b)k=function(){b(P)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,R=T.port2;T.port1.onmessage=P,k=function(){R.postMessage(null)}}else k=function(){g(P,0)};function I(e){A=e,S||(S=!0,k())}function M(e,n){C=g(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||m||(h=!0,I(x))},t.unstable_forceFrameRate=function(e){0>e||125<e||(_=0<e?Math.floor(1e3/e):5)},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(e.sortIndex=a,n(c,e),null===r(u)&&e===r(c)&&(v?(y(C),C=-1):v=!0,M(E,a-i))):(e.sortIndex=l,n(u,e),h||m||(h=!0,I(x))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},7604:(e,t,n)=>{var r;!function(){"use strict";var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(e){return function(e,t){var n,r,i,l,s,u,c,d,f,p=1,m=e.length,h="";for(r=0;r<m;r++)if("string"==typeof e[r])h+=e[r];else if("object"==typeof e[r]){if((l=e[r]).keys)for(n=t[p],i=0;i<l.keys.length;i++){if(null==n)throw new Error(a('[sprintf] Cannot access property "%s" of undefined value "%s"',l.keys[i],l.keys[i-1]));n=n[l.keys[i]]}else n=l.param_no?t[l.param_no]:t[p++];if(o.not_type.test(l.type)&&o.not_primitive.test(l.type)&&n instanceof Function&&(n=n()),o.numeric_arg.test(l.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(a("[sprintf] expecting number but found %T",n));switch(o.number.test(l.type)&&(d=n>=0),l.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,l.width?parseInt(l.width):0);break;case"e":n=l.precision?parseFloat(n).toExponential(l.precision):parseFloat(n).toExponential();break;case"f":n=l.precision?parseFloat(n).toFixed(l.precision):parseFloat(n);break;case"g":n=l.precision?String(Number(n.toPrecision(l.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=l.precision?n.substring(0,l.precision):n;break;case"t":n=String(!!n),n=l.precision?n.substring(0,l.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=l.precision?n.substring(0,l.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=l.precision?n.substring(0,l.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}o.json.test(l.type)?h+=n:(!o.number.test(l.type)||d&&!l.sign?f="":(f=d?"+":"-",n=n.toString().replace(o.sign,"")),u=l.pad_char?"0"===l.pad_char?"0":l.pad_char.charAt(1):" ",c=l.width-(f+n).length,s=l.width&&c>0?u.repeat(c):"",h+=l.align?f+n+s:"0"===u?f+s+n:s+f+n)}return h}(function(e){if(l[e])return l[e];var t,n=e,r=[],a=0;for(;n;){if(null!==(t=o.text.exec(n)))r.push(t[0]);else if(null!==(t=o.modulo.exec(n)))r.push("%");else{if(null===(t=o.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){a|=1;var i=[],s=t[2],u=[];if(null===(u=o.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(i.push(u[1]);""!==(s=s.substring(u[0].length));)if(null!==(u=o.key_access.exec(s)))i.push(u[1]);else{if(null===(u=o.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");i.push(u[1])}t[2]=i}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return l[e]=r}(e),arguments)}function i(e,t){return a.apply(null,[e].concat(t||[]))}var l=Object.create(null);t.sprintf=a,t.vsprintf=i,"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=i,void 0===(r=function(){return{sprintf:a,vsprintf:i}}.call(t,n,t,e))||(e.exports=r))}()},7629:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(45),o=n(6540),a=n(5556),i=n.n(a),l=n(5498),s=n(1468),u=n(5289),c=["options"];function d(e){var t=e.options,n=void 0===t?[]:t,a=(0,r.A)(e,c),i=(0,s.d4)(u.fF);return o.createElement(o.Fragment,null,o.createElement("button",{disabled:a.disabled||a.loading,type:"button",className:"btn btn-primary dropdown-toggle dropdown-toggle-split","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},(0,l.pw)("More tools",i)),o.createElement("div",{className:"dropdown-menu"},n.map(function(e,t){return o.createElement("a",{key:t,className:"dropdown-item",href:"#",onClick:e.callback},o.createElement("i",{className:"material-icons"},e.icon),e.text)}),(null==a?void 0:a.handleCopyText)&&o.createElement("a",{className:"dropdown-item",href:"#",onClick:a.handleCopyText},o.createElement("i",{className:"material-icons"},"content_paste"),(0,l.pw)("Copy without translate",i))))}d.propTypes={options:i().array,handleCopyText:i().func,loading:i().bool.isRequired,disabled:i().bool.isRequired};const f=(0,o.memo)(d)},7659:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},7732:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(5458),o=n(3029),a=n(2901),i=n(388),l=n(3954),s=n(5501),u=n(6540),c=n(7112),d=n(5498);function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}const p=function(e){function t(e){var n,r,a,s,u;return(0,o.A)(this,t),a=this,s=t,u=[e],s=(0,l.A)(s),(r=(0,i.A)(a,f()?Reflect.construct(s,u||[],(0,l.A)(a).constructor):s.apply(a,u))).state={checkedItems:null!==(n=e.checkedItems)&&void 0!==n?n:[]},r.handleChange=r.handleChange.bind(r),r}return(0,s.A)(t,e),(0,a.A)(t,[{key:"handleChange",value:function(e){var t=e.target.name,n=e.target.checked,o=this.state.checkedItems;o=n?[].concat((0,r.A)(o),[t]):o.filter(function(e){return e!==t}),this.setState({checkedItems:o},this.onChange)}},{key:"componentDidUpdate",value:function(e,t,n){var r;(0,d.eJ)(e.checkedItems,this.props.checkedItems)&&this.setState({checkedItems:null!==(r=this.props.checkedItems)&&void 0!==r?r:[]})}},{key:"onChange",value:function(){this.props.onChange(this.state.checkedItems)}},{key:"render",value:function(){var e=this;return u.createElement(u.Fragment,null,this.props.fields&&this.props.fields.map(function(t,n){var r;return u.createElement(c.A,{name:t,label:t,key:n,className:null!==(r=e.props.className)&&void 0!==r?r:"",checked:e.state.checkedItems.includes(t),onChange:e.handleChange})}))}}])}(u.Component)},7800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.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)?(0,r.A)(e,t):void 0}}},7825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},7828:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=!("undefined"==typeof window||!window.document||!window.document.createElement)},7867:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=n(6540),s=n(6519),u=["bsPrefix","as","className"];const c=l.forwardRef(function(e,t){var n=e.bsPrefix,a=e.as,c=void 0===a?"div":a,d=e.className,f=(0,o.A)(e,u),p=(0,s.oU)(n,"tab-content");return l.createElement(c,(0,r.A)({ref:t},f,{className:i()(d,p)}))})},8004:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var r=(0,n(5508).Mz)([function(e){return e.constants}],function(e){return e});
/**
 * License limited to a single site, for use on another site please purchase a license for this module.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 *
 * @author    Dingedi.com
 * @copyright Copyright 2025 © Dingedi All right reserved
 * @license   http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
 * @category  Dingedi PrestaShop Modules
 */},8040:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(6406),o=n(1284),a=n(6540),i=n(1942),l=n(9771),s=n.n(l),u=n(1625),c=n(6816);var d=function(){};var f=function(e){return e&&("current"in e?e.current:e)};const p=function(e,t,n){var l=void 0===n?{}:n,p=l.disabled,m=l.clickTrigger,h=void 0===m?"click":m,v=(0,a.useRef)(!1),g=t||d,y=(0,a.useCallback)(function(t){var n,o,a=f(e);s()(!!a,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),v.current=!(a&&(o=t,!(o.metaKey||o.altKey||o.ctrlKey||o.shiftKey))&&function(e){return 0===e.button}(t)&&!(0,r.A)(a,null!=(n=null==t.composedPath?void 0:t.composedPath()[0])?n:t.target))},[e]),b=(0,i.A)(function(e){v.current||g(e)}),w=(0,i.A)(function(e){27===e.keyCode&&g(e)});(0,a.useEffect)(function(){if(!p&&null!=e){var t,n=window.event,r=(t=f(e),(0,u.A)((0,c.A)(t))),a=(0,o.A)(r,h,y,!0),i=(0,o.A)(r,h,function(e){e!==n?b(e):n=void 0}),l=(0,o.A)(r,"keyup",function(e){e!==n?w(e):n=void 0}),s=[];return"ontouchstart"in r.documentElement&&(s=[].slice.call(r.body.children).map(function(e){return(0,o.A)(e,"mousemove",d)})),function(){a(),i(),l(),s.forEach(function(e){return e()})}}},[e,p,h,y,b,w])}},8168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},8199:e=>{!function(t,n){var r,o,a="createElement",i="getElementsByTagName",l="length",s="style",u="title",c="undefined",d="setAttribute",f="getAttribute",p=null,m="__svgInject",h="--inject-",v=new RegExp(h+"\\d+","g"),g="LOAD_FAIL",y="SVG_INVALID",b=["src","alt","onload","onerror"],w=n[a]("a"),E=typeof SVGRect!=c,x={useCache:!0,copyAttributes:!0,makeIdsUnique:!0},k={clipPath:["clip-path"],"color-profile":p,cursor:p,filter:p,linearGradient:["fill","stroke"],marker:["marker","marker-end","marker-mid","marker-start"],mask:p,pattern:["fill","stroke"],radialGradient:["fill","stroke"]},S=1;function A(e){return(r=r||new XMLSerializer).serializeToString(e)}function C(e,t){var n,r,o,a,u=h+S++,c=/url\("?#([a-zA-Z][\w:.-]*)"?\)/g,m=e.querySelectorAll("[id]"),v=t?[]:p,g={},y=[],b=!1;if(m[l]){for(o=0;o<m[l];o++)(r=m[o].localName)in k&&(g[r]=1);for(r in g)(k[r]||[r]).forEach(function(e){y.indexOf(e)<0&&y.push(e)});y[l]&&y.push(s);var w,E,x,A=e[i]("*"),C=e;for(o=-1;C!=p;){if(C.localName==s)(x=(E=C.textContent)&&E.replace(c,function(e,t){return v&&(v[t]=1),"url(#"+t+u+")"}))!==E&&(C.textContent=x);else if(C.hasAttributes()){for(a=0;a<y[l];a++)w=y[a],(x=(E=C[f](w))&&E.replace(c,function(e,t){return v&&(v[t]=1),"url(#"+t+u+")"}))!==E&&C[d](w,x);["xlink:href","href"].forEach(function(e){var t=C[f](e);/^\s*#/.test(t)&&(t=t.trim(),C[d](e,t+u),v&&(v[t.substring(1)]=1))})}C=A[++o]}for(o=0;o<m[l];o++)n=m[o],v&&!v[n.id]||(n.id+=u,b=!0)}return b}function _(e,t,r,o){if(t){t[d]("data-inject-url",r);var i=e.parentNode;if(i){o.copyAttributes&&function(e,t){for(var r,o,i,s=e.attributes,c=0;c<s[l];c++)if(o=(r=s[c]).name,-1==b.indexOf(o))if(i=r.value,o==u){var f,p=t.firstElementChild;p&&p.localName.toLowerCase()==u?f=p:(f=n[a+"NS"]("http://www.w3.org/2000/svg",u),t.insertBefore(f,p)),f.textContent=i}else t[d](o,i)}(e,t);var s=o.beforeInject,c=s&&s(e,t)||t;i.replaceChild(c,e),e[m]=1,P(e);var f=o.afterInject;f&&f(e,c)}}else R(e,o)}function O(){for(var e={},t=arguments,n=0;n<t[l];n++){var r=t[n];for(var o in r)r.hasOwnProperty(o)&&(e[o]=r[o])}return e}function N(e,t){if(t){var r;try{r=function(e){return(o=o||new DOMParser).parseFromString(e,"text/xml")}(e)}catch(e){return p}return r[i]("parsererror")[l]?p:r.documentElement}var a=n.createElement("div");return a.innerHTML=e,a.firstElementChild}function P(e){e.removeAttribute("onload")}function T(e,t,n){e[m]=2,n.onFail&&n.onFail(e,t)}function R(e,t){P(e),T(e,y,t)}function I(e,t){P(e),T(e,"SVG_NOT_SUPPORTED",t)}function M(e,t){T(e,g,t)}function F(e){e.onload=p,e.onerror=p}var L=function e(r,o){var u=O(x,o),d={};function b(e,t){t=O(u,t);var n=function(n){var r=function(){var e=t.onAllFinish;e&&e(),n&&n()};if(e&&typeof e[l]!=c){var o=0,a=e[l];if(0==a)r();else for(var i=function(){++o==a&&r()},s=0;s<a;s++)k(e[s],t,i)}else k(e,t,r)};return typeof Promise==c?n():new Promise(n)}function k(e,t,n){if(e){var r=e[m];if(r)Array.isArray(r)?r.push(n):n();else{if(F(e),!E)return I(e,t),void n();var o=t.beforeLoad,a=o&&o(e)||e[f]("src");if(!a)return""===a&&M(e,t),void n();var i=[];e[m]=i;var l=function(){n(),i.forEach(function(e){e()})},s=function(e){return w.href=e,w.href}(a),u=t.useCache,b=t.makeIdsUnique,x=function(e){u&&(d[s].forEach(function(t){t(e)}),d[s]=e)};if(u){var k,O=function(n){if(n===g)M(e,t);else if(n===y)R(e,t);else{var r,o=n[0],a=n[1],i=n[2];b&&(o===p?(o=C(r=N(a,!1),!1),n[0]=o,n[2]=o&&A(r)):o&&(a=function(e){return e.replace(v,h+S++)}(i))),r=r||N(a,!1),_(e,r,s,t)}l()};if(typeof(k=d[s])!=c)return void(k.isCallbackQueue?k.push(O):O(k));(k=[]).isCallbackQueue=!0,d[s]=k}!function(e,t,n){if(e){var r=new XMLHttpRequest;r.onreadystatechange=function(){if(4==r.readyState){var e=r.status;200==e?t(r.responseXML,r.responseText.trim()):(400<=e||0==e)&&n()}},r.open("GET",e,!0),r.send()}}(s,function(n,r){var o=n instanceof Document?n.documentElement:N(r,!0),a=t.afterLoad;if(a){var i=a(o,r)||o;if(i){var c="string"==typeof i;r=c?i:A(o),o=c?N(i,!0):i}}if(o instanceof SVGElement){var d=p;if(b&&(d=C(o,!1)),u){var f=d&&A(o);x([d,r,f])}_(e,o,s,t)}else R(e,t),x(y);l()},function(){M(e,t),x(g),l()})}}}return E&&function(e){var t=n[i]("head")[0];if(t){var r=n[a](s);r.type="text/css",r.appendChild(n.createTextNode(e)),t.appendChild(r)}}('img[onload^="'+r+'("]{visibility:hidden;}'),b.setOptions=function(e){u=O(u,e)},b.create=e,b.err=function(e,t){e&&2!=e[m]&&(F(e),E?(P(e),M(e,u)):I(e,u),t&&(P(e),e.src=t))},t[r]=b}("SVGInject");"object"==typeof e.exports&&(e.exports=L)}(window,document)},8239:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n,r,o,a){var i=r||"<<anonymous>>",l=a||n;if(null==t[n])return new Error("The "+o+" `"+l+"` is required to make `"+i+"` accessible for users of assistive technologies such as screen readers.");for(var s=arguments.length,u=Array(s>5?s-5:0),c=5;c<s;c++)u[c-5]=arguments[c];return e.apply(void 0,[t,n,r,o,a].concat(u))}},e.exports=t.default},8280:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r,o=n(8168),a=n(8587),i=n(6942),l=n.n(i),s=n(2660),u=n(6540),c=n(3674),d=n(923),f=n(9751),p=n(5258),m=["onEnter","onEntering","onEntered","onExit","onExiting","className","children","dimension","getDimensionValue"],h={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function v(e,t){var n=t["offset"+e[0].toUpperCase()+e.slice(1)],r=h[e];return n+parseInt((0,s.A)(t,r[0]),10)+parseInt((0,s.A)(t,r[1]),10)}var g=((r={})[c.kp]="collapse",r[c.ze]="collapsing",r[c.ns]="collapsing",r[c._K]="collapse show",r),y={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,getDimensionValue:v},b=u.forwardRef(function(e,t){var n=e.onEnter,r=e.onEntering,i=e.onEntered,s=e.onExit,h=e.onExiting,y=e.className,b=e.children,w=e.dimension,E=void 0===w?"height":w,x=e.getDimensionValue,k=void 0===x?v:x,S=(0,a.A)(e,m),A="function"==typeof E?E():E,C=(0,u.useMemo)(function(){return(0,f.A)(function(e){e.style[A]="0"},n)},[A,n]),_=(0,u.useMemo)(function(){return(0,f.A)(function(e){var t="scroll"+A[0].toUpperCase()+A.slice(1);e.style[A]=e[t]+"px"},r)},[A,r]),O=(0,u.useMemo)(function(){return(0,f.A)(function(e){e.style[A]=null},i)},[A,i]),N=(0,u.useMemo)(function(){return(0,f.A)(function(e){e.style[A]=k(A,e)+"px",(0,p.A)(e)},s)},[s,k,A]),P=(0,u.useMemo)(function(){return(0,f.A)(function(e){e.style[A]=null},h)},[A,h]);return u.createElement(c.Ay,(0,o.A)({ref:t,addEndListener:d.A},S,{"aria-expanded":S.role?S.in:null,onEnter:C,onEntering:_,onEntered:O,onExit:N,onExiting:P}),function(e,t){return u.cloneElement(b,(0,o.A)({},t,{className:l()(y,b.props.className,g[e],"width"===A&&"width")}))})});b.defaultProps=y;const w=b},8342:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);function o(){const[,e]=(0,r.useReducer)(e=>!e,!1);return e}},8394:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l});var r=n(7828),o=!1,a=!1;try{var i={get passive(){return o=!0},get once(){return a=o=!0}};r.A&&(window.addEventListener("test",i,i),window.removeEventListener("test",i,!0))}catch(e){}const l=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!a){var i=r.once,l=r.capture,s=n;!a&&i&&(s=n.__once||function e(r){this.removeEventListener(t,e,l),n.call(this,r)},n.__once=s),e.addEventListener(t,s,o?r:l)}e.addEventListener(t,n,r)}},8418:(e,t,n)=>{"use strict";e.exports=n(5160)},8440:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(6540),o=n(5556),a=n.n(o),i=n(1468),l=n(5498),s=n(5289);function u(e){var t=(0,i.d4)(s.fF);return name=Math.random().toString(36).substring(2),r.createElement("span",{className:"ps-switch"},r.createElement("input",{onChange:function(){return e.onChange(!1)},type:"radio",id:name+"-off",value:"0",checked:!e.checked}),r.createElement("label",{htmlFor:name+"-off"},(0,l.pw)("Disabled",t)),r.createElement("input",{onChange:function(){return e.onChange(!0)},type:"radio",id:name+"-on",value:"1",checked:e.checked}),r.createElement("label",{htmlFor:name+"-on"},(0,l.pw)("Enabled",t)),r.createElement("span",{className:"slide-button"}))}u.propTypes={name:a().string,checked:a().oneOfType([a().bool,a().number]),onChange:a().func.isRequired};const c=(0,r.memo)(u)},8515:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(8168),o=n(8587),a=n(5556),i=n.n(a),l=n(6540),s=n(6942),u=n.n(s),c=["label","onClick","className"],d={label:i().string.isRequired,onClick:i().func},f=l.forwardRef(function(e,t){var n=e.label,a=e.onClick,i=e.className,s=(0,o.A)(e,c);return l.createElement("button",(0,r.A)({ref:t,type:"button",className:u()("close",i),onClick:a},s),l.createElement("span",{"aria-hidden":"true"},"×"),l.createElement("span",{className:"sr-only"},n))});f.displayName="CloseButton",f.propTypes=d,f.defaultProps={label:"Close"};const p=f},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},8588:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,kn:()=>i,nq:()=>l});var r=n(5458),o=(0,n(5452).Z0)({name:"failedTranslation",initialState:{list:[]},reducers:{addFailedTranslation:function(e,t){var n=t.payload;n=Array.isArray(n)?n:[n],e.list=[].concat((0,r.A)(e.list),(0,r.A)(n))},removeFailedTranslationById:function(e,t){e.list=e.list.filter(function(e){return Number(e.id)!==Number(t.payload)})}}}),a=o.actions,i=a.addFailedTranslation,l=a.removeFailedTranslationById;const s=o.reducer},8765:(e,t,n)=>{"use strict";n.d(t,{A:()=>Z});var r=n(8168),o=n(8587),a=n(6942),i=n.n(a),l=n(6540),s=(n(2816),n(5556)),u=n.n(s),c=["as","className","type","tooltip"],d={type:u().string,tooltip:u().bool,as:u().elementType},f=l.forwardRef(function(e,t){var n=e.as,a=void 0===n?"div":n,s=e.className,u=e.type,d=void 0===u?"valid":u,f=e.tooltip,p=void 0!==f&&f,m=(0,o.A)(e,c);return l.createElement(a,(0,r.A)({},m,{ref:t,className:i()(s,d+"-"+(p?"tooltip":"feedback"))}))});f.displayName="Feedback",f.propTypes=d;const p=f;const m=l.createContext({controlId:void 0});var h=n(6519),v=["id","bsPrefix","bsCustomPrefix","className","type","isValid","isInvalid","isStatic","as"],g=l.forwardRef(function(e,t){var n=e.id,a=e.bsPrefix,s=e.bsCustomPrefix,u=e.className,c=e.type,d=void 0===c?"checkbox":c,f=e.isValid,p=void 0!==f&&f,g=e.isInvalid,y=void 0!==g&&g,b=e.isStatic,w=e.as,E=void 0===w?"input":w,x=(0,o.A)(e,v),k=(0,l.useContext)(m),S=k.controlId,A=k.custom?[s,"custom-control-input"]:[a,"form-check-input"],C=A[0],_=A[1];return a=(0,h.oU)(C,_),l.createElement(E,(0,r.A)({},x,{ref:t,type:d,id:n||S,className:i()(u,a,p&&"is-valid",y&&"is-invalid",b&&"position-static")}))});g.displayName="FormCheckInput";const y=g;var b=["bsPrefix","bsCustomPrefix","className","htmlFor"],w=l.forwardRef(function(e,t){var n=e.bsPrefix,a=e.bsCustomPrefix,s=e.className,u=e.htmlFor,c=(0,o.A)(e,b),d=(0,l.useContext)(m),f=d.controlId,p=d.custom?[a,"custom-control-label"]:[n,"form-check-label"],v=p[0],g=p[1];return n=(0,h.oU)(v,g),l.createElement("label",(0,r.A)({},c,{ref:t,htmlFor:u||f,className:i()(s,n)}))});w.displayName="FormCheckLabel";const E=w;var x=["id","bsPrefix","bsCustomPrefix","inline","disabled","isValid","isInvalid","feedbackTooltip","feedback","className","style","title","type","label","children","custom","as"],k=l.forwardRef(function(e,t){var n=e.id,a=e.bsPrefix,s=e.bsCustomPrefix,u=e.inline,c=void 0!==u&&u,d=e.disabled,f=void 0!==d&&d,v=e.isValid,g=void 0!==v&&v,b=e.isInvalid,w=void 0!==b&&b,k=e.feedbackTooltip,S=void 0!==k&&k,A=e.feedback,C=e.className,_=e.style,O=e.title,N=void 0===O?"":O,P=e.type,T=void 0===P?"checkbox":P,R=e.label,I=e.children,M=e.custom,F=e.as,L=void 0===F?"input":F,D=(0,o.A)(e,x),j="switch"===T||M,z=j?[s,"custom-control"]:[a,"form-check"],V=z[0],U=z[1];a=(0,h.oU)(V,U);var B=(0,l.useContext)(m).controlId,H=(0,l.useMemo)(function(){return{controlId:n||B,custom:j}},[B,j,n]),$=j||null!=R&&!1!==R&&!I,W=l.createElement(y,(0,r.A)({},D,{type:"switch"===T?"checkbox":T,ref:t,isValid:g,isInvalid:w,isStatic:!$,disabled:f,as:L}));return l.createElement(m.Provider,{value:H},l.createElement("div",{style:_,className:i()(C,a,j&&"custom-"+T,c&&a+"-inline")},I||l.createElement(l.Fragment,null,W,$&&l.createElement(E,{title:N},R),(g||w)&&l.createElement(p,{type:g?"valid":"invalid",tooltip:S},A))))});k.displayName="FormCheck",k.Input=y,k.Label=E;const S=k;var A=["id","bsPrefix","bsCustomPrefix","className","isValid","isInvalid","lang","as"],C=l.forwardRef(function(e,t){var n=e.id,a=e.bsPrefix,s=e.bsCustomPrefix,u=e.className,c=e.isValid,d=e.isInvalid,f=e.lang,p=e.as,v=void 0===p?"input":p,g=(0,o.A)(e,A),y=(0,l.useContext)(m),b=y.controlId,w=y.custom?[s,"custom-file-input"]:[a,"form-control-file"],E=w[0],x=w[1];return a=(0,h.oU)(E,x),l.createElement(v,(0,r.A)({},g,{ref:t,id:n||b,type:"file",lang:f,className:i()(u,a,c&&"is-valid",d&&"is-invalid")}))});C.displayName="FormFileInput";const _=C;var O=["bsPrefix","bsCustomPrefix","className","htmlFor"],N=l.forwardRef(function(e,t){var n=e.bsPrefix,a=e.bsCustomPrefix,s=e.className,u=e.htmlFor,c=(0,o.A)(e,O),d=(0,l.useContext)(m),f=d.controlId,p=d.custom?[a,"custom-file-label"]:[n,"form-file-label"],v=p[0],g=p[1];return n=(0,h.oU)(v,g),l.createElement("label",(0,r.A)({},c,{ref:t,htmlFor:u||f,className:i()(s,n),"data-browse":c["data-browse"]}))});N.displayName="FormFileLabel";const P=N;var T=["id","bsPrefix","bsCustomPrefix","disabled","isValid","isInvalid","feedbackTooltip","feedback","className","style","label","children","custom","lang","data-browse","as","inputAs"],R=l.forwardRef(function(e,t){var n=e.id,a=e.bsPrefix,s=e.bsCustomPrefix,u=e.disabled,c=void 0!==u&&u,d=e.isValid,f=void 0!==d&&d,v=e.isInvalid,g=void 0!==v&&v,y=e.feedbackTooltip,b=void 0!==y&&y,w=e.feedback,E=e.className,x=e.style,k=e.label,S=e.children,A=e.custom,C=e.lang,O=e["data-browse"],N=e.as,R=void 0===N?"div":N,I=e.inputAs,M=void 0===I?"input":I,F=(0,o.A)(e,T),L=A?[s,"custom"]:[a,"form-file"],D=L[0],j=L[1];a=(0,h.oU)(D,j);var z=(0,l.useContext)(m).controlId,V=(0,l.useMemo)(function(){return{controlId:n||z,custom:A}},[z,A,n]),U=null!=k&&!1!==k&&!S,B=l.createElement(_,(0,r.A)({},F,{ref:t,isValid:f,isInvalid:g,disabled:c,as:M,lang:C}));return l.createElement(m.Provider,{value:V},l.createElement(R,{style:x,className:i()(E,a,A&&"custom-file")},S||l.createElement(l.Fragment,null,A?l.createElement(l.Fragment,null,B,U&&l.createElement(P,{"data-browse":O},k)):l.createElement(l.Fragment,null,U&&l.createElement(P,null,k),B),(f||g)&&l.createElement(p,{type:f?"valid":"invalid",tooltip:b},w))))});R.displayName="FormFile",R.Input=_,R.Label=P;const I=R;n(9771);var M=["bsPrefix","bsCustomPrefix","type","size","htmlSize","id","className","isValid","isInvalid","plaintext","readOnly","custom","as"],F=l.forwardRef(function(e,t){var n,a,s=e.bsPrefix,u=e.bsCustomPrefix,c=e.type,d=e.size,f=e.htmlSize,p=e.id,v=e.className,g=e.isValid,y=void 0!==g&&g,b=e.isInvalid,w=void 0!==b&&b,E=e.plaintext,x=e.readOnly,k=e.custom,S=e.as,A=void 0===S?"input":S,C=(0,o.A)(e,M),_=(0,l.useContext)(m).controlId,O=k?[u,"custom"]:[s,"form-control"],N=O[0],P=O[1];if(s=(0,h.oU)(N,P),E)(a={})[s+"-plaintext"]=!0,n=a;else if("file"===c){var T;(T={})[s+"-file"]=!0,n=T}else if("range"===c){var R;(R={})[s+"-range"]=!0,n=R}else if("select"===A&&k){var I;(I={})[s+"-select"]=!0,I[s+"-select-"+d]=d,n=I}else{var F;(F={})[s]=!0,F[s+"-"+d]=d,n=F}return l.createElement(A,(0,r.A)({},C,{type:c,size:f,ref:t,readOnly:x,id:p||_,className:i()(v,n,y&&"is-valid",w&&"is-invalid")}))});F.displayName="FormControl";const L=Object.assign(F,{Feedback:p});var D=["bsPrefix","className","children","controlId","as"],j=l.forwardRef(function(e,t){var n=e.bsPrefix,a=e.className,s=e.children,u=e.controlId,c=e.as,d=void 0===c?"div":c,f=(0,o.A)(e,D);n=(0,h.oU)(n,"form-group");var p=(0,l.useMemo)(function(){return{controlId:u}},[u]);return l.createElement(m.Provider,{value:p},l.createElement(d,(0,r.A)({},f,{ref:t,className:i()(a,n)}),s))});j.displayName="FormGroup";const z=j;var V=n(1105),U=["as","bsPrefix","column","srOnly","className","htmlFor"],B=l.forwardRef(function(e,t){var n=e.as,a=void 0===n?"label":n,s=e.bsPrefix,u=e.column,c=e.srOnly,d=e.className,f=e.htmlFor,p=(0,o.A)(e,U),v=(0,l.useContext)(m).controlId;s=(0,h.oU)(s,"form-label");var g="col-form-label";"string"==typeof u&&(g=g+" "+g+"-"+u);var y=i()(d,s,c&&"sr-only",u&&g);return f=f||v,u?l.createElement(V.A,(0,r.A)({ref:t,as:"label",className:y,htmlFor:f},p)):l.createElement(a,(0,r.A)({ref:t,className:y,htmlFor:f},p))});B.displayName="FormLabel",B.defaultProps={column:!1,srOnly:!1};const H=B;var $=["bsPrefix","className","as","muted"],W=l.forwardRef(function(e,t){var n=e.bsPrefix,a=e.className,s=e.as,u=void 0===s?"small":s,c=e.muted,d=(0,o.A)(e,$);return n=(0,h.oU)(n,"form-text"),l.createElement(u,(0,r.A)({},d,{ref:t,className:i()(a,n,c&&"text-muted")}))});W.displayName="FormText";const q=W;var K=l.forwardRef(function(e,t){return l.createElement(S,(0,r.A)({},e,{ref:t,type:"switch"}))});K.displayName="Switch",K.Input=S.Input,K.Label=S.Label;const G=K;var Q=n(6261),Y=["bsPrefix","inline","className","validated","as"],X=(0,Q.A)("form-row"),J=l.forwardRef(function(e,t){var n=e.bsPrefix,a=e.inline,s=e.className,u=e.validated,c=e.as,d=void 0===c?"form":c,f=(0,o.A)(e,Y);return n=(0,h.oU)(n,"form"),l.createElement(d,(0,r.A)({},f,{ref:t,className:i()(s,u&&"was-validated",a&&n+"-inline")}))});J.displayName="Form",J.defaultProps={inline:!1},J.Row=X,J.Group=z,J.Control=L,J.Check=S,J.File=I,J.Switch=G,J.Label=H,J.Text=q;const Z=J},8794:(e,t,n)=>{"use strict";var r=n(5338).createRoot,o=function(){};e.exports=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).destructionDelay,n=void 0===t?1e3:t,a=document.createElement("div");document.body.appendChild(a);var i=r(a);function l(){i.unmount(),document.body.removeChild(a)}return new Promise(function(t){!function(t){var n=t.onSubmit,r=t.onDismiss;i.render(e({onSubmit:n,onDismiss:r,show:!0}))}({onSubmit:function(e){t(0===arguments.length||e)},onDismiss:function(){t(void 0)}})}).finally(function(){var t,r,a;r=(t={onSubmit:o,onDismiss:o}).onSubmit,a=t.onDismiss,i.render(e({onSubmit:r,onDismiss:a,show:!1})),setTimeout(l,n)})}},8880:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);function o(){const e=(0,r.useRef)(!0),t=(0,r.useRef)(()=>e.current);return(0,r.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}},8938:(e,t,n)=>{"use strict";n.d(t,{D:()=>o,t:()=>r});var r="SET_CONSTANTS";function o(e){return{type:r,value:e}}},9179:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(3029),o=n(2901),a=n(388),i=n(3954),l=n(5501),s=n(6540),u=n(961),c=n(5498),d=n(1468),f=n(5289);function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}var m=function(e){function t(){return(0,r.A)(this,t),e=this,n=t,o=arguments,n=(0,i.A)(n),(0,a.A)(e,p()?Reflect.construct(n,o||[],(0,i.A)(e).constructor):n.apply(e,o));var e,n,o}return(0,l.A)(t,e),(0,o.A)(t,[{key:"getDocumentationLink",value:function(){return this.props.constants.psBaseUrl+"/modules/"+this.props.module_name+"/documentations/readme_[ISO].pdf".replace("[ISO]",(0,c.cv)())}},{key:"getSeeOurModulesLink",value:function(){return"https://addons.prestashop.com/[ISO]/2_community-developer?contributor=1121795".replace("[ISO]",(0,c.cv)())}},{key:"getLeaveACommentLink",value:function(){return"https://addons.prestashop.com/[ISO]/ratings.php".replace("[ISO]",(0,c.cv)())}},{key:"getSupportLink",value:function(){return"https://addons.prestashop.com/contact-form.php?id_product="+this.props.module_id}},{key:"render",value:function(){var e=this.props.translations,t=document.getElementById("dingedimodule-infobar"),n=s.createElement("div",{className:"panel mb-4 mt-1 p-3"},s.createElement("a",{href:this.getDocumentationLink(),target:"_blank",className:"btn btn-primary text-white mr-3",style:{borderRadius:"3px"}},s.createElement("i",{className:"material-icons mr-2"},"description"),(0,c.pw)("Documentation",e)),s.createElement("a",{href:this.getSupportLink(),target:"_blank",className:"btn btn-primary text-white mr-3",style:{borderRadius:"3px"}},s.createElement("i",{className:"material-icons mr-2"},"mail"),(0,c.pw)("Support",e)),s.createElement("div",{className:"float-right"},s.createElement("a",{href:this.getSeeOurModulesLink(),target:"_blank",className:"btn btn-primary text-white mr-3",style:{borderRadius:"3px"}},s.createElement("i",{className:"material-icons mr-2"},"extension"),(0,c.pw)("See our modules",e)),s.createElement("a",{href:this.getLeaveACommentLink(),target:"_blank",className:"btn btn-warning text-white",style:{borderRadius:"3px",borderColor:"#f2bb3a",backgroundColor:"#f2bb3a"}},s.createElement("i",{className:"material-icons mr-2"},"star"),(0,c.pw)("Leave a comment",e))));return null===t?n:u.createPortal(n,t)}}])}(s.Component);const h=(0,d.Ng)(function(e){return{module_name:(0,f.aR)(e),module_id:(0,f.gx)(e),translations:(0,f.fF)(e),constants:e.constants}})(m)},9284:(e,t,n)=>{"use strict";n.d(t,{A:()=>P});var r=n(4467),o=n(3029),a=n(2901),i=n(388),l=n(3954),s=n(5501),u=n(6540),c=n(1468),d=n(5615),f=n(5498),p=n(5556),m=n.n(p),h=n(5289),v=n(8588),g=n(2792),y=n(2532),b=n(3524),w=n(5677),E=n(3097);function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(x=function(){return!!e})()}var k=function(e){function t(e){var n,r,a,s;return(0,o.A)(this,t),r=this,a=t,s=[e],a=(0,l.A)(a),(n=(0,i.A)(r,x()?Reflect.construct(a,s||[],(0,l.A)(r).constructor):a.apply(r,s))).state={isCopied:!1},n}return(0,s.A)(t,e),(0,a.A)(t,[{key:"displayProgressPercent",value:function(){var e=this.props.failedTranslation.request;return((Number(e.current)-1)/Number(e.requests)*100).toFixed(1)+"%"}},{key:"displayLanguage",value:function(e){var t=this.props.languages.find(function(t){return Number(t.value)===Number(e)});return t?u.createElement(u.Fragment,null,u.createElement(E.A,{language:t})," ",t.label):u.createElement(u.Fragment,null)}},{key:"handleCopyError",value:function(){var e=this;navigator.clipboard.writeText(JSON.stringify(this.props.failedTranslation)).then(function(t){e.setState({isCopied:!0})})}},{key:"render",value:function(){var e=this,t=this.state.isCopied,n=this.props,r=n.failedTranslation,o=n.item,a=n.translations,i=r.request;return u.createElement(g.A,{title:u.createElement(u.Fragment,null,u.createElement("span",null,(0,f.pw)("Translation pending",a)),u.createElement(y.A,{placement:"top",overlay:u.createElement(b.A,{id:"tooltip-top"},t&&(0,f.pw)("Copied",a),!t&&(0,f.pw)("Copy in clipboard",a))},u.createElement(d.A,{onMouseLeave:function(){return e.setState({isCopied:!1})},onClick:function(){return e.handleCopyError()},variant:"outline-primary",size:"sm",style:{marginTop:"-5px"},className:"float-right ml-3 p-1 px-2"},(0,f.pw)("Copy error log",a)))),show:this.props.show,onHide:this.props.onHide,modalBody:u.createElement(u.Fragment,null,u.createElement("div",null,u.createElement("strong",null,(0,f.pw)("An error occurred while translating",a))),u.createElement(w.A,{className:"mt-2 mb-4",style:{fontSize:"14px"},variant:"danger"},r.log),u.createElement("div",null,u.createElement("strong",null,(0,f.pw)("From",a),": "),this.displayLanguage(i.id_lang_from)),u.createElement("div",null,u.createElement("strong",null,(0,f.pw)("To",a),": "),this.displayLanguage(i.id_lang_to)),u.createElement(y.A,{placement:"top-start",overlay:u.createElement(b.A,{id:"tooltip-top-"},u.createElement(u.Fragment,null,i.current-1,"/",i.requests," ",(0,f.pw)("requests",a)))},u.createElement("div",null,u.createElement("strong",null,(0,f.pw)("Progression status",a),":")," ",this.displayProgressPercent())),u.createElement("div",{className:"mt-2"},u.createElement("strong",null,(0,f.pw)("Options",a),":")),u.createElement("ul",null,Array.isArray(null==i?void 0:i.selected_fields)&&i.selected_fields.length!==o.fields.length&&u.createElement("li",null,u.createElement("strong",null,(0,f.pw)("Fields to translate",a),":")," ",i.selected_fields.join(", ")),(null==i?void 0:i.selected_filters)&&u.createElement("li",null,u.createElement("strong",null,(0,f.pw)("Filters",a)),Object.entries(i.selected_filters).map(function(e,t){return u.createElement("div",{key:t},u.createElement("strong",{className:"ml-3"},e[0]),": ",e[1].map(function(e){return e.label.replaceAll("-","")}).join(","))})),("true"===i.overwrite||!0===i.overwrite)&&u.createElement("li",null,u.createElement("strong",null,(0,f.pw)("Overwrite all translations",a))),("true"===i.plage_enabled||!0===i.plage_enabled)&&u.createElement("li",null,u.createElement("strong",null,(0,f.pw)("Translate by ID",a),":")," ",i.start_id," -> ",i.end_id),0!==Number(i.latin)&&u.createElement("li",null,u.createElement("strong",null,(0,f.pw)("Latin",a))))),modalFooter:u.createElement(u.Fragment,null,u.createElement(d.A,{onClick:this.props.onDelete,variant:"danger"},(0,f.pw)("Delete",a)),u.createElement(d.A,{onClick:this.props.onResume,variant:"primary"},(0,f.pw)("Restart",a)))})}}])}(u.Component);g.A.propTypes={show:m().bool.isRequired,onHide:m().func.isRequired,item:m().object.isRequired,failedTranslation:m().object.isRequired};const S=(0,c.Ng)(function(e,t){return{translations:(0,h.fF)(e),languages:(0,h.kr)(e)}})(k);var A=(0,n(5508).Mz)([function(e){return e.failedTranslation.list},function(e,t){return t}],function(e,t){return e.find(function(e){return e.content_type===t.content_type})});function C(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(O=function(){return!!e})()}var N=function(e){function t(e){var n,r,a,s;return(0,o.A)(this,t),r=this,a=t,s=[e],a=(0,l.A)(a),(n=(0,i.A)(r,O()?Reflect.construct(a,s||[],(0,l.A)(r).constructor):a.apply(r,s))).state={showModal:!1},n}return(0,s.A)(t,e),(0,a.A)(t,[{key:"hideModal",value:function(){this.setState({showModal:!1})}},{key:"handleDelete",value:function(){var e=this,t=this.props.failedTranslation;if("browser"===t.error_type)return localStorage.removeItem("dgFailedTranslation"),void this.props.dispatch((0,v.nq)(t.id));$.ajax({type:"POST",url:(0,f.fN)("ContentDeleteFailedTranslation",this.props.constants),dataType:"json",data:{translation_data:{id:t.id}},success:function(){e.props.dispatch((0,v.nq)(t.id))}})}},{key:"handleResume",value:function(){this.props.handleResume(this.props.failedTranslation),this.handleDelete()}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.failedTranslation,o=n.translations;return r?u.createElement(u.Fragment,null,u.createElement("div",{className:"d-inline-block "+(null===(e=this.props)||void 0===e?void 0:e.className)},u.createElement(d.A,{variant:"secondary",size:"sm",onClick:function(){return t.setState({showModal:!0})}},(0,f.pw)("Translation pending",o))),this.state.showModal&&u.createElement(S,{failedTranslation:r,item:this.props.item,onDelete:function(){return t.handleDelete()},onResume:function(){return t.handleResume()},onHide:function(){return t.hideModal()},show:this.state.showModal})):u.createElement(u.Fragment,null)}}])}(u.Component);N.propTypes={handleResume:m().func.isRequired,className:m().string,item:m().object.isRequired,contentType:m().string.isRequired};const P=(0,c.Ng)(function(e,t){return{constants:e.constants,translations:(0,h.fF)(e),failedTranslation:A(e,_(_({},t),{},{content_type:t.contentType+"-"+t.item.name}))}})(N)},9288:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(8168),o=n(296),a=n(45),i=n(5615),l=n(6540),s=n(2792),u=n(5498),c=n(5556),d=n.n(c),f=["showCancelBtn","showSubmitBtn"];function p(e){var t,n=e.showCancelBtn,c=void 0===n||n,d=e.showSubmitBtn,p=void 0===d||d,m=(0,a.A)(e,f),h=(0,l.useState)(!0),v=(0,o.A)(h,2),g=v[0],y=v[1],b=function(){m.onHide&&m.onHide(),y(!1)};return l.createElement(l.Fragment,null,g&&l.createElement(s.A,(0,r.A)({modalTitle:m.modalTitle,modalBody:m.modalBody,modalFooter:l.createElement(l.Fragment,null,null!==(t=m.beforeFooter)&&void 0!==t?t:l.createElement(l.Fragment,null),c&&l.createElement(i.A,{variant:"secondary",onClick:b},m.cancelText&&m.cancelText,!m.cancelText&&(0,u.pw)("Cancel",m.translations)),p&&l.createElement(i.A,{variant:"primary",onClick:m.onSubmit},m.submitText&&m.submitText,!m.submitText&&(0,u.pw)("Confirm",m.translations)))},m,{onHide:b})))}p.propTypes={modalTitle:d().oneOfType([d().string,d().element]).isRequired,modalBody:d().element.isRequired,beforeFooter:d().element,cancelText:d().string,submitText:d().string,onHide:d().func,showCancelBtn:d().bool,showSubmitBtn:d().bool};const m=p},9367:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6540),o=n(5556),a=n.n(o);function i(e){var t,n=(null!==(t=e.size)&&void 0!==t?t:"32")+"px";return r.createElement("div",{className:e.noContainer?"":"d-flex justify-content-center"},r.createElement("div",{className:"spinner align-middle",style:{height:n,width:n,backgroundColor:"transparent"}}))}i.propTypes={size:a().number,noContainer:a().bool};const l=(0,r.memo)(i)},9425:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6540),o=n(1558),a=n(4629),i=n(5724);const l=function(e){var t=(0,o.Zw)(e,{activeKey:"onSelect"}),n=t.id,l=t.generateChildId,s=t.onSelect,u=t.activeKey,c=t.transition,d=t.mountOnEnter,f=t.unmountOnExit,p=t.children,m=(0,r.useMemo)(function(){return l||function(e,t){return n?n+"-"+t+"-"+e:null}},[n,l]),h=(0,r.useMemo)(function(){return{onSelect:s,activeKey:u,transition:c,mountOnEnter:d||!1,unmountOnExit:f||!1,getControlledId:function(e){return m(e,"tabpane")},getControllerId:function(e){return m(e,"tab")}}},[s,u,c,d,f,m]);return r.createElement(a.A.Provider,{value:h},r.createElement(i.A.Provider,{value:s||null},p))}},9473:(e,t,n)=>{"use strict";n.d(t,{S:()=>d,r:()=>p});var r=n(5458),o=n(296),a=n(2284),i=n(3029),l=n(2901),s=n(4467);function u(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){(0,s.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}
/**
 * License limited to a single site, for use on another site please purchase a license for this module.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 *
 * @author    Dingedi.com
 * @copyright Copyright 2025 © Dingedi All right reserved
 * @license   http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
 * @category  Dingedi PrestaShop Modules
 */var d=function(){return(0,l.A)(function e(){(0,i.A)(this,e),(0,s.A)(this,"data",{}),(0,s.A)(this,"item",{table:null,total_items:null}),(0,s.A)(this,"idLangFrom",void 0),(0,s.A)(this,"idLangTo",void 0),(0,s.A)(this,"options",{overwrite:!1,latin:0,plage:{enabled:!1,startId:null,endId:null}}),(0,s.A)(this,"requests",void 0),(0,s.A)(this,"current",void 0),(0,s.A)(this,"translations",null),(0,s.A)(this,"theme",null),(0,s.A)(this,"path",null),(0,s.A)(this,"groupId",null),(0,s.A)(this,"templateId",null),(0,s.A)(this,"provider",null),(0,s.A)(this,"text",null),(0,s.A)(this,"field",null),(0,s.A)(this,"index",null)},[{key:"setOverwrite",value:function(e){this.options.overwrite=e}},{key:"setTranslations",value:function(e){this.translations=e}},{key:"setLatin",value:function(e){this.options.latin=e}},{key:"setPlage",value:function(e,t,n){this.options.plage={enabled:e,startId:t,endId:n}}},{key:"getTableName",value:function(){return this.item.name}},{key:"getSelectedFields",value:function(){var e,t;return null!==(e=null===(t=this.item)||void 0===t?void 0:t.selectedFields)&&void 0!==e?e:null}},{key:"getSelectedFilters",value:function(){var e,t;return null!==(e=null===(t=this.item)||void 0===t?void 0:t.selectedFilters)&&void 0!==e?e:null}},{key:"getSelectedRelatedItems",value:function(){var e,t;return null!==(e=null===(t=this.item)||void 0===t?void 0:t.selectedRelatedItems)&&void 0!==e?e:null}},{key:"getTranslatableItemsTotal",value:function(){return this.options.plage.enabled?this.options.plage.endId-this.options.plage.startId+1:this.item.total_items}},{key:"getTranslationData",value:function(){var e,t={id_lang_from:this.idLangFrom,id_lang_to:this.idLangTo,name:this.getTableName(),overwrite:this.options.overwrite,latin:this.options.latin,requests:this.requests,current:this.current,plage_enabled:this.options.plage.enabled,start_id:this.options.plage.startId,end_id:this.options.plage.endId,selected_fields:this.getSelectedFields(),selected_filters:this.getSelectedFilters(),selected_related_items:this.getSelectedRelatedItems(),translations:this.translations,theme:this.theme,path:this.path,groupId:this.groupId,templateId:this.templateId,provider:this.provider,text:this.text,field:this.field,index:this.index};if(null!=this&&this.data&&"object"===(0,a.A)(this.data))for(var n=0,r=Object.entries(this.data);n<r.length;n++){var i=(0,o.A)(r[n],2),l=i[0],s=i[1];t[l]=s}return e=t,Object.keys(e).filter(function(t){return null!=e[t]}).reduce(function(t,n){return t[n]=e[n],t},{})}}])}();function f(){return"Translation in progress. Are you sure you want to leave the page?"}var p=function(){return(0,l.A)(function e(t,n,r){var o,a=this;(0,i.A)(this,e),(0,s.A)(this,"pause",!1),(0,s.A)(this,"requestsTime",[]),(0,s.A)(this,"errors",[]),(0,s.A)(this,"uuid",void 0),(0,s.A)(this,"totalRequests",0),(0,s.A)(this,"totalUntranslatedRequests",0),(0,s.A)(this,"remainingTimeHistory",[]),(0,s.A)(this,"badEstimations",0),(0,s.A)(this,"newEstimateIndex",!1),(0,s.A)(this,"currentAjaxRequest",!1),(0,s.A)(this,"config",{path:null,always_start:!1,nextGroupWhenFail:!1}),(0,s.A)(this,"callbacks",{callbackStart:null,callbackUpdate:null,callbackEnd:null,callbackError:null,callbackCancel:null,callbackUpdateRemainingTime:null}),(0,s.A)(this,"totalGroups",!1),(0,s.A)(this,"needCancel",!1),this.config=t,this.callbacks=n,this.uuid=null!==(o=window)&&void 0!==o&&null!==(o=o.crypto)&&void 0!==o&&o.randomUUID?window.crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),r.forEach(function(e){a.totalRequests=a.totalRequests+e.requests}),this.translateGroups(r)},[{key:"cancel",value:function(){var e;window.onbeforeunload=function(){return null},this.needCancel=!0,null!==(e=this.currentAjaxRequest)&&void 0!==e&&e.abort&&this.currentAjaxRequest.abort()}},{key:"translateGroups",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.needCancel)if(window.onbeforeunload=f,!0!==this.pause){this.tid&&clearTimeout(this.tid),this.groups||(this.groups=e),this.totalGroups||(this.totalGroups=this.groups.length),this.requestsTime.length&&this.updateTimeRemaining();var o=this.groups[r];!this.callbacks.callbackStart||!0!==(null===(t=this.config)||void 0===t?void 0:t.always_start)&&0!==r||this.callbacks.callbackStart(o);var a=Date.now(),i=c(c({},o.getTranslationData()),{},{uuid:this.uuid}),l=this.errors[JSON.stringify(o)];void 0!==l&&(i.retry=l),this.currentAjaxRequest=$.ajax({async:!0,type:"POST",url:this.config.path,data:{translation_data:i},dataType:"json",success:function(t,l,s){var u,c=(Date.now()-a)/1e3;if(0===(null==t||null===(u=t.data)||void 0===u?void 0:u.translated_chars)&&(c=0,n.totalUntranslatedRequests++),n.requestsTime.push(c),n.needCancel)return n.callbacks.callbackCancel(o);if(!0===t.error)return n.error(o,t.message,r);var d=((null!=i&&i.resume?o.current:n.requestsTime.length)/n.totalRequests*100).toFixed(2);o.current<o.requests?(n.groups[r].current++,n.translateGroups(e,r),n.callbacks.callbackUpdate(o,d,t)):(n.callbacks.callbackUpdate(o,d,t),n.totalGroups>r+1?(n.callbacks.callbackNewGroup&&n.callbacks.callbackNewGroup(n.groups[r+1]),n.translateGroups(e,r+1)):(window.onbeforeunload=function(){return null},n.callbacks.callbackEnd(o,t.message,t)))},error:function(t,a,i){var l,s,u,c,d;if(n.needCancel)return n.callbacks.callbackCancel(o);if(!0===(null==t||null===(l=t.responseJSON)||void 0===l?void 0:l.error)&&(null!=t&&null!==(s=t.responseJSON)&&void 0!==s&&s.message||null!=t&&null!==(u=t.responseJSON)&&void 0!==u&&u.title))d=null==t?void 0:t.responseJSON;else{var f,p,m,h,v=null!==(f=null!==(p=t.responseText)&&void 0!==p?p:t.responseJSON)&&void 0!==f?f:"";d=(null!==(m=t.statusText)&&void 0!==m?m:"")+"-"+(null!==(h=null==t?void 0:t.status)&&void 0!==h?h:"")+v+" INTERNET:"+(window.navigator.onLine?"yes":"no")}return!0===(null===(c=n.config)||void 0===c?void 0:c.nextGroupWhenFail)&&n.totalGroups>r+1&&n.translateGroups(e,r+1),n.error(o,d,r)}})}else this.tid=setTimeout(function(){n.translateGroups(e,r)},1e3)}},{key:"error",value:function(e,t,n){var r=this,o=this.errors[JSON.stringify(e)];if(void 0!==o&&o>=2||!0===this.pause)return window.onbeforeunload=function(){return null},void fetch(this.config.path,{method:"POST"}).then(function(n){return n.redirected&&(t+=" redirect to: "+n.url),r.callbacks.callbackError(e,t)}).catch(function(n){return r.callbacks.callbackError(e,t)});isNaN(o)?this.errors[JSON.stringify(e)]=1:this.errors[JSON.stringify(e)]++,setTimeout(function(){r.translateGroups(r.groups,n)},2e3)}},{key:"updateTimeRemaining",value:function(){if(this.callbacks.callbackUpdateRemainingTime&&0!==this.requestsTime.length){var e=this.requestsTime.filter(function(e){return e>0});if(0!==e.length){var t=e.slice(-30),n=(0,r.A)(t).sort(function(e,t){return e-t}),o=Math.floor(.1*n.length),a=n.slice(o,n.length-o||1),i=a.reduce(function(e,t){return e+t},0)/a.length,l=this.totalRequests-this.totalUntranslatedRequests,s=e.length,u=i*Math.max(l-s,0);"number"==typeof this._lastEstimate&&(u=.3*u+.7*this._lastEstimate),this._lastEstimate=u,this.callbacks.callbackUpdateRemainingTime(u.toFixed(1))}else this.callbacks.callbackUpdateRemainingTime("0.0")}}},{key:"pause",value:function(){this.pause=!0}},{key:"stopPause",value:function(){this.pause=!1}}])}()},9528:(e,t,n)=>{"use strict";n.d(t,{T:()=>o,j:()=>a});var r=n(6540);function o(e,t){var n=0;return r.Children.map(e,function(e){return r.isValidElement(e)?t(e,n++):e})}function a(e,t){var n=0;r.Children.forEach(e,function(e){r.isValidElement(e)&&t(e,n++)})}},9567:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(8168),o=n(8587),a=n(6540),i=(n(8239),n(1558)),l=n(6867),s=n(494),u=n(4501),c=n(9425),d=n(7867),f=n(2014),p=n(9528),m=["id","onSelect","transition","mountOnEnter","unmountOnExit","children","activeKey"];function h(e){var t=e.props,n=t.title,r=t.eventKey,o=t.disabled,i=t.tabClassName,l=t.id;return null==n?null:a.createElement(u.A,{as:s.A,eventKey:r,disabled:o,id:l,className:i},n)}var v=function(e){var t=(0,i.Zw)(e,{activeKey:"onSelect"}),n=t.id,s=t.onSelect,u=t.transition,v=t.mountOnEnter,g=t.unmountOnExit,y=t.children,b=t.activeKey,w=void 0===b?function(e){var t;return(0,p.j)(e,function(e){null==t&&(t=e.props.eventKey)}),t}(y):b,E=(0,o.A)(t,m);return a.createElement(c.A,{id:n,activeKey:w,onSelect:s,transition:u,mountOnEnter:v,unmountOnExit:g},a.createElement(l.A,(0,r.A)({},E,{role:"tablist",as:"nav"}),(0,p.T)(y,h)),a.createElement(d.A,null,(0,p.T)(y,function(e){var t=(0,r.A)({},e.props);return delete t.title,delete t.disabled,delete t.tabClassName,a.createElement(f.A,t)})))};v.defaultProps={variant:"tabs",mountOnEnter:!1,unmountOnExit:!1},v.displayName="Tabs";const g=v},9703:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(8587),a=n(6540),i=n(9751),l=["as","disabled","onKeyDown"];function s(e){return!e||"#"===e.trim()}var u=a.forwardRef(function(e,t){var n=e.as,u=void 0===n?"a":n,c=e.disabled,d=e.onKeyDown,f=(0,o.A)(e,l),p=function(e){var t=f.href,n=f.onClick;(c||s(t))&&e.preventDefault(),c?e.stopPropagation():n&&n(e)};return s(f.href)&&(f.role=f.role||"button",f.href=f.href||"#"),c&&(f.tabIndex=-1,f["aria-disabled"]=!0),a.createElement(u,(0,r.A)({ref:t},f,{onClick:p,onKeyDown:(0,i.A)(function(e){" "===e.key&&(e.preventDefault(),p(e))},d)}))});u.displayName="SafeAnchor";const c=u},9751:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return null!=e}).reduce(function(e,t){if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}},null)}},9771:e=>{"use strict";var t=function(){};e.exports=t},9808:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1625),o=n(6540),a=function(e){var t;return"undefined"==typeof document?null:null==e?(0,r.A)().body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),null!=(t=e)&&t.nodeType&&e||null)};function i(e,t){var n=(0,o.useState)(function(){return a(e)}),r=n[0],i=n[1];if(!r){var l=a(e);l&&i(l)}return(0,o.useEffect)(function(){t&&r&&t(r)},[t,r]),(0,o.useEffect)(function(){var t=a(e);t!==r&&i(t)},[e,r]),r}},9982:(e,t,n)=>{"use strict";e.exports=n(7463)}}]);