@micromerce/formbuilder-react 1.0.805 → 1.0.806

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72,7 +72,7 @@
72
72
  animation-iteration-count: infinite;
73
73
  animation-delay: 200ms;
74
74
  }
75
- `),qe.rippleVisible,$e,550,(({theme:e})=>e.transitions.easing.easeInOut),qe.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),qe.child,qe.childLeaving,Qe,550,(({theme:e})=>e.transitions.easing.easeInOut),qe.childPulsate,We,(({theme:e})=>e.transitions.easing.easeInOut)),Ve=n.forwardRef((function(e,o){const i=(0,ye.b)({props:e,name:"MuiTouchRipple"}),{center:a=!1,classes:s={},className:l}=i,c=(0,r.A)(i,Re),[d,f]=n.useState([]),p=n.useRef(0),h=n.useRef(null);n.useEffect((()=>{h.current&&(h.current(),h.current=null)}),[d]);const m=n.useRef(!1),g=(0,Te.A)(),v=n.useRef(null),y=n.useRef(null),b=n.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:i}=e;f((e=>[...e,(0,u.jsx)(Ue,{classes:{ripple:(0,fe.A)(s.ripple,qe.ripple),rippleVisible:(0,fe.A)(s.rippleVisible,qe.rippleVisible),ripplePulsate:(0,fe.A)(s.ripplePulsate,qe.ripplePulsate),child:(0,fe.A)(s.child,qe.child),childLeaving:(0,fe.A)(s.childLeaving,qe.childLeaving),childPulsate:(0,fe.A)(s.childPulsate,qe.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},p.current)])),p.current+=1,h.current=i}),[s]),A=n.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:o=a||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&m.current)return void(m.current=!1);"touchstart"===(null==e?void 0:e.type)&&(m.current=!0);const s=i?null:y.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(o)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===v.current&&(v.current=()=>{b({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},g.start(80,(()=>{v.current&&(v.current(),v.current=null)}))):b({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[a,b,g]),O=n.useCallback((()=>{A({},{pulsate:!0})}),[A]),w=n.useCallback(((e,t)=>{if(g.clear(),"touchend"===(null==e?void 0:e.type)&&v.current)return v.current(),v.current=null,void g.start(0,(()=>{w(e,t)}));v.current=null,f((e=>e.length>0?e.slice(1):e)),h.current=t}),[g]);return n.useImperativeHandle(o,(()=>({pulsate:O,start:A,stop:w})),[O,A,w]),(0,u.jsx)(ze,(0,t.A)({className:(0,fe.A)(qe.root,s.root,l),ref:y},c,{children:(0,u.jsx)(Pe,{component:null,exit:!0,children:d})}))})),Ze=Ve;var Ye=__webpack_require__(31609);function He(e){return(0,Ye.Ay)("MuiButtonBase",e)}const Ge=(0,je.A)("MuiButtonBase",["root","disabled","focusVisible"]),Xe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Ke=(0,ge.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Ge.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Je=n.forwardRef((function(e,o){const i=(0,ye.b)({props:e,name:"MuiButtonBase"}),{action:a,centerRipple:s=!1,children:l,className:c,component:d="button",disabled:f=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:m=!1,LinkComponent:g="a",onBlur:v,onClick:y,onContextMenu:b,onDragLeave:A,onFocus:O,onFocusVisible:w,onKeyDown:C,onKeyUp:_,onMouseDown:x,onMouseLeave:k,onMouseUp:E,onTouchEnd:S,onTouchMove:D,onTouchStart:P,tabIndex:B=0,TouchRippleProps:T,touchRippleRef:j,type:q}=i,R=(0,r.A)(i,Xe),M=n.useRef(null),F=n.useRef(null),N=(0,be.A)(F,j),{isFocusVisibleRef:L,onFocus:I,onBlur:$,ref:Q}=(0,Oe.A)(),[W,z]=n.useState(!1);f&&W&&z(!1),n.useImperativeHandle(a,(()=>({focusVisible:()=>{z(!0),M.current.focus()}})),[]);const[U,V]=n.useState(!1);n.useEffect((()=>{V(!0)}),[]);const Z=U&&!p&&!f;function Y(e,t,r=h){return(0,Ae.A)((n=>(t&&t(n),!r&&F.current&&F.current[e](n),!0)))}n.useEffect((()=>{W&&m&&!p&&U&&F.current.pulsate()}),[p,m,W,U]);const H=Y("start",x),G=Y("stop",b),X=Y("stop",A),K=Y("stop",E),J=Y("stop",(e=>{W&&e.preventDefault(),k&&k(e)})),ee=Y("start",P),te=Y("stop",S),re=Y("stop",D),ne=Y("stop",(e=>{$(e),!1===L.current&&z(!1),v&&v(e)}),!1),oe=(0,Ae.A)((e=>{M.current||(M.current=e.currentTarget),I(e),!0===L.current&&(z(!0),w&&w(e)),O&&O(e)})),ie=()=>{const e=M.current;return d&&"button"!==d&&!("A"===e.tagName&&e.href)},ae=n.useRef(!1),se=(0,Ae.A)((e=>{m&&!ae.current&&W&&F.current&&" "===e.key&&(ae.current=!0,F.current.stop(e,(()=>{F.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),y&&y(e))})),le=(0,Ae.A)((e=>{m&&" "===e.key&&F.current&&W&&!e.defaultPrevented&&(ae.current=!1,F.current.stop(e,(()=>{F.current.pulsate(e)}))),_&&_(e),y&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&y(e)}));let ue=d;"button"===ue&&(R.href||R.to)&&(ue=g);const ce={};"button"===ue?(ce.type=void 0===q?"button":q,ce.disabled=f):(R.href||R.to||(ce.role="button"),f&&(ce["aria-disabled"]=f));const de=(0,be.A)(o,Q,M),pe=(0,t.A)({},i,{centerRipple:s,component:d,disabled:f,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:B,focusVisible:W}),me=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i={root:["root",t&&"disabled",r&&"focusVisible"]},a=(0,he.A)(i,He,o);return r&&n&&(a.root+=` ${n}`),a})(pe);return(0,u.jsxs)(Ke,(0,t.A)({as:ue,className:(0,fe.A)(me.root,c),ownerState:pe,onBlur:ne,onClick:y,onContextMenu:G,onFocus:oe,onKeyDown:se,onKeyUp:le,onMouseDown:H,onMouseLeave:J,onMouseUp:K,onDragLeave:X,onTouchEnd:te,onTouchMove:re,onTouchStart:ee,ref:de,tabIndex:f?-1:B,type:q},ce,R,{children:[l,Z?(0,u.jsx)(Ze,(0,t.A)({ref:N,center:s},T)):null]}))}));var et=__webpack_require__(28466);function tt(e){return(0,Ye.Ay)("MuiButton",e)}const rt=(0,je.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),nt=n.createContext({}),ot=n.createContext(void 0),it=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],at=e=>(0,t.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),st=(0,ge.Ay)(Je,{shouldForwardProp:e=>(0,ve.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,et.A)(r.color)}`],t[`size${(0,et.A)(r.size)}`],t[`${r.variant}Size${(0,et.A)(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:r})=>{var n,o;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,t.A)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,t.A)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,me.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===r.variant&&"inherit"!==r.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,me.X4)(e.palette[r.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===r.variant&&"inherit"!==r.color&&{border:`1px solid ${(e.vars||e).palette[r.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,me.X4)(e.palette[r.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===r.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===r.variant&&"inherit"!==r.color&&{backgroundColor:(e.vars||e).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[r.color].main}}),"&:active":(0,t.A)({},"contained"===r.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${rt.focusVisible}`]:(0,t.A)({},"contained"===r.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${rt.disabled}`]:(0,t.A)({color:(e.vars||e).palette.action.disabled},"outlined"===r.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===r.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===r.variant&&{padding:"6px 8px"},"text"===r.variant&&"inherit"!==r.color&&{color:(e.vars||e).palette[r.color].main},"outlined"===r.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===r.variant&&"inherit"!==r.color&&{color:(e.vars||e).palette[r.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[r.color].mainChannel} / 0.5)`:`1px solid ${(0,me.X4)(e.palette[r.color].main,.5)}`},"contained"===r.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(o=e.palette).getContrastText)?void 0:n.call(o,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===r.variant&&"inherit"!==r.color&&{color:(e.vars||e).palette[r.color].contrastText,backgroundColor:(e.vars||e).palette[r.color].main},"inherit"===r.color&&{color:"inherit",borderColor:"currentColor"},"small"===r.size&&"text"===r.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===r.size&&"text"===r.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===r.size&&"outlined"===r.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===r.size&&"outlined"===r.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===r.size&&"contained"===r.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===r.size&&"contained"===r.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},r.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${rt.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${rt.disabled}`]:{boxShadow:"none"}})),lt=(0,ge.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${(0,et.A)(r.size)}`]]}})((({ownerState:e})=>(0,t.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},at(e)))),ut=(0,ge.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${(0,et.A)(r.size)}`]]}})((({ownerState:e})=>(0,t.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},at(e)))),ct=n.forwardRef((function(e,o){const i=n.useContext(nt),a=n.useContext(ot),s=(0,pe.A)(i,e),l=(0,ye.b)({props:s,name:"MuiButton"}),{children:c,color:d="primary",component:f="button",className:p,disabled:h=!1,disableElevation:m=!1,disableFocusRipple:g=!1,endIcon:v,focusVisibleClassName:y,fullWidth:b=!1,size:A="medium",startIcon:O,type:w,variant:C="text"}=l,_=(0,r.A)(l,it),x=(0,t.A)({},l,{color:d,component:f,disabled:h,disableElevation:m,disableFocusRipple:g,fullWidth:b,size:A,type:w,variant:C}),k=(e=>{const{color:r,disableElevation:n,fullWidth:o,size:i,variant:a,classes:s}=e,l={root:["root",a,`${a}${(0,et.A)(r)}`,`size${(0,et.A)(i)}`,`${a}Size${(0,et.A)(i)}`,`color${(0,et.A)(r)}`,n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${(0,et.A)(i)}`],endIcon:["icon","endIcon",`iconSize${(0,et.A)(i)}`]},u=(0,he.A)(l,tt,s);return(0,t.A)({},s,u)})(x),E=O&&(0,u.jsx)(lt,{className:k.startIcon,ownerState:x,children:O}),S=v&&(0,u.jsx)(ut,{className:k.endIcon,ownerState:x,children:v}),D=a||"";return(0,u.jsxs)(st,(0,t.A)({ownerState:x,className:(0,fe.A)(i.className,k.root,p,D),component:f,disabled:h,focusRipple:!g,focusVisibleClassName:(0,fe.A)(k.focusVisible,y),ref:o,type:w},_,{classes:k,children:[E,c,S]}))})),dt=ct,ft=n.createContext(void 0);function pt(){return n.useContext(ft)}var ht=__webpack_require__(11317),mt=__webpack_require__(10733),gt=__webpack_require__(58749),vt=__webpack_require__(33571);const yt=["ownerState"],bt=["variants"],At=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ot(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const wt=(0,gt.A)(),Ct=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function _t({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function xt(e){return e?(t,r)=>r[e]:null}function kt(e,n){let{ownerState:o}=n,i=(0,r.A)(n,yt);const a="function"==typeof e?e((0,t.A)({ownerState:o},i)):e;if(Array.isArray(a))return a.flatMap((e=>kt(e,(0,t.A)({ownerState:o},i))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let n=(0,r.A)(a,bt);return e.forEach((e=>{let r=!0;"function"==typeof e.props?r=e.props((0,t.A)({ownerState:o},i,o)):Object.keys(e.props).forEach((t=>{(null==o?void 0:o[t])!==e.props[t]&&i[t]!==e.props[t]&&(r=!1)})),r&&(Array.isArray(n)||(n=[n]),n.push("function"==typeof e.style?e.style((0,t.A)({ownerState:o},i,o)):e.style))})),n}return a}const Et=function(e={}){const{themeId:n,defaultTheme:o=wt,rootShouldForwardProp:i=Ot,slotShouldForwardProp:a=Ot}=e,s=e=>(0,vt.A)((0,t.A)({},e,{theme:_t((0,t.A)({},e,{defaultTheme:o,themeId:n}))}));return s.__mui_systemSx=!0,(e,l={})=>{(0,mt.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:u,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=xt(Ct(c))}=l,h=(0,r.A)(l,At),m=void 0!==d?d:c&&"Root"!==c&&"root"!==c||!1,g=f||!1;let v=Ot;"Root"===c||"root"===c?v=i:c?v=a:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(v=void 0);const y=(0,mt.default)(e,(0,t.A)({shouldForwardProp:v,label:void 0},h)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,ht.Q)(e)?r=>kt(e,(0,t.A)({},r,{theme:_t({theme:r.theme,defaultTheme:o,themeId:n})})):e,A=(r,...i)=>{let a=b(r);const l=i?i.map(b):[];u&&p&&l.push((e=>{const r=_t((0,t.A)({},e,{defaultTheme:o,themeId:n}));if(!r.components||!r.components[u]||!r.components[u].styleOverrides)return null;const i=r.components[u].styleOverrides,a={};return Object.entries(i).forEach((([n,o])=>{a[n]=kt(o,(0,t.A)({},e,{theme:r}))})),p(e,a)})),u&&!m&&l.push((e=>{var r;const i=_t((0,t.A)({},e,{defaultTheme:o,themeId:n}));return kt({variants:null==i||null==(r=i.components)||null==(r=r[u])?void 0:r.variants},(0,t.A)({},e,{theme:i}))})),g||l.push(s);const c=l.length-i.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const d=y(a,...l);return e.muiName&&(d.muiName=e.muiName),d};return y.withConfig&&(A.withConfig=y.withConfig),A}}(),St=Et,Dt=(0,gt.A)(),Pt=function(e=Dt){return f(e)};var Bt=__webpack_require__(39599),Tt=__webpack_require__(89452),jt=__webpack_require__(68248);const qt=["component","direction","spacing","divider","children","className","useFlexGap"],Rt=(0,gt.A)(),Mt=St("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Ft(e){return function({props:e,name:t,defaultTheme:r,themeId:n}){let o=Pt(r);n&&(o=o[n]||o);const i=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,pe.A)(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}({props:e,name:"MuiStack",defaultTheme:Rt})}function Nt(e,t){const r=n.Children.toArray(e).filter(Boolean);return r.reduce(((e,o,i)=>(e.push(o),i<r.length-1&&e.push(n.cloneElement(t,{key:`separator-${i}`})),e)),[])}const Lt=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[e]),It=({ownerState:e,theme:r})=>{let n=(0,t.A)({display:"flex",flexDirection:"column"},(0,Tt.NI)({theme:r},(0,Tt.kW)({values:e.direction,breakpoints:r.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const t=(0,jt.LX)(r),o=Object.keys(r.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),i=(0,Tt.kW)({values:e.direction,base:o}),a=(0,Tt.kW)({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,r)=>{if(!i[e]){const n=t>0?i[r[t-1]]:"column";i[e]=n}}));const s=(r,n)=>e.useFlexGap?{gap:(0,jt._W)(t,r)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Lt(n?i[n]:e.direction)}`]:(0,jt._W)(t,r)}};n=(0,ht.A)(n,(0,Tt.NI)({theme:r},a,s))}return n=(0,Tt.iZ)(r.breakpoints,n),n},$t=function(e={}){const{createStyledComponent:o=Mt,useThemeProps:i=Ft,componentName:a="MuiStack"}=e,s=o(It),l=n.forwardRef((function(e,n){const o=i(e),l=(0,Bt.A)(o),{component:c="div",direction:d="column",spacing:f=0,divider:p,children:h,className:m,useFlexGap:g=!1}=l,v=(0,r.A)(l,qt),y={direction:d,spacing:f,useFlexGap:g},b=(0,he.A)({root:["root"]},(e=>(0,Ye.Ay)(a,e)),{});return(0,u.jsx)(s,(0,t.A)({as:c,ownerState:y,ref:n,className:(0,fe.A)(b.root,m)},v,{children:p?Nt(h,p):h}))}));return l}({createStyledComponent:(0,ge.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,ye.b)({props:e,name:"MuiStack"})}),Qt=$t;function Wt(e){return(0,Ye.Ay)("MuiTypography",e)}(0,je.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const zt=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ut=(0,ge.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${(0,et.A)(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:r})=>(0,t.A)({margin:0},"inherit"===r.variant&&{font:"inherit"},"inherit"!==r.variant&&e.typography[r.variant],"inherit"!==r.align&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16}))),Vt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Zt={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Yt=n.forwardRef((function(e,n){const o=(0,ye.b)({props:e,name:"MuiTypography"}),i=(e=>Zt[e]||e)(o.color),a=(0,Bt.A)((0,t.A)({},o,{color:i})),{align:s="inherit",className:l,component:c,gutterBottom:d=!1,noWrap:f=!1,paragraph:p=!1,variant:h="body1",variantMapping:m=Vt}=a,g=(0,r.A)(a,zt),v=(0,t.A)({},a,{align:s,color:i,className:l,component:c,gutterBottom:d,noWrap:f,paragraph:p,variant:h,variantMapping:m}),y=c||(p?"p":m[h]||Vt[h])||"span",b=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,"inherit"!==e.align&&`align${(0,et.A)(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return(0,he.A)(s,Wt,a)})(v);return(0,u.jsx)(Ut,(0,t.A)({as:y,ref:n,ownerState:v,className:(0,fe.A)(b.root,l)},g))})),Ht=Yt;function Gt(e){return(0,Ye.Ay)("MuiFormControlLabel",e)}const Xt=(0,je.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);function Kt({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const Jt=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],er=(0,ge.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Xt.label}`]:t.label},t.root,t[`labelPlacement${(0,et.A)(r.labelPlacement)}`]]}})((({theme:e,ownerState:r})=>(0,t.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Xt.disabled}`]:{cursor:"default"}},"start"===r.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===r.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===r.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Xt.label}`]:{[`&.${Xt.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),tr=(0,ge.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Xt.error}`]:{color:(e.vars||e).palette.error.main}}))),rr=n.forwardRef((function(e,o){var i,a;const s=(0,ye.b)({props:e,name:"MuiFormControlLabel"}),{className:l,componentsProps:c={},control:d,disabled:f,disableTypography:p,label:h,labelPlacement:m="end",required:g,slotProps:v={}}=s,y=(0,r.A)(s,Jt),b=pt(),A=null!=(i=null!=f?f:d.props.disabled)?i:null==b?void 0:b.disabled,O=null!=g?g:d.props.required,w={disabled:A,required:O};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===d.props[e]&&void 0!==s[e]&&(w[e]=s[e])}));const C=Kt({props:s,muiFormControl:b,states:["error"]}),_=(0,t.A)({},s,{disabled:A,labelPlacement:m,required:O,error:C.error}),x=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:i}=e,a={root:["root",r&&"disabled",`labelPlacement${(0,et.A)(n)}`,o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,he.A)(a,Gt,t)})(_),k=null!=(a=v.typography)?a:c.typography;let E=h;return null==E||E.type===Ht||p||(E=(0,u.jsx)(Ht,(0,t.A)({component:"span"},k,{className:(0,fe.A)(x.label,null==k?void 0:k.className),children:E}))),(0,u.jsxs)(er,(0,t.A)({className:(0,fe.A)(x.root,l),ownerState:_,ref:o},y,{children:[n.cloneElement(d,w),O?(0,u.jsxs)(Qt,{display:"block",children:[E,(0,u.jsxs)(tr,{ownerState:_,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}):E]}))})),nr=rr;var or=__webpack_require__(14792),ir=__webpack_require__.n(or),ar=__webpack_require__(78729),sr=__webpack_require__(62600);const lr=function(){return i().createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i().createElement("path",{d:"M8.1 11.7H9.9V13.5H8.1V11.7ZM8.1 4.5H9.9V9.9H8.1V4.5ZM8.991 0C4.023 0 0 4.032 0 9C0 13.968 4.023 18 8.991 18C13.968 18 18 13.968 18 9C18 4.032 13.968 0 8.991 0ZM9 16.2C5.022 16.2 1.8 12.978 1.8 9C1.8 5.022 5.022 1.8 9 1.8C12.978 1.8 16.2 5.022 16.2 9C16.2 12.978 12.978 16.2 9 16.2Z",fill:"#B01F14"}))};var ur=__webpack_require__(13518),cr={};cr.styleTagTransform=L(),cr.setAttributes=R(),cr.insert=j().bind(null,"head"),cr.domAPI=B(),cr.insertStyleElement=F(),D()(ur.A,cr);const dr=ur.A&&ur.A.locals?ur.A.locals:void 0;function fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const pr=function(e){var t=e.error,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,n.useState)(!1),2),o=r[0],a=r[1];return i().createElement("div",{className:dr.errorContainer,"data-testid":"form-general-error-container"},i().createElement("div",{className:dr.iconWrapper},i().createElement(lr,null)),i().createElement("p",{className:"".concat(dr.errorMessage," ").concat(o?"":dr.closed),"data-testid":"form-general-error-message"},t),i().createElement("div",{className:dr.errorMessageToggleButtonContainer},i().createElement("button",{type:"button",onClick:function(){a((function(e){return!e}))}},o?i().createElement(ar.V,{"data-testid":"form-list__sort-down-button",color:"#B01F14"}):i().createElement(sr.U,{"data-testid":"form-list__sort-up-button",color:"#B01F14"}))))};var hr=__webpack_require__(89167),mr={};mr.styleTagTransform=L(),mr.setAttributes=R(),mr.insert=j().bind(null,"head"),mr.domAPI=B(),mr.insertStyleElement=F(),D()(hr.A,mr);const gr=hr.A&&hr.A.locals?hr.A.locals:void 0;var vr=__webpack_require__(41159);function yr(e){return(0,Ye.Ay)("PrivateSwitchBase",e)}(0,je.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const br=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Ar=(0,ge.Ay)(Je)((({ownerState:e})=>(0,t.A)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Or=(0,ge.Ay)("input",{shouldForwardProp:ve.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),wr=n.forwardRef((function(e,n){const{autoFocus:o,checked:i,checkedIcon:a,className:s,defaultChecked:l,disabled:c,disableFocusRipple:d=!1,edge:f=!1,icon:p,id:h,inputProps:m,inputRef:g,name:v,onBlur:y,onChange:b,onFocus:A,readOnly:O,required:w=!1,tabIndex:C,type:_,value:x}=e,k=(0,r.A)(e,br),[E,S]=(0,vr.A)({controlled:i,default:Boolean(l),name:"SwitchBase",state:"checked"}),D=pt();let P=c;D&&void 0===P&&(P=D.disabled);const B="checkbox"===_||"radio"===_,T=(0,t.A)({},e,{checked:E,disabled:P,disableFocusRipple:d,edge:f}),j=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,i={root:["root",r&&"checked",n&&"disabled",o&&`edge${(0,et.A)(o)}`],input:["input"]};return(0,he.A)(i,yr,t)})(T);return(0,u.jsxs)(Ar,(0,t.A)({component:"span",className:(0,fe.A)(j.root,s),centerRipple:!0,focusRipple:!d,disabled:P,tabIndex:null,role:void 0,onFocus:e=>{A&&A(e),D&&D.onFocus&&D.onFocus(e)},onBlur:e=>{y&&y(e),D&&D.onBlur&&D.onBlur(e)},ownerState:T,ref:n},k,{children:[(0,u.jsx)(Or,(0,t.A)({autoFocus:o,checked:i,defaultChecked:l,className:j.input,disabled:P,id:B?h:void 0,name:v,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;S(t),b&&b(e,t)},readOnly:O,ref:g,required:w,ownerState:T,tabIndex:C,type:_},"checkbox"===_&&void 0===x?{}:{value:x},m)),E?a:p]}))})),Cr=wr;function _r(e){return(0,Ye.Ay)("MuiSwitch",e)}const xr=(0,je.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),kr=["className","color","edge","size","sx"],Er=(0,ge.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${(0,et.A)(r.edge)}`],t[`size${(0,et.A)(r.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${xr.thumb}`]:{width:16,height:16},[`& .${xr.switchBase}`]:{padding:4,[`&.${xr.checked}`]:{transform:"translateX(16px)"}}}}]}),Sr=(0,ge.Ay)(Cr,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${xr.input}`]:t.input},"default"!==r.color&&t[`color${(0,et.A)(r.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${xr.checked}`]:{transform:"translateX(20px)"},[`&.${xr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${xr.checked} + .${xr.track}`]:{opacity:.5},[`&.${xr.disabled} + .${xr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${xr.input}`]:{left:"-100%",width:"300%"}})),(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,me.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([t])=>({props:{color:t},style:{[`&.${xr.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,me.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?(0,me.a)(e.palette[t].main,.62):(0,me.e$)(e.palette[t].main,.55)}`}},[`&.${xr.checked} + .${xr.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}})))]}))),Dr=(0,ge.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),Pr=(0,ge.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Br=n.forwardRef((function(e,n){const o=(0,ye.b)({props:e,name:"MuiSwitch"}),{className:i,color:a="primary",edge:s=!1,size:l="medium",sx:c}=o,d=(0,r.A)(o,kr),f=(0,t.A)({},o,{color:a,edge:s,size:l}),p=(e=>{const{classes:r,edge:n,size:o,color:i,checked:a,disabled:s}=e,l={root:["root",n&&`edge${(0,et.A)(n)}`,`size${(0,et.A)(o)}`],switchBase:["switchBase",`color${(0,et.A)(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,he.A)(l,_r,r);return(0,t.A)({},r,u)})(f),h=(0,u.jsx)(Pr,{className:p.thumb,ownerState:f});return(0,u.jsxs)(Er,{className:(0,fe.A)(p.root,i),sx:c,ownerState:f,children:[(0,u.jsx)(Sr,(0,t.A)({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:f},d,{classes:(0,t.A)({},p,{root:p.switchBase})})),(0,u.jsx)(Dr,{className:p.track,ownerState:f})]})})),Tr=Br;var jr=(0,ge.Ay)(Tr)((function(){return{"& .MuiSwitch-switchBase.Mui-checked":{color:"white"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#4A96D2",opacity:1,"&:hover":{backgroundColor:"#255F8E"}}}}));function qr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qr(e,t,r[t])}))}return e}var Mr={add:i().createElement(ue.A,{"data-testid":"formfooter__add-icon"}),save:i().createElement(ce.A,{"data-testid":"formfooter__save-icon"}),update:i().createElement(de.K,{size:14,"data-testid":"formfooter__update-icon"})};const Fr=function(e){var t,r,o,a,s,l,u,c,d,f,p,h=e.controlProps,m=e.error,g=e.iconType,v=e.loading,y=e.onSubmit,b=(0,n.useContext)(E.og),A=b.formControls,O=b.isExpertMode,w=b.hasExpertMode,C=b.toggleExpertMode,_=g&&Mr[g.toLowerCase()],x=g&&ir()(g)||"Add",k=null!==(t=null==h||null===(s=h.footerProps)||void 0===s?void 0:s.style)&&void 0!==t?t:{},S=null!==(r=null==h||null===(u=h.footerProps)||void 0===u||null===(l=u.container)||void 0===l?void 0:l.style)&&void 0!==r?r:{},D=null!==(o=null==h||null===(d=h.footerProps)||void 0===d||null===(c=d.submitButtonContainer)||void 0===c?void 0:c.style)&&void 0!==o?o:{},P=null!==(a=null==h||null===(p=h.footerProps)||void 0===p||null===(f=p.submitButton)||void 0===f?void 0:f.sx)&&void 0!==a?a:{};return i().createElement("div",{"data-testid":"form-footer-container",className:gr["form-footer-container"],style:k},m&&i().createElement("div",{className:gr.notificationContainer},i().createElement(pr,{error:m})),i().createElement("div",{className:gr.controlsContainer,style:S},w?i().createElement(nr,{"data-testid":"formfooter__expert-mode",control:i().createElement(jr,{checked:O,onChange:C}),label:"Expert Mode",sx:{color:"rgba(0,0,0,.54)",marginBottom:0,input:{marginTop:0},".MuiTypography-root":{fontSize:12}}}):i().createElement("div",null),i().createElement("div",{className:gr["submit-container"],style:D},i().createElement("span",{className:gr["required-message"]},"* Please fill in all required fields"),i().createElement(dt,{"data-testid":"formfooter__submit",id:"submit-button",variant:"contained",type:"submit",form:"form-horizontal xhtmlInstantForm",onClick:function(){return y(A)},disabled:v,sx:Rr({backgroundColor:"#4A96D2",boxShadow:"none","&:hover":{backgroundColor:"#0B5BA6",boxShadow:"none"}},P),endIcon:v?i().createElement("svg",{className:"".concat(gr["run-button__spinner"]," run-button__spinner"),"data-testid":"formfooter__loading-icon",xmlns:"http://www.w3.org/2000/svg",width:"21.076",height:"20.31",viewBox:"0 0 21.076 20.31"},i().createElement("g",{id:"Gruppe_272","data-name":"Gruppe 272",transform:"translate(-269.58 -82.717)"},i().createElement("path",{id:"Pfad_338","data-name":"Pfad 338",d:"M278.934,84.754l3.514-2.03v4.06l-3.514,2.03Z",transform:"translate(-5.841 -0.004)",fill:"#fff"}),i().createElement("path",{id:"Pfad_339","data-name":"Pfad 339",d:"M288.29,86.784v-4.06l3.514,2.03v4.06Z",transform:"translate(-11.683 -0.004)",fill:"#f0f0f0"}),i().createElement("path",{id:"Pfad_340","data-name":"Pfad 340",d:"M282.45,119.233v-4.06l-3.514,2.03v4.06Z",transform:"translate(-5.842 -20.266)",fill:"#f0f0f0"}),i().createElement("path",{id:"Pfad_341","data-name":"Pfad 341",d:"M285.963,128.014l-3.515-2.03-3.514,2.03,3.514,2.03Z",transform:"translate(-5.841 -27.017)",fill:"#fff"}),i().createElement("path",{id:"Pfad_342","data-name":"Pfad 342",d:"M297.625,124.639l3.514,2.03v-4.06l-3.514-2.03Z",transform:"translate(-17.513 -23.642)",fill:"#fff"}),i().createElement("path",{id:"Pfad_343","data-name":"Pfad 343",d:"M306.981,122.609v4.06l3.514-2.03v-4.06Z",transform:"translate(-23.355 -23.642)",fill:"#f0f0f0"}),i().createElement("path",{id:"Pfad_344","data-name":"Pfad 344",d:"M273.094,106.394v4.06l-3.514-2.03v-4.06Z",transform:"translate(0 -13.516)",fill:"#f0f0f0"}),i().createElement("path",{id:"Pfad_345","data-name":"Pfad 345",d:"M276.608,100.988l-3.514,2.03-3.514-2.03,3.514-2.03Z",transform:"translate(0 -10.141)",fill:"#fff"}),i().createElement("path",{id:"Pfad_346","data-name":"Pfad 346",d:"M310.5,92.185l-3.514,2.03v-4.06l3.514-2.03Z",transform:"translate(-23.355 -3.377)",fill:"#f0f0f0"}),i().createElement("path",{id:"Pfad_347","data-name":"Pfad 347",d:"M304.657,84.747l-3.514,2.03-3.514-2.03,3.514-2.03Z",transform:"translate(-17.515)",fill:"#fff"}),i().createElement("path",{id:"Pfad_348","data-name":"Pfad 348",d:"M319.853,100.968l-3.514-2.03V103l3.514,2.03Z",transform:"translate(-29.198 -10.129)",fill:"#f0f0f0"}),i().createElement("path",{id:"Pfad_349","data-name":"Pfad 349",d:"M314.011,111.778l-3.514-2.03-3.514,2.03,3.514,2.03Z",transform:"translate(-23.356 -16.879)",fill:"#fff"}))):_||Mr.add},x))))};var Nr=__webpack_require__(58156),Lr=__webpack_require__.n(Nr),Ir=__webpack_require__(6924),$r=__webpack_require__.n(Ir),Qr=__webpack_require__(96175),Wr={};Wr.styleTagTransform=L(),Wr.setAttributes=R(),Wr.insert=j().bind(null,"head"),Wr.domAPI=B(),Wr.insertStyleElement=F(),D()(Qr.A,Wr);const zr=Qr.A&&Qr.A.locals?Qr.A.locals:void 0,Ur=function(e){return"string"==typeof e},Vr=function(e,r,n){return void 0===e||Ur(e)?r:(0,t.A)({},r,{ownerState:(0,t.A)({},r.ownerState,n)})};var Zr=__webpack_require__(22765);function Yr(){const e=Pt(Zr.A);return e[O.A]||e}var Hr=__webpack_require__(69514),Gr=__webpack_require__.n(Hr);var Xr="unmounted",Kr="exited",Jr="entering",en="entered",tn="exiting",rn=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Kr,n.appearStatus=Jr):o=en:o=t.unmountOnExit||t.mountOnEnter?Xr:Kr,n.state={status:o},n.nextCallback=null,n}Ce(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Xr?{status:Kr}: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 r=this.state.status;this.props.in?r!==Jr&&r!==en&&(t=Jr):r!==Jr&&r!==en||(t=tn)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Jr){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:Gr().findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Kr&&this.setState({status:Xr})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[Gr().findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;e||r?(this.props.onEnter(i,a),this.safeSetState({status:Jr},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:en},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:en},(function(){t.props.onEntered(i)}))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:Gr().findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:tn},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Kr},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Kr},(function(){e.props.onExited(n)}))},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,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:Gr().findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Xr)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 i().createElement(_e.Provider,{value:null},"function"==typeof n?n(e,o):i().cloneElement(i().Children.only(n),o))},t}(i().Component);function nn(){}rn.contextType=_e,rn.propTypes={},rn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:nn,onEntering:nn,onEntered:nn,onExit:nn,onExiting:nn,onExited:nn},rn.UNMOUNTED=Xr,rn.EXITED=Kr,rn.ENTERING=Jr,rn.ENTERED=en,rn.EXITING=tn;const on=rn,an=e=>e.scrollTop;function sn(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const ln=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function un(e){return`scale(${e}, ${e**2})`}const cn={entering:{opacity:1,transform:un(1)},entered:{opacity:1,transform:"none"}},dn="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fn=n.forwardRef((function(e,o){const{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:d,onEntered:f,onEntering:p,onExit:h,onExited:m,onExiting:g,style:v,timeout:y="auto",TransitionComponent:b=on}=e,A=(0,r.A)(e,ln),O=(0,Te.A)(),w=n.useRef(),C=Yr(),_=n.useRef(null),x=(0,be.A)(_,s.ref,o),k=e=>t=>{if(e){const r=_.current;void 0===t?e(r):e(r,t)}},E=k(p),S=k(((e,t)=>{an(e);const{duration:r,delay:n,easing:o}=sn({style:v,timeout:y,easing:l},{mode:"enter"});let i;"auto"===y?(i=C.transitions.getAutoHeightDuration(e.clientHeight),w.current=i):i=r,e.style.transition=[C.transitions.create("opacity",{duration:i,delay:n}),C.transitions.create("transform",{duration:dn?i:.666*i,delay:n,easing:o})].join(","),d&&d(e,t)})),D=k(f),P=k(g),B=k((e=>{const{duration:t,delay:r,easing:n}=sn({style:v,timeout:y,easing:l},{mode:"exit"});let o;"auto"===y?(o=C.transitions.getAutoHeightDuration(e.clientHeight),w.current=o):o=t,e.style.transition=[C.transitions.create("opacity",{duration:o,delay:r}),C.transitions.create("transform",{duration:dn?o:.666*o,delay:dn?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=un(.75),h&&h(e)})),T=k(m);return(0,u.jsx)(b,(0,t.A)({appear:a,in:c,nodeRef:_,onEnter:S,onEntered:D,onEntering:E,onExit:B,onExited:T,onExiting:P,addEndListener:e=>{"auto"===y&&O.start(w.current||0,e),i&&i(_.current,e)},timeout:"auto"===y?null:y},A,{children:(e,r)=>n.cloneElement(s,(0,t.A)({style:(0,t.A)({opacity:0,transform:un(.75),visibility:"exited"!==e||c?void 0:"hidden"},cn[e],v,s.props.style),ref:x},r))}))}));fn.muiSupportAuto=!0;const pn=fn;var hn=__webpack_require__(72923),mn=__webpack_require__(31523),gn=__webpack_require__(21529),vn=__webpack_require__(32325);function yn(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bn(e){return e instanceof yn(e).Element||e instanceof Element}function An(e){return e instanceof yn(e).HTMLElement||e instanceof HTMLElement}function On(e){return"undefined"!=typeof ShadowRoot&&(e instanceof yn(e).ShadowRoot||e instanceof ShadowRoot)}var wn=Math.max,Cn=Math.min,_n=Math.round;function xn(){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 kn(){return!/^((?!chrome|android).)*safari/i.test(xn())}function En(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&An(e)&&(o=e.offsetWidth>0&&_n(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&_n(n.height)/e.offsetHeight||1);var a=(bn(e)?yn(e):window).visualViewport,s=!kn()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/o,u=(n.top+(s&&a?a.offsetTop:0))/i,c=n.width/o,d=n.height/i;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function Sn(e){var t=yn(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Dn(e){return e?(e.nodeName||"").toLowerCase():null}function Pn(e){return((bn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bn(e){return En(Pn(e)).left+Sn(e).scrollLeft}function Tn(e){return yn(e).getComputedStyle(e)}function jn(e){var t=Tn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function qn(e,t,r){void 0===r&&(r=!1);var n=An(t),o=An(t)&&function(e){var t=e.getBoundingClientRect(),r=_n(t.width)/e.offsetWidth||1,n=_n(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),i=Pn(t),a=En(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(("body"!==Dn(t)||jn(i))&&(s=function(e){return e!==yn(e)&&An(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Sn(e);var t}(t)),An(t)?((l=En(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Bn(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Rn(e){var t=En(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Mn(e){return"html"===Dn(e)?e:e.assignedSlot||e.parentNode||(On(e)?e.host:null)||Pn(e)}function Fn(e){return["html","body","#document"].indexOf(Dn(e))>=0?e.ownerDocument.body:An(e)&&jn(e)?e:Fn(Mn(e))}function Nn(e,t){var r;void 0===t&&(t=[]);var n=Fn(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=yn(n),a=o?[i].concat(i.visualViewport||[],jn(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Nn(Mn(a)))}function Ln(e){return["table","td","th"].indexOf(Dn(e))>=0}function In(e){return An(e)&&"fixed"!==Tn(e).position?e.offsetParent:null}function $n(e){for(var t=yn(e),r=In(e);r&&Ln(r)&&"static"===Tn(r).position;)r=In(r);return r&&("html"===Dn(r)||"body"===Dn(r)&&"static"===Tn(r).position)?t:r||function(e){var t=/firefox/i.test(xn());if(/Trident/i.test(xn())&&An(e)&&"fixed"===Tn(e).position)return null;var r=Mn(e);for(On(r)&&(r=r.host);An(r)&&["html","body"].indexOf(Dn(r))<0;){var n=Tn(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var Qn="top",Wn="bottom",zn="right",Un="left",Vn="auto",Zn=[Qn,Wn,zn,Un],Yn="start",Hn="end",Gn="viewport",Xn="popper",Kn=Zn.reduce((function(e,t){return e.concat([t+"-"+Yn,t+"-"+Hn])}),[]),Jn=[].concat(Zn,[Vn]).reduce((function(e,t){return e.concat([t,t+"-"+Yn,t+"-"+Hn])}),[]),eo=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function to(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}var ro={placement:"bottom",modifiers:[],strategy:"absolute"};function no(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function oo(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?ro:o;return function(e,t,r){void 0===r&&(r=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ro,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:bn(e)?Nn(e):e.contextElement?Nn(e.contextElement):[],popper:Nn(t)};var a=function(e){var t=to(e);return eo.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,s.options.modifiers)));return s.orderedModifiers=a.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:c,options:n});l.push(i||function(){})}})),c.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,r=e.popper;if(no(t,r)){s.rects={reference:qn(t,$n(r),"fixed"===s.options.strategy),popper:Rn(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:c})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),u=!0}};if(!no(e,t))return c;function d(){l.forEach((function(e){return e()})),l=[]}return c.setOptions(r).then((function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)})),c}}var io={passive:!0};const ao={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,l=yn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",r.update,io)})),s&&l.addEventListener("resize",r.update,io),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",r.update,io)})),s&&l.removeEventListener("resize",r.update,io)}},data:{}};function so(e){return e.split("-")[0]}function lo(e){return e.split("-")[1]}function uo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function co(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?so(o):null,a=o?lo(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case Qn:t={x:s,y:r.y-n.height};break;case Wn:t={x:s,y:r.y+r.height};break;case zn:t={x:r.x+r.width,y:l};break;case Un:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var u=i?uo(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case Yn:t[u]=t[u]-(r[c]/2-n[c]/2);break;case Hn:t[u]=t[u]+(r[c]/2-n[c]/2)}}return t}var fo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function po(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,m=void 0===h?0:h,g="function"==typeof c?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=Un,A=Qn,O=window;if(u){var w=$n(r),C="clientHeight",_="clientWidth";w===yn(r)&&"static"!==Tn(w=Pn(r)).position&&"absolute"===s&&(C="scrollHeight",_="scrollWidth"),(o===Qn||(o===Un||o===zn)&&i===Hn)&&(A=Wn,m-=(d&&w===O&&O.visualViewport?O.visualViewport.height:w[C])-n.height,m*=l?1:-1),o!==Un&&(o!==Qn&&o!==Wn||i!==Hn)||(b=zn,p-=(d&&w===O&&O.visualViewport?O.visualViewport.width:w[_])-n.width,p*=l?1:-1)}var x,k=Object.assign({position:s},u&&fo),E=!0===c?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:_n(r*o)/o||0,y:_n(n*o)/o||0}}({x:p,y:m},yn(r)):{x:p,y:m};return p=E.x,m=E.y,l?Object.assign({},k,((x={})[A]=y?"0":"",x[b]=v?"0":"",x.transform=(O.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",x)):Object.assign({},k,((t={})[A]=y?m+"px":"",t[b]=v?p+"px":"",t.transform="",t))}const ho={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,l=void 0===s||s,u={placement:so(t.placement),variation:lo(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,po(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,po(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},mo={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];An(o)&&Dn(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});An(n)&&Dn(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},go={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=Jn.reduce((function(e,r){return e[r]=function(e,t,r){var n=so(e),o=[Un,Qn].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Un,zn].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}};var vo={left:"right",right:"left",bottom:"top",top:"bottom"};function yo(e){return e.replace(/left|right|bottom|top/g,(function(e){return vo[e]}))}var bo={start:"end",end:"start"};function Ao(e){return e.replace(/start|end/g,(function(e){return bo[e]}))}function Oo(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&On(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function wo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Co(e,t,r){return t===Gn?wo(function(e,t){var r=yn(e),n=Pn(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=kn();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Bn(e),y:l}}(e,r)):bn(t)?function(e,t){var r=En(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):wo(function(e){var t,r=Pn(e),n=Sn(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=wn(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=wn(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Bn(e),l=-n.scrollTop;return"rtl"===Tn(o||r).direction&&(s+=wn(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Pn(e)))}function _o(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function xo(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function ko(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,l=void 0===s?"clippingParents":s,u=r.rootBoundary,c=void 0===u?Gn:u,d=r.elementContext,f=void 0===d?Xn:d,p=r.altBoundary,h=void 0!==p&&p,m=r.padding,g=void 0===m?0:m,v=_o("number"!=typeof g?g:xo(g,Zn)),y=f===Xn?"reference":Xn,b=e.rects.popper,A=e.elements[h?y:f],O=function(e,t,r,n){var o="clippingParents"===t?function(e){var t=Nn(Mn(e)),r=["absolute","fixed"].indexOf(Tn(e).position)>=0&&An(e)?$n(e):e;return bn(r)?t.filter((function(e){return bn(e)&&Oo(e,r)&&"body"!==Dn(e)})):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce((function(t,r){var o=Co(e,r,n);return t.top=wn(o.top,t.top),t.right=Cn(o.right,t.right),t.bottom=Cn(o.bottom,t.bottom),t.left=wn(o.left,t.left),t}),Co(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(bn(A)?A:A.contextElement||Pn(e.elements.popper),l,c,a),w=En(e.elements.reference),C=co({reference:w,element:b,strategy:"absolute",placement:o}),_=wo(Object.assign({},b,C)),x=f===Xn?_:w,k={top:O.top-x.top+v.top,bottom:x.bottom-O.bottom+v.bottom,left:O.left-x.left+v.left,right:x.right-O.right+v.right},E=e.modifiersData.offset;if(f===Xn&&E){var S=E[o];Object.keys(k).forEach((function(e){var t=[zn,Wn].indexOf(e)>=0?1:-1,r=[Qn,Wn].indexOf(e)>=0?"y":"x";k[e]+=S[r]*t}))}return k}const Eo={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,h=void 0===p||p,m=r.allowedAutoPlacements,g=t.options.placement,v=so(g),y=l||(v!==g&&h?function(e){if(so(e)===Vn)return[];var t=yo(e);return[Ao(e),t,Ao(t)]}(g):[yo(g)]),b=[g].concat(y).reduce((function(e,r){return e.concat(so(r)===Vn?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=void 0===l?Jn:l,c=lo(n),d=c?s?Kn:Kn.filter((function(e){return lo(e)===c})):Zn,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,r){return t[r]=ko(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[so(r)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:r,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):r)}),[]),A=t.rects.reference,O=t.rects.popper,w=new Map,C=!0,_=b[0],x=0;x<b.length;x++){var k=b[x],E=so(k),S=lo(k)===Yn,D=[Qn,Wn].indexOf(E)>=0,P=D?"width":"height",B=ko(t,{placement:k,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),T=D?S?zn:Un:S?Wn:Qn;A[P]>O[P]&&(T=yo(T));var j=yo(T),q=[];if(i&&q.push(B[E]<=0),s&&q.push(B[T]<=0,B[j]<=0),q.every((function(e){return e}))){_=k,C=!1;break}w.set(k,q)}if(C)for(var R=function(e){var t=b.find((function(t){var r=w.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},M=h?3:1;M>0&&"break"!==R(M);M--);t.placement!==_&&(t.modifiersData[n]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function So(e,t,r){return wn(e,Cn(t,r))}const Do={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,d=r.padding,f=r.tether,p=void 0===f||f,h=r.tetherOffset,m=void 0===h?0:h,g=ko(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=so(t.placement),y=lo(t.placement),b=!y,A=uo(v),O="x"===A?"y":"x",w=t.modifiersData.popperOffsets,C=t.rects.reference,_=t.rects.popper,x="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(w){if(i){var D,P="y"===A?Qn:Un,B="y"===A?Wn:zn,T="y"===A?"height":"width",j=w[A],q=j+g[P],R=j-g[B],M=p?-_[T]/2:0,F=y===Yn?C[T]:_[T],N=y===Yn?-_[T]:-C[T],L=t.elements.arrow,I=p&&L?Rn(L):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Q=$[P],W=$[B],z=So(0,C[T],I[T]),U=b?C[T]/2-M-z-Q-k.mainAxis:F-z-Q-k.mainAxis,V=b?-C[T]/2+M+z+W+k.mainAxis:N+z+W+k.mainAxis,Z=t.elements.arrow&&$n(t.elements.arrow),Y=Z?"y"===A?Z.clientTop||0:Z.clientLeft||0:0,H=null!=(D=null==E?void 0:E[A])?D:0,G=j+V-H,X=So(p?Cn(q,j+U-H-Y):q,j,p?wn(R,G):R);w[A]=X,S[A]=X-j}if(s){var K,J="x"===A?Qn:Un,ee="x"===A?Wn:zn,te=w[O],re="y"===O?"height":"width",ne=te+g[J],oe=te-g[ee],ie=-1!==[Qn,Un].indexOf(v),ae=null!=(K=null==E?void 0:E[O])?K:0,se=ie?ne:te-C[re]-_[re]-ae+k.altAxis,le=ie?te+C[re]+_[re]-ae-k.altAxis:oe,ue=p&&ie?function(e,t,r){var n=So(e,t,r);return n>r?r:n}(se,te,le):So(p?se:ne,te,p?le:oe);w[O]=ue,S[O]=ue-te}t.modifiersData[n]=S}},requiresIfExists:["offset"]},Po={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=so(r.placement),l=uo(s),u=[Un,zn].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return _o("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:xo(e,Zn))}(o.padding,r),d=Rn(i),f="y"===l?Qn:Un,p="y"===l?Wn:zn,h=r.rects.reference[u]+r.rects.reference[l]-a[l]-r.rects.popper[u],m=a[l]-r.rects.reference[l],g=$n(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=c[f],A=v-d[u]-c[p],O=v/2-d[u]/2+y,w=So(b,O,A),C=l;r.modifiersData[n]=((t={})[C]=w,t.centerOffset=w-O,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Oo(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bo(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function To(e){return[Qn,zn,Wn,Un].some((function(t){return e[t]>=0}))}var jo=oo({defaultModifiers:[ao,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=co({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ho,mo,go,Eo,Do,Po,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ko(t,{elementContext:"reference"}),s=ko(t,{altBoundary:!0}),l=Bo(a,n),u=Bo(s,o,i),c=To(l),d=To(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});const qo=function(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r},Ro=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t},Mo=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"],Fo=function(e){var n;const{elementType:o,externalSlotProps:i,ownerState:a,skipResolvingSlotProps:s=!1}=e,l=(0,r.A)(e,Mo),u=s?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(i,a),{props:c,internalRef:d}=function(e){const{getSlotProps:r,additionalProps:n,externalSlotProps:o,externalForwardedProps:i,className:a}=e;if(!r){const e=(0,fe.A)(null==n?void 0:n.className,a,null==i?void 0:i.className,null==o?void 0:o.className),r=(0,t.A)({},null==n?void 0:n.style,null==i?void 0:i.style,null==o?void 0:o.style),s=(0,t.A)({},n,i,o);return e.length>0&&(s.className=e),Object.keys(r).length>0&&(s.style=r),{props:s,internalRef:void 0}}const s=qo((0,t.A)({},i,o)),l=Ro(o),u=Ro(i),c=r(s),d=(0,fe.A)(null==c?void 0:c.className,null==n?void 0:n.className,a,null==i?void 0:i.className,null==o?void 0:o.className),f=(0,t.A)({},null==c?void 0:c.style,null==n?void 0:n.style,null==i?void 0:i.style,null==o?void 0:o.style),p=(0,t.A)({},c,n,u,l);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}((0,t.A)({},l,{externalSlotProps:u})),f=(0,mn.A)(d,null==u?void 0:u.ref,null==(n=e.additionalProps)?void 0:n.ref);return Vr(o,(0,t.A)({},c,{ref:f}),a)};var No=__webpack_require__(17365);const Lo=n.forwardRef((function(e,t){const{children:r,container:o,disablePortal:i=!1}=e,[a,s]=n.useState(null),l=(0,mn.A)(n.isValidElement(r)?r.ref:null,t);if((0,gn.A)((()=>{i||s(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),(0,gn.A)((()=>{if(a&&!i)return(0,No.A)(t,a),()=>{(0,No.A)(t,null)}}),[t,a,i]),i){if(n.isValidElement(r)){const e={ref:l};return n.cloneElement(r,e)}return(0,u.jsx)(n.Fragment,{children:r})}return(0,u.jsx)(n.Fragment,{children:a?Hr.createPortal(r,a):a})}));function Io(e){return(0,Ye.Ay)("MuiPopper",e)}(0,je.A)("MuiPopper",["root"]);const $o=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Qo=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Wo(e){return"function"==typeof e?e():e}const zo={},Uo=n.forwardRef((function(e,o){var i;const{anchorEl:a,children:s,direction:l,disablePortal:c,modifiers:d,open:f,placement:p,popperOptions:h,popperRef:m,slotProps:g={},slots:v={},TransitionProps:y}=e,b=(0,r.A)(e,$o),A=n.useRef(null),O=(0,mn.A)(A,o),w=n.useRef(null),C=(0,mn.A)(w,m),_=n.useRef(C);(0,gn.A)((()=>{_.current=C}),[C]),n.useImperativeHandle(m,(()=>w.current),[]);const x=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,l),[k,E]=n.useState(x),[S,D]=n.useState(Wo(a));n.useEffect((()=>{w.current&&w.current.forceUpdate()})),n.useEffect((()=>{a&&D(Wo(a))}),[a]),(0,gn.A)((()=>{if(!S||!f)return;let e=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{E(e.placement)})(e)}}];null!=d&&(e=e.concat(d)),h&&null!=h.modifiers&&(e=e.concat(h.modifiers));const r=jo(S,A.current,(0,t.A)({placement:x},h,{modifiers:e}));return _.current(r),()=>{r.destroy(),_.current(null)}}),[S,c,d,f,h,x]);const P={placement:k};null!==y&&(P.TransitionProps=y);const B=(e=>{const{classes:t}=e;return(0,he.A)({root:["root"]},Io,t)})(e),T=null!=(i=v.root)?i:"div",j=Fo({elementType:T,externalSlotProps:g.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:O},ownerState:e,className:B.root});return(0,u.jsx)(T,(0,t.A)({},j,{children:"function"==typeof s?s(P):s}))})),Vo=n.forwardRef((function(e,o){const{anchorEl:i,children:a,container:s,direction:l="ltr",disablePortal:c=!1,keepMounted:d=!1,modifiers:f,open:p,placement:h="bottom",popperOptions:m=zo,popperRef:g,style:v,transition:y=!1,slotProps:b={},slots:A={}}=e,O=(0,r.A)(e,Qo),[w,C]=n.useState(!0);if(!d&&!p&&(!y||w))return null;let _;if(s)_=s;else if(i){const e=Wo(i);_=e&&void 0!==e.nodeType?(0,vn.A)(e).body:(0,vn.A)(null).body}const x=p||!d||y&&!w?void 0:"none",k=y?{in:p,onEnter:()=>{C(!1)},onExited:()=>{C(!0)}}:void 0;return(0,u.jsx)(Lo,{disablePortal:c,container:_,children:(0,u.jsx)(Uo,(0,t.A)({anchorEl:i,direction:l,disablePortal:c,modifiers:f,ref:o,open:y?!w:p,placement:h,popperOptions:m,popperRef:g,slotProps:b,slots:A},O,{style:(0,t.A)({position:"fixed",top:0,left:0,display:x},v),TransitionProps:k,children:a}))})})),Zo=Vo,Yo=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Ho=(0,ge.Ay)(Zo,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Go=n.forwardRef((function(e,n){var o;const i=(0,hn.A)(),a=(0,ye.b)({props:e,name:"MuiPopper"}),{anchorEl:s,component:l,components:c,componentsProps:d,container:f,disablePortal:p,keepMounted:h,modifiers:m,open:g,placement:v,popperOptions:y,popperRef:b,transition:A,slots:O,slotProps:w}=a,C=(0,r.A)(a,Yo),_=null!=(o=null==O?void 0:O.root)?o:null==c?void 0:c.Root,x=(0,t.A)({anchorEl:s,container:f,disablePortal:p,keepMounted:h,modifiers:m,open:g,placement:v,popperOptions:y,popperRef:b,transition:A},C);return(0,u.jsx)(Ho,(0,t.A)({as:l,direction:null==i?void 0:i.direction,slots:{root:_},slotProps:null!=w?w:d},x,{ref:n}))})),Xo=Go;var Ko=__webpack_require__(1668);function Jo(e){return(0,Ye.Ay)("MuiTooltip",e)}const ei=(0,je.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ti=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],ri=(0,ge.Ay)(Xo,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((({theme:e,ownerState:r,open:n})=>(0,t.A)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},r.arrow&&{[`&[data-popper-placement*="bottom"] .${ei.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ei.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ei.arrow}`]:(0,t.A)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${ei.arrow}`]:(0,t.A)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),ni=(0,ge.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,et.A)(r.placement.split("-")[0])}`]]}})((({theme:e,ownerState:r})=>{return(0,t.A)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,me.X4)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},r.arrow&&{position:"relative",margin:0},r.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5+"em"),fontWeight:e.typography.fontWeightRegular},{[`.${ei.popper}[data-popper-placement*="left"] &`]:(0,t.A)({transformOrigin:"right center"},r.isRtl?(0,t.A)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"}):(0,t.A)({marginRight:"14px"},r.touch&&{marginRight:"24px"})),[`.${ei.popper}[data-popper-placement*="right"] &`]:(0,t.A)({transformOrigin:"left center"},r.isRtl?(0,t.A)({marginRight:"14px"},r.touch&&{marginRight:"24px"}):(0,t.A)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"})),[`.${ei.popper}[data-popper-placement*="top"] &`]:(0,t.A)({transformOrigin:"center bottom",marginBottom:"14px"},r.touch&&{marginBottom:"24px"}),[`.${ei.popper}[data-popper-placement*="bottom"] &`]:(0,t.A)({transformOrigin:"center top",marginTop:"14px"},r.touch&&{marginTop:"24px"})});var n})),oi=(0,ge.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,me.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let ii=!1;const ai=new Te.E;let si={x:0,y:0};function li(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const ui=n.forwardRef((function(e,o){var i,a,s,l,c,d,f,p,h,g,v,y,b,A,O,w,C,_,x;const k=(0,ye.b)({props:e,name:"MuiTooltip"}),{arrow:E=!1,children:S,components:D={},componentsProps:P={},describeChild:B=!1,disableFocusListener:T=!1,disableHoverListener:j=!1,disableInteractive:q=!1,disableTouchListener:R=!1,enterDelay:M=100,enterNextDelay:F=0,enterTouchDelay:N=700,followCursor:L=!1,id:I,leaveDelay:$=0,leaveTouchDelay:Q=1500,onClose:W,onOpen:z,open:U,placement:V="bottom",PopperComponent:Z,PopperProps:Y={},slotProps:H={},slots:G={},title:X,TransitionComponent:K=pn,TransitionProps:J}=k,ee=(0,r.A)(k,ti),te=n.isValidElement(S)?S:(0,u.jsx)("span",{children:S}),re=Yr(),ne=m(),[oe,ie]=n.useState(),[ae,se]=n.useState(null),le=n.useRef(!1),ue=q||L,ce=(0,Te.A)(),de=(0,Te.A)(),pe=(0,Te.A)(),me=(0,Te.A)(),[ge,ve]=(0,vr.A)({controlled:U,default:!1,name:"Tooltip",state:"open"});let we=ge;const Ce=(0,Ko.A)(I),_e=n.useRef(),xe=(0,Ae.A)((()=>{void 0!==_e.current&&(document.body.style.WebkitUserSelect=_e.current,_e.current=void 0),me.clear()}));n.useEffect((()=>xe),[xe]);const ke=e=>{ai.clear(),ii=!0,ve(!0),z&&!we&&z(e)},Ee=(0,Ae.A)((e=>{ai.start(800+$,(()=>{ii=!1})),ve(!1),W&&we&&W(e),ce.start(re.transitions.duration.shortest,(()=>{le.current=!1}))})),Se=e=>{le.current&&"touchstart"!==e.type||(oe&&oe.removeAttribute("title"),de.clear(),pe.clear(),M||ii&&F?de.start(ii?F:M,(()=>{ke(e)})):ke(e))},De=e=>{de.clear(),pe.start($,(()=>{Ee(e)}))},{isFocusVisibleRef:Pe,onBlur:Be,onFocus:je,ref:qe}=(0,Oe.A)(),[,Re]=n.useState(!1),Me=e=>{Be(e),!1===Pe.current&&(Re(!1),De(e))},Fe=e=>{oe||ie(e.currentTarget),je(e),!0===Pe.current&&(Re(!0),Se(e))},Ne=e=>{le.current=!0;const t=te.props;t.onTouchStart&&t.onTouchStart(e)};n.useEffect((()=>{if(we)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Ee(e)}}),[Ee,we]);const Le=(0,be.A)(te.ref,qe,ie,o);X||0===X||(we=!1);const Ie=n.useRef(),$e={},Qe="string"==typeof X;B?($e.title=we||!Qe||j?null:X,$e["aria-describedby"]=we?Ce:null):($e["aria-label"]=Qe?X:null,$e["aria-labelledby"]=we&&!Qe?Ce:null);const We=(0,t.A)({},$e,ee,te.props,{className:(0,fe.A)(ee.className,te.props.className),onTouchStart:Ne,ref:Le},L?{onMouseMove:e=>{const t=te.props;t.onMouseMove&&t.onMouseMove(e),si={x:e.clientX,y:e.clientY},Ie.current&&Ie.current.update()}}:{}),ze={};R||(We.onTouchStart=e=>{Ne(e),pe.clear(),ce.clear(),xe(),_e.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",me.start(N,(()=>{document.body.style.WebkitUserSelect=_e.current,Se(e)}))},We.onTouchEnd=e=>{te.props.onTouchEnd&&te.props.onTouchEnd(e),xe(),pe.start(Q,(()=>{Ee(e)}))}),j||(We.onMouseOver=li(Se,We.onMouseOver),We.onMouseLeave=li(De,We.onMouseLeave),ue||(ze.onMouseOver=Se,ze.onMouseLeave=De)),T||(We.onFocus=li(Fe,We.onFocus),We.onBlur=li(Me,We.onBlur),ue||(ze.onFocus=Fe,ze.onBlur=Me));const Ue=n.useMemo((()=>{var e;let r=[{name:"arrow",enabled:Boolean(ae),options:{element:ae,padding:4}}];return null!=(e=Y.popperOptions)&&e.modifiers&&(r=r.concat(Y.popperOptions.modifiers)),(0,t.A)({},Y.popperOptions,{modifiers:r})}),[ae,Y]),Ve=(0,t.A)({},k,{isRtl:ne,arrow:E,disableInteractive:ue,placement:V,PopperComponentProp:Z,touch:le.current}),Ze=(e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:i}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,et.A)(i.split("-")[0])}`],arrow:["arrow"]};return(0,he.A)(a,Jo,t)})(Ve),Ye=null!=(i=null!=(a=G.popper)?a:D.Popper)?i:ri,He=null!=(s=null!=(l=null!=(c=G.transition)?c:D.Transition)?l:K)?s:pn,Ge=null!=(d=null!=(f=G.tooltip)?f:D.Tooltip)?d:ni,Xe=null!=(p=null!=(h=G.arrow)?h:D.Arrow)?p:oi,Ke=Vr(Ye,(0,t.A)({},Y,null!=(g=H.popper)?g:P.popper,{className:(0,fe.A)(Ze.popper,null==Y?void 0:Y.className,null==(v=null!=(y=H.popper)?y:P.popper)?void 0:v.className)}),Ve),Je=Vr(He,(0,t.A)({},J,null!=(b=H.transition)?b:P.transition),Ve),tt=Vr(Ge,(0,t.A)({},null!=(A=H.tooltip)?A:P.tooltip,{className:(0,fe.A)(Ze.tooltip,null==(O=null!=(w=H.tooltip)?w:P.tooltip)?void 0:O.className)}),Ve),rt=Vr(Xe,(0,t.A)({},null!=(C=H.arrow)?C:P.arrow,{className:(0,fe.A)(Ze.arrow,null==(_=null!=(x=H.arrow)?x:P.arrow)?void 0:_.className)}),Ve);return(0,u.jsxs)(n.Fragment,{children:[n.cloneElement(te,We),(0,u.jsx)(Ye,(0,t.A)({as:null!=Z?Z:Xo,placement:V,anchorEl:L?{getBoundingClientRect:()=>({top:si.y,left:si.x,right:si.x,bottom:si.y,width:0,height:0})}:oe,popperRef:Ie,open:!!oe&&we,id:Ce,transition:!0},ze,Ke,{popperOptions:Ue,children:({TransitionProps:e})=>(0,u.jsx)(He,(0,t.A)({timeout:re.transitions.duration.shorter},e,Je,{children:(0,u.jsxs)(Ge,(0,t.A)({},tt,{children:[X,E?(0,u.jsx)(Xe,(0,t.A)({},rt,{ref:se})):null]}))}))}))]})})),ci=ui;var di=__webpack_require__(73684);function fi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pi=function(e){var t,r,n,o,a,s,l,u,c,d=e.controlProps,f=function(e,t){if(null==e)return{};var r,n,o,i={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(Object(e)),o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}(e,["controlProps"]),p=f.id,h=f.objectPathId,m=f.error,g=f.displayName,v=f.required,y=f.hideLabel,b=void 0!==y&&y,A=f.isExpert,O=f.children,w=f.tooltip,C=f.helper,_=!!m,x=!!A,E=h||p,S=h?"".concat(zr["control-wrapper"]," fb-control-wrapper"):"".concat(zr["control-wrapper"]," fb-control-wrapper ").concat(zr["control-wrapper-firstlayer"]),D=null!==(t=null==d||null===(o=d.controlWrapperProps)||void 0===o?void 0:o.style)&&void 0!==t?t:{},P=null!==(r=null==d||null===(s=d.controlWrapperProps)||void 0===s||null===(a=s.label)||void 0===a?void 0:a.style)&&void 0!==r?r:{},B=null!==(n=null==d||null===(u=d.controlWrapperProps)||void 0===u||null===(l=u.container)||void 0===l?void 0:l.style)&&void 0!==n?n:{};return i().createElement("div",{className:k()(zr["form-group"],"fb-form-group",(c={},fi(c,zr.error,_),fi(c,zr.expert,x),c)),style:D},!b&&i().createElement("label",{htmlFor:E,"data-testid":"control-label",className:"".concat(zr["control-label"]," fb-control-label"),style:P},i().createElement("div",{className:zr["text-tooltip-container"],"data-testid":"control-label-container"},i().createElement("span",{"data-testid":"name-span"},v?"".concat(g," *"):g),w&&i().createElement("div",{className:zr.tooltip,"data-testid":"tooltip-container"},i().createElement(ci,{"data-testid":"tooltip-style",title:w,arrow:!0,PopperProps:{modifiers:[{name:"offset",options:{offset:[0,-7]}}]},slotProps:{popper:{className:"fb-tooltip-popper"},tooltip:{className:"fb-tooltip",sx:{display:"flex",padding:"8px",alignItems:"flex-start",gap:"10px",borderRadius:"4px",background:"var(--grey-900, #333)",color:"var(--grey-white, #FFF)",fontFamily:"Roboto",fontSize:"10px",fontStyle:"normal",fontWeight:500,maxWidth:"250px",lineHeight:"normal"}},arrow:{className:"fb-tooltip-arrow",sx:{color:"var(--grey-900, #333)",top:"0"}}}},i().createElement("span",{className:zr["icon-container"],"data-testid":"tooltip-icon"},i().createElement(di._,{height:12,width:12})))))),i().createElement("div",{className:S,style:B},O,C&&i().createElement("div",{className:zr["helper-text"],"data-testid":"helper-text"},C),i().createElement("label",{htmlFor:E,className:zr["error-message"]},m)))};function hi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){hi(e,t,r[t])}))}return e}const gi=function(e){var t,r,o,a,s,l,u,c,d,f,p=e.Control,h=e.config,m=e.isExpert,g=e.hideLabel,v=void 0!==g&&g,y=e.controlProps,b=h.control,A=h.id,O=h.objectPathId,w=h.groupIsRequired,C=h.isInRequiredGroup,_=h.isControlHidden,x=void 0!==_&&_,k=b.error,S=b.displayName,D=b.required,P=b.value,B=null==b?void 0:b["custom-attributes"],T=!0===(null==B?void 0:B.readOnly)||"true"===(null==B?void 0:B.readOnly)||!0===(null==B?void 0:B.readonly)||"true"===(null==B?void 0:B.readonly),j=!0===(null==B?void 0:B.alwaysRequired),q=!x&&!T&&(!(!j&&!C)||!!w&&D),R=(0,n.useContext)(E.og),M=R.updateControl,F=R.showValidationErrors,N="select"===b.control&&(null===(r=b.options)||void 0===r?void 0:r.some((function(e){return e.selected}))),L=!F||!q||null!=P&&""!==P||N?void 0:"This field is required.",I={id:A,objectPathId:O,error:(null==k?void 0:k.message)||L,displayName:S,hideLabel:v,isExpert:m,required:q,tooltip:null==b||null===(a=b["custom-attributes"])||void 0===a||null===(o=a.fieldDescription)||void 0===o?void 0:o.tooltip,helper:null==b||null===(l=b["custom-attributes"])||void 0===l||null===(s=l.fieldDescription)||void 0===s?void 0:s.helper},$={objectPathId:O,id:A,control:(d=mi({},b),f={required:q,placeholder:null!==(t=null==b||null===(c=b["custom-attributes"])||void 0===c||null===(u=c.fieldDescription)||void 0===u?void 0:u.placeholder)&&void 0!==t?t:null==b?void 0:b.placeholder},f=null!=f?f:{},Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(f)).forEach((function(e){Object.defineProperty(d,e,Object.getOwnPropertyDescriptor(f,e))})),d)};return i().createElement(pi,mi({controlProps:y},I),i().createElement(p,mi({controlProps:y,onChangeValue:function(e,t){var r=mi({hasChanged:!0},e);M(O||A,$r()({},b,r,t))}},$)))};function vi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yi(e){return function(e){if(Array.isArray(e))return vi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return vi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vi(e,t):void 0}}(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.")}()}var bi=/mrn:srv:([a-z-A-Z0-9]+):([a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}):([^\s]*)/g,Ai=function(e){if(e){var t=yi(e.matchAll(bi)),r=t&&t[0];return r&&4===r.length?{matchAll:t,mrn:r[0],serviceName:r[1],applicationId:r[2],resource:r[3]}:Oi(e)}},Oi=function(e){var t=yi(e.matchAll(/mrn:srv:([a-z-A-Z0-9]+):([a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/g)),r=t&&t[0];return r&&3===r.length?{matchAll:t,mrn:r[0],serviceName:r[1],applicationId:r[2]}:null},wi=__webpack_require__(75003);const Ci=(0,wi.A)((0,u.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),_i=(0,wi.A)((0,u.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),xi=(0,wi.A)((0,u.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function ki(e){return(0,Ye.Ay)("MuiCheckbox",e)}const Ei=(0,je.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Si=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Di=(0,ge.Ay)(Cr,{shouldForwardProp:e=>(0,ve.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${(0,et.A)(r.size)}`],"default"!==r.color&&t[`color${(0,et.A)(r.color)}`]]}})((({theme:e,ownerState:r})=>(0,t.A)({color:(e.vars||e).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===r.color?e.vars.palette.action.activeChannel:e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,me.X4)("default"===r.color?e.palette.action.active:e.palette[r.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{[`&.${Ei.checked}, &.${Ei.indeterminate}`]:{color:(e.vars||e).palette[r.color].main},[`&.${Ei.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Pi=(0,u.jsx)(_i,{}),Bi=(0,u.jsx)(Ci,{}),Ti=(0,u.jsx)(xi,{}),ji=n.forwardRef((function(e,o){var i,a;const s=(0,ye.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:l=Pi,color:c="primary",icon:d=Bi,indeterminate:f=!1,indeterminateIcon:p=Ti,inputProps:h,size:m="medium",className:g}=s,v=(0,r.A)(s,Si),y=f?p:d,b=f?p:l,A=(0,t.A)({},s,{color:c,indeterminate:f,size:m}),O=(e=>{const{classes:r,indeterminate:n,color:o,size:i}=e,a={root:["root",n&&"indeterminate",`color${(0,et.A)(o)}`,`size${(0,et.A)(i)}`]},s=(0,he.A)(a,ki,r);return(0,t.A)({},r,s)})(A);return(0,u.jsx)(Di,(0,t.A)({type:"checkbox",inputProps:(0,t.A)({"data-indeterminate":f},h),icon:n.cloneElement(y,{fontSize:null!=(i=y.props.fontSize)?i:m}),checkedIcon:n.cloneElement(b,{fontSize:null!=(a=b.props.fontSize)?a:m}),ownerState:A,ref:o,className:(0,fe.A)(O.root,g)},v,{classes:O}))})),qi=ji;var Ri=__webpack_require__(90179),Mi=__webpack_require__.n(Ri),Fi=__webpack_require__(19760),Ni={};Ni.styleTagTransform=L(),Ni.setAttributes=R(),Ni.insert=j().bind(null,"head"),Ni.domAPI=B(),Ni.insertStyleElement=F(),D()(Fi.A,Ni);const Li=Fi.A&&Fi.A.locals?Fi.A.locals:void 0;const Ii=function(e){var t,r=e.onChangeValue,o=function(e,t){if(null==e)return{};var r,n,o,i={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(Object(e)),o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}(e,["onChangeValue"]),a=o.control,s=o.id,l=o.objectPathId,u=a.selected,c=void 0!==u&&u,d=a.value||"on",f=l||s;(0,n.useEffect)((function(){r({value:a.selected?d:""})}),[]);var p=Object.assign(Mi()(o,["objectPathId","checked","control","displayName","error"]),{name:f,value:d,type:a.control,role:a.control});return i().createElement(qi,{className:Li["checkbox-container"],id:f,color:"default",checked:c,readOnly:null===(t=a["custom-attributes"])||void 0===t?void 0:t.readOnly,onClick:function(){r({selected:!a.selected,value:a.selected?"":d})},inputProps:p,disableRipple:!0,sx:{padding:"0px",marginLeft:"-2px",color:"#D0D0D0","&.Mui-checked":{color:"#4A96D2"},"&:hover":{backgroundColor:"transparent",color:"#255F8E"}}})};var $i=__webpack_require__(44363),Qi=__webpack_require__(96248);const Wi=n.createContext({});function zi(e){return(0,Ye.Ay)("MuiList",e)}(0,je.A)("MuiList",["root","padding","dense","subheader"]);const Ui=["children","className","component","dense","disablePadding","subheader"],Vi=(0,ge.Ay)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>(0,t.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Zi=n.forwardRef((function(e,o){const i=(0,ye.b)({props:e,name:"MuiList"}),{children:a,className:s,component:l="ul",dense:c=!1,disablePadding:d=!1,subheader:f}=i,p=(0,r.A)(i,Ui),h=n.useMemo((()=>({dense:c})),[c]),m=(0,t.A)({},i,{component:l,dense:c,disablePadding:d}),g=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e,i={root:["root",!r&&"padding",n&&"dense",o&&"subheader"]};return(0,he.A)(i,zi,t)})(m);return(0,u.jsx)(Wi.Provider,{value:h,children:(0,u.jsxs)(Vi,(0,t.A)({as:l,className:(0,fe.A)(g.root,s),ref:o,ownerState:m},p,{children:[f,a]}))})}));function Yi(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Hi=Yi;var Gi=__webpack_require__(2778);const Xi=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ki(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Ji(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function ea(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function ta(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&ea(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const ra=n.forwardRef((function(e,o){const{actions:i,autoFocus:a=!1,autoFocusItem:s=!1,children:l,className:c,disabledItemsFocusable:d=!1,disableListWrap:f=!1,onKeyDown:p,variant:h="selectedMenu"}=e,m=(0,r.A)(e,Xi),g=n.useRef(null),v=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Gi.A)((()=>{a&&g.current.focus()}),[a]),n.useImperativeHandle(i,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&r){const r=`${Hi((0,Qi.A)(e))}px`;g.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,g.current.style.width=`calc(100% + ${r})`}return g.current}})),[]);const y=(0,be.A)(g,o);let b=-1;n.Children.forEach(l,((e,t)=>{n.isValidElement(e)?(e.props.disabled||("selectedMenu"===h&&e.props.selected||-1===b)&&(b=t),b===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(b+=1,b>=l.length&&(b=-1))):b===t&&(b+=1,b>=l.length&&(b=-1))}));const A=n.Children.map(l,((e,t)=>{if(t===b){const t={};return s&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===h&&(t.tabIndex=0),n.cloneElement(e,t)}return e}));return(0,u.jsx)(Zi,(0,t.A)({role:"menu",ref:y,className:c,onKeyDown:e=>{const t=g.current,r=e.key,n=(0,Qi.A)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),ta(t,n,f,d,Ki);else if("ArrowUp"===r)e.preventDefault(),ta(t,n,f,d,Ji);else if("Home"===r)e.preventDefault(),ta(t,null,f,d,Ki);else if("End"===r)e.preventDefault(),ta(t,null,f,d,Ji);else if(1===r.length){const o=v.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&ea(n,o);o.previousKeyMatched&&(s||ta(t,n,!1,d,Ki,o))?e.preventDefault():o.previousKeyMatched=!1}p&&p(e)},tabIndex:a?0:-1},m,{children:A}))})),na=ra;var oa=__webpack_require__(1935),ia=__webpack_require__(93749);const aa=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function sa(e){const t=[],r=[];return Array.from(e.querySelectorAll(aa)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function la(){return!0}const ua=function(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=sa,isEnabled:s=la,open:l}=e,c=n.useRef(!1),d=n.useRef(null),f=n.useRef(null),p=n.useRef(null),h=n.useRef(null),m=n.useRef(!1),g=n.useRef(null),v=(0,mn.A)(t.ref,g),y=n.useRef(null);n.useEffect((()=>{l&&g.current&&(m.current=!r)}),[r,l]),n.useEffect((()=>{if(!l||!g.current)return;const e=(0,vn.A)(g.current);return g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{i||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}}),[l]),n.useEffect((()=>{if(!l||!g.current)return;const e=(0,vn.A)(g.current),t=t=>{y.current=t,!o&&s()&&"Tab"===t.key&&e.activeElement===g.current&&t.shiftKey&&(c.current=!0,f.current&&f.current.focus())},r=()=>{const t=g.current;if(null===t)return;if(!e.hasFocus()||!s()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==d.current&&e.activeElement!==f.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!m.current)return;let r=[];if(e.activeElement!==d.current&&e.activeElement!==f.current||(r=a(g.current)),r.length>0){var n,i;const e=Boolean((null==(n=y.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=y.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,o,i,s,l,a]);const b=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return(0,u.jsxs)(n.Fragment,{children:[(0,u.jsx)("div",{tabIndex:l?0:-1,onFocus:b,ref:d,"data-testid":"sentinelStart"}),n.cloneElement(t,{ref:v,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,h.current=e.target;const r=t.props.onFocus;r&&r(e)}}),(0,u.jsx)("div",{tabIndex:l?0:-1,onFocus:b,ref:f,"data-testid":"sentinelEnd"})]})},ca=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],da={entering:{opacity:1},entered:{opacity:1}},fa=n.forwardRef((function(e,o){const i=Yr(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:c,easing:d,in:f,onEnter:p,onEntered:h,onEntering:m,onExit:g,onExited:v,onExiting:y,style:b,timeout:A=a,TransitionComponent:O=on}=e,w=(0,r.A)(e,ca),C=n.useRef(null),_=(0,be.A)(C,c.ref,o),x=e=>t=>{if(e){const r=C.current;void 0===t?e(r):e(r,t)}},k=x(m),E=x(((e,t)=>{an(e);const r=sn({style:b,timeout:A,easing:d},{mode:"enter"});e.style.webkitTransition=i.transitions.create("opacity",r),e.style.transition=i.transitions.create("opacity",r),p&&p(e,t)})),S=x(h),D=x(y),P=x((e=>{const t=sn({style:b,timeout:A,easing:d},{mode:"exit"});e.style.webkitTransition=i.transitions.create("opacity",t),e.style.transition=i.transitions.create("opacity",t),g&&g(e)})),B=x(v);return(0,u.jsx)(O,(0,t.A)({appear:l,in:f,nodeRef:C,onEnter:E,onEntered:S,onEntering:k,onExit:P,onExited:B,onExiting:D,addEndListener:e=>{s&&s(C.current,e)},timeout:A},w,{children:(e,r)=>n.cloneElement(c,(0,t.A)({style:(0,t.A)({opacity:0,visibility:"exited"!==e||f?void 0:"hidden"},da[e],b,c.props.style),ref:_},r))}))})),pa=fa;function ha(e){return(0,Ye.Ay)("MuiBackdrop",e)}(0,je.A)("MuiBackdrop",["root","invisible"]);const ma=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ga=(0,ge.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>(0,t.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),va=n.forwardRef((function(e,n){var o,i,a;const s=(0,ye.b)({props:e,name:"MuiBackdrop"}),{children:l,className:c,component:d="div",components:f={},componentsProps:p={},invisible:h=!1,open:m,slotProps:g={},slots:v={},TransitionComponent:y=pa,transitionDuration:b}=s,A=(0,r.A)(s,ma),O=(0,t.A)({},s,{component:d,invisible:h}),w=(e=>{const{classes:t,invisible:r}=e,n={root:["root",r&&"invisible"]};return(0,he.A)(n,ha,t)})(O),C=null!=(o=g.root)?o:p.root;return(0,u.jsx)(y,(0,t.A)({in:m,timeout:b},A,{children:(0,u.jsx)(ga,(0,t.A)({"aria-hidden":!0},C,{as:null!=(i=null!=(a=v.root)?a:f.Root)?i:d,className:(0,fe.A)(w.root,c,null==C?void 0:C.className),ownerState:(0,t.A)({},O,null==C?void 0:C.ownerState),classes:w,ref:n,children:l}))}))}));var ya=__webpack_require__(71547),ba=__webpack_require__(76673),Aa=__webpack_require__(44877);function Oa(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wa(e){return parseInt((0,Aa.A)(e).getComputedStyle(e).paddingRight,10)||0}function Ca(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Oa(e,o)}))}function _a(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}const xa=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Oa(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Ca(t,e.mount,e.modalRef,n,!0);const o=_a(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=_a(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=function(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,vn.A)(e);return t.body===e?(0,Aa.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Yi((0,vn.A)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${wa(n)+e}px`;const t=(0,vn.A)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${wa(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=(0,vn.A)(n).body;else{const t=n.parentElement,r=(0,Aa.A)(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=_a(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Oa(e.modalRef,t),Ca(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Oa(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function ka(e){return(0,Ye.Ay)("MuiModal",e)}(0,je.A)("MuiModal",["root","hidden","backdrop"]);const Ea=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Sa=(0,ge.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:r})=>(0,t.A)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"}))),Da=(0,ge.Ay)(va,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Pa=n.forwardRef((function(e,o){var i,a,s,l,c,d;const f=(0,ye.b)({name:"MuiModal",props:e}),{BackdropComponent:p=Da,BackdropProps:h,className:m,closeAfterTransition:g=!1,children:v,container:y,component:b,components:A={},componentsProps:O={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:_=!1,disablePortal:x=!1,disableRestoreFocus:k=!1,disableScrollLock:E=!1,hideBackdrop:S=!1,keepMounted:D=!1,onBackdropClick:P,open:B,slotProps:T,slots:j}=f,q=(0,r.A)(f,Ea),R=(0,t.A)({},f,{closeAfterTransition:g,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:_,disablePortal:x,disableRestoreFocus:k,disableScrollLock:E,hideBackdrop:S,keepMounted:D}),{getRootProps:M,getBackdropProps:F,getTransitionProps:N,portalRef:L,isTopModal:I,exited:$,hasTransition:Q}=function(e){const{container:r,disableEscapeKeyDown:o=!1,disableScrollLock:i=!1,manager:a=xa,closeAfterTransition:s=!1,onTransitionEnter:l,onTransitionExited:u,children:c,onClose:d,open:f,rootRef:p}=e,h=n.useRef({}),m=n.useRef(null),g=n.useRef(null),v=(0,mn.A)(g,p),[y,b]=n.useState(!f),A=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let O=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(O=!1);const w=()=>(h.current.modalRef=g.current,h.current.mount=m.current,h.current),C=()=>{a.mount(w(),{disableScrollLock:i}),g.current&&(g.current.scrollTop=0)},_=(0,ya.A)((()=>{const e=function(e){return"function"==typeof e?e():e}(r)||(0,vn.A)(m.current).body;a.add(w(),e),g.current&&C()})),x=n.useCallback((()=>a.isTopModal(w())),[a]),k=(0,ya.A)((e=>{m.current=e,e&&(f&&x()?C():g.current&&Oa(g.current,O))})),E=n.useCallback((()=>{a.remove(w(),O)}),[O,a]);n.useEffect((()=>()=>{E()}),[E]),n.useEffect((()=>{f?_():A&&s||E()}),[f,E,A,s,_]);const S=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&x()&&(o||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},D=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:(r={})=>{const n=qo(e);delete n.onTransitionEnter,delete n.onTransitionExited;const o=(0,t.A)({},n,r);return(0,t.A)({role:"presentation"},o,{onKeyDown:S(o),ref:v})},getBackdropProps:(e={})=>{const r=e;return(0,t.A)({"aria-hidden":!0},r,{onClick:D(r),open:f})},getTransitionProps:()=>({onEnter:(0,ba.A)((()=>{b(!1),l&&l()}),null==c?void 0:c.props.onEnter),onExited:(0,ba.A)((()=>{b(!0),u&&u(),s&&E()}),null==c?void 0:c.props.onExited)}),rootRef:v,portalRef:k,isTopModal:x,exited:y,hasTransition:A}}((0,t.A)({},R,{rootRef:o})),W=(0,t.A)({},R,{exited:$}),z=(e=>{const{open:t,exited:r,classes:n}=e,o={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,he.A)(o,ka,n)})(W),U={};if(void 0===v.props.tabIndex&&(U.tabIndex="-1"),Q){const{onEnter:e,onExited:t}=N();U.onEnter=e,U.onExited=t}const V=null!=(i=null!=(a=null==j?void 0:j.root)?a:A.Root)?i:Sa,Z=null!=(s=null!=(l=null==j?void 0:j.backdrop)?l:A.Backdrop)?s:p,Y=null!=(c=null==T?void 0:T.root)?c:O.root,H=null!=(d=null==T?void 0:T.backdrop)?d:O.backdrop,G=Fo({elementType:V,externalSlotProps:Y,externalForwardedProps:q,getSlotProps:M,additionalProps:{ref:o,as:b},ownerState:W,className:(0,fe.A)(m,null==Y?void 0:Y.className,null==z?void 0:z.root,!W.open&&W.exited&&(null==z?void 0:z.hidden))}),X=Fo({elementType:Z,externalSlotProps:H,additionalProps:h,getSlotProps:e=>F((0,t.A)({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,fe.A)(null==H?void 0:H.className,null==h?void 0:h.className,null==z?void 0:z.backdrop),ownerState:W});return D||B||Q&&!$?(0,u.jsx)(Lo,{ref:L,container:y,disablePortal:x,children:(0,u.jsxs)(V,(0,t.A)({},G,{children:[!S&&p?(0,u.jsx)(Z,(0,t.A)({},X)):null,(0,u.jsx)(ua,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:k,isEnabled:I,open:B,children:n.cloneElement(v,U)})]}))}):null})),Ba=Pa,Ta=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function ja(e){return(0,Ye.Ay)("MuiPaper",e)}(0,je.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const qa=["className","component","elevation","square","variant"],Ra=(0,ge.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:r})=>{var n;return(0,t.A)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!r.square&&{borderRadius:e.shape.borderRadius},"outlined"===r.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===r.variant&&(0,t.A)({boxShadow:(e.vars||e).shadows[r.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,me.X4)("#fff",Ta(r.elevation))}, ${(0,me.X4)("#fff",Ta(r.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[r.elevation]}))})),Ma=n.forwardRef((function(e,n){const o=(0,ye.b)({props:e,name:"MuiPaper"}),{className:i,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation"}=o,d=(0,r.A)(o,qa),f=(0,t.A)({},o,{component:a,elevation:s,square:l,variant:c}),p=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]};return(0,he.A)(i,ja,o)})(f);return(0,u.jsx)(Ra,(0,t.A)({as:a,ownerState:f,className:(0,fe.A)(p.root,i),ref:n},d))}));function Fa(e){return(0,Ye.Ay)("MuiPopover",e)}(0,je.A)("MuiPopover",["root","paper"]);const Na=["onEntering"],La=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ia=["slotProps"];function $a(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Qa(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Wa(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function za(e){return"function"==typeof e?e():e}const Ua=(0,ge.Ay)(Ba,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Va=(0,ge.Ay)(Ma,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Za=n.forwardRef((function(e,o){var i,a,s;const l=(0,ye.b)({props:e,name:"MuiPopover"}),{action:c,anchorEl:d,anchorOrigin:f={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:h="anchorEl",children:m,className:g,container:v,elevation:y=8,marginThreshold:b=16,open:A,PaperProps:O={},slots:w,slotProps:C,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:x=pn,transitionDuration:k="auto",TransitionProps:{onEntering:E}={},disableScrollLock:S=!1}=l,D=(0,r.A)(l.TransitionProps,Na),P=(0,r.A)(l,La),B=null!=(i=null==C?void 0:C.paper)?i:O,T=n.useRef(),j=(0,be.A)(T,B.ref),q=(0,t.A)({},l,{anchorOrigin:f,anchorReference:h,elevation:y,marginThreshold:b,externalPaperSlotProps:B,transformOrigin:_,TransitionComponent:x,transitionDuration:k,TransitionProps:D}),R=(e=>{const{classes:t}=e;return(0,he.A)({root:["root"],paper:["paper"]},Fa,t)})(q),M=n.useCallback((()=>{if("anchorPosition"===h)return p;const e=za(d),t=(e&&1===e.nodeType?e:(0,Qi.A)(T.current).body).getBoundingClientRect();return{top:t.top+$a(t,f.vertical),left:t.left+Qa(t,f.horizontal)}}),[d,f.horizontal,f.vertical,p,h]),F=n.useCallback((e=>({vertical:$a(e,_.vertical),horizontal:Qa(e,_.horizontal)})),[_.horizontal,_.vertical]),N=n.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=F(t);if("none"===h)return{top:null,left:null,transformOrigin:Wa(r)};const n=M();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,l=(0,ia.A)(za(d)),u=l.innerHeight-b,c=l.innerWidth-b;if(null!==b&&o<b){const e=o-b;o-=e,r.vertical+=e}else if(null!==b&&a>u){const e=a-u;o-=e,r.vertical+=e}if(null!==b&&i<b){const e=i-b;i-=e,r.horizontal+=e}else if(s>c){const e=s-c;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Wa(r)}}),[d,h,M,F,b]),[L,I]=n.useState(A),$=n.useCallback((()=>{const e=T.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)}),[N]);n.useEffect((()=>(S&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$))),[d,S,$]),n.useEffect((()=>{A&&$()})),n.useImperativeHandle(c,(()=>A?{updatePosition:()=>{$()}}:null),[A,$]),n.useEffect((()=>{if(!A)return;const e=(0,oa.A)((()=>{$()})),t=(0,ia.A)(d);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[d,A,$]);let Q=k;"auto"!==k||x.muiSupportAuto||(Q=void 0);const W=v||(d?(0,Qi.A)(za(d)).body:void 0),z=null!=(a=null==w?void 0:w.root)?a:Ua,U=null!=(s=null==w?void 0:w.paper)?s:Va,V=Fo({elementType:U,externalSlotProps:(0,t.A)({},B,{style:L?B.style:(0,t.A)({},B.style,{opacity:0})}),additionalProps:{elevation:y,ref:j},ownerState:q,className:(0,fe.A)(R.paper,null==B?void 0:B.className)}),Z=Fo({elementType:z,externalSlotProps:(null==C?void 0:C.root)||{},externalForwardedProps:P,additionalProps:{ref:o,slotProps:{backdrop:{invisible:!0}},container:W,open:A},ownerState:q,className:(0,fe.A)(R.root,g)}),{slotProps:Y}=Z,H=(0,r.A)(Z,Ia);return(0,u.jsx)(z,(0,t.A)({},H,!Ur(z)&&{slotProps:Y,disableScrollLock:S},{children:(0,u.jsx)(x,(0,t.A)({appear:!0,in:A,onEntering:(e,t)=>{E&&E(e,t),$()},onExited:()=>{I(!1)},timeout:Q},D,{children:(0,u.jsx)(U,(0,t.A)({},V,{children:m}))}))}))})),Ya=Za;function Ha(e){return(0,Ye.Ay)("MuiMenu",e)}(0,je.A)("MuiMenu",["root","paper","list"]);const Ga=["onEntering"],Xa=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ka={vertical:"top",horizontal:"right"},Ja={vertical:"top",horizontal:"left"},es=(0,ge.Ay)(Ya,{shouldForwardProp:e=>(0,ve.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ts=(0,ge.Ay)(Va,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),rs=(0,ge.Ay)(na,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ns=n.forwardRef((function(e,o){var i,a;const s=(0,ye.b)({props:e,name:"MuiMenu"}),{autoFocus:l=!0,children:c,className:d,disableAutoFocusItem:f=!1,MenuListProps:p={},onClose:h,open:g,PaperProps:v={},PopoverClasses:y,transitionDuration:b="auto",TransitionProps:{onEntering:A}={},variant:O="selectedMenu",slots:w={},slotProps:C={}}=s,_=(0,r.A)(s.TransitionProps,Ga),x=(0,r.A)(s,Xa),k=m(),E=(0,t.A)({},s,{autoFocus:l,disableAutoFocusItem:f,MenuListProps:p,onEntering:A,PaperProps:v,transitionDuration:b,TransitionProps:_,variant:O}),S=(e=>{const{classes:t}=e;return(0,he.A)({root:["root"],paper:["paper"],list:["list"]},Ha,t)})(E),D=l&&!f&&g,P=n.useRef(null);let B=-1;n.Children.map(c,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===O&&e.props.selected||-1===B)&&(B=t))}));const T=null!=(i=w.paper)?i:ts,j=null!=(a=C.paper)?a:v,q=Fo({elementType:w.root,externalSlotProps:C.root,ownerState:E,className:[S.root,d]}),R=Fo({elementType:T,externalSlotProps:j,ownerState:E,className:S.paper});return(0,u.jsx)(es,(0,t.A)({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?Ka:Ja,slots:{paper:T,root:w.root},slotProps:{root:q,paper:R},open:g,ref:o,transitionDuration:b,TransitionProps:(0,t.A)({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,{direction:k?"rtl":"ltr"}),A&&A(e,t)}},_),ownerState:E},x,{classes:y,children:(0,u.jsx)(rs,(0,t.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),h&&h(e,"tabKeyDown"))},actions:P,autoFocus:l&&(-1===B||f),autoFocusItem:D,variant:O},p,{className:(0,fe.A)(S.list,p.className),children:c}))}))}));var os=__webpack_require__(85769),is={};is.styleTagTransform=L(),is.setAttributes=R(),is.insert=j().bind(null,"head"),is.domAPI=B(),is.insertStyleElement=F(),D()(os.A,is);const as=os.A&&os.A.locals?os.A.locals:void 0;var ss=__webpack_require__(45711),ls="rgb(85, 85, 85)";const us=function(e){var t=e.onChangeValue,r=e.query,o=e.objectPathId,i=e.value,a=e.hasEdited;if(!r)return{textColor:ls};var s=(0,ss.A)({query:r,objectPathId:o}),l=s.resolvedQuery,u=s.mrnEntriesLoaded;(0,n.useEffect)((function(){!a&&l&&(0===i.length&&l||i===l?t({value:l,hasEdited:"not-edited"}):i!==l&&t({value:i,hasEdited:"edited"})),a&&t({value:"not-edited"===a?l:i})}),[l]);var c=(!a||"not-edited"===a)&&(null==i?void 0:i.length)>0?"rgba(85, 85, 85, 0.6)":ls;return{textColor:u?c:ls}};var cs=__webpack_require__(74648),ds={};ds.styleTagTransform=L(),ds.setAttributes=R(),ds.insert=j().bind(null,"head"),ds.domAPI=B(),ds.insertStyleElement=F(),D()(cs.A,ds);const fs=cs.A&&cs.A.locals?cs.A.locals:void 0;var ps=__webpack_require__(2833),hs=__webpack_require__.n(ps);const ms=function(e){function t(e,n,l,u,f){for(var p,h,m,g,A,w=0,C=0,_=0,x=0,k=0,T=0,q=m=p=0,M=0,F=0,N=0,L=0,I=l.length,$=I-1,Q="",W="",z="",U="";M<I;){if(h=l.charCodeAt(M),M===$&&0!==C+x+_+w&&(0!==C&&(h=47===C?10:47),x=_=w=0,I++,$++),0===C+x+_+w){if(M===$&&(0<F&&(Q=Q.replace(d,"")),0<Q.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:Q+=l.charAt(M)}h=59}switch(h){case 123:for(p=(Q=Q.trim()).charCodeAt(0),m=1,L=++M;M<I;){switch(h=l.charCodeAt(M)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(M+1)){case 42:case 47:e:{for(q=M+1;q<$;++q)switch(l.charCodeAt(q)){case 47:if(42===h&&42===l.charCodeAt(q-1)&&M+2!==q){M=q+1;break e}break;case 10:if(47===h){M=q+1;break e}}M=q}}break;case 91:h++;case 40:h++;case 34:case 39:for(;M++<$&&l.charCodeAt(M)!==h;);}if(0===m)break;M++}if(m=l.substring(L,M),0===p&&(p=(Q=Q.replace(c,"").trim()).charCodeAt(0)),64===p){switch(0<F&&(Q=Q.replace(d,"")),h=Q.charCodeAt(1)){case 100:case 109:case 115:case 45:F=n;break;default:F=B}if(L=(m=t(n,F,m,h,f+1)).length,0<j&&(A=s(3,m,F=r(B,Q,N),n,S,E,L,h,f,u),Q=F.join(""),void 0!==A&&0===(L=(m=A.trim()).length)&&(h=0,m="")),0<L)switch(h){case 115:Q=Q.replace(O,a);case 100:case 109:case 45:m=Q+"{"+m+"}";break;case 107:m=(Q=Q.replace(v,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=Q+m,112===u&&(W+=m,m="")}else m=""}else m=t(n,r(n,Q,N),m,u,f+1);z+=m,m=N=F=q=p=0,Q="",h=l.charCodeAt(++M);break;case 125:case 59:if(1<(L=(Q=(0<F?Q.replace(d,""):Q).trim()).length))switch(0===q&&(p=Q.charCodeAt(0),45===p||96<p&&123>p)&&(L=(Q=Q.replace(" ",":")).length),0<j&&void 0!==(A=s(1,Q,n,e,S,E,W.length,u,f,u))&&0===(L=(Q=A.trim()).length)&&(Q="\0\0"),p=Q.charCodeAt(0),h=Q.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){U+=Q+l.charAt(M);break}default:58!==Q.charCodeAt(L-1)&&(W+=o(Q,p,h,Q.charCodeAt(2)))}N=F=q=p=0,Q="",h=l.charCodeAt(++M)}}switch(h){case 13:case 10:47===C?C=0:0===1+p&&107!==u&&0<Q.length&&(F=1,Q+="\0"),0<j*R&&s(0,Q,n,e,S,E,W.length,u,f,u),E=1,S++;break;case 59:case 125:if(0===C+x+_+w){E++;break}default:switch(E++,g=l.charAt(M),h){case 9:case 32:if(0===x+w+C)switch(k){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===x+C+w&&(F=N=1,g="\f"+g);break;case 108:if(0===x+C+w+D&&0<q)switch(M-q){case 2:112===k&&58===l.charCodeAt(M-3)&&(D=k);case 8:111===T&&(D=T)}break;case 58:0===x+C+w&&(q=M);break;case 44:0===C+_+x+w&&(F=1,g+="\r");break;case 34:case 39:0===C&&(x=x===h?0:0===x?h:x);break;case 91:0===x+C+_&&w++;break;case 93:0===x+C+_&&w--;break;case 41:0===x+C+w&&_--;break;case 40:0===x+C+w&&(0===p&&(2*k+3*T==533||(p=1)),_++);break;case 64:0===C+_+x+w+q+m&&(m=1);break;case 42:case 47:if(!(0<x+w+_))switch(C){case 0:switch(2*h+3*l.charCodeAt(M+1)){case 235:C=47;break;case 220:L=M,C=42}break;case 42:47===h&&42===k&&L+2!==M&&(33===l.charCodeAt(L+2)&&(W+=l.substring(L,M+1)),g="",C=0)}}0===C&&(Q+=g)}T=k,k=h,M++}if(0<(L=W.length)){if(F=n,0<j&&void 0!==(A=s(2,W,F,e,S,E,L,u,f,u))&&0===(W=A).length)return U+W+z;if(W=F.join(",")+"{"+W+"}",0!=P*D){switch(2!==P||i(W,2)||(D=0),D){case 111:W=W.replace(b,":-moz-$1")+W;break;case 112:W=W.replace(y,"::-webkit-input-$1")+W.replace(y,"::-moz-$1")+W.replace(y,":-ms-input-$1")+W}D=0}}return U+W+z}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[l++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===P||2===P&&i(l,1)?"-webkit-"+l+l:l}if(0===P||2===P&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(A,"tb");break;case 232:l=a.replace(A,"tb-rl");break;case 220:l=a.replace(A,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),q(2!==t?n:n.replace(_,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(w," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,l,c){for(var d,f=0,p=t;f<j;++f)switch(d=T[f].call(u,e,p,r,n,o,i,a,s,l,c)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(q=null,e?"function"!=typeof e?P=1:(P=2,q=e):P=0),l}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<j){var o=s(-1,r,n,n,S,E,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(B,n,r,0,0);return 0<j&&void 0!==(o=s(-2,i,n,n,S,E,i.length,0,0,0))&&(i=o),D=0,E=S=1,i}var c=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,A=/[svh]\w+-[tblr]{2}/,O=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,C=/-self|flex-/g,_=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,E=1,S=1,D=0,P=1,B=[],T=[],j=0,q=null,R=0;return u.use=function e(t){switch(t){case void 0:case null:j=T.length=0;break;default:if("function"==typeof t)T[j++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else R=0|!!t}return e},u.set=l,void 0!==e&&l(e),u},gs={animationIterationCount: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,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};var vs=__webpack_require__(91907),ys=__webpack_require__(4146),bs=__webpack_require__.n(ys);function As(){return(As=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Os=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},ws=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,$i.typeOf)(e)},Cs=Object.freeze([]),_s=Object.freeze({});function xs(e){return"function"==typeof e}function ks(e){return e.displayName||e.name||"Component"}function Es(e){return e&&"string"==typeof e.styledComponentId}var Ss="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ds="undefined"!=typeof window&&"HTMLElement"in window,Ps=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY));function Bs(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var Ts=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&Bs(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),js=new Map,qs=new Map,Rs=1,Ms=function(e){if(js.has(e))return js.get(e);for(;qs.has(Rs);)Rs++;var t=Rs++;return js.set(e,t),qs.set(t,e),t},Fs=function(e){return qs.get(e)},Ns=function(e,t){t>=Rs&&(Rs=t+1),js.set(e,t),qs.set(t,e)},Ls="style["+Ss+'][data-styled-version="5.3.11"]',Is=new RegExp("^"+Ss+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),$s=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Qs=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(Is);if(s){var l=0|parseInt(s[1],10),u=s[2];0!==l&&(Ns(u,l),$s(e,u,s[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(a)}}},Ws=function(){return __webpack_require__.nc},zs=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(Ss))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Ss,"active"),n.setAttribute("data-styled-version","5.3.11");var a=Ws();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Us=function(){function e(e){var t=this.element=zs(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}Bs(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Vs=function(){function e(e){var t=this.element=zs(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Zs=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ys=Ds,Hs={isServer:!Ds,useCSSOMInjection:!Ps},Gs=function(){function e(e,t,r){void 0===e&&(e=_s),void 0===t&&(t={}),this.options=As({},Hs,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Ds&&Ys&&(Ys=!1,function(e){for(var t=document.querySelectorAll(Ls),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(Ss)&&(Qs(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return Ms(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(As({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new Zs(o):n?new Us(o):new Vs(o),new Ts(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Ms(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Ms(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Ms(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=Fs(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var l=Ss+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+l+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),Xs=/(a)(d)/gi,Ks=function(e){return String.fromCharCode(e+(e>25?39:97))};function Js(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Ks(t%52)+r;return(Ks(t%52)+r).replace(Xs,"$1-$2")}var el=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},tl=function(e){return el(5381,e)};function rl(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(xs(r)&&!Es(r))return!1}return!0}var nl=tl("5.3.11"),ol=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&rl(e),this.componentId=t,this.baseHash=el(nl,t),this.baseStyle=r,Gs.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=Ol(this.rules,e,t,r).join(""),a=Js(el(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,u=el(this.baseHash,r.hash),c="",d=0;d<l;d++){var f=this.rules[d];if("string"==typeof f)c+=f;else if(f){var p=Ol(f,e,t,r),h=Array.isArray(p)?p.join(""):p;u=el(u,h+d),c+=h}}if(c){var m=Js(u>>>0);if(!t.hasNameForId(n,m)){var g=r(c,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),il=/^\s*\/\/.*$/gm,al=[":","[",".","#"];function sl(e){var t,r,n,o,i=void 0===e?_s:e,a=i.options,s=void 0===a?_s:a,l=i.plugins,u=void 0===l?Cs:l,c=new ms(s),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,l,u,c,d){switch(r){case 1:if(0===c&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,n,i){return 0===n&&-1!==al.indexOf(i[r.length])||i.match(o)?e:"."+t};function h(e,i,a,s){void 0===s&&(s="&");var l=e.replace(il,""),u=i&&a?a+" "+i+" { "+l+" }":l;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),c(a||!i?"":i,u)}return c.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,p))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),h.hash=u.length?u.reduce((function(e,t){return t.name||Bs(15),el(e,t.name)}),5381).toString():"",h}var ll=i().createContext(),ul=(ll.Consumer,i().createContext()),cl=(ul.Consumer,new Gs),dl=sl();function fl(){return(0,n.useContext)(ll)||cl}function pl(e){var t=(0,n.useState)(e.stylisPlugins),r=t[0],o=t[1],a=fl(),s=(0,n.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,n.useMemo)((function(){return sl({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,n.useEffect)((function(){hs()(r,e.stylisPlugins)||o(e.stylisPlugins)}),[e.stylisPlugins]),i().createElement(ll.Provider,{value:s},i().createElement(ul.Provider,{value:l},e.children))}var hl=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=dl);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return Bs(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=dl),this.name+e.hash},e}(),ml=/([A-Z])/,gl=/([A-Z])/g,vl=/^ms-/,yl=function(e){return"-"+e.toLowerCase()};function bl(e){return ml.test(e)?e.replace(gl,yl).replace(vl,"-ms-"):e}var Al=function(e){return null==e||!1===e||""===e};function Ol(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Ol(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Al(e)?"":Es(e)?"."+e.styledComponentId:xs(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:Ol(e(t),t,r,n):e instanceof hl?r?(e.inject(r,n),e.getName(n)):e:ws(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Al(t[a])&&(Array.isArray(t[a])&&t[a].isCss||xs(t[a])?i.push(bl(a)+":",t[a],";"):ws(t[a])?i.push.apply(i,e(t[a],a)):i.push(bl(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in gs||n.startsWith("--")?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var l}var wl=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Cl(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return xs(e)||ws(e)?wl(Ol(Os(Cs,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:wl(Ol(Os(e,r)))}new Set;var _l=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,xl=/(^-|-$)/g;function kl(e){return e.replace(_l,"-").replace(xl,"")}function El(e){return"string"==typeof e&&!0}var Sl=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Dl=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Pl(e,t,r){var n=e[r];Sl(t)&&Sl(n)?Bl(n,t):e[r]=t}function Bl(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(Sl(a))for(var s in a)Dl(s)&&Pl(e,a[s],s)}return e}var Tl=i().createContext();Tl.Consumer;var jl={};function ql(e,t,r){var o=Es(e),a=!El(e),s=t.attrs,l=void 0===s?Cs:s,u=t.componentId,c=void 0===u?function(e,t){var r="string"!=typeof e?"sc":kl(e);jl[r]=(jl[r]||0)+1;var n=r+"-"+function(e){return Js(tl(e)>>>0)}("5.3.11"+r+jl[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):u,d=t.displayName,f=void 0===d?function(e){return El(e)?"styled."+e:"Styled("+ks(e)+")"}(e):d,p=t.displayName&&t.componentId?kl(t.displayName)+"-"+t.componentId:t.componentId||c,h=o&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,m=t.shouldForwardProp;o&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var g,v=new ol(r,p,o?e.componentStyle:void 0),y=v.isStatic&&0===l.length,b=function(e,t){return function(e,t,r,o){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,u=e.shouldForwardProp,c=e.styledComponentId,d=e.target,f=function(e,t,r){void 0===e&&(e=_s);var n=As({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in xs(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(function(e,t,r){return void 0===r&&(r=_s),e.theme!==r.theme&&e.theme||t||r.theme}(t,(0,n.useContext)(Tl),s)||_s,t,i),p=f[0],h=f[1],m=function(e,t,r){var o=fl(),i=(0,n.useContext)(ul)||dl;return t?e.generateAndInjectStyles(_s,o,i):e.generateAndInjectStyles(r,o,i)}(a,o,p),g=r,v=h.$as||t.$as||h.as||t.as||d,y=El(v),b=h!==t?As({},t,{},h):t,A={};for(var O in b)"$"!==O[0]&&"as"!==O&&("forwardedAs"===O?A.as=b[O]:(u?u(O,vs.A,v):!y||(0,vs.A)(O))&&(A[O]=b[O]));return t.style&&h.style!==t.style&&(A.style=As({},t.style,{},h.style)),A.className=Array.prototype.concat(l,c,m!==c?m:null,t.className,h.className).filter(Boolean).join(" "),A.ref=g,(0,n.createElement)(v,A)}(g,e,t,y)};return b.displayName=f,(g=i().forwardRef(b)).attrs=h,g.componentStyle=v,g.displayName=f,g.shouldForwardProp=m,g.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):Cs,g.styledComponentId=p,g.target=o?e.target:e,g.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(El(e)?e:kl(ks(e)));return ql(e,As({},o,{attrs:h,componentId:i}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Bl({},e.defaultProps,t):t}}),Object.defineProperty(g,"toString",{value:function(){return"."+g.styledComponentId}}),a&&bs()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var Rl=function(e){return function e(t,r,n){if(void 0===n&&(n=_s),!(0,$i.isValidElementType)(r))return Bs(1,String(r));var o=function(){return t(r,n,Cl.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,As({},n,{},o))},o.attrs=function(o){return e(t,r,As({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(ql,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Rl[e]=Rl(e)})),function(){var e=function(e,t){this.rules=e,this.componentId=t,this.isStatic=rl(e),Gs.registerId(this.componentId+1)}.prototype;e.createStyles=function(e,t,r,n){var o=n(Ol(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},e.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.renderStyles=function(e,t,r,n){e>2&&Gs.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)}}(),function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=Ws();return"<style "+[r&&'nonce="'+r+'"',Ss+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?Bs(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return Bs(2);var r=((t={})[Ss]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=Ws();return n&&(r.nonce=n),[i().createElement("style",As({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Gs({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?Bs(2):i().createElement(pl,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return Bs(3)}}();const Ml=Rl,Fl=(0,wi.A)((0,u.jsx)("path",{d:"M19 6.41 17.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"}),"Clear");function Nl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ll(){var e=Nl(["\n width: 100%;\n position: relative;\n"]);return Ll=function(){return e},e}function Il(){var e=Nl(["\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 40px;\n border-radius: 100%;\n display: ",";\n justify-content: center;\n align-items: center;\n cursor: pointer;\n &:hover {\n background-color: #f5f5f5;\n }\n"]);return Il=function(){return e},e}function $l(){var e=Nl(["\n color: #767676;\n"]);return $l=function(){return e},e}var Ql=Ml.div(Ll()),Wl=Ml.div(Il(),(function(e){return""===e.inputValue?"none":"flex"})),zl=Ml(Fl)($l());function Ul(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ul(e,t,r[t])}))}return e}function Zl(e,t){if(null==e)return{};var r,n,o,i={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(Object(e)),o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}const Yl=function(e){var t,r=e.onChangeValue,n=e.hasClearButton,o=void 0!==n&&n,a=e.onClearCallback,s=e.controlProps,l=Zl(e,["onChangeValue","hasClearButton","onClearCallback","controlProps"]),u=l.control,c=l.id,d=l.objectPathId,f=Zl(l,["control","id","objectPathId"]),p=u.value,h=void 0===p?"":p,m=(u.displayName,u["custom-attributes"]),g=u.error,v=u.placeholder,y=u.required,b=u.hasEdited,A=Zl(u,["value","displayName","custom-attributes","error","placeholder","required","hasEdited"]),O=null==m?void 0:m.defaultValue,w=us({onChangeValue:r,query:O,objectPathId:d,value:h,hasEdited:b}).textColor,C=g?"error":"",_=as["form-control"];_=C?_+" "+fs[C]:_;var x,k,E=v?y?v+" *":v:"";return i().createElement(Ql,null,i().createElement("input",(x=Vl({role:"textbox","data-testid":"input-control-".concat(c),max:"date"===u.type?"9999-12-31":null,className:_,id:d||c,name:d||c,value:h,onChange:function(e){r({value:e.target.value,hasEdited:"edited"})},onWheel:function(e){var t=e.target;"number"===t.type&&t.blur()},placeholder:E,required:y},Mi()(m,["defaultValue","mrnPreview","mrnSources"]),Mi()(A,["displayName","placholder","control","error","defaultValue"]),Mi()(f,["defaultValue","mrnPreview","mrnSources"])),k=null!=(k={style:Vl({color:w,minWidth:o?"175px":""},null==s||null===(t=s.inputProps)||void 0===t?void 0:t.style)})?k:{},Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(k)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(k)).forEach((function(e){Object.defineProperty(x,e,Object.getOwnPropertyDescriptor(k,e))})),x)),o&&"date"===u.type&&i().createElement(Wl,{inputValue:h},i().createElement(zl,{"data-testid":"input_clearButton",fontSize:"small",onClick:function(){r({value:""}),null==a||a()}})))};function Hl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Gl(){var e=Hl(["\n position: relative;\n font-size: 14px;\n font-weight: 400;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n gap: 10px;\n padding: 10px 0;\n margin-bottom: -10px;\n @media screen and (max-width: 767px) {\n flex-direction: column;\n gap: 5px;\n }\n container-type: inline-size;\n"]);return Gl=function(){return e},e}function Xl(){var e=Hl(["\n font-size: 14px;\n font-weight: 400;\n width: 200px;\n text-align: right;\n flex-shrink: 0;\n margin: 0 !important;\n padding-top: 9px;\n font-size: 14px;\n @media screen and (max-width: 767px) {\n text-align: left;\n }\n"]);return Xl=function(){return e},e}function Kl(){var e=Hl(["\n font-size: 14px;\n font-weight: 400;\n box-sizing: border-box;\n padding: 6px 12px;\n width: 40%;\n outline: none;\n border: 1px solid #ccc;\n font-size: 14px;\n color: #555;\n box-shadow: none !important;\n border-radius: 4px;\n &:hover,\n &:focus {\n border: 1px solid rgba(0, 0, 0, 0.87);\n }\n &::-moz-placeholder {\n color: #999;\n opacity: 1;\n }\n &:-ms-input-placeholder {\n color: #999;\n }\n &::-webkit-input-placeholder {\n color: #999;\n }\n"]);return Kl=function(){return e},e}var Jl=Ml.div(Gl()),eu=Ml.label(Xl()),tu=(Ml(Yl)(Kl()),__webpack_require__(20889)),ru=__webpack_require__(30020),nu=__webpack_require__(29468),ou={};ou.styleTagTransform=L(),ou.setAttributes=R(),ou.insert=j().bind(null,"head"),ou.domAPI=B(),ou.insertStyleElement=F(),D()(nu.A,ou);const iu=nu.A&&nu.A.locals?nu.A.locals:void 0;function au(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function su(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return au(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?au(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const lu=function(e){var t=e.handleDateChange,r=e.from,o=e.to,a=su((0,n.useState)([{startDate:new Date,endDate:new Date,key:"selection"}]),2),s=a[0],l=a[1],u=su((0,n.useState)(window.matchMedia("(max-width: 615px)").matches),2),c=u[0],d=u[1],f=su((0,n.useState)(window.matchMedia("(max-width: 1200px)").matches),2),p=f[0],h=f[1];window.addEventListener("resize",(function(){var e=window.matchMedia("(max-width: 1200px)").matches;e!==p&&h(e);var t=window.matchMedia("(max-width: 615px)").matches;t!==c&&d(t)})),(0,n.useEffect)((function(){var e=[],t=[];r&&(e=r.split("-")),o&&(t=o.split("-"));var n=r?new Date(Number(e[0]),Number(e[1])-1,Number(e[2])):new Date,i=o?new Date(Number(t[0]),Number(t[1])-1,Number(t[2])):n;l([{startDate:n,endDate:i,key:"selection"}])}),[r,o]);var m=function(e,r){l(e),e[0].startDate!==e[0].endDate&&t(e[0],r)},g=function(){t(s[0])};return i().createElement("div",{className:iu.dateRangeWrapper},c?i().createElement("div",{style:{display:"flex",flexDirection:"column"}},i().createElement(ru.ad,{onChange:function(e){return m([e.selection])},moveRangeOnFirstSelection:!1,ranges:s,direction:"horizontal"}),i().createElement(dt,{variant:"contained",size:"medium",sx:{display:"flex",alignItems:"center",alignSelf:"flex-end",marginRight:"16px",marginBottom:"16px",gap:"8px",width:"fit-content",backgroundColor:"#4A96D2",boxShadow:"none","&:hover":{backgroundColor:"#0B5BA6",boxShadow:"none"}},onClick:g},i().createElement("p",{style:{all:"unset"}},"CONFIRM"),i().createElement(tu.A,{style:{color:"white",width:"20px",height:"20px"}}))):i().createElement("div",{style:{display:"flex",flexDirection:"column"}},i().createElement("div",{style:{display:"flex"}},i().createElement(ru.HY,{ranges:s,onChange:function(e){return m([e.selection],!0)}}),i().createElement(ru.ad,{ranges:s,onChange:function(e){return m([e.selection])},showDateDisplay:!1,direction:"horizontal",months:p?1:2,"data-testid":"date-range-picker"})),i().createElement(dt,{variant:"contained",size:"medium",sx:{display:"flex",alignItems:"center",alignSelf:"flex-end",marginRight:"16px",marginBottom:"16px",gap:"8px",width:"fit-content",backgroundColor:"#4A96D2",boxShadow:"none","&:hover":{backgroundColor:"#0B5BA6",boxShadow:"none"}},onClick:g},i().createElement("p",{style:{all:"unset"}},"CONFIRM"),i().createElement(tu.A,{style:{color:"white",width:"20px",height:"20px"}}))))};function uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function du(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){cu(e,t,r[t])}))}return e}var fu=void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function pu(){throw new Error("setTimeout has not been defined")}function hu(){throw new Error("clearTimeout has not been defined")}var mu=pu,gu=hu;function vu(e){if(mu===setTimeout)return setTimeout(e,0);if((mu===pu||!mu)&&setTimeout)return mu=setTimeout,setTimeout(e,0);try{return mu(e,0)}catch(t){try{return mu.call(null,e,0)}catch(t){return mu.call(this,e,0)}}}"function"==typeof fu.setTimeout&&(mu=setTimeout),"function"==typeof fu.clearTimeout&&(gu=clearTimeout);var yu,bu=[],Au=!1,Ou=-1;function wu(){Au&&yu&&(Au=!1,yu.length?bu=yu.concat(bu):Ou=-1,bu.length&&Cu())}function Cu(){if(!Au){var e=vu(wu);Au=!0;for(var t=bu.length;t;){for(yu=bu,bu=[];++Ou<t;)yu&&yu[Ou].run();Ou=-1,t=bu.length}yu=null,Au=!1,function(e){if(gu===clearTimeout)return clearTimeout(e);if((gu===hu||!gu)&&clearTimeout)return gu=clearTimeout,clearTimeout(e);try{return gu(e)}catch(t){try{return gu.call(null,e)}catch(t){return gu.call(this,e)}}}(e)}}function _u(e,t){this.fun=e,this.array=t}function xu(){}_u.prototype.run=function(){this.fun.apply(null,this.array)};var ku=xu,Eu=xu,Su=xu,Du=xu,Pu=xu,Bu=xu,Tu=xu,ju=fu.performance||{},qu=ju.now||ju.mozNow||ju.msNow||ju.oNow||ju.webkitNow||function(){return(new Date).getTime()},Ru=new Date,Mu={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];bu.push(new _u(e,t)),1!==bu.length||Au||vu(Cu)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:ku,addListener:Eu,once:Su,off:Du,removeListener:Pu,removeAllListeners:Bu,emit:Tu,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*qu.call(ju),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Ru)/1e3}},Fu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function Nu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lu(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Iu,$u,Qu={exports:{}},Wu={},zu={};"production"===Mu.env.NODE_ENV?Qu.exports=function(){if(Iu)return Wu;Iu=1;var e=i(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,i){var s,l={},u=null,c=null;for(s in void 0!==i&&(u=""+i),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(c=r.ref),r)n.call(r,s)&&!a.hasOwnProperty(s)&&(l[s]=r[s]);if(e&&e.defaultProps)for(s in r=e.defaultProps)void 0===l[s]&&(l[s]=r[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return Wu.Fragment=r,Wu.jsx=s,Wu.jsxs=s,Wu}():Qu.exports=($u||($u=1,"production"!==Mu.env.NODE_ENV&&function(){var e,t=i(),r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=Symbol.iterator,v=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];!function(e,t,r){var n=v.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,o)}(0,e,r)}function b(e){return e.displayName||"Context"}function A(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case n:return"Portal";case s:return"Profiler";case a:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case u:return b(e)+".Consumer";case l:return b(e._context)+".Provider";case c:return function(e,t,r){var n=e.displayName;if(n)return n;var o=t.displayName||t.name||"";return""!==o?r+"("+o+")":r}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:A(e.type)||"Memo";case h:var r=e,i=r._payload,m=r._init;try{return A(m(i))}catch(e){return null}}return null}e=Symbol.for("react.module.reference");var O,w,C,_,x,k,E,S=Object.assign,D=0;function P(){}P.__reactDisabledLog=!0;var B,T=v.ReactCurrentDispatcher;function j(e,t,r){if(void 0===B)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);B=n&&n[1]||""}return"\n"+B+e}var q,R=!1,M="function"==typeof WeakMap?WeakMap:Map;function F(e,t){if(!e||R)return"";var r,n=q.get(e);if(void 0!==n)return n;R=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=T.current,T.current=null,function(){if(0===D){O=console.log,w=console.info,C=console.warn,_=console.error,x=console.group,k=console.groupCollapsed,E=console.groupEnd;var e={configurable:!0,enumerable:!0,value:P,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){r=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){r=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=r.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&q.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{R=!1,T.current=o,function(){if(0==--D){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:O}),info:S({},e,{value:w}),warn:S({},e,{value:C}),error:S({},e,{value:_}),group:S({},e,{value:x}),groupCollapsed:S({},e,{value:k}),groupEnd:S({},e,{value:E})})}D<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",p=f?j(f):"";return"function"==typeof e&&q.set(e,p),p}function N(e,t,r){if(null==e)return"";if("function"==typeof e)return F(e,!(!(n=e.prototype)||!n.isReactComponent));var n;if("string"==typeof e)return j(e);switch(e){case d:return j("Suspense");case f:return j("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return F(e.render,!1);case p:return N(e.type,t,r);case h:var o=e,i=o._payload,a=o._init;try{return N(a(i),t,r)}catch(e){}}return""}q=new M;var L=Object.prototype.hasOwnProperty,I={},$=v.ReactDebugCurrentFrame;function Q(e){if(e){var t=e._owner,r=N(e.type,e._source,t?t.type:null);$.setExtraStackFrame(r)}else $.setExtraStackFrame(null)}var W=Array.isArray;function z(e){return W(e)}function U(e){return""+e}function V(e){if(function(e){try{return U(e),!1}catch(e){return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),U(e)}var Z,Y,H,G=v.ReactCurrentOwner,X={key:!0,ref:!0,__self:!0,__source:!0};H={};var K,J=v.ReactCurrentOwner,ee=v.ReactDebugCurrentFrame;function te(e){if(e){var t=e._owner,r=N(e.type,e._source,t?t.type:null);ee.setExtraStackFrame(r)}else ee.setExtraStackFrame(null)}function re(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}function ne(){if(J.current){var e=A(J.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}K=!1;var oe={};function ie(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=ne();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!oe[r]){oe[r]=!0;var n="";e&&e._owner&&e._owner!==J.current&&(n=" It was passed a child from "+A(e._owner.type)+"."),te(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),te(null)}}}function ae(e,t){if("object"==typeof e)if(z(e))for(var r=0;r<e.length;r++){var n=e[r];re(n)&&ie(n,t)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)re(i.value)&&ie(i.value,t)}}function se(t,n,i,g,v,b){var O=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===s||t===a||t===d||t===f||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===l||t.$$typeof===u||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)}(t);if(!O){var w="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C,_=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(v);w+=_||ne(),null===t?C="null":z(t)?C="array":void 0!==t&&t.$$typeof===r?(C="<"+(A(t.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):C=typeof t,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,w)}var x=function(e,t,n,o,i){var a,s={},l=null,u=null;for(a in void 0!==n&&(V(n),l=""+n),function(e){if(L.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(V(t.key),l=""+t.key),function(e){if(L.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(u=t.ref,function(e,t){if("string"==typeof e.ref&&G.current&&t&&G.current.stateNode!==t){var r=A(G.current.type);H[r]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',A(G.current.type),e.ref),H[r]=!0)}}(t,i)),t)L.call(t,a)&&!X.hasOwnProperty(a)&&(s[a]=t[a]);if(e&&e.defaultProps){var c=e.defaultProps;for(a in c)void 0===s[a]&&(s[a]=c[a])}if(l||u){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var r=function(){Z||(Z=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(s,d),u&&function(e,t){var r=function(){Y||(Y=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}(s,d)}return function(e,t,n,o,i,a,s){var l={$$typeof:r,type:e,key:t,ref:n,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(e,l,u,i,o,G.current,s)}(t,n,i,v,b);if(null==x)return x;if(O){var k=n.children;if(void 0!==k)if(g)if(z(k)){for(var E=0;E<k.length;E++)ae(k[E],t);Object.freeze&&Object.freeze(k)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ae(k,t)}return t===o?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){te(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),te(null);break}}null!==e.ref&&(te(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),te(null))}(x):function(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==c&&r.$$typeof!==p)return;t=r.propTypes}if(t){var n=A(r);!function(e,t,r,n,o){var i=Function.call.bind(L);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(Q(o),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,a,typeof s),Q(null)),s instanceof Error&&!(s.message in I)&&(I[s.message]=!0,Q(o),y("Failed %s type: %s",r,s.message),Q(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||K||(K=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(x),x}zu.Fragment=o,zu.jsx=function(e,t,r){return se(e,t,r,!1)},zu.jsxs=function(e,t,r){return se(e,t,r,!0)}}()),zu);var Uu=Qu.exports;function Vu(e){return Vu="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},Vu(e)}function Zu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yu(e){var t=function(e){if("object"!=Vu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Vu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vu(t)?t:t+""}function Hu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yu(n.key),n)}}function Gu(e,t,r){return t&&Hu(e.prototype,t),r&&Hu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ku(e,t){return Ku=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ku(e,t)}function Ju(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&&Ku(e,t)}function ec(e,t){if(t&&("object"===Vu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xu(e)}function tc(e){return tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tc(e)}function rc(e,t,r){return(t=Yu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nc(e){if(Array.isArray(e))return e}function oc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ic(e,t){if(e){if("string"==typeof e)return oc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oc(e,t):void 0}}function ac(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function sc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sc(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var uc={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},cc=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Zu(this,e),this.init(t,r)}return Gu(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||uc,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,r,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,lc(lc({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}(),dc=new cc,fc=function(){function e(){Zu(this,e),this.observers={}}return Gu(e,[{key:"on",value:function(e,t){var r=this;return e.split(" ").forEach((function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,r)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(r))}))}}]),e}();function pc(){var e,t,r=new Promise((function(r,n){e=r,t=n}));return r.resolve=e,r.reject=t,r}function hc(e){return null==e?"":""+e}function mc(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=n(i.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:n(i.shift())}}function gc(e,t,r){var n=mc(e,t,Object);n.obj[n.k]=r}function vc(e,t){var r=mc(e,t),n=r.obj,o=r.k;if(n)return n[o]}function yc(e,t,r){for(var n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?"string"==typeof e[n]||e[n]instanceof String||"string"==typeof t[n]||t[n]instanceof String?r&&(e[n]=t[n]):yc(e[n],t[n],r):e[n]=t[n]);return e}function bc(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Ac={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Oc(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Ac[e]})):e}var wc="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Cc=[" ",",","?","!",";"];function _c(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),o=e,i=0;i<n.length;++i){if(!o)return;if("string"==typeof o[n[i]]&&i+1<n.length)return;if(void 0===o[n[i]]){for(var a=2,s=n.slice(i,i+a).join(r),l=o[s];void 0===l&&n.length>i+a;)a++,l=o[s=n.slice(i,i+a).join(r)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var u=n.slice(i+a).join(r);return u?_c(l,u,r):void 0}o=o[n[i]]}return o}}function xc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xc(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ec=function(e){Ju(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=tc(t);if(r){var o=tc(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return ec(this,e)});function o(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Zu(this,o),t=n.call(this),wc&&fc.call(Xu(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return Gu(o,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];r&&"string"!=typeof r&&(a=a.concat(r)),r&&"string"==typeof r&&(a=a.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(a=e.split("."));var s=vc(this.data,a);return s||!i||"string"!=typeof r?s:_c(this.data&&this.data[e]&&this.data[e][t],r,o)}},{key:"addResource",value:function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(n=t,t=(a=e.split("."))[1]),this.addNamespaces(t),gc(this.data,a,n),o.silent||this.emit("added",e,t,r,n)}},{key:"addResources",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in r)"string"!=typeof r[o]&&"[object Array]"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(n=r,r=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=vc(this.data,a)||{};n?yc(s,r,o):s=kc(kc({},s),r),gc(this.data,a,s),i.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?kc(kc({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),o}(fc),Sc={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,r,n,o))})),t}};function Dc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Bc={},Tc=function(e){Ju(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=tc(t);if(r){var o=tc(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return ec(this,e)});function o(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Zu(this,o),t=n.call(this),wc&&fc.call(Xu(t)),function(e,t,r){["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((function(e){t[e]&&(r[e]=t[e])}))}(0,e,Xu(t)),t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=dc.create("translator"),t}return Gu(o,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=r&&e.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,r){t=t||"",r=r||"";var n=Cc.filter((function(e){return t.indexOf(e)<0&&r.indexOf(e)<0}));if(0===n.length)return!0;var o=new RegExp("(".concat(n.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(r);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}(e,r,n));if(i&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var l=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(l[0])>-1)&&(o=l.shift()),e=l.join(n)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,r){var n=this;if("object"!==Vu(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===Vu(t)&&(t=Pc({},t)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),l=s.key,u=s.namespaces,c=u[u.length-1],d=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(f){var p=t.nsSeparator||this.options.nsSeparator;return i?{res:"".concat(c).concat(p).concat(l),usedKey:l,exactUsedKey:l,usedLng:d,usedNS:c}:"".concat(c).concat(p).concat(l)}return i?{res:l,usedKey:l,exactUsedKey:l,usedLng:d,usedNS:c}:l}var h=this.resolve(e,t),m=h&&h.res,g=h&&h.usedKey||l,v=h&&h.exactUsedKey||l,y=Object.prototype.toString.apply(m),b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject;if(A&&m&&"string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,m,Pc(Pc({},t),{},{ns:u})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return i?(h.res=O,h):O}if(a){var w="[object Array]"===y,C=w?[]:{},_=w?v:g;for(var x in m)if(Object.prototype.hasOwnProperty.call(m,x)){var k="".concat(_).concat(a).concat(x);C[x]=this.translate(k,Pc(Pc({},t),{joinArrays:!1,ns:u})),C[x]===k&&(C[x]=m[x])}m=C}}else if(A&&"string"==typeof b&&"[object Array]"===y)(m=m.join(b))&&(m=this.extendTranslation(m,e,t,r));else{var E=!1,S=!1,D=void 0!==t.count&&"string"!=typeof t.count,P=o.hasDefaultValue(t),B=D?this.pluralResolver.getSuffix(d,t.count,t):"",T=t["defaultValue".concat(B)]||t.defaultValue;!this.isValidLookup(m)&&P&&(E=!0,m=T),this.isValidLookup(m)||(S=!0,m=l);var j=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:m,q=P&&T!==m&&this.options.updateMissing;if(S||E||q){if(this.logger.log(q?"updateKey":"missingKey",d,c,l,q?T:m),a){var R=this.resolve(l,Pc(Pc({},t),{},{keySeparator:!1}));R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var M=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var N=0;N<F.length;N++)M.push(F[N]);else"all"===this.options.saveMissingTo?M=this.languageUtils.toResolveHierarchy(t.lng||this.language):M.push(t.lng||this.language);var L=function(e,r,o){var i=P&&o!==m?o:j;n.options.missingKeyHandler?n.options.missingKeyHandler(e,c,r,i,q,t):n.backendConnector&&n.backendConnector.saveMissing&&n.backendConnector.saveMissing(e,c,r,i,q,t),n.emit("missingKey",e,c,r,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&D?M.forEach((function(e){n.pluralResolver.getSuffixes(e,t).forEach((function(r){L([e],l+r,t["defaultValue".concat(r)]||T)}))})):L(M,l,T))}m=this.extendTranslation(m,e,t,h,r),S&&m===l&&this.options.appendNamespaceToMissingKey&&(m="".concat(c,":").concat(l)),(S||E)&&this.options.parseMissingKeyHandler&&(m="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(c,":").concat(l):l,E?m:void 0):this.options.parseMissingKeyHandler(m))}return i?(h.res=m,h):m}},{key:"extendTranslation",value:function(e,t,r,n,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,Pc(Pc({},this.options.interpolation.defaultVariables),r),n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(Pc(Pc({},r),{interpolation:Pc(Pc({},this.options.interpolation),r.interpolation)}));var a,s="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var u=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(u=Pc(Pc({},this.options.interpolation.defaultVariables),u)),e=this.interpolator.interpolate(e,u,r.lng||this.language,r),s){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return o&&o[0]===n[0]&&!r.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(t[0])),null):i.translate.apply(i,n.concat([t]))}),r)),r.interpolation&&this.interpolator.reset()}var d=r.postProcess||this.options.postProcess,f="string"==typeof d?[d]:d;return null!=e&&f&&f.length&&!1!==r.applyPostProcessor&&(e=Sc.handle(f,e,t,this.options&&this.options.postProcessPassResolved?Pc({i18nResolved:n},r):r,this)),e}},{key:"resolve",value:function(e){var t,r,n,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),u=l.key;r=u;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,f=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!Bc["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(Bc["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(r,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(r){if(!a.isValidLookup(t)){o=r;var i,l=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(l,u,r,e,s);else{var c;d&&(c=a.pluralResolver.getSuffix(r,s.count,s));var h="".concat(a.options.pluralSeparator,"zero");if(d&&(l.push(u+c),f&&l.push(u+h)),p){var m="".concat(u).concat(a.options.contextSeparator).concat(s.context);l.push(m),d&&(l.push(m+c),f&&l.push(m+h))}}for(;i=l.pop();)a.isValidLookup(t)||(n=i,t=a.getResource(r,e,i,s))}})))}))}})),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),o}(fc);function jc(e){return e.charAt(0).toUpperCase()+e.slice(1)}var qc=function(){function e(t){Zu(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=dc.create("languageUtils")}return Gu(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=jc(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=jc(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=jc(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach((function(e){if(!t){var n=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(n)||(t=n)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var n=r.getLanguagePartFromCode(e);if(r.isSupportedCode(n))return t=n;t=r.options.supportedLngs.find((function(e){return e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(r.isSupportedCode(e)?o.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach((function(e){o.indexOf(e)<0&&i(r.formatLanguageCode(e))})),o}}]),e}(),Rc=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Mc={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Fc=["v1","v2","v3"],Nc={zero:0,one:1,two:2,few:3,many:4,other:5},Lc=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Zu(this,e),this.languageUtils=t,this.options=r,this.logger=dc.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){var e={};return Rc.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:Mc[t.fc]}}))})),e}()}return Gu(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((function(e,t){return Nc[e]-Nc[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):n.numbers.map((function(n){return t.getSuffix(e,n,r)})):[]}},{key:"getSuffix",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var r=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!Fc.includes(this.options.compatibilityJSON)}}]),e}();function Ic(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ic(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ic(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qc(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=function(e,t,r){var n=vc(e,r);return void 0!==n?n:vc(t,r)}(e,t,r);return!i&&o&&"string"==typeof r&&void 0===(i=_c(e,r,n))&&(i=_c(t,r,n)),i}var Wc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Zu(this,e),this.logger=dc.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Gu(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Oc,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?bc(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?bc(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?bc(t.nestingPrefix):t.nestingPrefixEscaped||bc("$t("),this.nestingSuffix=t.nestingSuffix?bc(t.nestingSuffix):t.nestingSuffixEscaped||bc(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,n){var o,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var o=Qc(t,l,e,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(o,void 0,r,$c($c($c({},n),t),{},{interpolationkey:e})):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),u=i.join(s.formatSeparator).trim();return s.format(Qc(t,l,a,s.options.keySeparator,s.options.ignoreJSONStructure),u,r,$c($c($c({},n),t),{},{interpolationkey:a}))};this.resetRegExp();var d=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,f=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){var r=o[1].trim();if(void 0===(i=c(r)))if("function"==typeof d){var l=d(e,o,n);i="string"==typeof l?l:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))i="";else{if(f){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(r," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=hc(i));var u=t.safeValue(i);if(e=e.replace(o[0],u),f?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var r,n,o,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var n=e.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(n[1]);e=n[0];var a=(i=this.interpolate(i,o)).match(/'/g),s=i.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o=$c($c({},t),o))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(r).concat(i)}return delete o.defaultValue,e}for(;r=this.nestingRegexp.exec(e);){var l=[];(o=(o=$c({},a)).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;var u=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var c=r[1].split(this.formatSeparator).map((function(e){return e.trim()}));r[1]=c.shift(),l=c,u=!0}if((n=t(s.call(this,r[1].trim(),o),o))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=hc(n)),n||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),n=""),u&&(n=l.reduce((function(e,t){return i.format(e,t,a.lng,$c($c({},a),{},{interpolationkey:r[1].trim()}))}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}]),e}();function zc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Uc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zc(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vc(e){var t={};return function(r,n,o){var i=n+JSON.stringify(o),a=t[i];return a||(a=e(n,o),t[i]=a),a(r)}}var Zc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Zu(this,e),this.logger=dc.create("formatter"),this.options=t,this.formats={number:Vc((function(e,t){var r=new Intl.NumberFormat(e,Uc({},t));return function(e){return r.format(e)}})),currency:Vc((function(e,t){var r=new Intl.NumberFormat(e,Uc(Uc({},t),{},{style:"currency"}));return function(e){return r.format(e)}})),datetime:Vc((function(e,t){var r=new Intl.DateTimeFormat(e,Uc({},t));return function(e){return r.format(e)}})),relativetime:Vc((function(e,t){var r=new Intl.RelativeTimeFormat(e,Uc({},t));return function(e){return r.format(e,t.range||"day")}})),list:Vc((function(e,t){var r=new Intl.ListFormat(e,Uc({},t));return function(e){return r.format(e)}}))},this.init(t)}return Gu(e,[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=Vc(t)}},{key:"format",value:function(e,t,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.split(this.formatSeparator).reduce((function(e,t){var i=function(e){var t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var o=n[1].substring(0,n[1].length-1);"currency"===t&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach((function(e){if(e){var t=function(e){return nc(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ic(e)||ac()}(e.split(":")),n=t[0],o=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");r[n.trim()]||(r[n.trim()]=o),"false"===o&&(r[n.trim()]=!1),"true"===o&&(r[n.trim()]=!0),isNaN(o)||(r[n.trim()]=parseInt(o,10))}}))}return{formatName:t,formatOptions:r}}(t),a=i.formatName,s=i.formatOptions;if(n.formats[a]){var l=e;try{var u=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},c=u.locale||u.lng||o.locale||o.lng||r;l=n.formats[a](e,c,Uc(Uc(Uc({},s),o),u))}catch(e){n.logger.warn(e)}return l}return n.logger.warn("there was no format function for ".concat(a)),e}),e);return i}}]),e}();function Yc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yc(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Gc=function(e){Ju(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=tc(t);if(r){var o=tc(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return ec(this,e)});function o(e,t,r){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Zu(this,o),i=n.call(this),wc&&fc.call(Xu(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=dc.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=a.maxParallelReads||10,i.readingCalls=0,i.maxRetries=a.maxRetries>=0?a.maxRetries:5,i.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return Gu(o,[{key:"queueLoad",value:function(e,t,r,n){var o=this,i={},a={},s={},l={};return e.forEach((function(e){var n=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!r.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?void 0===a[s]&&(a[s]=!0):(o.state[s]=1,n=!1,void 0===a[s]&&(a[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===l[t]&&(l[t]=!0)))})),n||(s[e]=!0)})),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,r){var n=e.split("|"),o=n[0],i=n[1];t&&this.emit("failedLoading",o,i,t),r&&this.store.addResourceBundle(o,i,r),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(r){!function(e,t,r){var n=mc(e,t,Object),o=n.obj,i=n.k;o[i]=o[i]||[],o[i].push(r)}(r.loaded,[o],i),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach((function(e){a[e]||(a[e]={});var t=r.loaded[e];t.length&&t.forEach((function(t){void 0===a[e][t]&&(a[e][t]=!0)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:r,tried:o,wait:i,callback:a});else{this.readingCalls++;var s=function(s,l){if(n.readingCalls--,n.waitingReads.length>0){var u=n.waitingReads.shift();n.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}s&&l&&o<n.maxRetries?setTimeout((function(){n.read.call(n,e,t,r,o+1,2*i,a)}),i):a(s,l)},l=this.backend[r].bind(this.backend);if(2!==l.length)return l(e,t,s);try{var u=l(e,t);u&&"function"==typeof u.then?u.then((function(e){return s(null,e)})).catch(s):s(null,u)}catch(e){s(e)}}}},{key:"prepareLoading",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(function(n,a){n&&t.logger.warn("".concat(r,"loading namespace ").concat(i," for language ").concat(o," failed"),n),!n&&a&&t.logger.log("".concat(r,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,n,a)}))}},{key:"saveMissing",value:function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=r&&""!==r){if(this.backend&&this.backend.create){var s=Hc(Hc({},i),{},{isUpdate:o}),l=this.backend.create.bind(this.backend);if(l.length<6)try{var u;(u=5===l.length?l(e,t,r,n,s):l(e,t,r,n))&&"function"==typeof u.then?u.then((function(e){return a(null,e)})).catch(a):a(null,u)}catch(e){a(e)}else l(e,t,r,n,a,s)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}]),o}(fc);function Xc(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Vu(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Vu(e[2])||"object"===Vu(e[3])){var r=e[3]||e[2];Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,r,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Kc(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Jc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ed(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jc(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function td(){}var rd=function(e){Ju(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=tc(t);if(r){var o=tc(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return ec(this,e)});function o(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(Zu(this,o),e=n.call(this),wc&&fc.call(Xu(e)),e.options=Kc(r),e.services={},e.logger=dc,e.modules={external:[]},t=Xu(e),Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((function(e){"function"==typeof t[e]&&(t[e]=t[e].bind(t))})),i&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,i),ec(e,Xu(e));setTimeout((function(){e.init(r,i)}),0)}return e}return Gu(o,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var n=Xc();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=ed(ed(ed({},n),this.options),Kc(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=ed(ed({},n.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var i;this.modules.logger?dc.init(o(this.modules.logger),this.options):dc.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=Zc);var a=new qc(this.options);this.store=new Ec(this.options.resources,this.options);var s=this.services;s.logger=dc,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new Lc(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!i||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(s.formatter=o(i),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new Wc(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Gc(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit.apply(e,[t].concat(n))})),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new Tc(this.services,this.options),this.translator.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit.apply(e,[t].concat(n))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,r||(r=td),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}}));var u=pc(),c=function(){var t=function(t,n){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(n),r(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:td,n="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return r();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};n?i(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)})),this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)}))}else r(null)}},{key:"reloadResources",value:function(e,t,r){var n=pc();return e||(e=this.languages),t||(t=this.options.ns),r||(r=td),this.services.backendConnector.reload(e,t,(function(e){n.resolve(),r(e)})),n}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Sc.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var r=this.languages[t];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var n=pc();this.emit("languageChanging",e);var o=function(e){r.language=e,r.languages=r.services.languageUtils.toResolveHierarchy(e),r.resolvedLanguage=void 0,r.setResolvedLanguage(e)},i=function(i){e||i||!r.services.languageDetector||(i=[]);var a="string"==typeof i?i:r.services.languageUtils.getBestMatchFromCodes(i);a&&(r.language||o(a),r.translator.language||r.translator.changeLanguage(a),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage&&r.services.languageDetector.cacheUserLanguage(a)),r.loadResources(a,(function(e){!function(e,i){i?(o(i),r.translator.changeLanguage(i),r.isLanguageChangingTo=void 0,r.emit("languageChanged",i),r.logger.log("languageChanged",i)):r.isLanguageChangingTo=void 0,n.resolve((function(){return r.t.apply(r,arguments)})),t&&t(e,(function(){return r.t.apply(r,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t,r){var n=this,o=function e(t,o){var i;if("object"!==Vu(o)){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];i=n.options.overloadTranslationOptionHandler([t,o].concat(s))}else i=ed({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||r||e.keyPrefix;var u,c=n.options.keySeparator||".";return u=i.keyPrefix&&Array.isArray(t)?t.map((function(e){return"".concat(i.keyPrefix).concat(c).concat(e)})):i.keyPrefix?"".concat(i.keyPrefix).concat(c).concat(t):t,n.t(u,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};if(r.precheck){var s=r.precheck(this,a);if(void 0!==s)return s}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(n,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,n=pc();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=pc();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],o=e.filter((function(e){return n.indexOf(e)<0}));return o.length?(this.options.preload=n.concat(o),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var t=this.services&&this.services.languageUtils||new qc(Xc());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:td,n=ed(ed(ed({},this.options),t),{isClone:!0}),i=new o(n);return void 0===t.debug&&void 0===t.prefix||(i.logger=i.logger.clone(t)),["store","services","language"].forEach((function(t){i[t]=e[t]})),i.services=ed({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Tc(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];i.emit.apply(i,[e].concat(r))})),i.init(n,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),o}(fc);rc(rd,"createInstance",(function(){return new rd(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}));var nd=rd.createInstance();function od(){if(console&&console.warn){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}nd.createInstance=rd.createInstance,nd.createInstance,nd.dir,nd.init,nd.loadResources,nd.reloadResources,nd.use,nd.changeLanguage,nd.getFixedT,nd.t,nd.exists,nd.setDefaultNamespace,nd.hasLoadedNamespace,nd.loadNamespaces,nd.loadLanguages;var id={};function ad(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&id[t[0]]||("string"==typeof t[0]&&(id[t[0]]=new Date),od.apply(void 0,t))}function sd(e,t,r){e.loadNamespaces(t,(function(){e.isInitialized?r():e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),r()}))}))}var ld=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ud={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},cd=function(e){return ud[e]};function dd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dd(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var pd,hd={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(ld,cd)}},md={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};hd=fd(fd({},hd),e)}(e.options.react),function(e){pd=e}(e)}},gd=(0,n.createContext)(),vd=function(){function e(){Zu(this,e),this.usedNamespaces={}}return Gu(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function yd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yd(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ad(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.i18n,o=(0,n.useContext)(gd)||{},i=o.i18n,a=o.defaultNS,s=r||i||pd;if(s&&!s.reportNamespaces&&(s.reportNamespaces=new vd),!s){ad("You will need to pass in an i18next instance by using initReactI18next");var l=function(e,t){return"string"==typeof t?t:t&&"object"===Vu(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},u=[l,{},!1];return u.t=l,u.i18n={},u.ready=!1,u}s.options.react&&void 0!==s.options.react.wait&&ad("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=bd(bd(bd({},hd),s.options.react),t),d=c.useSuspense,f=c.keyPrefix,p=e||a||s.options&&s.options.defaultNS;p="string"==typeof p?[p]:p||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(p);var h=(s.isInitialized||s.initializedStoreOnce)&&p.every((function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{precheck:function(t,n){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(n,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(n,e)||o&&!a(i,e)))}(e,t,r):(ad("i18n.languages were undefined or empty",t.languages),!0)}(e,s,c)}));function m(){return s.getFixedT(null,"fallback"===c.nsMode?p:p[0],f)}var g=function(e,t){return nc(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||ic(e,t)||ac()}((0,n.useState)(m),2),v=g[0],y=g[1],b=p.join(),A=function(e,t){var r=(0,n.useRef)();return(0,n.useEffect)((function(){r.current=e}),[e,t]),r.current}(b),O=(0,n.useRef)(!0);(0,n.useEffect)((function(){var e=c.bindI18n,t=c.bindI18nStore;function r(){O.current&&y(m)}return O.current=!0,h||d||sd(s,p,(function(){O.current&&y(m)})),h&&A&&A!==b&&O.current&&y(m),e&&s&&s.on(e,r),t&&s&&s.store.on(t,r),function(){O.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,r)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,r)}))}}),[s,b]);var w=(0,n.useRef)(!0);(0,n.useEffect)((function(){O.current&&!w.current&&y(m),w.current=!1}),[s,f]);var C=[v,s,h];if(C.t=v,C.i18n=s,C.ready=h,h)return C;if(!h&&!d)return C;throw new Promise((function(e){sd(s,p,(function(){e()}))}))}var Od=[],wd=Od.forEach,Cd=Od.slice,_d=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,xd={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var r=function(e){for(var t="".concat(e,"="),r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null}(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*r*1e3)),n&&(o.domain=n),document.cookie=function(e,t,r){var n=r||{};n.path=n.path||"/";var o=encodeURIComponent(t),i="".concat(e,"=").concat(o);if(n.maxAge>0){var a=n.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");i+="; Max-Age=".concat(Math.floor(a))}if(n.domain){if(!_d.test(n.domain))throw new TypeError("option domain is invalid");i+="; Domain=".concat(n.domain)}if(n.path){if(!_d.test(n.path))throw new TypeError("option path is invalid");i+="; Path=".concat(n.path)}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw new TypeError("option expires is invalid");i+="; Expires=".concat(n.expires.toUTCString())}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i}(e,encodeURIComponent(t),o)}(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},kd={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var n=r.substring(1).split("&"),o=0;o<n.length;o++){var i=n[o].indexOf("=");i>0&&n[o].substring(0,i)===e.lookupQuerystring&&(t=n[o].substring(i+1))}}return t}},Ed=null,Sd=function(){if(null!==Ed)return Ed;try{Ed="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){Ed=!1}return Ed},Dd={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&Sd()){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&Sd()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},Pd=null,Bd=function(){if(null!==Pd)return Pd;try{Pd="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){Pd=!1}return Pd},Td={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&Bd()){var r=window.sessionStorage.getItem(e.lookupSessionStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&Bd()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},jd={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)t.push(navigator.languages[r]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},qd={name:"htmlTag",lookup:function(e){var t,r=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return r&&"function"==typeof r.getAttribute&&(t=r.getAttribute("lang")),t}},Rd={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace("/","")}else t=r[0].replace("/","")}return t}},Md={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,r="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[t]}},Fd=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Zu(this,e),this.type="languageDetector",this.detectors={},this.init(t,r)}return Gu(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return wd.call(Cd.call(arguments,1),(function(t){if(t)for(var r in t)void 0===e[r]&&(e[r]=t[r])})),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(xd),this.addDetector(kd),this.addDetector(Dd),this.addDetector(Td),this.addDetector(jd),this.addDetector(qd),this.addDetector(Rd),this.addDetector(Md)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var r=[];return e.forEach((function(e){if(t.detectors[e]){var n=t.detectors[e].lookup(t.options);n&&"string"==typeof n&&(n=[n]),n&&(r=r.concat(n))}})),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var r=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){r.detectors[t]&&r.detectors[t].cacheUserLanguage(e,r.options)})))}}]),e}();Fd.type="languageDetector";function Nd(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}nd.use(Fd).use(md).init({resources:{en:{translation:{info:"No media service available",error:"An unexpected error occurred",defaultUploaderLabel:"Drag file here or click to browse ...",uploaderLabel:'Drag file of type "{{type}}" here or click to browse ...',uploading:"Uploading ..."}},de:{translation:{info:"Es steht kein Media Service zur Verfügung",error:"Ein unerwarteter Fehler ist aufgetreten",defaultUploaderLabel:"Datei hierher ziehen oder zum Durchsuchen klicken ...",uploaderLabel:'Datei vom Typ "{{type}}" hierher ziehen oder zum Durchsuchen klicken ...',uploading:"Lade hoch ..."}}},fallbackLng:"en"});var Ld=0;function Id(e){return"__private_"+Ld+++"_"+e}function $d(e,t,r){const n=[];return e.forEach((e=>"string"!=typeof e?n.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&n.push(e),t<o.length-1&&n.push(r)})))),n}function Qd(e,t){const r=/\$/g;let n=[e];if(null==t)return n;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=r[Symbol.replace](o,"$$$$")),n=$d(n,new RegExp(`%\\{${e}\\}`,"g"),o)}return n}const Wd=e=>{throw new Error(`missing string: ${e}`)};var zd=Id("onMissingKey"),Ud=Id("apply");class Vd{constructor(e,t){let{onMissingKey:r=Wd}=void 0===t?{}:t;Object.defineProperty(this,Ud,{value:Zd}),Object.defineProperty(this,zd,{writable:!0,value:void 0}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Nd(this,Ud)[Ud],this):Nd(this,Ud)[Ud](e),Nd(this,zd)[zd]=r}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){let r=this.locale.strings[e];if(null==r&&(Nd(this,zd)[zd](e),r=e),"object"==typeof r){if(t&&void 0!==t.smart_count)return Qd(r[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}if("string"!=typeof r)throw new Error("string was not a string");return Qd(r,t)}}function Zd(e){if(null==e||!e.strings)return;const t=this.locale;Object.assign(this.locale,{strings:{...t.strings,...e.strings},pluralize:e.pluralize||t.pluralize})}var Yd=function(){var e={},t=e._fns={};return e.emit=function(e,r,n,o,i,a,s){var l=function(e){for(var r=t[e]?t[e]:[],n=e.indexOf(":"),o=-1===n?[e]:[e.substring(0,n),e.substring(n+1)],i=Object.keys(t),a=0,s=i.length;a<s;a++){var l=i[a];if("*"===l&&(r=r.concat(t[l])),2===o.length&&o[0]===l){r=r.concat(t[l]);break}}return r}(e);l.length&&function(e,t,r){for(var n=0,o=t.length;n<o&&t[n];n++)t[n].event=e,t[n].apply(t[n],r)}(e,l,[r,n,o,i,a,s])},e.on=function(e,r){t[e]||(t[e]=[]),t[e].push(r)},e.once=function(t,r){this.on(t,(function n(){r.apply(this,arguments),e.off(t,n)}))},e.off=function(e,t){var r=[];if(e&&t)for(var n=this._fns[e],o=0,i=n?n.length:0;o<i;o++)n[o]!==t&&r.push(n[o]);r.length?this._fns[e]=r:delete this._fns[e]},e},Hd=Nu(Yd),Gd=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Xd="object"==typeof Fu&&Fu&&Fu.Object===Object&&Fu,Kd="object"==typeof self&&self&&self.Object===Object&&self,Jd=Xd||Kd||Function("return this")(),ef=Jd,tf=/\s/,rf=function(e){for(var t=e.length;t--&&tf.test(e.charAt(t)););return t},nf=/^\s+/,of=Jd.Symbol,af=of,sf=Object.prototype,lf=sf.hasOwnProperty,uf=sf.toString,cf=af?af.toStringTag:void 0,df=Object.prototype.toString,ff=function(e){var t=lf.call(e,cf),r=e[cf];try{e[cf]=void 0;var n=!0}catch(e){}var o=uf.call(e);return n&&(t?e[cf]=r:delete e[cf]),o},pf=of?of.toStringTag:void 0,hf=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":pf&&pf in Object(e)?ff(e):function(e){return df.call(e)}(e)},mf=function(e){return e?e.slice(0,rf(e)+1).replace(nf,""):e},gf=Gd,vf=/^[-+]0x[0-9a-f]+$/i,yf=/^0b[01]+$/i,bf=/^0o[0-7]+$/i,Af=parseInt,Of=Gd,wf=function(){return ef.Date.now()},Cf=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==hf(e)}(e))return NaN;if(gf(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=gf(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=mf(e);var r=yf.test(e);return r||bf.test(e)?Af(e.slice(2),r?2:8):vf.test(e)?NaN:+e},_f=Math.max,xf=Math.min,kf=function(e,t,r){var n,o,i,a,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,i=o;return n=o=void 0,u=t,a=e.apply(i,r)}function h(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-u>=i}function m(){var e=wf();if(h(e))return g(e);s=setTimeout(m,function(e){var r=t-(e-l);return d?xf(r,i-(e-u)):r}(e))}function g(e){return s=void 0,f&&n?p(e):(n=o=void 0,a)}function v(){var e=wf(),r=h(e);if(n=arguments,o=this,l=e,r){if(void 0===s)return function(e){return u=e,s=setTimeout(m,t),c?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=Cf(t)||0,Of(r)&&(c=!!r.leading,i=(d="maxWait"in r)?_f(Cf(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(wf())},v},Ef=Gd,Sf=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Ef(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),kf(e,t,{leading:n,maxWait:t,trailing:o})},Df=Nu(Sf);function Pf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Bf=0;function Tf(e){return"__private_"+Bf+++"_"+e}var jf=Tf("callbacks"),qf=Tf("publish");class Rf{constructor(){Object.defineProperty(this,qf,{value:Mf}),this.state={},Object.defineProperty(this,jf,{writable:!0,value:new Set})}getState(){return this.state}setState(e){const t={...this.state},r={...this.state,...e};this.state=r,Pf(this,qf)[qf](t,r,e)}subscribe(e){return Pf(this,jf)[jf].add(e),()=>{Pf(this,jf)[jf].delete(e)}}}function Mf(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Pf(this,jf)[jf].forEach((e=>{e(...t)}))}function Ff(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}Rf.VERSION="3.2.2";var Nf={__proto__:null,md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Lf(e){var t;if(e.type)return e.type;const r=e.name?null==(t=Ff(e.name).extension)?void 0:t.toLowerCase():null;return r&&r in Nf?Nf[r]:"application/octet-stream"}function If(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}function $f(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const r=t[1].split(".",2),n=parseInt(r[0],10),o=parseInt(r[1],10);return n<15||15===n&&o<15063||n>18||18===n&&o>=18218}function Qf(e){return e<10?`0${e}`:e.toString()}function Wf(){const e=new Date;return`${Qf(e.getHours())}:${Qf(e.getMinutes())}:${Qf(e.getSeconds())}`}const zf={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${Wf()}]`,...t)}},Uf={debug:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.debug(`[Uppy] [${Wf()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.warn(`[Uppy] [${Wf()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${Wf()}]`,...t)}};var Vf=Nu((function(e){if("number"!=typeof e||Number.isNaN(e))throw new TypeError("Expected a number, got "+typeof e);const t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";const n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/1024**n);const o=r[n];return e>=10||e%1==0?`${(t?"-":"")+e.toFixed(0)} ${o}`:`${(t?"-":"")+e.toFixed(1)} ${o}`}));function Zf(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Zf.prototype.match=function(e){var t,r,n=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(r=(e||"").split(this.separator),t=0;n&&t<i;t++)"*"!==o[t]&&(n=t<r.length&&o[t]===r[t]);n=n&&r}else n=!1;else if("function"==typeof e.splice)for(n=[],t=e.length;t--;)this.match(e[t])&&(n[n.length]=e[t]);else if("object"==typeof e)for(var a in n={},e)this.match(a)&&(n[a]=e[a]);return n};var Yf=/[\/\+\.]/,Hf=Nu((function(e,t){function r(t){var r=function(e,t,r){var n=new Zf(e,r||/[\/\.]/);return void 0!==t?n.match(t):n}(t,e,Yf);return r&&r.length>=2}return t?r(t.split(";")[0]):r}));const Gf={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class Xf extends Error{constructor(e,t){var r;super(e),this.isRestriction=!0,this.isUserFacing=null==(r=null==t?void 0:t.isUserFacing)||r,null!=t&&t.file&&(this.file=t.file)}}class Kf{constructor(e,t){this.i18n=t,this.getOpts=()=>{var t;const r=e();if(null!=(null==(t=r.restrictions)?void 0:t.allowedFileTypes)&&!Array.isArray(r.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return r}}validateAggregateRestrictions(e,t){const{maxTotalFileSize:r,maxNumberOfFiles:n}=this.getOpts().restrictions;if(n){const r=e.filter((e=>!e.isGhost));if(r.length+t.length>n)throw new Xf(`${this.i18n("youCanOnlyUploadX",{smart_count:n})}`)}if(r){let n=e.reduce(((e,t)=>{var r;return e+(null!=(r=t.size)?r:0)}),0);for(const e of t)if(null!=e.size&&(n+=e.size,n>r))throw new Xf(this.i18n("exceedsSize",{size:Vf(r),file:e.name}))}}validateSingleFile(e){const{maxFileSize:t,minFileSize:r,allowedFileTypes:n}=this.getOpts().restrictions;if(n&&!n.some((t=>t.includes("/")?!!e.type&&Hf(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.slice(1).toLowerCase()))){const t=n.join(", ");throw new Xf(this.i18n("youCanOnlyUploadFileTypes",{types:t}),{file:e})}if(t&&null!=e.size&&e.size>t)throw new Xf(this.i18n("exceedsSize",{size:Vf(t),file:e.name}),{file:e});if(r&&null!=e.size&&e.size<r)throw new Xf(this.i18n("inferiorSize",{size:Vf(r)}),{file:e})}validate(e,t){t.forEach((e=>{this.validateSingleFile(e)})),this.validateAggregateRestrictions(e,t)}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(t&&Object.keys(e).length<t)throw new Xf(this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}getMissingRequiredMetaFields(e){const t=new Xf(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})),{requiredMetaFields:r}=this.getOpts().restrictions,n=[];for(const t of r)Object.hasOwn(e.meta,t)&&""!==e.meta[t]||n.push(t);return{missingFields:n,error:t}}}var Jf={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",noSearchResults:"Unfortunately, there are no results for this search",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",loadedXFiles:"Loaded %{numFiles} files",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",resetSearch:"Reset search",emptyFolderAdded:"No files were added from empty folder",addedNumFiles:"Added %{numFiles} file(s)",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled"}};let ep,tp;function rp(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var np=0;function op(e){return"__private_"+np+++"_"+e}const ip={totalProgress:0,allowNewUpload:!0,error:null,recoveredState:null};var ap=op("plugins"),sp=op("restricter"),lp=op("storeUnsubscribe"),up=op("emitter"),cp=op("preProcessors"),dp=op("uploaders"),fp=op("postProcessors"),pp=op("informAndEmit"),hp=op("checkRequiredMetaFieldsOnFile"),mp=op("checkRequiredMetaFields"),gp=op("assertNewUploadAllowed"),vp=op("transformFile"),yp=op("startIfAutoProceed"),bp=op("checkAndUpdateFileState"),Ap=op("addListeners"),Op=op("updateOnlineStatus"),wp=op("requestClientById"),Cp=op("createUpload"),_p=op("getUpload"),xp=op("removeUpload"),kp=op("runUpload");ep=Symbol.for("uppy test: getPlugins"),tp=Symbol.for("uppy test: createUpload");class Ep{constructor(e){Object.defineProperty(this,kp,{value:Lp}),Object.defineProperty(this,xp,{value:Np}),Object.defineProperty(this,_p,{value:Fp}),Object.defineProperty(this,Cp,{value:Mp}),Object.defineProperty(this,Ap,{value:Rp}),Object.defineProperty(this,bp,{value:qp}),Object.defineProperty(this,yp,{value:jp}),Object.defineProperty(this,vp,{value:Tp}),Object.defineProperty(this,gp,{value:Bp}),Object.defineProperty(this,mp,{value:Pp}),Object.defineProperty(this,hp,{value:Dp}),Object.defineProperty(this,pp,{value:Sp}),Object.defineProperty(this,ap,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,sp,{writable:!0,value:void 0}),Object.defineProperty(this,lp,{writable:!0,value:void 0}),Object.defineProperty(this,up,{writable:!0,value:Hd()}),Object.defineProperty(this,cp,{writable:!0,value:new Set}),Object.defineProperty(this,dp,{writable:!0,value:new Set}),Object.defineProperty(this,fp,{writable:!0,value:new Set}),this.scheduledAutoProceed=null,this.wasOffline=!1,this.calculateProgress=Df(((e,t)=>{const r=this.getFile(null==e?void 0:e.id);if(null==e||!r)return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);if(100===r.progress.percentage)return void this.log(`Not setting progress for a file that has been already uploaded: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...r.progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}),500,{leading:!0,trailing:!0}),Object.defineProperty(this,Op,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,wp,{writable:!0,value:new Map}),this.defaultLocale=Jf;const t={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:Gf,meta:{},onBeforeFileAdded:(e,t)=>!Object.hasOwn(t,e.id),onBeforeUpload:e=>e,store:new Rf,logger:zf,infoTimeout:5e3},r={...t,...e};this.opts={...r,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=Uf),this.log(`Using Core v${Ep.VERSION}`),this.i18nInit(),this.store=this.opts.store,this.setState({...ip,plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:$f(),individualCancellation:!0,resumableUploads:!1},meta:{...this.opts.meta},info:[]}),rp(this,sp)[sp]=new Kf((()=>this.opts),this.i18n),rp(this,lp)[lp]=this.store.subscribe(((e,t,r)=>{this.emit("state-update",e,t,r),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),rp(this,Ap)[Ap]()}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];rp(this,up)[up].emit(e,...r)}on(e,t){return rp(this,up)[up].on(e,t),this}once(e,t){return rp(this,up)[up].once(e,t),this}off(e,t){return rp(this,up)[up].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}patchFilesState(e){const t=this.getState().files;this.setState({files:{...t,...Object.fromEntries(Object.entries(e).map((e=>{let[r,n]=e;return[r,{...t[r],...n}]})))}})}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.patchFilesState({[e]:t})}i18nInit(){const e=new Vd([this.defaultLocale,this.opts.locale],{onMissingKey:e=>this.log(`Missing i18n string: ${e}`,"error")});this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...null==e?void 0:e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((t=>{t.setOptions(e)})),this.setState(void 0)}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},r={};Object.keys(t).forEach((n=>{r[n]={...t[n],progress:{...t[n].progress,...e}}})),this.setState({files:r,...ip}),this.emit("reset-progress")}clearUploadedFiles(){this.setState({...ip,files:{}})}addPreProcessor(e){rp(this,cp)[cp].add(e)}removePreProcessor(e){return rp(this,cp)[cp].delete(e)}addPostProcessor(e){rp(this,fp)[fp].add(e)}removePostProcessor(e){return rp(this,fp)[fp].delete(e)}addUploader(e){rp(this,dp)[dp].add(e)}removeUploader(e){return rp(this,dp)[dp].delete(e)}setMeta(e){const t={...this.getState().meta,...e},r={...this.getState().files};Object.keys(r).forEach((t=>{r[t]={...r[t],meta:{...r[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:r})}setFileMeta(e,t){const r={...this.getState().files};if(!r[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const n={...r[e].meta,...t};r[e]={...r[e],meta:n},this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getFilesByIds(e){return e.map((e=>this.getFile(e)))}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:r}=this.getState(),n=Object.values(e),o=n.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=n.filter((e=>!e.progress.uploadStarted)),a=n.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),s=n.filter((e=>e.progress.uploadStarted)),l=n.filter((e=>e.isPaused)),u=n.filter((e=>e.progress.uploadComplete)),c=n.filter((e=>e.error)),d=o.filter((e=>!e.isPaused)),f=n.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:s,pausedFiles:l,completeFiles:u,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:d,processingFiles:f,isUploadStarted:s.length>0,isAllComplete:100===t&&u.length===n.length&&0===f.length,isAllErrored:!!r&&c.length===n.length,isAllPaused:0!==o.length&&l.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:n.some((e=>e.isGhost))}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{rp(this,sp)[sp].validate(t,[e])}catch(e){return e}return null}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){rp(this,gp)[gp](e);const{nextFilesState:t,validFilesToAdd:r,errors:n}=rp(this,bp)[bp]([e]),o=n.filter((e=>e.isRestriction));if(rp(this,pp)[pp](o),n.length>0)throw n[0];this.setState({files:t});const[i]=r;return this.emit("file-added",i),this.emit("files-added",r),this.log(`Added file: ${i.name}, ${i.id}, mime type: ${i.type}`),rp(this,yp)[yp](),i.id}addFiles(e){rp(this,gp)[gp]();const{nextFilesState:t,validFilesToAdd:r,errors:n}=rp(this,bp)[bp](e),o=n.filter((e=>e.isRestriction));rp(this,pp)[pp](o);const i=n.filter((e=>!e.isRestriction));if(i.length>0){let e="Multiple errors occurred while adding files:\n";if(i.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:i.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(i,e);{const t=new Error(e);throw t.errors=i,t}}this.setState({files:t}),r.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.values(r).forEach((e=>{this.log(`Added file: ${e.name}\n id: ${e.id}\n type: ${e.type}`)})),r.length>0&&rp(this,yp)[yp]()}removeFiles(e,t){const{files:r,currentUploads:n}=this.getState(),o={...r},i={...n},a=Object.create(null);function s(e){return void 0===a[e]}e.forEach((e=>{r[e]&&(a[e]=r[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=n[e].fileIDs.filter(s);if(0===t.length)return void delete i[e];const{capabilities:r}=this.getState();if(t.length!==n[e].fileIDs.length&&!r.individualCancellation)throw new Error("individualCancellation is disabled");i[e]={...n[e],fileIDs:t}}));const l={currentUploads:i,files:o};0===Object.keys(o).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const u=Object.keys(a);u.forEach((e=>{this.emit("file-removed",a[e],t)})),u.length>5?this.log(`Removed ${u.length} files`):this.log(`Removed files: ${u.join(", ")}`)}removeFile(e,t){this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).progress.uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const r={...e[t],isPaused:!0};e[t]=r})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const r={...e[t],isPaused:!1,error:null};e[t]=r})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const r={...e[t],isPaused:!1,error:null};e[t]=r})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const r=rp(this,Cp)[Cp](t,{forceAllowNewUpload:!0});return rp(this,kp)[kp](r)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState(ip)}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=rp(this,Cp)[Cp]([e],{forceAllowNewUpload:!0});return rp(this,kp)[kp](t)}logout(){this.iteratePlugins((e=>{var t;null==(t=e.provider)||null==t.logout||t.logout()}))}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),r=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,n=r.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(n/t*100);return void this.setState({totalProgress:o})}let n=t.reduce(((e,t)=>{var r;return e+(null!=(r=t.progress.bytesTotal)?r:0)}),0);const o=n/t.length;n+=o*r.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),r.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===n?0:Math.round(i/n*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){var e;null==(e=window.navigator.onLine)||e?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const r=new e(this,t),n=r.id;if(!n)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(n);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${n}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${n} v${e.VERSION}`),r.type in rp(this,ap)[ap]?rp(this,ap)[ap][r.type].push(r):rp(this,ap)[ap][r.type]=[r],r.install(),this.emit("plugin-added",r),this}getPlugin(e){for(const t of Object.values(rp(this,ap)[ap])){const r=t.find((t=>t.id===e));if(null!=r)return r}}[ep](e){return rp(this,ap)[ap][e]}iteratePlugins(e){Object.values(rp(this,ap)[ap]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=rp(this,ap)[ap][e.type],r=t.findIndex((t=>t.id===e.id));-1!==r&&t.splice(r,1);const n={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(n)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),rp(this,lp)[lp](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",rp(this,Op)[Op]),window.removeEventListener("offline",rp(this,Op)[Op]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,r){void 0===t&&(t="info"),void 0===r&&(r=3e3);const n="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:n?e.message:e,details:n?e.details:null}]}),setTimeout((()=>this.hideInfo()),r),this.emit("info-visible")}log(e,t){const{logger:r}=this.opts;switch(t){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}}registerRequestClient(e,t){rp(this,wp)[wp].set(e,t)}getRequestClientForFile(e){if(!e.remote)throw new Error(`Tried to get RequestClient for a non-remote file ${e.id}`);const t=rp(this,wp)[wp].get(e.remote.requestClientId);if(null==t)throw new Error(`requestClientId "${e.remote.requestClientId}" not registered for file "${e.id}"`);return t}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?rp(this,kp)[kp](e):(rp(this,xp)[xp](e),Promise.reject(new Error("Nonexistent upload")))}[tp](){return rp(this,Cp)[Cp](...arguments)}addResultData(e,t){if(!rp(this,_p)[_p](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),n={...r[e],result:{...r[e].result,...t}};this.setState({currentUploads:{...r,[e]:n}})}upload(){var e;null!=(e=rp(this,ap)[ap].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const r=this.opts.onBeforeUpload(t);return!1===r?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&"object"==typeof r&&(t=r,this.setState({files:t})),Promise.resolve().then((()=>rp(this,sp)[sp].validateMinNumberOfFiles(t))).catch((e=>{throw rp(this,pp)[pp]([e]),e})).then((()=>{if(!rp(this,mp)[mp](t))throw new Xf(this.i18n("missingRequiredMetaField"))})).catch((e=>{throw e})).then((()=>{const{currentUploads:e}=this.getState(),r=Object.values(e).flatMap((e=>e.fileIDs)),n=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==r.indexOf(e)||n.push(t.id)}));const o=rp(this,Cp)[Cp](n);return rp(this,kp)[kp](o)})).catch((e=>{throw this.emit("error",e),this.log(e,"error"),e})))}}function Sp(e){for(const t of e)t.isRestriction?this.emit("restriction-failed",t.file,t):this.emit("error",t,t.file),this.log(t,"warning");const t=e.filter((e=>e.isUserFacing)),r=t.slice(0,4),n=t.slice(4);r.forEach((e=>{let{message:t,details:r=""}=e;this.info({message:t,details:r},"error",this.opts.infoTimeout)})),n.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:n.length})})}function Dp(e){const{missingFields:t,error:r}=rp(this,sp)[sp].getMissingRequiredMetaFields(e);return!(t.length>0&&(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(r.message),this.emit("restriction-failed",e,r),1))}function Pp(e){let t=!0;for(const r of Object.values(e))rp(this,hp)[hp](r)||(t=!1);return t}function Bp(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new Xf(this.i18n("noMoreFilesAllowed"),{file:e});throw rp(this,pp)[pp]([t]),t}}function Tp(e){const t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,r=Lf(t),n=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(r,t),o=Ff(n).extension,i=function(e){if(function(e){return!(!e.isRemote||!e.remote)&&new Set(["box","dropbox","drive","facebook","unsplash"]).has(e.remote.provider)}(e))return e.id;const t=Lf(e);return function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${If(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${If(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...e,type:t})}(t),a=t.meta||{};a.name=n,a.type=r;const s=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:i,name:n,extension:o||"",meta:{...this.getState().meta,...a},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote||"",preview:t.preview}}function jp(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function qp(e){const{files:t}=this.getState(),r={...t},n=[],o=[];for(const a of e)try{var i;let e=rp(this,vp)[vp](a);const o=null==(i=t[e.id])?void 0:i.isGhost;o&&(e={...t[e.id],isGhost:!1,data:a.data},this.log(`Replaced the blob in the restored ghost file: ${e.name}, ${e.id}`));const s=this.opts.onBeforeFileAdded(e,r);if(!s&&this.checkIfFileAlreadyExists(e.id))throw new Xf(this.i18n("noDuplicates",{fileName:e.name}),{file:a});if(!1===s&&!o)throw new Xf("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:a});"object"==typeof s&&null!==s&&(e=s),rp(this,sp)[sp].validateSingleFile(e),r[e.id]=e,n.push(e)}catch(e){o.push(e)}try{rp(this,sp)[sp].validateAggregateRestrictions(Object.values(t),n)}catch(e){return o.push(e),{nextFilesState:t,validFilesToAdd:[],errors:o}}return{nextFilesState:r,validFilesToAdd:n,errors:o}}function Rp(){const e=(e,t,r)=>{let n=e.message||"Unknown error";e.details&&(n+=` ${e.details}`),this.setState({error:n}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:n,response:r})};this.on("error",e),this.on("upload-error",((t,r,n)=>{if(e(r,t,n),"object"==typeof r&&r.message){var o;this.log(r.message,"error");const e=new Error(this.i18n("failedToUpload",{file:null!=(o=null==t?void 0:t.name)?o:""}));e.isUserFacing=!0,e.details=r.message,r.details&&(e.details+=` ${r.details}`),rp(this,pp)[pp]([e])}else rp(this,pp)[pp]([r])}));let t=null;this.on("upload-stalled",((e,r)=>{const{message:n}=e,o=r.map((e=>e.meta.name)).join(", ");t||(this.info({message:n,details:o},"warning",this.opts.infoTimeout),t=setTimeout((()=>{t=null}),this.opts.infoTimeout)),this.log(`${n} ${o}`.trim(),"warning")})),this.on("upload",(()=>{this.setState({error:null})}));const r=e=>{const t=e.filter((e=>{const t=null!=e&&this.getFile(e.id);return t||this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`),t})),r=Object.fromEntries(t.map((e=>[e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}])));this.patchFilesState(r)};this.on("upload-start",(e=>{e.forEach((e=>{this.emit("upload-started",e)})),r(e)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...r,postprocess:rp(this,fp)[fp].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("preprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("postprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&rp(this,hp)[hp](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",rp(this,Op)[Op]),window.addEventListener("offline",rp(this,Op)[Op]),setTimeout(rp(this,Op)[Op],3e3))}function Mp(e,t){void 0===t&&(t={});const{forceAllowNewUpload:r=!1}=t,{allowNewUpload:n,currentUploads:o}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=((e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t})();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function Fp(e){const{currentUploads:t}=this.getState();return t[e]}function Np(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Lp(e){const t=()=>{const{currentUploads:t}=this.getState();return t[e]};let r=t();const n=[...rp(this,cp)[cp],...rp(this,dp)[dp],...rp(this,fp)[fp]];try{for(let o=r.step||0;o<n.length&&r;o++){const i=n[o];this.setState({currentUploads:{...this.getState().currentUploads,[e]:{...r,step:o}}});const{fileIDs:a}=r;await i(a,e),r=t()}}catch(t){throw rp(this,xp)[xp](e),t}if(r){r.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const n=r.fileIDs.map((e=>this.getFile(e))),o=n.filter((e=>!e.error)),i=n.filter((e=>e.error));this.addResultData(e,{successful:o,failed:i,uploadID:e}),r=t()}let o;return r&&(o=r.result,this.emit("complete",o),rp(this,xp)[xp](e)),null==o&&this.log(`Not setting result for an upload that has been removed: ${e}`),o}Ep.VERSION="3.10.0";var Ip,$p,Qp,Wp,zp,Up,Vp,Zp,Yp,Hp,Gp=Ep,Xp={},Kp=[],Jp=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,eh=Array.isArray;function th(e,t){for(var r in t)e[r]=t[r];return e}function rh(e){var t=e.parentNode;t&&t.removeChild(e)}function nh(e,t,r){var n,o,i,a={};for(i in t)"key"==i?n=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?Ip.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return oh(e,a,n,o,null)}function oh(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++Qp:o,__i:-1,__u:0};return null==o&&null!=$p.vnode&&$p.vnode(i),i}function ih(e){return e.children}function ah(e,t){this.props=e,this.context=t}function sh(e,t){if(null==t)return e.__?sh(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?sh(e):null}function lh(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return lh(e)}}function uh(e){(!e.__d&&(e.__d=!0)&&Wp.push(e)&&!ch.__r++||zp!==$p.debounceRendering)&&((zp=$p.debounceRendering)||Up)(ch)}function ch(){var e,t,r,n,o,i,a,s;for(Wp.sort(Vp);e=Wp.shift();)e.__d&&(t=Wp.length,n=void 0,i=(o=(r=e).__v).__e,a=[],s=[],r.__P&&((n=th({},o)).__v=o.__v+1,$p.vnode&&$p.vnode(n),vh(r.__P,n,o,r.__n,void 0!==r.__P.ownerSVGElement,32&o.__u?[i]:null,a,null==i?sh(o):i,!!(32&o.__u),s),n.__v=o.__v,n.__.__k[n.__i]=n,yh(a,n,s),n.__e!=i&&lh(n)),Wp.length>t&&Wp.sort(Vp));ch.__r=0}function dh(e,t,r,n,o,i,a,s,l,u,c){var d,f,p,h,m,g=n&&n.__k||Kp,v=t.length;for(r.__d=l,function(e,t,r){var n,o,i,a,s,l=t.length,u=r.length,c=u,d=0;for(e.__k=[],n=0;n<l;n++)a=n+d,null!=(o=e.__k[n]=null==(o=t[n])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?oh(null,o,null,null,null):eh(o)?oh(ih,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?oh(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=ph(o,r,a,c),o.__i=s,i=null,-1!==s&&(c--,(i=r[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?d++:s>a?c>l-a?d+=s-a:d--:s<a?s==a-1&&(d=s-a):d=0,s!==n+d&&(o.__u|=65536))):(i=r[a])&&null==i.key&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=sh(i)),Oh(i,i,!1),r[a]=null,c--);if(c)for(n=0;n<u;n++)null!=(i=r[n])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=sh(i)),Oh(i,i))}(r,t,g),l=r.__d,d=0;d<v;d++)null!=(p=r.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(f=-1===p.__i?Xp:g[p.__i]||Xp,p.__i=d,vh(e,p,f,o,i,a,s,l,u,c),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&Ah(f.ref,null,p),c.push(p.ref,p.__c||h,p)),null==m&&null!=h&&(m=h),65536&p.__u||f.__k===p.__k?(l&&!l.isConnected&&(l=sh(f)),l=fh(p,l,e)):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:h&&(l=h.nextSibling),p.__d=void 0,p.__u&=-196609);r.__d=l,r.__e=m}function fh(e,t,r){var n,o;if("function"==typeof e.type){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=fh(n[o],t,r));return t}e.__e!=t&&(r.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function ph(e,t,r,n){var o=e.key,i=e.type,a=r-1,s=r+1,l=t[r];if(null===l||l&&o==l.key&&i===l.type&&!(131072&l.__u))return r;if(n>(null==l||131072&l.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function hh(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||Jp.test(t)?r:r+"px"}function mh(e,t,r,n,o){var i;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||hh(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||hh(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=Zp,e.addEventListener(t,i?Hp:Yp,i)):e.removeEventListener(t,i?Hp:Yp,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,r))}}function gh(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=Zp++;else if(t.t<r.u)return;return r($p.event?$p.event(t):t)}}}function vh(e,t,r,n,o,i,a,s,l,u){var c,d,f,p,h,m,g,v,y,b,A,O,w,C,_,x=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),i=[s=t.__e=r.__e]),(c=$p.__b)&&c(t);e:if("function"==typeof x)try{if(v=t.props,y=(c=x.contextType)&&n[c.__c],b=c?y?y.props.value:c.__:n,r.__c?g=(d=t.__c=r.__c).__=d.__E:("prototype"in x&&x.prototype.render?t.__c=d=new x(v,b):(t.__c=d=new ah(v,b),d.constructor=x,d.render=wh),y&&y.sub(d),d.props=v,d.state||(d.state={}),d.context=b,d.__n=n,f=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=x.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=th({},d.__s)),th(d.__s,x.getDerivedStateFromProps(v,d.__s))),p=d.props,h=d.state,d.__v=t,f)null==x.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==x.getDerivedStateFromProps&&v!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,b)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=v,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),A=0;A<d._sb.length;A++)d.__h.push(d._sb[A]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,b),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,h,m)}))}if(d.context=b,d.props=v,d.__P=e,d.__e=!1,O=$p.__r,w=0,"prototype"in x&&x.prototype.render){for(d.state=d.__s,d.__d=!1,O&&O(t),c=d.render(d.props,d.state,d.context),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[]}else do{d.__d=!1,O&&O(t),c=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++w<25);d.state=d.__s,null!=d.getChildContext&&(n=th(th({},n),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(p,h)),dh(e,eh(_=null!=c&&c.type===ih&&null==c.key?c.props.children:c)?_:[_],t,r,n,o,i,a,s,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=i?(t.__e=s,t.__u|=l?160:32,i[i.indexOf(s)]=null):(t.__e=r.__e,t.__k=r.__k),$p.__e(e,t,r)}else null==i&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=bh(r.__e,t,r,n,o,i,a,l,u);(c=$p.diffed)&&c(t)}function yh(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)Ah(r[n],r[++n],r[++n]);$p.__c&&$p.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){$p.__e(e,t.__v)}}))}function bh(e,t,r,n,o,i,a,s,l){var u,c,d,f,p,h,m,g=r.props,v=t.props,y=t.type;if("svg"===y&&(o=!0),null!=i)for(u=0;u<i.length;u++)if((p=i[u])&&"setAttribute"in p==!!y&&(y?p.localName===y:3===p.nodeType)){e=p,i[u]=null;break}if(null==e){if(null===y)return document.createTextNode(v);e=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,v.is&&v),i=null,s=!1}if(null===y)g===v||s&&e.data===v||(e.data=v);else{if(i=i&&Ip.call(e.childNodes),g=r.props||Xp,!s&&null!=i)for(g={},u=0;u<e.attributes.length;u++)g[(p=e.attributes[u]).name]=p.value;for(u in g)p=g[u],"children"==u||("dangerouslySetInnerHTML"==u?d=p:"key"===u||u in v||mh(e,u,null,p,o));for(u in v)p=v[u],"children"==u?f=p:"dangerouslySetInnerHTML"==u?c=p:"value"==u?h=p:"checked"==u?m=p:"key"===u||s&&"function"!=typeof p||g[u]===p||mh(e,u,p,g[u],o);if(c)s||d&&(c.__html===d.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),dh(e,eh(f)?f:[f],t,r,n,o&&"foreignObject"!==y,i,a,i?i[0]:r.__k&&sh(r,0),s,l),null!=i)for(u=i.length;u--;)null!=i[u]&&rh(i[u]);s||(u="value",void 0!==h&&(h!==e[u]||"progress"===y&&!h||"option"===y&&h!==g[u])&&mh(e,u,h,g[u],!1),u="checked",void 0!==m&&m!==e[u]&&mh(e,u,m,g[u],!1))}return e}function Ah(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){$p.__e(e,r)}}function Oh(e,t,r){var n,o;if($p.unmount&&$p.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Ah(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){$p.__e(e,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&Oh(n[o],t,r||"function"!=typeof e.type);r||null==e.__e||rh(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function wh(e,t,r){return this.constructor(e,r)}function Ch(e,t,r){var n,o,i,a;$p.__&&$p.__(e,t),o=(n="function"==typeof r)?null:r&&r.__k||t.__k,i=[],a=[],vh(t,e=(!n&&r||t).__k=nh(ih,null,[e]),o||Xp,Xp,void 0!==t.ownerSVGElement,!n&&r?[r]:o?null:t.firstChild?Ip.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,a),yh(i,e,a)}Ip=Kp.slice,$p={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},Qp=0,ah.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=th({},this.state),"function"==typeof e&&(e=e(th({},r),this.props)),e&&th(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),uh(this))},ah.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),uh(this))},ah.prototype.render=ih,Wp=[],Up="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Vp=function(e,t){return e.__v.__b-t.__v.__b},ch.__r=0,Zp=0,Yp=gh(!1),Hp=gh(!0);class _h{constructor(e,t){this.uppy=e,this.opts=null!=t?t:{}}getPluginState(){const{plugins:e}=this.uppy.getState();return(null==e?void 0:e[this.id])||{}}setPluginState(e){if(!e)return;const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(void 0),this.i18nInit()}i18nInit(){const e=new Vd([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState(void 0)}addTarget(e){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}update(e){}afterUpdate(){}}function xh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var kh=0;function Eh(e){return"__private_"+kh+++"_"+e}var Sh=Eh("updateUI");class Dh extends _h{constructor(){super(...arguments),Object.defineProperty(this,Sh,{writable:!0,value:void 0})}getTargetPlugin(e){let t;if("function"==typeof(null==e?void 0:e.addTarget))t=e,t instanceof Dh||console.warn(new Error("The provided plugin is not an instance of UIPlugin. This is an indication of a bug with the way Uppy is bundled.",{cause:{targetPlugin:t,UIPlugin:Dh}}));else if("function"==typeof e){const r=e;this.uppy.iteratePlugins((e=>{e instanceof r&&(t=e)}))}return t}mount(e,t){const r=t.id,n=(o=e,void 0===i&&(i=document),"string"==typeof o?i.querySelector(o):"object"==typeof(a=o)&&null!==a&&"nodeType"in a&&a.nodeType===Node.ELEMENT_NODE?o:null);var o,i,a;if(n){this.isTargetDOMEl=!0;const t=document.createElement("div");return t.classList.add("uppy-Root"),xh(this,Sh)[Sh]=function(e){let t,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return t=o,r||(r=Promise.resolve().then((()=>(r=null,e(...t))))),r}}((e=>{this.uppy.getPlugin(this.id)&&(Ch(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(n.innerHTML=""),Ch(this.render(this.uppy.getState()),t),this.el=t,n.appendChild(t),t.dir=this.opts.direction||function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir}(t)||"ltr",this.onMount(),this.el}const s=this.getTargetPlugin(e);if(s)return this.uppy.log(`Installing ${r} to ${s.id}`),this.parent=s,this.el=s.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let l=`Invalid target option given to ${r}.`;throw l+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(l)}render(e){throw new Error("Extend the render method to add your plugin to a DOM element")}update(e){var t,r;null!=this.el&&(null==(t=(r=xh(this,Sh))[Sh])||t.call(r,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Ph=[],Bh=[],Th="undefined"!=typeof Uint8Array?Uint8Array:Array,jh=!1;function qh(){jh=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)Ph[t]=e[t],Bh[e.charCodeAt(t)]=t;Bh["-".charCodeAt(0)]=62,Bh["_".charCodeAt(0)]=63}function Rh(e,t,r){for(var n,o,i=[],a=t;a<r;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(Ph[(o=n)>>18&63]+Ph[o>>12&63]+Ph[o>>6&63]+Ph[63&o]);return i.join("")}function Mh(e){var t;jh||qh();for(var r=e.length,n=r%3,o="",i=[],a=16383,s=0,l=r-n;s<l;s+=a)i.push(Rh(e,s,s+a>l?l:s+a));return 1===n?(t=e[r-1],o+=Ph[t>>2],o+=Ph[t<<4&63],o+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],o+=Ph[t>>10],o+=Ph[t>>4&63],o+=Ph[t<<2&63],o+="="),i.push(o),i.join("")}function Fh(e,t,r,n,o){var i,a,s=8*o-n-1,l=(1<<s)-1,u=l>>1,c=-7,d=r?o-1:0,f=r?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-c)-1,p>>=-c,c+=s;c>0;i=256*i+e[t+d],d+=f,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=u}return(p?-1:1)*a*Math.pow(2,i-n)}function Nh(e,t,r,n,o,i){var a,s,l,u=8*i-o-1,c=(1<<u)-1,d=c>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[r+p]=255&a,p+=h,a/=256,u-=8);e[r+p-h]|=128*m}var Lh={}.toString,Ih=Array.isArray||function(e){return"[object Array]"==Lh.call(e)};function $h(){return Wh.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Qh(e,t){if($h()<t)throw new RangeError("Invalid typed array length");return Wh.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Wh.prototype:(null===e&&(e=new Wh(t)),e.length=t),e}function Wh(e,t,r){if(!(Wh.TYPED_ARRAY_SUPPORT||this instanceof Wh))return new Wh(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Vh(this,e)}return zh(this,e,t,r)}function zh(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),Wh.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Wh.prototype:e=Zh(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!Wh.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|Gh(t,r),o=(e=Qh(e,n)).write(t,r);return o!==n&&(e=e.slice(0,o)),e}(e,t,r):function(e,t){if(Hh(t)){var r=0|Yh(t.length);return 0===(e=Qh(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?Qh(e,0):Zh(e,t);if("Buffer"===t.type&&Ih(t.data))return Zh(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Uh(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Vh(e,t){if(Uh(t),e=Qh(e,t<0?0:0|Yh(t)),!Wh.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function Zh(e,t){var r=t.length<0?0:0|Yh(t.length);e=Qh(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function Yh(e){if(e>=$h())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+$h().toString(16)+" bytes");return 0|e}function Hh(e){return!(null==e||!e._isBuffer)}function Gh(e,t){if(Hh(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Cm(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return _m(e).length;default:if(n)return Cm(e).length;t=(""+t).toLowerCase(),n=!0}}function Xh(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return fm(this,t,r);case"utf8":case"utf-8":return lm(this,t,r);case"ascii":return cm(this,t,r);case"latin1":case"binary":return dm(this,t,r);case"base64":return sm(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pm(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function Kh(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Jh(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=Wh.from(t,n)),Hh(t))return 0===t.length?-1:em(e,t,r,n,o);if("number"==typeof t)return t&=255,Wh.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):em(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function em(e,t,r,n,o){var i,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=r;i<s;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){for(var d=!0,f=0;f<l;f++)if(u(e,i+f)!==u(t,f)){d=!1;break}if(d)return i}return-1}function tm(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function rm(e,t,r,n){return xm(Cm(t,e.length-r),e,r,n)}function nm(e,t,r,n){return xm(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function om(e,t,r,n){return nm(e,t,r,n)}function im(e,t,r,n){return xm(_m(t),e,r,n)}function am(e,t,r,n){return xm(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function sm(e,t,r){return 0===t&&r===e.length?Mh(e):Mh(e.slice(t,r))}function lm(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,l,u=e[o],c=null,d=u>239?4:u>223?3:u>191?2:1;if(o+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&u)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=d}return function(e){var t=e.length;if(t<=um)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=um));return r}(n)}Wh.TYPED_ARRAY_SUPPORT=void 0===fu.TYPED_ARRAY_SUPPORT||fu.TYPED_ARRAY_SUPPORT,$h(),Wh.poolSize=8192,Wh._augment=function(e){return e.__proto__=Wh.prototype,e},Wh.from=function(e,t,r){return zh(null,e,t,r)},Wh.TYPED_ARRAY_SUPPORT&&(Wh.prototype.__proto__=Uint8Array.prototype,Wh.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Wh[Symbol.species]),Wh.alloc=function(e,t,r){return function(e,t,r,n){return Uh(t),t<=0?Qh(e,t):void 0!==r?"string"==typeof n?Qh(e,t).fill(r,n):Qh(e,t).fill(r):Qh(e,t)}(null,e,t,r)},Wh.allocUnsafe=function(e){return Vh(null,e)},Wh.allocUnsafeSlow=function(e){return Vh(null,e)},Wh.isBuffer=function(e){return null!=e&&(!!e._isBuffer||km(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&km(e.slice(0,0))}(e))},Wh.compare=function(e,t){if(!Hh(e)||!Hh(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},Wh.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Wh.concat=function(e,t){if(!Ih(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Wh.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=Wh.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(!Hh(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},Wh.byteLength=Gh,Wh.prototype._isBuffer=!0,Wh.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Kh(this,t,t+1);return this},Wh.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Kh(this,t,t+3),Kh(this,t+1,t+2);return this},Wh.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Kh(this,t,t+7),Kh(this,t+1,t+6),Kh(this,t+2,t+5),Kh(this,t+3,t+4);return this},Wh.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?lm(this,0,e):Xh.apply(this,arguments)},Wh.prototype.equals=function(e){if(!Hh(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Wh.compare(this,e)},Wh.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Wh.prototype.compare=function(e,t,r,n,o){if(!Hh(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(n,o),u=e.slice(t,r),c=0;c<s;++c)if(l[c]!==u[c]){i=l[c],a=u[c];break}return i<a?-1:a<i?1:0},Wh.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},Wh.prototype.indexOf=function(e,t,r){return Jh(this,e,t,r,!0)},Wh.prototype.lastIndexOf=function(e,t,r){return Jh(this,e,t,r,!1)},Wh.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return tm(this,e,t,r);case"utf8":case"utf-8":return rm(this,e,t,r);case"ascii":return nm(this,e,t,r);case"latin1":case"binary":return om(this,e,t,r);case"base64":return im(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return am(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},Wh.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var um=4096;function cm(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function dm(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function fm(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=wm(e[i]);return o}function pm(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function hm(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function mm(e,t,r,n,o,i){if(!Hh(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function gm(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function vm(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function ym(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function bm(e,t,r,n,o){return o||ym(e,0,r,4),Nh(e,t,r,n,23,4),r+4}function Am(e,t,r,n,o){return o||ym(e,0,r,8),Nh(e,t,r,n,52,8),r+8}Wh.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),Wh.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=Wh.prototype;else{var o=t-e;r=new Wh(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},Wh.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||hm(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},Wh.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||hm(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},Wh.prototype.readUInt8=function(e,t){return t||hm(e,1,this.length),this[e]},Wh.prototype.readUInt16LE=function(e,t){return t||hm(e,2,this.length),this[e]|this[e+1]<<8},Wh.prototype.readUInt16BE=function(e,t){return t||hm(e,2,this.length),this[e]<<8|this[e+1]},Wh.prototype.readUInt32LE=function(e,t){return t||hm(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Wh.prototype.readUInt32BE=function(e,t){return t||hm(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Wh.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||hm(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},Wh.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||hm(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Wh.prototype.readInt8=function(e,t){return t||hm(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Wh.prototype.readInt16LE=function(e,t){t||hm(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Wh.prototype.readInt16BE=function(e,t){t||hm(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Wh.prototype.readInt32LE=function(e,t){return t||hm(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Wh.prototype.readInt32BE=function(e,t){return t||hm(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Wh.prototype.readFloatLE=function(e,t){return t||hm(e,4,this.length),Fh(this,e,!0,23,4)},Wh.prototype.readFloatBE=function(e,t){return t||hm(e,4,this.length),Fh(this,e,!1,23,4)},Wh.prototype.readDoubleLE=function(e,t){return t||hm(e,8,this.length),Fh(this,e,!0,52,8)},Wh.prototype.readDoubleBE=function(e,t){return t||hm(e,8,this.length),Fh(this,e,!1,52,8)},Wh.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||mm(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},Wh.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||mm(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},Wh.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,1,255,0),Wh.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Wh.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,2,65535,0),Wh.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):gm(this,e,t,!0),t+2},Wh.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,2,65535,0),Wh.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):gm(this,e,t,!1),t+2},Wh.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,4,4294967295,0),Wh.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):vm(this,e,t,!0),t+4},Wh.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,4,4294967295,0),Wh.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):vm(this,e,t,!1),t+4},Wh.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);mm(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},Wh.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);mm(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},Wh.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,1,127,-128),Wh.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Wh.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,2,32767,-32768),Wh.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):gm(this,e,t,!0),t+2},Wh.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,2,32767,-32768),Wh.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):gm(this,e,t,!1),t+2},Wh.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,4,2147483647,-2147483648),Wh.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):vm(this,e,t,!0),t+4},Wh.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Wh.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):vm(this,e,t,!1),t+4},Wh.prototype.writeFloatLE=function(e,t,r){return bm(this,e,t,!0,r)},Wh.prototype.writeFloatBE=function(e,t,r){return bm(this,e,t,!1,r)},Wh.prototype.writeDoubleLE=function(e,t,r){return Am(this,e,t,!0,r)},Wh.prototype.writeDoubleBE=function(e,t,r){return Am(this,e,t,!1,r)},Wh.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!Wh.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},Wh.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Wh.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=Hh(e)?e:Cm(new Wh(e,n).toString()),s=a.length;for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var Om=/[^+\/0-9A-Za-z-_]/g;function wm(e){return e<16?"0"+e.toString(16):e.toString(16)}function Cm(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function _m(e){return function(e){var t,r,n,o,i,a;jh||qh();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[s-2]?2:"="===e[s-1]?1:0,a=new Th(3*s/4-i),n=i>0?s-4:s;var l=0;for(t=0,r=0;t<n;t+=4,r+=3)o=Bh[e.charCodeAt(t)]<<18|Bh[e.charCodeAt(t+1)]<<12|Bh[e.charCodeAt(t+2)]<<6|Bh[e.charCodeAt(t+3)],a[l++]=o>>16&255,a[l++]=o>>8&255,a[l++]=255&o;return 2===i?(o=Bh[e.charCodeAt(t)]<<2|Bh[e.charCodeAt(t+1)]>>4,a[l++]=255&o):1===i&&(o=Bh[e.charCodeAt(t)]<<10|Bh[e.charCodeAt(t+1)]<<4|Bh[e.charCodeAt(t+2)]>>2,a[l++]=o>>8&255,a[l++]=255&o),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Om,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function xm(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function km(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}"function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder;const Em=((e=>{let t={};e.forEach(((e,r)=>t[e]=r))})(Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")),String.fromCharCode.bind(String),"function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_"))),Sm=e=>Wh.from(e,"utf8").toString("base64"),Dm=(e,t=!1)=>t?Em(Sm(e)):Sm(e);var Pm={},Bm=Object.prototype.hasOwnProperty;function Tm(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function jm(e){try{return encodeURIComponent(e)}catch(e){return null}}Pm.stringify=function(e,t){t=t||"";var r,n,o=[];for(n in"string"!=typeof t&&(t="?"),e)if(Bm.call(e,n)){if((r=e[n])||null!=r&&!isNaN(r)||(r=""),n=jm(n),r=jm(r),null===n||null===r)continue;o.push(n+"="+r)}return o.length?t+o.join("&"):""},Pm.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var o=Tm(t[1]),i=Tm(t[2]);null===o||null===i||o in n||(n[o]=i)}return n};var qm=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e},Rm=Pm,Mm=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Fm=/[\n\r\t]/g,Nm=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,Lm=/:\d+$/,Im=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,$m=/^[a-zA-Z]:/;function Qm(e){return(e||"").toString().replace(Mm,"")}var Wm=[["#","hash"],["?","query"],function(e,t){return Vm(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],zm={hash:1,query:1};function Um(e){var t,r=("undefined"!=typeof window?window:void 0!==Fu?Fu:"undefined"!=typeof self?self:{}).location||{},n={},o=typeof(e=e||r);if("blob:"===e.protocol)n=new Ym(unescape(e.pathname),{});else if("string"===o)for(t in n=new Ym(e,{}),zm)delete n[t];else if("object"===o){for(t in e)t in zm||(n[t]=e[t]);void 0===n.slashes&&(n.slashes=Nm.test(e.href))}return n}function Vm(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function Zm(e,t){e=(e=Qm(e)).replace(Fm,""),t=t||{};var r,n=Im.exec(e),o=n[1]?n[1].toLowerCase():"",i=!!n[2],a=!!n[3],s=0;return i?a?(r=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(r=n[2]+n[4],s=n[2].length):a?(r=n[3]+n[4],s=n[3].length):r=n[4],"file:"===o?s>=2&&(r=r.slice(2)):Vm(o)?r=n[4]:o?i&&(r=r.slice(2)):s>=2&&Vm(t.protocol)&&(r=n[4]),{protocol:o,slashes:i||Vm(o),slashesCount:s,rest:r}}function Ym(e,t,r){if(e=(e=Qm(e)).replace(Fm,""),!(this instanceof Ym))return new Ym(e,t,r);var n,o,i,a,s,l,u=Wm.slice(),c=typeof t,d=this,f=0;for("object"!==c&&"string"!==c&&(r=t,t=null),r&&"function"!=typeof r&&(r=Rm.parse),n=!(o=Zm(e||"",t=Um(t))).protocol&&!o.slashes,d.slashes=o.slashes||n&&t.slashes,d.protocol=o.protocol||t.protocol||"",e=o.rest,("file:"===o.protocol&&(2!==o.slashesCount||$m.test(e))||!o.slashes&&(o.protocol||o.slashesCount<2||!Vm(d.protocol)))&&(u[3]=[/(.*)/,"pathname"]);f<u.length;f++)"function"!=typeof(a=u[f])?(i=a[0],l=a[1],i!=i?d[l]=e:"string"==typeof i?~(s="@"===i?e.lastIndexOf(i):e.indexOf(i))&&("number"==typeof a[2]?(d[l]=e.slice(0,s),e=e.slice(s+a[2])):(d[l]=e.slice(s),e=e.slice(0,s))):(s=i.exec(e))&&(d[l]=s[1],e=e.slice(0,s.index)),d[l]=d[l]||n&&a[3]&&t[l]||"",a[4]&&(d[l]=d[l].toLowerCase())):e=a(e,d);r&&(d.query=r(d.query)),n&&t.slashes&&"/"!==d.pathname.charAt(0)&&(""!==d.pathname||""!==t.pathname)&&(d.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,o=r[n-1],i=!1,a=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),a++):a&&(0===n&&(i=!0),r.splice(n,1),a--);return i&&r.unshift(""),"."!==o&&".."!==o||r.push(""),r.join("/")}(d.pathname,t.pathname)),"/"!==d.pathname.charAt(0)&&Vm(d.protocol)&&(d.pathname="/"+d.pathname),qm(d.port,d.protocol)||(d.host=d.hostname,d.port=""),d.username=d.password="",d.auth&&(~(s=d.auth.indexOf(":"))?(d.username=d.auth.slice(0,s),d.username=encodeURIComponent(decodeURIComponent(d.username)),d.password=d.auth.slice(s+1),d.password=encodeURIComponent(decodeURIComponent(d.password))):d.username=encodeURIComponent(decodeURIComponent(d.auth)),d.auth=d.password?d.username+":"+d.password:d.username),d.origin="file:"!==d.protocol&&Vm(d.protocol)&&d.host?d.protocol+"//"+d.host:"null",d.href=d.toString()}Ym.prototype={set:function(e,t,r){var n=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||Rm.parse)(t)),n[e]=t;break;case"port":n[e]=t,qm(t,n.protocol)?t&&(n.host=n.hostname+":"+t):(n.host=n.hostname,n[e]="");break;case"hostname":n[e]=t,n.port&&(t+=":"+n.port),n.host=t;break;case"host":n[e]=t,Lm.test(t)?(t=t.split(":"),n.port=t.pop(),n.hostname=t.join(":")):(n.hostname=t,n.port="");break;case"protocol":n.protocol=t.toLowerCase(),n.slashes=!r;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";n[e]=t.charAt(0)!==o?o+t:t}else n[e]=t;break;case"username":case"password":n[e]=encodeURIComponent(t);break;case"auth":var i=t.indexOf(":");~i?(n.username=t.slice(0,i),n.username=encodeURIComponent(decodeURIComponent(n.username)),n.password=t.slice(i+1),n.password=encodeURIComponent(decodeURIComponent(n.password))):n.username=encodeURIComponent(decodeURIComponent(t))}for(var a=0;a<Wm.length;a++){var s=Wm[a];s[4]&&(n[s[1]]=n[s[1]].toLowerCase())}return n.auth=n.password?n.username+":"+n.password:n.username,n.origin="file:"!==n.protocol&&Vm(n.protocol)&&n.host?n.protocol+"//"+n.host:"null",n.href=n.toString(),n},toString:function(e){e&&"function"==typeof e||(e=Rm.stringify);var t,r=this,n=r.host,o=r.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var i=o+(r.protocol&&r.slashes||Vm(r.protocol)?"//":"");return r.username?(i+=r.username,r.password&&(i+=":"+r.password),i+="@"):r.password?(i+=":"+r.password,i+="@"):"file:"!==r.protocol&&Vm(r.protocol)&&!n&&"/"!==r.pathname&&(i+="@"),(":"===n[n.length-1]||Lm.test(r.hostname)&&!r.port)&&(n+=":"),i+=n+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(i+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(i+=r.hash),i}},Ym.extractProtocol=Zm,Ym.location=Um,Ym.trimLeft=Qm,Ym.qs=Rm;var Hm=Nu(Ym);function Gm(e){return Gm="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},Gm(e)}function Xm(e){var t="function"==typeof Map?new Map:void 0;return Xm=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Km(e,arguments,tg(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),eg(r,e)},Xm(e)}function Km(e,t,r){return Km=Jm()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&eg(o,r.prototype),o},Km.apply(null,arguments)}function Jm(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function eg(e,t){return eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eg(e,t)}function tg(e){return tg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tg(e)}var rg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eg(e,t)}(i,e);var t,r,n,o=(r=i,n=Jm(),function(){var e,t=tg(r);if(n){var o=tg(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Gm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).originalRequest=n,t.originalResponse=a,t.causingError=r,null!=r&&(e+=", caused by ".concat(r.toString())),null!=n){var s=n.getHeader("X-Request-ID")||"n/a",l=n.getMethod(),u=n.getURL(),c=a?a.getStatus():"n/a",d=a?a.getBody()||"":"n/a";e+=", originated from request (method: ".concat(l,", url: ").concat(u,", response code: ").concat(c,", response text: ").concat(d,", request id: ").concat(s,")")}return t.message=e,t}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(Xm(Error));function ng(){ng=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:k(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function y(){}function b(){}var A={};u(A,a,(function(){return this}));var O=Object.getPrototypeOf,w=O&&O(O(B([])));w&&w!==r&&n.call(w,a)&&(A=w);var C=b.prototype=v.prototype=Object.create(A);function _(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==sg(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function k(t,r,n){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=E(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?m:p,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function E(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function B(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(sg(t)+" is not iterable")}return y.prototype=b,o(C,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},_(x.prototype),u(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(C),u(C,l,"Generator"),u(C,a,(function(){return this})),u(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=B,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;D(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:B(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function og(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function ig(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ag(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ag(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ag(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sg(e){return sg="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},sg(e)}function lg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ug(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lg(Object(r),!0).forEach((function(t){cg(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function cg(e,t,r){return(t=fg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fg(n.key),n)}}function fg(e){var t=function(e){if("object"!==sg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==sg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===sg(t)?t:String(t)}var pg={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:Og,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},hg=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}var t,r,n;return t=e,r=[{key:"findPreviousUploads",value:function(){var e=this;return this.options.fingerprint(this.file,this.options).then((function(t){return e._urlStorage.findUploadsByFingerprint(t)}))}},{key:"resumeFromPreviousUpload",value:function(e){this.url=e.uploadUrl||null,this._parallelUploadUrls=e.parallelUploadUrls||null,this._urlStorageKey=e.urlStorageKey}},{key:"start",value:function(){var e=this,t=this.file;if(t)if(this.options.endpoint||this.options.uploadUrl||this.url){var r=this.options.retryDelays;if(null==r||"[object Array]"===Object.prototype.toString.call(r)){if(this.options.parallelUploads>1)for(var n=0,o=["uploadUrl","uploadSize","uploadLengthDeferred"];n<o.length;n++){var i=o[n];if(this.options[i])return void this._emitError(new Error("tus: cannot use the ".concat(i," option when parallelUploads is enabled")))}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1)return void this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length)return void this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"))}this.options.fingerprint(t,this.options).then((function(r){return e._fingerprint=r,e._source?e._source:e.options.fileReader.openFile(t,e.options.chunkSize)})).then((function(t){if(e._source=t,e.options.uploadLengthDeferred)e._size=null;else if(null!=e.options.uploadSize){if(e._size=Number(e.options.uploadSize),Number.isNaN(e._size))return void e._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(e._size=e._source.size,null==e._size)return void e._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));e.options.parallelUploads>1||null!=e._parallelUploadUrls?e._startParallelUpload():e._startSingleUpload()})).catch((function(t){e._emitError(t)}))}else this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var t,r=this,n=this._size,o=0;this._parallelUploads=[];var i=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,a=null!==(t=this.options.parallelUploadBoundaries)&&void 0!==t?t:function(e,t){for(var r=Math.floor(e/t),n=[],o=0;o<t;o++)n.push({start:r*o,end:r*(o+1)});return n[t-1].end=e,n}(this._source.size,i);this._parallelUploadUrls&&a.forEach((function(e,t){e.uploadUrl=r._parallelUploadUrls[t]||null})),this._parallelUploadUrls=new Array(a.length);var s,l=a.map((function(t,i){var s=0;return r._source.slice(t.start,t.end).then((function(l){var u=l.value;return new Promise((function(l,c){var d=ug(ug({},r.options),{},{uploadUrl:t.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:{},headers:ug(ug({},r.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:l,onError:c,onProgress:function(e){o=o-s+e,s=e,r._emitProgress(o,n)},onUploadUrlAvailable:function(){r._parallelUploadUrls[i]=f.url,r._parallelUploadUrls.filter((function(e){return Boolean(e)})).length===a.length&&r._saveUploadInUrlStorage()}}),f=new e(u,d);f.start(),r._parallelUploads.push(f)}))}))}));Promise.all(l).then((function(){(s=r._openRequest("POST",r.options.endpoint)).setHeader("Upload-Concat","final;".concat(r._parallelUploadUrls.join(" ")));var e=mg(r.options.metadata);return""!==e&&s.setHeader("Upload-Metadata",e),r._sendRequest(s,null)})).then((function(e){if(gg(e.getStatus(),200)){var t=e.getHeader("Location");null!=t?(r.url=wg(r.options.endpoint,t),"Created upload at ".concat(r.url),r._emitSuccess()):r._emitHttpError(s,e,"tus: invalid or missing Location header")}else r._emitHttpError(s,e,"tus: unexpected response while creating upload")})).catch((function(e){r._emitError(e)}))}},{key:"_startSingleUpload",value:function(){return this._aborted=!1,null!=this.url?("Resuming upload from previous URL: ".concat(this.url),void this._resumeUpload()):null!=this.options.uploadUrl?("Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,void this._resumeUpload()):void this._createUpload()}},{key:"abort",value:function(t){var r=this;return null!=this._parallelUploads&&this._parallelUploads.forEach((function(e){e.abort(t)})),null!==this._req&&this._req.abort(),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),t&&null!=this.url?e.terminate(this.url,this.options).then((function(){return r._removeFromUrlStorage()})):Promise.resolve()}},{key:"_emitHttpError",value:function(e,t,r,n){this._emitError(new rg(r,n,e,t))}},{key:"_emitError",value:function(e){var t=this;if(!this._aborted){if(null!=this.options.retryDelays&&(null!=this._offset&&this._offset>this._offsetBeforeRetry&&(this._retryAttempt=0),Ag(e,this._retryAttempt,this.options))){var r=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout((function(){t.start()}),r))}if("function"!=typeof this.options.onError)throw e;this.options.onError(e)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(e,t){"function"==typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,r){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,r)}},{key:"_createUpload",value:function(){var e=this;if(this.options.endpoint){var t=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?t.setHeader("Upload-Defer-Length",1):t.setHeader("Upload-Length",this._size);var r,n=mg(this.options.metadata);""!==n&&t.setHeader("Upload-Metadata",n),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,r=this._addChunkToRequest(t)):r=this._sendRequest(t,null),r.then((function(r){if(gg(r.getStatus(),200)){var n=r.getHeader("Location");if(null!=n){if(e.url=wg(e.options.endpoint,n),"Created upload at ".concat(e.url),"function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),0===e._size)return e._emitSuccess(),void e._source.close();e._saveUploadInUrlStorage().then((function(){e.options.uploadDataDuringCreation?e._handleUploadResponse(t,r):(e._offset=0,e._performUpload())}))}else e._emitHttpError(t,r,"tus: invalid or missing Location header")}else e._emitHttpError(t,r,"tus: unexpected response while creating upload")})).catch((function(r){e._emitHttpError(t,null,"tus: failed to create upload",r)}))}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var e=this,t=this._openRequest("HEAD",this.url);this._sendRequest(t,null).then((function(r){var n=r.getStatus();if(!gg(n,200))return 423===n?void e._emitHttpError(t,r,"tus: upload is currently locked; retry later"):(gg(n,400)&&e._removeFromUrlStorage(),e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,r,"tus: unable to resume upload (new upload cannot be created without an endpoint)"));var o=parseInt(r.getHeader("Upload-Offset"),10);if(Number.isNaN(o))e._emitHttpError(t,r,"tus: invalid or missing offset value");else{var i=parseInt(r.getHeader("Upload-Length"),10);!Number.isNaN(i)||e.options.uploadLengthDeferred?("function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),e._saveUploadInUrlStorage().then((function(){if(o===i)return e._emitProgress(i,i),void e._emitSuccess();e._offset=o,e._performUpload()}))):e._emitHttpError(t,r,"tus: invalid or missing length value")}})).catch((function(r){e._emitHttpError(t,null,"tus: failed to resume upload",r)}))}},{key:"_performUpload",value:function(){var e,t=this;this._aborted||(this.options.overridePatchMethod?(e=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):e=this._openRequest("PATCH",this.url),e.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(e).then((function(r){gg(r.getStatus(),200)?t._handleUploadResponse(e,r):t._emitHttpError(e,r,"tus: unexpected response while uploading chunk")})).catch((function(r){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),r)})))}},{key:"_addChunkToRequest",value:function(e){var t=this,r=this._offset,n=this._offset+this.options.chunkSize;return e.setProgressHandler((function(e){t._emitProgress(r+e,t._size)})),e.setHeader("Content-Type","application/offset+octet-stream"),(n===1/0||n>this._size)&&!this.options.uploadLengthDeferred&&(n=this._size),this._source.slice(r,n).then((function(r){var n=r.value,o=r.done,i=n&&n.size?n.size:0;t.options.uploadLengthDeferred&&o&&(t._size=t._offset+i,e.setHeader("Upload-Length",t._size));var a=t._offset+i;return!t.options.uploadLengthDeferred&&o&&a!==t._size?Promise.reject(new Error("upload was configured with a size of ".concat(t._size," bytes, but the source is done after ").concat(a," bytes"))):null===n?t._sendRequest(e):(t._emitProgress(t._offset,t._size),t._sendRequest(e,n))}))}},{key:"_handleUploadResponse",value:function(e,t){var r=parseInt(t.getHeader("Upload-Offset"),10);if(Number.isNaN(r))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(r,this._size),this._emitChunkComplete(r-this._offset,r,this._size),this._offset=r,r===this._size)return this._emitSuccess(),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var r=vg(e,t,this.options);return this._req=r,r}},{key:"_removeFromUrlStorage",value:function(){var e=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch((function(t){e._emitError(t)})),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var e=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||null!==this._urlStorageKey)return Promise.resolve();var t={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};return this._parallelUploads?t.parallelUploadUrls=this._parallelUploadUrls:t.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,t).then((function(t){e._urlStorageKey=t}))}},{key:"_sendRequest",value:function(e){return yg(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.options)}}],n=[{key:"terminate",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=vg("DELETE",t,r);return yg(n,null,r).then((function(e){if(204!==e.getStatus())throw new rg("tus: unexpected response while terminating upload",null,n,e)})).catch((function(o){if(o instanceof rg||(o=new rg("tus: failed to terminate upload",o,n,null)),!Ag(o,0,r))throw o;var i=r.retryDelays[0],a=r.retryDelays.slice(1),s=ug(ug({},r),{},{retryDelays:a});return new Promise((function(e){return setTimeout(e,i)})).then((function(){return e.terminate(t,s)}))}))}}],r&&dg(t.prototype,r),n&&dg(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function mg(e){return Object.entries(e).map((function(e){var t=ig(e,2),r=t[0],n=t[1];return"".concat(r," ").concat(Dm(String(n)))})).join(",")}function gg(e,t){return e>=t&&e<t+100}function vg(e,t,r){var n=r.httpStack.createRequest(e,t);n.setHeader("Tus-Resumable","1.0.0");var o=r.headers||{};if(Object.entries(o).forEach((function(e){var t=ig(e,2),r=t[0],o=t[1];n.setHeader(r,o)})),r.addRequestId){var i="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)}));n.setHeader("X-Request-ID",i)}return n}function yg(e,t,r){return bg.apply(this,arguments)}function bg(){var e;return e=ng().mark((function e(t,r,n){var o;return ng().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof n.onBeforeRequest){e.next=3;break}return e.next=3,n.onBeforeRequest(t);case 3:return e.next=5,t.send(r);case 5:if(o=e.sent,"function"!=typeof n.onAfterResponse){e.next=9;break}return e.next=9,n.onAfterResponse(t,o);case 9:return e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})),bg=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){og(i,n,o,a,s,"next",e)}function s(e){og(i,n,o,a,s,"throw",e)}a(void 0)}))},bg.apply(this,arguments)}function Ag(e,t,r){return!(null==r.retryDelays||t>=r.retryDelays.length||null==e.originalRequest)&&(r&&"function"==typeof r.onShouldRetry?r.onShouldRetry(e,t,r):Og(e))}function Og(e){var t,r=e.originalResponse?e.originalResponse.getStatus():0;return(!gg(r,400)||409===r||423===r)&&(t=!0,"undefined"!=typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(t=!1),t)}function wg(e,t){return new Hm(t,e).toString()}function Cg(e){return Cg="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},Cg(e)}function _g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xg(n.key),n)}}function xg(e){var t=function(e){if("object"!==Cg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Cg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Cg(t)?t:String(t)}hg.defaultOptions=pg;var kg=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(e){return Promise.resolve([])}},{key:"removeUpload",value:function(e){return Promise.resolve()}},{key:"addUpload",value:function(e,t){return Promise.resolve(null)}}])&&_g(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Eg(e){return Eg="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},Eg(e)}function Sg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dg(n.key),n)}}function Dg(e){var t=function(e){if("object"!==Eg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Eg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Eg(t)?t:String(t)}var Pg=!1;try{Pg="localStorage"in window;var Bg="tusSupport",Tg=localStorage.getItem(Bg);localStorage.setItem(Bg,Tg),null===Tg&&localStorage.removeItem(Bg)}catch(Zp){if(Zp.code!==Zp.SECURITY_ERR&&Zp.code!==Zp.QUOTA_EXCEEDED_ERR)throw Zp;Pg=!1}var jg=Pg,qg=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"findAllUploads",value:function(){var e=this._findEntries("tus::");return Promise.resolve(e)}},{key:"findUploadsByFingerprint",value:function(e){var t=this._findEntries("tus::".concat(e,"::"));return Promise.resolve(t)}},{key:"removeUpload",value:function(e){return localStorage.removeItem(e),Promise.resolve()}},{key:"addUpload",value:function(e,t){var r=Math.round(1e12*Math.random()),n="tus::".concat(e,"::").concat(r);return localStorage.setItem(n,JSON.stringify(t)),Promise.resolve(n)}},{key:"_findEntries",value:function(e){for(var t=[],r=0;r<localStorage.length;r++){var n=localStorage.key(r);if(0===n.indexOf(e))try{var o=JSON.parse(localStorage.getItem(n));o.urlStorageKey=n,t.push(o)}catch(e){}}return t}}],r&&Sg(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Rg(e){return Rg="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},Rg(e)}function Mg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Lg(n.key),n)}}function Ng(e,t,r){return t&&Fg(e.prototype,t),r&&Fg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lg(e){var t=function(e){if("object"!==Rg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Rg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Rg(t)?t:String(t)}var Ig=function(){function e(){Mg(this,e)}return Ng(e,[{key:"createRequest",value:function(e,t){return new $g(e,t)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),$g=function(){function e(t,r){Mg(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,r,!0),this._method=t,this._url=r,this._headers={}}return Ng(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(e,t){this._xhr.setRequestHeader(e,t),this._headers[e]=t}},{key:"getHeader",value:function(e){return this._headers[e]}},{key:"setProgressHandler",value:function(e){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(t){t.lengthComputable&&e(t.loaded)})}},{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise((function(r,n){e._xhr.onload=function(){r(new Qg(e._xhr))},e._xhr.onerror=function(e){n(e)},e._xhr.send(t)}))}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),Qg=function(){function e(t){Mg(this,e),this._xhr=t}return Ng(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(e){return this._xhr.getResponseHeader(e)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),Wg=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()};function zg(e){return new Promise((function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var e=n.response;t(e)},n.onerror=function(e){r(e)},n.open("GET",e),n.send()}))}function Ug(e){return Ug="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},Ug(e)}function Vg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Zg(n.key),n)}}function Zg(e){var t=function(e){if("object"!==Ug(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Ug(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ug(t)?t:String(t)}var Yg=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._file=t,this.size=t.size}var t,r;return t=e,r=[{key:"slice",value:function(e,t){if("undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova))return r=this._file.slice(e,t),new Promise((function(e,t){var n=new FileReader;n.onload=function(){var t=new Uint8Array(n.result);e({value:t})},n.onerror=function(e){t(e)},n.readAsArrayBuffer(r)}));var r,n=this._file.slice(e,t),o=t>=this.size;return Promise.resolve({value:n,done:o})}},{key:"close",value:function(){}}],r&&Vg(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Hg(e){return Hg="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},Hg(e)}function Gg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Xg(n.key),n)}}function Xg(e){var t=function(e){if("object"!==Hg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Hg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Hg(t)?t:String(t)}function Kg(e){return void 0===e?0:void 0!==e.size?e.size:e.length}var Jg=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}var t,r;return t=e,r=[{key:"slice",value:function(e,t){return e<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(e,t)}},{key:"_readUntilEnoughDataOrDone",value:function(e,t){var r=this,n=t<=this._bufferOffset+Kg(this._buffer);if(this._done||n){var o=this._getDataFromBuffer(e,t),i=null==o&&this._done;return Promise.resolve({value:o,done:i})}return this._reader.read().then((function(n){var o=n.value;return n.done?r._done=!0:void 0===r._buffer?r._buffer=o:r._buffer=function(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}throw new Error("Unknown data type")}(r._buffer,o),r._readUntilEnoughDataOrDone(e,t)}))}},{key:"_getDataFromBuffer",value:function(e,t){e>this._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var r=0===Kg(this._buffer);return this._done&&r?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}],r&&Gg(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ev(e){return ev="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},ev(e)}function tv(){tv=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:k(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function y(){}function b(){}var A={};u(A,a,(function(){return this}));var O=Object.getPrototypeOf,w=O&&O(O(B([])));w&&w!==r&&n.call(w,a)&&(A=w);var C=b.prototype=v.prototype=Object.create(A);function _(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==ev(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function k(t,r,n){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=E(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?m:p,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function E(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function B(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(ev(t)+" is not iterable")}return y.prototype=b,o(C,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},_(x.prototype),u(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(C),u(C,l,"Generator"),u(C,a,(function(){return this})),u(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=B,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;D(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:B(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function rv(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function nv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ov(n.key),n)}}function ov(e){var t=function(e){if("object"!==ev(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==ev(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ev(t)?t:String(t)}var iv=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n,o;return t=e,r=[{key:"openFile",value:(n=tv().mark((function e(t,r){var n;return tv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Wg()||!t||void 0===t.uri){e.next=11;break}return e.prev=1,e.next=4,zg(t.uri);case 4:return n=e.sent,e.abrupt("return",new Yg(n));case 8:throw e.prev=8,e.t0=e.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(e.t0));case 11:if("function"!=typeof t.slice||void 0===t.size){e.next=13;break}return e.abrupt("return",Promise.resolve(new Yg(t)));case 13:if("function"!=typeof t.read){e.next=18;break}if(r=Number(r),Number.isFinite(r)){e.next=17;break}return e.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return e.abrupt("return",Promise.resolve(new Jg(t,r)));case 18:return e.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return e.stop()}}),e,null,[[1,8]])})),o=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){rv(i,r,o,a,s,"next",e)}function s(e){rv(i,r,o,a,s,"throw",e)}a(void 0)}))},function(e,t){return o.apply(this,arguments)})}],r&&nv(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function av(e){return av="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},av(e)}function sv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pv(n.key),n)}}function lv(e,t){return lv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lv(e,t)}function uv(e){return uv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uv(e)}function cv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cv(Object(r),!0).forEach((function(t){fv(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fv(e,t,r){return(t=pv(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pv(e){var t=function(e){if("object"!==av(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==av(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===av(t)?t:String(t)}var hv=dv(dv({},hg.defaultOptions),{},{httpStack:new Ig,fileReader:new iv,urlStorage:jg?new qg:new kg,fingerprint:function(e,t){return Wg()?Promise.resolve(function(e,t){var r=e.exif?function(e){var t=0;if(0===e.length)return t;for(var r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return t}(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",r,t.endpoint].join("/")}(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}}),mv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lv(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=uv(n);if(o){var r=uv(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===av(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=dv(dv({},hv),t),i.call(this,e,t)}return t=a,r=[{key:"terminate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=dv(dv({},hv),t),hg.terminate(e,t)}}],null&&sv(t.prototype,null),r&&sv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(hg);function gv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var vv=0;function yv(e){return"__private_"+vv+++"_"+e}var bv=yv("uppy"),Av=yv("events");class Ov{constructor(e){Object.defineProperty(this,bv,{writable:!0,value:void 0}),Object.defineProperty(this,Av,{writable:!0,value:[]}),gv(this,bv)[bv]=e}on(e,t){return gv(this,Av)[Av].push([e,t]),gv(this,bv)[bv].on(e,t)}remove(){for(const[e,t]of gv(this,Av)[Av].splice(0))gv(this,bv)[bv].off(e,t)}onFilePause(e,t){this.on("upload-pause",((r,n)=>{e===r&&t(n)}))}onFileRemove(e,t){this.on("file-removed",(r=>{e===r.id&&t(r.id)}))}onPause(e,t){this.on("upload-pause",((r,n)=>{e===r&&t(n)}))}onRetry(e,t){this.on("upload-retry",(r=>{e===r&&t()}))}onRetryAll(e,t){this.on("retry-all",(()=>{gv(this,bv)[bv].getFile(e)&&t()}))}onPauseAll(e,t){this.on("pause-all",(()=>{gv(this,bv)[bv].getFile(e)&&t()}))}onCancelAll(e,t){var r=this;this.on("cancel-all",(function(){gv(r,bv)[bv].getFile(e)&&t(...arguments)}))}onResumeAll(e,t){this.on("resume-all",(()=>{gv(this,bv)[bv].getFile(e)&&t()}))}}class wv extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}function Cv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var _v=0;function xv(e){return"__private_"+_v+++"_"+e}function kv(e){if(null!=e){var t;const r=()=>this.abort(e.reason);e.addEventListener("abort",r,{once:!0});const n=()=>{e.removeEventListener("abort",r)};null==(t=this.then)||t.call(this,n,n)}return this}var Ev=xv("activeRequests"),Sv=xv("queuedHandlers"),Dv=xv("paused"),Pv=xv("pauseTimer"),Bv=xv("downLimit"),Tv=xv("upperLimit"),jv=xv("rateLimitingTimer"),qv=xv("call"),Rv=xv("queueNext"),Mv=xv("next"),Fv=xv("queue"),Nv=xv("dequeue"),Lv=xv("resume"),Iv=xv("increaseLimit");class $v{constructor(e){Object.defineProperty(this,Nv,{value:Vv}),Object.defineProperty(this,Fv,{value:Uv}),Object.defineProperty(this,Mv,{value:zv}),Object.defineProperty(this,Rv,{value:Wv}),Object.defineProperty(this,qv,{value:Qv}),Object.defineProperty(this,Ev,{writable:!0,value:0}),Object.defineProperty(this,Sv,{writable:!0,value:[]}),Object.defineProperty(this,Dv,{writable:!0,value:!1}),Object.defineProperty(this,Pv,{writable:!0,value:void 0}),Object.defineProperty(this,Bv,{writable:!0,value:1}),Object.defineProperty(this,Tv,{writable:!0,value:void 0}),Object.defineProperty(this,jv,{writable:!0,value:void 0}),Object.defineProperty(this,Lv,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,Iv,{writable:!0,value:()=>{if(Cv(this,Dv)[Dv])Cv(this,jv)[jv]=setTimeout(Cv(this,Iv)[Iv],0);else{Cv(this,Bv)[Bv]=this.limit,this.limit=Math.ceil((Cv(this,Tv)[Tv]+Cv(this,Bv)[Bv])/2);for(let e=Cv(this,Bv)[Bv];e<=this.limit;e++)Cv(this,Rv)[Rv]();Cv(this,Tv)[Tv]-Cv(this,Bv)[Bv]>3?Cv(this,jv)[jv]=setTimeout(Cv(this,Iv)[Iv],2e3):Cv(this,Bv)[Bv]=Math.floor(Cv(this,Bv)[Bv]/2)}}}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return!Cv(this,Dv)[Dv]&&Cv(this,Ev)[Ev]<this.limit?Cv(this,qv)[qv](e):Cv(this,Fv)[Fv](e,t)}wrapSyncFunction(e,t){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];const a=r.run((()=>(e(...o),queueMicrotask((()=>a.done())),()=>{})),t);return{abortOn:kv,abort(){a.abort()}}}}wrapPromiseFunction(e,t){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];let a;const s=new Promise(((n,i)=>{a=r.run((()=>{let t,r;try{r=Promise.resolve(e(...o))}catch(e){r=Promise.reject(e)}return r.then((e=>{t?i(t):(a.done(),n(e))}),(e=>{t?i(t):(a.done(),i(e))})),e=>{t=function(e){return new Error("Cancelled",{cause:e})}(e)}}),t)}));return s.abort=e=>{a.abort(e)},s.abortOn=kv,s}}resume(){Cv(this,Dv)[Dv]=!1,clearTimeout(Cv(this,Pv)[Pv]);for(let e=0;e<this.limit;e++)Cv(this,Rv)[Rv]()}pause(e){void 0===e&&(e=null),Cv(this,Dv)[Dv]=!0,clearTimeout(Cv(this,Pv)[Pv]),null!=e&&(Cv(this,Pv)[Pv]=setTimeout(Cv(this,Lv)[Lv],e))}rateLimit(e){clearTimeout(Cv(this,jv)[jv]),this.pause(e),this.limit>1&&Number.isFinite(this.limit)&&(Cv(this,Tv)[Tv]=this.limit-1,this.limit=Cv(this,Bv)[Bv],Cv(this,jv)[jv]=setTimeout(Cv(this,Iv)[Iv],e))}get isPaused(){return Cv(this,Dv)[Dv]}}function Qv(e){Cv(this,Ev)[Ev]+=1;let t,r=!1;try{t=e()}catch(e){throw Cv(this,Ev)[Ev]-=1,e}return{abort:e=>{r||(r=!0,Cv(this,Ev)[Ev]-=1,null==t||t(e),Cv(this,Rv)[Rv]())},done:()=>{r||(r=!0,Cv(this,Ev)[Ev]-=1,Cv(this,Rv)[Rv]())}}}function Wv(){queueMicrotask((()=>Cv(this,Mv)[Mv]()))}function zv(){if(Cv(this,Dv)[Dv]||Cv(this,Ev)[Ev]>=this.limit)return;if(0===Cv(this,Sv)[Sv].length)return;const e=Cv(this,Sv)[Sv].shift();if(null==e)throw new Error("Invariant violation: next is null");const t=Cv(this,qv)[qv](e.fn);e.abort=t.abort,e.done=t.done}function Uv(e,t){const r={fn:e,priority:(null==t?void 0:t.priority)||0,abort:()=>{Cv(this,Nv)[Nv](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=Cv(this,Sv)[Sv].findIndex((e=>r.priority>e.priority));return-1===n?Cv(this,Sv)[Sv].push(r):Cv(this,Sv)[Sv].splice(n,0,r),r}function Vv(e){const t=Cv(this,Sv)[Sv].indexOf(e);-1!==t&&Cv(this,Sv)[Sv].splice(t,1)}function Zv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Yv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Hv=0;function Gv(e){return"__private_"+Hv+++"_"+e}const Xv={endpoint:"",uploadUrl:null,metadata:{},uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,overridePatchMethod:!1,headers:{},addRequestId:!1,chunkSize:1/0,retryDelays:[100,1e3,3e3,5e3],parallelUploads:1,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1},Kv={limit:20,retryDelays:Xv.retryDelays,withCredentials:!1};var Jv=Gv("retryDelayIterator"),ey=Gv("uploadLocalFile"),ty=Gv("getCompanionClientArgs"),ry=Gv("uploadFiles"),ny=Gv("handleUpload");class oy extends _h{constructor(e,t){var r,n;if(super(e,{...Kv,...t}),Object.defineProperty(this,ry,{value:sy}),Object.defineProperty(this,ty,{value:ay}),Object.defineProperty(this,ey,{value:iy}),Object.defineProperty(this,Jv,{writable:!0,value:void 0}),Object.defineProperty(this,ny,{writable:!0,value:async e=>{if(0===e.length)return void this.uppy.log("[Tus] No files to upload");0===this.opts.limit&&this.uppy.log("[Tus] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/tus/#limit-0","warning"),this.uppy.log("[Tus] Uploading...");const t=this.uppy.getFilesByIds(e);await Yv(this,ry)[ry](t)}}),this.type="uploader",this.id=this.opts.id||"Tus",void 0===(null==t?void 0:t.allowedMetaFields)&&"metaFields"in this.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");if("autoRetry"in t)throw new Error("The `autoRetry` option was deprecated and has been removed.");this.requests=null!=(r=this.opts.rateLimitedQueue)?r:new $v(this.opts.limit),Yv(this,Jv)[Jv]=null==(n=this.opts.retryDelays)?void 0:n.values(),this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null),this.handleResetProgress=this.handleResetProgress.bind(this)}handleResetProgress(){const e={...this.uppy.getState().files};Object.keys(e).forEach((t=>{var r;if(null!=(r=e[t])&&null!=(r=r.tus)&&r.uploadUrl){const r={...e[t].tus};delete r.uploadUrl,e[t]={...e[t],tus:r}}})),this.uppy.setState({files:e})}resetUploaderReferences(e,t){const r=this.uploaders[e];r&&(r.abort(),null!=t&&t.abort&&r.abort(!0),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null)}onReceiveUploadUrl(e,t){const r=this.uppy.getFile(e.id);r&&(r.tus&&r.tus.uploadUrl===t||(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(r.id,{tus:{...r.tus,uploadUrl:t}})))}install(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!0}}),this.uppy.addUploader(Yv(this,ny)[ny]),this.uppy.on("reset-progress",this.handleResetProgress)}uninstall(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!1}}),this.uppy.removeUploader(Yv(this,ny)[ny])}}function iy(e){var t=this;return this.resetUploaderReferences(e.id),new Promise(((r,n)=>{let o,i,a;const s={...this.opts,...e.tus||{}};"function"==typeof s.headers&&(s.headers=s.headers(e));const{onShouldRetry:l,onBeforeRequest:u,...c}=s,d={...Xv,...c};var f;d.fingerprint=(f=e,(e,t)=>{if("undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)||"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase())return hv.fingerprint(e,t);const r=["tus",f.id,t.endpoint].join("-");return Promise.resolve(r)}),d.onBeforeRequest=async t=>{let r;if(t.getUnderlyingObject().withCredentials=!!s.withCredentials,"function"==typeof u&&(r=u(t,e)),Zv(o,"shouldBeRequeued")){if(!o.shouldBeRequeued)return Promise.reject();let t;const n=new Promise((e=>{t=e}));return o=this.requests.run((()=>(e.isPaused&&o.abort(),t(),()=>{}))),void await Promise.all([n,r])}return r},d.onError=t=>{var r;this.uppy.log(t);const i=null!=t.originalRequest?t.originalRequest.getUnderlyingObject():null;(function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)})(i)&&(t=new wv(t,i)),this.resetUploaderReferences(e.id),null==(r=o)||r.abort(),this.uppy.emit("upload-error",e,t),"function"==typeof s.onError&&s.onError(t),n(t)},d.onProgress=(t,r)=>{this.onReceiveUploadUrl(e,a.url),"function"==typeof s.onProgress&&s.onProgress(t,r),this.uppy.emit("upload-progress",this.uppy.getFile(e.id),{uploader:this,bytesUploaded:t,bytesTotal:r})},d.onSuccess=()=>{var t;const n={uploadURL:null!=(t=a.url)?t:void 0,status:200,body:{}};if(this.resetUploaderReferences(e.id),o.done(),this.uppy.emit("upload-success",this.uppy.getFile(e.id),n),a.url){const{name:e}=a.file;this.uppy.log(`Download ${e} from ${a.url}`)}"function"==typeof s.onSuccess&&s.onSuccess(),r(a)};const p=e=>{var t;const r=null==e||null==(t=e.originalResponse)?void 0:t.getStatus();if(429===r){if(!this.requests.isPaused){var n;const e=null==(n=Yv(this,Jv)[Jv])?void 0:n.next();if(null==e||e.done)return!1;this.requests.rateLimit(e.value)}}else{if(null!=r&&r>400&&r<500&&409!==r&&423!==r)return!1;"undefined"!=typeof navigator&&!1===navigator.onLine&&(this.requests.isPaused||(this.requests.pause(),window.addEventListener("online",(()=>{this.requests.resume()}),{once:!0})))}return o.abort(),o={shouldBeRequeued:!0,abort(){this.shouldBeRequeued=!1},done(){throw new Error("Cannot mark a queued request as done: this indicates a bug")},fn(){throw new Error("Cannot run a queued request: this indicates a bug")}},!0};d.onShouldRetry=null!=l?(e,t)=>l(e,t,s,p):p;const h=(e,t,r)=>{Zv(e,t)&&!Zv(e,r)&&(e[r]=e[t])},m={};(Array.isArray(s.allowedMetaFields)?s.allowedMetaFields:Object.keys(e.meta)).forEach((t=>{m[t]=String(e.meta[t])})),h(m,"type","filetype"),h(m,"name","filename"),d.metadata=m,a=new mv(e.data,d),this.uploaders[e.id]=a;const g=new Ov(this.uppy);this.uploaderEvents[e.id]=g,i=()=>(e.isPaused||a.start(),()=>{}),a.findPreviousUploads().then((t=>{const r=t[0];r&&(this.uppy.log(`[Tus] Resuming upload of ${e.id} started at ${r.creationTime}`),a.resumeFromPreviousUpload(r))})),o=this.requests.run(i),g.onFileRemove(e.id,(t=>{o.abort(),this.resetUploaderReferences(e.id,{abort:!!a.url}),r(`upload ${t} was removed`)})),g.onPause(e.id,(e=>{o.abort(),e?a.abort():o=this.requests.run(i)})),g.onPauseAll(e.id,(()=>{o.abort(),a.abort()})),g.onCancelAll(e.id,(function(n){let{reason:i}=void 0===n?{}:n;"user"===i&&(o.abort(),t.resetUploaderReferences(e.id,{abort:!!a.url})),r(`upload ${e.id} was canceled`)})),g.onResumeAll(e.id,(()=>{o.abort(),e.error&&a.abort(),o=this.requests.run(i)}))})).catch((t=>{throw this.uppy.emit("upload-error",e,t),t}))}function ay(e){var t;const r={...this.opts};return e.tus&&Object.assign(r,e.tus),{...null==(t=e.remote)?void 0:t.body,endpoint:r.endpoint,uploadUrl:r.uploadUrl,protocol:"tus",size:e.data.size,headers:r.headers,metadata:e.meta}}async function sy(e){const t=function(e){return e.filter((e=>!(e=>"error"in e&&!!e.error)(e)))}(e),r=function(e){return e.filter((e=>{var t;return!(null!=(t=e.progress)&&t.uploadStarted&&e.isRestored)}))}(t);this.uppy.emit("upload-start",r),await Promise.allSettled(t.map((e=>{if(e.isRemote){const t=()=>this.requests,r=new AbortController,n=t=>{t.id===e.id&&r.abort()};this.uppy.on("file-removed",n);const o=this.uppy.getRequestClientForFile(e).uploadRemoteFile(e,Yv(this,ty)[ty](e),{signal:r.signal,getQueue:t});return this.requests.wrapSyncFunction((()=>{this.uppy.off("file-removed",n)}),{priority:-1})(),o}return Yv(this,ey)[ey](e)})))}oy.VERSION="3.5.4";const ly=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],uy=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],cy=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],dy=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],fy=(e,t,r)=>{let n=e;return"string"==typeof t||Array.isArray(t)?n=e.toLocaleString(t,r):!0!==t&&void 0===r||(n=e.toLocaleString(void 0,r)),n};function py(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const r=(t={bits:!1,binary:!1,space:!0,...t}).bits?t.binary?dy:cy:t.binary?uy:ly,n=t.space?" ":"";if(t.signed&&0===e)return` 0${n}${r[0]}`;const o=e<0,i=o?"-":t.signed?"+":"";let a;if(o&&(e=-e),void 0!==t.minimumFractionDigits&&(a={minimumFractionDigits:t.minimumFractionDigits}),void 0!==t.maximumFractionDigits&&(a={maximumFractionDigits:t.maximumFractionDigits,...a}),e<1)return i+fy(e,t.locale,a)+n+r[0];const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),r.length-1);return e/=(t.binary?1024:1e3)**s,a||(e=e.toPrecision(3)),i+fy(Number(e),t.locale,a)+n+r[s]}var hy,my,gy={exports:{}},vy={},yy={};"production"===Mu.env.NODE_ENV?gy.exports=function(){if(hy)return vy;hy=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case n:case i:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case u:case p:case f:case a:return e;default:return h}}case r:return h}}}return e=Symbol.for("react.module.reference"),vy.ContextConsumer=s,vy.ContextProvider=a,vy.Element=t,vy.ForwardRef=u,vy.Fragment=n,vy.Lazy=p,vy.Memo=f,vy.Portal=r,vy.Profiler=i,vy.StrictMode=o,vy.Suspense=c,vy.SuspenseList=d,vy.isAsyncMode=function(){return!1},vy.isConcurrentMode=function(){return!1},vy.isContextConsumer=function(e){return m(e)===s},vy.isContextProvider=function(e){return m(e)===a},vy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},vy.isForwardRef=function(e){return m(e)===u},vy.isFragment=function(e){return m(e)===n},vy.isLazy=function(e){return m(e)===p},vy.isMemo=function(e){return m(e)===f},vy.isPortal=function(e){return m(e)===r},vy.isProfiler=function(e){return m(e)===i},vy.isStrictMode=function(e){return m(e)===o},vy.isSuspense=function(e){return m(e)===c},vy.isSuspenseList=function(e){return m(e)===d},vy.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===c||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},vy.typeOf=m,vy}():gy.exports=(my||(my=1,"production"!==Mu.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case n:case i:case o:case c:case d:return m;default:var g=m&&m.$$typeof;switch(g){case l:case s:case u:case p:case f:case a:return g;default:return h}}case r:return h}}}e=Symbol.for("react.module.reference");var g=s,v=a,y=t,b=u,A=n,O=p,w=f,C=r,_=i,x=o,k=c,E=d,S=!1,D=!1;yy.ContextConsumer=g,yy.ContextProvider=v,yy.Element=y,yy.ForwardRef=b,yy.Fragment=A,yy.Lazy=O,yy.Memo=w,yy.Portal=C,yy.Profiler=_,yy.StrictMode=x,yy.Suspense=k,yy.SuspenseList=E,yy.isAsyncMode=function(e){return S||(S=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},yy.isConcurrentMode=function(e){return D||(D=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},yy.isContextConsumer=function(e){return m(e)===s},yy.isContextProvider=function(e){return m(e)===a},yy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},yy.isForwardRef=function(e){return m(e)===u},yy.isFragment=function(e){return m(e)===n},yy.isLazy=function(e){return m(e)===p},yy.isMemo=function(e){return m(e)===f},yy.isPortal=function(e){return m(e)===r},yy.isProfiler=function(e){return m(e)===i},yy.isStrictMode=function(e){return m(e)===o},yy.isSuspense=function(e){return m(e)===c},yy.isSuspenseList=function(e){return m(e)===d},yy.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===c||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},yy.typeOf=m}()),yy);var by=gy.exports;function Ay(e){function t(e,n,l,u,f){for(var p,h,m,g,A,w=0,C=0,_=0,x=0,k=0,T=0,q=m=p=0,M=0,F=0,N=0,L=0,I=l.length,$=I-1,Q="",W="",z="",U="";M<I;){if(h=l.charCodeAt(M),M===$&&0!==C+x+_+w&&(0!==C&&(h=47===C?10:47),x=_=w=0,I++,$++),0===C+x+_+w){if(M===$&&(0<F&&(Q=Q.replace(d,"")),0<Q.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:Q+=l.charAt(M)}h=59}switch(h){case 123:for(p=(Q=Q.trim()).charCodeAt(0),m=1,L=++M;M<I;){switch(h=l.charCodeAt(M)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(M+1)){case 42:case 47:e:{for(q=M+1;q<$;++q)switch(l.charCodeAt(q)){case 47:if(42===h&&42===l.charCodeAt(q-1)&&M+2!==q){M=q+1;break e}break;case 10:if(47===h){M=q+1;break e}}M=q}}break;case 91:h++;case 40:h++;case 34:case 39:for(;M++<$&&l.charCodeAt(M)!==h;);}if(0===m)break;M++}if(m=l.substring(L,M),0===p&&(p=(Q=Q.replace(c,"").trim()).charCodeAt(0)),64===p){switch(0<F&&(Q=Q.replace(d,"")),h=Q.charCodeAt(1)){case 100:case 109:case 115:case 45:F=n;break;default:F=B}if(L=(m=t(n,F,m,h,f+1)).length,0<j&&(A=s(3,m,F=r(B,Q,N),n,S,E,L,h,f,u),Q=F.join(""),void 0!==A&&0===(L=(m=A.trim()).length)&&(h=0,m="")),0<L)switch(h){case 115:Q=Q.replace(O,a);case 100:case 109:case 45:m=Q+"{"+m+"}";break;case 107:m=(Q=Q.replace(v,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=Q+m,112===u&&(W+=m,m="")}else m=""}else m=t(n,r(n,Q,N),m,u,f+1);z+=m,m=N=F=q=p=0,Q="",h=l.charCodeAt(++M);break;case 125:case 59:if(1<(L=(Q=(0<F?Q.replace(d,""):Q).trim()).length))switch(0===q&&(p=Q.charCodeAt(0),45===p||96<p&&123>p)&&(L=(Q=Q.replace(" ",":")).length),0<j&&void 0!==(A=s(1,Q,n,e,S,E,W.length,u,f,u))&&0===(L=(Q=A.trim()).length)&&(Q="\0\0"),p=Q.charCodeAt(0),h=Q.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){U+=Q+l.charAt(M);break}default:58!==Q.charCodeAt(L-1)&&(W+=o(Q,p,h,Q.charCodeAt(2)))}N=F=q=p=0,Q="",h=l.charCodeAt(++M)}}switch(h){case 13:case 10:47===C?C=0:0===1+p&&107!==u&&0<Q.length&&(F=1,Q+="\0"),0<j*R&&s(0,Q,n,e,S,E,W.length,u,f,u),E=1,S++;break;case 59:case 125:if(0===C+x+_+w){E++;break}default:switch(E++,g=l.charAt(M),h){case 9:case 32:if(0===x+w+C)switch(k){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===x+C+w&&(F=N=1,g="\f"+g);break;case 108:if(0===x+C+w+D&&0<q)switch(M-q){case 2:112===k&&58===l.charCodeAt(M-3)&&(D=k);case 8:111===T&&(D=T)}break;case 58:0===x+C+w&&(q=M);break;case 44:0===C+_+x+w&&(F=1,g+="\r");break;case 34:case 39:0===C&&(x=x===h?0:0===x?h:x);break;case 91:0===x+C+_&&w++;break;case 93:0===x+C+_&&w--;break;case 41:0===x+C+w&&_--;break;case 40:0===x+C+w&&(0===p&&(2*k+3*T==533||(p=1)),_++);break;case 64:0===C+_+x+w+q+m&&(m=1);break;case 42:case 47:if(!(0<x+w+_))switch(C){case 0:switch(2*h+3*l.charCodeAt(M+1)){case 235:C=47;break;case 220:L=M,C=42}break;case 42:47===h&&42===k&&L+2!==M&&(33===l.charCodeAt(L+2)&&(W+=l.substring(L,M+1)),g="",C=0)}}0===C&&(Q+=g)}T=k,k=h,M++}if(0<(L=W.length)){if(F=n,0<j&&void 0!==(A=s(2,W,F,e,S,E,L,u,f,u))&&0===(W=A).length)return U+W+z;if(W=F.join(",")+"{"+W+"}",0!=P*D){switch(2!==P||i(W,2)||(D=0),D){case 111:W=W.replace(b,":-moz-$1")+W;break;case 112:W=W.replace(y,"::-webkit-input-$1")+W.replace(y,"::-moz-$1")+W.replace(y,":-ms-input-$1")+W}D=0}}return U+W+z}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[l++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===P||2===P&&i(l,1)?"-webkit-"+l+l:l}if(0===P||2===P&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(A,"tb");break;case 232:l=a.replace(A,"tb-rl");break;case 220:l=a.replace(A,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),q(2!==t?n:n.replace(_,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(w," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,l,c){for(var d,f=0,p=t;f<j;++f)switch(d=T[f].call(u,e,p,r,n,o,i,a,s,l,c)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(q=null,e?"function"!=typeof e?P=1:(P=2,q=e):P=0),l}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<j){var o=s(-1,r,n,n,S,E,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(B,n,r,0,0);return 0<j&&void 0!==(o=s(-2,i,n,n,S,E,i.length,0,0,0))&&(i=o),D=0,E=S=1,i}var c=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,A=/[svh]\w+-[tblr]{2}/,O=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,C=/-self|flex-/g,_=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,E=1,S=1,D=0,P=1,B=[],T=[],j=0,q=null,R=0;return u.use=function e(t){switch(t){case void 0:case null:j=T.length=0;break;default:if("function"==typeof t)T[j++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else R=0|!!t}return e},u.set=l,void 0!==e&&l(e),u}var Oy={animationIterationCount: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,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 wy(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Cy,_y,xy=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ky=wy((function(e){return xy.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ey={exports:{}},Sy={},Dy={};"production"===Mu.env.NODE_ENV?Ey.exports=function(){if(Cy)return Sy;Cy=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case u:case n:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case p:case a:return e;default:return f}}case r:return f}}}function A(e){return b(e)===u}return Sy.AsyncMode=l,Sy.ConcurrentMode=u,Sy.ContextConsumer=s,Sy.ContextProvider=a,Sy.Element=t,Sy.ForwardRef=c,Sy.Fragment=n,Sy.Lazy=h,Sy.Memo=p,Sy.Portal=r,Sy.Profiler=i,Sy.StrictMode=o,Sy.Suspense=d,Sy.isAsyncMode=function(e){return A(e)||b(e)===l},Sy.isConcurrentMode=A,Sy.isContextConsumer=function(e){return b(e)===s},Sy.isContextProvider=function(e){return b(e)===a},Sy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Sy.isForwardRef=function(e){return b(e)===c},Sy.isFragment=function(e){return b(e)===n},Sy.isLazy=function(e){return b(e)===h},Sy.isMemo=function(e){return b(e)===p},Sy.isPortal=function(e){return b(e)===r},Sy.isProfiler=function(e){return b(e)===i},Sy.isStrictMode=function(e){return b(e)===o},Sy.isSuspense=function(e){return b(e)===d},Sy.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},Sy.typeOf=b,Sy}():Ey.exports=(_y||(_y=1,"production"!==Mu.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case l:case u:case n:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case c:case h:case p:case a:return g;default:return f}}case r:return f}}}var A=l,O=u,w=s,C=a,_=t,x=c,k=n,E=h,S=p,D=r,P=i,B=o,T=d,j=!1;function q(e){return b(e)===u}Dy.AsyncMode=A,Dy.ConcurrentMode=O,Dy.ContextConsumer=w,Dy.ContextProvider=C,Dy.Element=_,Dy.ForwardRef=x,Dy.Fragment=k,Dy.Lazy=E,Dy.Memo=S,Dy.Portal=D,Dy.Profiler=P,Dy.StrictMode=B,Dy.Suspense=T,Dy.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),q(e)||b(e)===l},Dy.isConcurrentMode=q,Dy.isContextConsumer=function(e){return b(e)===s},Dy.isContextProvider=function(e){return b(e)===a},Dy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Dy.isForwardRef=function(e){return b(e)===c},Dy.isFragment=function(e){return b(e)===n},Dy.isLazy=function(e){return b(e)===h},Dy.isMemo=function(e){return b(e)===p},Dy.isPortal=function(e){return b(e)===r},Dy.isProfiler=function(e){return b(e)===i},Dy.isStrictMode=function(e){return b(e)===o},Dy.isSuspense=function(e){return b(e)===d},Dy.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},Dy.typeOf=b}()),Dy);var Py=Ey.exports,By={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ty={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},jy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qy={};function Ry(e){return Py.isMemo(e)?jy:qy[e.$$typeof]||By}qy[Py.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qy[Py.Memo]=jy;var My=Object.defineProperty,Fy=Object.getOwnPropertyNames,Ny=Object.getOwnPropertySymbols,Ly=Object.getOwnPropertyDescriptor,Iy=Object.getPrototypeOf,$y=Object.prototype,Qy=function e(t,r,n){if("string"!=typeof r){if($y){var o=Iy(r);o&&o!==$y&&e(t,o,n)}var i=Fy(r);Ny&&(i=i.concat(Ny(r)));for(var a=Ry(t),s=Ry(r),l=0;l<i.length;++l){var u=i[l];if(!(Ty[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=Ly(r,u);try{My(t,u,c)}catch(e){}}}}return t},Wy=Nu(Qy);function zy(){return(zy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Uy=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},Vy=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!by.typeOf(e)},Zy=Object.freeze([]),Yy=Object.freeze({});function Hy(e){return"function"==typeof e}function Gy(e){return"production"!==Mu.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Xy(e){return e&&"string"==typeof e.styledComponentId}var Ky=void 0!==Mu.env&&(Mu.env.REACT_APP_SC_ATTR||Mu.env.SC_ATTR)||"data-styled",Jy="undefined"!=typeof window&&"HTMLElement"in window,eb=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==Mu.env&&(void 0!==Mu.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==Mu.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==Mu.env.REACT_APP_SC_DISABLE_SPEEDY&&Mu.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==Mu.env.SC_DISABLE_SPEEDY&&""!==Mu.env.SC_DISABLE_SPEEDY?"false"!==Mu.env.SC_DISABLE_SPEEDY&&Mu.env.SC_DISABLE_SPEEDY:"production"!==Mu.env.NODE_ENV)),tb="production"!==Mu.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function rb(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],r=1,n=arguments.length;r<n;r+=1)t.push(r<0||arguments.length<=r?void 0:arguments[r]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t)})),e}function nb(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw"production"===Mu.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):"")):new Error(rb.apply(void 0,[tb[e]].concat(r)).trim())}var ob=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&nb(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),ib=new Map,ab=new Map,sb=1,lb=function(e){if(ib.has(e))return ib.get(e);for(;ab.has(sb);)sb++;var t=sb++;return"production"!==Mu.env.NODE_ENV&&((0|t)<0||t>1<<30)&&nb(16,""+t),ib.set(e,t),ab.set(t,e),t},ub=function(e){return ab.get(e)},cb=function(e,t){t>=sb&&(sb=t+1),ib.set(e,t),ab.set(t,e)},db="style["+Ky+'][data-styled-version="5.3.10"]',fb=new RegExp("^"+Ky+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),pb=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},hb=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(fb);if(s){var l=0|parseInt(s[1],10),u=s[2];0!==l&&(cb(u,l),pb(e,u,s[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(a)}}},mb=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(Ky))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Ky,"active"),n.setAttribute("data-styled-version","5.3.10");var a=__webpack_require__.nc;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},gb=function(){function e(e){var t=this.element=mb(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}nb(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),vb=function(){function e(e){var t=this.element=mb(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),yb=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),bb=Jy,Ab={isServer:!Jy,useCSSOMInjection:!eb},Ob=function(){function e(e,t,r){void 0===e&&(e=Yy),void 0===t&&(t={}),this.options=zy({},Ab,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Jy&&bb&&(bb=!1,function(e){for(var t=document.querySelectorAll(db),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(Ky)&&(hb(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return lb(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(zy({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new yb(o):n?new gb(o):new vb(o),new ob(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(lb(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(lb(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(lb(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=ub(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var l=Ky+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+l+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),wb=/(a)(d)/gi,Cb=function(e){return String.fromCharCode(e+(e>25?39:97))};function _b(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Cb(t%52)+r;return(Cb(t%52)+r).replace(wb,"$1-$2")}var xb=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},kb=function(e){return xb(5381,e)},Eb=kb("5.3.10"),Sb=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic="production"===Mu.env.NODE_ENV&&(void 0===r||r.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Hy(r)&&!Xy(r))return!1}return!0}(e),this.componentId=t,this.baseHash=xb(Eb,t),this.baseStyle=r,Ob.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=Qb(this.rules,e,t,r).join(""),a=_b(xb(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,u=xb(this.baseHash,r.hash),c="",d=0;d<l;d++){var f=this.rules[d];if("string"==typeof f)c+=f,"production"!==Mu.env.NODE_ENV&&(u=xb(u,f+d));else if(f){var p=Qb(f,e,t,r),h=Array.isArray(p)?p.join(""):p;u=xb(u,h+d),c+=h}}if(c){var m=_b(u>>>0);if(!t.hasNameForId(n,m)){var g=r(c,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),Db=/^\s*\/\/.*$/gm,Pb=[":","[",".","#"],Bb=i().createContext();Bb.Consumer;var Tb=i().createContext(),jb=(Tb.Consumer,new Ob),qb=function(){var e,t,r,n,o=Yy,i=o.options,a=void 0===i?Yy:i,s=o.plugins,l=void 0===s?Zy:s,u=new Ay(a),c=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,l,u,c,d){switch(r){case 1:if(0===c&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){c.push(e)})),f=function(r,o,i){return 0===o&&-1!==Pb.indexOf(i[t.length])||i.match(n)?r:"."+e};function p(o,i,a,s){void 0===s&&(s="&");var l=o.replace(Db,""),c=i&&a?a+" "+i+" { "+l+" }":l;return e=s,t=i,r=new RegExp("\\"+t+"\\b","g"),n=new RegExp("(\\"+t+"\\b){2,}"),u(a||!i?"":i,c)}return u.use([].concat(l,[function(e,n,o){2===e&&o.length&&o[0].lastIndexOf(t)>0&&(o[0]=o[0].replace(r,f))},d,function(e){if(-2===e){var t=c;return c=[],t}}])),p.hash=l.length?l.reduce((function(e,t){return t.name||nb(15),xb(e,t.name)}),5381).toString():"",p}(),Rb=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=qb);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return nb(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=qb),this.name+e.hash},e}(),Mb=/([A-Z])/,Fb=/([A-Z])/g,Nb=/^ms-/,Lb=function(e){return"-"+e.toLowerCase()};function Ib(e){return Mb.test(e)?e.replace(Fb,Lb).replace(Nb,"-ms-"):e}var $b=function(e){return null==e||!1===e||""===e};function Qb(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Qb(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}if($b(e))return"";if(Xy(e))return"."+e.styledComponentId;if(Hy(e)){if("function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t)return e;var l=e(t);return"production"!==Mu.env.NODE_ENV&&by.isElement(l)&&console.warn(Gy(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),Qb(l,t,r,n)}var u;return e instanceof Rb?r?(e.inject(r,n),e.getName(n)):e:Vy(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!$b(t[a])&&(Array.isArray(t[a])&&t[a].isCss||Hy(t[a])?i.push(Ib(a)+":",t[a],";"):Vy(t[a])?i.push.apply(i,e(t[a],a)):i.push(Ib(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in Oy||n.startsWith("--")?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString()}var Wb=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function zb(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Hy(e)||Vy(e)?Wb(Qb(Uy(Zy,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:Wb(Qb(Uy(e,r)))}var Ub=/invalid hook call/i,Vb=new Set,Zb=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Yb=/(^-|-$)/g;function Hb(e){return e.replace(Zb,"-").replace(Yb,"")}function Gb(e){return"string"==typeof e&&("production"===Mu.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Xb=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Kb=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Jb(e,t,r){var n=e[r];Xb(t)&&Xb(n)?eA(n,t):e[r]=t}function eA(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(Xb(a))for(var s in a)Kb(s)&&Jb(e,a[s],s)}return e}var tA=i().createContext();tA.Consumer;var rA={};function nA(e,t,r){var o=Xy(e),a=!Gb(e),s=t.attrs,l=void 0===s?Zy:s,u=t.componentId,c=void 0===u?function(e,t){var r="string"!=typeof e?"sc":Hb(e);rA[r]=(rA[r]||0)+1;var n=r+"-"+function(e){return _b(kb(e)>>>0)}("5.3.10"+r+rA[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):u,d=t.displayName,f=void 0===d?function(e){return Gb(e)?"styled."+e:"Styled("+Gy(e)+")"}(e):d,p=t.displayName&&t.componentId?Hb(t.displayName)+"-"+t.componentId:t.componentId||c,h=o&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,m=t.shouldForwardProp;o&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var g,v=new Sb(r,p,o?e.componentStyle:void 0),y=v.isStatic&&0===l.length,b=function(e,t){return function(e,t,r,o){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,u=e.shouldForwardProp,c=e.styledComponentId,d=e.target;"production"!==Mu.env.NODE_ENV&&(0,n.useDebugValue)(c);var f=function(e,t,r){void 0===e&&(e=Yy);var n=zy({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in Hy(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(function(e,t,r){return void 0===r&&(r=Yy),e.theme!==r.theme&&e.theme||t||r.theme}(t,(0,n.useContext)(tA),s)||Yy,t,i),p=f[0],h=f[1],m=function(e,t,r,o){var i=(0,n.useContext)(Bb)||jb,a=(0,n.useContext)(Tb)||qb,s=t?e.generateAndInjectStyles(Yy,i,a):e.generateAndInjectStyles(r,i,a);return"production"!==Mu.env.NODE_ENV&&(0,n.useDebugValue)(s),"production"!==Mu.env.NODE_ENV&&!t&&o&&o(s),s}(a,o,p,"production"!==Mu.env.NODE_ENV?e.warnTooManyClasses:void 0),g=r,v=h.$as||t.$as||h.as||t.as||d,y=Gb(v),b=h!==t?zy({},t,{},h):t,A={};for(var O in b)"$"!==O[0]&&"as"!==O&&("forwardedAs"===O?A.as=b[O]:(u?u(O,ky,v):!y||ky(O))&&(A[O]=b[O]));return t.style&&h.style!==t.style&&(A.style=zy({},t.style,{},h.style)),A.className=Array.prototype.concat(l,c,m!==c?m:null,t.className,h.className).filter(Boolean).join(" "),A.ref=g,(0,n.createElement)(v,A)}(g,e,t,y)};return b.displayName=f,(g=i().forwardRef(b)).attrs=h,g.componentStyle=v,g.displayName=f,g.shouldForwardProp=m,g.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):Zy,g.styledComponentId=p,g.target=o?e.target:e,g.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(Gb(e)?e:Hb(Gy(e)));return nA(e,zy({},o,{attrs:h,componentId:i}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?eA({},e.defaultProps,t):t}}),"production"!==Mu.env.NODE_ENV&&(function(e,t){if("production"!==Mu.env.NODE_ENV){var r="The component "+e+(t?' with the id of "'+t+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",o=console.error;try{var i=!0;console.error=function(e){if(Ub.test(e))i=!1,Vb.delete(r);else{for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];o.apply(void 0,[e].concat(n))}},(0,n.useRef)(),i&&!Vb.has(r)&&(console.warn(r),Vb.add(r))}catch(e){Ub.test(e.message)&&Vb.delete(r)}finally{console.error=o}}}(f,p),g.warnTooManyClasses=function(e,t){var r={},n=!1;return function(o){if(!n&&(r[o]=!0,Object.keys(r).length>=200)){var i=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+i+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),n=!0,r={}}}}(f,p)),Object.defineProperty(g,"toString",{value:function(){return"."+g.styledComponentId}}),a&&Wy(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var oA=function(e){return function e(t,r,n){if(void 0===n&&(n=Yy),!by.isValidElementType(r))return nb(1,String(r));var o=function(){return t(r,n,zb.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,zy({},n,{},o))},o.attrs=function(o){return e(t,r,zy({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(nA,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){oA[e]=oA(e)})),"production"!==Mu.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==Mu.env.NODE_ENV&&"test"!==Mu.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var iA=oA;const aA=zb`
75
+ `),qe.rippleVisible,$e,550,(({theme:e})=>e.transitions.easing.easeInOut),qe.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),qe.child,qe.childLeaving,Qe,550,(({theme:e})=>e.transitions.easing.easeInOut),qe.childPulsate,We,(({theme:e})=>e.transitions.easing.easeInOut)),Ve=n.forwardRef((function(e,o){const i=(0,ye.b)({props:e,name:"MuiTouchRipple"}),{center:a=!1,classes:s={},className:l}=i,c=(0,r.A)(i,Re),[d,f]=n.useState([]),p=n.useRef(0),h=n.useRef(null);n.useEffect((()=>{h.current&&(h.current(),h.current=null)}),[d]);const m=n.useRef(!1),g=(0,Te.A)(),v=n.useRef(null),y=n.useRef(null),b=n.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:i}=e;f((e=>[...e,(0,u.jsx)(Ue,{classes:{ripple:(0,fe.A)(s.ripple,qe.ripple),rippleVisible:(0,fe.A)(s.rippleVisible,qe.rippleVisible),ripplePulsate:(0,fe.A)(s.ripplePulsate,qe.ripplePulsate),child:(0,fe.A)(s.child,qe.child),childLeaving:(0,fe.A)(s.childLeaving,qe.childLeaving),childPulsate:(0,fe.A)(s.childPulsate,qe.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},p.current)])),p.current+=1,h.current=i}),[s]),A=n.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:o=a||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&m.current)return void(m.current=!1);"touchstart"===(null==e?void 0:e.type)&&(m.current=!0);const s=i?null:y.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(o)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===v.current&&(v.current=()=>{b({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},g.start(80,(()=>{v.current&&(v.current(),v.current=null)}))):b({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[a,b,g]),O=n.useCallback((()=>{A({},{pulsate:!0})}),[A]),w=n.useCallback(((e,t)=>{if(g.clear(),"touchend"===(null==e?void 0:e.type)&&v.current)return v.current(),v.current=null,void g.start(0,(()=>{w(e,t)}));v.current=null,f((e=>e.length>0?e.slice(1):e)),h.current=t}),[g]);return n.useImperativeHandle(o,(()=>({pulsate:O,start:A,stop:w})),[O,A,w]),(0,u.jsx)(ze,(0,t.A)({className:(0,fe.A)(qe.root,s.root,l),ref:y},c,{children:(0,u.jsx)(Pe,{component:null,exit:!0,children:d})}))})),Ze=Ve;var Ye=__webpack_require__(31609);function He(e){return(0,Ye.Ay)("MuiButtonBase",e)}const Ge=(0,je.A)("MuiButtonBase",["root","disabled","focusVisible"]),Xe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Ke=(0,ge.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Ge.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Je=n.forwardRef((function(e,o){const i=(0,ye.b)({props:e,name:"MuiButtonBase"}),{action:a,centerRipple:s=!1,children:l,className:c,component:d="button",disabled:f=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:m=!1,LinkComponent:g="a",onBlur:v,onClick:y,onContextMenu:b,onDragLeave:A,onFocus:O,onFocusVisible:w,onKeyDown:C,onKeyUp:_,onMouseDown:x,onMouseLeave:k,onMouseUp:E,onTouchEnd:S,onTouchMove:D,onTouchStart:P,tabIndex:B=0,TouchRippleProps:T,touchRippleRef:j,type:q}=i,R=(0,r.A)(i,Xe),M=n.useRef(null),F=n.useRef(null),N=(0,be.A)(F,j),{isFocusVisibleRef:L,onFocus:I,onBlur:$,ref:Q}=(0,Oe.A)(),[W,z]=n.useState(!1);f&&W&&z(!1),n.useImperativeHandle(a,(()=>({focusVisible:()=>{z(!0),M.current.focus()}})),[]);const[U,V]=n.useState(!1);n.useEffect((()=>{V(!0)}),[]);const Z=U&&!p&&!f;function Y(e,t,r=h){return(0,Ae.A)((n=>(t&&t(n),!r&&F.current&&F.current[e](n),!0)))}n.useEffect((()=>{W&&m&&!p&&U&&F.current.pulsate()}),[p,m,W,U]);const H=Y("start",x),G=Y("stop",b),X=Y("stop",A),K=Y("stop",E),J=Y("stop",(e=>{W&&e.preventDefault(),k&&k(e)})),ee=Y("start",P),te=Y("stop",S),re=Y("stop",D),ne=Y("stop",(e=>{$(e),!1===L.current&&z(!1),v&&v(e)}),!1),oe=(0,Ae.A)((e=>{M.current||(M.current=e.currentTarget),I(e),!0===L.current&&(z(!0),w&&w(e)),O&&O(e)})),ie=()=>{const e=M.current;return d&&"button"!==d&&!("A"===e.tagName&&e.href)},ae=n.useRef(!1),se=(0,Ae.A)((e=>{m&&!ae.current&&W&&F.current&&" "===e.key&&(ae.current=!0,F.current.stop(e,(()=>{F.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),y&&y(e))})),le=(0,Ae.A)((e=>{m&&" "===e.key&&F.current&&W&&!e.defaultPrevented&&(ae.current=!1,F.current.stop(e,(()=>{F.current.pulsate(e)}))),_&&_(e),y&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&y(e)}));let ue=d;"button"===ue&&(R.href||R.to)&&(ue=g);const ce={};"button"===ue?(ce.type=void 0===q?"button":q,ce.disabled=f):(R.href||R.to||(ce.role="button"),f&&(ce["aria-disabled"]=f));const de=(0,be.A)(o,Q,M),pe=(0,t.A)({},i,{centerRipple:s,component:d,disabled:f,disableRipple:p,disableTouchRipple:h,focusRipple:m,tabIndex:B,focusVisible:W}),me=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i={root:["root",t&&"disabled",r&&"focusVisible"]},a=(0,he.A)(i,He,o);return r&&n&&(a.root+=` ${n}`),a})(pe);return(0,u.jsxs)(Ke,(0,t.A)({as:ue,className:(0,fe.A)(me.root,c),ownerState:pe,onBlur:ne,onClick:y,onContextMenu:G,onFocus:oe,onKeyDown:se,onKeyUp:le,onMouseDown:H,onMouseLeave:J,onMouseUp:K,onDragLeave:X,onTouchEnd:te,onTouchMove:re,onTouchStart:ee,ref:de,tabIndex:f?-1:B,type:q},ce,R,{children:[l,Z?(0,u.jsx)(Ze,(0,t.A)({ref:N,center:s},T)):null]}))}));var et=__webpack_require__(28466);function tt(e){return(0,Ye.Ay)("MuiButton",e)}const rt=(0,je.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),nt=n.createContext({}),ot=n.createContext(void 0),it=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],at=e=>(0,t.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),st=(0,ge.Ay)(Je,{shouldForwardProp:e=>(0,ve.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,et.A)(r.color)}`],t[`size${(0,et.A)(r.size)}`],t[`${r.variant}Size${(0,et.A)(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:r})=>{var n,o;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,t.A)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,t.A)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,me.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===r.variant&&"inherit"!==r.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,me.X4)(e.palette[r.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===r.variant&&"inherit"!==r.color&&{border:`1px solid ${(e.vars||e).palette[r.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,me.X4)(e.palette[r.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===r.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===r.variant&&"inherit"!==r.color&&{backgroundColor:(e.vars||e).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[r.color].main}}),"&:active":(0,t.A)({},"contained"===r.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${rt.focusVisible}`]:(0,t.A)({},"contained"===r.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${rt.disabled}`]:(0,t.A)({color:(e.vars||e).palette.action.disabled},"outlined"===r.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===r.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===r.variant&&{padding:"6px 8px"},"text"===r.variant&&"inherit"!==r.color&&{color:(e.vars||e).palette[r.color].main},"outlined"===r.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===r.variant&&"inherit"!==r.color&&{color:(e.vars||e).palette[r.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[r.color].mainChannel} / 0.5)`:`1px solid ${(0,me.X4)(e.palette[r.color].main,.5)}`},"contained"===r.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(o=e.palette).getContrastText)?void 0:n.call(o,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===r.variant&&"inherit"!==r.color&&{color:(e.vars||e).palette[r.color].contrastText,backgroundColor:(e.vars||e).palette[r.color].main},"inherit"===r.color&&{color:"inherit",borderColor:"currentColor"},"small"===r.size&&"text"===r.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===r.size&&"text"===r.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===r.size&&"outlined"===r.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===r.size&&"outlined"===r.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===r.size&&"contained"===r.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===r.size&&"contained"===r.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},r.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${rt.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${rt.disabled}`]:{boxShadow:"none"}})),lt=(0,ge.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${(0,et.A)(r.size)}`]]}})((({ownerState:e})=>(0,t.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},at(e)))),ut=(0,ge.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${(0,et.A)(r.size)}`]]}})((({ownerState:e})=>(0,t.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},at(e)))),ct=n.forwardRef((function(e,o){const i=n.useContext(nt),a=n.useContext(ot),s=(0,pe.A)(i,e),l=(0,ye.b)({props:s,name:"MuiButton"}),{children:c,color:d="primary",component:f="button",className:p,disabled:h=!1,disableElevation:m=!1,disableFocusRipple:g=!1,endIcon:v,focusVisibleClassName:y,fullWidth:b=!1,size:A="medium",startIcon:O,type:w,variant:C="text"}=l,_=(0,r.A)(l,it),x=(0,t.A)({},l,{color:d,component:f,disabled:h,disableElevation:m,disableFocusRipple:g,fullWidth:b,size:A,type:w,variant:C}),k=(e=>{const{color:r,disableElevation:n,fullWidth:o,size:i,variant:a,classes:s}=e,l={root:["root",a,`${a}${(0,et.A)(r)}`,`size${(0,et.A)(i)}`,`${a}Size${(0,et.A)(i)}`,`color${(0,et.A)(r)}`,n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${(0,et.A)(i)}`],endIcon:["icon","endIcon",`iconSize${(0,et.A)(i)}`]},u=(0,he.A)(l,tt,s);return(0,t.A)({},s,u)})(x),E=O&&(0,u.jsx)(lt,{className:k.startIcon,ownerState:x,children:O}),S=v&&(0,u.jsx)(ut,{className:k.endIcon,ownerState:x,children:v}),D=a||"";return(0,u.jsxs)(st,(0,t.A)({ownerState:x,className:(0,fe.A)(i.className,k.root,p,D),component:f,disabled:h,focusRipple:!g,focusVisibleClassName:(0,fe.A)(k.focusVisible,y),ref:o,type:w},_,{classes:k,children:[E,c,S]}))})),dt=ct,ft=n.createContext(void 0);function pt(){return n.useContext(ft)}var ht=__webpack_require__(11317),mt=__webpack_require__(10733),gt=__webpack_require__(58749),vt=__webpack_require__(33571);const yt=["ownerState"],bt=["variants"],At=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ot(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const wt=(0,gt.A)(),Ct=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function _t({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function xt(e){return e?(t,r)=>r[e]:null}function kt(e,n){let{ownerState:o}=n,i=(0,r.A)(n,yt);const a="function"==typeof e?e((0,t.A)({ownerState:o},i)):e;if(Array.isArray(a))return a.flatMap((e=>kt(e,(0,t.A)({ownerState:o},i))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let n=(0,r.A)(a,bt);return e.forEach((e=>{let r=!0;"function"==typeof e.props?r=e.props((0,t.A)({ownerState:o},i,o)):Object.keys(e.props).forEach((t=>{(null==o?void 0:o[t])!==e.props[t]&&i[t]!==e.props[t]&&(r=!1)})),r&&(Array.isArray(n)||(n=[n]),n.push("function"==typeof e.style?e.style((0,t.A)({ownerState:o},i,o)):e.style))})),n}return a}const Et=function(e={}){const{themeId:n,defaultTheme:o=wt,rootShouldForwardProp:i=Ot,slotShouldForwardProp:a=Ot}=e,s=e=>(0,vt.A)((0,t.A)({},e,{theme:_t((0,t.A)({},e,{defaultTheme:o,themeId:n}))}));return s.__mui_systemSx=!0,(e,l={})=>{(0,mt.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:u,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=xt(Ct(c))}=l,h=(0,r.A)(l,At),m=void 0!==d?d:c&&"Root"!==c&&"root"!==c||!1,g=f||!1;let v=Ot;"Root"===c||"root"===c?v=i:c?v=a:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(v=void 0);const y=(0,mt.default)(e,(0,t.A)({shouldForwardProp:v,label:void 0},h)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,ht.Q)(e)?r=>kt(e,(0,t.A)({},r,{theme:_t({theme:r.theme,defaultTheme:o,themeId:n})})):e,A=(r,...i)=>{let a=b(r);const l=i?i.map(b):[];u&&p&&l.push((e=>{const r=_t((0,t.A)({},e,{defaultTheme:o,themeId:n}));if(!r.components||!r.components[u]||!r.components[u].styleOverrides)return null;const i=r.components[u].styleOverrides,a={};return Object.entries(i).forEach((([n,o])=>{a[n]=kt(o,(0,t.A)({},e,{theme:r}))})),p(e,a)})),u&&!m&&l.push((e=>{var r;const i=_t((0,t.A)({},e,{defaultTheme:o,themeId:n}));return kt({variants:null==i||null==(r=i.components)||null==(r=r[u])?void 0:r.variants},(0,t.A)({},e,{theme:i}))})),g||l.push(s);const c=l.length-i.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const d=y(a,...l);return e.muiName&&(d.muiName=e.muiName),d};return y.withConfig&&(A.withConfig=y.withConfig),A}}(),St=Et,Dt=(0,gt.A)(),Pt=function(e=Dt){return f(e)};var Bt=__webpack_require__(39599),Tt=__webpack_require__(89452),jt=__webpack_require__(68248);const qt=["component","direction","spacing","divider","children","className","useFlexGap"],Rt=(0,gt.A)(),Mt=St("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Ft(e){return function({props:e,name:t,defaultTheme:r,themeId:n}){let o=Pt(r);n&&(o=o[n]||o);const i=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,pe.A)(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}({props:e,name:"MuiStack",defaultTheme:Rt})}function Nt(e,t){const r=n.Children.toArray(e).filter(Boolean);return r.reduce(((e,o,i)=>(e.push(o),i<r.length-1&&e.push(n.cloneElement(t,{key:`separator-${i}`})),e)),[])}const Lt=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[e]),It=({ownerState:e,theme:r})=>{let n=(0,t.A)({display:"flex",flexDirection:"column"},(0,Tt.NI)({theme:r},(0,Tt.kW)({values:e.direction,breakpoints:r.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const t=(0,jt.LX)(r),o=Object.keys(r.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),i=(0,Tt.kW)({values:e.direction,base:o}),a=(0,Tt.kW)({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,r)=>{if(!i[e]){const n=t>0?i[r[t-1]]:"column";i[e]=n}}));const s=(r,n)=>e.useFlexGap?{gap:(0,jt._W)(t,r)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Lt(n?i[n]:e.direction)}`]:(0,jt._W)(t,r)}};n=(0,ht.A)(n,(0,Tt.NI)({theme:r},a,s))}return n=(0,Tt.iZ)(r.breakpoints,n),n},$t=function(e={}){const{createStyledComponent:o=Mt,useThemeProps:i=Ft,componentName:a="MuiStack"}=e,s=o(It),l=n.forwardRef((function(e,n){const o=i(e),l=(0,Bt.A)(o),{component:c="div",direction:d="column",spacing:f=0,divider:p,children:h,className:m,useFlexGap:g=!1}=l,v=(0,r.A)(l,qt),y={direction:d,spacing:f,useFlexGap:g},b=(0,he.A)({root:["root"]},(e=>(0,Ye.Ay)(a,e)),{});return(0,u.jsx)(s,(0,t.A)({as:c,ownerState:y,ref:n,className:(0,fe.A)(b.root,m)},v,{children:p?Nt(h,p):h}))}));return l}({createStyledComponent:(0,ge.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,ye.b)({props:e,name:"MuiStack"})}),Qt=$t;function Wt(e){return(0,Ye.Ay)("MuiTypography",e)}(0,je.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const zt=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ut=(0,ge.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${(0,et.A)(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:r})=>(0,t.A)({margin:0},"inherit"===r.variant&&{font:"inherit"},"inherit"!==r.variant&&e.typography[r.variant],"inherit"!==r.align&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16}))),Vt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Zt={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Yt=n.forwardRef((function(e,n){const o=(0,ye.b)({props:e,name:"MuiTypography"}),i=(e=>Zt[e]||e)(o.color),a=(0,Bt.A)((0,t.A)({},o,{color:i})),{align:s="inherit",className:l,component:c,gutterBottom:d=!1,noWrap:f=!1,paragraph:p=!1,variant:h="body1",variantMapping:m=Vt}=a,g=(0,r.A)(a,zt),v=(0,t.A)({},a,{align:s,color:i,className:l,component:c,gutterBottom:d,noWrap:f,paragraph:p,variant:h,variantMapping:m}),y=c||(p?"p":m[h]||Vt[h])||"span",b=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,"inherit"!==e.align&&`align${(0,et.A)(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return(0,he.A)(s,Wt,a)})(v);return(0,u.jsx)(Ut,(0,t.A)({as:y,ref:n,ownerState:v,className:(0,fe.A)(b.root,l)},g))})),Ht=Yt;function Gt(e){return(0,Ye.Ay)("MuiFormControlLabel",e)}const Xt=(0,je.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);function Kt({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const Jt=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],er=(0,ge.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Xt.label}`]:t.label},t.root,t[`labelPlacement${(0,et.A)(r.labelPlacement)}`]]}})((({theme:e,ownerState:r})=>(0,t.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Xt.disabled}`]:{cursor:"default"}},"start"===r.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===r.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===r.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Xt.label}`]:{[`&.${Xt.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),tr=(0,ge.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Xt.error}`]:{color:(e.vars||e).palette.error.main}}))),rr=n.forwardRef((function(e,o){var i,a;const s=(0,ye.b)({props:e,name:"MuiFormControlLabel"}),{className:l,componentsProps:c={},control:d,disabled:f,disableTypography:p,label:h,labelPlacement:m="end",required:g,slotProps:v={}}=s,y=(0,r.A)(s,Jt),b=pt(),A=null!=(i=null!=f?f:d.props.disabled)?i:null==b?void 0:b.disabled,O=null!=g?g:d.props.required,w={disabled:A,required:O};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===d.props[e]&&void 0!==s[e]&&(w[e]=s[e])}));const C=Kt({props:s,muiFormControl:b,states:["error"]}),_=(0,t.A)({},s,{disabled:A,labelPlacement:m,required:O,error:C.error}),x=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:i}=e,a={root:["root",r&&"disabled",`labelPlacement${(0,et.A)(n)}`,o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,he.A)(a,Gt,t)})(_),k=null!=(a=v.typography)?a:c.typography;let E=h;return null==E||E.type===Ht||p||(E=(0,u.jsx)(Ht,(0,t.A)({component:"span"},k,{className:(0,fe.A)(x.label,null==k?void 0:k.className),children:E}))),(0,u.jsxs)(er,(0,t.A)({className:(0,fe.A)(x.root,l),ownerState:_,ref:o},y,{children:[n.cloneElement(d,w),O?(0,u.jsxs)(Qt,{display:"block",children:[E,(0,u.jsxs)(tr,{ownerState:_,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}):E]}))})),nr=rr;var or=__webpack_require__(14792),ir=__webpack_require__.n(or),ar=__webpack_require__(78729),sr=__webpack_require__(62600);const lr=function(){return i().createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i().createElement("path",{d:"M8.1 11.7H9.9V13.5H8.1V11.7ZM8.1 4.5H9.9V9.9H8.1V4.5ZM8.991 0C4.023 0 0 4.032 0 9C0 13.968 4.023 18 8.991 18C13.968 18 18 13.968 18 9C18 4.032 13.968 0 8.991 0ZM9 16.2C5.022 16.2 1.8 12.978 1.8 9C1.8 5.022 5.022 1.8 9 1.8C12.978 1.8 16.2 5.022 16.2 9C16.2 12.978 12.978 16.2 9 16.2Z",fill:"#B01F14"}))};var ur=__webpack_require__(13518),cr={};cr.styleTagTransform=L(),cr.setAttributes=R(),cr.insert=j().bind(null,"head"),cr.domAPI=B(),cr.insertStyleElement=F(),D()(ur.A,cr);const dr=ur.A&&ur.A.locals?ur.A.locals:void 0;function fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const pr=function(e){var t=e.error,r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,n.useState)(!1),2),o=r[0],a=r[1];return i().createElement("div",{className:dr.errorContainer,"data-testid":"form-general-error-container"},i().createElement("div",{className:dr.iconWrapper},i().createElement(lr,null)),i().createElement("p",{className:"".concat(dr.errorMessage," ").concat(o?"":dr.closed),"data-testid":"form-general-error-message"},t),i().createElement("div",{className:dr.errorMessageToggleButtonContainer},i().createElement("button",{type:"button",onClick:function(){a((function(e){return!e}))}},o?i().createElement(ar.V,{"data-testid":"form-list__sort-down-button",color:"#B01F14"}):i().createElement(sr.U,{"data-testid":"form-list__sort-up-button",color:"#B01F14"}))))};var hr=__webpack_require__(89167),mr={};mr.styleTagTransform=L(),mr.setAttributes=R(),mr.insert=j().bind(null,"head"),mr.domAPI=B(),mr.insertStyleElement=F(),D()(hr.A,mr);const gr=hr.A&&hr.A.locals?hr.A.locals:void 0;var vr=__webpack_require__(41159);function yr(e){return(0,Ye.Ay)("PrivateSwitchBase",e)}(0,je.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const br=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Ar=(0,ge.Ay)(Je)((({ownerState:e})=>(0,t.A)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Or=(0,ge.Ay)("input",{shouldForwardProp:ve.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),wr=n.forwardRef((function(e,n){const{autoFocus:o,checked:i,checkedIcon:a,className:s,defaultChecked:l,disabled:c,disableFocusRipple:d=!1,edge:f=!1,icon:p,id:h,inputProps:m,inputRef:g,name:v,onBlur:y,onChange:b,onFocus:A,readOnly:O,required:w=!1,tabIndex:C,type:_,value:x}=e,k=(0,r.A)(e,br),[E,S]=(0,vr.A)({controlled:i,default:Boolean(l),name:"SwitchBase",state:"checked"}),D=pt();let P=c;D&&void 0===P&&(P=D.disabled);const B="checkbox"===_||"radio"===_,T=(0,t.A)({},e,{checked:E,disabled:P,disableFocusRipple:d,edge:f}),j=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,i={root:["root",r&&"checked",n&&"disabled",o&&`edge${(0,et.A)(o)}`],input:["input"]};return(0,he.A)(i,yr,t)})(T);return(0,u.jsxs)(Ar,(0,t.A)({component:"span",className:(0,fe.A)(j.root,s),centerRipple:!0,focusRipple:!d,disabled:P,tabIndex:null,role:void 0,onFocus:e=>{A&&A(e),D&&D.onFocus&&D.onFocus(e)},onBlur:e=>{y&&y(e),D&&D.onBlur&&D.onBlur(e)},ownerState:T,ref:n},k,{children:[(0,u.jsx)(Or,(0,t.A)({autoFocus:o,checked:i,defaultChecked:l,className:j.input,disabled:P,id:B?h:void 0,name:v,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;S(t),b&&b(e,t)},readOnly:O,ref:g,required:w,ownerState:T,tabIndex:C,type:_},"checkbox"===_&&void 0===x?{}:{value:x},m)),E?a:p]}))})),Cr=wr;function _r(e){return(0,Ye.Ay)("MuiSwitch",e)}const xr=(0,je.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),kr=["className","color","edge","size","sx"],Er=(0,ge.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${(0,et.A)(r.edge)}`],t[`size${(0,et.A)(r.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${xr.thumb}`]:{width:16,height:16},[`& .${xr.switchBase}`]:{padding:4,[`&.${xr.checked}`]:{transform:"translateX(16px)"}}}}]}),Sr=(0,ge.Ay)(Cr,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${xr.input}`]:t.input},"default"!==r.color&&t[`color${(0,et.A)(r.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${xr.checked}`]:{transform:"translateX(20px)"},[`&.${xr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${xr.checked} + .${xr.track}`]:{opacity:.5},[`&.${xr.disabled} + .${xr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${xr.input}`]:{left:"-100%",width:"300%"}})),(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,me.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([t])=>({props:{color:t},style:{[`&.${xr.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,me.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?(0,me.a)(e.palette[t].main,.62):(0,me.e$)(e.palette[t].main,.55)}`}},[`&.${xr.checked} + .${xr.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}})))]}))),Dr=(0,ge.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),Pr=(0,ge.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Br=n.forwardRef((function(e,n){const o=(0,ye.b)({props:e,name:"MuiSwitch"}),{className:i,color:a="primary",edge:s=!1,size:l="medium",sx:c}=o,d=(0,r.A)(o,kr),f=(0,t.A)({},o,{color:a,edge:s,size:l}),p=(e=>{const{classes:r,edge:n,size:o,color:i,checked:a,disabled:s}=e,l={root:["root",n&&`edge${(0,et.A)(n)}`,`size${(0,et.A)(o)}`],switchBase:["switchBase",`color${(0,et.A)(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,he.A)(l,_r,r);return(0,t.A)({},r,u)})(f),h=(0,u.jsx)(Pr,{className:p.thumb,ownerState:f});return(0,u.jsxs)(Er,{className:(0,fe.A)(p.root,i),sx:c,ownerState:f,children:[(0,u.jsx)(Sr,(0,t.A)({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:f},d,{classes:(0,t.A)({},p,{root:p.switchBase})})),(0,u.jsx)(Dr,{className:p.track,ownerState:f})]})})),Tr=Br;var jr=(0,ge.Ay)(Tr)((function(){return{"& .MuiSwitch-switchBase.Mui-checked":{color:"white"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#4A96D2",opacity:1,"&:hover":{backgroundColor:"#255F8E"}}}}));function qr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qr(e,t,r[t])}))}return e}var Mr={add:i().createElement(ue.A,{"data-testid":"formfooter__add-icon"}),save:i().createElement(ce.A,{"data-testid":"formfooter__save-icon"}),update:i().createElement(de.K,{size:14,"data-testid":"formfooter__update-icon"})};const Fr=function(e){var t,r,o,a,s,l,u,c,d,f,p,h=e.controlProps,m=e.error,g=e.iconType,v=e.loading,y=e.onSubmit,b=(0,n.useContext)(E.og),A=b.formControls,O=b.isExpertMode,w=b.hasExpertMode,C=b.toggleExpertMode,_=g&&Mr[g.toLowerCase()],x=g&&ir()(g)||"Add",k=null!==(t=null==h||null===(s=h.footerProps)||void 0===s?void 0:s.style)&&void 0!==t?t:{},S=null!==(r=null==h||null===(u=h.footerProps)||void 0===u||null===(l=u.container)||void 0===l?void 0:l.style)&&void 0!==r?r:{},D=null!==(o=null==h||null===(d=h.footerProps)||void 0===d||null===(c=d.submitButtonContainer)||void 0===c?void 0:c.style)&&void 0!==o?o:{},P=null!==(a=null==h||null===(p=h.footerProps)||void 0===p||null===(f=p.submitButton)||void 0===f?void 0:f.sx)&&void 0!==a?a:{};return i().createElement("div",{"data-testid":"form-footer-container",className:gr["form-footer-container"],style:k},m&&i().createElement("div",{className:gr.notificationContainer},i().createElement(pr,{error:m})),i().createElement("div",{className:gr.controlsContainer,style:S},w?i().createElement(nr,{"data-testid":"formfooter__expert-mode",control:i().createElement(jr,{checked:O,onChange:C}),label:"Expert Mode",sx:{color:"rgba(0,0,0,.54)",marginBottom:0,input:{marginTop:0},".MuiTypography-root":{fontSize:12}}}):i().createElement("div",null),i().createElement("div",{className:gr["submit-container"],style:D},i().createElement("span",{className:gr["required-message"]},"* Please fill in all required fields"),i().createElement(dt,{"data-testid":"formfooter__submit",id:"submit-button",variant:"contained",type:"submit",form:"form-horizontal xhtmlInstantForm",onClick:function(){return y(A)},disabled:v,sx:Rr({backgroundColor:"#4A96D2",boxShadow:"none","&:hover":{backgroundColor:"#0B5BA6",boxShadow:"none"}},P),endIcon:v?i().createElement("svg",{className:"".concat(gr["run-button__spinner"]," run-button__spinner"),"data-testid":"formfooter__loading-icon",xmlns:"http://www.w3.org/2000/svg",width:"21.076",height:"20.31",viewBox:"0 0 21.076 20.31"},i().createElement("g",{id:"Gruppe_272","data-name":"Gruppe 272",transform:"translate(-269.58 -82.717)"},i().createElement("path",{id:"Pfad_338","data-name":"Pfad 338",d:"M278.934,84.754l3.514-2.03v4.06l-3.514,2.03Z",transform:"translate(-5.841 -0.004)",fill:"#fff"}),i().createElement("path",{id:"Pfad_339","data-name":"Pfad 339",d:"M288.29,86.784v-4.06l3.514,2.03v4.06Z",transform:"translate(-11.683 -0.004)",fill:"#f0f0f0"}),i().createElement("path",{id:"Pfad_340","data-name":"Pfad 340",d:"M282.45,119.233v-4.06l-3.514,2.03v4.06Z",transform:"translate(-5.842 -20.266)",fill:"#f0f0f0"}),i().createElement("path",{id:"Pfad_341","data-name":"Pfad 341",d:"M285.963,128.014l-3.515-2.03-3.514,2.03,3.514,2.03Z",transform:"translate(-5.841 -27.017)",fill:"#fff"}),i().createElement("path",{id:"Pfad_342","data-name":"Pfad 342",d:"M297.625,124.639l3.514,2.03v-4.06l-3.514-2.03Z",transform:"translate(-17.513 -23.642)",fill:"#fff"}),i().createElement("path",{id:"Pfad_343","data-name":"Pfad 343",d:"M306.981,122.609v4.06l3.514-2.03v-4.06Z",transform:"translate(-23.355 -23.642)",fill:"#f0f0f0"}),i().createElement("path",{id:"Pfad_344","data-name":"Pfad 344",d:"M273.094,106.394v4.06l-3.514-2.03v-4.06Z",transform:"translate(0 -13.516)",fill:"#f0f0f0"}),i().createElement("path",{id:"Pfad_345","data-name":"Pfad 345",d:"M276.608,100.988l-3.514,2.03-3.514-2.03,3.514-2.03Z",transform:"translate(0 -10.141)",fill:"#fff"}),i().createElement("path",{id:"Pfad_346","data-name":"Pfad 346",d:"M310.5,92.185l-3.514,2.03v-4.06l3.514-2.03Z",transform:"translate(-23.355 -3.377)",fill:"#f0f0f0"}),i().createElement("path",{id:"Pfad_347","data-name":"Pfad 347",d:"M304.657,84.747l-3.514,2.03-3.514-2.03,3.514-2.03Z",transform:"translate(-17.515)",fill:"#fff"}),i().createElement("path",{id:"Pfad_348","data-name":"Pfad 348",d:"M319.853,100.968l-3.514-2.03V103l3.514,2.03Z",transform:"translate(-29.198 -10.129)",fill:"#f0f0f0"}),i().createElement("path",{id:"Pfad_349","data-name":"Pfad 349",d:"M314.011,111.778l-3.514-2.03-3.514,2.03,3.514,2.03Z",transform:"translate(-23.356 -16.879)",fill:"#fff"}))):_||Mr.add},x))))};var Nr=__webpack_require__(58156),Lr=__webpack_require__.n(Nr),Ir=__webpack_require__(6924),$r=__webpack_require__.n(Ir),Qr=__webpack_require__(96175),Wr={};Wr.styleTagTransform=L(),Wr.setAttributes=R(),Wr.insert=j().bind(null,"head"),Wr.domAPI=B(),Wr.insertStyleElement=F(),D()(Qr.A,Wr);const zr=Qr.A&&Qr.A.locals?Qr.A.locals:void 0,Ur=function(e){return"string"==typeof e},Vr=function(e,r,n){return void 0===e||Ur(e)?r:(0,t.A)({},r,{ownerState:(0,t.A)({},r.ownerState,n)})};var Zr=__webpack_require__(22765);function Yr(){const e=Pt(Zr.A);return e[O.A]||e}var Hr=__webpack_require__(69514),Gr=__webpack_require__.n(Hr);var Xr="unmounted",Kr="exited",Jr="entering",en="entered",tn="exiting",rn=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Kr,n.appearStatus=Jr):o=en:o=t.unmountOnExit||t.mountOnEnter?Xr:Kr,n.state={status:o},n.nextCallback=null,n}Ce(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Xr?{status:Kr}: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 r=this.state.status;this.props.in?r!==Jr&&r!==en&&(t=Jr):r!==Jr&&r!==en||(t=tn)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Jr){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:Gr().findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Kr&&this.setState({status:Xr})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[Gr().findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;e||r?(this.props.onEnter(i,a),this.safeSetState({status:Jr},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:en},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:en},(function(){t.props.onEntered(i)}))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:Gr().findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:tn},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Kr},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Kr},(function(){e.props.onExited(n)}))},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,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:Gr().findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Xr)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 i().createElement(_e.Provider,{value:null},"function"==typeof n?n(e,o):i().cloneElement(i().Children.only(n),o))},t}(i().Component);function nn(){}rn.contextType=_e,rn.propTypes={},rn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:nn,onEntering:nn,onEntered:nn,onExit:nn,onExiting:nn,onExited:nn},rn.UNMOUNTED=Xr,rn.EXITED=Kr,rn.ENTERING=Jr,rn.ENTERED=en,rn.EXITING=tn;const on=rn,an=e=>e.scrollTop;function sn(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const ln=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function un(e){return`scale(${e}, ${e**2})`}const cn={entering:{opacity:1,transform:un(1)},entered:{opacity:1,transform:"none"}},dn="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fn=n.forwardRef((function(e,o){const{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:d,onEntered:f,onEntering:p,onExit:h,onExited:m,onExiting:g,style:v,timeout:y="auto",TransitionComponent:b=on}=e,A=(0,r.A)(e,ln),O=(0,Te.A)(),w=n.useRef(),C=Yr(),_=n.useRef(null),x=(0,be.A)(_,s.ref,o),k=e=>t=>{if(e){const r=_.current;void 0===t?e(r):e(r,t)}},E=k(p),S=k(((e,t)=>{an(e);const{duration:r,delay:n,easing:o}=sn({style:v,timeout:y,easing:l},{mode:"enter"});let i;"auto"===y?(i=C.transitions.getAutoHeightDuration(e.clientHeight),w.current=i):i=r,e.style.transition=[C.transitions.create("opacity",{duration:i,delay:n}),C.transitions.create("transform",{duration:dn?i:.666*i,delay:n,easing:o})].join(","),d&&d(e,t)})),D=k(f),P=k(g),B=k((e=>{const{duration:t,delay:r,easing:n}=sn({style:v,timeout:y,easing:l},{mode:"exit"});let o;"auto"===y?(o=C.transitions.getAutoHeightDuration(e.clientHeight),w.current=o):o=t,e.style.transition=[C.transitions.create("opacity",{duration:o,delay:r}),C.transitions.create("transform",{duration:dn?o:.666*o,delay:dn?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=un(.75),h&&h(e)})),T=k(m);return(0,u.jsx)(b,(0,t.A)({appear:a,in:c,nodeRef:_,onEnter:S,onEntered:D,onEntering:E,onExit:B,onExited:T,onExiting:P,addEndListener:e=>{"auto"===y&&O.start(w.current||0,e),i&&i(_.current,e)},timeout:"auto"===y?null:y},A,{children:(e,r)=>n.cloneElement(s,(0,t.A)({style:(0,t.A)({opacity:0,transform:un(.75),visibility:"exited"!==e||c?void 0:"hidden"},cn[e],v,s.props.style),ref:x},r))}))}));fn.muiSupportAuto=!0;const pn=fn;var hn=__webpack_require__(72923),mn=__webpack_require__(31523),gn=__webpack_require__(21529),vn=__webpack_require__(32325);function yn(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bn(e){return e instanceof yn(e).Element||e instanceof Element}function An(e){return e instanceof yn(e).HTMLElement||e instanceof HTMLElement}function On(e){return"undefined"!=typeof ShadowRoot&&(e instanceof yn(e).ShadowRoot||e instanceof ShadowRoot)}var wn=Math.max,Cn=Math.min,_n=Math.round;function xn(){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 kn(){return!/^((?!chrome|android).)*safari/i.test(xn())}function En(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&An(e)&&(o=e.offsetWidth>0&&_n(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&_n(n.height)/e.offsetHeight||1);var a=(bn(e)?yn(e):window).visualViewport,s=!kn()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/o,u=(n.top+(s&&a?a.offsetTop:0))/i,c=n.width/o,d=n.height/i;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function Sn(e){var t=yn(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Dn(e){return e?(e.nodeName||"").toLowerCase():null}function Pn(e){return((bn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bn(e){return En(Pn(e)).left+Sn(e).scrollLeft}function Tn(e){return yn(e).getComputedStyle(e)}function jn(e){var t=Tn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function qn(e,t,r){void 0===r&&(r=!1);var n=An(t),o=An(t)&&function(e){var t=e.getBoundingClientRect(),r=_n(t.width)/e.offsetWidth||1,n=_n(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),i=Pn(t),a=En(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(("body"!==Dn(t)||jn(i))&&(s=function(e){return e!==yn(e)&&An(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Sn(e);var t}(t)),An(t)?((l=En(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Bn(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Rn(e){var t=En(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Mn(e){return"html"===Dn(e)?e:e.assignedSlot||e.parentNode||(On(e)?e.host:null)||Pn(e)}function Fn(e){return["html","body","#document"].indexOf(Dn(e))>=0?e.ownerDocument.body:An(e)&&jn(e)?e:Fn(Mn(e))}function Nn(e,t){var r;void 0===t&&(t=[]);var n=Fn(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=yn(n),a=o?[i].concat(i.visualViewport||[],jn(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Nn(Mn(a)))}function Ln(e){return["table","td","th"].indexOf(Dn(e))>=0}function In(e){return An(e)&&"fixed"!==Tn(e).position?e.offsetParent:null}function $n(e){for(var t=yn(e),r=In(e);r&&Ln(r)&&"static"===Tn(r).position;)r=In(r);return r&&("html"===Dn(r)||"body"===Dn(r)&&"static"===Tn(r).position)?t:r||function(e){var t=/firefox/i.test(xn());if(/Trident/i.test(xn())&&An(e)&&"fixed"===Tn(e).position)return null;var r=Mn(e);for(On(r)&&(r=r.host);An(r)&&["html","body"].indexOf(Dn(r))<0;){var n=Tn(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var Qn="top",Wn="bottom",zn="right",Un="left",Vn="auto",Zn=[Qn,Wn,zn,Un],Yn="start",Hn="end",Gn="viewport",Xn="popper",Kn=Zn.reduce((function(e,t){return e.concat([t+"-"+Yn,t+"-"+Hn])}),[]),Jn=[].concat(Zn,[Vn]).reduce((function(e,t){return e.concat([t,t+"-"+Yn,t+"-"+Hn])}),[]),eo=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function to(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}var ro={placement:"bottom",modifiers:[],strategy:"absolute"};function no(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function oo(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?ro:o;return function(e,t,r){void 0===r&&(r=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ro,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:bn(e)?Nn(e):e.contextElement?Nn(e.contextElement):[],popper:Nn(t)};var a=function(e){var t=to(e);return eo.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,s.options.modifiers)));return s.orderedModifiers=a.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:c,options:n});l.push(i||function(){})}})),c.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,r=e.popper;if(no(t,r)){s.rects={reference:qn(t,$n(r),"fixed"===s.options.strategy),popper:Rn(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:c})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),u=!0}};if(!no(e,t))return c;function d(){l.forEach((function(e){return e()})),l=[]}return c.setOptions(r).then((function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)})),c}}var io={passive:!0};const ao={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,l=yn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",r.update,io)})),s&&l.addEventListener("resize",r.update,io),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",r.update,io)})),s&&l.removeEventListener("resize",r.update,io)}},data:{}};function so(e){return e.split("-")[0]}function lo(e){return e.split("-")[1]}function uo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function co(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?so(o):null,a=o?lo(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case Qn:t={x:s,y:r.y-n.height};break;case Wn:t={x:s,y:r.y+r.height};break;case zn:t={x:r.x+r.width,y:l};break;case Un:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var u=i?uo(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case Yn:t[u]=t[u]-(r[c]/2-n[c]/2);break;case Hn:t[u]=t[u]+(r[c]/2-n[c]/2)}}return t}var fo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function po(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,m=void 0===h?0:h,g="function"==typeof c?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=Un,A=Qn,O=window;if(u){var w=$n(r),C="clientHeight",_="clientWidth";w===yn(r)&&"static"!==Tn(w=Pn(r)).position&&"absolute"===s&&(C="scrollHeight",_="scrollWidth"),(o===Qn||(o===Un||o===zn)&&i===Hn)&&(A=Wn,m-=(d&&w===O&&O.visualViewport?O.visualViewport.height:w[C])-n.height,m*=l?1:-1),o!==Un&&(o!==Qn&&o!==Wn||i!==Hn)||(b=zn,p-=(d&&w===O&&O.visualViewport?O.visualViewport.width:w[_])-n.width,p*=l?1:-1)}var x,k=Object.assign({position:s},u&&fo),E=!0===c?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:_n(r*o)/o||0,y:_n(n*o)/o||0}}({x:p,y:m},yn(r)):{x:p,y:m};return p=E.x,m=E.y,l?Object.assign({},k,((x={})[A]=y?"0":"",x[b]=v?"0":"",x.transform=(O.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",x)):Object.assign({},k,((t={})[A]=y?m+"px":"",t[b]=v?p+"px":"",t.transform="",t))}const ho={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,l=void 0===s||s,u={placement:so(t.placement),variation:lo(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,po(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,po(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},mo={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];An(o)&&Dn(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});An(n)&&Dn(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},go={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=Jn.reduce((function(e,r){return e[r]=function(e,t,r){var n=so(e),o=[Un,Qn].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Un,zn].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}};var vo={left:"right",right:"left",bottom:"top",top:"bottom"};function yo(e){return e.replace(/left|right|bottom|top/g,(function(e){return vo[e]}))}var bo={start:"end",end:"start"};function Ao(e){return e.replace(/start|end/g,(function(e){return bo[e]}))}function Oo(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&On(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function wo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Co(e,t,r){return t===Gn?wo(function(e,t){var r=yn(e),n=Pn(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=kn();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Bn(e),y:l}}(e,r)):bn(t)?function(e,t){var r=En(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):wo(function(e){var t,r=Pn(e),n=Sn(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=wn(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=wn(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Bn(e),l=-n.scrollTop;return"rtl"===Tn(o||r).direction&&(s+=wn(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Pn(e)))}function _o(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function xo(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function ko(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,l=void 0===s?"clippingParents":s,u=r.rootBoundary,c=void 0===u?Gn:u,d=r.elementContext,f=void 0===d?Xn:d,p=r.altBoundary,h=void 0!==p&&p,m=r.padding,g=void 0===m?0:m,v=_o("number"!=typeof g?g:xo(g,Zn)),y=f===Xn?"reference":Xn,b=e.rects.popper,A=e.elements[h?y:f],O=function(e,t,r,n){var o="clippingParents"===t?function(e){var t=Nn(Mn(e)),r=["absolute","fixed"].indexOf(Tn(e).position)>=0&&An(e)?$n(e):e;return bn(r)?t.filter((function(e){return bn(e)&&Oo(e,r)&&"body"!==Dn(e)})):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce((function(t,r){var o=Co(e,r,n);return t.top=wn(o.top,t.top),t.right=Cn(o.right,t.right),t.bottom=Cn(o.bottom,t.bottom),t.left=wn(o.left,t.left),t}),Co(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(bn(A)?A:A.contextElement||Pn(e.elements.popper),l,c,a),w=En(e.elements.reference),C=co({reference:w,element:b,strategy:"absolute",placement:o}),_=wo(Object.assign({},b,C)),x=f===Xn?_:w,k={top:O.top-x.top+v.top,bottom:x.bottom-O.bottom+v.bottom,left:O.left-x.left+v.left,right:x.right-O.right+v.right},E=e.modifiersData.offset;if(f===Xn&&E){var S=E[o];Object.keys(k).forEach((function(e){var t=[zn,Wn].indexOf(e)>=0?1:-1,r=[Qn,Wn].indexOf(e)>=0?"y":"x";k[e]+=S[r]*t}))}return k}const Eo={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,h=void 0===p||p,m=r.allowedAutoPlacements,g=t.options.placement,v=so(g),y=l||(v!==g&&h?function(e){if(so(e)===Vn)return[];var t=yo(e);return[Ao(e),t,Ao(t)]}(g):[yo(g)]),b=[g].concat(y).reduce((function(e,r){return e.concat(so(r)===Vn?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=void 0===l?Jn:l,c=lo(n),d=c?s?Kn:Kn.filter((function(e){return lo(e)===c})):Zn,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,r){return t[r]=ko(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[so(r)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:r,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):r)}),[]),A=t.rects.reference,O=t.rects.popper,w=new Map,C=!0,_=b[0],x=0;x<b.length;x++){var k=b[x],E=so(k),S=lo(k)===Yn,D=[Qn,Wn].indexOf(E)>=0,P=D?"width":"height",B=ko(t,{placement:k,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),T=D?S?zn:Un:S?Wn:Qn;A[P]>O[P]&&(T=yo(T));var j=yo(T),q=[];if(i&&q.push(B[E]<=0),s&&q.push(B[T]<=0,B[j]<=0),q.every((function(e){return e}))){_=k,C=!1;break}w.set(k,q)}if(C)for(var R=function(e){var t=b.find((function(t){var r=w.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},M=h?3:1;M>0&&"break"!==R(M);M--);t.placement!==_&&(t.modifiersData[n]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function So(e,t,r){return wn(e,Cn(t,r))}const Do={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,d=r.padding,f=r.tether,p=void 0===f||f,h=r.tetherOffset,m=void 0===h?0:h,g=ko(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=so(t.placement),y=lo(t.placement),b=!y,A=uo(v),O="x"===A?"y":"x",w=t.modifiersData.popperOffsets,C=t.rects.reference,_=t.rects.popper,x="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(w){if(i){var D,P="y"===A?Qn:Un,B="y"===A?Wn:zn,T="y"===A?"height":"width",j=w[A],q=j+g[P],R=j-g[B],M=p?-_[T]/2:0,F=y===Yn?C[T]:_[T],N=y===Yn?-_[T]:-C[T],L=t.elements.arrow,I=p&&L?Rn(L):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Q=$[P],W=$[B],z=So(0,C[T],I[T]),U=b?C[T]/2-M-z-Q-k.mainAxis:F-z-Q-k.mainAxis,V=b?-C[T]/2+M+z+W+k.mainAxis:N+z+W+k.mainAxis,Z=t.elements.arrow&&$n(t.elements.arrow),Y=Z?"y"===A?Z.clientTop||0:Z.clientLeft||0:0,H=null!=(D=null==E?void 0:E[A])?D:0,G=j+V-H,X=So(p?Cn(q,j+U-H-Y):q,j,p?wn(R,G):R);w[A]=X,S[A]=X-j}if(s){var K,J="x"===A?Qn:Un,ee="x"===A?Wn:zn,te=w[O],re="y"===O?"height":"width",ne=te+g[J],oe=te-g[ee],ie=-1!==[Qn,Un].indexOf(v),ae=null!=(K=null==E?void 0:E[O])?K:0,se=ie?ne:te-C[re]-_[re]-ae+k.altAxis,le=ie?te+C[re]+_[re]-ae-k.altAxis:oe,ue=p&&ie?function(e,t,r){var n=So(e,t,r);return n>r?r:n}(se,te,le):So(p?se:ne,te,p?le:oe);w[O]=ue,S[O]=ue-te}t.modifiersData[n]=S}},requiresIfExists:["offset"]},Po={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=so(r.placement),l=uo(s),u=[Un,zn].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return _o("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:xo(e,Zn))}(o.padding,r),d=Rn(i),f="y"===l?Qn:Un,p="y"===l?Wn:zn,h=r.rects.reference[u]+r.rects.reference[l]-a[l]-r.rects.popper[u],m=a[l]-r.rects.reference[l],g=$n(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=c[f],A=v-d[u]-c[p],O=v/2-d[u]/2+y,w=So(b,O,A),C=l;r.modifiersData[n]=((t={})[C]=w,t.centerOffset=w-O,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Oo(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bo(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function To(e){return[Qn,zn,Wn,Un].some((function(t){return e[t]>=0}))}var jo=oo({defaultModifiers:[ao,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=co({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ho,mo,go,Eo,Do,Po,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ko(t,{elementContext:"reference"}),s=ko(t,{altBoundary:!0}),l=Bo(a,n),u=Bo(s,o,i),c=To(l),d=To(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});const qo=function(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r},Ro=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t},Mo=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"],Fo=function(e){var n;const{elementType:o,externalSlotProps:i,ownerState:a,skipResolvingSlotProps:s=!1}=e,l=(0,r.A)(e,Mo),u=s?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(i,a),{props:c,internalRef:d}=function(e){const{getSlotProps:r,additionalProps:n,externalSlotProps:o,externalForwardedProps:i,className:a}=e;if(!r){const e=(0,fe.A)(null==n?void 0:n.className,a,null==i?void 0:i.className,null==o?void 0:o.className),r=(0,t.A)({},null==n?void 0:n.style,null==i?void 0:i.style,null==o?void 0:o.style),s=(0,t.A)({},n,i,o);return e.length>0&&(s.className=e),Object.keys(r).length>0&&(s.style=r),{props:s,internalRef:void 0}}const s=qo((0,t.A)({},i,o)),l=Ro(o),u=Ro(i),c=r(s),d=(0,fe.A)(null==c?void 0:c.className,null==n?void 0:n.className,a,null==i?void 0:i.className,null==o?void 0:o.className),f=(0,t.A)({},null==c?void 0:c.style,null==n?void 0:n.style,null==i?void 0:i.style,null==o?void 0:o.style),p=(0,t.A)({},c,n,u,l);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}((0,t.A)({},l,{externalSlotProps:u})),f=(0,mn.A)(d,null==u?void 0:u.ref,null==(n=e.additionalProps)?void 0:n.ref);return Vr(o,(0,t.A)({},c,{ref:f}),a)};var No=__webpack_require__(17365);const Lo=n.forwardRef((function(e,t){const{children:r,container:o,disablePortal:i=!1}=e,[a,s]=n.useState(null),l=(0,mn.A)(n.isValidElement(r)?r.ref:null,t);if((0,gn.A)((()=>{i||s(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),(0,gn.A)((()=>{if(a&&!i)return(0,No.A)(t,a),()=>{(0,No.A)(t,null)}}),[t,a,i]),i){if(n.isValidElement(r)){const e={ref:l};return n.cloneElement(r,e)}return(0,u.jsx)(n.Fragment,{children:r})}return(0,u.jsx)(n.Fragment,{children:a?Hr.createPortal(r,a):a})}));function Io(e){return(0,Ye.Ay)("MuiPopper",e)}(0,je.A)("MuiPopper",["root"]);const $o=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Qo=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Wo(e){return"function"==typeof e?e():e}const zo={},Uo=n.forwardRef((function(e,o){var i;const{anchorEl:a,children:s,direction:l,disablePortal:c,modifiers:d,open:f,placement:p,popperOptions:h,popperRef:m,slotProps:g={},slots:v={},TransitionProps:y}=e,b=(0,r.A)(e,$o),A=n.useRef(null),O=(0,mn.A)(A,o),w=n.useRef(null),C=(0,mn.A)(w,m),_=n.useRef(C);(0,gn.A)((()=>{_.current=C}),[C]),n.useImperativeHandle(m,(()=>w.current),[]);const x=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,l),[k,E]=n.useState(x),[S,D]=n.useState(Wo(a));n.useEffect((()=>{w.current&&w.current.forceUpdate()})),n.useEffect((()=>{a&&D(Wo(a))}),[a]),(0,gn.A)((()=>{if(!S||!f)return;let e=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{E(e.placement)})(e)}}];null!=d&&(e=e.concat(d)),h&&null!=h.modifiers&&(e=e.concat(h.modifiers));const r=jo(S,A.current,(0,t.A)({placement:x},h,{modifiers:e}));return _.current(r),()=>{r.destroy(),_.current(null)}}),[S,c,d,f,h,x]);const P={placement:k};null!==y&&(P.TransitionProps=y);const B=(e=>{const{classes:t}=e;return(0,he.A)({root:["root"]},Io,t)})(e),T=null!=(i=v.root)?i:"div",j=Fo({elementType:T,externalSlotProps:g.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:O},ownerState:e,className:B.root});return(0,u.jsx)(T,(0,t.A)({},j,{children:"function"==typeof s?s(P):s}))})),Vo=n.forwardRef((function(e,o){const{anchorEl:i,children:a,container:s,direction:l="ltr",disablePortal:c=!1,keepMounted:d=!1,modifiers:f,open:p,placement:h="bottom",popperOptions:m=zo,popperRef:g,style:v,transition:y=!1,slotProps:b={},slots:A={}}=e,O=(0,r.A)(e,Qo),[w,C]=n.useState(!0);if(!d&&!p&&(!y||w))return null;let _;if(s)_=s;else if(i){const e=Wo(i);_=e&&void 0!==e.nodeType?(0,vn.A)(e).body:(0,vn.A)(null).body}const x=p||!d||y&&!w?void 0:"none",k=y?{in:p,onEnter:()=>{C(!1)},onExited:()=>{C(!0)}}:void 0;return(0,u.jsx)(Lo,{disablePortal:c,container:_,children:(0,u.jsx)(Uo,(0,t.A)({anchorEl:i,direction:l,disablePortal:c,modifiers:f,ref:o,open:y?!w:p,placement:h,popperOptions:m,popperRef:g,slotProps:b,slots:A},O,{style:(0,t.A)({position:"fixed",top:0,left:0,display:x},v),TransitionProps:k,children:a}))})})),Zo=Vo,Yo=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Ho=(0,ge.Ay)(Zo,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Go=n.forwardRef((function(e,n){var o;const i=(0,hn.A)(),a=(0,ye.b)({props:e,name:"MuiPopper"}),{anchorEl:s,component:l,components:c,componentsProps:d,container:f,disablePortal:p,keepMounted:h,modifiers:m,open:g,placement:v,popperOptions:y,popperRef:b,transition:A,slots:O,slotProps:w}=a,C=(0,r.A)(a,Yo),_=null!=(o=null==O?void 0:O.root)?o:null==c?void 0:c.Root,x=(0,t.A)({anchorEl:s,container:f,disablePortal:p,keepMounted:h,modifiers:m,open:g,placement:v,popperOptions:y,popperRef:b,transition:A},C);return(0,u.jsx)(Ho,(0,t.A)({as:l,direction:null==i?void 0:i.direction,slots:{root:_},slotProps:null!=w?w:d},x,{ref:n}))})),Xo=Go;var Ko=__webpack_require__(1668);function Jo(e){return(0,Ye.Ay)("MuiTooltip",e)}const ei=(0,je.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ti=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],ri=(0,ge.Ay)(Xo,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((({theme:e,ownerState:r,open:n})=>(0,t.A)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},r.arrow&&{[`&[data-popper-placement*="bottom"] .${ei.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ei.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ei.arrow}`]:(0,t.A)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${ei.arrow}`]:(0,t.A)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),ni=(0,ge.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,et.A)(r.placement.split("-")[0])}`]]}})((({theme:e,ownerState:r})=>{return(0,t.A)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,me.X4)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},r.arrow&&{position:"relative",margin:0},r.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5+"em"),fontWeight:e.typography.fontWeightRegular},{[`.${ei.popper}[data-popper-placement*="left"] &`]:(0,t.A)({transformOrigin:"right center"},r.isRtl?(0,t.A)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"}):(0,t.A)({marginRight:"14px"},r.touch&&{marginRight:"24px"})),[`.${ei.popper}[data-popper-placement*="right"] &`]:(0,t.A)({transformOrigin:"left center"},r.isRtl?(0,t.A)({marginRight:"14px"},r.touch&&{marginRight:"24px"}):(0,t.A)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"})),[`.${ei.popper}[data-popper-placement*="top"] &`]:(0,t.A)({transformOrigin:"center bottom",marginBottom:"14px"},r.touch&&{marginBottom:"24px"}),[`.${ei.popper}[data-popper-placement*="bottom"] &`]:(0,t.A)({transformOrigin:"center top",marginTop:"14px"},r.touch&&{marginTop:"24px"})});var n})),oi=(0,ge.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,me.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let ii=!1;const ai=new Te.E;let si={x:0,y:0};function li(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const ui=n.forwardRef((function(e,o){var i,a,s,l,c,d,f,p,h,g,v,y,b,A,O,w,C,_,x;const k=(0,ye.b)({props:e,name:"MuiTooltip"}),{arrow:E=!1,children:S,components:D={},componentsProps:P={},describeChild:B=!1,disableFocusListener:T=!1,disableHoverListener:j=!1,disableInteractive:q=!1,disableTouchListener:R=!1,enterDelay:M=100,enterNextDelay:F=0,enterTouchDelay:N=700,followCursor:L=!1,id:I,leaveDelay:$=0,leaveTouchDelay:Q=1500,onClose:W,onOpen:z,open:U,placement:V="bottom",PopperComponent:Z,PopperProps:Y={},slotProps:H={},slots:G={},title:X,TransitionComponent:K=pn,TransitionProps:J}=k,ee=(0,r.A)(k,ti),te=n.isValidElement(S)?S:(0,u.jsx)("span",{children:S}),re=Yr(),ne=m(),[oe,ie]=n.useState(),[ae,se]=n.useState(null),le=n.useRef(!1),ue=q||L,ce=(0,Te.A)(),de=(0,Te.A)(),pe=(0,Te.A)(),me=(0,Te.A)(),[ge,ve]=(0,vr.A)({controlled:U,default:!1,name:"Tooltip",state:"open"});let we=ge;const Ce=(0,Ko.A)(I),_e=n.useRef(),xe=(0,Ae.A)((()=>{void 0!==_e.current&&(document.body.style.WebkitUserSelect=_e.current,_e.current=void 0),me.clear()}));n.useEffect((()=>xe),[xe]);const ke=e=>{ai.clear(),ii=!0,ve(!0),z&&!we&&z(e)},Ee=(0,Ae.A)((e=>{ai.start(800+$,(()=>{ii=!1})),ve(!1),W&&we&&W(e),ce.start(re.transitions.duration.shortest,(()=>{le.current=!1}))})),Se=e=>{le.current&&"touchstart"!==e.type||(oe&&oe.removeAttribute("title"),de.clear(),pe.clear(),M||ii&&F?de.start(ii?F:M,(()=>{ke(e)})):ke(e))},De=e=>{de.clear(),pe.start($,(()=>{Ee(e)}))},{isFocusVisibleRef:Pe,onBlur:Be,onFocus:je,ref:qe}=(0,Oe.A)(),[,Re]=n.useState(!1),Me=e=>{Be(e),!1===Pe.current&&(Re(!1),De(e))},Fe=e=>{oe||ie(e.currentTarget),je(e),!0===Pe.current&&(Re(!0),Se(e))},Ne=e=>{le.current=!0;const t=te.props;t.onTouchStart&&t.onTouchStart(e)};n.useEffect((()=>{if(we)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Ee(e)}}),[Ee,we]);const Le=(0,be.A)(te.ref,qe,ie,o);X||0===X||(we=!1);const Ie=n.useRef(),$e={},Qe="string"==typeof X;B?($e.title=we||!Qe||j?null:X,$e["aria-describedby"]=we?Ce:null):($e["aria-label"]=Qe?X:null,$e["aria-labelledby"]=we&&!Qe?Ce:null);const We=(0,t.A)({},$e,ee,te.props,{className:(0,fe.A)(ee.className,te.props.className),onTouchStart:Ne,ref:Le},L?{onMouseMove:e=>{const t=te.props;t.onMouseMove&&t.onMouseMove(e),si={x:e.clientX,y:e.clientY},Ie.current&&Ie.current.update()}}:{}),ze={};R||(We.onTouchStart=e=>{Ne(e),pe.clear(),ce.clear(),xe(),_e.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",me.start(N,(()=>{document.body.style.WebkitUserSelect=_e.current,Se(e)}))},We.onTouchEnd=e=>{te.props.onTouchEnd&&te.props.onTouchEnd(e),xe(),pe.start(Q,(()=>{Ee(e)}))}),j||(We.onMouseOver=li(Se,We.onMouseOver),We.onMouseLeave=li(De,We.onMouseLeave),ue||(ze.onMouseOver=Se,ze.onMouseLeave=De)),T||(We.onFocus=li(Fe,We.onFocus),We.onBlur=li(Me,We.onBlur),ue||(ze.onFocus=Fe,ze.onBlur=Me));const Ue=n.useMemo((()=>{var e;let r=[{name:"arrow",enabled:Boolean(ae),options:{element:ae,padding:4}}];return null!=(e=Y.popperOptions)&&e.modifiers&&(r=r.concat(Y.popperOptions.modifiers)),(0,t.A)({},Y.popperOptions,{modifiers:r})}),[ae,Y]),Ve=(0,t.A)({},k,{isRtl:ne,arrow:E,disableInteractive:ue,placement:V,PopperComponentProp:Z,touch:le.current}),Ze=(e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:i}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,et.A)(i.split("-")[0])}`],arrow:["arrow"]};return(0,he.A)(a,Jo,t)})(Ve),Ye=null!=(i=null!=(a=G.popper)?a:D.Popper)?i:ri,He=null!=(s=null!=(l=null!=(c=G.transition)?c:D.Transition)?l:K)?s:pn,Ge=null!=(d=null!=(f=G.tooltip)?f:D.Tooltip)?d:ni,Xe=null!=(p=null!=(h=G.arrow)?h:D.Arrow)?p:oi,Ke=Vr(Ye,(0,t.A)({},Y,null!=(g=H.popper)?g:P.popper,{className:(0,fe.A)(Ze.popper,null==Y?void 0:Y.className,null==(v=null!=(y=H.popper)?y:P.popper)?void 0:v.className)}),Ve),Je=Vr(He,(0,t.A)({},J,null!=(b=H.transition)?b:P.transition),Ve),tt=Vr(Ge,(0,t.A)({},null!=(A=H.tooltip)?A:P.tooltip,{className:(0,fe.A)(Ze.tooltip,null==(O=null!=(w=H.tooltip)?w:P.tooltip)?void 0:O.className)}),Ve),rt=Vr(Xe,(0,t.A)({},null!=(C=H.arrow)?C:P.arrow,{className:(0,fe.A)(Ze.arrow,null==(_=null!=(x=H.arrow)?x:P.arrow)?void 0:_.className)}),Ve);return(0,u.jsxs)(n.Fragment,{children:[n.cloneElement(te,We),(0,u.jsx)(Ye,(0,t.A)({as:null!=Z?Z:Xo,placement:V,anchorEl:L?{getBoundingClientRect:()=>({top:si.y,left:si.x,right:si.x,bottom:si.y,width:0,height:0})}:oe,popperRef:Ie,open:!!oe&&we,id:Ce,transition:!0},ze,Ke,{popperOptions:Ue,children:({TransitionProps:e})=>(0,u.jsx)(He,(0,t.A)({timeout:re.transitions.duration.shorter},e,Je,{children:(0,u.jsxs)(Ge,(0,t.A)({},tt,{children:[X,E?(0,u.jsx)(Xe,(0,t.A)({},rt,{ref:se})):null]}))}))}))]})})),ci=ui;var di=__webpack_require__(73684);function fi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pi=function(e){var t,r,n,o,a,s,l,u,c,d=e.controlProps,f=function(e,t){if(null==e)return{};var r,n,o,i={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(Object(e)),o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}(e,["controlProps"]),p=f.id,h=f.objectPathId,m=f.error,g=f.displayName,v=f.required,y=f.hideLabel,b=void 0!==y&&y,A=f.isExpert,O=f.children,w=f.tooltip,C=f.helper,_=!!m,x=!!A,E=h||p,S=h?"".concat(zr["control-wrapper"]," fb-control-wrapper"):"".concat(zr["control-wrapper"]," fb-control-wrapper ").concat(zr["control-wrapper-firstlayer"]),D=null!==(t=null==d||null===(o=d.controlWrapperProps)||void 0===o?void 0:o.style)&&void 0!==t?t:{},P=null!==(r=null==d||null===(s=d.controlWrapperProps)||void 0===s||null===(a=s.label)||void 0===a?void 0:a.style)&&void 0!==r?r:{},B=null!==(n=null==d||null===(u=d.controlWrapperProps)||void 0===u||null===(l=u.container)||void 0===l?void 0:l.style)&&void 0!==n?n:{};return i().createElement("div",{className:k()(zr["form-group"],"fb-form-group",(c={},fi(c,zr.error,_),fi(c,zr.expert,x),c)),style:D},!b&&i().createElement("label",{htmlFor:E,"data-testid":"control-label",className:"".concat(zr["control-label"]," fb-control-label"),style:P},i().createElement("div",{className:zr["text-tooltip-container"],"data-testid":"control-label-container"},i().createElement("span",{"data-testid":"name-span"},v?"".concat(g," *"):g),w&&i().createElement("div",{className:zr.tooltip,"data-testid":"tooltip-container"},i().createElement(ci,{"data-testid":"tooltip-style",title:w,arrow:!0,PopperProps:{modifiers:[{name:"offset",options:{offset:[0,-7]}}]},slotProps:{popper:{className:"fb-tooltip-popper"},tooltip:{className:"fb-tooltip",sx:{display:"flex",padding:"8px",alignItems:"flex-start",gap:"10px",borderRadius:"4px",background:"var(--grey-900, #333)",color:"var(--grey-white, #FFF)",fontFamily:"Roboto",fontSize:"10px",fontStyle:"normal",fontWeight:500,maxWidth:"250px",lineHeight:"normal"}},arrow:{className:"fb-tooltip-arrow",sx:{color:"var(--grey-900, #333)",top:"0"}}}},i().createElement("span",{className:zr["icon-container"],"data-testid":"tooltip-icon"},i().createElement(di._,{height:12,width:12})))))),i().createElement("div",{className:S,style:B},O,C&&i().createElement("div",{className:zr["helper-text"],"data-testid":"helper-text"},C),i().createElement("label",{htmlFor:E,className:zr["error-message"]},m)))};function hi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){hi(e,t,r[t])}))}return e}const gi=function(e){var t,r,o,a,s,l,u,c,d,f,p=e.Control,h=e.config,m=e.isExpert,g=e.hideLabel,v=void 0!==g&&g,y=e.controlProps,b=h.control,A=h.id,O=h.objectPathId,w=h.groupIsRequired,C=h.isInRequiredGroup,_=h.isControlHidden,x=void 0!==_&&_,k=b.error,S=b.displayName,D=b.required,P=b.value,B=null==b?void 0:b["custom-attributes"],T=!0===(null==B?void 0:B.readOnly)||"true"===(null==B?void 0:B.readOnly)||!0===(null==B?void 0:B.readonly)||"true"===(null==B?void 0:B.readonly),j=!0===(null==B?void 0:B.alwaysRequired),q=!x&&!T&&(!!j||!(!C&&!w)&&D),R=(0,n.useContext)(E.og),M=R.updateControl,F=R.showValidationErrors,N="select"===b.control&&(null===(r=b.options)||void 0===r?void 0:r.some((function(e){return e.selected}))),L=!F||!q||null!=P&&""!==P||N?void 0:"This field is required.",I={id:A,objectPathId:O,error:(null==k?void 0:k.message)||L,displayName:S,hideLabel:v,isExpert:m,required:q,tooltip:null==b||null===(a=b["custom-attributes"])||void 0===a||null===(o=a.fieldDescription)||void 0===o?void 0:o.tooltip,helper:null==b||null===(l=b["custom-attributes"])||void 0===l||null===(s=l.fieldDescription)||void 0===s?void 0:s.helper},$={objectPathId:O,id:A,control:(d=mi({},b),f={required:q,placeholder:null!==(t=null==b||null===(c=b["custom-attributes"])||void 0===c||null===(u=c.fieldDescription)||void 0===u?void 0:u.placeholder)&&void 0!==t?t:null==b?void 0:b.placeholder},f=null!=f?f:{},Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(f)).forEach((function(e){Object.defineProperty(d,e,Object.getOwnPropertyDescriptor(f,e))})),d)};return i().createElement(pi,mi({controlProps:y},I),i().createElement(p,mi({controlProps:y,onChangeValue:function(e,t){var r=mi({hasChanged:!0},e);M(O||A,$r()({},b,r,t))}},$)))};function vi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yi(e){return function(e){if(Array.isArray(e))return vi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return vi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vi(e,t):void 0}}(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.")}()}var bi=/mrn:srv:([a-z-A-Z0-9]+):([a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}):([^\s]*)/g,Ai=function(e){if(e){var t=yi(e.matchAll(bi)),r=t&&t[0];return r&&4===r.length?{matchAll:t,mrn:r[0],serviceName:r[1],applicationId:r[2],resource:r[3]}:Oi(e)}},Oi=function(e){var t=yi(e.matchAll(/mrn:srv:([a-z-A-Z0-9]+):([a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/g)),r=t&&t[0];return r&&3===r.length?{matchAll:t,mrn:r[0],serviceName:r[1],applicationId:r[2]}:null},wi=__webpack_require__(75003);const Ci=(0,wi.A)((0,u.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),_i=(0,wi.A)((0,u.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),xi=(0,wi.A)((0,u.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function ki(e){return(0,Ye.Ay)("MuiCheckbox",e)}const Ei=(0,je.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Si=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Di=(0,ge.Ay)(Cr,{shouldForwardProp:e=>(0,ve.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${(0,et.A)(r.size)}`],"default"!==r.color&&t[`color${(0,et.A)(r.color)}`]]}})((({theme:e,ownerState:r})=>(0,t.A)({color:(e.vars||e).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===r.color?e.vars.palette.action.activeChannel:e.vars.palette[r.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,me.X4)("default"===r.color?e.palette.action.active:e.palette[r.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{[`&.${Ei.checked}, &.${Ei.indeterminate}`]:{color:(e.vars||e).palette[r.color].main},[`&.${Ei.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Pi=(0,u.jsx)(_i,{}),Bi=(0,u.jsx)(Ci,{}),Ti=(0,u.jsx)(xi,{}),ji=n.forwardRef((function(e,o){var i,a;const s=(0,ye.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:l=Pi,color:c="primary",icon:d=Bi,indeterminate:f=!1,indeterminateIcon:p=Ti,inputProps:h,size:m="medium",className:g}=s,v=(0,r.A)(s,Si),y=f?p:d,b=f?p:l,A=(0,t.A)({},s,{color:c,indeterminate:f,size:m}),O=(e=>{const{classes:r,indeterminate:n,color:o,size:i}=e,a={root:["root",n&&"indeterminate",`color${(0,et.A)(o)}`,`size${(0,et.A)(i)}`]},s=(0,he.A)(a,ki,r);return(0,t.A)({},r,s)})(A);return(0,u.jsx)(Di,(0,t.A)({type:"checkbox",inputProps:(0,t.A)({"data-indeterminate":f},h),icon:n.cloneElement(y,{fontSize:null!=(i=y.props.fontSize)?i:m}),checkedIcon:n.cloneElement(b,{fontSize:null!=(a=b.props.fontSize)?a:m}),ownerState:A,ref:o,className:(0,fe.A)(O.root,g)},v,{classes:O}))})),qi=ji;var Ri=__webpack_require__(90179),Mi=__webpack_require__.n(Ri),Fi=__webpack_require__(19760),Ni={};Ni.styleTagTransform=L(),Ni.setAttributes=R(),Ni.insert=j().bind(null,"head"),Ni.domAPI=B(),Ni.insertStyleElement=F(),D()(Fi.A,Ni);const Li=Fi.A&&Fi.A.locals?Fi.A.locals:void 0;const Ii=function(e){var t,r=e.onChangeValue,o=function(e,t){if(null==e)return{};var r,n,o,i={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(Object(e)),o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}(e,["onChangeValue"]),a=o.control,s=o.id,l=o.objectPathId,u=a.selected,c=void 0!==u&&u,d=a.value||"on",f=l||s;(0,n.useEffect)((function(){r({value:a.selected?d:""})}),[]);var p=Object.assign(Mi()(o,["objectPathId","checked","control","displayName","error"]),{name:f,value:d,type:a.control,role:a.control});return i().createElement(qi,{className:Li["checkbox-container"],id:f,color:"default",checked:c,readOnly:null===(t=a["custom-attributes"])||void 0===t?void 0:t.readOnly,onClick:function(){r({selected:!a.selected,value:a.selected?"":d})},inputProps:p,disableRipple:!0,sx:{padding:"0px",marginLeft:"-2px",color:"#D0D0D0","&.Mui-checked":{color:"#4A96D2"},"&:hover":{backgroundColor:"transparent",color:"#255F8E"}}})};var $i=__webpack_require__(44363),Qi=__webpack_require__(96248);const Wi=n.createContext({});function zi(e){return(0,Ye.Ay)("MuiList",e)}(0,je.A)("MuiList",["root","padding","dense","subheader"]);const Ui=["children","className","component","dense","disablePadding","subheader"],Vi=(0,ge.Ay)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>(0,t.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Zi=n.forwardRef((function(e,o){const i=(0,ye.b)({props:e,name:"MuiList"}),{children:a,className:s,component:l="ul",dense:c=!1,disablePadding:d=!1,subheader:f}=i,p=(0,r.A)(i,Ui),h=n.useMemo((()=>({dense:c})),[c]),m=(0,t.A)({},i,{component:l,dense:c,disablePadding:d}),g=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e,i={root:["root",!r&&"padding",n&&"dense",o&&"subheader"]};return(0,he.A)(i,zi,t)})(m);return(0,u.jsx)(Wi.Provider,{value:h,children:(0,u.jsxs)(Vi,(0,t.A)({as:l,className:(0,fe.A)(g.root,s),ref:o,ownerState:m},p,{children:[f,a]}))})}));function Yi(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Hi=Yi;var Gi=__webpack_require__(2778);const Xi=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ki(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Ji(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function ea(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function ta(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&ea(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const ra=n.forwardRef((function(e,o){const{actions:i,autoFocus:a=!1,autoFocusItem:s=!1,children:l,className:c,disabledItemsFocusable:d=!1,disableListWrap:f=!1,onKeyDown:p,variant:h="selectedMenu"}=e,m=(0,r.A)(e,Xi),g=n.useRef(null),v=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Gi.A)((()=>{a&&g.current.focus()}),[a]),n.useImperativeHandle(i,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&r){const r=`${Hi((0,Qi.A)(e))}px`;g.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,g.current.style.width=`calc(100% + ${r})`}return g.current}})),[]);const y=(0,be.A)(g,o);let b=-1;n.Children.forEach(l,((e,t)=>{n.isValidElement(e)?(e.props.disabled||("selectedMenu"===h&&e.props.selected||-1===b)&&(b=t),b===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(b+=1,b>=l.length&&(b=-1))):b===t&&(b+=1,b>=l.length&&(b=-1))}));const A=n.Children.map(l,((e,t)=>{if(t===b){const t={};return s&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===h&&(t.tabIndex=0),n.cloneElement(e,t)}return e}));return(0,u.jsx)(Zi,(0,t.A)({role:"menu",ref:y,className:c,onKeyDown:e=>{const t=g.current,r=e.key,n=(0,Qi.A)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),ta(t,n,f,d,Ki);else if("ArrowUp"===r)e.preventDefault(),ta(t,n,f,d,Ji);else if("Home"===r)e.preventDefault(),ta(t,null,f,d,Ki);else if("End"===r)e.preventDefault(),ta(t,null,f,d,Ji);else if(1===r.length){const o=v.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&ea(n,o);o.previousKeyMatched&&(s||ta(t,n,!1,d,Ki,o))?e.preventDefault():o.previousKeyMatched=!1}p&&p(e)},tabIndex:a?0:-1},m,{children:A}))})),na=ra;var oa=__webpack_require__(1935),ia=__webpack_require__(93749);const aa=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function sa(e){const t=[],r=[];return Array.from(e.querySelectorAll(aa)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function la(){return!0}const ua=function(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=sa,isEnabled:s=la,open:l}=e,c=n.useRef(!1),d=n.useRef(null),f=n.useRef(null),p=n.useRef(null),h=n.useRef(null),m=n.useRef(!1),g=n.useRef(null),v=(0,mn.A)(t.ref,g),y=n.useRef(null);n.useEffect((()=>{l&&g.current&&(m.current=!r)}),[r,l]),n.useEffect((()=>{if(!l||!g.current)return;const e=(0,vn.A)(g.current);return g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{i||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}}),[l]),n.useEffect((()=>{if(!l||!g.current)return;const e=(0,vn.A)(g.current),t=t=>{y.current=t,!o&&s()&&"Tab"===t.key&&e.activeElement===g.current&&t.shiftKey&&(c.current=!0,f.current&&f.current.focus())},r=()=>{const t=g.current;if(null===t)return;if(!e.hasFocus()||!s()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==d.current&&e.activeElement!==f.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!m.current)return;let r=[];if(e.activeElement!==d.current&&e.activeElement!==f.current||(r=a(g.current)),r.length>0){var n,i;const e=Boolean((null==(n=y.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=y.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,o,i,s,l,a]);const b=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return(0,u.jsxs)(n.Fragment,{children:[(0,u.jsx)("div",{tabIndex:l?0:-1,onFocus:b,ref:d,"data-testid":"sentinelStart"}),n.cloneElement(t,{ref:v,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,h.current=e.target;const r=t.props.onFocus;r&&r(e)}}),(0,u.jsx)("div",{tabIndex:l?0:-1,onFocus:b,ref:f,"data-testid":"sentinelEnd"})]})},ca=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],da={entering:{opacity:1},entered:{opacity:1}},fa=n.forwardRef((function(e,o){const i=Yr(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:c,easing:d,in:f,onEnter:p,onEntered:h,onEntering:m,onExit:g,onExited:v,onExiting:y,style:b,timeout:A=a,TransitionComponent:O=on}=e,w=(0,r.A)(e,ca),C=n.useRef(null),_=(0,be.A)(C,c.ref,o),x=e=>t=>{if(e){const r=C.current;void 0===t?e(r):e(r,t)}},k=x(m),E=x(((e,t)=>{an(e);const r=sn({style:b,timeout:A,easing:d},{mode:"enter"});e.style.webkitTransition=i.transitions.create("opacity",r),e.style.transition=i.transitions.create("opacity",r),p&&p(e,t)})),S=x(h),D=x(y),P=x((e=>{const t=sn({style:b,timeout:A,easing:d},{mode:"exit"});e.style.webkitTransition=i.transitions.create("opacity",t),e.style.transition=i.transitions.create("opacity",t),g&&g(e)})),B=x(v);return(0,u.jsx)(O,(0,t.A)({appear:l,in:f,nodeRef:C,onEnter:E,onEntered:S,onEntering:k,onExit:P,onExited:B,onExiting:D,addEndListener:e=>{s&&s(C.current,e)},timeout:A},w,{children:(e,r)=>n.cloneElement(c,(0,t.A)({style:(0,t.A)({opacity:0,visibility:"exited"!==e||f?void 0:"hidden"},da[e],b,c.props.style),ref:_},r))}))})),pa=fa;function ha(e){return(0,Ye.Ay)("MuiBackdrop",e)}(0,je.A)("MuiBackdrop",["root","invisible"]);const ma=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ga=(0,ge.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>(0,t.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),va=n.forwardRef((function(e,n){var o,i,a;const s=(0,ye.b)({props:e,name:"MuiBackdrop"}),{children:l,className:c,component:d="div",components:f={},componentsProps:p={},invisible:h=!1,open:m,slotProps:g={},slots:v={},TransitionComponent:y=pa,transitionDuration:b}=s,A=(0,r.A)(s,ma),O=(0,t.A)({},s,{component:d,invisible:h}),w=(e=>{const{classes:t,invisible:r}=e,n={root:["root",r&&"invisible"]};return(0,he.A)(n,ha,t)})(O),C=null!=(o=g.root)?o:p.root;return(0,u.jsx)(y,(0,t.A)({in:m,timeout:b},A,{children:(0,u.jsx)(ga,(0,t.A)({"aria-hidden":!0},C,{as:null!=(i=null!=(a=v.root)?a:f.Root)?i:d,className:(0,fe.A)(w.root,c,null==C?void 0:C.className),ownerState:(0,t.A)({},O,null==C?void 0:C.ownerState),classes:w,ref:n,children:l}))}))}));var ya=__webpack_require__(71547),ba=__webpack_require__(76673),Aa=__webpack_require__(44877);function Oa(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wa(e){return parseInt((0,Aa.A)(e).getComputedStyle(e).paddingRight,10)||0}function Ca(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Oa(e,o)}))}function _a(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}const xa=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Oa(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Ca(t,e.mount,e.modalRef,n,!0);const o=_a(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=_a(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=function(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,vn.A)(e);return t.body===e?(0,Aa.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Yi((0,vn.A)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${wa(n)+e}px`;const t=(0,vn.A)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${wa(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=(0,vn.A)(n).body;else{const t=n.parentElement,r=(0,Aa.A)(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=_a(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Oa(e.modalRef,t),Ca(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Oa(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function ka(e){return(0,Ye.Ay)("MuiModal",e)}(0,je.A)("MuiModal",["root","hidden","backdrop"]);const Ea=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Sa=(0,ge.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:r})=>(0,t.A)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"}))),Da=(0,ge.Ay)(va,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Pa=n.forwardRef((function(e,o){var i,a,s,l,c,d;const f=(0,ye.b)({name:"MuiModal",props:e}),{BackdropComponent:p=Da,BackdropProps:h,className:m,closeAfterTransition:g=!1,children:v,container:y,component:b,components:A={},componentsProps:O={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:_=!1,disablePortal:x=!1,disableRestoreFocus:k=!1,disableScrollLock:E=!1,hideBackdrop:S=!1,keepMounted:D=!1,onBackdropClick:P,open:B,slotProps:T,slots:j}=f,q=(0,r.A)(f,Ea),R=(0,t.A)({},f,{closeAfterTransition:g,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:_,disablePortal:x,disableRestoreFocus:k,disableScrollLock:E,hideBackdrop:S,keepMounted:D}),{getRootProps:M,getBackdropProps:F,getTransitionProps:N,portalRef:L,isTopModal:I,exited:$,hasTransition:Q}=function(e){const{container:r,disableEscapeKeyDown:o=!1,disableScrollLock:i=!1,manager:a=xa,closeAfterTransition:s=!1,onTransitionEnter:l,onTransitionExited:u,children:c,onClose:d,open:f,rootRef:p}=e,h=n.useRef({}),m=n.useRef(null),g=n.useRef(null),v=(0,mn.A)(g,p),[y,b]=n.useState(!f),A=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let O=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(O=!1);const w=()=>(h.current.modalRef=g.current,h.current.mount=m.current,h.current),C=()=>{a.mount(w(),{disableScrollLock:i}),g.current&&(g.current.scrollTop=0)},_=(0,ya.A)((()=>{const e=function(e){return"function"==typeof e?e():e}(r)||(0,vn.A)(m.current).body;a.add(w(),e),g.current&&C()})),x=n.useCallback((()=>a.isTopModal(w())),[a]),k=(0,ya.A)((e=>{m.current=e,e&&(f&&x()?C():g.current&&Oa(g.current,O))})),E=n.useCallback((()=>{a.remove(w(),O)}),[O,a]);n.useEffect((()=>()=>{E()}),[E]),n.useEffect((()=>{f?_():A&&s||E()}),[f,E,A,s,_]);const S=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&x()&&(o||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},D=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:(r={})=>{const n=qo(e);delete n.onTransitionEnter,delete n.onTransitionExited;const o=(0,t.A)({},n,r);return(0,t.A)({role:"presentation"},o,{onKeyDown:S(o),ref:v})},getBackdropProps:(e={})=>{const r=e;return(0,t.A)({"aria-hidden":!0},r,{onClick:D(r),open:f})},getTransitionProps:()=>({onEnter:(0,ba.A)((()=>{b(!1),l&&l()}),null==c?void 0:c.props.onEnter),onExited:(0,ba.A)((()=>{b(!0),u&&u(),s&&E()}),null==c?void 0:c.props.onExited)}),rootRef:v,portalRef:k,isTopModal:x,exited:y,hasTransition:A}}((0,t.A)({},R,{rootRef:o})),W=(0,t.A)({},R,{exited:$}),z=(e=>{const{open:t,exited:r,classes:n}=e,o={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,he.A)(o,ka,n)})(W),U={};if(void 0===v.props.tabIndex&&(U.tabIndex="-1"),Q){const{onEnter:e,onExited:t}=N();U.onEnter=e,U.onExited=t}const V=null!=(i=null!=(a=null==j?void 0:j.root)?a:A.Root)?i:Sa,Z=null!=(s=null!=(l=null==j?void 0:j.backdrop)?l:A.Backdrop)?s:p,Y=null!=(c=null==T?void 0:T.root)?c:O.root,H=null!=(d=null==T?void 0:T.backdrop)?d:O.backdrop,G=Fo({elementType:V,externalSlotProps:Y,externalForwardedProps:q,getSlotProps:M,additionalProps:{ref:o,as:b},ownerState:W,className:(0,fe.A)(m,null==Y?void 0:Y.className,null==z?void 0:z.root,!W.open&&W.exited&&(null==z?void 0:z.hidden))}),X=Fo({elementType:Z,externalSlotProps:H,additionalProps:h,getSlotProps:e=>F((0,t.A)({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,fe.A)(null==H?void 0:H.className,null==h?void 0:h.className,null==z?void 0:z.backdrop),ownerState:W});return D||B||Q&&!$?(0,u.jsx)(Lo,{ref:L,container:y,disablePortal:x,children:(0,u.jsxs)(V,(0,t.A)({},G,{children:[!S&&p?(0,u.jsx)(Z,(0,t.A)({},X)):null,(0,u.jsx)(ua,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:k,isEnabled:I,open:B,children:n.cloneElement(v,U)})]}))}):null})),Ba=Pa,Ta=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function ja(e){return(0,Ye.Ay)("MuiPaper",e)}(0,je.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const qa=["className","component","elevation","square","variant"],Ra=(0,ge.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:r})=>{var n;return(0,t.A)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!r.square&&{borderRadius:e.shape.borderRadius},"outlined"===r.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===r.variant&&(0,t.A)({boxShadow:(e.vars||e).shadows[r.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,me.X4)("#fff",Ta(r.elevation))}, ${(0,me.X4)("#fff",Ta(r.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[r.elevation]}))})),Ma=n.forwardRef((function(e,n){const o=(0,ye.b)({props:e,name:"MuiPaper"}),{className:i,component:a="div",elevation:s=1,square:l=!1,variant:c="elevation"}=o,d=(0,r.A)(o,qa),f=(0,t.A)({},o,{component:a,elevation:s,square:l,variant:c}),p=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]};return(0,he.A)(i,ja,o)})(f);return(0,u.jsx)(Ra,(0,t.A)({as:a,ownerState:f,className:(0,fe.A)(p.root,i),ref:n},d))}));function Fa(e){return(0,Ye.Ay)("MuiPopover",e)}(0,je.A)("MuiPopover",["root","paper"]);const Na=["onEntering"],La=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ia=["slotProps"];function $a(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Qa(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Wa(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function za(e){return"function"==typeof e?e():e}const Ua=(0,ge.Ay)(Ba,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Va=(0,ge.Ay)(Ma,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Za=n.forwardRef((function(e,o){var i,a,s;const l=(0,ye.b)({props:e,name:"MuiPopover"}),{action:c,anchorEl:d,anchorOrigin:f={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:h="anchorEl",children:m,className:g,container:v,elevation:y=8,marginThreshold:b=16,open:A,PaperProps:O={},slots:w,slotProps:C,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:x=pn,transitionDuration:k="auto",TransitionProps:{onEntering:E}={},disableScrollLock:S=!1}=l,D=(0,r.A)(l.TransitionProps,Na),P=(0,r.A)(l,La),B=null!=(i=null==C?void 0:C.paper)?i:O,T=n.useRef(),j=(0,be.A)(T,B.ref),q=(0,t.A)({},l,{anchorOrigin:f,anchorReference:h,elevation:y,marginThreshold:b,externalPaperSlotProps:B,transformOrigin:_,TransitionComponent:x,transitionDuration:k,TransitionProps:D}),R=(e=>{const{classes:t}=e;return(0,he.A)({root:["root"],paper:["paper"]},Fa,t)})(q),M=n.useCallback((()=>{if("anchorPosition"===h)return p;const e=za(d),t=(e&&1===e.nodeType?e:(0,Qi.A)(T.current).body).getBoundingClientRect();return{top:t.top+$a(t,f.vertical),left:t.left+Qa(t,f.horizontal)}}),[d,f.horizontal,f.vertical,p,h]),F=n.useCallback((e=>({vertical:$a(e,_.vertical),horizontal:Qa(e,_.horizontal)})),[_.horizontal,_.vertical]),N=n.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=F(t);if("none"===h)return{top:null,left:null,transformOrigin:Wa(r)};const n=M();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,l=(0,ia.A)(za(d)),u=l.innerHeight-b,c=l.innerWidth-b;if(null!==b&&o<b){const e=o-b;o-=e,r.vertical+=e}else if(null!==b&&a>u){const e=a-u;o-=e,r.vertical+=e}if(null!==b&&i<b){const e=i-b;i-=e,r.horizontal+=e}else if(s>c){const e=s-c;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Wa(r)}}),[d,h,M,F,b]),[L,I]=n.useState(A),$=n.useCallback((()=>{const e=T.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)}),[N]);n.useEffect((()=>(S&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$))),[d,S,$]),n.useEffect((()=>{A&&$()})),n.useImperativeHandle(c,(()=>A?{updatePosition:()=>{$()}}:null),[A,$]),n.useEffect((()=>{if(!A)return;const e=(0,oa.A)((()=>{$()})),t=(0,ia.A)(d);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[d,A,$]);let Q=k;"auto"!==k||x.muiSupportAuto||(Q=void 0);const W=v||(d?(0,Qi.A)(za(d)).body:void 0),z=null!=(a=null==w?void 0:w.root)?a:Ua,U=null!=(s=null==w?void 0:w.paper)?s:Va,V=Fo({elementType:U,externalSlotProps:(0,t.A)({},B,{style:L?B.style:(0,t.A)({},B.style,{opacity:0})}),additionalProps:{elevation:y,ref:j},ownerState:q,className:(0,fe.A)(R.paper,null==B?void 0:B.className)}),Z=Fo({elementType:z,externalSlotProps:(null==C?void 0:C.root)||{},externalForwardedProps:P,additionalProps:{ref:o,slotProps:{backdrop:{invisible:!0}},container:W,open:A},ownerState:q,className:(0,fe.A)(R.root,g)}),{slotProps:Y}=Z,H=(0,r.A)(Z,Ia);return(0,u.jsx)(z,(0,t.A)({},H,!Ur(z)&&{slotProps:Y,disableScrollLock:S},{children:(0,u.jsx)(x,(0,t.A)({appear:!0,in:A,onEntering:(e,t)=>{E&&E(e,t),$()},onExited:()=>{I(!1)},timeout:Q},D,{children:(0,u.jsx)(U,(0,t.A)({},V,{children:m}))}))}))})),Ya=Za;function Ha(e){return(0,Ye.Ay)("MuiMenu",e)}(0,je.A)("MuiMenu",["root","paper","list"]);const Ga=["onEntering"],Xa=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ka={vertical:"top",horizontal:"right"},Ja={vertical:"top",horizontal:"left"},es=(0,ge.Ay)(Ya,{shouldForwardProp:e=>(0,ve.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ts=(0,ge.Ay)(Va,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),rs=(0,ge.Ay)(na,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ns=n.forwardRef((function(e,o){var i,a;const s=(0,ye.b)({props:e,name:"MuiMenu"}),{autoFocus:l=!0,children:c,className:d,disableAutoFocusItem:f=!1,MenuListProps:p={},onClose:h,open:g,PaperProps:v={},PopoverClasses:y,transitionDuration:b="auto",TransitionProps:{onEntering:A}={},variant:O="selectedMenu",slots:w={},slotProps:C={}}=s,_=(0,r.A)(s.TransitionProps,Ga),x=(0,r.A)(s,Xa),k=m(),E=(0,t.A)({},s,{autoFocus:l,disableAutoFocusItem:f,MenuListProps:p,onEntering:A,PaperProps:v,transitionDuration:b,TransitionProps:_,variant:O}),S=(e=>{const{classes:t}=e;return(0,he.A)({root:["root"],paper:["paper"],list:["list"]},Ha,t)})(E),D=l&&!f&&g,P=n.useRef(null);let B=-1;n.Children.map(c,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===O&&e.props.selected||-1===B)&&(B=t))}));const T=null!=(i=w.paper)?i:ts,j=null!=(a=C.paper)?a:v,q=Fo({elementType:w.root,externalSlotProps:C.root,ownerState:E,className:[S.root,d]}),R=Fo({elementType:T,externalSlotProps:j,ownerState:E,className:S.paper});return(0,u.jsx)(es,(0,t.A)({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?Ka:Ja,slots:{paper:T,root:w.root},slotProps:{root:q,paper:R},open:g,ref:o,transitionDuration:b,TransitionProps:(0,t.A)({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,{direction:k?"rtl":"ltr"}),A&&A(e,t)}},_),ownerState:E},x,{classes:y,children:(0,u.jsx)(rs,(0,t.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),h&&h(e,"tabKeyDown"))},actions:P,autoFocus:l&&(-1===B||f),autoFocusItem:D,variant:O},p,{className:(0,fe.A)(S.list,p.className),children:c}))}))}));var os=__webpack_require__(85769),is={};is.styleTagTransform=L(),is.setAttributes=R(),is.insert=j().bind(null,"head"),is.domAPI=B(),is.insertStyleElement=F(),D()(os.A,is);const as=os.A&&os.A.locals?os.A.locals:void 0;var ss=__webpack_require__(45711),ls="rgb(85, 85, 85)";const us=function(e){var t=e.onChangeValue,r=e.query,o=e.objectPathId,i=e.value,a=e.hasEdited;if(!r)return{textColor:ls};var s=(0,ss.A)({query:r,objectPathId:o}),l=s.resolvedQuery,u=s.mrnEntriesLoaded;(0,n.useEffect)((function(){!a&&l&&(0===i.length&&l||i===l?t({value:l,hasEdited:"not-edited"}):i!==l&&t({value:i,hasEdited:"edited"})),a&&t({value:"not-edited"===a?l:i})}),[l]);var c=(!a||"not-edited"===a)&&(null==i?void 0:i.length)>0?"rgba(85, 85, 85, 0.6)":ls;return{textColor:u?c:ls}};var cs=__webpack_require__(74648),ds={};ds.styleTagTransform=L(),ds.setAttributes=R(),ds.insert=j().bind(null,"head"),ds.domAPI=B(),ds.insertStyleElement=F(),D()(cs.A,ds);const fs=cs.A&&cs.A.locals?cs.A.locals:void 0;var ps=__webpack_require__(2833),hs=__webpack_require__.n(ps);const ms=function(e){function t(e,n,l,u,f){for(var p,h,m,g,A,w=0,C=0,_=0,x=0,k=0,T=0,q=m=p=0,M=0,F=0,N=0,L=0,I=l.length,$=I-1,Q="",W="",z="",U="";M<I;){if(h=l.charCodeAt(M),M===$&&0!==C+x+_+w&&(0!==C&&(h=47===C?10:47),x=_=w=0,I++,$++),0===C+x+_+w){if(M===$&&(0<F&&(Q=Q.replace(d,"")),0<Q.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:Q+=l.charAt(M)}h=59}switch(h){case 123:for(p=(Q=Q.trim()).charCodeAt(0),m=1,L=++M;M<I;){switch(h=l.charCodeAt(M)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(M+1)){case 42:case 47:e:{for(q=M+1;q<$;++q)switch(l.charCodeAt(q)){case 47:if(42===h&&42===l.charCodeAt(q-1)&&M+2!==q){M=q+1;break e}break;case 10:if(47===h){M=q+1;break e}}M=q}}break;case 91:h++;case 40:h++;case 34:case 39:for(;M++<$&&l.charCodeAt(M)!==h;);}if(0===m)break;M++}if(m=l.substring(L,M),0===p&&(p=(Q=Q.replace(c,"").trim()).charCodeAt(0)),64===p){switch(0<F&&(Q=Q.replace(d,"")),h=Q.charCodeAt(1)){case 100:case 109:case 115:case 45:F=n;break;default:F=B}if(L=(m=t(n,F,m,h,f+1)).length,0<j&&(A=s(3,m,F=r(B,Q,N),n,S,E,L,h,f,u),Q=F.join(""),void 0!==A&&0===(L=(m=A.trim()).length)&&(h=0,m="")),0<L)switch(h){case 115:Q=Q.replace(O,a);case 100:case 109:case 45:m=Q+"{"+m+"}";break;case 107:m=(Q=Q.replace(v,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=Q+m,112===u&&(W+=m,m="")}else m=""}else m=t(n,r(n,Q,N),m,u,f+1);z+=m,m=N=F=q=p=0,Q="",h=l.charCodeAt(++M);break;case 125:case 59:if(1<(L=(Q=(0<F?Q.replace(d,""):Q).trim()).length))switch(0===q&&(p=Q.charCodeAt(0),45===p||96<p&&123>p)&&(L=(Q=Q.replace(" ",":")).length),0<j&&void 0!==(A=s(1,Q,n,e,S,E,W.length,u,f,u))&&0===(L=(Q=A.trim()).length)&&(Q="\0\0"),p=Q.charCodeAt(0),h=Q.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){U+=Q+l.charAt(M);break}default:58!==Q.charCodeAt(L-1)&&(W+=o(Q,p,h,Q.charCodeAt(2)))}N=F=q=p=0,Q="",h=l.charCodeAt(++M)}}switch(h){case 13:case 10:47===C?C=0:0===1+p&&107!==u&&0<Q.length&&(F=1,Q+="\0"),0<j*R&&s(0,Q,n,e,S,E,W.length,u,f,u),E=1,S++;break;case 59:case 125:if(0===C+x+_+w){E++;break}default:switch(E++,g=l.charAt(M),h){case 9:case 32:if(0===x+w+C)switch(k){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===x+C+w&&(F=N=1,g="\f"+g);break;case 108:if(0===x+C+w+D&&0<q)switch(M-q){case 2:112===k&&58===l.charCodeAt(M-3)&&(D=k);case 8:111===T&&(D=T)}break;case 58:0===x+C+w&&(q=M);break;case 44:0===C+_+x+w&&(F=1,g+="\r");break;case 34:case 39:0===C&&(x=x===h?0:0===x?h:x);break;case 91:0===x+C+_&&w++;break;case 93:0===x+C+_&&w--;break;case 41:0===x+C+w&&_--;break;case 40:0===x+C+w&&(0===p&&(2*k+3*T==533||(p=1)),_++);break;case 64:0===C+_+x+w+q+m&&(m=1);break;case 42:case 47:if(!(0<x+w+_))switch(C){case 0:switch(2*h+3*l.charCodeAt(M+1)){case 235:C=47;break;case 220:L=M,C=42}break;case 42:47===h&&42===k&&L+2!==M&&(33===l.charCodeAt(L+2)&&(W+=l.substring(L,M+1)),g="",C=0)}}0===C&&(Q+=g)}T=k,k=h,M++}if(0<(L=W.length)){if(F=n,0<j&&void 0!==(A=s(2,W,F,e,S,E,L,u,f,u))&&0===(W=A).length)return U+W+z;if(W=F.join(",")+"{"+W+"}",0!=P*D){switch(2!==P||i(W,2)||(D=0),D){case 111:W=W.replace(b,":-moz-$1")+W;break;case 112:W=W.replace(y,"::-webkit-input-$1")+W.replace(y,"::-moz-$1")+W.replace(y,":-ms-input-$1")+W}D=0}}return U+W+z}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[l++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===P||2===P&&i(l,1)?"-webkit-"+l+l:l}if(0===P||2===P&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(A,"tb");break;case 232:l=a.replace(A,"tb-rl");break;case 220:l=a.replace(A,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),q(2!==t?n:n.replace(_,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(w," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,l,c){for(var d,f=0,p=t;f<j;++f)switch(d=T[f].call(u,e,p,r,n,o,i,a,s,l,c)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(q=null,e?"function"!=typeof e?P=1:(P=2,q=e):P=0),l}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<j){var o=s(-1,r,n,n,S,E,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(B,n,r,0,0);return 0<j&&void 0!==(o=s(-2,i,n,n,S,E,i.length,0,0,0))&&(i=o),D=0,E=S=1,i}var c=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,A=/[svh]\w+-[tblr]{2}/,O=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,C=/-self|flex-/g,_=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,E=1,S=1,D=0,P=1,B=[],T=[],j=0,q=null,R=0;return u.use=function e(t){switch(t){case void 0:case null:j=T.length=0;break;default:if("function"==typeof t)T[j++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else R=0|!!t}return e},u.set=l,void 0!==e&&l(e),u},gs={animationIterationCount: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,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};var vs=__webpack_require__(91907),ys=__webpack_require__(4146),bs=__webpack_require__.n(ys);function As(){return(As=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Os=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},ws=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,$i.typeOf)(e)},Cs=Object.freeze([]),_s=Object.freeze({});function xs(e){return"function"==typeof e}function ks(e){return e.displayName||e.name||"Component"}function Es(e){return e&&"string"==typeof e.styledComponentId}var Ss="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ds="undefined"!=typeof window&&"HTMLElement"in window,Ps=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY));function Bs(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var Ts=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&Bs(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),js=new Map,qs=new Map,Rs=1,Ms=function(e){if(js.has(e))return js.get(e);for(;qs.has(Rs);)Rs++;var t=Rs++;return js.set(e,t),qs.set(t,e),t},Fs=function(e){return qs.get(e)},Ns=function(e,t){t>=Rs&&(Rs=t+1),js.set(e,t),qs.set(t,e)},Ls="style["+Ss+'][data-styled-version="5.3.11"]',Is=new RegExp("^"+Ss+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),$s=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Qs=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(Is);if(s){var l=0|parseInt(s[1],10),u=s[2];0!==l&&(Ns(u,l),$s(e,u,s[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(a)}}},Ws=function(){return __webpack_require__.nc},zs=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(Ss))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Ss,"active"),n.setAttribute("data-styled-version","5.3.11");var a=Ws();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Us=function(){function e(e){var t=this.element=zs(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}Bs(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Vs=function(){function e(e){var t=this.element=zs(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Zs=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ys=Ds,Hs={isServer:!Ds,useCSSOMInjection:!Ps},Gs=function(){function e(e,t,r){void 0===e&&(e=_s),void 0===t&&(t={}),this.options=As({},Hs,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Ds&&Ys&&(Ys=!1,function(e){for(var t=document.querySelectorAll(Ls),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(Ss)&&(Qs(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return Ms(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(As({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new Zs(o):n?new Us(o):new Vs(o),new Ts(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Ms(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Ms(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Ms(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=Fs(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var l=Ss+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+l+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),Xs=/(a)(d)/gi,Ks=function(e){return String.fromCharCode(e+(e>25?39:97))};function Js(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Ks(t%52)+r;return(Ks(t%52)+r).replace(Xs,"$1-$2")}var el=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},tl=function(e){return el(5381,e)};function rl(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(xs(r)&&!Es(r))return!1}return!0}var nl=tl("5.3.11"),ol=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&rl(e),this.componentId=t,this.baseHash=el(nl,t),this.baseStyle=r,Gs.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=Ol(this.rules,e,t,r).join(""),a=Js(el(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,u=el(this.baseHash,r.hash),c="",d=0;d<l;d++){var f=this.rules[d];if("string"==typeof f)c+=f;else if(f){var p=Ol(f,e,t,r),h=Array.isArray(p)?p.join(""):p;u=el(u,h+d),c+=h}}if(c){var m=Js(u>>>0);if(!t.hasNameForId(n,m)){var g=r(c,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),il=/^\s*\/\/.*$/gm,al=[":","[",".","#"];function sl(e){var t,r,n,o,i=void 0===e?_s:e,a=i.options,s=void 0===a?_s:a,l=i.plugins,u=void 0===l?Cs:l,c=new ms(s),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,l,u,c,d){switch(r){case 1:if(0===c&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,n,i){return 0===n&&-1!==al.indexOf(i[r.length])||i.match(o)?e:"."+t};function h(e,i,a,s){void 0===s&&(s="&");var l=e.replace(il,""),u=i&&a?a+" "+i+" { "+l+" }":l;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),c(a||!i?"":i,u)}return c.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,p))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),h.hash=u.length?u.reduce((function(e,t){return t.name||Bs(15),el(e,t.name)}),5381).toString():"",h}var ll=i().createContext(),ul=(ll.Consumer,i().createContext()),cl=(ul.Consumer,new Gs),dl=sl();function fl(){return(0,n.useContext)(ll)||cl}function pl(e){var t=(0,n.useState)(e.stylisPlugins),r=t[0],o=t[1],a=fl(),s=(0,n.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,n.useMemo)((function(){return sl({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,n.useEffect)((function(){hs()(r,e.stylisPlugins)||o(e.stylisPlugins)}),[e.stylisPlugins]),i().createElement(ll.Provider,{value:s},i().createElement(ul.Provider,{value:l},e.children))}var hl=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=dl);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return Bs(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=dl),this.name+e.hash},e}(),ml=/([A-Z])/,gl=/([A-Z])/g,vl=/^ms-/,yl=function(e){return"-"+e.toLowerCase()};function bl(e){return ml.test(e)?e.replace(gl,yl).replace(vl,"-ms-"):e}var Al=function(e){return null==e||!1===e||""===e};function Ol(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Ol(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Al(e)?"":Es(e)?"."+e.styledComponentId:xs(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:Ol(e(t),t,r,n):e instanceof hl?r?(e.inject(r,n),e.getName(n)):e:ws(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Al(t[a])&&(Array.isArray(t[a])&&t[a].isCss||xs(t[a])?i.push(bl(a)+":",t[a],";"):ws(t[a])?i.push.apply(i,e(t[a],a)):i.push(bl(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in gs||n.startsWith("--")?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var l}var wl=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Cl(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return xs(e)||ws(e)?wl(Ol(Os(Cs,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:wl(Ol(Os(e,r)))}new Set;var _l=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,xl=/(^-|-$)/g;function kl(e){return e.replace(_l,"-").replace(xl,"")}function El(e){return"string"==typeof e&&!0}var Sl=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Dl=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Pl(e,t,r){var n=e[r];Sl(t)&&Sl(n)?Bl(n,t):e[r]=t}function Bl(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(Sl(a))for(var s in a)Dl(s)&&Pl(e,a[s],s)}return e}var Tl=i().createContext();Tl.Consumer;var jl={};function ql(e,t,r){var o=Es(e),a=!El(e),s=t.attrs,l=void 0===s?Cs:s,u=t.componentId,c=void 0===u?function(e,t){var r="string"!=typeof e?"sc":kl(e);jl[r]=(jl[r]||0)+1;var n=r+"-"+function(e){return Js(tl(e)>>>0)}("5.3.11"+r+jl[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):u,d=t.displayName,f=void 0===d?function(e){return El(e)?"styled."+e:"Styled("+ks(e)+")"}(e):d,p=t.displayName&&t.componentId?kl(t.displayName)+"-"+t.componentId:t.componentId||c,h=o&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,m=t.shouldForwardProp;o&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var g,v=new ol(r,p,o?e.componentStyle:void 0),y=v.isStatic&&0===l.length,b=function(e,t){return function(e,t,r,o){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,u=e.shouldForwardProp,c=e.styledComponentId,d=e.target,f=function(e,t,r){void 0===e&&(e=_s);var n=As({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in xs(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(function(e,t,r){return void 0===r&&(r=_s),e.theme!==r.theme&&e.theme||t||r.theme}(t,(0,n.useContext)(Tl),s)||_s,t,i),p=f[0],h=f[1],m=function(e,t,r){var o=fl(),i=(0,n.useContext)(ul)||dl;return t?e.generateAndInjectStyles(_s,o,i):e.generateAndInjectStyles(r,o,i)}(a,o,p),g=r,v=h.$as||t.$as||h.as||t.as||d,y=El(v),b=h!==t?As({},t,{},h):t,A={};for(var O in b)"$"!==O[0]&&"as"!==O&&("forwardedAs"===O?A.as=b[O]:(u?u(O,vs.A,v):!y||(0,vs.A)(O))&&(A[O]=b[O]));return t.style&&h.style!==t.style&&(A.style=As({},t.style,{},h.style)),A.className=Array.prototype.concat(l,c,m!==c?m:null,t.className,h.className).filter(Boolean).join(" "),A.ref=g,(0,n.createElement)(v,A)}(g,e,t,y)};return b.displayName=f,(g=i().forwardRef(b)).attrs=h,g.componentStyle=v,g.displayName=f,g.shouldForwardProp=m,g.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):Cs,g.styledComponentId=p,g.target=o?e.target:e,g.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(El(e)?e:kl(ks(e)));return ql(e,As({},o,{attrs:h,componentId:i}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Bl({},e.defaultProps,t):t}}),Object.defineProperty(g,"toString",{value:function(){return"."+g.styledComponentId}}),a&&bs()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var Rl=function(e){return function e(t,r,n){if(void 0===n&&(n=_s),!(0,$i.isValidElementType)(r))return Bs(1,String(r));var o=function(){return t(r,n,Cl.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,As({},n,{},o))},o.attrs=function(o){return e(t,r,As({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(ql,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Rl[e]=Rl(e)})),function(){var e=function(e,t){this.rules=e,this.componentId=t,this.isStatic=rl(e),Gs.registerId(this.componentId+1)}.prototype;e.createStyles=function(e,t,r,n){var o=n(Ol(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},e.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.renderStyles=function(e,t,r,n){e>2&&Gs.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)}}(),function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=Ws();return"<style "+[r&&'nonce="'+r+'"',Ss+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?Bs(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return Bs(2);var r=((t={})[Ss]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=Ws();return n&&(r.nonce=n),[i().createElement("style",As({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Gs({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?Bs(2):i().createElement(pl,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return Bs(3)}}();const Ml=Rl,Fl=(0,wi.A)((0,u.jsx)("path",{d:"M19 6.41 17.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"}),"Clear");function Nl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ll(){var e=Nl(["\n width: 100%;\n position: relative;\n"]);return Ll=function(){return e},e}function Il(){var e=Nl(["\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 40px;\n border-radius: 100%;\n display: ",";\n justify-content: center;\n align-items: center;\n cursor: pointer;\n &:hover {\n background-color: #f5f5f5;\n }\n"]);return Il=function(){return e},e}function $l(){var e=Nl(["\n color: #767676;\n"]);return $l=function(){return e},e}var Ql=Ml.div(Ll()),Wl=Ml.div(Il(),(function(e){return""===e.inputValue?"none":"flex"})),zl=Ml(Fl)($l());function Ul(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ul(e,t,r[t])}))}return e}function Zl(e,t){if(null==e)return{};var r,n,o,i={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(r=Reflect.ownKeys(Object(e)),o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}if(i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.getOwnPropertyNames(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r]);return o}(e,t),Object.getOwnPropertySymbols)for(r=Object.getOwnPropertySymbols(e),o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n]);return i}const Yl=function(e){var t,r=e.onChangeValue,n=e.hasClearButton,o=void 0!==n&&n,a=e.onClearCallback,s=e.controlProps,l=Zl(e,["onChangeValue","hasClearButton","onClearCallback","controlProps"]),u=l.control,c=l.id,d=l.objectPathId,f=Zl(l,["control","id","objectPathId"]),p=u.value,h=void 0===p?"":p,m=(u.displayName,u["custom-attributes"]),g=u.error,v=u.placeholder,y=u.required,b=u.hasEdited,A=Zl(u,["value","displayName","custom-attributes","error","placeholder","required","hasEdited"]),O=null==m?void 0:m.defaultValue,w=us({onChangeValue:r,query:O,objectPathId:d,value:h,hasEdited:b}).textColor,C=g?"error":"",_=as["form-control"];_=C?_+" "+fs[C]:_;var x,k,E=v?y?v+" *":v:"";return i().createElement(Ql,null,i().createElement("input",(x=Vl({role:"textbox","data-testid":"input-control-".concat(c),max:"date"===u.type?"9999-12-31":null,className:_,id:d||c,name:d||c,value:h,onChange:function(e){r({value:e.target.value,hasEdited:"edited"})},onWheel:function(e){var t=e.target;"number"===t.type&&t.blur()},placeholder:E,required:y},Mi()(m,["defaultValue","mrnPreview","mrnSources"]),Mi()(A,["displayName","placholder","control","error","defaultValue"]),Mi()(f,["defaultValue","mrnPreview","mrnSources"])),k=null!=(k={style:Vl({color:w,minWidth:o?"175px":""},null==s||null===(t=s.inputProps)||void 0===t?void 0:t.style)})?k:{},Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(k)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(k)).forEach((function(e){Object.defineProperty(x,e,Object.getOwnPropertyDescriptor(k,e))})),x)),o&&"date"===u.type&&i().createElement(Wl,{inputValue:h},i().createElement(zl,{"data-testid":"input_clearButton",fontSize:"small",onClick:function(){r({value:""}),null==a||a()}})))};function Hl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Gl(){var e=Hl(["\n position: relative;\n font-size: 14px;\n font-weight: 400;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n gap: 10px;\n padding: 10px 0;\n margin-bottom: -10px;\n @media screen and (max-width: 767px) {\n flex-direction: column;\n gap: 5px;\n }\n container-type: inline-size;\n"]);return Gl=function(){return e},e}function Xl(){var e=Hl(["\n font-size: 14px;\n font-weight: 400;\n width: 200px;\n text-align: right;\n flex-shrink: 0;\n margin: 0 !important;\n padding-top: 9px;\n font-size: 14px;\n @media screen and (max-width: 767px) {\n text-align: left;\n }\n"]);return Xl=function(){return e},e}function Kl(){var e=Hl(["\n font-size: 14px;\n font-weight: 400;\n box-sizing: border-box;\n padding: 6px 12px;\n width: 40%;\n outline: none;\n border: 1px solid #ccc;\n font-size: 14px;\n color: #555;\n box-shadow: none !important;\n border-radius: 4px;\n &:hover,\n &:focus {\n border: 1px solid rgba(0, 0, 0, 0.87);\n }\n &::-moz-placeholder {\n color: #999;\n opacity: 1;\n }\n &:-ms-input-placeholder {\n color: #999;\n }\n &::-webkit-input-placeholder {\n color: #999;\n }\n"]);return Kl=function(){return e},e}var Jl=Ml.div(Gl()),eu=Ml.label(Xl()),tu=(Ml(Yl)(Kl()),__webpack_require__(20889)),ru=__webpack_require__(30020),nu=__webpack_require__(29468),ou={};ou.styleTagTransform=L(),ou.setAttributes=R(),ou.insert=j().bind(null,"head"),ou.domAPI=B(),ou.insertStyleElement=F(),D()(nu.A,ou);const iu=nu.A&&nu.A.locals?nu.A.locals:void 0;function au(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function su(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return au(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?au(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const lu=function(e){var t=e.handleDateChange,r=e.from,o=e.to,a=su((0,n.useState)([{startDate:new Date,endDate:new Date,key:"selection"}]),2),s=a[0],l=a[1],u=su((0,n.useState)(window.matchMedia("(max-width: 615px)").matches),2),c=u[0],d=u[1],f=su((0,n.useState)(window.matchMedia("(max-width: 1200px)").matches),2),p=f[0],h=f[1];window.addEventListener("resize",(function(){var e=window.matchMedia("(max-width: 1200px)").matches;e!==p&&h(e);var t=window.matchMedia("(max-width: 615px)").matches;t!==c&&d(t)})),(0,n.useEffect)((function(){var e=[],t=[];r&&(e=r.split("-")),o&&(t=o.split("-"));var n=r?new Date(Number(e[0]),Number(e[1])-1,Number(e[2])):new Date,i=o?new Date(Number(t[0]),Number(t[1])-1,Number(t[2])):n;l([{startDate:n,endDate:i,key:"selection"}])}),[r,o]);var m=function(e,r){l(e),e[0].startDate!==e[0].endDate&&t(e[0],r)},g=function(){t(s[0])};return i().createElement("div",{className:iu.dateRangeWrapper},c?i().createElement("div",{style:{display:"flex",flexDirection:"column"}},i().createElement(ru.ad,{onChange:function(e){return m([e.selection])},moveRangeOnFirstSelection:!1,ranges:s,direction:"horizontal"}),i().createElement(dt,{variant:"contained",size:"medium",sx:{display:"flex",alignItems:"center",alignSelf:"flex-end",marginRight:"16px",marginBottom:"16px",gap:"8px",width:"fit-content",backgroundColor:"#4A96D2",boxShadow:"none","&:hover":{backgroundColor:"#0B5BA6",boxShadow:"none"}},onClick:g},i().createElement("p",{style:{all:"unset"}},"CONFIRM"),i().createElement(tu.A,{style:{color:"white",width:"20px",height:"20px"}}))):i().createElement("div",{style:{display:"flex",flexDirection:"column"}},i().createElement("div",{style:{display:"flex"}},i().createElement(ru.HY,{ranges:s,onChange:function(e){return m([e.selection],!0)}}),i().createElement(ru.ad,{ranges:s,onChange:function(e){return m([e.selection])},showDateDisplay:!1,direction:"horizontal",months:p?1:2,"data-testid":"date-range-picker"})),i().createElement(dt,{variant:"contained",size:"medium",sx:{display:"flex",alignItems:"center",alignSelf:"flex-end",marginRight:"16px",marginBottom:"16px",gap:"8px",width:"fit-content",backgroundColor:"#4A96D2",boxShadow:"none","&:hover":{backgroundColor:"#0B5BA6",boxShadow:"none"}},onClick:g},i().createElement("p",{style:{all:"unset"}},"CONFIRM"),i().createElement(tu.A,{style:{color:"white",width:"20px",height:"20px"}}))))};function uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function du(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){cu(e,t,r[t])}))}return e}var fu=void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function pu(){throw new Error("setTimeout has not been defined")}function hu(){throw new Error("clearTimeout has not been defined")}var mu=pu,gu=hu;function vu(e){if(mu===setTimeout)return setTimeout(e,0);if((mu===pu||!mu)&&setTimeout)return mu=setTimeout,setTimeout(e,0);try{return mu(e,0)}catch(t){try{return mu.call(null,e,0)}catch(t){return mu.call(this,e,0)}}}"function"==typeof fu.setTimeout&&(mu=setTimeout),"function"==typeof fu.clearTimeout&&(gu=clearTimeout);var yu,bu=[],Au=!1,Ou=-1;function wu(){Au&&yu&&(Au=!1,yu.length?bu=yu.concat(bu):Ou=-1,bu.length&&Cu())}function Cu(){if(!Au){var e=vu(wu);Au=!0;for(var t=bu.length;t;){for(yu=bu,bu=[];++Ou<t;)yu&&yu[Ou].run();Ou=-1,t=bu.length}yu=null,Au=!1,function(e){if(gu===clearTimeout)return clearTimeout(e);if((gu===hu||!gu)&&clearTimeout)return gu=clearTimeout,clearTimeout(e);try{return gu(e)}catch(t){try{return gu.call(null,e)}catch(t){return gu.call(this,e)}}}(e)}}function _u(e,t){this.fun=e,this.array=t}function xu(){}_u.prototype.run=function(){this.fun.apply(null,this.array)};var ku=xu,Eu=xu,Su=xu,Du=xu,Pu=xu,Bu=xu,Tu=xu,ju=fu.performance||{},qu=ju.now||ju.mozNow||ju.msNow||ju.oNow||ju.webkitNow||function(){return(new Date).getTime()},Ru=new Date,Mu={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];bu.push(new _u(e,t)),1!==bu.length||Au||vu(Cu)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:ku,addListener:Eu,once:Su,off:Du,removeListener:Pu,removeAllListeners:Bu,emit:Tu,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*qu.call(ju),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Ru)/1e3}},Fu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function Nu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lu(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Iu,$u,Qu={exports:{}},Wu={},zu={};"production"===Mu.env.NODE_ENV?Qu.exports=function(){if(Iu)return Wu;Iu=1;var e=i(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,i){var s,l={},u=null,c=null;for(s in void 0!==i&&(u=""+i),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(c=r.ref),r)n.call(r,s)&&!a.hasOwnProperty(s)&&(l[s]=r[s]);if(e&&e.defaultProps)for(s in r=e.defaultProps)void 0===l[s]&&(l[s]=r[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return Wu.Fragment=r,Wu.jsx=s,Wu.jsxs=s,Wu}():Qu.exports=($u||($u=1,"production"!==Mu.env.NODE_ENV&&function(){var e,t=i(),r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=Symbol.iterator,v=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];!function(e,t,r){var n=v.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,o)}(0,e,r)}function b(e){return e.displayName||"Context"}function A(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case n:return"Portal";case s:return"Profiler";case a:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case u:return b(e)+".Consumer";case l:return b(e._context)+".Provider";case c:return function(e,t,r){var n=e.displayName;if(n)return n;var o=t.displayName||t.name||"";return""!==o?r+"("+o+")":r}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:A(e.type)||"Memo";case h:var r=e,i=r._payload,m=r._init;try{return A(m(i))}catch(e){return null}}return null}e=Symbol.for("react.module.reference");var O,w,C,_,x,k,E,S=Object.assign,D=0;function P(){}P.__reactDisabledLog=!0;var B,T=v.ReactCurrentDispatcher;function j(e,t,r){if(void 0===B)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);B=n&&n[1]||""}return"\n"+B+e}var q,R=!1,M="function"==typeof WeakMap?WeakMap:Map;function F(e,t){if(!e||R)return"";var r,n=q.get(e);if(void 0!==n)return n;R=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=T.current,T.current=null,function(){if(0===D){O=console.log,w=console.info,C=console.warn,_=console.error,x=console.group,k=console.groupCollapsed,E=console.groupEnd;var e={configurable:!0,enumerable:!0,value:P,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){r=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){r=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=r.stack.split("\n"),u=s.length-1,c=l.length-1;u>=1&&c>=0&&s[u]!==l[c];)c--;for(;u>=1&&c>=0;u--,c--)if(s[u]!==l[c]){if(1!==u||1!==c)do{if(u--,--c<0||s[u]!==l[c]){var d="\n"+s[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&q.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{R=!1,T.current=o,function(){if(0==--D){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:O}),info:S({},e,{value:w}),warn:S({},e,{value:C}),error:S({},e,{value:_}),group:S({},e,{value:x}),groupCollapsed:S({},e,{value:k}),groupEnd:S({},e,{value:E})})}D<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",p=f?j(f):"";return"function"==typeof e&&q.set(e,p),p}function N(e,t,r){if(null==e)return"";if("function"==typeof e)return F(e,!(!(n=e.prototype)||!n.isReactComponent));var n;if("string"==typeof e)return j(e);switch(e){case d:return j("Suspense");case f:return j("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return F(e.render,!1);case p:return N(e.type,t,r);case h:var o=e,i=o._payload,a=o._init;try{return N(a(i),t,r)}catch(e){}}return""}q=new M;var L=Object.prototype.hasOwnProperty,I={},$=v.ReactDebugCurrentFrame;function Q(e){if(e){var t=e._owner,r=N(e.type,e._source,t?t.type:null);$.setExtraStackFrame(r)}else $.setExtraStackFrame(null)}var W=Array.isArray;function z(e){return W(e)}function U(e){return""+e}function V(e){if(function(e){try{return U(e),!1}catch(e){return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),U(e)}var Z,Y,H,G=v.ReactCurrentOwner,X={key:!0,ref:!0,__self:!0,__source:!0};H={};var K,J=v.ReactCurrentOwner,ee=v.ReactDebugCurrentFrame;function te(e){if(e){var t=e._owner,r=N(e.type,e._source,t?t.type:null);ee.setExtraStackFrame(r)}else ee.setExtraStackFrame(null)}function re(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}function ne(){if(J.current){var e=A(J.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}K=!1;var oe={};function ie(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=ne();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!oe[r]){oe[r]=!0;var n="";e&&e._owner&&e._owner!==J.current&&(n=" It was passed a child from "+A(e._owner.type)+"."),te(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),te(null)}}}function ae(e,t){if("object"==typeof e)if(z(e))for(var r=0;r<e.length;r++){var n=e[r];re(n)&&ie(n,t)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)re(i.value)&&ie(i.value,t)}}function se(t,n,i,g,v,b){var O=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===s||t===a||t===d||t===f||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===l||t.$$typeof===u||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)}(t);if(!O){var w="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C,_=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(v);w+=_||ne(),null===t?C="null":z(t)?C="array":void 0!==t&&t.$$typeof===r?(C="<"+(A(t.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):C=typeof t,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,w)}var x=function(e,t,n,o,i){var a,s={},l=null,u=null;for(a in void 0!==n&&(V(n),l=""+n),function(e){if(L.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(V(t.key),l=""+t.key),function(e){if(L.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(u=t.ref,function(e,t){if("string"==typeof e.ref&&G.current&&t&&G.current.stateNode!==t){var r=A(G.current.type);H[r]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',A(G.current.type),e.ref),H[r]=!0)}}(t,i)),t)L.call(t,a)&&!X.hasOwnProperty(a)&&(s[a]=t[a]);if(e&&e.defaultProps){var c=e.defaultProps;for(a in c)void 0===s[a]&&(s[a]=c[a])}if(l||u){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var r=function(){Z||(Z=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(s,d),u&&function(e,t){var r=function(){Y||(Y=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}(s,d)}return function(e,t,n,o,i,a,s){var l={$$typeof:r,type:e,key:t,ref:n,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(e,l,u,i,o,G.current,s)}(t,n,i,v,b);if(null==x)return x;if(O){var k=n.children;if(void 0!==k)if(g)if(z(k)){for(var E=0;E<k.length;E++)ae(k[E],t);Object.freeze&&Object.freeze(k)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ae(k,t)}return t===o?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){te(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),te(null);break}}null!==e.ref&&(te(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),te(null))}(x):function(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==c&&r.$$typeof!==p)return;t=r.propTypes}if(t){var n=A(r);!function(e,t,r,n,o){var i=Function.call.bind(L);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(Q(o),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,a,typeof s),Q(null)),s instanceof Error&&!(s.message in I)&&(I[s.message]=!0,Q(o),y("Failed %s type: %s",r,s.message),Q(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||K||(K=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(x),x}zu.Fragment=o,zu.jsx=function(e,t,r){return se(e,t,r,!1)},zu.jsxs=function(e,t,r){return se(e,t,r,!0)}}()),zu);var Uu=Qu.exports;function Vu(e){return Vu="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},Vu(e)}function Zu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yu(e){var t=function(e){if("object"!=Vu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Vu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vu(t)?t:t+""}function Hu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yu(n.key),n)}}function Gu(e,t,r){return t&&Hu(e.prototype,t),r&&Hu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ku(e,t){return Ku=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ku(e,t)}function Ju(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&&Ku(e,t)}function ec(e,t){if(t&&("object"===Vu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xu(e)}function tc(e){return tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tc(e)}function rc(e,t,r){return(t=Yu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nc(e){if(Array.isArray(e))return e}function oc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ic(e,t){if(e){if("string"==typeof e)return oc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oc(e,t):void 0}}function ac(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function sc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sc(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var uc={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},cc=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Zu(this,e),this.init(t,r)}return Gu(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||uc,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,r,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,lc(lc({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}(),dc=new cc,fc=function(){function e(){Zu(this,e),this.observers={}}return Gu(e,[{key:"on",value:function(e,t){var r=this;return e.split(" ").forEach((function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,r)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(r))}))}}]),e}();function pc(){var e,t,r=new Promise((function(r,n){e=r,t=n}));return r.resolve=e,r.reject=t,r}function hc(e){return null==e?"":""+e}function mc(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=n(i.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:n(i.shift())}}function gc(e,t,r){var n=mc(e,t,Object);n.obj[n.k]=r}function vc(e,t){var r=mc(e,t),n=r.obj,o=r.k;if(n)return n[o]}function yc(e,t,r){for(var n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?"string"==typeof e[n]||e[n]instanceof String||"string"==typeof t[n]||t[n]instanceof String?r&&(e[n]=t[n]):yc(e[n],t[n],r):e[n]=t[n]);return e}function bc(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Ac={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Oc(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Ac[e]})):e}var wc="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Cc=[" ",",","?","!",";"];function _c(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),o=e,i=0;i<n.length;++i){if(!o)return;if("string"==typeof o[n[i]]&&i+1<n.length)return;if(void 0===o[n[i]]){for(var a=2,s=n.slice(i,i+a).join(r),l=o[s];void 0===l&&n.length>i+a;)a++,l=o[s=n.slice(i,i+a).join(r)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var u=n.slice(i+a).join(r);return u?_c(l,u,r):void 0}o=o[n[i]]}return o}}function xc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xc(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ec=function(e){Ju(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=tc(t);if(r){var o=tc(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return ec(this,e)});function o(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Zu(this,o),t=n.call(this),wc&&fc.call(Xu(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return Gu(o,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];r&&"string"!=typeof r&&(a=a.concat(r)),r&&"string"==typeof r&&(a=a.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(a=e.split("."));var s=vc(this.data,a);return s||!i||"string"!=typeof r?s:_c(this.data&&this.data[e]&&this.data[e][t],r,o)}},{key:"addResource",value:function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(n=t,t=(a=e.split("."))[1]),this.addNamespaces(t),gc(this.data,a,n),o.silent||this.emit("added",e,t,r,n)}},{key:"addResources",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in r)"string"!=typeof r[o]&&"[object Array]"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(n=r,r=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=vc(this.data,a)||{};n?yc(s,r,o):s=kc(kc({},s),r),gc(this.data,a,s),i.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?kc(kc({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),o}(fc),Sc={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,r,n,o))})),t}};function Dc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Bc={},Tc=function(e){Ju(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=tc(t);if(r){var o=tc(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return ec(this,e)});function o(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Zu(this,o),t=n.call(this),wc&&fc.call(Xu(t)),function(e,t,r){["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((function(e){t[e]&&(r[e]=t[e])}))}(0,e,Xu(t)),t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=dc.create("translator"),t}return Gu(o,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=r&&e.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,r){t=t||"",r=r||"";var n=Cc.filter((function(e){return t.indexOf(e)<0&&r.indexOf(e)<0}));if(0===n.length)return!0;var o=new RegExp("(".concat(n.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(r);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}(e,r,n));if(i&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var l=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(l[0])>-1)&&(o=l.shift()),e=l.join(n)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,r){var n=this;if("object"!==Vu(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===Vu(t)&&(t=Pc({},t)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),l=s.key,u=s.namespaces,c=u[u.length-1],d=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(f){var p=t.nsSeparator||this.options.nsSeparator;return i?{res:"".concat(c).concat(p).concat(l),usedKey:l,exactUsedKey:l,usedLng:d,usedNS:c}:"".concat(c).concat(p).concat(l)}return i?{res:l,usedKey:l,exactUsedKey:l,usedLng:d,usedNS:c}:l}var h=this.resolve(e,t),m=h&&h.res,g=h&&h.usedKey||l,v=h&&h.exactUsedKey||l,y=Object.prototype.toString.apply(m),b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject;if(A&&m&&"string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,m,Pc(Pc({},t),{},{ns:u})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return i?(h.res=O,h):O}if(a){var w="[object Array]"===y,C=w?[]:{},_=w?v:g;for(var x in m)if(Object.prototype.hasOwnProperty.call(m,x)){var k="".concat(_).concat(a).concat(x);C[x]=this.translate(k,Pc(Pc({},t),{joinArrays:!1,ns:u})),C[x]===k&&(C[x]=m[x])}m=C}}else if(A&&"string"==typeof b&&"[object Array]"===y)(m=m.join(b))&&(m=this.extendTranslation(m,e,t,r));else{var E=!1,S=!1,D=void 0!==t.count&&"string"!=typeof t.count,P=o.hasDefaultValue(t),B=D?this.pluralResolver.getSuffix(d,t.count,t):"",T=t["defaultValue".concat(B)]||t.defaultValue;!this.isValidLookup(m)&&P&&(E=!0,m=T),this.isValidLookup(m)||(S=!0,m=l);var j=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:m,q=P&&T!==m&&this.options.updateMissing;if(S||E||q){if(this.logger.log(q?"updateKey":"missingKey",d,c,l,q?T:m),a){var R=this.resolve(l,Pc(Pc({},t),{},{keySeparator:!1}));R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var M=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var N=0;N<F.length;N++)M.push(F[N]);else"all"===this.options.saveMissingTo?M=this.languageUtils.toResolveHierarchy(t.lng||this.language):M.push(t.lng||this.language);var L=function(e,r,o){var i=P&&o!==m?o:j;n.options.missingKeyHandler?n.options.missingKeyHandler(e,c,r,i,q,t):n.backendConnector&&n.backendConnector.saveMissing&&n.backendConnector.saveMissing(e,c,r,i,q,t),n.emit("missingKey",e,c,r,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&D?M.forEach((function(e){n.pluralResolver.getSuffixes(e,t).forEach((function(r){L([e],l+r,t["defaultValue".concat(r)]||T)}))})):L(M,l,T))}m=this.extendTranslation(m,e,t,h,r),S&&m===l&&this.options.appendNamespaceToMissingKey&&(m="".concat(c,":").concat(l)),(S||E)&&this.options.parseMissingKeyHandler&&(m="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(c,":").concat(l):l,E?m:void 0):this.options.parseMissingKeyHandler(m))}return i?(h.res=m,h):m}},{key:"extendTranslation",value:function(e,t,r,n,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,Pc(Pc({},this.options.interpolation.defaultVariables),r),n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(Pc(Pc({},r),{interpolation:Pc(Pc({},this.options.interpolation),r.interpolation)}));var a,s="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var u=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(u=Pc(Pc({},this.options.interpolation.defaultVariables),u)),e=this.interpolator.interpolate(e,u,r.lng||this.language,r),s){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return o&&o[0]===n[0]&&!r.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(t[0])),null):i.translate.apply(i,n.concat([t]))}),r)),r.interpolation&&this.interpolator.reset()}var d=r.postProcess||this.options.postProcess,f="string"==typeof d?[d]:d;return null!=e&&f&&f.length&&!1!==r.applyPostProcessor&&(e=Sc.handle(f,e,t,this.options&&this.options.postProcessPassResolved?Pc({i18nResolved:n},r):r,this)),e}},{key:"resolve",value:function(e){var t,r,n,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),u=l.key;r=u;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,f=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!Bc["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(Bc["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(r,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(r){if(!a.isValidLookup(t)){o=r;var i,l=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(l,u,r,e,s);else{var c;d&&(c=a.pluralResolver.getSuffix(r,s.count,s));var h="".concat(a.options.pluralSeparator,"zero");if(d&&(l.push(u+c),f&&l.push(u+h)),p){var m="".concat(u).concat(a.options.contextSeparator).concat(s.context);l.push(m),d&&(l.push(m+c),f&&l.push(m+h))}}for(;i=l.pop();)a.isValidLookup(t)||(n=i,t=a.getResource(r,e,i,s))}})))}))}})),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),o}(fc);function jc(e){return e.charAt(0).toUpperCase()+e.slice(1)}var qc=function(){function e(t){Zu(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=dc.create("languageUtils")}return Gu(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=jc(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=jc(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=jc(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach((function(e){if(!t){var n=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(n)||(t=n)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var n=r.getLanguagePartFromCode(e);if(r.isSupportedCode(n))return t=n;t=r.options.supportedLngs.find((function(e){return e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(r.isSupportedCode(e)?o.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach((function(e){o.indexOf(e)<0&&i(r.formatLanguageCode(e))})),o}}]),e}(),Rc=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Mc={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Fc=["v1","v2","v3"],Nc={zero:0,one:1,two:2,few:3,many:4,other:5},Lc=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Zu(this,e),this.languageUtils=t,this.options=r,this.logger=dc.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){var e={};return Rc.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:Mc[t.fc]}}))})),e}()}return Gu(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((function(e,t){return Nc[e]-Nc[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):n.numbers.map((function(n){return t.getSuffix(e,n,r)})):[]}},{key:"getSuffix",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var r=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!Fc.includes(this.options.compatibilityJSON)}}]),e}();function Ic(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ic(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ic(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qc(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=function(e,t,r){var n=vc(e,r);return void 0!==n?n:vc(t,r)}(e,t,r);return!i&&o&&"string"==typeof r&&void 0===(i=_c(e,r,n))&&(i=_c(t,r,n)),i}var Wc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Zu(this,e),this.logger=dc.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Gu(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Oc,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?bc(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?bc(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?bc(t.nestingPrefix):t.nestingPrefixEscaped||bc("$t("),this.nestingSuffix=t.nestingSuffix?bc(t.nestingSuffix):t.nestingSuffixEscaped||bc(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,n){var o,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var o=Qc(t,l,e,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(o,void 0,r,$c($c($c({},n),t),{},{interpolationkey:e})):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),u=i.join(s.formatSeparator).trim();return s.format(Qc(t,l,a,s.options.keySeparator,s.options.ignoreJSONStructure),u,r,$c($c($c({},n),t),{},{interpolationkey:a}))};this.resetRegExp();var d=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,f=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){var r=o[1].trim();if(void 0===(i=c(r)))if("function"==typeof d){var l=d(e,o,n);i="string"==typeof l?l:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))i="";else{if(f){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(r," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=hc(i));var u=t.safeValue(i);if(e=e.replace(o[0],u),f?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var r,n,o,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var n=e.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(n[1]);e=n[0];var a=(i=this.interpolate(i,o)).match(/'/g),s=i.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o=$c($c({},t),o))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(r).concat(i)}return delete o.defaultValue,e}for(;r=this.nestingRegexp.exec(e);){var l=[];(o=(o=$c({},a)).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;var u=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var c=r[1].split(this.formatSeparator).map((function(e){return e.trim()}));r[1]=c.shift(),l=c,u=!0}if((n=t(s.call(this,r[1].trim(),o),o))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=hc(n)),n||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),n=""),u&&(n=l.reduce((function(e,t){return i.format(e,t,a.lng,$c($c({},a),{},{interpolationkey:r[1].trim()}))}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}]),e}();function zc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Uc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zc(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vc(e){var t={};return function(r,n,o){var i=n+JSON.stringify(o),a=t[i];return a||(a=e(n,o),t[i]=a),a(r)}}var Zc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Zu(this,e),this.logger=dc.create("formatter"),this.options=t,this.formats={number:Vc((function(e,t){var r=new Intl.NumberFormat(e,Uc({},t));return function(e){return r.format(e)}})),currency:Vc((function(e,t){var r=new Intl.NumberFormat(e,Uc(Uc({},t),{},{style:"currency"}));return function(e){return r.format(e)}})),datetime:Vc((function(e,t){var r=new Intl.DateTimeFormat(e,Uc({},t));return function(e){return r.format(e)}})),relativetime:Vc((function(e,t){var r=new Intl.RelativeTimeFormat(e,Uc({},t));return function(e){return r.format(e,t.range||"day")}})),list:Vc((function(e,t){var r=new Intl.ListFormat(e,Uc({},t));return function(e){return r.format(e)}}))},this.init(t)}return Gu(e,[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=Vc(t)}},{key:"format",value:function(e,t,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.split(this.formatSeparator).reduce((function(e,t){var i=function(e){var t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var o=n[1].substring(0,n[1].length-1);"currency"===t&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach((function(e){if(e){var t=function(e){return nc(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ic(e)||ac()}(e.split(":")),n=t[0],o=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");r[n.trim()]||(r[n.trim()]=o),"false"===o&&(r[n.trim()]=!1),"true"===o&&(r[n.trim()]=!0),isNaN(o)||(r[n.trim()]=parseInt(o,10))}}))}return{formatName:t,formatOptions:r}}(t),a=i.formatName,s=i.formatOptions;if(n.formats[a]){var l=e;try{var u=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},c=u.locale||u.lng||o.locale||o.lng||r;l=n.formats[a](e,c,Uc(Uc(Uc({},s),o),u))}catch(e){n.logger.warn(e)}return l}return n.logger.warn("there was no format function for ".concat(a)),e}),e);return i}}]),e}();function Yc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yc(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Gc=function(e){Ju(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=tc(t);if(r){var o=tc(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return ec(this,e)});function o(e,t,r){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Zu(this,o),i=n.call(this),wc&&fc.call(Xu(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=dc.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=a.maxParallelReads||10,i.readingCalls=0,i.maxRetries=a.maxRetries>=0?a.maxRetries:5,i.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return Gu(o,[{key:"queueLoad",value:function(e,t,r,n){var o=this,i={},a={},s={},l={};return e.forEach((function(e){var n=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!r.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?void 0===a[s]&&(a[s]=!0):(o.state[s]=1,n=!1,void 0===a[s]&&(a[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===l[t]&&(l[t]=!0)))})),n||(s[e]=!0)})),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,r){var n=e.split("|"),o=n[0],i=n[1];t&&this.emit("failedLoading",o,i,t),r&&this.store.addResourceBundle(o,i,r),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(r){!function(e,t,r){var n=mc(e,t,Object),o=n.obj,i=n.k;o[i]=o[i]||[],o[i].push(r)}(r.loaded,[o],i),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach((function(e){a[e]||(a[e]={});var t=r.loaded[e];t.length&&t.forEach((function(t){void 0===a[e][t]&&(a[e][t]=!0)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:r,tried:o,wait:i,callback:a});else{this.readingCalls++;var s=function(s,l){if(n.readingCalls--,n.waitingReads.length>0){var u=n.waitingReads.shift();n.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}s&&l&&o<n.maxRetries?setTimeout((function(){n.read.call(n,e,t,r,o+1,2*i,a)}),i):a(s,l)},l=this.backend[r].bind(this.backend);if(2!==l.length)return l(e,t,s);try{var u=l(e,t);u&&"function"==typeof u.then?u.then((function(e){return s(null,e)})).catch(s):s(null,u)}catch(e){s(e)}}}},{key:"prepareLoading",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(function(n,a){n&&t.logger.warn("".concat(r,"loading namespace ").concat(i," for language ").concat(o," failed"),n),!n&&a&&t.logger.log("".concat(r,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,n,a)}))}},{key:"saveMissing",value:function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=r&&""!==r){if(this.backend&&this.backend.create){var s=Hc(Hc({},i),{},{isUpdate:o}),l=this.backend.create.bind(this.backend);if(l.length<6)try{var u;(u=5===l.length?l(e,t,r,n,s):l(e,t,r,n))&&"function"==typeof u.then?u.then((function(e){return a(null,e)})).catch(a):a(null,u)}catch(e){a(e)}else l(e,t,r,n,a,s)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}]),o}(fc);function Xc(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Vu(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Vu(e[2])||"object"===Vu(e[3])){var r=e[3]||e[2];Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,r,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Kc(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Jc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ed(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jc(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function td(){}var rd=function(e){Ju(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=tc(t);if(r){var o=tc(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return ec(this,e)});function o(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(Zu(this,o),e=n.call(this),wc&&fc.call(Xu(e)),e.options=Kc(r),e.services={},e.logger=dc,e.modules={external:[]},t=Xu(e),Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((function(e){"function"==typeof t[e]&&(t[e]=t[e].bind(t))})),i&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,i),ec(e,Xu(e));setTimeout((function(){e.init(r,i)}),0)}return e}return Gu(o,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var n=Xc();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=ed(ed(ed({},n),this.options),Kc(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=ed(ed({},n.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var i;this.modules.logger?dc.init(o(this.modules.logger),this.options):dc.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=Zc);var a=new qc(this.options);this.store=new Ec(this.options.resources,this.options);var s=this.services;s.logger=dc,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new Lc(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!i||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(s.formatter=o(i),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new Wc(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Gc(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit.apply(e,[t].concat(n))})),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new Tc(this.services,this.options),this.translator.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit.apply(e,[t].concat(n))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,r||(r=td),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}}));var u=pc(),c=function(){var t=function(t,n){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(n),r(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:td,n="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return r();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};n?i(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)})),this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)}))}else r(null)}},{key:"reloadResources",value:function(e,t,r){var n=pc();return e||(e=this.languages),t||(t=this.options.ns),r||(r=td),this.services.backendConnector.reload(e,t,(function(e){n.resolve(),r(e)})),n}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Sc.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var r=this.languages[t];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var n=pc();this.emit("languageChanging",e);var o=function(e){r.language=e,r.languages=r.services.languageUtils.toResolveHierarchy(e),r.resolvedLanguage=void 0,r.setResolvedLanguage(e)},i=function(i){e||i||!r.services.languageDetector||(i=[]);var a="string"==typeof i?i:r.services.languageUtils.getBestMatchFromCodes(i);a&&(r.language||o(a),r.translator.language||r.translator.changeLanguage(a),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage&&r.services.languageDetector.cacheUserLanguage(a)),r.loadResources(a,(function(e){!function(e,i){i?(o(i),r.translator.changeLanguage(i),r.isLanguageChangingTo=void 0,r.emit("languageChanged",i),r.logger.log("languageChanged",i)):r.isLanguageChangingTo=void 0,n.resolve((function(){return r.t.apply(r,arguments)})),t&&t(e,(function(){return r.t.apply(r,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t,r){var n=this,o=function e(t,o){var i;if("object"!==Vu(o)){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];i=n.options.overloadTranslationOptionHandler([t,o].concat(s))}else i=ed({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||r||e.keyPrefix;var u,c=n.options.keySeparator||".";return u=i.keyPrefix&&Array.isArray(t)?t.map((function(e){return"".concat(i.keyPrefix).concat(c).concat(e)})):i.keyPrefix?"".concat(i.keyPrefix).concat(c).concat(t):t,n.t(u,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};if(r.precheck){var s=r.precheck(this,a);if(void 0!==s)return s}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(n,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,n=pc();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=pc();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],o=e.filter((function(e){return n.indexOf(e)<0}));return o.length?(this.options.preload=n.concat(o),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var t=this.services&&this.services.languageUtils||new qc(Xc());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:td,n=ed(ed(ed({},this.options),t),{isClone:!0}),i=new o(n);return void 0===t.debug&&void 0===t.prefix||(i.logger=i.logger.clone(t)),["store","services","language"].forEach((function(t){i[t]=e[t]})),i.services=ed({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Tc(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];i.emit.apply(i,[e].concat(r))})),i.init(n,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),o}(fc);rc(rd,"createInstance",(function(){return new rd(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}));var nd=rd.createInstance();function od(){if(console&&console.warn){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}nd.createInstance=rd.createInstance,nd.createInstance,nd.dir,nd.init,nd.loadResources,nd.reloadResources,nd.use,nd.changeLanguage,nd.getFixedT,nd.t,nd.exists,nd.setDefaultNamespace,nd.hasLoadedNamespace,nd.loadNamespaces,nd.loadLanguages;var id={};function ad(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&id[t[0]]||("string"==typeof t[0]&&(id[t[0]]=new Date),od.apply(void 0,t))}function sd(e,t,r){e.loadNamespaces(t,(function(){e.isInitialized?r():e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),r()}))}))}var ld=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ud={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},cd=function(e){return ud[e]};function dd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dd(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var pd,hd={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(ld,cd)}},md={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};hd=fd(fd({},hd),e)}(e.options.react),function(e){pd=e}(e)}},gd=(0,n.createContext)(),vd=function(){function e(){Zu(this,e),this.usedNamespaces={}}return Gu(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function yd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yd(Object(r),!0).forEach((function(t){rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ad(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.i18n,o=(0,n.useContext)(gd)||{},i=o.i18n,a=o.defaultNS,s=r||i||pd;if(s&&!s.reportNamespaces&&(s.reportNamespaces=new vd),!s){ad("You will need to pass in an i18next instance by using initReactI18next");var l=function(e,t){return"string"==typeof t?t:t&&"object"===Vu(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},u=[l,{},!1];return u.t=l,u.i18n={},u.ready=!1,u}s.options.react&&void 0!==s.options.react.wait&&ad("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=bd(bd(bd({},hd),s.options.react),t),d=c.useSuspense,f=c.keyPrefix,p=e||a||s.options&&s.options.defaultNS;p="string"==typeof p?[p]:p||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(p);var h=(s.isInitialized||s.initializedStoreOnce)&&p.every((function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{precheck:function(t,n){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(n,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(n,e)||o&&!a(i,e)))}(e,t,r):(ad("i18n.languages were undefined or empty",t.languages),!0)}(e,s,c)}));function m(){return s.getFixedT(null,"fallback"===c.nsMode?p:p[0],f)}var g=function(e,t){return nc(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||ic(e,t)||ac()}((0,n.useState)(m),2),v=g[0],y=g[1],b=p.join(),A=function(e,t){var r=(0,n.useRef)();return(0,n.useEffect)((function(){r.current=e}),[e,t]),r.current}(b),O=(0,n.useRef)(!0);(0,n.useEffect)((function(){var e=c.bindI18n,t=c.bindI18nStore;function r(){O.current&&y(m)}return O.current=!0,h||d||sd(s,p,(function(){O.current&&y(m)})),h&&A&&A!==b&&O.current&&y(m),e&&s&&s.on(e,r),t&&s&&s.store.on(t,r),function(){O.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,r)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,r)}))}}),[s,b]);var w=(0,n.useRef)(!0);(0,n.useEffect)((function(){O.current&&!w.current&&y(m),w.current=!1}),[s,f]);var C=[v,s,h];if(C.t=v,C.i18n=s,C.ready=h,h)return C;if(!h&&!d)return C;throw new Promise((function(e){sd(s,p,(function(){e()}))}))}var Od=[],wd=Od.forEach,Cd=Od.slice,_d=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,xd={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var r=function(e){for(var t="".concat(e,"="),r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null}(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*r*1e3)),n&&(o.domain=n),document.cookie=function(e,t,r){var n=r||{};n.path=n.path||"/";var o=encodeURIComponent(t),i="".concat(e,"=").concat(o);if(n.maxAge>0){var a=n.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");i+="; Max-Age=".concat(Math.floor(a))}if(n.domain){if(!_d.test(n.domain))throw new TypeError("option domain is invalid");i+="; Domain=".concat(n.domain)}if(n.path){if(!_d.test(n.path))throw new TypeError("option path is invalid");i+="; Path=".concat(n.path)}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw new TypeError("option expires is invalid");i+="; Expires=".concat(n.expires.toUTCString())}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i}(e,encodeURIComponent(t),o)}(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},kd={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var n=r.substring(1).split("&"),o=0;o<n.length;o++){var i=n[o].indexOf("=");i>0&&n[o].substring(0,i)===e.lookupQuerystring&&(t=n[o].substring(i+1))}}return t}},Ed=null,Sd=function(){if(null!==Ed)return Ed;try{Ed="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){Ed=!1}return Ed},Dd={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&Sd()){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&Sd()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},Pd=null,Bd=function(){if(null!==Pd)return Pd;try{Pd="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){Pd=!1}return Pd},Td={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&Bd()){var r=window.sessionStorage.getItem(e.lookupSessionStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&Bd()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},jd={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)t.push(navigator.languages[r]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},qd={name:"htmlTag",lookup:function(e){var t,r=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return r&&"function"==typeof r.getAttribute&&(t=r.getAttribute("lang")),t}},Rd={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace("/","")}else t=r[0].replace("/","")}return t}},Md={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,r="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[t]}},Fd=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Zu(this,e),this.type="languageDetector",this.detectors={},this.init(t,r)}return Gu(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return wd.call(Cd.call(arguments,1),(function(t){if(t)for(var r in t)void 0===e[r]&&(e[r]=t[r])})),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(xd),this.addDetector(kd),this.addDetector(Dd),this.addDetector(Td),this.addDetector(jd),this.addDetector(qd),this.addDetector(Rd),this.addDetector(Md)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var r=[];return e.forEach((function(e){if(t.detectors[e]){var n=t.detectors[e].lookup(t.options);n&&"string"==typeof n&&(n=[n]),n&&(r=r.concat(n))}})),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var r=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){r.detectors[t]&&r.detectors[t].cacheUserLanguage(e,r.options)})))}}]),e}();Fd.type="languageDetector";function Nd(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}nd.use(Fd).use(md).init({resources:{en:{translation:{info:"No media service available",error:"An unexpected error occurred",defaultUploaderLabel:"Drag file here or click to browse ...",uploaderLabel:'Drag file of type "{{type}}" here or click to browse ...',uploading:"Uploading ..."}},de:{translation:{info:"Es steht kein Media Service zur Verfügung",error:"Ein unerwarteter Fehler ist aufgetreten",defaultUploaderLabel:"Datei hierher ziehen oder zum Durchsuchen klicken ...",uploaderLabel:'Datei vom Typ "{{type}}" hierher ziehen oder zum Durchsuchen klicken ...',uploading:"Lade hoch ..."}}},fallbackLng:"en"});var Ld=0;function Id(e){return"__private_"+Ld+++"_"+e}function $d(e,t,r){const n=[];return e.forEach((e=>"string"!=typeof e?n.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&n.push(e),t<o.length-1&&n.push(r)})))),n}function Qd(e,t){const r=/\$/g;let n=[e];if(null==t)return n;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=r[Symbol.replace](o,"$$$$")),n=$d(n,new RegExp(`%\\{${e}\\}`,"g"),o)}return n}const Wd=e=>{throw new Error(`missing string: ${e}`)};var zd=Id("onMissingKey"),Ud=Id("apply");class Vd{constructor(e,t){let{onMissingKey:r=Wd}=void 0===t?{}:t;Object.defineProperty(this,Ud,{value:Zd}),Object.defineProperty(this,zd,{writable:!0,value:void 0}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Nd(this,Ud)[Ud],this):Nd(this,Ud)[Ud](e),Nd(this,zd)[zd]=r}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){let r=this.locale.strings[e];if(null==r&&(Nd(this,zd)[zd](e),r=e),"object"==typeof r){if(t&&void 0!==t.smart_count)return Qd(r[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}if("string"!=typeof r)throw new Error("string was not a string");return Qd(r,t)}}function Zd(e){if(null==e||!e.strings)return;const t=this.locale;Object.assign(this.locale,{strings:{...t.strings,...e.strings},pluralize:e.pluralize||t.pluralize})}var Yd=function(){var e={},t=e._fns={};return e.emit=function(e,r,n,o,i,a,s){var l=function(e){for(var r=t[e]?t[e]:[],n=e.indexOf(":"),o=-1===n?[e]:[e.substring(0,n),e.substring(n+1)],i=Object.keys(t),a=0,s=i.length;a<s;a++){var l=i[a];if("*"===l&&(r=r.concat(t[l])),2===o.length&&o[0]===l){r=r.concat(t[l]);break}}return r}(e);l.length&&function(e,t,r){for(var n=0,o=t.length;n<o&&t[n];n++)t[n].event=e,t[n].apply(t[n],r)}(e,l,[r,n,o,i,a,s])},e.on=function(e,r){t[e]||(t[e]=[]),t[e].push(r)},e.once=function(t,r){this.on(t,(function n(){r.apply(this,arguments),e.off(t,n)}))},e.off=function(e,t){var r=[];if(e&&t)for(var n=this._fns[e],o=0,i=n?n.length:0;o<i;o++)n[o]!==t&&r.push(n[o]);r.length?this._fns[e]=r:delete this._fns[e]},e},Hd=Nu(Yd),Gd=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Xd="object"==typeof Fu&&Fu&&Fu.Object===Object&&Fu,Kd="object"==typeof self&&self&&self.Object===Object&&self,Jd=Xd||Kd||Function("return this")(),ef=Jd,tf=/\s/,rf=function(e){for(var t=e.length;t--&&tf.test(e.charAt(t)););return t},nf=/^\s+/,of=Jd.Symbol,af=of,sf=Object.prototype,lf=sf.hasOwnProperty,uf=sf.toString,cf=af?af.toStringTag:void 0,df=Object.prototype.toString,ff=function(e){var t=lf.call(e,cf),r=e[cf];try{e[cf]=void 0;var n=!0}catch(e){}var o=uf.call(e);return n&&(t?e[cf]=r:delete e[cf]),o},pf=of?of.toStringTag:void 0,hf=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":pf&&pf in Object(e)?ff(e):function(e){return df.call(e)}(e)},mf=function(e){return e?e.slice(0,rf(e)+1).replace(nf,""):e},gf=Gd,vf=/^[-+]0x[0-9a-f]+$/i,yf=/^0b[01]+$/i,bf=/^0o[0-7]+$/i,Af=parseInt,Of=Gd,wf=function(){return ef.Date.now()},Cf=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==hf(e)}(e))return NaN;if(gf(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=gf(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=mf(e);var r=yf.test(e);return r||bf.test(e)?Af(e.slice(2),r?2:8):vf.test(e)?NaN:+e},_f=Math.max,xf=Math.min,kf=function(e,t,r){var n,o,i,a,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,i=o;return n=o=void 0,u=t,a=e.apply(i,r)}function h(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-u>=i}function m(){var e=wf();if(h(e))return g(e);s=setTimeout(m,function(e){var r=t-(e-l);return d?xf(r,i-(e-u)):r}(e))}function g(e){return s=void 0,f&&n?p(e):(n=o=void 0,a)}function v(){var e=wf(),r=h(e);if(n=arguments,o=this,l=e,r){if(void 0===s)return function(e){return u=e,s=setTimeout(m,t),c?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=Cf(t)||0,Of(r)&&(c=!!r.leading,i=(d="maxWait"in r)?_f(Cf(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(wf())},v},Ef=Gd,Sf=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Ef(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),kf(e,t,{leading:n,maxWait:t,trailing:o})},Df=Nu(Sf);function Pf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Bf=0;function Tf(e){return"__private_"+Bf+++"_"+e}var jf=Tf("callbacks"),qf=Tf("publish");class Rf{constructor(){Object.defineProperty(this,qf,{value:Mf}),this.state={},Object.defineProperty(this,jf,{writable:!0,value:new Set})}getState(){return this.state}setState(e){const t={...this.state},r={...this.state,...e};this.state=r,Pf(this,qf)[qf](t,r,e)}subscribe(e){return Pf(this,jf)[jf].add(e),()=>{Pf(this,jf)[jf].delete(e)}}}function Mf(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Pf(this,jf)[jf].forEach((e=>{e(...t)}))}function Ff(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}Rf.VERSION="3.2.2";var Nf={__proto__:null,md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Lf(e){var t;if(e.type)return e.type;const r=e.name?null==(t=Ff(e.name).extension)?void 0:t.toLowerCase():null;return r&&r in Nf?Nf[r]:"application/octet-stream"}function If(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}function $f(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const r=t[1].split(".",2),n=parseInt(r[0],10),o=parseInt(r[1],10);return n<15||15===n&&o<15063||n>18||18===n&&o>=18218}function Qf(e){return e<10?`0${e}`:e.toString()}function Wf(){const e=new Date;return`${Qf(e.getHours())}:${Qf(e.getMinutes())}:${Qf(e.getSeconds())}`}const zf={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${Wf()}]`,...t)}},Uf={debug:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.debug(`[Uppy] [${Wf()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.warn(`[Uppy] [${Wf()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${Wf()}]`,...t)}};var Vf=Nu((function(e){if("number"!=typeof e||Number.isNaN(e))throw new TypeError("Expected a number, got "+typeof e);const t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";const n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/1024**n);const o=r[n];return e>=10||e%1==0?`${(t?"-":"")+e.toFixed(0)} ${o}`:`${(t?"-":"")+e.toFixed(1)} ${o}`}));function Zf(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Zf.prototype.match=function(e){var t,r,n=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(r=(e||"").split(this.separator),t=0;n&&t<i;t++)"*"!==o[t]&&(n=t<r.length&&o[t]===r[t]);n=n&&r}else n=!1;else if("function"==typeof e.splice)for(n=[],t=e.length;t--;)this.match(e[t])&&(n[n.length]=e[t]);else if("object"==typeof e)for(var a in n={},e)this.match(a)&&(n[a]=e[a]);return n};var Yf=/[\/\+\.]/,Hf=Nu((function(e,t){function r(t){var r=function(e,t,r){var n=new Zf(e,r||/[\/\.]/);return void 0!==t?n.match(t):n}(t,e,Yf);return r&&r.length>=2}return t?r(t.split(";")[0]):r}));const Gf={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class Xf extends Error{constructor(e,t){var r;super(e),this.isRestriction=!0,this.isUserFacing=null==(r=null==t?void 0:t.isUserFacing)||r,null!=t&&t.file&&(this.file=t.file)}}class Kf{constructor(e,t){this.i18n=t,this.getOpts=()=>{var t;const r=e();if(null!=(null==(t=r.restrictions)?void 0:t.allowedFileTypes)&&!Array.isArray(r.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return r}}validateAggregateRestrictions(e,t){const{maxTotalFileSize:r,maxNumberOfFiles:n}=this.getOpts().restrictions;if(n){const r=e.filter((e=>!e.isGhost));if(r.length+t.length>n)throw new Xf(`${this.i18n("youCanOnlyUploadX",{smart_count:n})}`)}if(r){let n=e.reduce(((e,t)=>{var r;return e+(null!=(r=t.size)?r:0)}),0);for(const e of t)if(null!=e.size&&(n+=e.size,n>r))throw new Xf(this.i18n("exceedsSize",{size:Vf(r),file:e.name}))}}validateSingleFile(e){const{maxFileSize:t,minFileSize:r,allowedFileTypes:n}=this.getOpts().restrictions;if(n&&!n.some((t=>t.includes("/")?!!e.type&&Hf(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.slice(1).toLowerCase()))){const t=n.join(", ");throw new Xf(this.i18n("youCanOnlyUploadFileTypes",{types:t}),{file:e})}if(t&&null!=e.size&&e.size>t)throw new Xf(this.i18n("exceedsSize",{size:Vf(t),file:e.name}),{file:e});if(r&&null!=e.size&&e.size<r)throw new Xf(this.i18n("inferiorSize",{size:Vf(r)}),{file:e})}validate(e,t){t.forEach((e=>{this.validateSingleFile(e)})),this.validateAggregateRestrictions(e,t)}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(t&&Object.keys(e).length<t)throw new Xf(this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}getMissingRequiredMetaFields(e){const t=new Xf(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})),{requiredMetaFields:r}=this.getOpts().restrictions,n=[];for(const t of r)Object.hasOwn(e.meta,t)&&""!==e.meta[t]||n.push(t);return{missingFields:n,error:t}}}var Jf={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",noSearchResults:"Unfortunately, there are no results for this search",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",loadedXFiles:"Loaded %{numFiles} files",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",resetSearch:"Reset search",emptyFolderAdded:"No files were added from empty folder",addedNumFiles:"Added %{numFiles} file(s)",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled"}};let ep,tp;function rp(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var np=0;function op(e){return"__private_"+np+++"_"+e}const ip={totalProgress:0,allowNewUpload:!0,error:null,recoveredState:null};var ap=op("plugins"),sp=op("restricter"),lp=op("storeUnsubscribe"),up=op("emitter"),cp=op("preProcessors"),dp=op("uploaders"),fp=op("postProcessors"),pp=op("informAndEmit"),hp=op("checkRequiredMetaFieldsOnFile"),mp=op("checkRequiredMetaFields"),gp=op("assertNewUploadAllowed"),vp=op("transformFile"),yp=op("startIfAutoProceed"),bp=op("checkAndUpdateFileState"),Ap=op("addListeners"),Op=op("updateOnlineStatus"),wp=op("requestClientById"),Cp=op("createUpload"),_p=op("getUpload"),xp=op("removeUpload"),kp=op("runUpload");ep=Symbol.for("uppy test: getPlugins"),tp=Symbol.for("uppy test: createUpload");class Ep{constructor(e){Object.defineProperty(this,kp,{value:Lp}),Object.defineProperty(this,xp,{value:Np}),Object.defineProperty(this,_p,{value:Fp}),Object.defineProperty(this,Cp,{value:Mp}),Object.defineProperty(this,Ap,{value:Rp}),Object.defineProperty(this,bp,{value:qp}),Object.defineProperty(this,yp,{value:jp}),Object.defineProperty(this,vp,{value:Tp}),Object.defineProperty(this,gp,{value:Bp}),Object.defineProperty(this,mp,{value:Pp}),Object.defineProperty(this,hp,{value:Dp}),Object.defineProperty(this,pp,{value:Sp}),Object.defineProperty(this,ap,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,sp,{writable:!0,value:void 0}),Object.defineProperty(this,lp,{writable:!0,value:void 0}),Object.defineProperty(this,up,{writable:!0,value:Hd()}),Object.defineProperty(this,cp,{writable:!0,value:new Set}),Object.defineProperty(this,dp,{writable:!0,value:new Set}),Object.defineProperty(this,fp,{writable:!0,value:new Set}),this.scheduledAutoProceed=null,this.wasOffline=!1,this.calculateProgress=Df(((e,t)=>{const r=this.getFile(null==e?void 0:e.id);if(null==e||!r)return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);if(100===r.progress.percentage)return void this.log(`Not setting progress for a file that has been already uploaded: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...r.progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}),500,{leading:!0,trailing:!0}),Object.defineProperty(this,Op,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,wp,{writable:!0,value:new Map}),this.defaultLocale=Jf;const t={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:Gf,meta:{},onBeforeFileAdded:(e,t)=>!Object.hasOwn(t,e.id),onBeforeUpload:e=>e,store:new Rf,logger:zf,infoTimeout:5e3},r={...t,...e};this.opts={...r,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=Uf),this.log(`Using Core v${Ep.VERSION}`),this.i18nInit(),this.store=this.opts.store,this.setState({...ip,plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:$f(),individualCancellation:!0,resumableUploads:!1},meta:{...this.opts.meta},info:[]}),rp(this,sp)[sp]=new Kf((()=>this.opts),this.i18n),rp(this,lp)[lp]=this.store.subscribe(((e,t,r)=>{this.emit("state-update",e,t,r),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),rp(this,Ap)[Ap]()}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];rp(this,up)[up].emit(e,...r)}on(e,t){return rp(this,up)[up].on(e,t),this}once(e,t){return rp(this,up)[up].once(e,t),this}off(e,t){return rp(this,up)[up].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}patchFilesState(e){const t=this.getState().files;this.setState({files:{...t,...Object.fromEntries(Object.entries(e).map((e=>{let[r,n]=e;return[r,{...t[r],...n}]})))}})}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.patchFilesState({[e]:t})}i18nInit(){const e=new Vd([this.defaultLocale,this.opts.locale],{onMissingKey:e=>this.log(`Missing i18n string: ${e}`,"error")});this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...null==e?void 0:e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((t=>{t.setOptions(e)})),this.setState(void 0)}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},r={};Object.keys(t).forEach((n=>{r[n]={...t[n],progress:{...t[n].progress,...e}}})),this.setState({files:r,...ip}),this.emit("reset-progress")}clearUploadedFiles(){this.setState({...ip,files:{}})}addPreProcessor(e){rp(this,cp)[cp].add(e)}removePreProcessor(e){return rp(this,cp)[cp].delete(e)}addPostProcessor(e){rp(this,fp)[fp].add(e)}removePostProcessor(e){return rp(this,fp)[fp].delete(e)}addUploader(e){rp(this,dp)[dp].add(e)}removeUploader(e){return rp(this,dp)[dp].delete(e)}setMeta(e){const t={...this.getState().meta,...e},r={...this.getState().files};Object.keys(r).forEach((t=>{r[t]={...r[t],meta:{...r[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:r})}setFileMeta(e,t){const r={...this.getState().files};if(!r[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const n={...r[e].meta,...t};r[e]={...r[e],meta:n},this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getFilesByIds(e){return e.map((e=>this.getFile(e)))}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:r}=this.getState(),n=Object.values(e),o=n.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=n.filter((e=>!e.progress.uploadStarted)),a=n.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),s=n.filter((e=>e.progress.uploadStarted)),l=n.filter((e=>e.isPaused)),u=n.filter((e=>e.progress.uploadComplete)),c=n.filter((e=>e.error)),d=o.filter((e=>!e.isPaused)),f=n.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:s,pausedFiles:l,completeFiles:u,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:d,processingFiles:f,isUploadStarted:s.length>0,isAllComplete:100===t&&u.length===n.length&&0===f.length,isAllErrored:!!r&&c.length===n.length,isAllPaused:0!==o.length&&l.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:n.some((e=>e.isGhost))}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{rp(this,sp)[sp].validate(t,[e])}catch(e){return e}return null}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){rp(this,gp)[gp](e);const{nextFilesState:t,validFilesToAdd:r,errors:n}=rp(this,bp)[bp]([e]),o=n.filter((e=>e.isRestriction));if(rp(this,pp)[pp](o),n.length>0)throw n[0];this.setState({files:t});const[i]=r;return this.emit("file-added",i),this.emit("files-added",r),this.log(`Added file: ${i.name}, ${i.id}, mime type: ${i.type}`),rp(this,yp)[yp](),i.id}addFiles(e){rp(this,gp)[gp]();const{nextFilesState:t,validFilesToAdd:r,errors:n}=rp(this,bp)[bp](e),o=n.filter((e=>e.isRestriction));rp(this,pp)[pp](o);const i=n.filter((e=>!e.isRestriction));if(i.length>0){let e="Multiple errors occurred while adding files:\n";if(i.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:i.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(i,e);{const t=new Error(e);throw t.errors=i,t}}this.setState({files:t}),r.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.values(r).forEach((e=>{this.log(`Added file: ${e.name}\n id: ${e.id}\n type: ${e.type}`)})),r.length>0&&rp(this,yp)[yp]()}removeFiles(e,t){const{files:r,currentUploads:n}=this.getState(),o={...r},i={...n},a=Object.create(null);function s(e){return void 0===a[e]}e.forEach((e=>{r[e]&&(a[e]=r[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=n[e].fileIDs.filter(s);if(0===t.length)return void delete i[e];const{capabilities:r}=this.getState();if(t.length!==n[e].fileIDs.length&&!r.individualCancellation)throw new Error("individualCancellation is disabled");i[e]={...n[e],fileIDs:t}}));const l={currentUploads:i,files:o};0===Object.keys(o).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const u=Object.keys(a);u.forEach((e=>{this.emit("file-removed",a[e],t)})),u.length>5?this.log(`Removed ${u.length} files`):this.log(`Removed files: ${u.join(", ")}`)}removeFile(e,t){this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).progress.uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const r={...e[t],isPaused:!0};e[t]=r})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const r={...e[t],isPaused:!1,error:null};e[t]=r})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const r={...e[t],isPaused:!1,error:null};e[t]=r})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const r=rp(this,Cp)[Cp](t,{forceAllowNewUpload:!0});return rp(this,kp)[kp](r)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState(ip)}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=rp(this,Cp)[Cp]([e],{forceAllowNewUpload:!0});return rp(this,kp)[kp](t)}logout(){this.iteratePlugins((e=>{var t;null==(t=e.provider)||null==t.logout||t.logout()}))}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),r=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,n=r.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(n/t*100);return void this.setState({totalProgress:o})}let n=t.reduce(((e,t)=>{var r;return e+(null!=(r=t.progress.bytesTotal)?r:0)}),0);const o=n/t.length;n+=o*r.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),r.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===n?0:Math.round(i/n*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){var e;null==(e=window.navigator.onLine)||e?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const r=new e(this,t),n=r.id;if(!n)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(n);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${n}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${n} v${e.VERSION}`),r.type in rp(this,ap)[ap]?rp(this,ap)[ap][r.type].push(r):rp(this,ap)[ap][r.type]=[r],r.install(),this.emit("plugin-added",r),this}getPlugin(e){for(const t of Object.values(rp(this,ap)[ap])){const r=t.find((t=>t.id===e));if(null!=r)return r}}[ep](e){return rp(this,ap)[ap][e]}iteratePlugins(e){Object.values(rp(this,ap)[ap]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=rp(this,ap)[ap][e.type],r=t.findIndex((t=>t.id===e.id));-1!==r&&t.splice(r,1);const n={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(n)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),rp(this,lp)[lp](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",rp(this,Op)[Op]),window.removeEventListener("offline",rp(this,Op)[Op]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,r){void 0===t&&(t="info"),void 0===r&&(r=3e3);const n="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:n?e.message:e,details:n?e.details:null}]}),setTimeout((()=>this.hideInfo()),r),this.emit("info-visible")}log(e,t){const{logger:r}=this.opts;switch(t){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}}registerRequestClient(e,t){rp(this,wp)[wp].set(e,t)}getRequestClientForFile(e){if(!e.remote)throw new Error(`Tried to get RequestClient for a non-remote file ${e.id}`);const t=rp(this,wp)[wp].get(e.remote.requestClientId);if(null==t)throw new Error(`requestClientId "${e.remote.requestClientId}" not registered for file "${e.id}"`);return t}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?rp(this,kp)[kp](e):(rp(this,xp)[xp](e),Promise.reject(new Error("Nonexistent upload")))}[tp](){return rp(this,Cp)[Cp](...arguments)}addResultData(e,t){if(!rp(this,_p)[_p](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),n={...r[e],result:{...r[e].result,...t}};this.setState({currentUploads:{...r,[e]:n}})}upload(){var e;null!=(e=rp(this,ap)[ap].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const r=this.opts.onBeforeUpload(t);return!1===r?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&"object"==typeof r&&(t=r,this.setState({files:t})),Promise.resolve().then((()=>rp(this,sp)[sp].validateMinNumberOfFiles(t))).catch((e=>{throw rp(this,pp)[pp]([e]),e})).then((()=>{if(!rp(this,mp)[mp](t))throw new Xf(this.i18n("missingRequiredMetaField"))})).catch((e=>{throw e})).then((()=>{const{currentUploads:e}=this.getState(),r=Object.values(e).flatMap((e=>e.fileIDs)),n=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==r.indexOf(e)||n.push(t.id)}));const o=rp(this,Cp)[Cp](n);return rp(this,kp)[kp](o)})).catch((e=>{throw this.emit("error",e),this.log(e,"error"),e})))}}function Sp(e){for(const t of e)t.isRestriction?this.emit("restriction-failed",t.file,t):this.emit("error",t,t.file),this.log(t,"warning");const t=e.filter((e=>e.isUserFacing)),r=t.slice(0,4),n=t.slice(4);r.forEach((e=>{let{message:t,details:r=""}=e;this.info({message:t,details:r},"error",this.opts.infoTimeout)})),n.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:n.length})})}function Dp(e){const{missingFields:t,error:r}=rp(this,sp)[sp].getMissingRequiredMetaFields(e);return!(t.length>0&&(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(r.message),this.emit("restriction-failed",e,r),1))}function Pp(e){let t=!0;for(const r of Object.values(e))rp(this,hp)[hp](r)||(t=!1);return t}function Bp(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new Xf(this.i18n("noMoreFilesAllowed"),{file:e});throw rp(this,pp)[pp]([t]),t}}function Tp(e){const t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,r=Lf(t),n=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(r,t),o=Ff(n).extension,i=function(e){if(function(e){return!(!e.isRemote||!e.remote)&&new Set(["box","dropbox","drive","facebook","unsplash"]).has(e.remote.provider)}(e))return e.id;const t=Lf(e);return function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${If(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${If(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...e,type:t})}(t),a=t.meta||{};a.name=n,a.type=r;const s=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:i,name:n,extension:o||"",meta:{...this.getState().meta,...a},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote||"",preview:t.preview}}function jp(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function qp(e){const{files:t}=this.getState(),r={...t},n=[],o=[];for(const a of e)try{var i;let e=rp(this,vp)[vp](a);const o=null==(i=t[e.id])?void 0:i.isGhost;o&&(e={...t[e.id],isGhost:!1,data:a.data},this.log(`Replaced the blob in the restored ghost file: ${e.name}, ${e.id}`));const s=this.opts.onBeforeFileAdded(e,r);if(!s&&this.checkIfFileAlreadyExists(e.id))throw new Xf(this.i18n("noDuplicates",{fileName:e.name}),{file:a});if(!1===s&&!o)throw new Xf("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:a});"object"==typeof s&&null!==s&&(e=s),rp(this,sp)[sp].validateSingleFile(e),r[e.id]=e,n.push(e)}catch(e){o.push(e)}try{rp(this,sp)[sp].validateAggregateRestrictions(Object.values(t),n)}catch(e){return o.push(e),{nextFilesState:t,validFilesToAdd:[],errors:o}}return{nextFilesState:r,validFilesToAdd:n,errors:o}}function Rp(){const e=(e,t,r)=>{let n=e.message||"Unknown error";e.details&&(n+=` ${e.details}`),this.setState({error:n}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:n,response:r})};this.on("error",e),this.on("upload-error",((t,r,n)=>{if(e(r,t,n),"object"==typeof r&&r.message){var o;this.log(r.message,"error");const e=new Error(this.i18n("failedToUpload",{file:null!=(o=null==t?void 0:t.name)?o:""}));e.isUserFacing=!0,e.details=r.message,r.details&&(e.details+=` ${r.details}`),rp(this,pp)[pp]([e])}else rp(this,pp)[pp]([r])}));let t=null;this.on("upload-stalled",((e,r)=>{const{message:n}=e,o=r.map((e=>e.meta.name)).join(", ");t||(this.info({message:n,details:o},"warning",this.opts.infoTimeout),t=setTimeout((()=>{t=null}),this.opts.infoTimeout)),this.log(`${n} ${o}`.trim(),"warning")})),this.on("upload",(()=>{this.setState({error:null})}));const r=e=>{const t=e.filter((e=>{const t=null!=e&&this.getFile(e.id);return t||this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`),t})),r=Object.fromEntries(t.map((e=>[e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}])));this.patchFilesState(r)};this.on("upload-start",(e=>{e.forEach((e=>{this.emit("upload-started",e)})),r(e)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...r,postprocess:rp(this,fp)[fp].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("preprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("postprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&rp(this,hp)[hp](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",rp(this,Op)[Op]),window.addEventListener("offline",rp(this,Op)[Op]),setTimeout(rp(this,Op)[Op],3e3))}function Mp(e,t){void 0===t&&(t={});const{forceAllowNewUpload:r=!1}=t,{allowNewUpload:n,currentUploads:o}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=((e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t})();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function Fp(e){const{currentUploads:t}=this.getState();return t[e]}function Np(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Lp(e){const t=()=>{const{currentUploads:t}=this.getState();return t[e]};let r=t();const n=[...rp(this,cp)[cp],...rp(this,dp)[dp],...rp(this,fp)[fp]];try{for(let o=r.step||0;o<n.length&&r;o++){const i=n[o];this.setState({currentUploads:{...this.getState().currentUploads,[e]:{...r,step:o}}});const{fileIDs:a}=r;await i(a,e),r=t()}}catch(t){throw rp(this,xp)[xp](e),t}if(r){r.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const n=r.fileIDs.map((e=>this.getFile(e))),o=n.filter((e=>!e.error)),i=n.filter((e=>e.error));this.addResultData(e,{successful:o,failed:i,uploadID:e}),r=t()}let o;return r&&(o=r.result,this.emit("complete",o),rp(this,xp)[xp](e)),null==o&&this.log(`Not setting result for an upload that has been removed: ${e}`),o}Ep.VERSION="3.10.0";var Ip,$p,Qp,Wp,zp,Up,Vp,Zp,Yp,Hp,Gp=Ep,Xp={},Kp=[],Jp=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,eh=Array.isArray;function th(e,t){for(var r in t)e[r]=t[r];return e}function rh(e){var t=e.parentNode;t&&t.removeChild(e)}function nh(e,t,r){var n,o,i,a={};for(i in t)"key"==i?n=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?Ip.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return oh(e,a,n,o,null)}function oh(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++Qp:o,__i:-1,__u:0};return null==o&&null!=$p.vnode&&$p.vnode(i),i}function ih(e){return e.children}function ah(e,t){this.props=e,this.context=t}function sh(e,t){if(null==t)return e.__?sh(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?sh(e):null}function lh(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return lh(e)}}function uh(e){(!e.__d&&(e.__d=!0)&&Wp.push(e)&&!ch.__r++||zp!==$p.debounceRendering)&&((zp=$p.debounceRendering)||Up)(ch)}function ch(){var e,t,r,n,o,i,a,s;for(Wp.sort(Vp);e=Wp.shift();)e.__d&&(t=Wp.length,n=void 0,i=(o=(r=e).__v).__e,a=[],s=[],r.__P&&((n=th({},o)).__v=o.__v+1,$p.vnode&&$p.vnode(n),vh(r.__P,n,o,r.__n,void 0!==r.__P.ownerSVGElement,32&o.__u?[i]:null,a,null==i?sh(o):i,!!(32&o.__u),s),n.__v=o.__v,n.__.__k[n.__i]=n,yh(a,n,s),n.__e!=i&&lh(n)),Wp.length>t&&Wp.sort(Vp));ch.__r=0}function dh(e,t,r,n,o,i,a,s,l,u,c){var d,f,p,h,m,g=n&&n.__k||Kp,v=t.length;for(r.__d=l,function(e,t,r){var n,o,i,a,s,l=t.length,u=r.length,c=u,d=0;for(e.__k=[],n=0;n<l;n++)a=n+d,null!=(o=e.__k[n]=null==(o=t[n])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?oh(null,o,null,null,null):eh(o)?oh(ih,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?oh(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=ph(o,r,a,c),o.__i=s,i=null,-1!==s&&(c--,(i=r[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?d++:s>a?c>l-a?d+=s-a:d--:s<a?s==a-1&&(d=s-a):d=0,s!==n+d&&(o.__u|=65536))):(i=r[a])&&null==i.key&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=sh(i)),Oh(i,i,!1),r[a]=null,c--);if(c)for(n=0;n<u;n++)null!=(i=r[n])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=sh(i)),Oh(i,i))}(r,t,g),l=r.__d,d=0;d<v;d++)null!=(p=r.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(f=-1===p.__i?Xp:g[p.__i]||Xp,p.__i=d,vh(e,p,f,o,i,a,s,l,u,c),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&Ah(f.ref,null,p),c.push(p.ref,p.__c||h,p)),null==m&&null!=h&&(m=h),65536&p.__u||f.__k===p.__k?(l&&!l.isConnected&&(l=sh(f)),l=fh(p,l,e)):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:h&&(l=h.nextSibling),p.__d=void 0,p.__u&=-196609);r.__d=l,r.__e=m}function fh(e,t,r){var n,o;if("function"==typeof e.type){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=fh(n[o],t,r));return t}e.__e!=t&&(r.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function ph(e,t,r,n){var o=e.key,i=e.type,a=r-1,s=r+1,l=t[r];if(null===l||l&&o==l.key&&i===l.type&&!(131072&l.__u))return r;if(n>(null==l||131072&l.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function hh(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||Jp.test(t)?r:r+"px"}function mh(e,t,r,n,o){var i;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||hh(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||hh(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=Zp,e.addEventListener(t,i?Hp:Yp,i)):e.removeEventListener(t,i?Hp:Yp,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,r))}}function gh(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=Zp++;else if(t.t<r.u)return;return r($p.event?$p.event(t):t)}}}function vh(e,t,r,n,o,i,a,s,l,u){var c,d,f,p,h,m,g,v,y,b,A,O,w,C,_,x=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),i=[s=t.__e=r.__e]),(c=$p.__b)&&c(t);e:if("function"==typeof x)try{if(v=t.props,y=(c=x.contextType)&&n[c.__c],b=c?y?y.props.value:c.__:n,r.__c?g=(d=t.__c=r.__c).__=d.__E:("prototype"in x&&x.prototype.render?t.__c=d=new x(v,b):(t.__c=d=new ah(v,b),d.constructor=x,d.render=wh),y&&y.sub(d),d.props=v,d.state||(d.state={}),d.context=b,d.__n=n,f=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=x.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=th({},d.__s)),th(d.__s,x.getDerivedStateFromProps(v,d.__s))),p=d.props,h=d.state,d.__v=t,f)null==x.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==x.getDerivedStateFromProps&&v!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,b)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=v,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),A=0;A<d._sb.length;A++)d.__h.push(d._sb[A]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,b),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,h,m)}))}if(d.context=b,d.props=v,d.__P=e,d.__e=!1,O=$p.__r,w=0,"prototype"in x&&x.prototype.render){for(d.state=d.__s,d.__d=!1,O&&O(t),c=d.render(d.props,d.state,d.context),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[]}else do{d.__d=!1,O&&O(t),c=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++w<25);d.state=d.__s,null!=d.getChildContext&&(n=th(th({},n),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(p,h)),dh(e,eh(_=null!=c&&c.type===ih&&null==c.key?c.props.children:c)?_:[_],t,r,n,o,i,a,s,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=i?(t.__e=s,t.__u|=l?160:32,i[i.indexOf(s)]=null):(t.__e=r.__e,t.__k=r.__k),$p.__e(e,t,r)}else null==i&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=bh(r.__e,t,r,n,o,i,a,l,u);(c=$p.diffed)&&c(t)}function yh(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)Ah(r[n],r[++n],r[++n]);$p.__c&&$p.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){$p.__e(e,t.__v)}}))}function bh(e,t,r,n,o,i,a,s,l){var u,c,d,f,p,h,m,g=r.props,v=t.props,y=t.type;if("svg"===y&&(o=!0),null!=i)for(u=0;u<i.length;u++)if((p=i[u])&&"setAttribute"in p==!!y&&(y?p.localName===y:3===p.nodeType)){e=p,i[u]=null;break}if(null==e){if(null===y)return document.createTextNode(v);e=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,v.is&&v),i=null,s=!1}if(null===y)g===v||s&&e.data===v||(e.data=v);else{if(i=i&&Ip.call(e.childNodes),g=r.props||Xp,!s&&null!=i)for(g={},u=0;u<e.attributes.length;u++)g[(p=e.attributes[u]).name]=p.value;for(u in g)p=g[u],"children"==u||("dangerouslySetInnerHTML"==u?d=p:"key"===u||u in v||mh(e,u,null,p,o));for(u in v)p=v[u],"children"==u?f=p:"dangerouslySetInnerHTML"==u?c=p:"value"==u?h=p:"checked"==u?m=p:"key"===u||s&&"function"!=typeof p||g[u]===p||mh(e,u,p,g[u],o);if(c)s||d&&(c.__html===d.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),dh(e,eh(f)?f:[f],t,r,n,o&&"foreignObject"!==y,i,a,i?i[0]:r.__k&&sh(r,0),s,l),null!=i)for(u=i.length;u--;)null!=i[u]&&rh(i[u]);s||(u="value",void 0!==h&&(h!==e[u]||"progress"===y&&!h||"option"===y&&h!==g[u])&&mh(e,u,h,g[u],!1),u="checked",void 0!==m&&m!==e[u]&&mh(e,u,m,g[u],!1))}return e}function Ah(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){$p.__e(e,r)}}function Oh(e,t,r){var n,o;if($p.unmount&&$p.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Ah(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){$p.__e(e,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&Oh(n[o],t,r||"function"!=typeof e.type);r||null==e.__e||rh(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function wh(e,t,r){return this.constructor(e,r)}function Ch(e,t,r){var n,o,i,a;$p.__&&$p.__(e,t),o=(n="function"==typeof r)?null:r&&r.__k||t.__k,i=[],a=[],vh(t,e=(!n&&r||t).__k=nh(ih,null,[e]),o||Xp,Xp,void 0!==t.ownerSVGElement,!n&&r?[r]:o?null:t.firstChild?Ip.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,a),yh(i,e,a)}Ip=Kp.slice,$p={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},Qp=0,ah.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=th({},this.state),"function"==typeof e&&(e=e(th({},r),this.props)),e&&th(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),uh(this))},ah.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),uh(this))},ah.prototype.render=ih,Wp=[],Up="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Vp=function(e,t){return e.__v.__b-t.__v.__b},ch.__r=0,Zp=0,Yp=gh(!1),Hp=gh(!0);class _h{constructor(e,t){this.uppy=e,this.opts=null!=t?t:{}}getPluginState(){const{plugins:e}=this.uppy.getState();return(null==e?void 0:e[this.id])||{}}setPluginState(e){if(!e)return;const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(void 0),this.i18nInit()}i18nInit(){const e=new Vd([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState(void 0)}addTarget(e){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}update(e){}afterUpdate(){}}function xh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var kh=0;function Eh(e){return"__private_"+kh+++"_"+e}var Sh=Eh("updateUI");class Dh extends _h{constructor(){super(...arguments),Object.defineProperty(this,Sh,{writable:!0,value:void 0})}getTargetPlugin(e){let t;if("function"==typeof(null==e?void 0:e.addTarget))t=e,t instanceof Dh||console.warn(new Error("The provided plugin is not an instance of UIPlugin. This is an indication of a bug with the way Uppy is bundled.",{cause:{targetPlugin:t,UIPlugin:Dh}}));else if("function"==typeof e){const r=e;this.uppy.iteratePlugins((e=>{e instanceof r&&(t=e)}))}return t}mount(e,t){const r=t.id,n=(o=e,void 0===i&&(i=document),"string"==typeof o?i.querySelector(o):"object"==typeof(a=o)&&null!==a&&"nodeType"in a&&a.nodeType===Node.ELEMENT_NODE?o:null);var o,i,a;if(n){this.isTargetDOMEl=!0;const t=document.createElement("div");return t.classList.add("uppy-Root"),xh(this,Sh)[Sh]=function(e){let t,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return t=o,r||(r=Promise.resolve().then((()=>(r=null,e(...t))))),r}}((e=>{this.uppy.getPlugin(this.id)&&(Ch(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(n.innerHTML=""),Ch(this.render(this.uppy.getState()),t),this.el=t,n.appendChild(t),t.dir=this.opts.direction||function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir}(t)||"ltr",this.onMount(),this.el}const s=this.getTargetPlugin(e);if(s)return this.uppy.log(`Installing ${r} to ${s.id}`),this.parent=s,this.el=s.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let l=`Invalid target option given to ${r}.`;throw l+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(l)}render(e){throw new Error("Extend the render method to add your plugin to a DOM element")}update(e){var t,r;null!=this.el&&(null==(t=(r=xh(this,Sh))[Sh])||t.call(r,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Ph=[],Bh=[],Th="undefined"!=typeof Uint8Array?Uint8Array:Array,jh=!1;function qh(){jh=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)Ph[t]=e[t],Bh[e.charCodeAt(t)]=t;Bh["-".charCodeAt(0)]=62,Bh["_".charCodeAt(0)]=63}function Rh(e,t,r){for(var n,o,i=[],a=t;a<r;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(Ph[(o=n)>>18&63]+Ph[o>>12&63]+Ph[o>>6&63]+Ph[63&o]);return i.join("")}function Mh(e){var t;jh||qh();for(var r=e.length,n=r%3,o="",i=[],a=16383,s=0,l=r-n;s<l;s+=a)i.push(Rh(e,s,s+a>l?l:s+a));return 1===n?(t=e[r-1],o+=Ph[t>>2],o+=Ph[t<<4&63],o+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],o+=Ph[t>>10],o+=Ph[t>>4&63],o+=Ph[t<<2&63],o+="="),i.push(o),i.join("")}function Fh(e,t,r,n,o){var i,a,s=8*o-n-1,l=(1<<s)-1,u=l>>1,c=-7,d=r?o-1:0,f=r?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-c)-1,p>>=-c,c+=s;c>0;i=256*i+e[t+d],d+=f,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=u}return(p?-1:1)*a*Math.pow(2,i-n)}function Nh(e,t,r,n,o,i){var a,s,l,u=8*i-o-1,c=(1<<u)-1,d=c>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[r+p]=255&a,p+=h,a/=256,u-=8);e[r+p-h]|=128*m}var Lh={}.toString,Ih=Array.isArray||function(e){return"[object Array]"==Lh.call(e)};function $h(){return Wh.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Qh(e,t){if($h()<t)throw new RangeError("Invalid typed array length");return Wh.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Wh.prototype:(null===e&&(e=new Wh(t)),e.length=t),e}function Wh(e,t,r){if(!(Wh.TYPED_ARRAY_SUPPORT||this instanceof Wh))return new Wh(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Vh(this,e)}return zh(this,e,t,r)}function zh(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),Wh.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Wh.prototype:e=Zh(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!Wh.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|Gh(t,r),o=(e=Qh(e,n)).write(t,r);return o!==n&&(e=e.slice(0,o)),e}(e,t,r):function(e,t){if(Hh(t)){var r=0|Yh(t.length);return 0===(e=Qh(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?Qh(e,0):Zh(e,t);if("Buffer"===t.type&&Ih(t.data))return Zh(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Uh(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Vh(e,t){if(Uh(t),e=Qh(e,t<0?0:0|Yh(t)),!Wh.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function Zh(e,t){var r=t.length<0?0:0|Yh(t.length);e=Qh(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function Yh(e){if(e>=$h())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+$h().toString(16)+" bytes");return 0|e}function Hh(e){return!(null==e||!e._isBuffer)}function Gh(e,t){if(Hh(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Cm(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return _m(e).length;default:if(n)return Cm(e).length;t=(""+t).toLowerCase(),n=!0}}function Xh(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return fm(this,t,r);case"utf8":case"utf-8":return lm(this,t,r);case"ascii":return cm(this,t,r);case"latin1":case"binary":return dm(this,t,r);case"base64":return sm(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pm(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function Kh(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Jh(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=Wh.from(t,n)),Hh(t))return 0===t.length?-1:em(e,t,r,n,o);if("number"==typeof t)return t&=255,Wh.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):em(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function em(e,t,r,n,o){var i,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=r;i<s;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){for(var d=!0,f=0;f<l;f++)if(u(e,i+f)!==u(t,f)){d=!1;break}if(d)return i}return-1}function tm(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function rm(e,t,r,n){return xm(Cm(t,e.length-r),e,r,n)}function nm(e,t,r,n){return xm(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function om(e,t,r,n){return nm(e,t,r,n)}function im(e,t,r,n){return xm(_m(t),e,r,n)}function am(e,t,r,n){return xm(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function sm(e,t,r){return 0===t&&r===e.length?Mh(e):Mh(e.slice(t,r))}function lm(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,l,u=e[o],c=null,d=u>239?4:u>223?3:u>191?2:1;if(o+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&u)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=d}return function(e){var t=e.length;if(t<=um)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=um));return r}(n)}Wh.TYPED_ARRAY_SUPPORT=void 0===fu.TYPED_ARRAY_SUPPORT||fu.TYPED_ARRAY_SUPPORT,$h(),Wh.poolSize=8192,Wh._augment=function(e){return e.__proto__=Wh.prototype,e},Wh.from=function(e,t,r){return zh(null,e,t,r)},Wh.TYPED_ARRAY_SUPPORT&&(Wh.prototype.__proto__=Uint8Array.prototype,Wh.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Wh[Symbol.species]),Wh.alloc=function(e,t,r){return function(e,t,r,n){return Uh(t),t<=0?Qh(e,t):void 0!==r?"string"==typeof n?Qh(e,t).fill(r,n):Qh(e,t).fill(r):Qh(e,t)}(null,e,t,r)},Wh.allocUnsafe=function(e){return Vh(null,e)},Wh.allocUnsafeSlow=function(e){return Vh(null,e)},Wh.isBuffer=function(e){return null!=e&&(!!e._isBuffer||km(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&km(e.slice(0,0))}(e))},Wh.compare=function(e,t){if(!Hh(e)||!Hh(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},Wh.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Wh.concat=function(e,t){if(!Ih(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Wh.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=Wh.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(!Hh(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},Wh.byteLength=Gh,Wh.prototype._isBuffer=!0,Wh.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Kh(this,t,t+1);return this},Wh.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Kh(this,t,t+3),Kh(this,t+1,t+2);return this},Wh.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Kh(this,t,t+7),Kh(this,t+1,t+6),Kh(this,t+2,t+5),Kh(this,t+3,t+4);return this},Wh.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?lm(this,0,e):Xh.apply(this,arguments)},Wh.prototype.equals=function(e){if(!Hh(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Wh.compare(this,e)},Wh.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Wh.prototype.compare=function(e,t,r,n,o){if(!Hh(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(n,o),u=e.slice(t,r),c=0;c<s;++c)if(l[c]!==u[c]){i=l[c],a=u[c];break}return i<a?-1:a<i?1:0},Wh.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},Wh.prototype.indexOf=function(e,t,r){return Jh(this,e,t,r,!0)},Wh.prototype.lastIndexOf=function(e,t,r){return Jh(this,e,t,r,!1)},Wh.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return tm(this,e,t,r);case"utf8":case"utf-8":return rm(this,e,t,r);case"ascii":return nm(this,e,t,r);case"latin1":case"binary":return om(this,e,t,r);case"base64":return im(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return am(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},Wh.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var um=4096;function cm(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function dm(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function fm(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=wm(e[i]);return o}function pm(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function hm(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function mm(e,t,r,n,o,i){if(!Hh(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function gm(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function vm(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function ym(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function bm(e,t,r,n,o){return o||ym(e,0,r,4),Nh(e,t,r,n,23,4),r+4}function Am(e,t,r,n,o){return o||ym(e,0,r,8),Nh(e,t,r,n,52,8),r+8}Wh.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),Wh.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=Wh.prototype;else{var o=t-e;r=new Wh(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},Wh.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||hm(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},Wh.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||hm(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},Wh.prototype.readUInt8=function(e,t){return t||hm(e,1,this.length),this[e]},Wh.prototype.readUInt16LE=function(e,t){return t||hm(e,2,this.length),this[e]|this[e+1]<<8},Wh.prototype.readUInt16BE=function(e,t){return t||hm(e,2,this.length),this[e]<<8|this[e+1]},Wh.prototype.readUInt32LE=function(e,t){return t||hm(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Wh.prototype.readUInt32BE=function(e,t){return t||hm(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Wh.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||hm(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},Wh.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||hm(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Wh.prototype.readInt8=function(e,t){return t||hm(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Wh.prototype.readInt16LE=function(e,t){t||hm(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Wh.prototype.readInt16BE=function(e,t){t||hm(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Wh.prototype.readInt32LE=function(e,t){return t||hm(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Wh.prototype.readInt32BE=function(e,t){return t||hm(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Wh.prototype.readFloatLE=function(e,t){return t||hm(e,4,this.length),Fh(this,e,!0,23,4)},Wh.prototype.readFloatBE=function(e,t){return t||hm(e,4,this.length),Fh(this,e,!1,23,4)},Wh.prototype.readDoubleLE=function(e,t){return t||hm(e,8,this.length),Fh(this,e,!0,52,8)},Wh.prototype.readDoubleBE=function(e,t){return t||hm(e,8,this.length),Fh(this,e,!1,52,8)},Wh.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||mm(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},Wh.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||mm(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},Wh.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,1,255,0),Wh.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Wh.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,2,65535,0),Wh.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):gm(this,e,t,!0),t+2},Wh.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,2,65535,0),Wh.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):gm(this,e,t,!1),t+2},Wh.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,4,4294967295,0),Wh.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):vm(this,e,t,!0),t+4},Wh.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,4,4294967295,0),Wh.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):vm(this,e,t,!1),t+4},Wh.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);mm(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},Wh.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);mm(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},Wh.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,1,127,-128),Wh.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Wh.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,2,32767,-32768),Wh.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):gm(this,e,t,!0),t+2},Wh.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,2,32767,-32768),Wh.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):gm(this,e,t,!1),t+2},Wh.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,4,2147483647,-2147483648),Wh.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):vm(this,e,t,!0),t+4},Wh.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||mm(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Wh.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):vm(this,e,t,!1),t+4},Wh.prototype.writeFloatLE=function(e,t,r){return bm(this,e,t,!0,r)},Wh.prototype.writeFloatBE=function(e,t,r){return bm(this,e,t,!1,r)},Wh.prototype.writeDoubleLE=function(e,t,r){return Am(this,e,t,!0,r)},Wh.prototype.writeDoubleBE=function(e,t,r){return Am(this,e,t,!1,r)},Wh.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!Wh.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},Wh.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Wh.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=Hh(e)?e:Cm(new Wh(e,n).toString()),s=a.length;for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var Om=/[^+\/0-9A-Za-z-_]/g;function wm(e){return e<16?"0"+e.toString(16):e.toString(16)}function Cm(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function _m(e){return function(e){var t,r,n,o,i,a;jh||qh();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[s-2]?2:"="===e[s-1]?1:0,a=new Th(3*s/4-i),n=i>0?s-4:s;var l=0;for(t=0,r=0;t<n;t+=4,r+=3)o=Bh[e.charCodeAt(t)]<<18|Bh[e.charCodeAt(t+1)]<<12|Bh[e.charCodeAt(t+2)]<<6|Bh[e.charCodeAt(t+3)],a[l++]=o>>16&255,a[l++]=o>>8&255,a[l++]=255&o;return 2===i?(o=Bh[e.charCodeAt(t)]<<2|Bh[e.charCodeAt(t+1)]>>4,a[l++]=255&o):1===i&&(o=Bh[e.charCodeAt(t)]<<10|Bh[e.charCodeAt(t+1)]<<4|Bh[e.charCodeAt(t+2)]>>2,a[l++]=o>>8&255,a[l++]=255&o),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Om,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function xm(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function km(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}"function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder;const Em=((e=>{let t={};e.forEach(((e,r)=>t[e]=r))})(Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")),String.fromCharCode.bind(String),"function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_"))),Sm=e=>Wh.from(e,"utf8").toString("base64"),Dm=(e,t=!1)=>t?Em(Sm(e)):Sm(e);var Pm={},Bm=Object.prototype.hasOwnProperty;function Tm(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function jm(e){try{return encodeURIComponent(e)}catch(e){return null}}Pm.stringify=function(e,t){t=t||"";var r,n,o=[];for(n in"string"!=typeof t&&(t="?"),e)if(Bm.call(e,n)){if((r=e[n])||null!=r&&!isNaN(r)||(r=""),n=jm(n),r=jm(r),null===n||null===r)continue;o.push(n+"="+r)}return o.length?t+o.join("&"):""},Pm.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var o=Tm(t[1]),i=Tm(t[2]);null===o||null===i||o in n||(n[o]=i)}return n};var qm=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e},Rm=Pm,Mm=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Fm=/[\n\r\t]/g,Nm=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,Lm=/:\d+$/,Im=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,$m=/^[a-zA-Z]:/;function Qm(e){return(e||"").toString().replace(Mm,"")}var Wm=[["#","hash"],["?","query"],function(e,t){return Vm(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],zm={hash:1,query:1};function Um(e){var t,r=("undefined"!=typeof window?window:void 0!==Fu?Fu:"undefined"!=typeof self?self:{}).location||{},n={},o=typeof(e=e||r);if("blob:"===e.protocol)n=new Ym(unescape(e.pathname),{});else if("string"===o)for(t in n=new Ym(e,{}),zm)delete n[t];else if("object"===o){for(t in e)t in zm||(n[t]=e[t]);void 0===n.slashes&&(n.slashes=Nm.test(e.href))}return n}function Vm(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function Zm(e,t){e=(e=Qm(e)).replace(Fm,""),t=t||{};var r,n=Im.exec(e),o=n[1]?n[1].toLowerCase():"",i=!!n[2],a=!!n[3],s=0;return i?a?(r=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(r=n[2]+n[4],s=n[2].length):a?(r=n[3]+n[4],s=n[3].length):r=n[4],"file:"===o?s>=2&&(r=r.slice(2)):Vm(o)?r=n[4]:o?i&&(r=r.slice(2)):s>=2&&Vm(t.protocol)&&(r=n[4]),{protocol:o,slashes:i||Vm(o),slashesCount:s,rest:r}}function Ym(e,t,r){if(e=(e=Qm(e)).replace(Fm,""),!(this instanceof Ym))return new Ym(e,t,r);var n,o,i,a,s,l,u=Wm.slice(),c=typeof t,d=this,f=0;for("object"!==c&&"string"!==c&&(r=t,t=null),r&&"function"!=typeof r&&(r=Rm.parse),n=!(o=Zm(e||"",t=Um(t))).protocol&&!o.slashes,d.slashes=o.slashes||n&&t.slashes,d.protocol=o.protocol||t.protocol||"",e=o.rest,("file:"===o.protocol&&(2!==o.slashesCount||$m.test(e))||!o.slashes&&(o.protocol||o.slashesCount<2||!Vm(d.protocol)))&&(u[3]=[/(.*)/,"pathname"]);f<u.length;f++)"function"!=typeof(a=u[f])?(i=a[0],l=a[1],i!=i?d[l]=e:"string"==typeof i?~(s="@"===i?e.lastIndexOf(i):e.indexOf(i))&&("number"==typeof a[2]?(d[l]=e.slice(0,s),e=e.slice(s+a[2])):(d[l]=e.slice(s),e=e.slice(0,s))):(s=i.exec(e))&&(d[l]=s[1],e=e.slice(0,s.index)),d[l]=d[l]||n&&a[3]&&t[l]||"",a[4]&&(d[l]=d[l].toLowerCase())):e=a(e,d);r&&(d.query=r(d.query)),n&&t.slashes&&"/"!==d.pathname.charAt(0)&&(""!==d.pathname||""!==t.pathname)&&(d.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,o=r[n-1],i=!1,a=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),a++):a&&(0===n&&(i=!0),r.splice(n,1),a--);return i&&r.unshift(""),"."!==o&&".."!==o||r.push(""),r.join("/")}(d.pathname,t.pathname)),"/"!==d.pathname.charAt(0)&&Vm(d.protocol)&&(d.pathname="/"+d.pathname),qm(d.port,d.protocol)||(d.host=d.hostname,d.port=""),d.username=d.password="",d.auth&&(~(s=d.auth.indexOf(":"))?(d.username=d.auth.slice(0,s),d.username=encodeURIComponent(decodeURIComponent(d.username)),d.password=d.auth.slice(s+1),d.password=encodeURIComponent(decodeURIComponent(d.password))):d.username=encodeURIComponent(decodeURIComponent(d.auth)),d.auth=d.password?d.username+":"+d.password:d.username),d.origin="file:"!==d.protocol&&Vm(d.protocol)&&d.host?d.protocol+"//"+d.host:"null",d.href=d.toString()}Ym.prototype={set:function(e,t,r){var n=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||Rm.parse)(t)),n[e]=t;break;case"port":n[e]=t,qm(t,n.protocol)?t&&(n.host=n.hostname+":"+t):(n.host=n.hostname,n[e]="");break;case"hostname":n[e]=t,n.port&&(t+=":"+n.port),n.host=t;break;case"host":n[e]=t,Lm.test(t)?(t=t.split(":"),n.port=t.pop(),n.hostname=t.join(":")):(n.hostname=t,n.port="");break;case"protocol":n.protocol=t.toLowerCase(),n.slashes=!r;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";n[e]=t.charAt(0)!==o?o+t:t}else n[e]=t;break;case"username":case"password":n[e]=encodeURIComponent(t);break;case"auth":var i=t.indexOf(":");~i?(n.username=t.slice(0,i),n.username=encodeURIComponent(decodeURIComponent(n.username)),n.password=t.slice(i+1),n.password=encodeURIComponent(decodeURIComponent(n.password))):n.username=encodeURIComponent(decodeURIComponent(t))}for(var a=0;a<Wm.length;a++){var s=Wm[a];s[4]&&(n[s[1]]=n[s[1]].toLowerCase())}return n.auth=n.password?n.username+":"+n.password:n.username,n.origin="file:"!==n.protocol&&Vm(n.protocol)&&n.host?n.protocol+"//"+n.host:"null",n.href=n.toString(),n},toString:function(e){e&&"function"==typeof e||(e=Rm.stringify);var t,r=this,n=r.host,o=r.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var i=o+(r.protocol&&r.slashes||Vm(r.protocol)?"//":"");return r.username?(i+=r.username,r.password&&(i+=":"+r.password),i+="@"):r.password?(i+=":"+r.password,i+="@"):"file:"!==r.protocol&&Vm(r.protocol)&&!n&&"/"!==r.pathname&&(i+="@"),(":"===n[n.length-1]||Lm.test(r.hostname)&&!r.port)&&(n+=":"),i+=n+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(i+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(i+=r.hash),i}},Ym.extractProtocol=Zm,Ym.location=Um,Ym.trimLeft=Qm,Ym.qs=Rm;var Hm=Nu(Ym);function Gm(e){return Gm="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},Gm(e)}function Xm(e){var t="function"==typeof Map?new Map:void 0;return Xm=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Km(e,arguments,tg(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),eg(r,e)},Xm(e)}function Km(e,t,r){return Km=Jm()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&eg(o,r.prototype),o},Km.apply(null,arguments)}function Jm(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function eg(e,t){return eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eg(e,t)}function tg(e){return tg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tg(e)}var rg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eg(e,t)}(i,e);var t,r,n,o=(r=i,n=Jm(),function(){var e,t=tg(r);if(n){var o=tg(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Gm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).originalRequest=n,t.originalResponse=a,t.causingError=r,null!=r&&(e+=", caused by ".concat(r.toString())),null!=n){var s=n.getHeader("X-Request-ID")||"n/a",l=n.getMethod(),u=n.getURL(),c=a?a.getStatus():"n/a",d=a?a.getBody()||"":"n/a";e+=", originated from request (method: ".concat(l,", url: ").concat(u,", response code: ").concat(c,", response text: ").concat(d,", request id: ").concat(s,")")}return t.message=e,t}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(Xm(Error));function ng(){ng=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:k(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function y(){}function b(){}var A={};u(A,a,(function(){return this}));var O=Object.getPrototypeOf,w=O&&O(O(B([])));w&&w!==r&&n.call(w,a)&&(A=w);var C=b.prototype=v.prototype=Object.create(A);function _(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==sg(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function k(t,r,n){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=E(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?m:p,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function E(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function B(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(sg(t)+" is not iterable")}return y.prototype=b,o(C,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},_(x.prototype),u(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(C),u(C,l,"Generator"),u(C,a,(function(){return this})),u(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=B,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;D(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:B(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function og(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function ig(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ag(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ag(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ag(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sg(e){return sg="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},sg(e)}function lg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ug(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lg(Object(r),!0).forEach((function(t){cg(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function cg(e,t,r){return(t=fg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fg(n.key),n)}}function fg(e){var t=function(e){if("object"!==sg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==sg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===sg(t)?t:String(t)}var pg={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:Og,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},hg=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}var t,r,n;return t=e,r=[{key:"findPreviousUploads",value:function(){var e=this;return this.options.fingerprint(this.file,this.options).then((function(t){return e._urlStorage.findUploadsByFingerprint(t)}))}},{key:"resumeFromPreviousUpload",value:function(e){this.url=e.uploadUrl||null,this._parallelUploadUrls=e.parallelUploadUrls||null,this._urlStorageKey=e.urlStorageKey}},{key:"start",value:function(){var e=this,t=this.file;if(t)if(this.options.endpoint||this.options.uploadUrl||this.url){var r=this.options.retryDelays;if(null==r||"[object Array]"===Object.prototype.toString.call(r)){if(this.options.parallelUploads>1)for(var n=0,o=["uploadUrl","uploadSize","uploadLengthDeferred"];n<o.length;n++){var i=o[n];if(this.options[i])return void this._emitError(new Error("tus: cannot use the ".concat(i," option when parallelUploads is enabled")))}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1)return void this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length)return void this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"))}this.options.fingerprint(t,this.options).then((function(r){return e._fingerprint=r,e._source?e._source:e.options.fileReader.openFile(t,e.options.chunkSize)})).then((function(t){if(e._source=t,e.options.uploadLengthDeferred)e._size=null;else if(null!=e.options.uploadSize){if(e._size=Number(e.options.uploadSize),Number.isNaN(e._size))return void e._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(e._size=e._source.size,null==e._size)return void e._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));e.options.parallelUploads>1||null!=e._parallelUploadUrls?e._startParallelUpload():e._startSingleUpload()})).catch((function(t){e._emitError(t)}))}else this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var t,r=this,n=this._size,o=0;this._parallelUploads=[];var i=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,a=null!==(t=this.options.parallelUploadBoundaries)&&void 0!==t?t:function(e,t){for(var r=Math.floor(e/t),n=[],o=0;o<t;o++)n.push({start:r*o,end:r*(o+1)});return n[t-1].end=e,n}(this._source.size,i);this._parallelUploadUrls&&a.forEach((function(e,t){e.uploadUrl=r._parallelUploadUrls[t]||null})),this._parallelUploadUrls=new Array(a.length);var s,l=a.map((function(t,i){var s=0;return r._source.slice(t.start,t.end).then((function(l){var u=l.value;return new Promise((function(l,c){var d=ug(ug({},r.options),{},{uploadUrl:t.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:{},headers:ug(ug({},r.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:l,onError:c,onProgress:function(e){o=o-s+e,s=e,r._emitProgress(o,n)},onUploadUrlAvailable:function(){r._parallelUploadUrls[i]=f.url,r._parallelUploadUrls.filter((function(e){return Boolean(e)})).length===a.length&&r._saveUploadInUrlStorage()}}),f=new e(u,d);f.start(),r._parallelUploads.push(f)}))}))}));Promise.all(l).then((function(){(s=r._openRequest("POST",r.options.endpoint)).setHeader("Upload-Concat","final;".concat(r._parallelUploadUrls.join(" ")));var e=mg(r.options.metadata);return""!==e&&s.setHeader("Upload-Metadata",e),r._sendRequest(s,null)})).then((function(e){if(gg(e.getStatus(),200)){var t=e.getHeader("Location");null!=t?(r.url=wg(r.options.endpoint,t),"Created upload at ".concat(r.url),r._emitSuccess()):r._emitHttpError(s,e,"tus: invalid or missing Location header")}else r._emitHttpError(s,e,"tus: unexpected response while creating upload")})).catch((function(e){r._emitError(e)}))}},{key:"_startSingleUpload",value:function(){return this._aborted=!1,null!=this.url?("Resuming upload from previous URL: ".concat(this.url),void this._resumeUpload()):null!=this.options.uploadUrl?("Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,void this._resumeUpload()):void this._createUpload()}},{key:"abort",value:function(t){var r=this;return null!=this._parallelUploads&&this._parallelUploads.forEach((function(e){e.abort(t)})),null!==this._req&&this._req.abort(),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),t&&null!=this.url?e.terminate(this.url,this.options).then((function(){return r._removeFromUrlStorage()})):Promise.resolve()}},{key:"_emitHttpError",value:function(e,t,r,n){this._emitError(new rg(r,n,e,t))}},{key:"_emitError",value:function(e){var t=this;if(!this._aborted){if(null!=this.options.retryDelays&&(null!=this._offset&&this._offset>this._offsetBeforeRetry&&(this._retryAttempt=0),Ag(e,this._retryAttempt,this.options))){var r=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout((function(){t.start()}),r))}if("function"!=typeof this.options.onError)throw e;this.options.onError(e)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(e,t){"function"==typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,r){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,r)}},{key:"_createUpload",value:function(){var e=this;if(this.options.endpoint){var t=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?t.setHeader("Upload-Defer-Length",1):t.setHeader("Upload-Length",this._size);var r,n=mg(this.options.metadata);""!==n&&t.setHeader("Upload-Metadata",n),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,r=this._addChunkToRequest(t)):r=this._sendRequest(t,null),r.then((function(r){if(gg(r.getStatus(),200)){var n=r.getHeader("Location");if(null!=n){if(e.url=wg(e.options.endpoint,n),"Created upload at ".concat(e.url),"function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),0===e._size)return e._emitSuccess(),void e._source.close();e._saveUploadInUrlStorage().then((function(){e.options.uploadDataDuringCreation?e._handleUploadResponse(t,r):(e._offset=0,e._performUpload())}))}else e._emitHttpError(t,r,"tus: invalid or missing Location header")}else e._emitHttpError(t,r,"tus: unexpected response while creating upload")})).catch((function(r){e._emitHttpError(t,null,"tus: failed to create upload",r)}))}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var e=this,t=this._openRequest("HEAD",this.url);this._sendRequest(t,null).then((function(r){var n=r.getStatus();if(!gg(n,200))return 423===n?void e._emitHttpError(t,r,"tus: upload is currently locked; retry later"):(gg(n,400)&&e._removeFromUrlStorage(),e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,r,"tus: unable to resume upload (new upload cannot be created without an endpoint)"));var o=parseInt(r.getHeader("Upload-Offset"),10);if(Number.isNaN(o))e._emitHttpError(t,r,"tus: invalid or missing offset value");else{var i=parseInt(r.getHeader("Upload-Length"),10);!Number.isNaN(i)||e.options.uploadLengthDeferred?("function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),e._saveUploadInUrlStorage().then((function(){if(o===i)return e._emitProgress(i,i),void e._emitSuccess();e._offset=o,e._performUpload()}))):e._emitHttpError(t,r,"tus: invalid or missing length value")}})).catch((function(r){e._emitHttpError(t,null,"tus: failed to resume upload",r)}))}},{key:"_performUpload",value:function(){var e,t=this;this._aborted||(this.options.overridePatchMethod?(e=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):e=this._openRequest("PATCH",this.url),e.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(e).then((function(r){gg(r.getStatus(),200)?t._handleUploadResponse(e,r):t._emitHttpError(e,r,"tus: unexpected response while uploading chunk")})).catch((function(r){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),r)})))}},{key:"_addChunkToRequest",value:function(e){var t=this,r=this._offset,n=this._offset+this.options.chunkSize;return e.setProgressHandler((function(e){t._emitProgress(r+e,t._size)})),e.setHeader("Content-Type","application/offset+octet-stream"),(n===1/0||n>this._size)&&!this.options.uploadLengthDeferred&&(n=this._size),this._source.slice(r,n).then((function(r){var n=r.value,o=r.done,i=n&&n.size?n.size:0;t.options.uploadLengthDeferred&&o&&(t._size=t._offset+i,e.setHeader("Upload-Length",t._size));var a=t._offset+i;return!t.options.uploadLengthDeferred&&o&&a!==t._size?Promise.reject(new Error("upload was configured with a size of ".concat(t._size," bytes, but the source is done after ").concat(a," bytes"))):null===n?t._sendRequest(e):(t._emitProgress(t._offset,t._size),t._sendRequest(e,n))}))}},{key:"_handleUploadResponse",value:function(e,t){var r=parseInt(t.getHeader("Upload-Offset"),10);if(Number.isNaN(r))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(r,this._size),this._emitChunkComplete(r-this._offset,r,this._size),this._offset=r,r===this._size)return this._emitSuccess(),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var r=vg(e,t,this.options);return this._req=r,r}},{key:"_removeFromUrlStorage",value:function(){var e=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch((function(t){e._emitError(t)})),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var e=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||null!==this._urlStorageKey)return Promise.resolve();var t={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};return this._parallelUploads?t.parallelUploadUrls=this._parallelUploadUrls:t.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,t).then((function(t){e._urlStorageKey=t}))}},{key:"_sendRequest",value:function(e){return yg(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.options)}}],n=[{key:"terminate",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=vg("DELETE",t,r);return yg(n,null,r).then((function(e){if(204!==e.getStatus())throw new rg("tus: unexpected response while terminating upload",null,n,e)})).catch((function(o){if(o instanceof rg||(o=new rg("tus: failed to terminate upload",o,n,null)),!Ag(o,0,r))throw o;var i=r.retryDelays[0],a=r.retryDelays.slice(1),s=ug(ug({},r),{},{retryDelays:a});return new Promise((function(e){return setTimeout(e,i)})).then((function(){return e.terminate(t,s)}))}))}}],r&&dg(t.prototype,r),n&&dg(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function mg(e){return Object.entries(e).map((function(e){var t=ig(e,2),r=t[0],n=t[1];return"".concat(r," ").concat(Dm(String(n)))})).join(",")}function gg(e,t){return e>=t&&e<t+100}function vg(e,t,r){var n=r.httpStack.createRequest(e,t);n.setHeader("Tus-Resumable","1.0.0");var o=r.headers||{};if(Object.entries(o).forEach((function(e){var t=ig(e,2),r=t[0],o=t[1];n.setHeader(r,o)})),r.addRequestId){var i="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)}));n.setHeader("X-Request-ID",i)}return n}function yg(e,t,r){return bg.apply(this,arguments)}function bg(){var e;return e=ng().mark((function e(t,r,n){var o;return ng().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof n.onBeforeRequest){e.next=3;break}return e.next=3,n.onBeforeRequest(t);case 3:return e.next=5,t.send(r);case 5:if(o=e.sent,"function"!=typeof n.onAfterResponse){e.next=9;break}return e.next=9,n.onAfterResponse(t,o);case 9:return e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})),bg=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){og(i,n,o,a,s,"next",e)}function s(e){og(i,n,o,a,s,"throw",e)}a(void 0)}))},bg.apply(this,arguments)}function Ag(e,t,r){return!(null==r.retryDelays||t>=r.retryDelays.length||null==e.originalRequest)&&(r&&"function"==typeof r.onShouldRetry?r.onShouldRetry(e,t,r):Og(e))}function Og(e){var t,r=e.originalResponse?e.originalResponse.getStatus():0;return(!gg(r,400)||409===r||423===r)&&(t=!0,"undefined"!=typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(t=!1),t)}function wg(e,t){return new Hm(t,e).toString()}function Cg(e){return Cg="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},Cg(e)}function _g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xg(n.key),n)}}function xg(e){var t=function(e){if("object"!==Cg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Cg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Cg(t)?t:String(t)}hg.defaultOptions=pg;var kg=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(e){return Promise.resolve([])}},{key:"removeUpload",value:function(e){return Promise.resolve()}},{key:"addUpload",value:function(e,t){return Promise.resolve(null)}}])&&_g(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Eg(e){return Eg="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},Eg(e)}function Sg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dg(n.key),n)}}function Dg(e){var t=function(e){if("object"!==Eg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Eg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Eg(t)?t:String(t)}var Pg=!1;try{Pg="localStorage"in window;var Bg="tusSupport",Tg=localStorage.getItem(Bg);localStorage.setItem(Bg,Tg),null===Tg&&localStorage.removeItem(Bg)}catch(Zp){if(Zp.code!==Zp.SECURITY_ERR&&Zp.code!==Zp.QUOTA_EXCEEDED_ERR)throw Zp;Pg=!1}var jg=Pg,qg=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"findAllUploads",value:function(){var e=this._findEntries("tus::");return Promise.resolve(e)}},{key:"findUploadsByFingerprint",value:function(e){var t=this._findEntries("tus::".concat(e,"::"));return Promise.resolve(t)}},{key:"removeUpload",value:function(e){return localStorage.removeItem(e),Promise.resolve()}},{key:"addUpload",value:function(e,t){var r=Math.round(1e12*Math.random()),n="tus::".concat(e,"::").concat(r);return localStorage.setItem(n,JSON.stringify(t)),Promise.resolve(n)}},{key:"_findEntries",value:function(e){for(var t=[],r=0;r<localStorage.length;r++){var n=localStorage.key(r);if(0===n.indexOf(e))try{var o=JSON.parse(localStorage.getItem(n));o.urlStorageKey=n,t.push(o)}catch(e){}}return t}}],r&&Sg(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Rg(e){return Rg="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},Rg(e)}function Mg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Lg(n.key),n)}}function Ng(e,t,r){return t&&Fg(e.prototype,t),r&&Fg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lg(e){var t=function(e){if("object"!==Rg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Rg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Rg(t)?t:String(t)}var Ig=function(){function e(){Mg(this,e)}return Ng(e,[{key:"createRequest",value:function(e,t){return new $g(e,t)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),$g=function(){function e(t,r){Mg(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,r,!0),this._method=t,this._url=r,this._headers={}}return Ng(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(e,t){this._xhr.setRequestHeader(e,t),this._headers[e]=t}},{key:"getHeader",value:function(e){return this._headers[e]}},{key:"setProgressHandler",value:function(e){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(t){t.lengthComputable&&e(t.loaded)})}},{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise((function(r,n){e._xhr.onload=function(){r(new Qg(e._xhr))},e._xhr.onerror=function(e){n(e)},e._xhr.send(t)}))}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),Qg=function(){function e(t){Mg(this,e),this._xhr=t}return Ng(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(e){return this._xhr.getResponseHeader(e)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),Wg=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()};function zg(e){return new Promise((function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var e=n.response;t(e)},n.onerror=function(e){r(e)},n.open("GET",e),n.send()}))}function Ug(e){return Ug="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},Ug(e)}function Vg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Zg(n.key),n)}}function Zg(e){var t=function(e){if("object"!==Ug(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Ug(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ug(t)?t:String(t)}var Yg=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._file=t,this.size=t.size}var t,r;return t=e,r=[{key:"slice",value:function(e,t){if("undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova))return r=this._file.slice(e,t),new Promise((function(e,t){var n=new FileReader;n.onload=function(){var t=new Uint8Array(n.result);e({value:t})},n.onerror=function(e){t(e)},n.readAsArrayBuffer(r)}));var r,n=this._file.slice(e,t),o=t>=this.size;return Promise.resolve({value:n,done:o})}},{key:"close",value:function(){}}],r&&Vg(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Hg(e){return Hg="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},Hg(e)}function Gg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Xg(n.key),n)}}function Xg(e){var t=function(e){if("object"!==Hg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Hg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Hg(t)?t:String(t)}function Kg(e){return void 0===e?0:void 0!==e.size?e.size:e.length}var Jg=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}var t,r;return t=e,r=[{key:"slice",value:function(e,t){return e<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(e,t)}},{key:"_readUntilEnoughDataOrDone",value:function(e,t){var r=this,n=t<=this._bufferOffset+Kg(this._buffer);if(this._done||n){var o=this._getDataFromBuffer(e,t),i=null==o&&this._done;return Promise.resolve({value:o,done:i})}return this._reader.read().then((function(n){var o=n.value;return n.done?r._done=!0:void 0===r._buffer?r._buffer=o:r._buffer=function(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}throw new Error("Unknown data type")}(r._buffer,o),r._readUntilEnoughDataOrDone(e,t)}))}},{key:"_getDataFromBuffer",value:function(e,t){e>this._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var r=0===Kg(this._buffer);return this._done&&r?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}],r&&Gg(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ev(e){return ev="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},ev(e)}function tv(){tv=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:k(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function y(){}function b(){}var A={};u(A,a,(function(){return this}));var O=Object.getPrototypeOf,w=O&&O(O(B([])));w&&w!==r&&n.call(w,a)&&(A=w);var C=b.prototype=v.prototype=Object.create(A);function _(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==ev(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function k(t,r,n){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=E(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?m:p,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function E(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function B(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(ev(t)+" is not iterable")}return y.prototype=b,o(C,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},_(x.prototype),u(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(C),u(C,l,"Generator"),u(C,a,(function(){return this})),u(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=B,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;D(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:B(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function rv(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function nv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ov(n.key),n)}}function ov(e){var t=function(e){if("object"!==ev(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==ev(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ev(t)?t:String(t)}var iv=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n,o;return t=e,r=[{key:"openFile",value:(n=tv().mark((function e(t,r){var n;return tv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Wg()||!t||void 0===t.uri){e.next=11;break}return e.prev=1,e.next=4,zg(t.uri);case 4:return n=e.sent,e.abrupt("return",new Yg(n));case 8:throw e.prev=8,e.t0=e.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(e.t0));case 11:if("function"!=typeof t.slice||void 0===t.size){e.next=13;break}return e.abrupt("return",Promise.resolve(new Yg(t)));case 13:if("function"!=typeof t.read){e.next=18;break}if(r=Number(r),Number.isFinite(r)){e.next=17;break}return e.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return e.abrupt("return",Promise.resolve(new Jg(t,r)));case 18:return e.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return e.stop()}}),e,null,[[1,8]])})),o=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){rv(i,r,o,a,s,"next",e)}function s(e){rv(i,r,o,a,s,"throw",e)}a(void 0)}))},function(e,t){return o.apply(this,arguments)})}],r&&nv(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function av(e){return av="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},av(e)}function sv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pv(n.key),n)}}function lv(e,t){return lv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lv(e,t)}function uv(e){return uv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uv(e)}function cv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cv(Object(r),!0).forEach((function(t){fv(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fv(e,t,r){return(t=pv(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pv(e){var t=function(e){if("object"!==av(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==av(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===av(t)?t:String(t)}var hv=dv(dv({},hg.defaultOptions),{},{httpStack:new Ig,fileReader:new iv,urlStorage:jg?new qg:new kg,fingerprint:function(e,t){return Wg()?Promise.resolve(function(e,t){var r=e.exif?function(e){var t=0;if(0===e.length)return t;for(var r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return t}(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",r,t.endpoint].join("/")}(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}}),mv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lv(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=uv(n);if(o){var r=uv(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===av(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=dv(dv({},hv),t),i.call(this,e,t)}return t=a,r=[{key:"terminate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=dv(dv({},hv),t),hg.terminate(e,t)}}],null&&sv(t.prototype,null),r&&sv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(hg);function gv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var vv=0;function yv(e){return"__private_"+vv+++"_"+e}var bv=yv("uppy"),Av=yv("events");class Ov{constructor(e){Object.defineProperty(this,bv,{writable:!0,value:void 0}),Object.defineProperty(this,Av,{writable:!0,value:[]}),gv(this,bv)[bv]=e}on(e,t){return gv(this,Av)[Av].push([e,t]),gv(this,bv)[bv].on(e,t)}remove(){for(const[e,t]of gv(this,Av)[Av].splice(0))gv(this,bv)[bv].off(e,t)}onFilePause(e,t){this.on("upload-pause",((r,n)=>{e===r&&t(n)}))}onFileRemove(e,t){this.on("file-removed",(r=>{e===r.id&&t(r.id)}))}onPause(e,t){this.on("upload-pause",((r,n)=>{e===r&&t(n)}))}onRetry(e,t){this.on("upload-retry",(r=>{e===r&&t()}))}onRetryAll(e,t){this.on("retry-all",(()=>{gv(this,bv)[bv].getFile(e)&&t()}))}onPauseAll(e,t){this.on("pause-all",(()=>{gv(this,bv)[bv].getFile(e)&&t()}))}onCancelAll(e,t){var r=this;this.on("cancel-all",(function(){gv(r,bv)[bv].getFile(e)&&t(...arguments)}))}onResumeAll(e,t){this.on("resume-all",(()=>{gv(this,bv)[bv].getFile(e)&&t()}))}}class wv extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}function Cv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var _v=0;function xv(e){return"__private_"+_v+++"_"+e}function kv(e){if(null!=e){var t;const r=()=>this.abort(e.reason);e.addEventListener("abort",r,{once:!0});const n=()=>{e.removeEventListener("abort",r)};null==(t=this.then)||t.call(this,n,n)}return this}var Ev=xv("activeRequests"),Sv=xv("queuedHandlers"),Dv=xv("paused"),Pv=xv("pauseTimer"),Bv=xv("downLimit"),Tv=xv("upperLimit"),jv=xv("rateLimitingTimer"),qv=xv("call"),Rv=xv("queueNext"),Mv=xv("next"),Fv=xv("queue"),Nv=xv("dequeue"),Lv=xv("resume"),Iv=xv("increaseLimit");class $v{constructor(e){Object.defineProperty(this,Nv,{value:Vv}),Object.defineProperty(this,Fv,{value:Uv}),Object.defineProperty(this,Mv,{value:zv}),Object.defineProperty(this,Rv,{value:Wv}),Object.defineProperty(this,qv,{value:Qv}),Object.defineProperty(this,Ev,{writable:!0,value:0}),Object.defineProperty(this,Sv,{writable:!0,value:[]}),Object.defineProperty(this,Dv,{writable:!0,value:!1}),Object.defineProperty(this,Pv,{writable:!0,value:void 0}),Object.defineProperty(this,Bv,{writable:!0,value:1}),Object.defineProperty(this,Tv,{writable:!0,value:void 0}),Object.defineProperty(this,jv,{writable:!0,value:void 0}),Object.defineProperty(this,Lv,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,Iv,{writable:!0,value:()=>{if(Cv(this,Dv)[Dv])Cv(this,jv)[jv]=setTimeout(Cv(this,Iv)[Iv],0);else{Cv(this,Bv)[Bv]=this.limit,this.limit=Math.ceil((Cv(this,Tv)[Tv]+Cv(this,Bv)[Bv])/2);for(let e=Cv(this,Bv)[Bv];e<=this.limit;e++)Cv(this,Rv)[Rv]();Cv(this,Tv)[Tv]-Cv(this,Bv)[Bv]>3?Cv(this,jv)[jv]=setTimeout(Cv(this,Iv)[Iv],2e3):Cv(this,Bv)[Bv]=Math.floor(Cv(this,Bv)[Bv]/2)}}}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return!Cv(this,Dv)[Dv]&&Cv(this,Ev)[Ev]<this.limit?Cv(this,qv)[qv](e):Cv(this,Fv)[Fv](e,t)}wrapSyncFunction(e,t){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];const a=r.run((()=>(e(...o),queueMicrotask((()=>a.done())),()=>{})),t);return{abortOn:kv,abort(){a.abort()}}}}wrapPromiseFunction(e,t){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];let a;const s=new Promise(((n,i)=>{a=r.run((()=>{let t,r;try{r=Promise.resolve(e(...o))}catch(e){r=Promise.reject(e)}return r.then((e=>{t?i(t):(a.done(),n(e))}),(e=>{t?i(t):(a.done(),i(e))})),e=>{t=function(e){return new Error("Cancelled",{cause:e})}(e)}}),t)}));return s.abort=e=>{a.abort(e)},s.abortOn=kv,s}}resume(){Cv(this,Dv)[Dv]=!1,clearTimeout(Cv(this,Pv)[Pv]);for(let e=0;e<this.limit;e++)Cv(this,Rv)[Rv]()}pause(e){void 0===e&&(e=null),Cv(this,Dv)[Dv]=!0,clearTimeout(Cv(this,Pv)[Pv]),null!=e&&(Cv(this,Pv)[Pv]=setTimeout(Cv(this,Lv)[Lv],e))}rateLimit(e){clearTimeout(Cv(this,jv)[jv]),this.pause(e),this.limit>1&&Number.isFinite(this.limit)&&(Cv(this,Tv)[Tv]=this.limit-1,this.limit=Cv(this,Bv)[Bv],Cv(this,jv)[jv]=setTimeout(Cv(this,Iv)[Iv],e))}get isPaused(){return Cv(this,Dv)[Dv]}}function Qv(e){Cv(this,Ev)[Ev]+=1;let t,r=!1;try{t=e()}catch(e){throw Cv(this,Ev)[Ev]-=1,e}return{abort:e=>{r||(r=!0,Cv(this,Ev)[Ev]-=1,null==t||t(e),Cv(this,Rv)[Rv]())},done:()=>{r||(r=!0,Cv(this,Ev)[Ev]-=1,Cv(this,Rv)[Rv]())}}}function Wv(){queueMicrotask((()=>Cv(this,Mv)[Mv]()))}function zv(){if(Cv(this,Dv)[Dv]||Cv(this,Ev)[Ev]>=this.limit)return;if(0===Cv(this,Sv)[Sv].length)return;const e=Cv(this,Sv)[Sv].shift();if(null==e)throw new Error("Invariant violation: next is null");const t=Cv(this,qv)[qv](e.fn);e.abort=t.abort,e.done=t.done}function Uv(e,t){const r={fn:e,priority:(null==t?void 0:t.priority)||0,abort:()=>{Cv(this,Nv)[Nv](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=Cv(this,Sv)[Sv].findIndex((e=>r.priority>e.priority));return-1===n?Cv(this,Sv)[Sv].push(r):Cv(this,Sv)[Sv].splice(n,0,r),r}function Vv(e){const t=Cv(this,Sv)[Sv].indexOf(e);-1!==t&&Cv(this,Sv)[Sv].splice(t,1)}function Zv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Yv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Hv=0;function Gv(e){return"__private_"+Hv+++"_"+e}const Xv={endpoint:"",uploadUrl:null,metadata:{},uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,overridePatchMethod:!1,headers:{},addRequestId:!1,chunkSize:1/0,retryDelays:[100,1e3,3e3,5e3],parallelUploads:1,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1},Kv={limit:20,retryDelays:Xv.retryDelays,withCredentials:!1};var Jv=Gv("retryDelayIterator"),ey=Gv("uploadLocalFile"),ty=Gv("getCompanionClientArgs"),ry=Gv("uploadFiles"),ny=Gv("handleUpload");class oy extends _h{constructor(e,t){var r,n;if(super(e,{...Kv,...t}),Object.defineProperty(this,ry,{value:sy}),Object.defineProperty(this,ty,{value:ay}),Object.defineProperty(this,ey,{value:iy}),Object.defineProperty(this,Jv,{writable:!0,value:void 0}),Object.defineProperty(this,ny,{writable:!0,value:async e=>{if(0===e.length)return void this.uppy.log("[Tus] No files to upload");0===this.opts.limit&&this.uppy.log("[Tus] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/tus/#limit-0","warning"),this.uppy.log("[Tus] Uploading...");const t=this.uppy.getFilesByIds(e);await Yv(this,ry)[ry](t)}}),this.type="uploader",this.id=this.opts.id||"Tus",void 0===(null==t?void 0:t.allowedMetaFields)&&"metaFields"in this.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");if("autoRetry"in t)throw new Error("The `autoRetry` option was deprecated and has been removed.");this.requests=null!=(r=this.opts.rateLimitedQueue)?r:new $v(this.opts.limit),Yv(this,Jv)[Jv]=null==(n=this.opts.retryDelays)?void 0:n.values(),this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null),this.handleResetProgress=this.handleResetProgress.bind(this)}handleResetProgress(){const e={...this.uppy.getState().files};Object.keys(e).forEach((t=>{var r;if(null!=(r=e[t])&&null!=(r=r.tus)&&r.uploadUrl){const r={...e[t].tus};delete r.uploadUrl,e[t]={...e[t],tus:r}}})),this.uppy.setState({files:e})}resetUploaderReferences(e,t){const r=this.uploaders[e];r&&(r.abort(),null!=t&&t.abort&&r.abort(!0),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null)}onReceiveUploadUrl(e,t){const r=this.uppy.getFile(e.id);r&&(r.tus&&r.tus.uploadUrl===t||(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(r.id,{tus:{...r.tus,uploadUrl:t}})))}install(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!0}}),this.uppy.addUploader(Yv(this,ny)[ny]),this.uppy.on("reset-progress",this.handleResetProgress)}uninstall(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!1}}),this.uppy.removeUploader(Yv(this,ny)[ny])}}function iy(e){var t=this;return this.resetUploaderReferences(e.id),new Promise(((r,n)=>{let o,i,a;const s={...this.opts,...e.tus||{}};"function"==typeof s.headers&&(s.headers=s.headers(e));const{onShouldRetry:l,onBeforeRequest:u,...c}=s,d={...Xv,...c};var f;d.fingerprint=(f=e,(e,t)=>{if("undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)||"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase())return hv.fingerprint(e,t);const r=["tus",f.id,t.endpoint].join("-");return Promise.resolve(r)}),d.onBeforeRequest=async t=>{let r;if(t.getUnderlyingObject().withCredentials=!!s.withCredentials,"function"==typeof u&&(r=u(t,e)),Zv(o,"shouldBeRequeued")){if(!o.shouldBeRequeued)return Promise.reject();let t;const n=new Promise((e=>{t=e}));return o=this.requests.run((()=>(e.isPaused&&o.abort(),t(),()=>{}))),void await Promise.all([n,r])}return r},d.onError=t=>{var r;this.uppy.log(t);const i=null!=t.originalRequest?t.originalRequest.getUnderlyingObject():null;(function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)})(i)&&(t=new wv(t,i)),this.resetUploaderReferences(e.id),null==(r=o)||r.abort(),this.uppy.emit("upload-error",e,t),"function"==typeof s.onError&&s.onError(t),n(t)},d.onProgress=(t,r)=>{this.onReceiveUploadUrl(e,a.url),"function"==typeof s.onProgress&&s.onProgress(t,r),this.uppy.emit("upload-progress",this.uppy.getFile(e.id),{uploader:this,bytesUploaded:t,bytesTotal:r})},d.onSuccess=()=>{var t;const n={uploadURL:null!=(t=a.url)?t:void 0,status:200,body:{}};if(this.resetUploaderReferences(e.id),o.done(),this.uppy.emit("upload-success",this.uppy.getFile(e.id),n),a.url){const{name:e}=a.file;this.uppy.log(`Download ${e} from ${a.url}`)}"function"==typeof s.onSuccess&&s.onSuccess(),r(a)};const p=e=>{var t;const r=null==e||null==(t=e.originalResponse)?void 0:t.getStatus();if(429===r){if(!this.requests.isPaused){var n;const e=null==(n=Yv(this,Jv)[Jv])?void 0:n.next();if(null==e||e.done)return!1;this.requests.rateLimit(e.value)}}else{if(null!=r&&r>400&&r<500&&409!==r&&423!==r)return!1;"undefined"!=typeof navigator&&!1===navigator.onLine&&(this.requests.isPaused||(this.requests.pause(),window.addEventListener("online",(()=>{this.requests.resume()}),{once:!0})))}return o.abort(),o={shouldBeRequeued:!0,abort(){this.shouldBeRequeued=!1},done(){throw new Error("Cannot mark a queued request as done: this indicates a bug")},fn(){throw new Error("Cannot run a queued request: this indicates a bug")}},!0};d.onShouldRetry=null!=l?(e,t)=>l(e,t,s,p):p;const h=(e,t,r)=>{Zv(e,t)&&!Zv(e,r)&&(e[r]=e[t])},m={};(Array.isArray(s.allowedMetaFields)?s.allowedMetaFields:Object.keys(e.meta)).forEach((t=>{m[t]=String(e.meta[t])})),h(m,"type","filetype"),h(m,"name","filename"),d.metadata=m,a=new mv(e.data,d),this.uploaders[e.id]=a;const g=new Ov(this.uppy);this.uploaderEvents[e.id]=g,i=()=>(e.isPaused||a.start(),()=>{}),a.findPreviousUploads().then((t=>{const r=t[0];r&&(this.uppy.log(`[Tus] Resuming upload of ${e.id} started at ${r.creationTime}`),a.resumeFromPreviousUpload(r))})),o=this.requests.run(i),g.onFileRemove(e.id,(t=>{o.abort(),this.resetUploaderReferences(e.id,{abort:!!a.url}),r(`upload ${t} was removed`)})),g.onPause(e.id,(e=>{o.abort(),e?a.abort():o=this.requests.run(i)})),g.onPauseAll(e.id,(()=>{o.abort(),a.abort()})),g.onCancelAll(e.id,(function(n){let{reason:i}=void 0===n?{}:n;"user"===i&&(o.abort(),t.resetUploaderReferences(e.id,{abort:!!a.url})),r(`upload ${e.id} was canceled`)})),g.onResumeAll(e.id,(()=>{o.abort(),e.error&&a.abort(),o=this.requests.run(i)}))})).catch((t=>{throw this.uppy.emit("upload-error",e,t),t}))}function ay(e){var t;const r={...this.opts};return e.tus&&Object.assign(r,e.tus),{...null==(t=e.remote)?void 0:t.body,endpoint:r.endpoint,uploadUrl:r.uploadUrl,protocol:"tus",size:e.data.size,headers:r.headers,metadata:e.meta}}async function sy(e){const t=function(e){return e.filter((e=>!(e=>"error"in e&&!!e.error)(e)))}(e),r=function(e){return e.filter((e=>{var t;return!(null!=(t=e.progress)&&t.uploadStarted&&e.isRestored)}))}(t);this.uppy.emit("upload-start",r),await Promise.allSettled(t.map((e=>{if(e.isRemote){const t=()=>this.requests,r=new AbortController,n=t=>{t.id===e.id&&r.abort()};this.uppy.on("file-removed",n);const o=this.uppy.getRequestClientForFile(e).uploadRemoteFile(e,Yv(this,ty)[ty](e),{signal:r.signal,getQueue:t});return this.requests.wrapSyncFunction((()=>{this.uppy.off("file-removed",n)}),{priority:-1})(),o}return Yv(this,ey)[ey](e)})))}oy.VERSION="3.5.4";const ly=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],uy=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],cy=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],dy=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],fy=(e,t,r)=>{let n=e;return"string"==typeof t||Array.isArray(t)?n=e.toLocaleString(t,r):!0!==t&&void 0===r||(n=e.toLocaleString(void 0,r)),n};function py(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const r=(t={bits:!1,binary:!1,space:!0,...t}).bits?t.binary?dy:cy:t.binary?uy:ly,n=t.space?" ":"";if(t.signed&&0===e)return` 0${n}${r[0]}`;const o=e<0,i=o?"-":t.signed?"+":"";let a;if(o&&(e=-e),void 0!==t.minimumFractionDigits&&(a={minimumFractionDigits:t.minimumFractionDigits}),void 0!==t.maximumFractionDigits&&(a={maximumFractionDigits:t.maximumFractionDigits,...a}),e<1)return i+fy(e,t.locale,a)+n+r[0];const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),r.length-1);return e/=(t.binary?1024:1e3)**s,a||(e=e.toPrecision(3)),i+fy(Number(e),t.locale,a)+n+r[s]}var hy,my,gy={exports:{}},vy={},yy={};"production"===Mu.env.NODE_ENV?gy.exports=function(){if(hy)return vy;hy=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case n:case i:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case u:case p:case f:case a:return e;default:return h}}case r:return h}}}return e=Symbol.for("react.module.reference"),vy.ContextConsumer=s,vy.ContextProvider=a,vy.Element=t,vy.ForwardRef=u,vy.Fragment=n,vy.Lazy=p,vy.Memo=f,vy.Portal=r,vy.Profiler=i,vy.StrictMode=o,vy.Suspense=c,vy.SuspenseList=d,vy.isAsyncMode=function(){return!1},vy.isConcurrentMode=function(){return!1},vy.isContextConsumer=function(e){return m(e)===s},vy.isContextProvider=function(e){return m(e)===a},vy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},vy.isForwardRef=function(e){return m(e)===u},vy.isFragment=function(e){return m(e)===n},vy.isLazy=function(e){return m(e)===p},vy.isMemo=function(e){return m(e)===f},vy.isPortal=function(e){return m(e)===r},vy.isProfiler=function(e){return m(e)===i},vy.isStrictMode=function(e){return m(e)===o},vy.isSuspense=function(e){return m(e)===c},vy.isSuspenseList=function(e){return m(e)===d},vy.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===c||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},vy.typeOf=m,vy}():gy.exports=(my||(my=1,"production"!==Mu.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case n:case i:case o:case c:case d:return m;default:var g=m&&m.$$typeof;switch(g){case l:case s:case u:case p:case f:case a:return g;default:return h}}case r:return h}}}e=Symbol.for("react.module.reference");var g=s,v=a,y=t,b=u,A=n,O=p,w=f,C=r,_=i,x=o,k=c,E=d,S=!1,D=!1;yy.ContextConsumer=g,yy.ContextProvider=v,yy.Element=y,yy.ForwardRef=b,yy.Fragment=A,yy.Lazy=O,yy.Memo=w,yy.Portal=C,yy.Profiler=_,yy.StrictMode=x,yy.Suspense=k,yy.SuspenseList=E,yy.isAsyncMode=function(e){return S||(S=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},yy.isConcurrentMode=function(e){return D||(D=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},yy.isContextConsumer=function(e){return m(e)===s},yy.isContextProvider=function(e){return m(e)===a},yy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},yy.isForwardRef=function(e){return m(e)===u},yy.isFragment=function(e){return m(e)===n},yy.isLazy=function(e){return m(e)===p},yy.isMemo=function(e){return m(e)===f},yy.isPortal=function(e){return m(e)===r},yy.isProfiler=function(e){return m(e)===i},yy.isStrictMode=function(e){return m(e)===o},yy.isSuspense=function(e){return m(e)===c},yy.isSuspenseList=function(e){return m(e)===d},yy.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===c||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},yy.typeOf=m}()),yy);var by=gy.exports;function Ay(e){function t(e,n,l,u,f){for(var p,h,m,g,A,w=0,C=0,_=0,x=0,k=0,T=0,q=m=p=0,M=0,F=0,N=0,L=0,I=l.length,$=I-1,Q="",W="",z="",U="";M<I;){if(h=l.charCodeAt(M),M===$&&0!==C+x+_+w&&(0!==C&&(h=47===C?10:47),x=_=w=0,I++,$++),0===C+x+_+w){if(M===$&&(0<F&&(Q=Q.replace(d,"")),0<Q.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:Q+=l.charAt(M)}h=59}switch(h){case 123:for(p=(Q=Q.trim()).charCodeAt(0),m=1,L=++M;M<I;){switch(h=l.charCodeAt(M)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(M+1)){case 42:case 47:e:{for(q=M+1;q<$;++q)switch(l.charCodeAt(q)){case 47:if(42===h&&42===l.charCodeAt(q-1)&&M+2!==q){M=q+1;break e}break;case 10:if(47===h){M=q+1;break e}}M=q}}break;case 91:h++;case 40:h++;case 34:case 39:for(;M++<$&&l.charCodeAt(M)!==h;);}if(0===m)break;M++}if(m=l.substring(L,M),0===p&&(p=(Q=Q.replace(c,"").trim()).charCodeAt(0)),64===p){switch(0<F&&(Q=Q.replace(d,"")),h=Q.charCodeAt(1)){case 100:case 109:case 115:case 45:F=n;break;default:F=B}if(L=(m=t(n,F,m,h,f+1)).length,0<j&&(A=s(3,m,F=r(B,Q,N),n,S,E,L,h,f,u),Q=F.join(""),void 0!==A&&0===(L=(m=A.trim()).length)&&(h=0,m="")),0<L)switch(h){case 115:Q=Q.replace(O,a);case 100:case 109:case 45:m=Q+"{"+m+"}";break;case 107:m=(Q=Q.replace(v,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=Q+m,112===u&&(W+=m,m="")}else m=""}else m=t(n,r(n,Q,N),m,u,f+1);z+=m,m=N=F=q=p=0,Q="",h=l.charCodeAt(++M);break;case 125:case 59:if(1<(L=(Q=(0<F?Q.replace(d,""):Q).trim()).length))switch(0===q&&(p=Q.charCodeAt(0),45===p||96<p&&123>p)&&(L=(Q=Q.replace(" ",":")).length),0<j&&void 0!==(A=s(1,Q,n,e,S,E,W.length,u,f,u))&&0===(L=(Q=A.trim()).length)&&(Q="\0\0"),p=Q.charCodeAt(0),h=Q.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){U+=Q+l.charAt(M);break}default:58!==Q.charCodeAt(L-1)&&(W+=o(Q,p,h,Q.charCodeAt(2)))}N=F=q=p=0,Q="",h=l.charCodeAt(++M)}}switch(h){case 13:case 10:47===C?C=0:0===1+p&&107!==u&&0<Q.length&&(F=1,Q+="\0"),0<j*R&&s(0,Q,n,e,S,E,W.length,u,f,u),E=1,S++;break;case 59:case 125:if(0===C+x+_+w){E++;break}default:switch(E++,g=l.charAt(M),h){case 9:case 32:if(0===x+w+C)switch(k){case 44:case 58:case 9:case 32:g="";break;default:32!==h&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===x+C+w&&(F=N=1,g="\f"+g);break;case 108:if(0===x+C+w+D&&0<q)switch(M-q){case 2:112===k&&58===l.charCodeAt(M-3)&&(D=k);case 8:111===T&&(D=T)}break;case 58:0===x+C+w&&(q=M);break;case 44:0===C+_+x+w&&(F=1,g+="\r");break;case 34:case 39:0===C&&(x=x===h?0:0===x?h:x);break;case 91:0===x+C+_&&w++;break;case 93:0===x+C+_&&w--;break;case 41:0===x+C+w&&_--;break;case 40:0===x+C+w&&(0===p&&(2*k+3*T==533||(p=1)),_++);break;case 64:0===C+_+x+w+q+m&&(m=1);break;case 42:case 47:if(!(0<x+w+_))switch(C){case 0:switch(2*h+3*l.charCodeAt(M+1)){case 235:C=47;break;case 220:L=M,C=42}break;case 42:47===h&&42===k&&L+2!==M&&(33===l.charCodeAt(L+2)&&(W+=l.substring(L,M+1)),g="",C=0)}}0===C&&(Q+=g)}T=k,k=h,M++}if(0<(L=W.length)){if(F=n,0<j&&void 0!==(A=s(2,W,F,e,S,E,L,u,f,u))&&0===(W=A).length)return U+W+z;if(W=F.join(",")+"{"+W+"}",0!=P*D){switch(2!==P||i(W,2)||(D=0),D){case 111:W=W.replace(b,":-moz-$1")+W;break;case 112:W=W.replace(y,"::-webkit-input-$1")+W.replace(y,"::-moz-$1")+W.replace(y,":-ms-input-$1")+W}D=0}}return U+W+z}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[l++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===P||2===P&&i(l,1)?"-webkit-"+l+l:l}if(0===P||2===P&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(A,"tb");break;case 232:l=a.replace(A,"tb-rl");break;case 220:l=a.replace(A,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),q(2!==t?n:n.replace(_,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(w," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,l,c){for(var d,f=0,p=t;f<j;++f)switch(d=T[f].call(u,e,p,r,n,o,i,a,s,l,c)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(q=null,e?"function"!=typeof e?P=1:(P=2,q=e):P=0),l}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<j){var o=s(-1,r,n,n,S,E,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(B,n,r,0,0);return 0<j&&void 0!==(o=s(-2,i,n,n,S,E,i.length,0,0,0))&&(i=o),D=0,E=S=1,i}var c=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,A=/[svh]\w+-[tblr]{2}/,O=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,C=/-self|flex-/g,_=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,E=1,S=1,D=0,P=1,B=[],T=[],j=0,q=null,R=0;return u.use=function e(t){switch(t){case void 0:case null:j=T.length=0;break;default:if("function"==typeof t)T[j++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else R=0|!!t}return e},u.set=l,void 0!==e&&l(e),u}var Oy={animationIterationCount: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,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 wy(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Cy,_y,xy=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ky=wy((function(e){return xy.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ey={exports:{}},Sy={},Dy={};"production"===Mu.env.NODE_ENV?Ey.exports=function(){if(Cy)return Sy;Cy=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case u:case n:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case p:case a:return e;default:return f}}case r:return f}}}function A(e){return b(e)===u}return Sy.AsyncMode=l,Sy.ConcurrentMode=u,Sy.ContextConsumer=s,Sy.ContextProvider=a,Sy.Element=t,Sy.ForwardRef=c,Sy.Fragment=n,Sy.Lazy=h,Sy.Memo=p,Sy.Portal=r,Sy.Profiler=i,Sy.StrictMode=o,Sy.Suspense=d,Sy.isAsyncMode=function(e){return A(e)||b(e)===l},Sy.isConcurrentMode=A,Sy.isContextConsumer=function(e){return b(e)===s},Sy.isContextProvider=function(e){return b(e)===a},Sy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Sy.isForwardRef=function(e){return b(e)===c},Sy.isFragment=function(e){return b(e)===n},Sy.isLazy=function(e){return b(e)===h},Sy.isMemo=function(e){return b(e)===p},Sy.isPortal=function(e){return b(e)===r},Sy.isProfiler=function(e){return b(e)===i},Sy.isStrictMode=function(e){return b(e)===o},Sy.isSuspense=function(e){return b(e)===d},Sy.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},Sy.typeOf=b,Sy}():Ey.exports=(_y||(_y=1,"production"!==Mu.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case l:case u:case n:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case c:case h:case p:case a:return g;default:return f}}case r:return f}}}var A=l,O=u,w=s,C=a,_=t,x=c,k=n,E=h,S=p,D=r,P=i,B=o,T=d,j=!1;function q(e){return b(e)===u}Dy.AsyncMode=A,Dy.ConcurrentMode=O,Dy.ContextConsumer=w,Dy.ContextProvider=C,Dy.Element=_,Dy.ForwardRef=x,Dy.Fragment=k,Dy.Lazy=E,Dy.Memo=S,Dy.Portal=D,Dy.Profiler=P,Dy.StrictMode=B,Dy.Suspense=T,Dy.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),q(e)||b(e)===l},Dy.isConcurrentMode=q,Dy.isContextConsumer=function(e){return b(e)===s},Dy.isContextProvider=function(e){return b(e)===a},Dy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Dy.isForwardRef=function(e){return b(e)===c},Dy.isFragment=function(e){return b(e)===n},Dy.isLazy=function(e){return b(e)===h},Dy.isMemo=function(e){return b(e)===p},Dy.isPortal=function(e){return b(e)===r},Dy.isProfiler=function(e){return b(e)===i},Dy.isStrictMode=function(e){return b(e)===o},Dy.isSuspense=function(e){return b(e)===d},Dy.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},Dy.typeOf=b}()),Dy);var Py=Ey.exports,By={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ty={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},jy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qy={};function Ry(e){return Py.isMemo(e)?jy:qy[e.$$typeof]||By}qy[Py.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qy[Py.Memo]=jy;var My=Object.defineProperty,Fy=Object.getOwnPropertyNames,Ny=Object.getOwnPropertySymbols,Ly=Object.getOwnPropertyDescriptor,Iy=Object.getPrototypeOf,$y=Object.prototype,Qy=function e(t,r,n){if("string"!=typeof r){if($y){var o=Iy(r);o&&o!==$y&&e(t,o,n)}var i=Fy(r);Ny&&(i=i.concat(Ny(r)));for(var a=Ry(t),s=Ry(r),l=0;l<i.length;++l){var u=i[l];if(!(Ty[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=Ly(r,u);try{My(t,u,c)}catch(e){}}}}return t},Wy=Nu(Qy);function zy(){return(zy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Uy=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},Vy=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!by.typeOf(e)},Zy=Object.freeze([]),Yy=Object.freeze({});function Hy(e){return"function"==typeof e}function Gy(e){return"production"!==Mu.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Xy(e){return e&&"string"==typeof e.styledComponentId}var Ky=void 0!==Mu.env&&(Mu.env.REACT_APP_SC_ATTR||Mu.env.SC_ATTR)||"data-styled",Jy="undefined"!=typeof window&&"HTMLElement"in window,eb=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==Mu.env&&(void 0!==Mu.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==Mu.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==Mu.env.REACT_APP_SC_DISABLE_SPEEDY&&Mu.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==Mu.env.SC_DISABLE_SPEEDY&&""!==Mu.env.SC_DISABLE_SPEEDY?"false"!==Mu.env.SC_DISABLE_SPEEDY&&Mu.env.SC_DISABLE_SPEEDY:"production"!==Mu.env.NODE_ENV)),tb="production"!==Mu.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function rb(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],r=1,n=arguments.length;r<n;r+=1)t.push(r<0||arguments.length<=r?void 0:arguments[r]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t)})),e}function nb(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw"production"===Mu.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):"")):new Error(rb.apply(void 0,[tb[e]].concat(r)).trim())}var ob=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&nb(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),ib=new Map,ab=new Map,sb=1,lb=function(e){if(ib.has(e))return ib.get(e);for(;ab.has(sb);)sb++;var t=sb++;return"production"!==Mu.env.NODE_ENV&&((0|t)<0||t>1<<30)&&nb(16,""+t),ib.set(e,t),ab.set(t,e),t},ub=function(e){return ab.get(e)},cb=function(e,t){t>=sb&&(sb=t+1),ib.set(e,t),ab.set(t,e)},db="style["+Ky+'][data-styled-version="5.3.10"]',fb=new RegExp("^"+Ky+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),pb=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},hb=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(fb);if(s){var l=0|parseInt(s[1],10),u=s[2];0!==l&&(cb(u,l),pb(e,u,s[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(a)}}},mb=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(Ky))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Ky,"active"),n.setAttribute("data-styled-version","5.3.10");var a=__webpack_require__.nc;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},gb=function(){function e(e){var t=this.element=mb(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}nb(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),vb=function(){function e(e){var t=this.element=mb(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),yb=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),bb=Jy,Ab={isServer:!Jy,useCSSOMInjection:!eb},Ob=function(){function e(e,t,r){void 0===e&&(e=Yy),void 0===t&&(t={}),this.options=zy({},Ab,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Jy&&bb&&(bb=!1,function(e){for(var t=document.querySelectorAll(db),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(Ky)&&(hb(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return lb(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(zy({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new yb(o):n?new gb(o):new vb(o),new ob(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(lb(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(lb(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(lb(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=ub(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var l=Ky+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+l+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),wb=/(a)(d)/gi,Cb=function(e){return String.fromCharCode(e+(e>25?39:97))};function _b(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Cb(t%52)+r;return(Cb(t%52)+r).replace(wb,"$1-$2")}var xb=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},kb=function(e){return xb(5381,e)},Eb=kb("5.3.10"),Sb=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic="production"===Mu.env.NODE_ENV&&(void 0===r||r.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Hy(r)&&!Xy(r))return!1}return!0}(e),this.componentId=t,this.baseHash=xb(Eb,t),this.baseStyle=r,Ob.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=Qb(this.rules,e,t,r).join(""),a=_b(xb(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,u=xb(this.baseHash,r.hash),c="",d=0;d<l;d++){var f=this.rules[d];if("string"==typeof f)c+=f,"production"!==Mu.env.NODE_ENV&&(u=xb(u,f+d));else if(f){var p=Qb(f,e,t,r),h=Array.isArray(p)?p.join(""):p;u=xb(u,h+d),c+=h}}if(c){var m=_b(u>>>0);if(!t.hasNameForId(n,m)){var g=r(c,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),Db=/^\s*\/\/.*$/gm,Pb=[":","[",".","#"],Bb=i().createContext();Bb.Consumer;var Tb=i().createContext(),jb=(Tb.Consumer,new Ob),qb=function(){var e,t,r,n,o=Yy,i=o.options,a=void 0===i?Yy:i,s=o.plugins,l=void 0===s?Zy:s,u=new Ay(a),c=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,l,u,c,d){switch(r){case 1:if(0===c&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){c.push(e)})),f=function(r,o,i){return 0===o&&-1!==Pb.indexOf(i[t.length])||i.match(n)?r:"."+e};function p(o,i,a,s){void 0===s&&(s="&");var l=o.replace(Db,""),c=i&&a?a+" "+i+" { "+l+" }":l;return e=s,t=i,r=new RegExp("\\"+t+"\\b","g"),n=new RegExp("(\\"+t+"\\b){2,}"),u(a||!i?"":i,c)}return u.use([].concat(l,[function(e,n,o){2===e&&o.length&&o[0].lastIndexOf(t)>0&&(o[0]=o[0].replace(r,f))},d,function(e){if(-2===e){var t=c;return c=[],t}}])),p.hash=l.length?l.reduce((function(e,t){return t.name||nb(15),xb(e,t.name)}),5381).toString():"",p}(),Rb=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=qb);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return nb(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=qb),this.name+e.hash},e}(),Mb=/([A-Z])/,Fb=/([A-Z])/g,Nb=/^ms-/,Lb=function(e){return"-"+e.toLowerCase()};function Ib(e){return Mb.test(e)?e.replace(Fb,Lb).replace(Nb,"-ms-"):e}var $b=function(e){return null==e||!1===e||""===e};function Qb(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Qb(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}if($b(e))return"";if(Xy(e))return"."+e.styledComponentId;if(Hy(e)){if("function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t)return e;var l=e(t);return"production"!==Mu.env.NODE_ENV&&by.isElement(l)&&console.warn(Gy(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),Qb(l,t,r,n)}var u;return e instanceof Rb?r?(e.inject(r,n),e.getName(n)):e:Vy(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!$b(t[a])&&(Array.isArray(t[a])&&t[a].isCss||Hy(t[a])?i.push(Ib(a)+":",t[a],";"):Vy(t[a])?i.push.apply(i,e(t[a],a)):i.push(Ib(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in Oy||n.startsWith("--")?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString()}var Wb=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function zb(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Hy(e)||Vy(e)?Wb(Qb(Uy(Zy,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:Wb(Qb(Uy(e,r)))}var Ub=/invalid hook call/i,Vb=new Set,Zb=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Yb=/(^-|-$)/g;function Hb(e){return e.replace(Zb,"-").replace(Yb,"")}function Gb(e){return"string"==typeof e&&("production"===Mu.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Xb=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Kb=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Jb(e,t,r){var n=e[r];Xb(t)&&Xb(n)?eA(n,t):e[r]=t}function eA(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(Xb(a))for(var s in a)Kb(s)&&Jb(e,a[s],s)}return e}var tA=i().createContext();tA.Consumer;var rA={};function nA(e,t,r){var o=Xy(e),a=!Gb(e),s=t.attrs,l=void 0===s?Zy:s,u=t.componentId,c=void 0===u?function(e,t){var r="string"!=typeof e?"sc":Hb(e);rA[r]=(rA[r]||0)+1;var n=r+"-"+function(e){return _b(kb(e)>>>0)}("5.3.10"+r+rA[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):u,d=t.displayName,f=void 0===d?function(e){return Gb(e)?"styled."+e:"Styled("+Gy(e)+")"}(e):d,p=t.displayName&&t.componentId?Hb(t.displayName)+"-"+t.componentId:t.componentId||c,h=o&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,m=t.shouldForwardProp;o&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var g,v=new Sb(r,p,o?e.componentStyle:void 0),y=v.isStatic&&0===l.length,b=function(e,t){return function(e,t,r,o){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,u=e.shouldForwardProp,c=e.styledComponentId,d=e.target;"production"!==Mu.env.NODE_ENV&&(0,n.useDebugValue)(c);var f=function(e,t,r){void 0===e&&(e=Yy);var n=zy({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in Hy(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(function(e,t,r){return void 0===r&&(r=Yy),e.theme!==r.theme&&e.theme||t||r.theme}(t,(0,n.useContext)(tA),s)||Yy,t,i),p=f[0],h=f[1],m=function(e,t,r,o){var i=(0,n.useContext)(Bb)||jb,a=(0,n.useContext)(Tb)||qb,s=t?e.generateAndInjectStyles(Yy,i,a):e.generateAndInjectStyles(r,i,a);return"production"!==Mu.env.NODE_ENV&&(0,n.useDebugValue)(s),"production"!==Mu.env.NODE_ENV&&!t&&o&&o(s),s}(a,o,p,"production"!==Mu.env.NODE_ENV?e.warnTooManyClasses:void 0),g=r,v=h.$as||t.$as||h.as||t.as||d,y=Gb(v),b=h!==t?zy({},t,{},h):t,A={};for(var O in b)"$"!==O[0]&&"as"!==O&&("forwardedAs"===O?A.as=b[O]:(u?u(O,ky,v):!y||ky(O))&&(A[O]=b[O]));return t.style&&h.style!==t.style&&(A.style=zy({},t.style,{},h.style)),A.className=Array.prototype.concat(l,c,m!==c?m:null,t.className,h.className).filter(Boolean).join(" "),A.ref=g,(0,n.createElement)(v,A)}(g,e,t,y)};return b.displayName=f,(g=i().forwardRef(b)).attrs=h,g.componentStyle=v,g.displayName=f,g.shouldForwardProp=m,g.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):Zy,g.styledComponentId=p,g.target=o?e.target:e,g.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(Gb(e)?e:Hb(Gy(e)));return nA(e,zy({},o,{attrs:h,componentId:i}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?eA({},e.defaultProps,t):t}}),"production"!==Mu.env.NODE_ENV&&(function(e,t){if("production"!==Mu.env.NODE_ENV){var r="The component "+e+(t?' with the id of "'+t+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",o=console.error;try{var i=!0;console.error=function(e){if(Ub.test(e))i=!1,Vb.delete(r);else{for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];o.apply(void 0,[e].concat(n))}},(0,n.useRef)(),i&&!Vb.has(r)&&(console.warn(r),Vb.add(r))}catch(e){Ub.test(e.message)&&Vb.delete(r)}finally{console.error=o}}}(f,p),g.warnTooManyClasses=function(e,t){var r={},n=!1;return function(o){if(!n&&(r[o]=!0,Object.keys(r).length>=200)){var i=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+i+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),n=!0,r={}}}}(f,p)),Object.defineProperty(g,"toString",{value:function(){return"."+g.styledComponentId}}),a&&Wy(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var oA=function(e){return function e(t,r,n){if(void 0===n&&(n=Yy),!by.isValidElementType(r))return nb(1,String(r));var o=function(){return t(r,n,zb.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,zy({},n,{},o))},o.attrs=function(o){return e(t,r,zy({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(nA,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){oA[e]=oA(e)})),"production"!==Mu.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==Mu.env.NODE_ENV&&"test"!==Mu.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var iA=oA;const aA=zb`
76
76
  pointer-events: none;
77
77
  `,sA=iA.div`
78
78
  position: relative;