@micromerce/formbuilder-react 1.0.1024 → 1.0.1025
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.
- package/dist/formbuilder.js +1 -1
- package/dist/formbuilder.js.map +1 -1
- package/package.json +1 -1
package/dist/formbuilder.js
CHANGED
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
animation: ${wh} 1.4s linear infinite;
|
|
123
123
|
`:null,xh="string"!=typeof Oh?us`
|
|
124
124
|
animation: ${Oh} 1.4s ease-in-out infinite;
|
|
125
|
-
`:null,Ch=ap("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Uf(n.color)}`]]}})(sp(({theme:e})=>{const t=xp(e,{animation:"none"});return{display:"inline-block",variants:[{props:{variant:"determinate"},style:{...Cp(e,"transform")}},{props:{variant:"indeterminate"},style:_h||{animation:`${wh} 1.4s linear infinite`}},...t?[{props:{variant:"indeterminate"},style:t}]:[],...Object.entries(e.palette).filter(bh()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}})),Eh=ap("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),kh=ap("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,n.disableShrink&&t.circleDisableShrink]}})(sp(({theme:e})=>{const t=xp(e,{animation:"none"});return{stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{...Cp(e,"stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:xh||{animation:`${Oh} 1.4s ease-in-out infinite`}},...t?[{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:t}]:[]]}})),Sh=ap("circle",{name:"MuiCircularProgress",slot:"Track"})(sp(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Ph=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,enableTrackSlot:a=!1,min:l,max:s,size:c=40,style:u,thickness:d=3.6,value:f=n.min??0,variant:p="indeterminate",...h}=n,m=l??0,g=s??100,v={...n,color:o,disableShrink:i,size:c,thickness:d,value:f,variant:p,enableTrackSlot:a},b=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Hf({root:["root",n,`color${Uf(r)}`],svg:["svg"],track:["track"],circle:["circle",o&&"circleDisableShrink"]},yh,t)})(v),y={},A={},w={};if("determinate"===p){const e=2*Math.PI*((Ah-d)/2),t=g-m;y.strokeDasharray=e.toFixed(3),y.strokeDashoffset=t>0?`${((g-f)/t*e).toFixed(3)}px`:`${e.toFixed(3)}px`,A.transform="rotate(-90deg)",w["aria-valuenow"]=f,w["aria-valuemin"]=m,w["aria-valuemax"]=g}return(0,la.jsx)(Ch,{className:zl(b.root,r),style:{width:c,height:c,...A,...u},ownerState:v,ref:t,role:"progressbar",...w,...h,children:(0,la.jsxs)(Eh,{className:b.svg,ownerState:v,viewBox:"22 22 44 44",children:[a?(0,la.jsx)(Sh,{className:b.track,ownerState:v,cx:Ah,cy:Ah,r:(Ah-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,(0,la.jsx)(kh,{className:b.circle,style:y,ownerState:v,cx:Ah,cy:Ah,r:(Ah-d)/2,fill:"none",strokeWidth:d})]})})});function Dh(e){return pp("MuiButton",e)}const Mh=hp("MuiButton",["root","text","outlined","contained","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),qh=le().createContext({}),$h=le().createContext(void 0),Th=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Bh=ap(vh,{shouldForwardProp:e=>op(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Uf(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(sp(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,...Cp(e,["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Mh.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Mh.focusVisible}`]:{...e.focusVisible,boxShadow:e.focusVisible?.boxShadow?`${(e.vars||e).shadows[6]}, ${e.focusVisible.boxShadow}`:(e.vars||e).shadows[6]},[`&.${Mh.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Mh.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(bh()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Mh.focusVisible}`]:{boxShadow:e.focusVisible?.boxShadow??"none"},"&:active":{boxShadow:"none"},[`&.${Mh.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loading:!0,loadingPosition:"center"},style:{...Cp(e,["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Mh.loading}`]:{color:"transparent"}}}]}})),jh=ap("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart]}})(({theme:e})=>({display:"inherit",alignItems:"center",marginRight:8,marginLeft:-4,"&::before":{content:'"\\200b"',width:0,overflow:"hidden"},variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{...Cp(e,["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Th]})),Fh=ap("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{...Cp(e,["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Th]})),Nh=ap("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Ih=ap("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Rh=le().forwardRef(function(e,t){const n=le().useContext(qh),r=le().useContext($h),o=cp({props:Ll(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:h=!1,id:m,loading:g=null,loadingIndicator:v,loadingPosition:b="center",size:y="medium",startIcon:A,type:w,variant:O="text",..._}=o,x=$p(m),C=v??(0,la.jsx)(Ph,{"aria-labelledby":x,color:"inherit",size:16}),E={...o,color:a,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,loading:g,loadingIndicator:C,loadingPosition:b,size:y,type:w,variant:O},k=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:l,classes:s}=e,c=Hf({root:["root",a&&"loading",i,`size${Uf(o)}`,`color${Uf(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${Uf(l)}`],startIcon:["icon","startIcon"],endIcon:["icon","endIcon"],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Dh,s);return{...s,...c}})(E),S=(A||g&&"start"===b)&&(0,la.jsx)(jh,{className:k.startIcon,ownerState:E,children:A||(0,la.jsx)(Ih,{className:k.loadingIconPlaceholder,ownerState:E})}),P=(f||g&&"end"===b)&&(0,la.jsx)(Fh,{className:k.endIcon,ownerState:E,children:f||(0,la.jsx)(Ih,{className:k.loadingIconPlaceholder,ownerState:E})}),D=r||"",M="boolean"==typeof g?(0,la.jsx)("span",{className:k.loadingWrapper,style:{display:"contents"},children:g&&(0,la.jsx)(Nh,{className:k.loadingIndicator,ownerState:E,children:C})}):null,{root:q,...$}=k;return(0,la.jsxs)(Bh,{ownerState:E,className:zl(n.className,k.root,s,D),component:l,disabled:c||g,focusRipple:!d,focusVisibleClassName:zl(k.focusVisible,p),ref:t,internalNativeButton:!0,type:w,id:g?x:m,..._,classes:$,children:[S,"end"!==b&&M,i,"end"===b&&M,P]})}),zh=le().createContext(void 0);function Lh({props:e,states:t}){const n=le().useContext(zh),r={};return t.forEach(t=>{const o=e[t];r[t]=void 0===o&&n?n[t]:o}),[r,n]}function Qh(e){return pp("MuiTypography",e)}hp("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom"]);const Wh=ap("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Uf(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom]}})(sp(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([e,t])=>"inherit"!==e&&t&&"object"==typeof t).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(bh()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>"string"==typeof e).map(([t])=>({props:{color:`text${Uf(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}}]}))),Vh={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Hh=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiTypography"}),{color:r,align:o="inherit",className:i,component:a,gutterBottom:l=!1,noWrap:s=!1,variant:c="body1",variantMapping:u=Vh,...d}=n,f={...n,align:o,color:r,className:i,component:a,gutterBottom:l,noWrap:s,variant:c,variantMapping:u},p=a||u[c]||Vh[c]||"span",h=(e=>{const{align:t,gutterBottom:n,noWrap:r,variant:o,classes:i}=e;return Hf({root:["root",o,"inherit"!==e.align&&`align${Uf(t)}`,n&&"gutterBottom",r&&"noWrap"]},Qh,i)})(f);return(0,la.jsx)(Wh,{as:p,ref:t,className:zl(h.root,i),...d,ownerState:f,style:{..."inherit"!==o&&{"--Typography-textAlign":o},...d.style}})});function Uh(e){return pp("MuiFormControlLabel",e)}const Zh=hp("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementEnd","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Gh=function(e){return"string"==typeof e},Yh=function(e,t,n){return void 0===e||Gh(e)?t:{...t,ownerState:{...t.ownerState,...n}}},Xh=function(e,t,n){return"function"==typeof e?e(t,n):e};function Kh(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t}const Jh=function(e){if(void 0===e)return{};const t={},n=Object.keys(e);for(let r=0;r<n.length;r+=1){const o=n[r];Kh(o,e[o])&&(t[o]=e[o])}return t},em=function(e){if(void 0===e)return{};const t={},n=Object.keys(e);for(let r=0;r<n.length;r+=1){const o=n[r];Kh(o,e[o])||(t[o]=e[o])}return t},tm=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=zl(n?.className,i,o?.className,r?.className),t={...n,...o,...r};if(e.length>0&&(t.className=e),n?.style||o?.style||r?.style){const e={...n?.style,...o?.style,...r?.style};Object.keys(e).length>0&&(t.style=e)}return{props:t,internalRef:void 0}}const a=Jh({...o,...r}),l=em(r),s=em(o),c=t(a),u=zl(c?.className,n?.className,i,o?.className,r?.className),d={...c,...n,...s,...l};if(u.length>0&&(d.className=u),c?.style||n?.style||o?.style||r?.style){const e={...c?.style,...n?.style,...o?.style,...r?.style};Object.keys(e).length>0&&(d.style=e)}return{props:d,internalRef:c.ref}};function nm(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...s}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,p=u[e]||r,h=Xh(d[e],o),{props:{component:m,...g},internalRef:v}=tm({className:n,...s,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:h}),b=Bp(v,h?.ref,t.ref),y="root"===e?m||c:m;return[p,Yh(p,{..."root"===e&&!c&&!u[e]&&a,..."root"!==e&&!u[e]&&a,...g,...y&&!l&&{as:y},...y&&l&&{component:y},ref:b},o)]}const rm=ap("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Zh.label}`]:t.label},t.root,t[`labelPlacement${Uf(n.labelPlacement)}`]]}})(sp(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Zh.disabled}`]:{cursor:"default"},[`& .${Zh.label}`]:{[`&.${Zh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]}))),om=ap("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(sp(({theme:e})=>({[`&.${Zh.error}`]:{color:(e.vars||e).palette.error.main}}))),im=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiFormControlLabel"}),{checked:r,className:o,control:i,disabled:a,disableTypography:l,label:s,labelPlacement:c="end",name:u,onChange:d,required:f,slots:p={},slotProps:h={},value:m,...g}=n,[v,b]=Lh({props:n,states:["error"]}),y=a??i.props.disabled??b?.disabled,A=f??i.props.required,w={disabled:y,required:A};["checked","name","onChange","value"].forEach(e=>{void 0===i.props[e]&&void 0!==n[e]&&(w[e]=n[e])});const O={...n,disabled:y,labelPlacement:c,required:A,error:v.error},_=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return Hf({root:["root",n&&"disabled",`labelPlacement${Uf(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},Uh,t)})(O),x={slots:p,slotProps:h},[C,E]=nm("typography",{elementType:Hh,externalForwardedProps:x,ownerState:O});let k=s;return null==k||k.type===Hh||l||(k=(0,la.jsx)(C,{component:"span",...E,className:zl(_.label,E?.className),children:k})),(0,la.jsxs)(rm,{className:zl(_.root,o),ownerState:O,ref:t,...g,children:[le().cloneElement(i,w),A?(0,la.jsxs)("div",{children:[k,(0,la.jsxs)(om,{ownerState:O,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]}):k]})}),am=im;var lm=__webpack_require__(4792),sm=__webpack_require__.n(lm),cm=__webpack_require__(8729),um=__webpack_require__(2600);const dm=function(){return ra()().createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{color:"var(--fb-color-alert-text, #B01F14)"}},ra()().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:"currentColor"}))};var fm=__webpack_require__(4737),pm={};pm.styleTagTransform=Ji()(),pm.setAttributes=Xi()(),pm.insert=Yi()().bind(null,"head"),pm.domAPI=Gi()(),pm.insertStyleElement=Ki()(),Zi()()(fm.A,pm);const hm=fm.A&&fm.A.locals?fm.A.locals:void 0;function mm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const gm=function(e){var t,n,r=e.error,o=(t=(0,le().useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return mm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mm(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return ra()().createElement("div",{className:hm.errorContainer,"data-testid":"form-general-error-container"},ra()().createElement("div",{className:hm.iconWrapper},ra()().createElement(dm,null)),ra()().createElement("p",{className:"".concat(hm.errorMessage," ").concat(i?"":hm.closed),"data-testid":"form-general-error-message"},r),ra()().createElement("div",{className:hm.errorMessageToggleButtonContainer},ra()().createElement("button",{type:"button",onClick:function(){a(function(e){return!e})}},i?ra()().createElement(cm.V,{"data-testid":"form-list__sort-down-button",color:"var(--fb-color-alert-text, #B01F14)"}):ra()().createElement(um.U,{"data-testid":"form-list__sort-up-button",color:"var(--fb-color-alert-text, #B01F14)"}))))};var vm=__webpack_require__(1650),bm={};bm.styleTagTransform=Ji()(),bm.setAttributes=Xi()(),bm.insert=Yi()().bind(null,"head"),bm.domAPI=Gi()(),bm.insertStyleElement=Ki()(),Zi()()(vm.A,bm);const ym=vm.A&&vm.A.locals?vm.A.locals:void 0;function Am(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=le().useRef(void 0!==t),[a,l]=le().useState(n);return[i?t:a,le().useCallback(e=>{i||l(e)},[])]}const wm=Am;function Om(e){return pp("PrivateSwitchBase",e)}hp("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _m=ap(vh,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),xm=ap("input",{name:"MuiSwitchBase",shouldForwardProp:op})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Cm=le().forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:i,disabled:a,disableFocusRipple:l=!1,edge:s=!1,icon:c,id:u,name:d,onBlur:f,onChange:p,onFocus:h,readOnly:m,required:g=!1,tabIndex:v,type:b,value:y,slots:A={},slotProps:w={},...O}=e,{nativeButton:_,...x}=O,[C,E]=wm({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),k=le().useContext(zh);let S=a;k&&void 0===S&&(S=k.disabled);const P="checkbox"===b||"radio"===b,D={...e,checked:C,disabled:S,disableFocusRipple:l,edge:s},M=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Hf({root:["root",n&&"checked",r&&"disabled",o&&`edge${Uf(o)}`],input:["input"]},Om,t)})(D),q={slots:A,slotProps:w},[$,T]=nm("root",{ref:t,elementType:_m,className:M.root,shouldForwardComponentProp:!0,externalForwardedProps:{...q,component:"span",...x},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{h&&h(e),k&&k.onFocus&&k.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{f&&f(e),k&&k.onBlur&&k.onBlur(e)})(t)}}),ownerState:D,additionalProps:{centerRipple:!0,focusRipple:!l,role:void 0,tabIndex:null,internalDisabledThemeFocusVisible:!0}}),[B,j]=nm("input",{elementType:xm,className:M.input,externalForwardedProps:q,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented||m)return;const t=e.target.checked;E(t),p&&p(e,t)})(t)}}),ownerState:D,additionalProps:{autoFocus:n,checked:r,defaultChecked:i,disabled:S,id:P?u:void 0,name:d,readOnly:m,required:g,tabIndex:v,type:b,..."checkbox"===b&&void 0===y?{}:{value:y}}});return(0,la.jsxs)($,{...T,children:[(0,la.jsx)(B,{...j}),C?o:c]})}),Em=Cm;function km(e){return pp("MuiSwitch",e)}const Sm=hp("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);function Pm(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach(r=>{Kh(r,t[r])&&"function"==typeof e[r]&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if("function"==typeof e||"function"==typeof t)return r=>{const o="function"==typeof t?t(r):t,i="function"==typeof e?e({...r,...o}):e,a=zl(r?.className,o?.className,i?.className),l=n(i,o),s={...o,...i,...l};return a&&(s.className=a),o?.style&&i?.style&&(s.style={...o.style,...i.style}),o?.sx&&i?.sx&&(s.sx=[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(i.sx)?i.sx:[i.sx]]),s};const r=t,o=n(e,r),i=zl(r?.className,e?.className),a={...t,...e,...o};return i&&(a.className=i),r?.style&&e?.style&&(a.style={...r.style,...e.style}),r?.sx&&e?.sx&&(a.sx=[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]),a}const Dm=ap("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Uf(n.edge)}`],t[`size${Uf(n.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,[`& .${Sm.thumb}`]:{width:16,height:16},[`& .${Sm.switchBase}`]:{padding:4,[`&.${Sm.checked}`]:{transform:"translateX(16px)"}}}}]}),Mm=ap(Em,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Sm.input}`]:t.input},"default"!==n.color&&t[`color${Uf(n.color)}`]]}})(sp(({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]}`,...Cp(e,["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Sm.checked}`]:{transform:"translateX(20px)"},[`&.${Sm.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},...e.focusVisible?{[`&.${hh.focusVisible} ~ .${Sm.track}`]:{...ud,...e.focusVisible},[`&.${Sm.checked} + .${Sm.track}`]:{backgroundColor:e.alpha(e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,.5)},[`&.${Sm.disabled} + .${Sm.track}`]:{backgroundColor:e.alpha(e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2))}}:{[`&.${Sm.checked} + .${Sm.track}`]:{opacity:.5},[`&.${Sm.disabled} + .${Sm.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)}},[`& .${Sm.input}`]:{left:"-100%",width:"300%"}})),sp(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(bh(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Sm.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Sm.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${Sm.checked} + .${Sm.track}`]:{backgroundColor:(e.vars||e).palette[t].main},...e.focusVisible&&{[`&.${Sm.checked} + .${Sm.track}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,.5)},[`&.${Sm.disabled} + .${Sm.track}`]:{backgroundColor:e.alpha(e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2))},[`&.${Sm.checked}.${Sm.disabled} + .${Sm.track}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2))}}}}))]}))),qm=ap("span",{name:"MuiSwitch",slot:"Track"})(sp(({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,...Cp(e,["opacity","background-color"],{duration:e.transitions.duration.shortest}),"@media (forced-colors: active)":{boxSizing:"border-box",border:"1px solid ButtonBorder"},...e.focusVisible?{backgroundColor:e.alpha(e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3))}:{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)}}))),$m=ap("span",{name:"MuiSwitch",slot:"Thumb"})(sp(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",boxSizing:"border-box",border:"1px solid transparent",width:20,height:20,borderRadius:"50%"}))),Tm=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiSwitch"}),{className:r,color:o="primary",edge:i=!1,size:a="medium",sx:l,slots:s={},slotProps:c={},...u}=n,d={...n,color:o,edge:i,size:a},f=(e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,l=Hf({root:["root",n&&`edge${Uf(n)}`,`size${Uf(r)}`],switchBase:["switchBase",`color${Uf(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},km,t);return{...t,...l}})(d),p=c.input,h={slots:s,slotProps:c},[m,g]=nm("root",{className:zl(f.root,r),elementType:Dm,externalForwardedProps:h,ownerState:d,additionalProps:{sx:l}}),[v,b]=nm("thumb",{className:f.thumb,elementType:$m,externalForwardedProps:h,ownerState:d}),y=(0,la.jsx)(v,{...b}),[A,w]=nm("track",{className:f.track,elementType:qm,externalForwardedProps:h,ownerState:d});return(0,la.jsxs)(m,{...g,children:[(0,la.jsx)(Mm,{type:"checkbox",icon:y,checkedIcon:y,ref:t,ownerState:d,...u,classes:{...f,root:f.switchBase},slots:{...s.switchBase&&{root:s.switchBase},...s.input&&{input:s.input}},slotProps:{...c.switchBase&&{root:"function"==typeof c.switchBase?c.switchBase(d):c.switchBase},input:Pm("function"==typeof p?p(d):p,{role:"switch"})}}),(0,la.jsx)(A,{...w})]})});var Bm=ap(Tm)(function(){return{"& .MuiSwitch-track":{backgroundColor:"var(--fb-color-switch-off, rgba(0, 0, 0, 0.38))",opacity:1},"& .MuiSwitch-switchBase.Mui-focusVisible + .MuiSwitch-track":{outline:"var(--fb-focus-ring, none)",outlineOffset:"1px"},"& .MuiSwitch-switchBase.Mui-checked":{color:"white"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"var(--fb-color-accent, #4A96D2)",opacity:1,"&:hover":{backgroundColor:"var(--fb-color-accent-dark, #255F8E)"}}}});function jm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){jm(e,t,n[t])})}return e}var Nm={add:ra()().createElement(Dp,{"data-testid":"formfooter__add-icon"}),save:ra()().createElement(Mp,{"data-testid":"formfooter__save-icon"}),update:ra()().createElement(qp.K,{size:14,"data-testid":"formfooter__update-icon"})};const Im=function(e){var t,n,r,o,i,a,l,s,c,u,d,f=e.controlProps,p=e.error,h=e.iconType,m=e.loading,g=e.onSubmit,v=(0,le().useContext)(uf.og),b=v.formControls,y=v.isExpertMode,A=v.hasExpertMode,w=v.toggleExpertMode,O=h&&Nm[h.toLowerCase()],_=h&&sm()(h)||"Add",x=null!==(t=null==f||null===(i=f.footerProps)||void 0===i?void 0:i.style)&&void 0!==t?t:{},C=null!==(n=null==f||null===(l=f.footerProps)||void 0===l||null===(a=l.container)||void 0===a?void 0:a.style)&&void 0!==n?n:{},E=null!==(r=null==f||null===(c=f.footerProps)||void 0===c||null===(s=c.submitButtonContainer)||void 0===s?void 0:s.style)&&void 0!==r?r:{},k=null!==(o=null==f||null===(d=f.footerProps)||void 0===d||null===(u=d.submitButton)||void 0===u?void 0:u.sx)&&void 0!==o?o:{};return ra()().createElement("div",{"data-testid":"form-footer-container",className:"".concat(ym["form-footer-container"]," fb-form-footer"),style:x},p&&ra()().createElement("div",{className:ym.notificationContainer},ra()().createElement(gm,{error:p})),ra()().createElement("div",{className:ym.controlsContainer,style:C},A?ra()().createElement(am,{"data-testid":"formfooter__expert-mode",control:ra()().createElement(Bm,{checked:y,onChange:w}),label:"Expert Mode",sx:{color:"var(--fb-color-text-secondary, rgba(0,0,0,.54))",marginBottom:0,input:{marginTop:0},".MuiTypography-root":{fontSize:12}}}):ra()().createElement("div",null),ra()().createElement("div",{className:ym["submit-container"],style:E},ra()().createElement("span",{className:ym["required-message"]},"* Please fill in all required fields"),ra()().createElement(Rh,{"data-testid":"formfooter__submit",id:"submit-button",variant:"contained",type:"submit",form:"form-horizontal xhtmlInstantForm",onClick:function(){return g(b)},disabled:m,className:"fb-submit-button",sx:Fm({minHeight:"var(--fb-button-height, 36px)",padding:"var(--fb-button-padding, 6px 16px)",borderRadius:"var(--fb-button-radius, 4px)",textTransform:"var(--fb-button-text-transform, uppercase)",backgroundColor:"var(--fb-color-accent-strong, var(--fb-color-accent, #4A96D2))",boxShadow:"none","&:hover":{backgroundColor:"var(--fb-color-accent-hover, #0B5BA6)",boxShadow:"none"},"&:focus-visible":{outline:"var(--fb-focus-ring, none)",outlineOffset:"1px"}},k),endIcon:m?ra()().createElement("svg",{className:"".concat(ym["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"},ra()().createElement("g",{id:"Gruppe_272","data-name":"Gruppe 272",transform:"translate(-269.58 -82.717)"},ra()().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"}),ra()().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:"var(--fb-color-bg-muted, #f0f0f0)"}),ra()().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:"var(--fb-color-bg-muted, #f0f0f0)"}),ra()().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"}),ra()().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"}),ra()().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:"var(--fb-color-bg-muted, #f0f0f0)"}),ra()().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:"var(--fb-color-bg-muted, #f0f0f0)"}),ra()().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"}),ra()().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:"var(--fb-color-bg-muted, #f0f0f0)"}),ra()().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"}),ra()().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:"var(--fb-color-bg-muted, #f0f0f0)"}),ra()().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"}))):O||Nm.add},_))))};var Rm=__webpack_require__(8156),zm=__webpack_require__.n(Rm),Lm=__webpack_require__(6924),Qm=__webpack_require__.n(Lm),Wm=__webpack_require__(738),Vm={};Vm.styleTagTransform=Ji()(),Vm.setAttributes=Xi()(),Vm.insert=Yi()().bind(null,"head"),Vm.domAPI=Gi()(),Vm.insertStyleElement=Ki()(),Zi()()(Wm.A,Vm);const Hm=Wm.A&&Wm.A.locals?Wm.A.locals:void 0;function Um(e){return parseInt(le().version,10)>=19?e?.props?.ref||null:e?.ref||null}const Zm=ra()().createContext(null),Gm=function(e){const{in:t=!1,appear:n=!1,enter:r=!0,exit:o=!0,mountOnEnter:i=!1,unmountOnExit:a=!1,timeout:l,addEndListener:s,reduceMotion:c=!1,getAutoTimeout:u,nodeRef:d,onEnter:f,onEntering:p,onEntered:h,onExit:m,onExiting:g,onExited:v,children:b,...y}=e,A=le().useContext(Zm),w=A&&!A.isMounting?r:n,[O,_]=le().useState(()=>t?w?"exited":"entered":i||a?"unmounted":"exited"),x=le().useRef(O);x.current=O,t&&"unmounted"===O&&(x.current="exited",_("exited"));const C=le().useRef(t&&w),E=le().useRef(!1),k=le().useRef(null),S=le().useRef(O),P=le().useRef(!1),D=le().useRef(c),M=function(e){const t=zp(()=>function(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}(e)).current;return t.next=e,Vl(t.effect),t}({timeout:l,addEndListener:s,reduceMotion:c,getAutoTimeout:u,onEnter:f,onEntering:p,onEntered:h,onExit:m,onExiting:g,onExited:v,enter:r,exit:o,mountOnEnter:i,unmountOnExit:a,nodeRef:d,parentGroup:A}),q=le().useCallback(()=>{null!==k.current&&(k.current.cancel(),k.current=null)},[]),$=le().useCallback(e=>{let t=!0;const n=()=>{t&&(t=!1,k.current=null,e())};return n.cancel=()=>{t=!1},k.current=n,n},[]),T=le().useCallback((e,t)=>{let n;const r=()=>{void 0!==n&&(clearTimeout(n),n=void 0)},o=$(()=>{r(),x.current=e,_(e)}),i=o.cancel;o.cancel=()=>{r(),i()};const a=M.current.nodeRef.current,l=M.current.addEndListener,s=void 0!==M.current.getAutoTimeout,c=M.current.getAutoTimeout?.(),u=function(e){if(null!=e.autoTimeout)return e.autoTimeout;const t=function(e){if(null==e)return{appear:void 0,enter:void 0,exit:void 0};if("number"==typeof e)return{appear:e,enter:e,exit:e};const t=e.enter,n=e.exit;return{appear:void 0!==e.appear?e.appear:t,enter:t,exit:n}}(e.timeout);return"entering"===e.currentStatus?e.isAppearing?t.appear??t.enter??null:t.enter??null:t.exit??null}({currentStatus:t,isAppearing:P.current,timeout:M.current.timeout,autoTimeout:c}),d=D.current,f=u??(d&&s?0:null),p=e=>{n=setTimeout(o,e)};if(a)return l?(null!=f&&p(d?0:f),void(l.length>=2?l(a,o):l(o))):void p(d?0:u??0);p(0)},[$,M]),B=le().useCallback(e=>{const t=M.current,n=t.parentGroup?t.parentGroup.isMounting:e;if(P.current=n,!e&&!t.enter)return x.current="entered",void _("entered");D.current=t.reduceMotion,t.onEnter?.(n),x.current="entering",_("entering")},[M]),j=le().useCallback(()=>{const e=M.current;if(!e.exit)return x.current="exited",void _("exited");D.current=e.reduceMotion,e.onExit?.(),x.current="exiting",_("exiting")},[M]),F=le().useCallback((e,t)=>{if(q(),"entering"===t){const t=M.current;if(t.mountOnEnter||t.unmountOnExit){const e=t.nodeRef.current;e&&vp(e)}B(e)}else j()},[q,B,j,M]);return Vl(()=>(E.current=!0,C.current&&(C.current=!1,F(!0,"entering")),()=>{E.current=!1,q()}),[q,F]),Vl(()=>{if(!E.current)return;const e=x.current;t?"entering"!==e&&"entered"!==e&&F(!1,"entering"):"entering"===e||"entered"===e?F(!1,"exiting"):"exited"===e&&a&&(x.current="unmounted",_("unmounted"))},[t,O,a,F]),Vl(()=>{if("unmounted"===O||"unmounted"===S.current)return void(S.current=O);const e=S.current!==O;e&&(S.current=O);const t=M.current;"entering"===O?(e&&t.onEntering?.(P.current),null===k.current&&x.current===O&&T("entered","entering")):"exiting"===O?(e&&t.onExiting?.(),null===k.current&&x.current===O&&T("exited","exiting")):"entered"===O&&e?t.onEntered?.(P.current):"exited"===O&&e&&t.onExited?.()},[M,T,O]),"unmounted"===O?null:(0,la.jsx)(Zm.Provider,{value:null,children:b(O,y)})};function Ym(e){return`scale(${e}, ${e**2})`}const Xm={entering:{opacity:1,transform:Ym(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:Ym(.75)},exited:{opacity:0,transform:Ym(.75)}},Km={opacity:0,transform:Ym(.75),visibility:"hidden"},Jm=le().forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,disablePrefersReducedMotion:i=!1,easing:a,in:l,onEnter:s,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:p,style:h,timeout:m="auto",...g}=e,v=le().useRef(null),b=Up(),y=nh(b.motion.reducedMotion,i),A=le().useRef(null),w=jp(A,Um(o),t),O=wp(A,u),_=wp(A,(e,t)=>{y.shouldReduceMotion||vp(e);const{duration:n,delay:r,easing:o}=_p({style:h,timeout:m,easing:a},{mode:"enter"});let i;"auto"!==m||y.shouldReduceMotion?(i=n,v.current=null):(i=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=i);const l=y.getTransitionTiming({duration:i,delay:r});e.style.transition=[b.transitions.create("opacity",{duration:l.duration,delay:l.delay}),b.transitions.create("transform",{duration:"string"==typeof l.duration?l.duration:.666*l.duration,delay:l.delay,easing:o})].join(","),s&&s(e,t)}),x=wp(A,c),C=wp(A,p),E=wp(A,e=>{const{duration:t,delay:n,easing:r}=_p({style:h,timeout:m,easing:a},{mode:"exit"});let o;"auto"!==m||y.shouldReduceMotion?(o=t,v.current=null):(o=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=o);const i=y.getTransitionTiming({duration:o,delay:n});e.style.transition=[b.transitions.create("opacity",{duration:i.duration,delay:i.delay}),b.transitions.create("transform",{duration:"string"==typeof i.duration?i.duration:.666*i.duration,delay:i.delay||("string"==typeof i.duration?i.duration:.333*i.duration),easing:r})].join(","),e.style.opacity=0,e.style.transform=Ym(.75),d&&d(e)}),k=wp(A,e=>{e.style.transition="",f&&f(e)}),S=n?e=>{n(A.current,e)}:void 0;return(0,la.jsx)(Gm,{appear:r,in:l,nodeRef:A,onEnter:_,onEntered:x,onEntering:O,onExit:E,onExited:k,onExiting:C,addEndListener:S,getAutoTimeout:"auto"===m?()=>v.current:void 0,reduceMotion:y.shouldReduceMotion,timeout:"auto"===m?null:m,...g,children:(e,{ownerState:t,...n})=>{const r=Op(e,l,Xm,Km,h,o.props.style);return le().cloneElement(o,{style:r,ref:w,...n})}})});Jm&&(Jm.muiSupportAuto=!0);const eg=Jm;function tg(e){return e&&e.ownerDocument||document}function ng(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rg(e){return e instanceof ng(e).Element||e instanceof Element}function og(e){return e instanceof ng(e).HTMLElement||e instanceof HTMLElement}function ig(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ng(e).ShadowRoot||e instanceof ShadowRoot)}var ag=Math.max,lg=Math.min,sg=Math.round;function cg(){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 ug(){return!/^((?!chrome|android).)*safari/i.test(cg())}function dg(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&og(e)&&(o=e.offsetWidth>0&&sg(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&sg(r.height)/e.offsetHeight||1);var a=(rg(e)?ng(e):window).visualViewport,l=!ug()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function fg(e){var t=ng(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pg(e){return e?(e.nodeName||"").toLowerCase():null}function hg(e){return((rg(e)?e.ownerDocument:e.document)||window.document).documentElement}function mg(e){return dg(hg(e)).left+fg(e).scrollLeft}function gg(e){return ng(e).getComputedStyle(e)}function vg(e){var t=gg(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function bg(e,t,n){void 0===n&&(n=!1);var r,o,i=og(t),a=og(t)&&function(e){var t=e.getBoundingClientRect(),n=sg(t.width)/e.offsetWidth||1,r=sg(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=hg(t),s=dg(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==pg(t)||vg(l))&&(c=(r=t)!==ng(r)&&og(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:fg(r)),og(t)?((u=dg(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=mg(l))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function yg(e){var t=dg(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ag(e){return"html"===pg(e)?e:e.assignedSlot||e.parentNode||(ig(e)?e.host:null)||hg(e)}function wg(e){return["html","body","#document"].indexOf(pg(e))>=0?e.ownerDocument.body:og(e)&&vg(e)?e:wg(Ag(e))}function Og(e,t){var n;void 0===t&&(t=[]);var r=wg(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=ng(r),a=o?[i].concat(i.visualViewport||[],vg(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Og(Ag(a)))}function _g(e){return["table","td","th"].indexOf(pg(e))>=0}function xg(e){return og(e)&&"fixed"!==gg(e).position?e.offsetParent:null}function Cg(e){for(var t=ng(e),n=xg(e);n&&_g(n)&&"static"===gg(n).position;)n=xg(n);return n&&("html"===pg(n)||"body"===pg(n)&&"static"===gg(n).position)?t:n||function(e){var t=/firefox/i.test(cg());if(/Trident/i.test(cg())&&og(e)&&"fixed"===gg(e).position)return null;var n=Ag(e);for(ig(n)&&(n=n.host);og(n)&&["html","body"].indexOf(pg(n))<0;){var r=gg(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Eg="top",kg="bottom",Sg="right",Pg="left",Dg="auto",Mg=[Eg,kg,Sg,Pg],qg="start",$g="end",Tg="viewport",Bg="popper",jg=Mg.reduce(function(e,t){return e.concat([t+"-"+qg,t+"-"+$g])},[]),Fg=[].concat(Mg,[Dg]).reduce(function(e,t){return e.concat([t,t+"-"+qg,t+"-"+$g])},[]),Ng=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ig(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}var Rg={placement:"bottom",modifiers:[],strategy:"absolute"};function zg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Lg(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Rg:o;return function(e,t,n){void 0===n&&(n=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rg,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},i,l.options,o),l.scrollParents={reference:rg(e)?Og(e):e.contextElement?Og(e.contextElement):[],popper:Og(t)};var a,c,f=function(e){var t=Ig(e);return Ng.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(r,l.options.modifiers),c=a.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return l.orderedModifiers=f.filter(function(e){return e.enabled}),l.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:l,name:t,instance:u,options:r});s.push(i||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(zg(t,n)){l.rects={reference:bg(t,Cg(n),"fixed"===l.options.strategy),popper:yg(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,d=o.name;"function"==typeof i&&(l=i({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise(function(e){u.forceUpdate(),e(l)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){d(),c=!0}};if(!zg(e,t))return u;function d(){s.forEach(function(e){return e()}),s=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var Qg={passive:!0};function Wg(e){return e.split("-")[0]}function Vg(e){return e.split("-")[1]}function Hg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ug(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Wg(o):null,a=o?Vg(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case Eg:t={x:l,y:n.y-r.height};break;case kg:t={x:l,y:n.y+n.height};break;case Sg:t={x:n.x+n.width,y:s};break;case Pg:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?Hg(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case qg:t[c]=t[c]-(n[u]/2-r[u]/2);break;case $g:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var Zg={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Gg(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=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 u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=Pg,A=Eg,w=window;if(c){var O=Cg(n),_="clientHeight",x="clientWidth";O===ng(n)&&"static"!==gg(O=hg(n)).position&&"absolute"===l&&(_="scrollHeight",x="scrollWidth"),(o===Eg||(o===Pg||o===Sg)&&i===$g)&&(A=kg,m-=(d&&O===w&&w.visualViewport?w.visualViewport.height:O[_])-r.height,m*=s?1:-1),o!==Pg&&(o!==Eg&&o!==kg||i!==$g)||(y=Sg,p-=(d&&O===w&&w.visualViewport?w.visualViewport.width:O[x])-r.width,p*=s?1:-1)}var C,E=Object.assign({position:l},c&&Zg),k=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:sg(n*o)/o||0,y:sg(r*o)/o||0}}({x:p,y:m},ng(n)):{x:p,y:m};return p=k.x,m=k.y,s?Object.assign({},E,((C={})[A]=b?"0":"",C[y]=v?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",C)):Object.assign({},E,((t={})[A]=b?m+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var Yg={left:"right",right:"left",bottom:"top",top:"bottom"};function Xg(e){return e.replace(/left|right|bottom|top/g,function(e){return Yg[e]})}var Kg={start:"end",end:"start"};function Jg(e){return e.replace(/start|end/g,function(e){return Kg[e]})}function ev(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ig(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function tv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nv(e,t,n){return t===Tg?tv(function(e,t){var n=ng(e),r=hg(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=ug();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+mg(e),y:s}}(e,n)):rg(t)?function(e,t){var n=dg(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):tv(function(e){var t,n=hg(e),r=fg(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=ag(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ag(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+mg(e),s=-r.scrollTop;return"rtl"===gg(o||n).direction&&(l+=ag(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(hg(e)))}function rv(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ov(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function iv(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?"clippingParents":l,c=n.rootBoundary,u=void 0===c?Tg:c,d=n.elementContext,f=void 0===d?Bg:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=rv("number"!=typeof g?g:ov(g,Mg)),b=f===Bg?"reference":Bg,y=e.rects.popper,A=e.elements[h?b:f],w=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=Og(Ag(e)),n=["absolute","fixed"].indexOf(gg(e).position)>=0&&og(e)?Cg(e):e;return rg(n)?t.filter(function(e){return rg(e)&&ev(e,n)&&"body"!==pg(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(t,n){var o=nv(e,n,r);return t.top=ag(o.top,t.top),t.right=lg(o.right,t.right),t.bottom=lg(o.bottom,t.bottom),t.left=ag(o.left,t.left),t},nv(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(rg(A)?A:A.contextElement||hg(e.elements.popper),s,u,a),O=dg(e.elements.reference),_=Ug({reference:O,element:y,strategy:"absolute",placement:o}),x=tv(Object.assign({},y,_)),C=f===Bg?x:O,E={top:w.top-C.top+v.top,bottom:C.bottom-w.bottom+v.bottom,left:w.left-C.left+v.left,right:C.right-w.right+v.right},k=e.modifiersData.offset;if(f===Bg&&k){var S=k[o];Object.keys(E).forEach(function(e){var t=[Sg,kg].indexOf(e)>=0?1:-1,n=[Eg,kg].indexOf(e)>=0?"y":"x";E[e]+=S[n]*t})}return E}const av={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=Wg(g),b=s||(v!==g&&h?function(e){if(Wg(e)===Dg)return[];var t=Xg(e);return[Jg(e),t,Jg(t)]}(g):[Xg(g)]),y=[g].concat(b).reduce(function(e,n){return e.concat(Wg(n)===Dg?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?Fg:s,u=Vg(r),d=u?l?jg:jg.filter(function(e){return Vg(e)===u}):Mg,f=d.filter(function(e){return c.indexOf(e)>=0});0===f.length&&(f=d);var p=f.reduce(function(t,n){return t[n]=iv(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Wg(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)},[]),A=t.rects.reference,w=t.rects.popper,O=new Map,_=!0,x=y[0],C=0;C<y.length;C++){var E=y[C],k=Wg(E),S=Vg(E)===qg,P=[Eg,kg].indexOf(k)>=0,D=P?"width":"height",M=iv(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),q=P?S?Sg:Pg:S?kg:Eg;A[D]>w[D]&&(q=Xg(q));var $=Xg(q),T=[];if(i&&T.push(M[k]<=0),l&&T.push(M[q]<=0,M[$]<=0),T.every(function(e){return e})){x=E,_=!1;break}O.set(E,T)}if(_)for(var B=function(e){var t=y.find(function(t){var n=O.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return x=t,"break"},j=h?3:1;j>0&&"break"!==B(j);j--);t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function lv(e,t,n){return ag(e,lg(t,n))}const sv={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=iv(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=Wg(t.placement),b=Vg(t.placement),y=!b,A=Hg(v),w="x"===A?"y":"x",O=t.modifiersData.popperOffsets,_=t.rects.reference,x=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,E="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(O){if(i){var P,D="y"===A?Eg:Pg,M="y"===A?kg:Sg,q="y"===A?"height":"width",$=O[A],T=$+g[D],B=$-g[M],j=p?-x[q]/2:0,F=b===qg?_[q]:x[q],N=b===qg?-x[q]:-_[q],I=t.elements.arrow,R=p&&I?yg(I):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},L=z[D],Q=z[M],W=lv(0,_[q],R[q]),V=y?_[q]/2-j-W-L-E.mainAxis:F-W-L-E.mainAxis,H=y?-_[q]/2+j+W+Q+E.mainAxis:N+W+Q+E.mainAxis,U=t.elements.arrow&&Cg(t.elements.arrow),Z=U?"y"===A?U.clientTop||0:U.clientLeft||0:0,G=null!=(P=null==k?void 0:k[A])?P:0,Y=$+H-G,X=lv(p?lg(T,$+V-G-Z):T,$,p?ag(B,Y):B);O[A]=X,S[A]=X-$}if(l){var K,J="x"===A?Eg:Pg,ee="x"===A?kg:Sg,te=O[w],ne="y"===w?"height":"width",re=te+g[J],oe=te-g[ee],ie=-1!==[Eg,Pg].indexOf(v),ae=null!=(K=null==k?void 0:k[w])?K:0,le=ie?re:te-_[ne]-x[ne]-ae+E.altAxis,se=ie?te+_[ne]+x[ne]-ae-E.altAxis:oe,ce=p&&ie?function(e,t,n){var r=lv(e,t,n);return r>n?n:r}(le,te,se):lv(p?le:re,te,p?se:oe);O[w]=ce,S[w]=ce-te}t.modifiersData[r]=S}},requiresIfExists:["offset"]},cv={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Wg(n.placement),s=Hg(l),c=[Pg,Sg].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return rv("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ov(e,Mg))}(o.padding,n),d=yg(i),f="y"===s?Eg:Pg,p="y"===s?kg:Sg,h=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],m=a[s]-n.rects.reference[s],g=Cg(i),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=u[f],A=v-d[c]-u[p],w=v/2-d[c]/2+b,O=lv(y,w,A),_=s;n.modifiersData[r]=((t={})[_]=O,t.centerOffset=O-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ev(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function uv(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function dv(e){return[Eg,Sg,kg,Pg].some(function(t){return e[t]>=0})}var fv=Lg({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,s=ng(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,Qg)}),l&&s.addEventListener("resize",n.update,Qg),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Qg)}),l&&s.removeEventListener("resize",n.update,Qg)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ug({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,c={placement:Wg(t.placement),variation:Vg(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,Gg(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Gg(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];og(o)&&pg(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});og(r)&&pg(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Fg.reduce(function(e,n){return e[n]=function(e,t,n){var r=Wg(e),o=[Pg,Eg].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Pg,Sg].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e},{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},av,sv,cv,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=iv(t,{elementContext:"reference"}),l=iv(t,{altBoundary:!0}),s=uv(a,r),c=uv(l,o,i),u=dv(s),d=dv(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const pv=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:Xh(n,r),{props:l,internalRef:s}=tm({...i,externalSlotProps:a}),c=Bp(s,a?.ref,e.additionalProps?.ref);return Yh(t,{...l,ref:c},r)};function hv(){return hv.c||(hv.c=__webpack_require__.n(se()))}function mv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}se();const gv=le().forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=le().useState(null),l=Bp(le().isValidElement(n)?Um(n):null,t);if(Vl(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),Vl(()=>{if(i&&!o)return mv(t,i),()=>{mv(t,null)}},[t,i,o]),o){if(le().isValidElement(n)){const e={ref:l};return le().cloneElement(n,e)}return n}return i?se().createPortal(n,i):i});function vv(e){return pp("MuiPopper",e)}function bv(e){return"function"==typeof e?e():e}hp("MuiPopper",["root"]);const yv={},Av=le().forwardRef(function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:i,modifiers:a,open:l,placement:s,popperOptions:c,popperRef:u,slotProps:d={},slots:f={},TransitionProps:p,ownerState:h,...m}=e,g=le().useRef(null),v=Bp(g,t),b=le().useRef(null),y=Bp(b,u),A=le().useRef(y);Vl(()=>{A.current=y},[y]),le().useImperativeHandle(u,()=>b.current,[]);const w=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}}(s,o),[O,_]=le().useState(w),x=le().useMemo(()=>bv(n),[n]);le().useEffect(()=>{b.current&&b.current.forceUpdate()}),Vl(()=>{if(!x||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{_(e.placement)}}];null!=a&&(e=e.concat(a)),c&&null!=c.modifiers&&(e=e.concat(c.modifiers));const t=fv(x,g.current,{placement:w,...c,modifiers:e});A.current(t);const n=g.current;return()=>{if(n){const{style:e}=n,r=e.position,o=e.top,i=e.left,a=e.transform;t.destroy(),e.position=r,e.top=o,e.left=i,e.transform=a}else t.destroy();A.current(null)}},[x,i,a,l,c,w]);const C={placement:O};null!==p&&(C.TransitionProps=p);const E=(e=>{const{classes:t}=e;return Hf({root:["root"]},vv,t)})(e),k=f.root??"div",S=pv({elementType:k,externalSlotProps:d.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:E.root});return(0,la.jsx)(k,{...S,children:"function"==typeof r?r(C):r})}),wv=ap(le().forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:s,open:c,placement:u="bottom",popperOptions:d=yv,popperRef:f,style:p,transition:h=!1,slotProps:m={},slots:g={},...v}=e,[b,y]=le().useState(!0);if(!l&&!c&&(!h||b))return null;let A;if(o)A=o;else if(n){const e=bv(n);A=e&&void 0!==e.nodeType?tg(e).body:tg(null).body}const w=c||!l||h&&!b?void 0:"none",O=h?{in:c,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return(0,la.jsx)(gv,{disablePortal:a,container:A,children:(0,la.jsx)(Av,{anchorEl:n,direction:i,disablePortal:a,modifiers:s,ref:t,open:h?!b:c,placement:u,popperOptions:d,popperRef:f,slotProps:m,slots:g,...v,style:{position:"fixed",top:0,left:0,display:w,...p},TransitionProps:O,children:r})})}),{name:"MuiPopper",slot:"Root"})({}),Ov=le().forwardRef(function(e,t){const n=Fl(),r=cp({props:e,name:"MuiPopper"}),{anchorEl:o,component:i,container:a,disablePortal:l,keepMounted:s,modifiers:c,open:u,placement:d,popperOptions:f,popperRef:p,transition:h,slots:m,slotProps:g,...v}=r,b={anchorEl:o,container:a,disablePortal:l,keepMounted:s,modifiers:c,open:u,placement:d,popperOptions:f,popperRef:p,transition:h,...v};return(0,la.jsx)(wv,{as:i,direction:n?"rtl":"ltr",slots:m,slotProps:g,...b,ref:t})});function _v(e){return pp("MuiTooltip",e)}const xv=hp("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Cv=ap(Ov,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(sp(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>e.open&&!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${xv.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${xv.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${xv.arrow}`]:{height:"1em",width:"0.71em",insetInlineStart:0,marginInlineStart:"-0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${xv.arrow}`]:{height:"1em",width:"0.71em",insetInlineEnd:0,marginInlineEnd:"-0.71em","&::before":{transformOrigin:"0 0"}}}}]}))),Ev=ap("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Uf(n.placement.split("-")[0])}`]]}})(sp(({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(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,[`.${xv.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center",marginInlineEnd:"14px"},[`.${xv.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center",marginInlineStart:"14px"},[`.${xv.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${xv.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",marginBlock:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(t=16/14,Math.round(1e5*t)/1e5+"em"),fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>e.touch,style:{[`.${xv.popper}[data-popper-placement*="left"] &`]:{marginInlineEnd:"24px"},[`.${xv.popper}[data-popper-placement*="right"] &`]:{marginInlineStart:"24px"},[`.${xv.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"},[`.${xv.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),kv=ap("span",{name:"MuiTooltip",slot:"Arrow"})(sp(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Sv=!1;const Pv=new Vp;let Dv={x:0,y:0};function Mv(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const qv=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiTooltip"}),{arrow:r=!1,children:o,classes:i,describeChild:a=!1,disableFocusListener:l=!1,disableHoverListener:s=!1,disableInteractive:c=!1,disableTouchListener:u=!1,enterDelay:d=100,enterNextDelay:f=0,enterTouchDelay:p=700,followCursor:h=!1,id:m,leaveDelay:g=0,leaveTouchDelay:v=1500,onClose:b,onOpen:y,open:A,placement:w="bottom",slotProps:O={},slots:_={},title:x,...C}=n,E=le().isValidElement(o)?o:(0,la.jsx)("span",{children:o}),k=Up(),[S,P]=le().useState(),[D,M]=le().useState(null),q=le().useRef(!1),$=le().useRef(!1),T=c||h,B=Hp(),j=Hp(),F=Hp(),N=Hp(),[I,R]=wm({controlled:A,default:!1,name:"Tooltip",state:"open"});let z=I;const{current:L}=le().useRef(void 0!==A),Q=$p(m),W=le().useRef(),V=Np(()=>{void 0!==W.current&&(document.body.style.WebkitUserSelect=W.current,W.current=void 0),N.clear()});le().useEffect(()=>V,[V]);const H=e=>{Pv.clear(),Sv=!0,R(!0),y&&!z&&y(e)},U=Np(e=>{$.current=!1,Pv.start(800+g,()=>{Sv=!1}),R(!1),b&&z&&b(e),B.start(k.transitions.duration.shortest,()=>{q.current=!1})}),Z=e=>{q.current&&"touchstart"!==e.type||(S&&S.removeAttribute("title"),j.clear(),F.clear(),d||Sv&&f?j.start(Sv?f:d,()=>{H(e)}):H(e))},G=e=>{if(S?.disabled&&!L){if(z&&!$.current)return;$.current=!0}else $.current=!1;Z(e)},Y=e=>{j.clear(),F.start(g,()=>{U(e)})},[,X]=le().useState(!1),K=e=>{const t=e?.target??S;if(!t||t.disabled||!Tp(t)){X(!1);const n=e??new Event("blur");!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),Y(n)}},J=e=>{if(S||P(e.currentTarget),$.current=!1,Tp(e.target)){const t=e=>{e.target.disabled&&K(e),e.target.removeEventListener("blur",t)};e.target.addEventListener("blur",t),X(!0),Z(e)}},ee=e=>{q.current=!0;const t=E.props;t.onTouchStart&&t.onTouchStart(e)};le().useEffect(()=>{if(z)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&U(e)}},[U,z]);const te=jp(Um(E),P,t);x||0===x||(z=!1);const ne=le().useRef(),re={},oe="string"==typeof x;a?(re.title=z||!oe||s?null:x,re["aria-describedby"]=z?Q:null):(re["aria-label"]=oe?x:null,re["aria-labelledby"]=z&&!oe?Q:null);const ie={...re,...C,...E.props,className:zl(C.className,E.props.className),onTouchStart:ee,ref:te,...h?{onMouseMove:e=>{const t=E.props;t.onMouseMove&&t.onMouseMove(e),Dv={x:e.clientX,y:e.clientY},ne.current&&ne.current.update()}}:{}},ae={};u||(ie.onTouchStart=e=>{ee(e),F.clear(),B.clear(),V(),W.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",N.start(p,()=>{document.body.style.WebkitUserSelect=W.current,G(e)})},ie.onTouchEnd=e=>{E.props.onTouchEnd&&E.props.onTouchEnd(e),V(),F.start(v,()=>{U(e)})}),s||(ie.onMouseOver=Mv(G,ie.onMouseOver),ie.onMouseLeave=Mv(Y,ie.onMouseLeave),T||(ae.onMouseOver=e=>{(!S?.disabled||L||$.current)&&Z(e)},ae.onMouseLeave=Y)),l||(ie.onFocus=Mv(J,ie.onFocus),ie.onBlur=Mv(K,ie.onBlur),T||(ae.onFocus=J,ae.onBlur=K));const se={...n,arrow:r,disableInteractive:T,open:z,placement:w,touch:q.current},ce="function"==typeof O.popper?O.popper(se):O.popper,ue=le().useMemo(()=>{let e=[{name:"arrow",enabled:Boolean(D),options:{element:D,padding:4}}];return ce?.popperOptions?.modifiers&&(e=e.concat(ce.popperOptions.modifiers)),{...ce?.popperOptions,modifiers:e}},[D,ce?.popperOptions]),de=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i,open:a}=e;return Hf({popper:["popper",!n&&"popperInteractive",r&&"popperArrow",!a&&"popperClose"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Uf(i.split("-")[0])}`],arrow:["arrow"]},_v,t)})(se),fe={slots:_,slotProps:{arrow:O.arrow,popper:ce,tooltip:O.tooltip,transition:O.transition}},[pe,he]=nm("popper",{elementType:Cv,externalForwardedProps:fe,ownerState:se,className:de.popper}),[me,ge]=nm("transition",{elementType:eg,externalForwardedProps:fe,ownerState:se}),[ve,be]=nm("tooltip",{elementType:Ev,className:de.tooltip,externalForwardedProps:fe,ownerState:se}),[ye,Ae]=nm("arrow",{elementType:kv,className:de.arrow,externalForwardedProps:fe,ownerState:se,ref:M});return(0,la.jsxs)(le().Fragment,{children:[le().cloneElement(E,ie),(0,la.jsx)(pe,{as:Ov,placement:w,anchorEl:h?{getBoundingClientRect:()=>({top:Dv.y,left:Dv.x,right:Dv.x,bottom:Dv.y,width:0,height:0})}:S,popperRef:ne,open:!!S&&z,id:Q,transition:!0,...ae,...he,popperOptions:ue,children:({TransitionProps:e})=>(0,la.jsx)(me,{timeout:k.transitions.duration.shorter,...e,...ge,children:(0,la.jsxs)(ve,{...be,children:[x,r?(0,la.jsx)(ye,{...Ae}):null]})})})]})}),$v=qv;var Tv=__webpack_require__(3684);function Bv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jv=function(e){var t,n,r,o,i,a,l,s,c,u=e.controlProps,d=function(e,t){if(null==e)return{};var n,r,o,i={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(n=Reflect.ownKeys(Object(e)),o=0;o<n.length;o++)r=n[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,o={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,t),Object.getOwnPropertySymbols)for(n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++)r=n[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,["controlProps"]),f=d.id,p=d.objectPathId,h=d.error,m=d.displayName,g=d.required,v=d.hideLabel,b=void 0!==v&&v,y=d.isExpert,A=d.children,w=d.tooltip,O=d.helper,_=!!h,x=!!y,C=p||f,E=p?"".concat(Hm["control-wrapper"]," fb-control-wrapper"):"".concat(Hm["control-wrapper"]," fb-control-wrapper ").concat(Hm["control-wrapper-firstlayer"]),k=null!==(t=null==u||null===(o=u.controlWrapperProps)||void 0===o?void 0:o.style)&&void 0!==t?t:{},S=null!==(n=null==u||null===(a=u.controlWrapperProps)||void 0===a||null===(i=a.label)||void 0===i?void 0:i.style)&&void 0!==n?n:{},P=null!==(r=null==u||null===(s=u.controlWrapperProps)||void 0===s||null===(l=s.container)||void 0===l?void 0:l.style)&&void 0!==r?r:{};return ra()().createElement("div",{className:cf()()(Hm["form-group"],"fb-form-group",(c={"fb-form-group--error":_},Bv(c,Hm.error,_),Bv(c,Hm.expert,x),c)),style:k},!b&&ra()().createElement("label",{htmlFor:C,"data-testid":"control-label",className:"".concat(Hm["control-label"]," fb-control-label"),style:S},ra()().createElement("div",{className:Hm["text-tooltip-container"],"data-testid":"control-label-container"},ra()().createElement("span",{"data-testid":"name-span"},g?"".concat(m," *"):m),w&&ra()().createElement("div",{className:Hm.tooltip,"data-testid":"tooltip-container"},ra()().createElement($v,{"data-testid":"tooltip-style",title:w,arrow:!0,slotProps:{popper:{className:"fb-tooltip-popper",modifiers:[{name:"offset",options:{offset:[0,-7]}}]},tooltip:{className:"fb-tooltip",sx:{display:"flex",padding:"8px",alignItems:"flex-start",gap:"10px",borderRadius:"4px",background:"var(--fb-color-tooltip-bg, 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(--fb-color-tooltip-bg, var(--grey-900, #333))",top:"0"}}}},ra()().createElement("span",{className:Hm["icon-container"],"data-testid":"tooltip-icon"},ra()().createElement(Tv._,{height:12,width:12})))))),ra()().createElement("div",{className:E,style:P},A,O&&ra()().createElement("div",{className:"".concat(Hm["helper-text"]," fb-helper-text"),"data-testid":"helper-text"},O),ra()().createElement("label",{htmlFor:C,className:"".concat(Hm["error-message"]," fb-error-message")},h)))};function Fv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Fv(e,t,n[t])})}return e}const Iv=function(e){var t,n,r,o,i,a,l,s,c,u,d,f=e.Control,p=e.config,h=e.isExpert,m=e.hideLabel,g=void 0!==m&&m,v=e.controlProps,b=p.control,y=p.id,A=p.objectPathId,w=p.groupIsRequired,O=p.isInRequiredGroup,_=p.isControlHidden,x=void 0!==_&&_,C=b.error,E=b.displayName,k=b.required,S=b.value,P=null==b?void 0:b["custom-attributes"],D=!0===(null==P?void 0:P.readOnly)||"true"===(null==P?void 0:P.readOnly)||!0===(null==P?void 0:P.readonly)||"true"===(null==P?void 0:P.readonly),M=!0===(null==P?void 0:P.alwaysRequired),q=!x&&!D&&(!!M||!(!O&&!w)&&k),$=(0,le().useContext)(uf.og),T=$.updateControl,B=$.showValidationErrors,j="select"===b.control&&(null===(r=b.options)||void 0===r?void 0:r.some(function(e){return e.selected})),F=!B||!q||null!=S&&""!==S||j?void 0:"This field is required.",N={id:y,objectPathId:A,error:(null==C?void 0:C.message)||F,displayName:E,hideLabel:g,isExpert:h,required:q,tooltip:null==b||null===(i=b["custom-attributes"])||void 0===i||null===(o=i.fieldDescription)||void 0===o?void 0:o.tooltip,helper:null!==(t=null==b||null===(l=b["custom-attributes"])||void 0===l||null===(a=l.fieldDescription)||void 0===a?void 0:a.helper)&&void 0!==t?t:null==b?void 0:b.description},I={objectPathId:A,id:y,control:(u=Nv({},b),d={required:q,placeholder:null!==(n=null==b||null===(c=b["custom-attributes"])||void 0===c||null===(s=c.fieldDescription)||void 0===s?void 0:s.placeholder)&&void 0!==n?n:null==b?void 0:b.placeholder},d=null!=d?d:{},Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(d)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(d)).forEach(function(e){Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(d,e))}),u)};return ra()().createElement(jv,Nv({controlProps:v},N),ra()().createElement(f,Nv({controlProps:v,onChangeValue:function(e,t){var n=Nv({hasChanged:!0},e);null==T||T(A||y,Qm()({},b,n,t))}},I)))};function Rv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zv(e){return function(e){if(Array.isArray(e))return Rv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Lv(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.")}()}function Lv(e,t){if(e){if("string"==typeof e)return Rv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rv(e,t):void 0}}var Qv=/mrn:srv:([a-z-A-Z0-9]+):(?:[a-zA-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,Wv=function(e,t,n){var r=e.slice("mrn:srv:".concat(t,":").length);if(!r.startsWith(n))return r.slice(0,r.indexOf(":"))},Vv=function(e){if(e){var t=zv(e.matchAll(Qv)),n=t&&t[0];return n&&4===n.length?{matchAll:t,mrn:n[0],serviceName:n[1],applicationId:n[2],region:Wv(n[0],n[1],n[2]),resource:n[3]}:Hv(e)}},Hv=function(e){var t=zv(e.matchAll(/mrn:srv:([a-z-A-Z0-9]+):(?:[a-zA-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)),n=t&&t[0];return n&&3===n.length?{matchAll:t,mrn:n[0],serviceName:n[1],applicationId:n[2],region:Wv(n[0],n[1],n[2])}:null},Uv="[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}",Zv=new RegExp("^mrn:([a-zA-Z0-9-]+):([a-zA-Z0-9-]+):(".concat(Uv,")(?::(.+))?$")),Gv=new RegExp("^mrn:([a-zA-Z0-9-]+):([a-zA-Z0-9-]+):([a-zA-Z0-9-]*):(".concat(Uv,")(?::(.*))?$")),Yv=function(e){if("string"!=typeof e||!e.startsWith("mrn:")||Zv.test(e))return e;var t=Gv.exec(e);if(!t)return e;var n,r,o=(r=6,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(n,r)||Lv(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[1],a=o[2],l=o[3],s=o[4],c=o[5];return""===l||"eu-central-1"===l?"mrn:".concat(i,":").concat(a,":").concat(s).concat(c?":".concat(c):""):"mrn:".concat(i,":").concat(a,":").concat(l,":").concat(s,":").concat(null!=c?c:"")};const Xv=Pp((0,la.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"})),Kv=Pp((0,la.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"})),Jv=Pp((0,la.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"}));function eb(e){return pp("MuiCheckbox",e)}const tb=hp("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),nb=Vl,rb=ap(Em,{shouldForwardProp:e=>op(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Uf(n.size)}`],"default"!==n.color&&t[`color${Uf(n.color)}`]]}})(sp(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.focusVisible&&{[`&.${hh.focusVisible} svg:first-of-type`]:{...ud,borderRadius:(e.vars||e).shape.borderRadius,...e.focusVisible}},variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(bh()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(bh()).map(([t])=>({props:{color:t},style:{[`&.${tb.checked}, &.${tb.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${tb.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),ob=(0,la.jsx)(Kv,{}),ib=(0,la.jsx)(Xv,{}),ab=(0,la.jsx)(Jv,{}),lb=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiCheckbox"}),{checkedIcon:r=ob,color:o="primary",icon:i=ib,indeterminate:a=!1,indeterminateIcon:l=ab,size:s="medium",disableRipple:c=!1,className:u,slots:d={},slotProps:f={},...p}=n,h=a?l:i,m=a?l:r,g={...n,disableRipple:c,color:o,indeterminate:a,size:s},v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i=Hf({root:["root",n&&"indeterminate",`color${Uf(r)}`,`size${Uf(o)}`]},eb,t);return{...t,...i}})(g),b="function"==typeof f.input?f.input(g):f.input,y=le().useRef(null),A=jp(y,b?.ref);nb(()=>{y.current&&(y.current.indeterminate=a)});const[w,O]=nm("root",{ref:t,elementType:rb,className:zl(v.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:d,slotProps:f,...p},ownerState:g,additionalProps:{type:"checkbox",icon:le().cloneElement(h,{fontSize:h.props.fontSize??s}),checkedIcon:le().cloneElement(m,{fontSize:m.props.fontSize??s}),disableRipple:n.disableRipple,slots:d,slotProps:{input:{...Pm(b,{"data-indeterminate":a,onChange:e=>{e.target.indeterminate=a}}),ref:A}}}});return(0,la.jsx)(w,{...O,classes:v})}),sb=lb;var cb=__webpack_require__(179),ub=__webpack_require__.n(cb),db=__webpack_require__(7387),fb={};fb.styleTagTransform=Ji()(),fb.setAttributes=Xi()(),fb.insert=Yi()().bind(null,"head"),fb.domAPI=Gi()(),fb.insertStyleElement=Ki()(),Zi()()(db.A,fb);const pb=db.A&&db.A.locals?db.A.locals:void 0;const hb=function(e){var t,n=e.onChangeValue,r=function(e,t){if(null==e)return{};var n,r,o,i={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(n=Reflect.ownKeys(Object(e)),o=0;o<n.length;o++)r=n[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,o={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,t),Object.getOwnPropertySymbols)for(n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++)r=n[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,["onChangeValue"]),o=r.control,i=r.id,a=r.objectPathId,l=o.selected,s=void 0!==l&&l,c=o.value||"on",u=a||i;(0,le().useEffect)(function(){n({value:o.selected?c:""})},[]);var d=Object.assign(ub()(r,["objectPathId","checked","control","displayName","error"]),{name:u,value:c,type:o.control,role:o.control});return ra()().createElement(sb,{className:pb["checkbox-container"],id:u,color:"default",checked:s,readOnly:null===(t=o["custom-attributes"])||void 0===t?void 0:t.readOnly,onClick:function(){n({selected:!o.selected,value:o.selected?"":c})},slotProps:{input:d},disableRipple:!0,sx:{padding:"0px",marginLeft:"-2px",color:"var(--fb-color-checkbox-off, #D0D0D0)","&.Mui-checked":{color:"var(--fb-color-accent, #4A96D2)"},"&:hover":{backgroundColor:"transparent",color:"var(--fb-color-accent-dark, #255F8E)"},"&.Mui-focusVisible":{outline:"var(--fb-focus-ring, 2px solid #4A96D2)",outlineOffset:"1px",borderRadius:"2px"}}})},mb=Object.is;function gb(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}const vb=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown","Home","End"];function bb(e,t,n,r){return null!=e?function(e,t,n){const r=_b(t,e);return-1===r?wb(t,n):n(t[r])?t[r].id:Ab(t,r,"next",!1,n)?.id??null}(e,t,n):function(e,t,n){const r=n?.(e);if(null!=r){const n=Ob(e,r);if(n&&t(n))return n.id}return wb(e,t)}(t,n,r)}function yb(e,t,n){if(t){const n=xb(e,t);if(-1!==n)return n}return _b(e,n)}function Ab(e,t,n,r,o){const i=e.length-1;if(-1===i)return null;let a=!1,l=kb(t,i,n,r);const s=l;for(;-1!==l;){if(l===s){if(a)return null;a=!0}const t=e[l];if(t&&o(t))return t;l=kb(l,i,n,r)}return null}function wb(e,t){return e.find(e=>t(e))?.id??null}function Ob(e,t){return null==t?null:e.find(e=>e.id===t)??null}function _b(e,t){return null==t?-1:e.findIndex(e=>e.id===t)}function xb(e,t){return t?e.findIndex(e=>e.element===t||e.element?.contains(t)):-1}function Cb(e){const t=Array.from(e.values());return t.every(e=>null==e.element)?t:[...t.filter(Pb).sort((e,t)=>function(e,t){if(e===t)return 0;const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}(e.element,t.element)),...t.filter(e=>!Pb(e))]}function Eb(e){return Cb(e).filter(Pb)}function kb(e,t,n,r=!0){return"next"===n?e===t?r?0:-1:e+1:0===e?r?t:-1:e-1}function Sb(e){return!!e.element&&(!!e.focusableWhenDisabled||!e.disabled&&!e.element.hasAttribute("disabled")&&"true"!==e.element.getAttribute("aria-disabled")&&e.element.hasAttribute("tabindex"))}function Pb(e){return null!=e.element&&e.element.isConnected}function Db(...e){return t=>{e.forEach(e=>{mv(e??null,t)})}}function Mb(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;const n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}const qb=Mb,$b=tg,Tb=gb;function Bb(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const jb=Bb,Fb=le().createContext(void 0);function Nb(e){return tg(e).defaultView||window}const Ib=Nb,Rb=le().createContext({});function zb(e){return pp("MuiList",e)}hp("MuiList",["root","padding","dense","subheader"]);const Lb=ap("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0,isolation:"isolate"}}]}),Qb=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s,...c}=n,u=le().useMemo(()=>({dense:a}),[a]),d={...n,component:i,dense:a,disablePadding:l},f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Hf({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},zb,t)})(d);return(0,la.jsx)(Rb.Provider,{value:u,children:(0,la.jsxs)(Lb,{as:i,className:zl(f.root,o),ref:t,ownerState:d,...c,children:[s,r]})})}),Wb=le().createContext(null),Vb=Wb.Provider,Hb=le().createContext(void 0);function Ub(e,t){if(void 0===t)return!0;let n=function(e){const t=e?.element??e;if(!t)return"";if(void 0!==e?.textValue)return e.textValue;let n=t.innerText;return void 0===n&&(n=t.textContent),n??""}(e);return n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}const Zb=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiMenuList"}),{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...f}=n,p=le().useRef(null),h=le().useRef(!1),[m,g]=le().useState(!1),v=le().useContext(Wb),b=le().useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null}),y=function(e){const{activeItemId:t,getDefaultActiveItemId:n,orientation:r,isRtl:o=!1,isItemFocusable:i=Sb,wrap:a=!0}=e,[l,s]=le().useState(t),[c,u]=le().useState(t);let d=l;t!==c&&(u(t),void 0!==t&&t!==l&&(d=t,s(t)));const f=le().useRef(null),p=le().useRef(new Map),[h,m]=le().useState(0),g=bb(d,le().useMemo(()=>Cb(p.current),[h]),i,n),v=le().useRef(g);v.current=g;const b=le().useCallback(()=>{const e=Cb(p.current);return Ob(e,bb(v.current,e,i,n))},[n,i]),y=le().useCallback(()=>p.current,[]),A=Fp(e=>{(function(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;let n=0,r=0;for(const r in e){if(n+=1,!mb(e[r],t[r]))return!1;if(!(r in t))return!1}for(const e in t)r+=1;return n===r})(p.current.get(e.id)??null,e)||(p.current.set(e.id,e),m(e=>e+1))}),w=Fp(e=>{p.current.delete(e)&&m(e=>e+1)}),O=Fp(e=>{s(e)}),_=le().useCallback(e=>v.current===e,[]),x=le().useCallback((e,t,n,r)=>{const o=Ab(Eb(p.current),e,t,n,r??i);return o?(o.element?.focus(),s(o.id),o):null},[i]),C=le().useCallback((e,t,n)=>({onFocus:e=>{t?.(e);const n=Eb(p.current),r=xb(n,e.target);-1!==r&&s(n[r].id)},onKeyDown:e=>{if(n?.(e),e.defaultPrevented||e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;if(!vb.includes(e.key))return;let t="horizontal"===r?"ArrowLeft":"ArrowUp",i="horizontal"===r?"ArrowRight":"ArrowDown";"horizontal"===r&&o&&(t="ArrowRight",i="ArrowLeft");const l=Eb(p.current),s=gb(tg(f.current)),c=s===f.current;let u=yb(l,s,v.current),d="next";switch(e.key){case t:d="previous",e.preventDefault(),c&&(u=l.length);break;case i:e.preventDefault(),c&&(u=-1);break;case"Home":e.preventDefault(),u=-1;break;case"End":e.preventDefault(),d="previous",u=l.length;break;default:return}x(u,d,a)},ref:Db(e,e=>{f.current=e})}),[x,o,r,a]),E=le().useCallback(e=>{const t=Eb(p.current),n=gb(tg(f.current)),r=n===f.current?-1:yb(t,n,v.current);return x(r,"next",!0,e)?.id??null},[x]);return le().useMemo(()=>({activeItemId:g,focusNext:E,getActiveItem:b,getContainerProps:C,getItemMap:y,isItemActive:_,registerItem:A,setActiveItemId:O,unregisterItem:w}),[g,E,b,C,y,_,A,O,w])}({activeItemId:void 0,getDefaultActiveItemId:le().useCallback(e=>"selectedMenu"===d?e.find(e=>e.selected&&Sb(e))?.id??e.find(e=>Sb(e))?.id??null:e.find(e=>Sb(e))?.id??null,[d]),orientation:"vertical",wrap:!c}),{activeItemId:A,focusNext:w,getActiveItem:O,getContainerProps:_,getItemMap:x}=y,C=Np((e=!1)=>{if(!p.current||!e&&h.current)return null;if(i){const e=O();if(e?.element){const t=Array.from(x().values()).some(e=>e.selected),n="menu"===d&&t&&!e.selected&&null==v;return g(n),function(e,t){!function(e,t){if(null!=t)try{e.focus({focusVisible:"keyboard"===t})}catch(t){e.focus()}else e.focus()}(e,t)}(e.element,v),h.current=!0,e.element}return o?(g(!1),p.current.focus(),p.current):null}return o?(g(!1),p.current.focus(),h.current=!0,p.current):(g(!1),null)});nb(()=>{if(!o&&!i)return h.current=!1,void g(!1);C()},[A,i,o,C]),le().useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=Ib(e),r=jb(n);if(r>0){const e=`${r}px`,o="rtl"===t?"paddingLeft":"paddingRight",i=parseFloat(n.getComputedStyle(p.current)[o])||0;p.current.style[o]=`${i+r}px`,p.current.style.width=`calc(100% + ${e})`}}return p.current},focusInitialTarget:()=>{if(!p.current)return null;const e=Tb($b(p.current));return e&&qb(p.current,e)?e:C(!0)}}),[C]);const E=_(void 0,f.onFocus),k=jp(p,E.ref,t),S=le().useMemo(()=>({itemsFocusableWhenDisabled:s,suppressInitialFocusVisible:m,variant:d}),[s,m,d]),P=Np(e=>{if(m&&g(!1),(e.ctrlKey||e.metaKey||e.altKey)&&u)u(e);else{if(E.onKeyDown(e),1===e.key.length){const t=b.current,n=e.key.toLowerCase(),r=performance.now();t.keys.length>0&&(r-t.lastTime>500?(t.keys=[],t.repeating=!0,t.previousKeyMatched=!0):t.repeating&&n!==t.keys[0]&&(t.repeating=!1)),t.lastTime=r,t.keys.push(n);const o=Tb($b(p.current)),i=o&&!t.repeating&&Ub(o,t);t.previousKeyMatched&&(i||null!=w(e=>function(e,t){return!!Ub(e,t)&&Sb(e)}(e,t)))?e.preventDefault():t.previousKeyMatched=!1}u&&u(e)}});return(0,la.jsx)(Qb,{role:"menu",ref:k,className:l,onKeyDown:P,tabIndex:-1,...f,onFocus:E.onFocus,children:(0,la.jsx)(Hb.Provider,{value:S,children:(0,la.jsx)(Fb.Provider,{value:y,children:a})})})});function Gb(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}const Yb=Gb,Xb="data-mui-focusable";function Kb(e){return e?e.hasAttribute(Xb)?e:e.querySelector(`[${Xb}]`):null}const Jb=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ey(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}function ty(e){const t=[],n=[];return Array.from(e.querySelectorAll(Jb)).forEach((e,r)=>{const o=ey(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 n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function ny(){return!0}const ry=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=ty,isEnabled:a=ny,open:l}=e,s=le().useRef(!1),c=le().useRef(null),u=le().useRef(null),d=le().useRef(null),f=le().useRef(null),p=le().useRef(!1),h=le().useRef(null),m=Bp(Um(t),h),g=le().useRef(null);le().useEffect(()=>{l&&h.current&&(p.current=!n)},[n,l]),le().useEffect(()=>{if(s.current=!1,!l||!h.current)return;const e=tg(h.current),t=Tb(e),n=Kb(h.current)??h.current;return qb(h.current,t)||(n.hasAttribute("tabIndex")||n.setAttribute("tabIndex","-1"),p.current&&n.focus()),()=>{!o&&d.current&&(s.current=!0,d.current.focus(),d.current=null)}},[l]),le().useEffect(()=>{if(!l||!h.current)return;const e=tg(h.current),t=t=>{if(g.current=t,r||!a()||"Tab"!==t.key)return;const n=h.current,o=Tb(e);if(null===n)return;const l=Kb(n);if(o===n||o===l){const e=i(n);if(0===e.length)return;return t.preventDefault(),void(t.shiftKey?e[e.length-1].focus():e[0].focus())}if(qb(n,o)){const e=i(n),r=e.indexOf(o);if(-1===r)return;if(!e.some(e=>ey(e)>0))return;t.preventDefault();let a=0;a=t.shiftKey?r<=0?e.length-1:r-1:r===e.length-1?0:r+1,e[a].focus()}},n=()=>{const t=h.current;if(null===t)return;const n=Tb(e);if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(qb(t,n))return;if(r&&n!==c.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(null!==f.current)return;if(!p.current)return;let o=[];if(n!==c.current&&n!==u.current||(o=i(h.current)),o.length>0){const e=Boolean(g.current?.shiftKey&&"Tab"===g.current?.key),t=o[0],n=o[o.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{const t=Tb(e);t&&"BODY"===t.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return(0,la.jsxs)(le().Fragment,{children:[(0,la.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),le().cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,la.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})},oy={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},iy={opacity:0,visibility:"hidden"},ay=le().forwardRef(function(e,t){const n=Up(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,disablePrefersReducedMotion:l=!1,easing:s,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:m,style:g,timeout:v=r,...b}=e,y=nh(n.motion.reducedMotion,l),A=le().useRef(null),w=jp(A,Um(a),t),O=wp(A,f),_=wp(A,(e,t)=>{y.shouldReduceMotion||vp(e);const r=_p({style:g,timeout:v,easing:s},{mode:"enter"}),o=y.getTransitionTiming({duration:r.duration,delay:r.delay});e.style.transition=n.transitions.create("opacity",{duration:o.duration,easing:r.easing,delay:o.delay}),u&&u(e,t)}),x=wp(A,d),C=wp(A,m),E=wp(A,e=>{const t=_p({style:g,timeout:v,easing:s},{mode:"exit"}),r=y.getTransitionTiming({duration:t.duration,delay:t.delay});e.style.transition=n.transitions.create("opacity",{duration:r.duration,easing:t.easing,delay:r.delay}),p&&p(e)}),k=wp(A,e=>{e.style.transition="",h&&h(e)}),S=o?e=>{o(A.current,e)}:void 0;return(0,la.jsx)(Gm,{appear:i,in:c,nodeRef:A,onEnter:_,onEntered:x,onEntering:O,onExit:E,onExited:k,onExiting:C,addEndListener:S,reduceMotion:y.shouldReduceMotion,timeout:v,...b,children:(e,{ownerState:t,...n})=>{const r=Op(e,c,oy,iy,g,a.props.style);return le().cloneElement(a,{style:r,ref:w,...n})}})}),ly=ay;function sy(e){return pp("MuiBackdrop",e)}hp("MuiBackdrop",["root","invisible"]);const cy=ap("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),uy=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:i="div",invisible:a=!1,open:l,slotProps:s={},slots:c={},transitionDuration:u,...d}=n,f={...n,component:i,invisible:a},p=(e=>{const{classes:t,invisible:n}=e;return Hf({root:["root",n&&"invisible"]},sy,t)})(f),h={component:i,slots:c,slotProps:s},[m,g]=nm("root",{elementType:cy,externalForwardedProps:h,className:zl(p.root,o),ownerState:f}),[v,b]=nm("transition",{elementType:ly,externalForwardedProps:h,ownerState:f});return(0,la.jsx)(v,{in:l,timeout:u,...d,...b,children:(0,la.jsx)(m,{...g,ref:t,children:r})})});function dy(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function fy(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function py(e){return parseFloat(Nb(e).getComputedStyle(e).paddingRight)||0}function hy(e,t,n,r){[].forEach.call(e.children,e=>{e===t||function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e)||(n.has(e)?hy(e,t,n,r):r.add(e))})}function my(e){const{container:t,modals:n}=e,r=n[n.length-1].modalRef,o=new Set;hy(t,r,function(e,t){const n=new Set;let r=e;for(;r&&r!==t;)n.add(r),r=r.parentElement;return r===t?n:new Set}(r,t),o),o.forEach(t=>{e.hiddenSet.has(t)||"true"!==t.getAttribute("aria-hidden")||o.delete(t)}),e.hiddenSet.forEach(e=>{o.has(e)||fy(e,!1)}),o.forEach(e=>fy(e,!0)),r&&fy(r,!1),e.hiddenSet=o}const gy=()=>{},vy=new class{containers=[];modals=[];add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&fy(e.modalRef,!1);const r=this.containers.findIndex(e=>e.container===t);if(-1!==r)return this.containers[r].modals.push(e),my(this.containers[r]),n;const o={modals:[e],container:t,restore:null,hiddenSet:new Set};return this.containers.push(o),my(o),n}mount(e,t){const n=this.containers.findIndex(t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=function(e,t){const n=[],r=e.container;if(!t.disableScrollLock){let e;if(r.parentNode instanceof DocumentFragment)e=tg(r).body;else{const t=r.parentElement,n=Nb(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}if(function(e){const t=tg(e);return e===t.body||e===t.documentElement?Nb(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(e)){const t=Bb(Nb(e));n.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight=`${py(e)+t}px`;const o=tg(r).querySelectorAll(".mui-fixed");[].forEach.call(o,e=>{n.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight=`${py(e)+t}px`})}n.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()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=this.containers.findIndex(t=>t.modals.includes(e)),o=this.containers[r];return o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length?(o.restore&&o.restore(),e.modalRef&&fy(e.modalRef,t),o.hiddenSet.forEach(e=>fy(e,!1)),o.hiddenSet.clear(),this.containers.splice(r,1)):(my(o),e.modalRef&&fy(e.modalRef,t)),n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function by(e){return pp("MuiModal",e)}hp("MuiModal",["root","hidden","backdrop"]);const yy=ap("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(sp(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),Ay=ap(uy,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),wy=le().forwardRef(function(e,t){const n=cp({name:"MuiModal",props:e}),{classes:r,className:o,closeAfterTransition:i=!1,children:a,container:l,component:s,disableAutoFocus:c=!1,disableEnforceFocus:u=!1,disablePortal:d=!1,disableRestoreFocus:f=!1,disableScrollLock:p=!1,hideBackdrop:h=!1,keepMounted:m=!1,onClose:g,onTransitionEnter:v,onTransitionExited:b,open:y,slotProps:A={},slots:w={},theme:O,..._}=n,x={...n,closeAfterTransition:i,disableAutoFocus:c,disableEnforceFocus:u,disablePortal:d,disableRestoreFocus:f,disableScrollLock:p,hideBackdrop:h,keepMounted:m},{getRootProps:C,getBackdropProps:E,getTransitionProps:k,portalRef:S,portalContainer:P,isTopModal:D,exited:M,hasTransition:q}=function(e){const{container:t,disableScrollLock:n=!1,closeAfterTransition:r=!1,onTransitionEnter:o,onTransitionExited:i,children:a,onClose:l,open:s,rootRef:c}=e,u=le().useRef({}),d=le().useRef(null),f=le().useRef(null),p=le().useRef(null),h=Bp(p,c),[m,g]=le().useState(!s),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(a);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const y=()=>(u.current.modalRef=p.current,u.current.mount=d.current,u.current),A=()=>{vy.mount(y(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},w=Fp(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||tg(d.current).body;vy.add(y(),e),p.current&&A()}),O=()=>vy.isTopModal(y()),_=Fp(e=>{d.current=e,e&&(f.current=e,s&&O()?A():p.current&&fy(p.current,b))}),x=le().useCallback(()=>{vy.remove(y(),b)},[b]);le().useEffect(()=>()=>{x()},[x]),le().useEffect(()=>{s?w():v&&r||x()},[s,x,v,r,w]);const C=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&O()&&(t.stopPropagation(),l&&l(t,"escapeKeyDown"))},E=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&l&&l(t,"backdropClick")},k=s||!v||m?t:f.current??t;return{getRootProps:(t={})=>{const n=Jh(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:C(r),ref:h}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:E(t),open:s}},getTransitionProps:()=>({onEnter:dy(()=>{g(!1),o&&o()},a?.props.onEnter??gy),onExited:dy(()=>{g(!0),i&&i(),r&&x()},a?.props.onExited??gy)}),rootRef:h,portalRef:_,portalContainer:k,isTopModal:O,exited:m,hasTransition:v}}({...x,rootRef:t}),$={...x,exited:M},T=(e=>{const{open:t,exited:n,classes:r}=e;return Hf({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},by,r)})($),B={};if(void 0===a.props.tabIndex&&(B.tabIndex="-1"),q){const{onEnter:e,onExited:t}=k();B.onEnter=e,B.onExited=t}const j={slots:w,slotProps:A},[F,N]=nm("root",{ref:t,elementType:yy,externalForwardedProps:{...j,..._,component:s},getSlotProps:C,ownerState:$,className:zl(o,T?.root,!$.open&&$.exited&&T?.hidden)}),[I,R]=nm("backdrop",{elementType:Ay,externalForwardedProps:j,shouldForwardComponentProp:!0,getSlotProps:e=>E({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:T?.backdrop,ownerState:$});return m||y||q&&!M?(0,la.jsx)(gv,{ref:S,container:P,disablePortal:d,children:(0,la.jsxs)(F,{...N,children:[h?null:(0,la.jsx)(I,{...R}),(0,la.jsx)(ry,{disableEnforceFocus:u,disableAutoFocus:c,disableRestoreFocus:f,isEnabled:D,open:y,children:le().cloneElement(a,B)})]})}):null}),Oy=wy;function _y(e){return pp("MuiPaper",e)}hp("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 xy=ap("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(sp(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,...Cp(e,"box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Cy=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiPaper"}),r=Up(),{className:o,component:i="div",elevation:a=1,square:l=!1,variant:s="elevation",...c}=n,u={...n,component:i,elevation:a,square:l,variant:s},d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Hf({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},_y,o)})(u);return(0,la.jsx)(xy,{as:i,ownerState:u,className:zl(d.root,o),ref:t,...c,style:{..."elevation"===s&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${fu("#fff",Id(a))}, ${fu("#fff",Id(a))})`}},...c.style}})});function Ey(e){return pp("MuiPopover",e)}function ky(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Sy(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Py(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Dy(e){return"function"==typeof e?e():e}hp("MuiPopover",["root","paper"]);const My=ap(Oy,{name:"MuiPopover",slot:"Root"})({}),qy=ap(Cy,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),$y=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:s,className:c,container:u,disableAutoFocus:d=!1,elevation:f=8,marginThreshold:p=16,open:h,slots:m={},slotProps:g={},transformOrigin:v={vertical:"top",horizontal:"left"},transitionDuration:b="auto",disableScrollLock:y=!1,...A}=n,w=le().useRef(),O={...n,anchorOrigin:i,anchorReference:l,elevation:f,marginThreshold:p,transformOrigin:v,transitionDuration:b},_=(e=>{const{classes:t}=e;return Hf({root:["root"],paper:["paper"]},Ey,t)})(O),x=le().useCallback(()=>{if("anchorPosition"===l)return a;const e=Dy(o),t=(e&&1===e.nodeType?e:$b(w.current).body).getBoundingClientRect();return{top:t.top+ky(t,i.vertical),left:t.left+Sy(t,i.horizontal)}},[o,i.horizontal,i.vertical,a,l]),C=le().useCallback(e=>({vertical:ky(e,v.vertical),horizontal:Sy(e,v.horizontal)}),[v.horizontal,v.vertical]),E=le().useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=C(t);if("none"===l)return{top:null,left:null,transformOrigin:Py(n)};const r=x();let i=r.top-n.vertical,a=r.left-n.horizontal;const s=i+t.height,c=a+t.width,u=Ib(Dy(o)),d=u.innerHeight-p,f=u.innerWidth-p;if(null!=p&&i<p){const e=i-p;i-=e,n.vertical+=e}else if(null!=p&&s>d){const e=s-d;i-=e,n.vertical+=e}if(null!=p&&a<p){const e=a-p;a-=e,n.horizontal+=e}else if(c>f){const e=c-f;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:Py(n)}},[o,l,x,C,p]),[k,S]=le().useState(h),P=le().useCallback(()=>{const e=w.current;if(!e)return;const t=E(e);null!=t.top&&e.style.setProperty("top",t.top),null!=t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,S(!0)},[E]);le().useEffect(()=>(y&&window.addEventListener("scroll",P),()=>window.removeEventListener("scroll",P)),[o,y,P]),le().useEffect(()=>{h&&P()}),le().useImperativeHandle(r,()=>h?{updatePosition:()=>{P()}}:null,[h,P]),le().useEffect(()=>{if(!h)return;const e=Yb(()=>{P()}),t=Ib(Dy(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,h,P]);let D=b;const M={slots:m,slotProps:g},[q,$]=nm("transition",{elementType:eg,externalForwardedProps:M,ownerState:O,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),P()},onExited:t=>{e.onExited?.(t),S(!1)}}),additionalProps:{appear:!0,in:h}});"auto"!==b||q.muiSupportAuto||(D=void 0);const T=u||(o?$b(Dy(o)).body:void 0),[B,{slots:j,slotProps:F,...N}]=nm("root",{ref:t,elementType:My,externalForwardedProps:{...M,...A},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:Pm("function"==typeof g.backdrop?g.backdrop(O):g.backdrop,{invisible:!0})},container:T,open:h},ownerState:O,className:zl(_.root,c)}),[I,R]=nm("paper",{ref:w,className:_.paper,elementType:qy,externalForwardedProps:M,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:k?void 0:{opacity:0}},ownerState:O});return(0,la.jsx)(B,{...N,...!Gh(B)&&{slots:j,slotProps:F,disableAutoFocus:d,disableScrollLock:y},children:(0,la.jsx)(q,{...$,timeout:D,children:(0,la.jsx)(I,{...R,children:s})})})}),Ty=$y;function By(e){return pp("MuiMenu",e)}hp("MuiMenu",["root","paper","list"]);const jy={vertical:"top",horizontal:"right"},Fy={vertical:"top",horizontal:"left"},Ny=ap(Ty,{shouldForwardProp:e=>op(e)||"classes"===e,name:"MuiMenu",slot:"Root"})({}),Iy=ap(qy,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ry=ap(Zb,{name:"MuiMenu",slot:"List"})({outline:0}),zy=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:i,disableAutoFocusItem:a=!1,onClose:l,open:s,PopoverClasses:c,transitionDuration:u="auto",variant:d="selectedMenu",slots:f={},slotProps:p={},...h}=n,m=Fl(),g={...n,autoFocus:r,disableAutoFocusItem:a,transitionDuration:u,variant:d},v=(e=>{const{classes:t}=e;return Hf({root:["root"],paper:["paper"],list:["list"]},By,t)})(g),b=r&&s,y=b&&!a,A=le().useRef(null),w={slots:f,slotProps:p},O=pv({elementType:f.root,externalSlotProps:p.root,ownerState:g,className:[v.root,i]}),[_,x]=nm("paper",{className:v.paper,elementType:Iy,externalForwardedProps:w,shouldForwardComponentProp:!0,ownerState:g}),[C,E]=nm("list",{className:v.list,elementType:Ry,shouldForwardComponentProp:!0,externalForwardedProps:w,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{"Tab"===e.key&&(e.preventDefault(),l&&l(e,"tabKeyDown"))})(t),e.onKeyDown?.(t)}}),ownerState:g}),k="function"==typeof p.transition?p.transition(g):p.transition;return(0,la.jsx)(Ny,{disableAutoFocus:r,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:m?"right":"left"},transformOrigin:m?jy:Fy,slots:{root:f.root,paper:_,backdrop:f.backdrop,transition:f.transition},slotProps:{root:O,paper:x,backdrop:"function"==typeof p.backdrop?p.backdrop(g):p.backdrop,transition:{...k,onEntering:(...e)=>{(e=>{A.current&&(A.current.adjustStyleForScrollbar(e,{direction:m?"rtl":"ltr"}),b&&A.current.focusInitialTarget?.())})(...e),k?.onEntering?.(...e)}}},open:s,ref:t,transitionDuration:u,ownerState:g,...h,classes:c,children:(0,la.jsx)(C,{actions:A,autoFocus:b,autoFocusItem:y,variant:d,...E,children:o})})}),Ly=zy;var Qy=__webpack_require__(6968),Wy={};Wy.styleTagTransform=Ji()(),Wy.setAttributes=Xi()(),Wy.insert=Yi()().bind(null,"head"),Wy.domAPI=Gi()(),Wy.insertStyleElement=Ki()(),Zi()()(Qy.A,Wy);const Vy=Qy.A&&Qy.A.locals?Qy.A.locals:void 0;var Hy=__webpack_require__(5711),Uy="rgb(85, 85, 85)";const Zy=function(e){var t=e.onChangeValue,n=e.query,r=e.objectPathId,o=e.value,i=e.hasEdited,a=(0,Hy.A)({query:n,objectPathId:r}),l=a.resolvedQuery,s=a.mrnEntriesLoaded;if((0,le().useEffect)(function(){n&&(!i&&l&&(0===o.length&&l||o===l?t({value:l,hasEdited:"not-edited"}):o!==l&&t({value:o,hasEdited:"edited"})),i&&t({value:"not-edited"===i?l:o}))},[l]),!n)return{textColor:Uy};var c=(!i||"not-edited"===i)&&(null==o?void 0:o.length)>0?"rgba(85, 85, 85, 0.6)":Uy;return{textColor:s?c:Uy}};var Gy=__webpack_require__(2595),Yy={};Yy.styleTagTransform=Ji()(),Yy.setAttributes=Xi()(),Yy.insert=Yi()().bind(null,"head"),Yy.domAPI=Gi()(),Yy.insertStyleElement=Ki()(),Zi()()(Gy.A,Yy);const Xy=Gy.A&&Gy.A.locals?Gy.A.locals:void 0;var Ky="-ms-",Jy="-moz-",eA="-webkit-",tA="comm",nA="rule",rA="decl",oA="@keyframes",iA=Math.abs,aA=String.fromCharCode,lA=Object.assign;function sA(e){return e.trim()}function cA(e,t){return(e=t.exec(e))?e[0]:e}function uA(e,t,n){return e.replace(t,n)}function dA(e,t,n){return e.indexOf(t,n)}function fA(e,t){return 0|e.charCodeAt(t)}function pA(e,t,n){return e.slice(t,n)}function hA(e){return e.length}function mA(e){return e.length}function gA(e,t){return t.push(e),e}function vA(e,t){return e.filter(function(e){return!cA(e,t)})}var bA,yA,AA=1,wA=1,OA=0,_A=0,xA=0,CA="";function EA(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:AA,column:wA,length:a,return:"",siblings:l}}function kA(e,t){return lA(EA("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function SA(e){for(;e.root;)e=kA(e.root,{children:[e]});gA(e,e.siblings)}function PA(){return xA=_A>0?fA(CA,--_A):0,wA--,10===xA&&(wA=1,AA--),xA}function DA(){return xA=_A<OA?fA(CA,_A++):0,wA++,10===xA&&(wA=1,AA++),xA}function MA(){return fA(CA,_A)}function qA(){return _A}function $A(e,t){return pA(CA,e,t)}function TA(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function BA(e){return sA($A(_A-1,NA(91===e?e+2:40===e?e+1:e)))}function jA(e){for(;(xA=MA())&&xA<33;)DA();return TA(e)>2||TA(xA)>3?"":" "}function FA(e,t){for(;--t&&DA()&&!(xA<48||xA>102||xA>57&&xA<65||xA>70&&xA<97););return $A(e,qA()+(t<6&&32==MA()&&32==DA()))}function NA(e){for(;DA();)switch(xA){case e:return _A;case 34:case 39:34!==e&&39!==e&&NA(xA);break;case 40:41===e&&NA(e);break;case 92:DA()}return _A}function IA(e,t){for(;DA()&&e+xA!==57&&(e+xA!==84||47!==MA()););return"/*"+$A(t,_A-1)+"*"+aA(47===e?e:DA())}function RA(e){for(;!TA(MA());)DA();return $A(e,_A)}function zA(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function LA(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case rA:return e.return=e.return||e.value;case tA:return"";case oA:return e.return=e.value+"{"+zA(e.children,r)+"}";case nA:if(!hA(e.value=e.props.join(",")))return""}return hA(n=zA(e.children,r))?e.return=e.value+"{"+n+"}":""}function QA(e,t,n){switch(function(e,t){return 45^fA(e,0)?(((t<<2^fA(e,0))<<2^fA(e,1))<<2^fA(e,2))<<2^fA(e,3):0}(e,t)){case 5103:return eA+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return eA+e+e;case 4855:return eA+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Jy+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return eA+e+Jy+e+Ky+e+e;case 5936:switch(fA(e,t+11)){case 114:return eA+e+Ky+uA(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return eA+e+Ky+uA(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return eA+e+Ky+uA(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return eA+e+Ky+e+e;case 6165:return eA+e+Ky+"flex-"+e+e;case 5187:return eA+e+uA(e,/(\w+).+(:[^]+)/,eA+"box-$1$2"+Ky+"flex-$1$2")+e;case 5443:return eA+e+Ky+"flex-item-"+uA(e,/flex-|-self/g,"")+(cA(e,/flex-|baseline/)?"":Ky+"grid-row-"+uA(e,/flex-|-self/g,""))+e;case 4675:return eA+e+Ky+"flex-line-pack"+uA(e,/align-content|flex-|-self/g,"")+e;case 5548:return eA+e+Ky+uA(e,"shrink","negative")+e;case 5292:return eA+e+Ky+uA(e,"basis","preferred-size")+e;case 6060:return eA+"box-"+uA(e,"-grow","")+eA+e+Ky+uA(e,"grow","positive")+e;case 4554:return eA+uA(e,/([^-])(transform)/g,"$1"+eA+"$2")+e;case 6187:return uA(uA(uA(e,/(zoom-|grab)/,eA+"$1"),/(image-set)/,eA+"$1"),e,"")+e;case 5495:case 3959:return uA(e,/(image-set\([^]*)/,eA+"$1$`$1");case 4968:return uA(uA(e,/(.+:)(flex-)?(.*)/,eA+"box-pack:$3"+Ky+"flex-pack:$3"),/space-between/,"justify")+eA+e+e;case 4200:if(!cA(e,/flex-|baseline/))return Ky+"grid-column-align"+pA(e,t)+e;break;case 2592:case 3360:return Ky+uA(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,cA(e.props,/grid-\w+-end/)})?~dA(e+(n=n[t].value),"span",0)?e:Ky+uA(e,"-start","")+e+Ky+"grid-row-span:"+(~dA(n,"span",0)?cA(n,/\d+/):+cA(n,/\d+/)-+cA(e,/\d+/))+";":Ky+uA(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return cA(e.props,/grid-\w+-start/)})?e:Ky+uA(uA(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return uA(e,/(.+)-inline(.+)/,eA+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(hA(e)-1-t>6)switch(fA(e,t+1)){case 109:if(45!==fA(e,t+4))break;case 102:return uA(e,/(.+:)(.+)-([^]+)/,"$1"+eA+"$2-$3$1"+Jy+(108==fA(e,t+3)?"$3":"$2-$3"))+e;case 115:return~dA(e,"stretch",0)?QA(uA(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return uA(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,i,a,l){return Ky+n+":"+r+l+(o?Ky+n+"-span:"+(i?a:+a-+r)+l:"")+e});case 4949:if(121===fA(e,t+6))return uA(e,":",":"+eA)+e;break;case 6444:switch(fA(e,45===fA(e,14)?18:11)){case 120:return uA(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+eA+(45===fA(e,14)?"inline-":"")+"box$3$1"+eA+"$2$3$1"+Ky+"$2box$3")+e;case 100:return uA(e,":",":"+Ky)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return uA(e,"scroll-","scroll-snap-")+e}return e}function WA(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case rA:return void(e.return=QA(e.value,e.length,n));case oA:return zA([kA(e,{value:uA(e.value,"@","@"+eA)})],r);case nA:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(cA(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":SA(kA(e,{props:[uA(t,/:(read-\w+)/,":-moz-$1")]})),SA(kA(e,{props:[t]})),lA(e,{props:vA(n,r)});break;case"::placeholder":SA(kA(e,{props:[uA(t,/:(plac\w+)/,":"+eA+"input-$1")]})),SA(kA(e,{props:[uA(t,/:(plac\w+)/,":-moz-$1")]})),SA(kA(e,{props:[uA(t,/:(plac\w+)/,Ky+"input-$1")]})),SA(kA(e,{props:[t]})),lA(e,{props:vA(n,r)})}return""})}}function VA(e){return function(e){return CA="",e}(HA("",null,null,null,[""],e=function(e){return AA=wA=1,OA=hA(CA=e),_A=0,[]}(e),0,[0],e))}function HA(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,b=0,y="",A=o,w=i,O=r,_=y;g;)switch(h=b,b=DA()){case 40:if(108!=h&&58==fA(_,d-1)){-1!=dA(_+=uA(BA(b),"&","&\f"),"&\f",iA(c?l[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:_+=BA(b);break;case 9:case 10:case 13:case 32:_+=jA(h);break;case 92:_+=FA(qA()-1,7);continue;case 47:switch(MA()){case 42:case 47:gA(ZA(IA(DA(),qA()),t,n,s),s),5!=TA(h||1)&&5!=TA(MA()||1)||!hA(_)||" "===pA(_,-1,void 0)||(_+=" ");break;default:_+="/"}break;case 123*m:l[c++]=hA(_)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(_=uA(_,/\f/g,"")),p>0&&(hA(_)-d||0===m&&47===h)&&gA(p>32?GA(_+";",r,n,d-1,s):GA(uA(_," ","")+";",r,n,d-2,s),s);break;case 59:_+=";";default:if(gA(O=UA(_,t,n,c,u,o,l,y,A=[],w=[],d,i),i),123===b)if(0===u)HA(_,t,O,O,A,i,d,l,w);else{switch(f){case 99:if(110===fA(_,3))break;case 108:if(97===fA(_,2))break;default:u=0;case 100:case 109:case 115:}u?HA(e,O,O,r&&gA(UA(e,O,O,0,0,o,l,y,o,A=[],d,w),w),o,w,d,l,r?A:w):HA(_,O,O,O,[""],w,0,l,w)}}c=u=p=0,m=v=1,y=_="",d=a;break;case 58:d=1+hA(_),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==PA())continue;switch(_+=aA(b),b*m){case 38:v=u>0?1:(_+="\f",-1);break;case 44:l[c++]=(hA(_)-1)*v,v=1;break;case 64:45===MA()&&(_+=BA(DA())),f=MA(),u=d=hA(y=_+=RA(qA())),b++;break;case 45:45===h&&2==hA(_)&&(m=0)}}return i}function UA(e,t,n,r,o,i,a,l,s,c,u,d){for(var f=o-1,p=0===o?i:[""],h=mA(p),m=0,g=0,v=0;m<r;++m)for(var b=0,y=pA(e,f+1,f=iA(g=a[m])),A=e;b<h;++b)(A=sA(g>0?p[b]+" "+y:uA(y,/&\f/g,p[b])))&&(s[v++]=A);return EA(e,t,n,0===o?nA:l,s,c,u,d)}function ZA(e,t,n,r){return EA(e,t,n,tA,aA(xA),pA(e,2,-2),0,r)}function GA(e,t,n,r,o){return EA(e,t,n,rA,pA(e,0,r),pA(e,r+1,-1),r,o)}function YA(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}const XA="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",KA="active",JA="data-styled-version",ew="6.6.0",tw="/*!sc*/\n",nw="undefined"!=typeof window&&"undefined"!=typeof document;if(!ra()().createContext)throw YA(19);function rw(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const ow=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(yA=null!==(bA=rw("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==bA?bA:rw("SC_DISABLE_SPEEDY"))&&void 0!==yA?yA:"undefined"!=typeof process&&void 0!==process.env&&!1);let iw=new Map,aw=new Map,lw=1;const sw=e=>{if(iw.has(e))return iw.get(e);for(;aw.has(lw);)lw++;const t=lw++;return iw.set(e,t),aw.set(t,e),t},cw=e=>aw.get(e),uw=(e,t)=>{lw=t+1,iw.set(e,t),aw.set(t,e)},dw=(new Set,Object.freeze([])),fw=Object.freeze({});const pw=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,hw=/(^-|-$)/g;function mw(e){return e.replace(pw,"-").replace(hw,"")}const gw=/(a)(d)/gi,vw=e=>String.fromCharCode(e+(e>25?39:97));function bw(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=vw(t%52)+n;return(vw(t%52)+n).replace(gw,"$1-$2")}const yw=5381,Aw=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},ww=e=>Aw(yw,e);function Ow(e){return"string"==typeof e&&!0}function _w(e){return Ow(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}const xw=Symbol.for("react.memo"),Cw=Symbol.for("react.forward_ref"),Ew={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},kw={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Sw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Pw={[Cw]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[xw]:Sw};function Dw(e){return("type"in(t=e)&&t.type.$$typeof)===xw?Sw:"$$typeof"in e?Pw[e.$$typeof]:Ew;var t}const Mw=Object.defineProperty,qw=Object.getOwnPropertyNames,$w=Object.getOwnPropertySymbols,Tw=Object.getOwnPropertyDescriptor,Bw=Object.getPrototypeOf,jw=Object.prototype;function Fw(e,t,n){if("string"!=typeof t){const r=Bw(t);r&&r!==jw&&Fw(e,r,n);const o=qw(t).concat($w(t)),i=Dw(e),a=Dw(t);for(let r=0;r<o.length;++r){const l=o[r];if(!(l in kw||n&&n[l]||a&&l in a||i&&l in i)){const n=Tw(t,l);try{Mw(e,l,n)}catch(e){}}}}return e}function Nw(e){return"function"==typeof e}const Iw=Symbol.for("react.forward_ref");function Rw(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===Iw&&"styledComponentId"in e}function zw(e,t){return e&&t?e+" "+t:e||t||""}function Lw(e,t){return e.join(t||"")}function Qw(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ww(e,t,n=!1){if(!n&&!Qw(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Ww(e[n],t[n]);else if(Qw(t))for(const n in t)e[n]=Ww(e[n],t[n]);return e}function Vw(e,t){Object.defineProperty(e,"toString",{value:t})}const Hw=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let r=n;for(;e>=r;)if(r<<=1,r<0)throw YA(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let o=0,i=t.length;o<i;o++)this.tag.insertRule(n,t[o])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n;for(let e=r;e<o;e++)t+=this.tag.getRule(e)+tw;return t}},Uw=`style[${XA}][${JA}="${ew}"]`,Zw=new RegExp(`^${XA}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Gw=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,Yw=e=>{if(!e)return document;if(Gw(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Gw(t))return t}return document},Xw=(e,t,n)=>{const r=n.split(",");let o;for(let n=0,i=r.length;n<i;n++)(o=r[n])&&e.registerName(t,o)},Kw=(e,t)=>{var n;const r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(tw),o=[];for(let t=0,n=r.length;t<n;t++){const n=r[t].trim();if(!n)continue;const i=n.match(Zw);if(i){const t=0|parseInt(i[1],10),n=i[2];0!==t&&(uw(n,t),Xw(e,n,i[3]),e.getTag().insertRules(t,o)),o.length=0}else o.push(n)}},Jw=e=>{const t=Yw(e.options.target).querySelectorAll(Uw);for(let n=0,r=t.length;n<r;n++){const r=t[n];r&&r.getAttribute(XA)!==KA&&(Kw(e,r),r.parentNode&&r.parentNode.removeChild(r))}};let eO=!1;const tO=(e,t)=>{if("undefined"==typeof document)throw YA(20);const n=document.head,r=e||n,o=document.createElement("style"),i=(e=>{const t=Array.from(e.querySelectorAll(`style[${XA}]`));return t[t.length-1]})(r),a=void 0!==i?i.nextSibling:null;o.setAttribute(XA,KA),o.setAttribute(JA,ew);const l=t||function(){if(!1!==eO)return eO;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return eO=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return eO=t.getAttribute("content")||void 0}return eO=__webpack_require__.nc}();return l&&o.setAttribute("nonce",l),r.insertBefore(o,a),o},nO=class{constructor(e,t){this.element=tO(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,r=n.length;t<r;t++){const r=n[t];if(r.ownerNode===e)return r}throw YA(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},rO=class{constructor(e,t){this.element=tO(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let oO=nw;const iO={isServer:!nw,useCSSOMInjection:!ow};class aO{static registerId(e){return sw(e)}constructor(e=fw,t={},n){this.options=Object.assign(Object.assign({},iO),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&nw&&oO&&(oO=!1,Jw(this)),Vw(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let r="";for(let o=0;o<n;o++){const n=cw(o);if(void 0===n)continue;const i=e.names.get(n);if(void 0===i||!i.size)continue;const a=t.getGroup(o);if(0===a.length)continue;const l=XA+".g"+o+'[id="'+n+'"]';let s="";for(const e of i)e.length>0&&(s+=e+",");r+=a+l+'{content:"'+s+'"}'+tw}return r})(this))}rehydrate(){!this.server&&nw&&Jw(this)}reconstructWithOptions(e,t=!0){const n=new aO(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&nw&&e.target!==this.options.target&&Yw(this.options.target)!==Yw(e.target)&&Jw(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new nO(t,n):new rO(t,n))(this.options),new Hw(e)));var e}hasNameForId(e,t){var n,r;return null!==(r=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==r&&r}registerName(e,t){sw(e),e.startsWith("sc-keyframes-")&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(sw(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(sw(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const lO=new WeakSet,sO={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function cO(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in sO||e.startsWith("--")?String(t).trim():t+"px"}const uO=47;function dO(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}const fO=Symbol.for("sc-keyframes");function pO(e){return Nw(e)&&!(e.prototype&&e.prototype.isReactComponent)}const hO=e=>null==e||!1===e||""===e,mO=Symbol.for("react.client.reference");function gO(e){return e.$$typeof===mO}function vO(e,t){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!hO(r)&&(Array.isArray(r)&&lO.has(r)||Nw(r)?t.push(dO(n)+":",r,";"):Qw(r)?(t.push(n+" {"),vO(r,t),t.push("}")):t.push(dO(n)+": "+cO(n,r)+";"))}}function bO(e,t,n,r,o=[]){if(hO(e))return o;const i=typeof e;if("string"===i)return o.push(e),o;if("function"===i)return gO(e)?o:pO(e)&&t?bO(e(t),t,n,r,o):(o.push(e),o);if(Array.isArray(e)){for(let i=0;i<e.length;i++)bO(e[i],t,n,r,o);return o}return Rw(e)?(o.push(`.${e.styledComponentId}`),o):function(e){return"object"==typeof e&&null!==e&&fO in e}(e)?(n?(e.inject(n,r),o.push(e.getName(r))):o.push(e),o):gO(e)?o:Qw(e)?e.toString!==Object.prototype.toString?(o.push(e.toString()),o):(vO(e,o),o):(o.push(e.toString()),o)}const yO=ww(ew);class AO{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=Aw(yO,t),this.baseStyle=n,aO.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let o="";for(let r=0;r<this.rules.length;r++){const i=this.rules[r];if("string"==typeof i)o+=i;else if(i)if(pO(i)){const r=i(e);"string"==typeof r?o+=r:null!=r&&!1!==r&&(o+=Lw(bO(r,e,t,n)))}else o+=Lw(bO(i,e,t,n))}if(o){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+o:o;let i=this.dynamicNameCache.get(e);if(!i){if(i=bw(Aw(Aw(this.baseHash,n.hash),o)>>>0),this.dynamicNameCache.size>=200){const e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,i)}if(!t.hasNameForId(this.componentId,i)){const e=n(o,"."+i,void 0,this.componentId);t.insertRules(this.componentId,i,e)}r=zw(r,i)}}return r}}const wO=/&/g;function OO(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function _O(e){const t=e.length;let n="",r=0,o=0,i=0,a=!1,l=!1;for(let s=0;s<t;s++){const c=e.charCodeAt(s);if(0!==i||a||c!==uO||42!==e.charCodeAt(s+1))if(a)42===c&&e.charCodeAt(s+1)===uO&&(a=!1,s++);else if(34!==c&&39!==c||OO(e,s)){if(0===i)if(123===c)o++;else if(125===c){if(o--,o<0){l=!0;let n=s+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,o=0,s=n-1,r=n;continue}0===o&&(n+=e.substring(r,s+1),r=s+1)}else 59===c&&0===o&&(n+=e.substring(r,s+1),r=s+1)}else 0===i?i=c:i===c&&(i=0);else a=!0,s++}return l||0!==o||0!==i?(r<t&&0===o&&0===i&&(n+=e.substring(r)),n):e}function xO(e,t){const n=t+" ",r=","+n;for(let o=0;o<e.length;o++){const i=e[o];if("rule"===i.type){i.value=(n+i.value).replaceAll(",",r);const e=i.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];i.props=t}Array.isArray(i.children)&&"@keyframes"!==i.type&&xO(i.children,t)}return e}const CO=new aO,EO=function({options:e=fw,plugins:t=dw}=fw){let n,r,o;const i=(e,t,o)=>o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?`.${n}`:e,a=t.slice();a.push(e=>{e.type===nA&&e.value.includes("&")&&(o||(o=new RegExp(`\\${r}\\b`,"g")),e.props[0]=e.props[0].replace(wO,r).replace(o,i))}),e.prefix&&a.push(WA),a.push(LA);let l=[];const s=(d=a.concat((p=e=>l.push(e),function(e){e.root||(e=e.return)&&p(e)})),f=mA(d),function(e,t,n,r){for(var o="",i=0;i<f;i++)o+=d[i](e,t,n,r)||"";return o}),c=(t,i="",a="",c="&")=>{n=c,r=i,o=void 0;const u=function(e){const t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return _O(e);const r=e.length;let o="",i=0,a=0,l=0,s=0,c=0,u=!1;for(;a<r;){const t=e.charCodeAt(a);if(34!==t&&39!==t||OO(e,a))if(0===l)if(t===uO&&a+1<r&&42===e.charCodeAt(a+1)){for(a+=2;a+1<r&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==uO);)a++;a+=2}else if(40!==t)if(41!==t)if(s>0)a++;else if(42===t&&a+1<r&&e.charCodeAt(a+1)===uO)o+=e.substring(i,a),a+=2,i=a,u=!0;else if(t===uO&&a+1<r&&e.charCodeAt(a+1)===uO){for(o+=e.substring(i,a);a<r&&10!==e.charCodeAt(a);)a++;i=a,u=!0}else 123===t?c++:125===t&&c--,a++;else s>0&&s--,a++;else s++,a++;else a++;else 0===l?l=t:l===t&&(l=0),a++}return u?(i<r&&(o+=e.substring(i)),0===c?o:_O(o)):0===c?e:_O(e)}(t);let d=VA(a||i?a+" "+i+" { "+u+" }":u);return e.namespace&&(d=xO(d,e.namespace)),l=[],zA(d,s),l},u=e;var d,f,p;let h=yw;for(let e=0;e<t.length;e++)t[e].name||YA(15),h=Aw(h,t[e].name);return(null==u?void 0:u.namespace)&&(h=Aw(h,u.namespace)),(null==u?void 0:u.prefix)&&(h=Aw(h,"p")),c.hash=h!==yw?h.toString():"",c}(),kO=ra()().createContext({shouldForwardProp:void 0,styleSheet:CO,stylis:EO,stylisPlugins:void 0});kO.Consumer;const SO=ra()().createContext(void 0);SO.Consumer;const PO={};function DO(e,t){const n="string"!=typeof e?"sc":mw(e);PO[n]=(PO[n]||0)+1;const r=n+"-"+function(e){return bw(ww(e)>>>0)}(ew+n+PO[n]);return t?t+"-"+r:r}function MO(e,t,n){const r=Rw(e),o=e,i=!Ow(e),{attrs:a=dw,componentId:l=DO(t.displayName,t.parentComponentId),displayName:s=_w(e)}=t,c=t.displayName&&t.componentId?mw(t.displayName)+"-"+t.componentId:t.componentId||l,u=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a;let{shouldForwardProp:d}=t;if(r&&o.shouldForwardProp){const e=o.shouldForwardProp;if(t.shouldForwardProp){const n=t.shouldForwardProp;d=(t,r)=>e(t,r)&&n(t,r)}else d=e}const f=new AO(n,c,r?o.componentStyle:void 0);function p(e,t){return function(e,t,n){const{attrs:r,componentStyle:o,defaultProps:i,foldedComponentIds:a,styledComponentId:l,target:s}=e,c=ra()().useContext(SO),u=ra()().useContext(kO),d=e.shouldForwardProp||u.shouldForwardProp,f=function(e,t,n=fw){return e.theme!==n.theme&&e.theme||t||n.theme}(t,c,i)||fw,[p,h]=function(e,t,n){const r=Object.assign(Object.assign({},t),{className:void 0,theme:n});let o=null;const i=e.length>1;for(let t=0;t<e.length;t++){const n=e[t],a=Nw(n)?n(i?Object.assign({},r):r):n;for(const e in a)"className"===e?r.className=zw(r.className,a[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),a[e]):void 0===a[e]?e in r&&(void 0!==r[e]&&(o||(o=[])).push(e),r[e]=void 0):r[e]=a[e]}return"className"in t&&"string"==typeof t.className&&(r.className=zw(r.className,t.className)),[r,o]}(r,t,f),m=o.generateAndInjectStyles(p,u.styleSheet,u.stylis),g=p.as||s,v=Ow(g),b=function(e,t,n,r,o,i){const a={};for(const l in e)"$"===l[0]||"as"===l||"theme"===l&&e.theme===n||("forwardedAs"===l?void 0!==e.forwardedAs&&(a.as=e.forwardedAs):void 0===e[l]?"className"===l||o||null!==i&&-1!==i.indexOf(l)||r&&!r(l,t)||(a[l]=void 0):r&&!r(l,t)||(a[l]=e[l]));return a}(p,g,f,d,v,h);let y=zw(a,l);return m&&(y+=" "+m),p.className&&(y+=" "+p.className),b[v&&g.includes("-")?"class":"className"]=y,n&&(b.ref=n),(0,le().createElement)(g,b)}(h,e,t)}p.displayName=s;let h=ra()().forwardRef(p);return h.attrs=u,h.componentStyle=f,h.displayName=s,h.shouldForwardProp=d,h.foldedComponentIds=r?zw(o.foldedComponentIds,o.styledComponentId):"",h.styledComponentId=c,h.target=r?o.target:e,Object.defineProperty(h,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=r?function(e,...t){for(const n of t)Ww(e,n,!0);return e}({},o.defaultProps,e):e}}),Vw(h,()=>`.${h.styledComponentId}`),i&&Fw(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),h}var qO=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function $O(e,t){const n=[e[0]];for(let r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}const TO=e=>(lO.add(e),e);function BO(e,...t){if(Nw(e)||Qw(e))return TO(bO($O(dw,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?bO(n):TO(bO($O(n,t)))}function jO(e,t,n=fw){if(!t)throw YA(1,t);const r=(r,...o)=>e(t,n,BO(r,...o));return r.attrs=r=>jO(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>jO(e,t,Object.assign(Object.assign({},n),r)),r}const FO=e=>jO(MO,e),NO=FO;qO.forEach(e=>{NO[e]=FO(e)});const IO=Pp((0,la.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"}));function RO(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function zO(){var e=RO(["\n width: 100%;\n position: relative;\n"]);return zO=function(){return e},e}function LO(){var e=RO(["\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: var(--fb-color-icon-hover-bg, #f5f5f5);\n }\n"]);return LO=function(){return e},e}function QO(){var e=RO(["\n color: var(--fb-color-icon-muted, #767676);\n"]);return QO=function(){return e},e}var WO=NO.div(zO()),VO=NO.div.withConfig({shouldForwardProp:function(e){return"inputValue"!==e}})(LO(),function(e){return""===e.inputValue?"none":"flex"}),HO=NO(IO)(QO());function UO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ZO=/^@today(?:([+-])(\d+))?$/;const GO=function(e){if(!e)return e;var t=ZO.exec(e);if(!t)return e;var n,r,o=(r=3,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(n,r)||function(e,t){if(e){if("string"==typeof e)return UO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?UO(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[1],a=o[2],l=new Date;if(i&&a){var s=Number(a)*("-"===i?-1:1);l.setDate(l.getDate()+s)}return function(e){var t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r)}(l)};function YO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){YO(e,t,n[t])})}return e}function KO(e,t){if(null==e)return{};var n,r,o,i={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(n=Reflect.ownKeys(Object(e)),o=0;o<n.length;o++)r=n[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,o={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,t),Object.getOwnPropertySymbols)for(n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++)r=n[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}const JO=function(e){var t,n=e.onChangeValue,r=e.hasClearButton,o=void 0!==r&&r,i=e.onClearCallback,a=e.controlProps,l=KO(e,["onChangeValue","hasClearButton","onClearCallback","controlProps"]),s=l.control,c=l.id,u=l.objectPathId,d=KO(l,["control","id","objectPathId"]),f=s.value,p=void 0===f?"":f,h=(s.displayName,s["custom-attributes"]),m=s.error,g=s.placeholder,v=s.required,b=s.hasEdited,y=KO(s,["value","displayName","custom-attributes","error","placeholder","required","hasEdited"]),A="date"===s.type?GO(null==h?void 0:h.defaultValue):null==h?void 0:h.defaultValue,w=Zy({onChangeValue:n,query:A,objectPathId:u,value:p,hasEdited:b}).textColor,O=m?"error":"",_=Vy["form-control"];_=O?_+" "+Xy[O]:_;var x,C,E=g?v?g+" *":g:"";return ra()().createElement(WO,null,ra()().createElement("input",(x=XO({role:"textbox","data-testid":"input-control-".concat(c),max:"date"===s.type?"9999-12-31":void 0,className:_,id:u||c,name:u||c,value:p,onChange:function(e){n({value:e.target.value,hasEdited:"edited"})},onWheel:function(e){var t=e.target;"number"===t.type&&t.blur()},placeholder:E,required:v},ub()(h,["defaultValue","mrnPreview","mrnSources"]),ub()(y,["displayName","placholder","control","error","defaultValue"]),ub()(d,["defaultValue","mrnPreview","mrnSources"])),C=null!=(C={pattern:s.pattern,style:XO({color:w,minWidth:o?"175px":""},null==a||null===(t=a.inputProps)||void 0===t?void 0:t.style)})?C:{},Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(C)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(C)).forEach(function(e){Object.defineProperty(x,e,Object.getOwnPropertyDescriptor(C,e))}),x)),o&&"date"===s.type&&ra()().createElement(VO,{inputValue:p},ra()().createElement(HO,{"data-testid":"input_clearButton",fontSize:"small",onClick:function(){n({value:""}),null==i||i()}})))};function e_(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function t_(){var e=e_(["\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 t_=function(){return e},e}function n_(){var e=e_(["\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 n_=function(){return e},e}function r_(){var e=e_(["\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 var(--fb-color-border, #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 var(--fb-color-border-focus, rgba(0, 0, 0, 0.87));\n }\n &::-moz-placeholder {\n color: var(--fb-color-text-placeholder, #999);\n opacity: 1;\n }\n &:-ms-input-placeholder {\n color: var(--fb-color-text-placeholder, #999);\n }\n &::-webkit-input-placeholder {\n color: var(--fb-color-text-placeholder, #999);\n }\n"]);return r_=function(){return e},e}var o_=NO.div(t_()),i_=NO.label(n_());NO(JO)(r_());const a_=Pp((0,la.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}));z();var l_=__webpack_require__(7319),s_={};s_.styleTagTransform=Ji()(),s_.setAttributes=Xi()(),s_.insert=Yi()().bind(null,"head"),s_.domAPI=Gi()(),s_.insertStyleElement=Ki()(),Zi()()(l_.A,s_);const c_=l_.A&&l_.A.locals?l_.A.locals:void 0;function u_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u_(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.")}()}var f_="var(--fb-color-accent-strong, var(--fb-color-accent, #3d91ff))";const p_=function(e){var t=e.handleDateChange,n=e.from,r=e.to,o=d_((0,le().useState)([{startDate:new Date,endDate:new Date,key:"selection"}]),2),i=o[0],a=o[1],l=d_((0,le().useState)(window.matchMedia("(max-width: 615px)").matches),2),s=l[0],c=l[1],u=d_((0,le().useState)(window.matchMedia("(max-width: 1200px)").matches),2),d=u[0],f=u[1];window.addEventListener("resize",function(){var e=window.matchMedia("(max-width: 1200px)").matches;e!==d&&f(e);var t=window.matchMedia("(max-width: 615px)").matches;t!==s&&c(t)}),(0,le().useEffect)(function(){var e=[],t=[];n&&(e=n.split("-")),r&&(t=r.split("-"));var o=n?new Date(Number(e[0]),Number(e[1])-1,Number(e[2])):new Date,i=r?new Date(Number(t[0]),Number(t[1])-1,Number(t[2])):o;a([{startDate:o,endDate:i,key:"selection"}])},[n,r]);var p=function(e,n){a(e),e[0].startDate!==e[0].endDate&&t(e[0],n)},h=function(){t(i[0])};return ra()().createElement("div",{className:c_.dateRangeWrapper},s?ra()().createElement("div",{style:{display:"flex",flexDirection:"column"}},ra()().createElement(z().ad,{onChange:function(e){return p([e.selection])},moveRangeOnFirstSelection:!1,rangeColors:[f_],color:f_,ranges:i,direction:"horizontal"}),ra()().createElement(Rh,{variant:"contained",size:"medium",sx:{display:"flex",alignItems:"center",alignSelf:"flex-end",marginRight:"16px",marginBottom:"16px",gap:"8px",width:"fit-content",backgroundColor:"var(--fb-color-accent-strong, var(--fb-color-accent, #4A96D2))",boxShadow:"none","&:hover":{backgroundColor:"var(--fb-color-accent-hover, #0B5BA6)",boxShadow:"none"},"&.Mui-focusVisible":{outline:"var(--fb-focus-ring, none)",outlineOffset:"1px"}},onClick:h},ra()().createElement("p",{style:{all:"unset"}},"CONFIRM"),ra()().createElement(a_,{style:{color:"white",width:"20px",height:"20px"}}))):ra()().createElement("div",{style:{display:"flex",flexDirection:"column"}},ra()().createElement("div",{style:{display:"flex"}},ra()().createElement(z().HY,{ranges:i,onChange:function(e){return p([e.selection],!0)},rangeColors:[f_]}),ra()().createElement(z().ad,{ranges:i,onChange:function(e){return p([e.selection])},showDateDisplay:!1,rangeColors:[f_],color:f_,direction:"horizontal",months:d?1:2,"data-testid":"date-range-picker"})),ra()().createElement(Rh,{variant:"contained",size:"medium",sx:{display:"flex",alignItems:"center",alignSelf:"flex-end",marginRight:"16px",marginBottom:"16px",gap:"8px",width:"fit-content",backgroundColor:"var(--fb-color-accent-strong, var(--fb-color-accent, #4A96D2))",boxShadow:"none","&:hover":{backgroundColor:"var(--fb-color-accent-hover, #0B5BA6)",boxShadow:"none"},"&.Mui-focusVisible":{outline:"var(--fb-focus-ring, none)",outlineOffset:"1px"}},onClick:h},ra()().createElement("p",{style:{all:"unset"}},"CONFIRM"),ra()().createElement(a_,{style:{color:"white",width:"20px",height:"20px"}}))))};function h_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h_(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 g_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){v_(e,t,n[t])})}return e}function y_(e){return y_="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},y_(e)}function A_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w_(e){var t=function(e,t){if("object"!=y_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=y_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==y_(t)?t:t+""}function O_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w_(r.key),r)}}function __(e,t,n){return t&&O_(e.prototype,t),n&&O_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function x_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C_(e,t){return C_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C_(e,t)}function E_(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&&C_(e,t)}function k_(e,t){if(t&&("object"==y_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x_(e)}function S_(e){return S_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S_(e)}function P_(e,t,n){return(t=w_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D_(e){if(Array.isArray(e))return e}function M_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function q_(e,t){if(e){if("string"==typeof e)return M_(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M_(e,t):void 0}}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 T_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function B_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T_(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var j_={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)}},F_=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};A_(this,e),this.init(t,n)}return __(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||j_,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),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,B_(B_({},{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}()),N_=function(){function e(){A_(this,e),this.observers={}}return __(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.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,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function I_(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}function R_(e){return null==e?"":""+e}function z_(e,t,n){function r(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=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function L_(e,t,n){var r=z_(e,t,Object);r.obj[r.k]=n}function Q_(e,t){var n=z_(e,t),r=n.obj,o=n.k;if(r)return r[o]}function W_(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):W_(e[r],t[r],n):e[r]=t[r]);return e}function V_(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var H_={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function U_(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return H_[e]}):e}var Z_="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,G_=[" ",",","?","!",";"];function Y_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,l=r.slice(i,i+a).join(n),s=o[l];void 0===s&&r.length>i+a;)a++,s=o[l=r.slice(i,i+a).join(n)];if(void 0===s)return;if(null===s)return null;if(t.endsWith(l)){if("string"==typeof s)return s;if(l&&"string"==typeof s[l])return s[l]}var c=r.slice(i+a).join(n);return c?Y_(s,c,n):void 0}o=o[r[i]]}return o}}function X_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X_(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var J_=function(e){E_(o,e);var t,n,r=(t=o,n=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,r=S_(t);if(n){var o=S_(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return k_(this,e)});function o(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return A_(this,o),t=r.call(this),Z_&&N_.call(x_(t)),t.data=e||{},t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return __(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,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var l=Q_(this.data,a);return l||!i||"string"!=typeof n?l:Y_(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){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];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),L_(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var l=Q_(this.data,a)||{};r?W_(l,n,o):l=K_(K_({},l),n),L_(this.data,a,l),i.silent||this.emit("added",e,t,n)}},{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?K_(K_({},{}),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}(N_),ex={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))}),t}};function tx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tx(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var rx={},ox=function(e){E_(o,e);var t,n,r=(t=o,n=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,r=S_(t);if(n){var o=S_(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return k_(this,e)});function o(e){var t,n,i,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return A_(this,o),t=r.call(this),Z_&&N_.call(x_(t)),n=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i=e,a=x_(t),n.forEach(function(e){i[e]&&(a[e]=i[e])}),t.options=l,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=F_.create("translator"),t}return __(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 n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=G_.filter(function(e){return t.indexOf(e)<0&&n.indexOf(e)<0});if(0===r.length)return!0;var o=new RegExp("(".concat(r.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}(e,n,r));if(i&&!a){var l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:o};var s=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),e=s.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,n){var r=this;if("object"!==y_(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===y_(t)&&(t=nx({},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,l=this.extractFromKey(e[e.length-1],t),s=l.key,c=l.namespaces,u=c[c.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(u).concat(p).concat(s),usedKey:s,exactUsedKey:s,usedLng:d,usedNS:u}:"".concat(u).concat(p).concat(s)}return i?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:u}:s}var h=this.resolve(e,t),m=h&&h.res,g=h&&h.usedKey||s,v=h&&h.exactUsedKey||s,b=Object.prototype.toString.apply(m),y=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(b)<0&&("string"!=typeof y||"[object Array]"!==b)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,m,nx(nx({},t),{},{ns:c})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");return i?(h.res=w,h):w}if(a){var O="[object Array]"===b,_=O?[]:{},x=O?v:g;for(var C in m)if(Object.prototype.hasOwnProperty.call(m,C)){var E="".concat(x).concat(a).concat(C);_[C]=this.translate(E,nx(nx({},t),{joinArrays:!1,ns:c})),_[C]===E&&(_[C]=m[C])}m=_}}else if(A&&"string"==typeof y&&"[object Array]"===b)(m=m.join(y))&&(m=this.extendTranslation(m,e,t,n));else{var k=!1,S=!1,P=void 0!==t.count&&"string"!=typeof t.count,D=o.hasDefaultValue(t),M=P?this.pluralResolver.getSuffix(d,t.count,t):"",q=t["defaultValue".concat(M)]||t.defaultValue;!this.isValidLookup(m)&&D&&(k=!0,m=q),this.isValidLookup(m)||(S=!0,m=s);var $=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:m,T=D&&q!==m&&this.options.updateMissing;if(S||k||T){if(this.logger.log(T?"updateKey":"missingKey",d,u,s,T?q:m),a){var B=this.resolve(s,nx(nx({},t),{},{keySeparator:!1}));B&&B.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 j=[],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++)j.push(F[N]);else"all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(t.lng||this.language):j.push(t.lng||this.language);var I=function(e,n,o){var i=D&&o!==m?o:$;r.options.missingKeyHandler?r.options.missingKeyHandler(e,u,n,i,T,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,u,n,i,T,t),r.emit("missingKey",e,u,n,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?j.forEach(function(e){r.pluralResolver.getSuffixes(e,t).forEach(function(n){I([e],s+n,t["defaultValue".concat(n)]||q)})}):I(j,s,q))}m=this.extendTranslation(m,e,t,h,n),S&&m===s&&this.options.appendNamespaceToMissingKey&&(m="".concat(u,":").concat(s)),(S||k)&&this.options.parseMissingKeyHandler&&(m="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(u,":").concat(s):s,k?m:void 0):this.options.parseMissingKeyHandler(m))}return i?(h.res=m,h):m}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,nx(nx({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(nx(nx({},n),{interpolation:nx(nx({},this.options.interpolation),n.interpolation)}));var a,l="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=nx(nx({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),l){var u=e.match(this.interpolator.nestingRegexp);a<(u&&u.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,f="string"==typeof d?[d]:d;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=ex.handle(f,e,t,this.options&&this.options.postProcessPassResolved?nx({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,l),c=s.key;n=c;var u=s.namespaces;a.options.fallbackNS&&(u=u.concat(a.options.fallbackNS));var d=void 0!==l.count&&"string"!=typeof l.count,f=d&&!l.ordinal&&0===l.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==l.context&&("string"==typeof l.context||"number"==typeof l.context)&&""!==l.context,h=l.lngs?l.lngs:a.languageUtils.toResolveHierarchy(l.lng||a.language,l.fallbackLng);u.forEach(function(e){a.isValidLookup(t)||(i=e,!rx["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(rx["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" 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(n){if(!a.isValidLookup(t)){o=n;var i,s=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(s,c,n,e,l);else{var u;d&&(u=a.pluralResolver.getSuffix(n,l.count,l));var h="".concat(a.options.pluralSeparator,"zero");if(d&&(s.push(c+u),f&&s.push(c+h)),p){var m="".concat(c).concat(a.options.contextSeparator).concat(l.context);s.push(m),d&&(s.push(m+u),f&&s.push(m+h))}}for(;i=s.pop();)a.isValidLookup(t)||(r=i,t=a.getResource(n,e,i,l))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,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,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{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}(N_);function ix(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ax=function(){function e(t){A_(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=F_.create("languageUtils")}return __(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"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ix(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ix(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=ix(n[2].toLowerCase()))),n.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,n=this;return e?(e.forEach(function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find(function(e){return e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:0===e.indexOf(r)?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 n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.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)),r.forEach(function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))}),o}}]),e}(),lx=[{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}],sx={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)}},cx=["v1","v2","v3"],ux={zero:0,one:1,two:2,few:3,many:4,other:5},dx=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};A_(this,e),this.languageUtils=t,this.options=r,this.logger=F_.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=(n={},lx.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:sx[e.fc]}})}),n)}return __(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]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(function(e,t){return ux[e]-ux[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):r.numbers.map(function(r){return t.getSuffix(e,r,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return n.options.prepend&&o.toString()?n.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&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!cx.includes(this.options.compatibilityJSON)}}]),e}();function fx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function px(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fx(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hx(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=function(e,t,n){var r=Q_(e,n);return void 0!==r?r:Q_(t,n)}(e,t,n);return!i&&o&&"string"==typeof n&&void 0===(i=Y_(e,n,r))&&(i=Y_(t,n,r)),i}var mx=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};A_(this,e),this.logger=F_.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return __(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:U_,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?V_(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?V_(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?V_(t.nestingPrefix):t.nestingPrefixEscaped||V_("$t("),this.nestingSuffix=t.nestingSuffix?V_(t.nestingSuffix):t.nestingSuffixEscaped||V_(")"),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 n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,l=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(l.formatSeparator)<0){var o=hx(t,s,e,l.options.keySeparator,l.options.ignoreJSONStructure);return l.alwaysFormat?l.format(o,void 0,n,px(px(px({},r),t),{},{interpolationkey:e})):o}var i=e.split(l.formatSeparator),a=i.shift().trim(),c=i.join(l.formatSeparator).trim();return l.format(hx(t,s,a,l.options.keySeparator,l.options.ignoreJSONStructure),c,n,px(px(px({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return l.escapeValue?c(l.escape(e)):c(e)}}].forEach(function(t){for(a=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(i=u(n)))if("function"==typeof d){var s=d(e,o,r);i="string"==typeof s?s:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(f){i=o[0];continue}l.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),i=""}else"string"==typeof i||l.useRawValueToEscape||(i=R_(i));var c=t.safeValue(i);if(e=e.replace(o[0],c),f?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=l.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,r,o,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0];var a=(i=this.interpolate(i,o)).match(/'/g),l=i.match(/"/g);(a&&a.length%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o=px(px({},t),o))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){var s=[];(o=(o=px({},a)).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;var c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=u.shift(),s=u,c=!0}if((r=t(l.call(this,n[1].trim(),o),o))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=R_(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=s.reduce(function(e,t){return i.format(e,t,a.lng,px(px({},a),{},{interpolationkey:n[1].trim()}))},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function gx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gx(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bx(e){var t={};return function(n,r,o){var i=r+JSON.stringify(o),a=t[i];return a||(a=e(r,o),t[i]=a),a(n)}}var yx=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};A_(this,e),this.logger=F_.create("formatter"),this.options=t,this.formats={number:bx(function(e,t){var n=new Intl.NumberFormat(e,vx({},t));return function(e){return n.format(e)}}),currency:bx(function(e,t){var n=new Intl.NumberFormat(e,vx(vx({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:bx(function(e,t){var n=new Intl.DateTimeFormat(e,vx({},t));return function(e){return n.format(e)}}),relativetime:bx(function(e,t){var n=new Intl.RelativeTimeFormat(e,vx({},t));return function(e){return n.format(e,t.range||"day")}}),list:bx(function(e,t){var n=new Intl.ListFormat(e,vx({},t));return function(e){return n.format(e)}})},this.init(t)}return __(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()]=bx(t)}},{key:"format",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(function(e,t){var i=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(function(e){if(e){var t=D_(i=e.split(":"))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||q_(i)||$_(),r=t[0],o=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[r.trim()]||(n[r.trim()]=o),"false"===o&&(n[r.trim()]=!1),"true"===o&&(n[r.trim()]=!0),isNaN(o)||(n[r.trim()]=parseInt(o,10))}var i})}return{formatName:t,formatOptions:n}}(t),a=i.formatName,l=i.formatOptions;if(r.formats[a]){var s=e;try{var c=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},u=c.locale||c.lng||o.locale||o.lng||n;s=r.formats[a](e,u,vx(vx(vx({},l),o),c))}catch(e){r.logger.warn(e)}return s}return r.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function Ax(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ax(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ax(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ox=function(e){E_(o,e);var t,n,r=(t=o,n=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,r=S_(t);if(n){var o=S_(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return k_(this,e)});function o(e,t,n){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return A_(this,o),i=r.call(this),Z_&&N_.call(x_(i)),i.backend=e,i.store=t,i.services=n,i.languageUtils=n.languageUtils,i.options=a,i.logger=F_.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(n,a.backend,a),i}return __(o,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i={},a={},l={},s={};return e.forEach(function(e){var r=!0;t.forEach(function(t){var l="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[l]=2:o.state[l]<0||(1===o.state[l]?void 0===a[l]&&(a[l]=!0):(o.state[l]=1,r=!1,void 0===a[l]&&(a[l]=!0),void 0===i[l]&&(i[l]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(l[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(s)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(n){var r,l,s,c,u;r=n.loaded,l=i,(c=(s=z_(r,[o],Object)).obj)[u=s.k]=c[u]||[],c[u].push(l),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var r=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:n,tried:o,wait:i,callback:a});else{this.readingCalls++;var l=function(l,s){if(r.readingCalls--,r.waitingReads.length>0){var c=r.waitingReads.shift();r.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}l&&s&&o<r.maxRetries?setTimeout(function(){r.read.call(r,e,t,n,o+1,2*i,a)},i):a(l,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,l);try{var c=s(e,t);c&&"function"==typeof c.then?c.then(function(e){return l(null,e)}).catch(l):l(null,c)}catch(e){l(e)}}}},{key:"prepareLoading",value:function(e,t){var n=this,r=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,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)})}},{key:"saveMissing",value:function(e,t,n,r,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(n,'" 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!=n&&""!==n){if(this.backend&&this.backend.create){var l=wx(wx({},i),{},{isUpdate:o}),s=this.backend.create.bind(this.backend);if(s.length<6)try{var c;(c=5===s.length?s(e,t,n,r,l):s(e,t,n,r))&&"function"==typeof c.then?c.then(function(e){return a(null,e)}).catch(a):a(null,c)}catch(e){a(e)}else s(e,t,n,r,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}]),o}(N_);function _x(){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"===y_(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===y_(e[2])||"object"===y_(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function xx(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 Cx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ex(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cx(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kx(){}var Sx=function(e){E_(o,e);var t,n,r=(t=o,n=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,r=S_(t);if(n){var o=S_(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return k_(this,e)});function o(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(A_(this,o),e=r.call(this),Z_&&N_.call(x_(e)),e.options=xx(n),e.services={},e.logger=F_,e.modules={external:[]},t=x_(e),Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(function(e){"function"==typeof t[e]&&(t[e]=t[e].bind(t))}),i&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,i),k_(e,x_(e));setTimeout(function(){e.init(n,i)},0)}return e}return __(o,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=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 r=_x();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=Ex(Ex(Ex({},r),this.options),xx(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Ex(Ex({},r.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?F_.init(o(this.modules.logger),this.options):F_.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=yx);var a=new ax(this.options);this.store=new J_(this.options.resources,this.options);var l=this.services;l.logger=F_,l.resourceStore=this.store,l.languageUtils=a,l.pluralResolver=new dx(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!i||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(l.formatter=o(i),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new mx(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new Ox(o(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))}),this.modules.languageDetector&&(l.languageDetector=o(this.modules.languageDetector),l.languageDetector.init&&l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=o(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new ox(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=kx),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[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 n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var c=I_(),u=function(){var t=function(t,r){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),c.resolve(r),n(t,r)};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?u():setTimeout(u,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kx,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};r?i(r):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),n(e)})}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=I_();return e||(e=this.languages),t||(t=this.options.ns),n||(n=kx),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{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&&ex.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 n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=I_();this.emit("languageChanging",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},i=function(i){e||i||!n.services.languageDetector||(i=[]);var a="string"==typeof i?i:n.services.languageUtils.getBestMatchFromCodes(i);a&&(n.language||o(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,function(e){!function(e,i){i?(o(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,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()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==y_(o)){for(var a=arguments.length,l=new Array(a>2?a-2:0),s=2;s<a;s++)l[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(l))}else i=Ex({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||n||e.keyPrefix;var c,u=r.options.keySeparator||".";return c=i.keyPrefix&&Array.isArray(t)?t.map(function(e){return"".concat(i.keyPrefix).concat(u).concat(e)}):i.keyPrefix?"".concat(i.keyPrefix).concat(u).concat(t):t,r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,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,n=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 r=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var l=n.precheck(this,a);if(void 0!==l)return l}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=I_();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=I_();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter(function(e){return r.indexOf(e)<0});return o.length?(this.options.preload=r.concat(o),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(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 ax(_x());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]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kx,r=Ex(Ex(Ex({},this.options),t),{isClone:!0}),i=new o(r);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=Ex({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new ox(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))}),i.init(r,n),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}(N_);P_(Sx,"createInstance",function(){return new Sx(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)});var Px=Sx.createInstance();Px.createInstance=Sx.createInstance,Px.createInstance,Px.dir,Px.init,Px.loadResources,Px.reloadResources,Px.use,Px.changeLanguage,Px.getFixedT,Px.t,Px.exists,Px.setDefaultNamespace,Px.hasLoadedNamespace,Px.loadNamespaces,Px.loadLanguages;var Dx="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function Mx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qx(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}function $x(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var Tx={};function Bx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&Tx[t[0]]||("string"==typeof t[0]&&(Tx[t[0]]=new Date),$x.apply(void 0,t))}function jx(e,t,n){e.loadNamespaces(t,function(){e.isInitialized?n():e.on("initialized",function t(){setTimeout(function(){e.off("initialized",t)},0),n()})})}var Fx=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Nx={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Ix=function(e){return Nx[e]};function Rx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rx(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Lx,Qx={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(Fx,Ix)}},Wx={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Qx=zx(zx({},Qx),e)}(e.options.react),function(e){Lx=e}(e)}},Vx=(0,le().createContext)(),Hx=function(){function e(){A_(this,e),this.usedNamespaces={}}return __(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 Ux(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ux(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ux(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=(0,le().useContext)(Vx)||{},o=r.i18n,i=r.defaultNS,a=n||o||Lx;if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Hx),!a){Bx("You will need to pass in an i18next instance by using initReactI18next");var l=function(e,t){return"string"==typeof t?t:t&&"object"===y_(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},s=[l,{},!1];return s.t=l,s.i18n={},s.ready=!1,s}a.options.react&&void 0!==a.options.react.wait&&Bx("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=Zx(Zx(Zx({},Qx),a.options.react),t),u=c.useSuspense,d=c.keyPrefix,f=i||a.options&&a.options.defaultNS;f="string"==typeof f?[f]:f||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(f);var p=(a.isInitialized||a.initializedStoreOnce)&&f.every(function(e){return function(e,t){var n=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,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}(e,t,n):(Bx("i18n.languages were undefined or empty",t.languages),!0)}(e,a,c)});function h(){return a.getFixedT(null,"fallback"===c.nsMode?f:f[0],d)}var m,g,v,b,y=(v=(0,le().useState)(h),b=2,D_(v)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(v,b)||q_(v,b)||$_()),A=y[0],w=y[1],O=f.join(),_=(m=O,g=(0,le().useRef)(),(0,le().useEffect)(function(){g.current=m},[m,void 0]),g.current),x=(0,le().useRef)(!0);(0,le().useEffect)(function(){var e=c.bindI18n,t=c.bindI18nStore;function n(){x.current&&w(h)}return x.current=!0,p||u||jx(a,f,function(){x.current&&w(h)}),p&&_&&_!==O&&x.current&&w(h),e&&a&&a.on(e,n),t&&a&&a.store.on(t,n),function(){x.current=!1,e&&a&&e.split(" ").forEach(function(e){return a.off(e,n)}),t&&a&&t.split(" ").forEach(function(e){return a.store.off(e,n)})}},[a,O]);var C=(0,le().useRef)(!0);(0,le().useEffect)(function(){x.current&&!C.current&&w(h),C.current=!1},[a,d]);var E=[A,a,p];if(E.t=A,E.i18n=a,E.ready=p,p)return E;if(!p&&!u)return E;throw new Promise(function(e){jx(a,f,function(){e()})})}var Yx=[],Xx=Yx.forEach,Kx=Yx.slice,Jx=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,eC={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var n=function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===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);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*n*1e3)),r&&(o.domain=r),document.cookie=function(e,t,n){var r=n||{};r.path=r.path||"/";var o=encodeURIComponent(t),i="".concat(e,"=").concat(o);if(r.maxAge>0){var a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");i+="; Max-Age=".concat(Math.floor(a))}if(r.domain){if(!Jx.test(r.domain))throw new TypeError("option domain is invalid");i+="; Domain=".concat(r.domain)}if(r.path){if(!Jx.test(r.path))throw new TypeError("option path is invalid");i+="; Path=".concat(r.path)}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");i+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.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)}},tC={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1).split("&"),o=0;o<r.length;o++){var i=r[o].indexOf("=");i>0&&r[o].substring(0,i)===e.lookupQuerystring&&(t=r[o].substring(i+1))}}return t}},nC=null,rC=function(){if(null!==nC)return nC;try{nC="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){nC=!1}return nC},oC={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&rC()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&rC()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},iC=null,aC=function(){if(null!==iC)return iC;try{iC="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){iC=!1}return iC},lC={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&aC()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&aC()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},sC={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},cC={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},uC={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},dC={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,n="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(n)return n[t]}},fC=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};A_(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return __(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return Xx.call(Kx.call(arguments,1),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),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=n,this.addDetector(eC),this.addDetector(tC),this.addDetector(oC),this.addDetector(lC),this.addDetector(sC),this.addDetector(cC),this.addDetector(uC),this.addDetector(dC)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach(function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"==typeof r&&(r=[r]),r&&(n=n.concat(r))}}),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)}))}}]),e}();fC.type="languageDetector";function pC(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}Px.use(fC).use(Wx).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 hC=0;function mC(e){return"__private_"+hC+++"_"+e}function gC(e,t,n){const r=[];return e.forEach(e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})),r}function vC(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,"$$$$")),r=gC(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}const bC=e=>{throw new Error(`missing string: ${e}`)};var yC=mC("onMissingKey"),AC=mC("apply");class wC{constructor(e,t){let{onMissingKey:n=bC}=void 0===t?{}:t;Object.defineProperty(this,AC,{value:OC}),Object.defineProperty(this,yC,{writable:!0,value:void 0}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(pC(this,AC)[AC],this):pC(this,AC)[AC](e),pC(this,yC)[yC]=n}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){let n=this.locale.strings[e];if(null==n&&(pC(this,yC)[yC](e),n=e),"object"==typeof n){if(t&&void 0!==t.smart_count)return vC(n[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 n)throw new Error("string was not a string");return vC(n,t)}}function OC(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 _C=Mx(function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,l){var s=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,l=i.length;a<l;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,l])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,function r(){n.apply(this,arguments),e.off(t,r)})},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e}),xC=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},CC="object"==typeof Dx&&Dx&&Dx.Object===Object&&Dx,EC="object"==typeof self&&self&&self.Object===Object&&self,kC=CC||EC||Function("return this")(),SC=kC,PC=/\s/,DC=/^\s+/,MC=kC.Symbol,qC=MC,$C=Object.prototype,TC=$C.hasOwnProperty,BC=$C.toString,jC=qC?qC.toStringTag:void 0,FC=Object.prototype.toString,NC=function(e){var t=TC.call(e,jC),n=e[jC];try{e[jC]=void 0;var r=!0}catch(e){}var o=BC.call(e);return r&&(t?e[jC]=n:delete e[jC]),o},IC=MC?MC.toStringTag:void 0,RC=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":IC&&IC in Object(e)?NC(e):function(e){return FC.call(e)}(e)},zC=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&PC.test(e.charAt(t)););return t}(e)+1).replace(DC,""):e},LC=xC,QC=/^[-+]0x[0-9a-f]+$/i,WC=/^0b[01]+$/i,VC=/^0o[0-7]+$/i,HC=parseInt,UC=xC,ZC=function(){return SC.Date.now()},GC=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]"==RC(e)}(e))return NaN;if(LC(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=LC(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=zC(e);var n=WC.test(e);return n||VC.test(e)?HC(e.slice(2),n?2:8):QC.test(e)?NaN:+e},YC=Math.max,XC=Math.min,KC=xC,JC=Mx(function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return KC(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),function(e,t,n){var r,o,i,a,l,s,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-c>=i}function m(){var e=ZC();if(h(e))return g(e);l=setTimeout(m,function(e){var n=t-(e-s);return d?XC(n,i-(e-c)):n}(e))}function g(e){return l=void 0,f&&r?p(e):(r=o=void 0,a)}function v(){var e=ZC(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(m,t),u?p(e):a}(s);if(d)return clearTimeout(l),l=setTimeout(m,t),p(s)}return void 0===l&&(l=setTimeout(m,t)),a}return t=GC(t)||0,UC(n)&&(u=!!n.leading,i=(d="maxWait"in n)?YC(GC(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=o=l=void 0},v.flush=function(){return void 0===l?a:g(ZC())},v}(e,t,{leading:r,maxWait:t,trailing:o})});function eE(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var tE=0;function nE(e){return"__private_"+tE+++"_"+e}var rE=nE("callbacks"),oE=nE("publish");class iE{constructor(){Object.defineProperty(this,oE,{value:aE}),this.state={},Object.defineProperty(this,rE,{writable:!0,value:new Set})}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,eE(this,oE)[oE](t,n,e)}subscribe(e){return eE(this,rE)[rE].add(e),()=>{eE(this,rE)[rE].delete(e)}}}function aE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];eE(this,rE)[rE].forEach(e=>{e(...t)})}function lE(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)}}iE.VERSION="3.2.2";var sE={__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 cE(e){var t;if(e.type)return e.type;const n=e.name?null==(t=lE(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in sE?sE[n]:"application/octet-stream"}function uE(e){let t="";return e.replace(/[^A-Z0-9]/gi,e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/"))+t}function dE(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 n=t[1].split(".",2),r=parseInt(n[0],10),o=parseInt(n[1],10);return r<15||15===r&&o<15063||r>18||18===r&&o>=18218}function fE(e){return e<10?`0${e}`:e.toString()}function pE(){const e=new Date;return`${fE(e.getHours())}:${fE(e.getMinutes())}:${fE(e.getSeconds())}`}const hE={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${pE()}]`,...t)}},mE={debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${pE()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${pE()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${pE()}]`,...t)}};var gE=Mx(function(e){if("number"!=typeof e||Number.isNaN(e))throw new TypeError("Expected a number, got "+typeof e);const t=e<0;let n=Math.abs(e);if(t&&(n=-n),0===n)return"0 B";const r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.min(Math.floor(Math.log(n)/Math.log(1024)),r.length-1),i=Number(n/1024**o),a=r[o];return`${i>=10||i%1==0?Math.round(i):i.toFixed(1)} ${a}`});function vE(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}vE.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var bE=/[\/\+\.]/,yE=Mx(function(e,t){function n(t){var n=function(e,t,n){var r=new vE(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,bE);return n&&n.length>=2}return t?n(t.split(";")[0]):n});const AE={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class wE extends Error{constructor(e,t){var n;super(e),this.isRestriction=!0,this.isUserFacing=null==(n=null==t?void 0:t.isUserFacing)||n,null!=t&&t.file&&(this.file=t.file)}}class OE{constructor(e,t){this.i18n=t,this.getOpts=()=>{var t;const n=e();if(null!=(null==(t=n.restrictions)?void 0:t.allowedFileTypes)&&!Array.isArray(n.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return n}}validateAggregateRestrictions(e,t){const{maxTotalFileSize:n,maxNumberOfFiles:r}=this.getOpts().restrictions;if(r&&e.filter(e=>!e.isGhost).length+t.length>r)throw new wE(`${this.i18n("youCanOnlyUploadX",{smart_count:r})}`);if(n){let r=e.reduce((e,t)=>{var n;return e+(null!=(n=t.size)?n:0)},0);for(const e of t)if(null!=e.size&&(r+=e.size,r>n))throw new wE(this.i18n("exceedsSize",{size:gE(n),file:e.name}))}}validateSingleFile(e){const{maxFileSize:t,minFileSize:n,allowedFileTypes:r}=this.getOpts().restrictions;if(r&&!r.some(t=>t.includes("/")?!!e.type&&yE(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.slice(1).toLowerCase())){const t=r.join(", ");throw new wE(this.i18n("youCanOnlyUploadFileTypes",{types:t}),{file:e})}if(t&&null!=e.size&&e.size>t)throw new wE(this.i18n("exceedsSize",{size:gE(t),file:e.name}),{file:e});if(n&&null!=e.size&&e.size<n)throw new wE(this.i18n("inferiorSize",{size:gE(n)}),{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 wE(this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}getMissingRequiredMetaFields(e){const t=new wE(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})),{requiredMetaFields:n}=this.getOpts().restrictions,r=[];for(const t of n)Object.hasOwn(e.meta,t)&&""!==e.meta[t]||r.push(t);return{missingFields:r,error:t}}}var _E={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 xE,CE;function EE(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var kE=0;function SE(e){return"__private_"+kE+++"_"+e}const PE={totalProgress:0,allowNewUpload:!0,error:null,recoveredState:null};var DE=SE("plugins"),ME=SE("restricter"),qE=SE("storeUnsubscribe"),$E=SE("emitter"),TE=SE("preProcessors"),BE=SE("uploaders"),jE=SE("postProcessors"),FE=SE("informAndEmit"),NE=SE("checkRequiredMetaFieldsOnFile"),IE=SE("checkRequiredMetaFields"),RE=SE("assertNewUploadAllowed"),zE=SE("transformFile"),LE=SE("startIfAutoProceed"),QE=SE("checkAndUpdateFileState"),WE=SE("addListeners"),VE=SE("updateOnlineStatus"),HE=SE("requestClientById"),UE=SE("createUpload"),ZE=SE("getUpload"),GE=SE("removeUpload"),YE=SE("runUpload");xE=Symbol.for("uppy test: getPlugins"),CE=Symbol.for("uppy test: createUpload");class XE{constructor(e){Object.defineProperty(this,YE,{value:ck}),Object.defineProperty(this,GE,{value:sk}),Object.defineProperty(this,ZE,{value:lk}),Object.defineProperty(this,UE,{value:ak}),Object.defineProperty(this,WE,{value:ik}),Object.defineProperty(this,QE,{value:ok}),Object.defineProperty(this,LE,{value:rk}),Object.defineProperty(this,zE,{value:nk}),Object.defineProperty(this,RE,{value:tk}),Object.defineProperty(this,IE,{value:ek}),Object.defineProperty(this,NE,{value:JE}),Object.defineProperty(this,FE,{value:KE}),Object.defineProperty(this,DE,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,ME,{writable:!0,value:void 0}),Object.defineProperty(this,qE,{writable:!0,value:void 0}),Object.defineProperty(this,$E,{writable:!0,value:_C()}),Object.defineProperty(this,TE,{writable:!0,value:new Set}),Object.defineProperty(this,BE,{writable:!0,value:new Set}),Object.defineProperty(this,jE,{writable:!0,value:new Set}),this.scheduledAutoProceed=null,this.wasOffline=!1,this.calculateProgress=JC((e,t)=>{const n=this.getFile(null==e?void 0:e.id);if(null==e||!n)return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);if(100===n.progress.percentage)return void this.log(`Not setting progress for a file that has been already uploaded: ${e.id}`);const r=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...n.progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:r?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()},500,{leading:!0,trailing:!0}),Object.defineProperty(this,VE,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,HE,{writable:!0,value:new Map}),this.defaultLocale=_E;const t={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:AE,meta:{},onBeforeFileAdded:(e,t)=>!Object.hasOwn(t,e.id),onBeforeUpload:e=>e,store:new iE,logger:hE,infoTimeout:5e3},n={...t,...e};this.opts={...n,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=mE),this.log(`Using Core v${XE.VERSION}`),this.i18nInit(),this.store=this.opts.store,this.setState({...PE,plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:dE(),individualCancellation:!0,resumableUploads:!1},meta:{...this.opts.meta},info:[]}),EE(this,ME)[ME]=new OE(()=>this.opts,this.i18n),EE(this,qE)[qE]=this.store.subscribe((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),EE(this,WE)[WE]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];EE(this,$E)[$E].emit(e,...n)}on(e,t){return EE(this,$E)[$E].on(e,t),this}once(e,t){return EE(this,$E)[$E].once(e,t),this}off(e,t){return EE(this,$E)[$E].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[n,r]=e;return[n,{...t[n],...r}]}))}})}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 wC([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},n={};Object.keys(t).forEach(r=>{n[r]={...t[r],progress:{...t[r].progress,...e}}}),this.setState({files:n,...PE}),this.emit("reset-progress")}clearUploadedFiles(){this.setState({...PE,files:{}})}addPreProcessor(e){EE(this,TE)[TE].add(e)}removePreProcessor(e){return EE(this,TE)[TE].delete(e)}addPostProcessor(e){EE(this,jE)[jE].add(e)}removePostProcessor(e){return EE(this,jE)[jE].delete(e)}addUploader(e){EE(this,BE)[BE].add(e)}removeUploader(e){return EE(this,BE)[BE].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}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:n}=this.getState(),r=Object.values(e),o=r.filter(e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted}),i=r.filter(e=>!e.progress.uploadStarted),a=r.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess),l=r.filter(e=>e.progress.uploadStarted),s=r.filter(e=>e.isPaused),c=r.filter(e=>e.progress.uploadComplete),u=r.filter(e=>e.error),d=o.filter(e=>!e.isPaused),f=r.filter(e=>e.progress.preprocess||e.progress.postprocess);return{newFiles:i,startedFiles:a,uploadStartedFiles:l,pausedFiles:s,completeFiles:c,erroredFiles:u,inProgressFiles:o,inProgressNotPausedFiles:d,processingFiles:f,isUploadStarted:l.length>0,isAllComplete:100===t&&c.length===r.length&&0===f.length,isAllErrored:!!n&&u.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some(e=>e.isGhost)}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{EE(this,ME)[ME].validate(t,[e])}catch(e){return e}return null}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){EE(this,RE)[RE](e);const{nextFilesState:t,validFilesToAdd:n,errors:r}=EE(this,QE)[QE]([e]),o=r.filter(e=>e.isRestriction);if(EE(this,FE)[FE](o),r.length>0)throw r[0];this.setState({files:t});const[i]=n;return this.emit("file-added",i),this.emit("files-added",n),this.log(`Added file: ${i.name}, ${i.id}, mime type: ${i.type}`),EE(this,LE)[LE](),i.id}addFiles(e){EE(this,RE)[RE]();const{nextFilesState:t,validFilesToAdd:n,errors:r}=EE(this,QE)[QE](e),o=r.filter(e=>e.isRestriction);EE(this,FE)[FE](o);const i=r.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}),n.forEach(e=>{this.emit("file-added",e)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.values(n).forEach(e=>{this.log(`Added file: ${e.name}\n id: ${e.id}\n type: ${e.type}`)}),n.length>0&&EE(this,LE)[LE]()}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function l(e){return void 0===a[e]}e.forEach(e=>{n[e]&&(a[e]=n[e],delete o[e])}),Object.keys(i).forEach(e=>{const t=r[e].fileIDs.filter(l);if(0===t.length)return void delete i[e];const{capabilities:n}=this.getState();if(t.length!==r[e].fileIDs.length&&!n.individualCancellation)throw new Error("individualCancellation is disabled");i[e]={...r[e],fileIDs:t}});const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const c=Object.keys(a);c.forEach(e=>{this.emit("file-removed",a[e],t)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.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 n={...e[t],isPaused:!0};e[t]=n}),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 n={...e[t],isPaused:!1,error:null};e[t]=n}),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 n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=EE(this,UE)[UE](t,{forceAllowNewUpload:!0});return EE(this,YE)[YE](n)}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(PE)}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=EE(this,UE)[UE]([e],{forceAllowNewUpload:!0});return EE(this,YE)[YE](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),n=e.filter(e=>null==e.progress.bytesTotal);if(0===t.length){const t=100*e.length,r=n.reduce((e,t)=>e+t.progress.percentage,0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce((e,t)=>{var n;return e+(null!=(n=t.progress.bytesTotal)?n:0)},0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach(e=>{i+=e.progress.bytesUploaded}),n.forEach(e=>{i+=o*(e.progress.percentage||0)/100});let a=0===r?0:Math.round(i/r*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 n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in EE(this,DE)[DE]?EE(this,DE)[DE][n.type].push(n):EE(this,DE)[DE][n.type]=[n],n.install(),this.emit("plugin-added",n),this}getPlugin(e){for(const t of Object.values(EE(this,DE)[DE])){const n=t.find(t=>t.id===e);if(null!=n)return n}}[xE](e){return EE(this,DE)[DE][e]}iteratePlugins(e){Object.values(EE(this,DE)[DE]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=EE(this,DE)[DE][e.type],n=t.findIndex(t=>t.id===e.id);-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}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}),EE(this,qE)[qE](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",EE(this,VE)[VE]),window.removeEventListener("offline",EE(this,VE)[VE]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}registerRequestClient(e,t){EE(this,HE)[HE].set(e,t)}getRequestClientForFile(e){if(!e.remote)throw new Error(`Tried to get RequestClient for a non-remote file ${e.id}`);const t=EE(this,HE)[HE].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]?EE(this,YE)[YE](e):(EE(this,GE)[GE](e),Promise.reject(new Error("Nonexistent upload")))}[CE](){return EE(this,UE)[UE](...arguments)}addResultData(e,t){if(!EE(this,ZE)[ZE](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=EE(this,DE)[DE].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then(()=>EE(this,ME)[ME].validateMinNumberOfFiles(t)).catch(e=>{throw EE(this,FE)[FE]([e]),e}).then(()=>{if(!EE(this,IE)[IE](t))throw new wE(this.i18n("missingRequiredMetaField"))}).catch(e=>{throw e}).then(()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap(e=>e.fileIDs),r=[];Object.keys(t).forEach(e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)});const o=EE(this,UE)[UE](r);return EE(this,YE)[YE](o)}).catch(e=>{throw this.emit("error",e),this.log(e,"error"),e}))}}function KE(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),n=t.slice(0,4),r=t.slice(4);n.forEach(e=>{let{message:t,details:n=""}=e;this.info({message:t,details:n},"error",this.opts.infoTimeout)}),r.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:r.length})})}function JE(e){const{missingFields:t,error:n}=EE(this,ME)[ME].getMissingRequiredMetaFields(e);return!(t.length>0&&(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(n.message),this.emit("restriction-failed",e,n),1))}function ek(e){let t=!0;for(const n of Object.values(e))EE(this,NE)[NE](n)||(t=!1);return t}function tk(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new wE(this.i18n("noMoreFilesAllowed"),{file:e});throw EE(this,FE)[FE]([t]),t}}function nk(e){const t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,n=cE(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),o=lE(r).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=cE(e);return function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${uE(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${uE(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=r,a.type=n;const l=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:i,name:r,extension:o||"",meta:{...this.getState().meta,...a},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote||"",preview:t.preview}}function rk(){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 ok(e){const{files:t}=this.getState(),n={...t},r=[],o=[];for(const a of e)try{var i;let e=EE(this,zE)[zE](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 l=this.opts.onBeforeFileAdded(e,n);if(!l&&this.checkIfFileAlreadyExists(e.id))throw new wE(this.i18n("noDuplicates",{fileName:e.name}),{file:a});if(!1===l&&!o)throw new wE("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:a});"object"==typeof l&&null!==l&&(e=l),EE(this,ME)[ME].validateSingleFile(e),n[e.id]=e,r.push(e)}catch(e){o.push(e)}try{EE(this,ME)[ME].validateAggregateRestrictions(Object.values(t),r)}catch(e){return o.push(e),{nextFilesState:t,validFilesToAdd:[],errors:o}}return{nextFilesState:n,validFilesToAdd:r,errors:o}}function ik(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){var o;this.log(n.message,"error");const e=new Error(this.i18n("failedToUpload",{file:null!=(o=null==t?void 0:t.name)?o:""}));e.isUserFacing=!0,e.details=n.message,n.details&&(e.details+=` ${n.details}`),EE(this,FE)[FE]([e])}else EE(this,FE)[FE]([n])});let t=null;this.on("upload-stalled",(e,n)=>{const{message:r}=e,o=n.map(e=>e.meta.name).join(", ");t||(this.info({message:r,details:o},"warning",this.opts.infoTimeout),t=setTimeout(()=>{t=null},this.opts.infoTimeout)),this.log(`${r} ${o}`.trim(),"warning")}),this.on("upload",()=>{this.setState({error:null})});const n=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}),n=Object.fromEntries(t.map(e=>[e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}]));this.patchFilesState(n)};this.on("upload-start",e=>{e.forEach(e=>{this.emit("upload-started",e)}),n(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 n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:EE(this,jE)[jE].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.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&&EE(this,NE)[NE](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",EE(this,VE)[VE]),window.addEventListener("offline",EE(this,VE)[VE]),setTimeout(EE(this,VE)[VE],3e3))}function ak(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=((e=21)=>{let t="",n=0|e;for(;n-- >0;)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 lk(e){const{currentUploads:t}=this.getState();return t[e]}function sk(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function ck(e){const t=()=>{const{currentUploads:t}=this.getState();return t[e]};let n=t();const r=[...EE(this,TE)[TE],...EE(this,BE)[BE],...EE(this,jE)[jE]];try{for(let o=n.step||0;o<r.length&&n;o++){const i=r[o];this.setState({currentUploads:{...this.getState().currentUploads,[e]:{...n,step:o}}});const{fileIDs:a}=n;await i(a,e),n=t()}}catch(t){throw EE(this,GE)[GE](e),t}if(n){n.fileIDs.forEach(e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)});const r=n.fileIDs.map(e=>this.getFile(e)),o=r.filter(e=>!e.error),i=r.filter(e=>e.error);this.addResultData(e,{successful:o,failed:i,uploadID:e}),n=t()}let o;return n&&(o=n.result,this.emit("complete",o),EE(this,GE)[GE](e)),null==o&&this.log(`Not setting result for an upload that has been removed: ${e}`),o}XE.VERSION="3.10.0";var uk,dk,fk,pk,hk,mk,gk,vk,bk,yk,Ak,wk,Ok,_k,xk={},Ck=[],Ek=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,kk=Array.isArray;function Sk(e,t){for(var n in t)e[n]=t[n];return e}function Pk(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Dk(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?uk.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return Mk(e,a,r,o,null)}function Mk(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++fk,__i:-1,__u:0};return null==o&&null!=dk.vnode&&dk.vnode(i),i}function qk(e){return e.children}function $k(e,t){this.props=e,this.context=t}function Tk(e,t){if(null==t)return e.__?Tk(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Tk(e):null}function Bk(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],o=[],i=Sk({},t);i.__v=t.__v+1,dk.vnode&&dk.vnode(i),Vk(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??Tk(t),!!(32&t.__u),o),i.__v=t.__v,i.__.__k[i.__i]=i,Uk(r,i,o),t.__e=t.__=null,i.__e!=n&&jk(i)}}function jk(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),jk(e)}function Fk(e){(!e.__d&&(e.__d=!0)&&pk.push(e)&&!Nk.__r++||hk!=dk.debounceRendering)&&((hk=dk.debounceRendering)||mk)(Nk)}function Nk(){try{for(var e,t=1;pk.length;)pk.length>t&&pk.sort(gk),e=pk.shift(),t=pk.length,Bk(e)}finally{pk.length=Nk.__r=0}}function Ik(e,t,n,r,o,i,a,l,s,c,u){var d,f,p,h,m,g,v=r&&r.__k||Ck,b=t.length;for(s=function(e,t,n,r,o){var i,a,l,s,c,u=n.length,d=u,f=0;for(e.__k=new Array(o),i=0;i<o;i++)null!=(a=t[i])&&"boolean"!=typeof a&&"function"!=typeof a?("string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?a=e.__k[i]=Mk(null,a,null,null,null):kk(a)?a=e.__k[i]=Mk(qk,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?a=e.__k[i]=Mk(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,s=i+f,a.__=e,a.__b=e.__b+1,l=null,-1!=(c=a.__i=zk(a,n,s,d))&&(d--,(l=n[c])&&(l.__u|=2)),null==l||null==l.__v?(-1==c&&(o>u?f--:o<u&&f++),"function"!=typeof a.type&&(a.__u|=4)):c!=s&&(c==s-1?f--:c==s+1?f++:(c>s?f--:f++,a.__u|=4))):e.__k[i]=null;if(d)for(i=0;i<u;i++)null!=(l=n[i])&&!(2&l.__u)&&(l.__e==r&&(r=Tk(l)),Yk(l,l));return r}(n,t,v,s,b),d=0;d<b;d++)null!=(p=n.__k[d])&&(f=-1!=p.__i&&v[p.__i]||xk,p.__i=d,g=Vk(e,p,f,o,i,a,l,s,c,u),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&Gk(f.ref,null,p),u.push(p.ref,p.__c||h,p)),null==m&&null!=h&&(m=h),4&p.__u?(s=Rk(p,s,e),f.__e&&(f.__e=null)):"function"==typeof p.type&&void 0!==g?s=g:h&&(s=h.nextSibling),p.__u&=-7);return n.__e=m,s}function Rk(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Rk(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!t.parentNode&&(t=Tk(e)),t=n.insertBefore(e.__e,t||null));do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function zk(e,t,n,r){var o,i,a,l=e.key,s=e.type,c=t[n],u=null!=c&&!(2&c.__u);if(null===c&&null==l||u&&l==c.key&&s==c.type)return n;if(r>(u?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;)if(null!=(c=t[a=o>=0?o--:i++])&&!(2&c.__u)&&l==c.key&&s==c.type)return a;return-1}function Lk(e,t,n){"-"==t[0]?e.setProperty(t,n??""):e[t]=null==n?"":"number"!=typeof n||Ek.test(t)?n:n+"px"}function Qk(e,t,n,r,o){var i,a;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Lk(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Lk(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(Ak,"$1")),a=t.toLowerCase(),t=a in e||"onFocusOut"==t||"onFocusIn"==t?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n[yk]=r[yk]:(n[yk]=wk,e.addEventListener(t,i?_k:Ok,i)):e.removeEventListener(t,i?_k:Ok,i);else{if("http://www.w3.org/2000/svg"==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&&"popover"!=t&&t in e)try{e[t]=n??"";break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function Wk(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t[bk])t[bk]=wk++;else if(t[bk]<n[yk])return;return n(dk.event?dk.event(t):t)}}}function Vk(e,t,n,r,o,i,a,l,s,c){var u,d,f,p,h,m,g,v,b,y,A,w,O,_,x,C,E=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(s=!!(32&n.__u),i=[l=t.__e=n.__e]),(u=dk.__b)&&u(t);e:if("function"==typeof E){d=a.length;try{if(b=t.props,y=E.prototype&&E.prototype.render,A=(u=E.contextType)&&r[u.__c],w=u?A?A.props.value:u.__:r,n.__c?v=(f=t.__c=n.__c).__=f.__E:(y?t.__c=f=new E(b,w):(t.__c=f=new $k(b,w),f.constructor=E,f.render=Xk),A&&A.sub(f),f.state||(f.state={}),f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),y&&null==f.__s&&(f.__s=f.state),y&&null!=E.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=Sk({},f.__s)),Sk(f.__s,E.getDerivedStateFromProps(b,f.__s))),h=f.props,m=f.state,f.__v=t,p)y&&null==E.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),y&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(y&&null==E.getDerivedStateFromProps&&b!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,w),t.__v==n.__v||!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,w)){t.__v!=n.__v&&(f.props=b,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),Ck.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&a.push(f),l=Tk(n);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,w),y&&null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(h,m,g)})}if(f.context=w,f.props=b,f.__P=e,f.__e=!1,O=dk.__r,_=0,y)f.state=f.__s,f.__d=!1,O&&O(t),u=f.render(f.props,f.state,f.context),Ck.push.apply(f.__h,f._sb),f._sb=[];else do{f.__d=!1,O&&O(t),u=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++_<25);f.state=f.__s,null!=f.getChildContext&&(r=Sk(Sk({},r),f.getChildContext())),y&&!p&&null!=f.getSnapshotBeforeUpdate&&(g=f.getSnapshotBeforeUpdate(h,m)),x=null!=u&&u.type===qk&&null==u.key?Zk(u.props.children):u,l=Ik(e,kk(x)?x:[x],t,n,r,o,i,a,l,s,c),f.base=t.__e,t.__u&=-161,f.__h.length&&a.push(f),v&&(f.__E=f.__=null)}catch(e){if(a.length=d,t.__v=null,s||null!=i){if(e.then){for(t.__u|=s?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;null!=i&&(i[i.indexOf(l)]=null),t.__e=l}else if(null!=i)for(C=i.length;C--;)Pk(i[C])}else t.__e=n.__e;null==t.__k&&(t.__k=n.__k||[]),e.then||Hk(t),dk.__e(e,t,n)}}else null==i&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):l=t.__e=function(e,t,n,r,o,i,a,l,s){var c,u,d,f,p,h,m,g=n.props||xk,v=t.props,b=t.type;if("svg"==b?o="http://www.w3.org/2000/svg":"math"==b?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(c=0;c<i.length;c++)if((p=i[c])&&"setAttribute"in p==!!b&&(b?p.localName==b:3==p.nodeType)){e=p,i[c]=null;break}if(null==e){if(null==b)return document.createTextNode(v);e=document.createElementNS(o,b,v.is&&v),l&&(dk.__m&&dk.__m(t,i),l=!1),i=null}if(null==b)g===v||l&&e.data==v||(e.data=v);else{if(i="textarea"==b&&null!=v.defaultValue?null:i&&uk.call(e.childNodes),!l&&null!=i)for(g={},c=0;c<e.attributes.length;c++)g[(p=e.attributes[c]).name]=p.value;for(c in g)p=g[c],"dangerouslySetInnerHTML"==c?d=p:"children"==c||c in v||"value"==c&&"defaultValue"in v||"checked"==c&&"defaultChecked"in v||Qk(e,c,null,p,o);for(c in v)p=v[c],"children"==c?f=p:"dangerouslySetInnerHTML"==c?u=p:"value"==c?h=p:"checked"==c?m=p:l&&"function"!=typeof p||g[c]===p||Qk(e,c,p,g[c],o);if(u)l||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),Ik("template"==t.type?e.content:e,kk(f)?f:[f],t,n,r,"foreignObject"==b?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&Tk(n,0),l,s),null!=i)for(c=i.length;c--;)Pk(i[c]);l&&"textarea"!=b||(c="value","progress"==b&&null==h?e.removeAttribute("value"):null!=h&&(h!==e[c]||"progress"==b&&!h||"option"==b&&h!=g[c])&&Qk(e,c,h,g[c],o),c="checked",null!=m&&m!=e[c]&&Qk(e,c,m,g[c],o))}return e}(n.__e,t,n,r,o,i,a,s,c);return(u=dk.diffed)&&u(t),128&t.__u?void 0:l}function Hk(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Hk))}function Uk(e,t,n){for(var r=0;r<n.length;r++)Gk(n[r],n[++r],n[++r]);dk.__c&&dk.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){dk.__e(e,t.__v)}})}function Zk(e){return"object"!=typeof e||null==e||e.__b>0?e:kk(e)?e.map(Zk):void 0!==e.constructor?null:Sk({},e)}function Gk(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){dk.__e(e,n)}}function Yk(e,t,n){var r,o;if(dk.unmount&&dk.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Gk(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){dk.__e(e,t)}r.base=r.__P=r.__n=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Yk(r[o],t,n||"function"!=typeof e.type);n||Pk(e.__e),e.__c=e.__=e.__e=void 0}function Xk(e,t,n){return this.constructor(e,n)}function Kk(e,t,n){var r,o,i;t==document&&(t=document.documentElement),dk.__&&dk.__(e,t),r=t.__k,o=[],i=[],Vk(t,e=t.__k=Dk(qk,null,[e]),r||xk,xk,t.namespaceURI,r?null:t.firstChild?uk.call(t.childNodes):null,o,r?r.__e:t.firstChild,!1,i),Uk(o,e,i),e.props.children=null}uk=Ck.slice,dk={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},fk=0,$k.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=Sk({},this.state),"function"==typeof e&&(e=e(Sk({},n),this.props)),e&&Sk(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),Fk(this))},$k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Fk(this))},$k.prototype.render=qk,pk=[],mk="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,gk=function(e,t){return e.__v.__b-t.__v.__b},Nk.__r=0,vk=Math.random().toString(8),bk="__d"+vk,yk="__a"+vk,Ak=/(PointerCapture)$|Capture$/i,wk=0,Ok=Wk(!1),_k=Wk(!0);class Jk{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 wC([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 eS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var tS=0;function nS(e){return"__private_"+tS+++"_"+e}var rS=nS("updateUI");class oS extends Jk{constructor(){super(...arguments),Object.defineProperty(this,rS,{writable:!0,value:void 0})}getTargetPlugin(e){let t;if("function"==typeof(null==e?void 0:e.addTarget))t=e,t instanceof oS||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:oS}}));else if("function"==typeof e){const n=e;this.uppy.iteratePlugins(e=>{e instanceof n&&(t=e)})}return t}mount(e,t){const n=t.id,r=(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(r){this.isTargetDOMEl=!0;const t=document.createElement("div");return t.classList.add("uppy-Root"),eS(this,rS)[rS]=function(e){let t,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=o,n||(n=Promise.resolve().then(()=>(n=null,e(...t)))),n}}(e=>{this.uppy.getPlugin(this.id)&&(Kk(this.render(e),t),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Kk(this.render(this.uppy.getState()),t),this.el=t,r.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 l=this.getTargetPlugin(e);if(l)return this.uppy.log(`Installing ${n} to ${l.id}`),this.parent=l,this.el=l.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let s=`Invalid target option given to ${n}.`;throw s+="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(s)}render(e){throw new Error("Extend the render method to add your plugin to a DOM element")}update(e){var t,n;null!=this.el&&(null==(t=(n=eS(this,rS))[rS])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}"function"==typeof TextDecoder&&new TextDecoder("utf-8",{ignoreBOM:!0});const iS="function"==typeof TextEncoder?new TextEncoder:void 0,aS=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),lS=(e=>{let t={};return e.forEach((e,n)=>t[e]=n),t})(aS),sS=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,cS=String.fromCharCode.bind(String),uS=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),"function"==typeof btoa?e=>btoa(e):e=>{let t,n,r,o,i="";const a=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|o,i+=aS[t>>18&63]+aS[t>>12&63]+aS[t>>6&63]+aS[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i}),dS="function"==typeof Uint8Array.prototype.toBase64?e=>e.toBase64():e=>{let t=[];for(let n=0,r=e.length;n<r;n+=4096)t.push(cS.apply(null,e.subarray(n,n+4096)));return uS(t.join(""))},fS=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?cS(192|t>>>6)+cS(128|63&t):cS(224|t>>>12&15)+cS(128|t>>>6&63)+cS(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return cS(240|t>>>18&7)+cS(128|t>>>12&63)+cS(128|t>>>6&63)+cS(128|63&t)},pS=/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\x00-\x7F]/g,hS=iS?e=>dS(iS.encode(e)):e=>uS(e.replace(pS,fS)),mS=(Uint8Array.fromBase64,(e,t=!1)=>t?(e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"))(hS(e)):hS(e));var gS={},vS=Object.prototype.hasOwnProperty;function bS(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function yS(e){try{return encodeURIComponent(e)}catch(e){return null}}gS.stringify=function(e,t){t=t||"";var n,r,o=[];for(r in"string"!=typeof t&&(t="?"),e)if(vS.call(e,r)){if((n=e[r])||null!=n&&!isNaN(n)||(n=""),r=yS(r),n=yS(n),null===r||null===n)continue;o.push(r+"="+n)}return o.length?t+o.join("&"):""},gS.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,r={};t=n.exec(e);){var o=bS(t[1]),i=bS(t[2]);null===o||null===i||o in r||(r[o]=i)}return r};var AS=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},wS=gS,OS=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,_S=/[\n\r\t]/g,xS=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,CS=/:\d+$/,ES=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,kS=/^[a-zA-Z]:/;function SS(e){return(e||"").toString().replace(OS,"")}var PS=[["#","hash"],["?","query"],function(e,t){return qS(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]],DS={hash:1,query:1};function MS(e){var t,n=("undefined"!=typeof window?window:void 0!==Dx?Dx:"undefined"!=typeof self?self:{}).location||{},r={},o=typeof(e=e||n);if("blob:"===e.protocol)r=new TS(unescape(e.pathname),{});else if("string"===o)for(t in r=new TS(e,{}),DS)delete r[t];else if("object"===o){for(t in e)t in DS||(r[t]=e[t]);void 0===r.slashes&&(r.slashes=xS.test(e.href))}return r}function qS(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function $S(e,t){e=(e=SS(e)).replace(_S,""),t=t||{};var n,r=ES.exec(e),o=r[1]?r[1].toLowerCase():"",i=!!r[2],a=!!r[3],l=0;return i?a?(n=r[2]+r[3]+r[4],l=r[2].length+r[3].length):(n=r[2]+r[4],l=r[2].length):a?(n=r[3]+r[4],l=r[3].length):n=r[4],"file:"===o?l>=2&&(n=n.slice(2)):qS(o)?n=r[4]:o?i&&(n=n.slice(2)):l>=2&&qS(t.protocol)&&(n=r[4]),{protocol:o,slashes:i||qS(o),slashesCount:l,rest:n}}function TS(e,t,n){if(e=(e=SS(e)).replace(_S,""),!(this instanceof TS))return new TS(e,t,n);var r,o,i,a,l,s,c=PS.slice(),u=typeof t,d=this,f=0;for("object"!==u&&"string"!==u&&(n=t,t=null),n&&"function"!=typeof n&&(n=wS.parse),r=!(o=$S(e||"",t=MS(t))).protocol&&!o.slashes,d.slashes=o.slashes||r&&t.slashes,d.protocol=o.protocol||t.protocol||"",e=o.rest,("file:"===o.protocol&&(2!==o.slashesCount||kS.test(e))||!o.slashes&&(o.protocol||o.slashesCount<2||!qS(d.protocol)))&&(c[3]=[/(.*)/,"pathname"]);f<c.length;f++)"function"!=typeof(a=c[f])?(i=a[0],s=a[1],i!=i?d[s]=e:"string"==typeof i?~(l="@"===i?e.lastIndexOf(i):e.indexOf(i))&&("number"==typeof a[2]?(d[s]=e.slice(0,l),e=e.slice(l+a[2])):(d[s]=e.slice(l),e=e.slice(0,l))):(l=i.exec(e))&&(d[s]=l[1],e=e.slice(0,l.index)),d[s]=d[s]||r&&a[3]&&t[s]||"",a[4]&&(d[s]=d[s].toLowerCase())):e=a(e,d);n&&(d.query=n(d.query)),r&&t.slashes&&"/"!==d.pathname.charAt(0)&&(""!==d.pathname||""!==t.pathname)&&(d.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],i=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(i=!0),n.splice(r,1),a--);return i&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(d.pathname,t.pathname)),"/"!==d.pathname.charAt(0)&&qS(d.protocol)&&(d.pathname="/"+d.pathname),AS(d.port,d.protocol)||(d.host=d.hostname,d.port=""),d.username=d.password="",d.auth&&(~(l=d.auth.indexOf(":"))?(d.username=d.auth.slice(0,l),d.username=encodeURIComponent(decodeURIComponent(d.username)),d.password=d.auth.slice(l+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&&qS(d.protocol)&&d.host?d.protocol+"//"+d.host:"null",d.href=d.toString()}TS.prototype={set:function(e,t,n){var r=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||wS.parse)(t)),r[e]=t;break;case"port":r[e]=t,AS(t,r.protocol)?t&&(r.host=r.hostname+":"+t):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=t,r.port&&(t+=":"+r.port),r.host=t;break;case"host":r[e]=t,CS.test(t)?(t=t.split(":"),r.port=t.pop(),r.hostname=t.join(":")):(r.hostname=t,r.port="");break;case"protocol":r.protocol=t.toLowerCase(),r.slashes=!n;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";r[e]=t.charAt(0)!==o?o+t:t}else r[e]=t;break;case"username":case"password":r[e]=encodeURIComponent(t);break;case"auth":var i=t.indexOf(":");~i?(r.username=t.slice(0,i),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=t.slice(i+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(t))}for(var a=0;a<PS.length;a++){var l=PS[a];l[4]&&(r[l[1]]=r[l[1]].toLowerCase())}return r.auth=r.password?r.username+":"+r.password:r.username,r.origin="file:"!==r.protocol&&qS(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r},toString:function(e){e&&"function"==typeof e||(e=wS.stringify);var t,n=this,r=n.host,o=n.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var i=o+(n.protocol&&n.slashes||qS(n.protocol)?"//":"");return n.username?(i+=n.username,n.password&&(i+=":"+n.password),i+="@"):n.password?(i+=":"+n.password,i+="@"):"file:"!==n.protocol&&qS(n.protocol)&&!r&&"/"!==n.pathname&&(i+="@"),(":"===r[r.length-1]||CS.test(n.hostname)&&!n.port)&&(r+=":"),i+=r+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(i+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(i+=n.hash),i}},TS.extractProtocol=$S,TS.location=MS,TS.trimLeft=SS,TS.qs=wS;var BS=Mx(TS);function jS(e){return jS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jS(e)}function FS(e){var t="function"==typeof Map?new Map:void 0;return FS=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,n)}function n(){return NS(e,arguments,zS(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),RS(n,e)},FS(e)}function NS(e,t,n){return NS=IS()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&RS(o,n.prototype),o},NS.apply(null,arguments)}function IS(){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 RS(e,t){return RS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RS(e,t)}function zS(e){return zS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zS(e)}var LS=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&&RS(e,t)}(i,e);var t,n,r,o=(n=i,r=IS(),function(){var e,t=zS(n);if(r){var o=zS(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===jS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=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=r,t.originalResponse=a,t.causingError=n,null!=n&&(e+=", caused by ".concat(n.toString())),null!=r){var l=r.getHeader("X-Request-ID")||"n/a",s=r.getMethod(),c=r.getURL(),u=a?a.getStatus():"n/a",d=a?a.getBody()||"":"n/a";e+=", originated from request (method: ".concat(s,", url: ").concat(c,", response code: ").concat(u,", response text: ").concat(d,", request id: ").concat(l,")")}return t.message=e,t}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(FS(Error));function QS(){QS=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new D(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var A={};c(A,a,function(){return this});var w=Object.getPrototypeOf,O=w&&w(w(M([])));O&&O!==n&&r.call(O,a)&&(A=O);var _=y.prototype=v.prototype=Object.create(A);function x(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==US(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){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(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=k(l,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function k(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(US(t)+" is not iterable")}return b.prototype=y,o(_,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},x(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},x(_),c(_,s,"Generator"),c(_,a,function(){return this}),c(_,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=M,D.prototype={constructor:D,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(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function WS(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function VS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return HS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?HS(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 HS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function US(e){return US="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},US(e)}function ZS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZS(Object(n),!0).forEach(function(t){var r,o,i;r=e,o=t,i=n[t],(o=XS(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XS(r.key),r)}}function XS(e){var t=function(e){if("object"!==US(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==US(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===US(t)?t:String(t)}var KS={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:aP,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},JS=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"resume"in n&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=n,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,n,r;return t=e,n=[{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 n=this.options.retryDelays;if(null==n||"[object Array]"===Object.prototype.toString.call(n)){if(this.options.parallelUploads>1)for(var r=0,o=["uploadUrl","uploadSize","uploadLengthDeferred"];r<o.length;r++){var i=o[r];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(n){return e._fingerprint=n,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,n=this,r=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 n=Math.floor(e/t),r=[],o=0;o<t;o++)r.push({start:n*o,end:n*(o+1)});return r[t-1].end=e,r}(this._source.size,i);this._parallelUploadUrls&&a.forEach(function(e,t){e.uploadUrl=n._parallelUploadUrls[t]||null}),this._parallelUploadUrls=new Array(a.length);var l,s=a.map(function(t,i){var l=0;return n._source.slice(t.start,t.end).then(function(s){var c=s.value;return new Promise(function(s,u){var d=GS(GS({},n.options),{},{uploadUrl:t.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:{},headers:GS(GS({},n.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:s,onError:u,onProgress:function(e){o=o-l+e,l=e,n._emitProgress(o,r)},onUploadUrlAvailable:function(){n._parallelUploadUrls[i]=f.url,n._parallelUploadUrls.filter(function(e){return Boolean(e)}).length===a.length&&n._saveUploadInUrlStorage()}}),f=new e(c,d);f.start(),n._parallelUploads.push(f)})})});Promise.all(s).then(function(){(l=n._openRequest("POST",n.options.endpoint)).setHeader("Upload-Concat","final;".concat(n._parallelUploadUrls.join(" ")));var e=eP(n.options.metadata);return""!==e&&l.setHeader("Upload-Metadata",e),n._sendRequest(l,null)}).then(function(e){if(tP(e.getStatus(),200)){var t=e.getHeader("Location");null!=t?(n.url=lP(n.options.endpoint,t),"Created upload at ".concat(n.url),n._emitSuccess()):n._emitHttpError(l,e,"tus: invalid or missing Location header")}else n._emitHttpError(l,e,"tus: unexpected response while creating upload")}).catch(function(e){n._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 n=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 n._removeFromUrlStorage()}):Promise.resolve()}},{key:"_emitHttpError",value:function(e,t,n,r){this._emitError(new LS(n,r,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),iP(e,this._retryAttempt,this.options))){var n=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout(function(){t.start()},n))}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,n){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,n)}},{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 n,r=eP(this.options.metadata);""!==r&&t.setHeader("Upload-Metadata",r),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,n=this._addChunkToRequest(t)):n=this._sendRequest(t,null),n.then(function(n){if(tP(n.getStatus(),200)){var r=n.getHeader("Location");if(null!=r){if(e.url=lP(e.options.endpoint,r),"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,n):(e._offset=0,e._performUpload())})}else e._emitHttpError(t,n,"tus: invalid or missing Location header")}else e._emitHttpError(t,n,"tus: unexpected response while creating upload")}).catch(function(n){e._emitHttpError(t,null,"tus: failed to create upload",n)})}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(n){var r=n.getStatus();if(!tP(r,200))return 423===r?void e._emitHttpError(t,n,"tus: upload is currently locked; retry later"):(tP(r,400)&&e._removeFromUrlStorage(),e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,n,"tus: unable to resume upload (new upload cannot be created without an endpoint)"));var o=parseInt(n.getHeader("Upload-Offset"),10);if(Number.isNaN(o))e._emitHttpError(t,n,"tus: invalid or missing offset value");else{var i=parseInt(n.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,n,"tus: invalid or missing length value")}}).catch(function(n){e._emitHttpError(t,null,"tus: failed to resume upload",n)})}},{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(n){tP(n.getStatus(),200)?t._handleUploadResponse(e,n):t._emitHttpError(e,n,"tus: unexpected response while uploading chunk")}).catch(function(n){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),n)}))}},{key:"_addChunkToRequest",value:function(e){var t=this,n=this._offset,r=this._offset+this.options.chunkSize;return e.setProgressHandler(function(e){t._emitProgress(n+e,t._size)}),e.setHeader("Content-Type","application/offset+octet-stream"),(r===1/0||r>this._size)&&!this.options.uploadLengthDeferred&&(r=this._size),this._source.slice(n,r).then(function(n){var r=n.value,o=n.done,i=r&&r.size?r.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===r?t._sendRequest(e):(t._emitProgress(t._offset,t._size),t._sendRequest(e,r))})}},{key:"_handleUploadResponse",value:function(e,t){var n=parseInt(t.getHeader("Upload-Offset"),10);if(Number.isNaN(n))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(n,this._size),this._emitChunkComplete(n-this._offset,n,this._size),this._offset=n,n===this._size)return this._emitSuccess(),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var n=nP(e,t,this.options);return this._req=n,n}},{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 rP(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.options)}}],r=[{key:"terminate",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=nP("DELETE",t,n);return rP(r,null,n).then(function(e){if(204!==e.getStatus())throw new LS("tus: unexpected response while terminating upload",null,r,e)}).catch(function(o){if(o instanceof LS||(o=new LS("tus: failed to terminate upload",o,r,null)),!iP(o,0,n))throw o;var i=n.retryDelays[0],a=n.retryDelays.slice(1),l=GS(GS({},n),{},{retryDelays:a});return new Promise(function(e){return setTimeout(e,i)}).then(function(){return e.terminate(t,l)})})}}],n&&YS(t.prototype,n),r&&YS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function eP(e){return Object.entries(e).map(function(e){var t=VS(e,2),n=t[0],r=t[1];return"".concat(n," ").concat(mS(String(r)))}).join(",")}function tP(e,t){return e>=t&&e<t+100}function nP(e,t,n){var r=n.httpStack.createRequest(e,t);r.setHeader("Tus-Resumable","1.0.0");var o=n.headers||{};if(Object.entries(o).forEach(function(e){var t=VS(e,2),n=t[0],o=t[1];r.setHeader(n,o)}),n.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)});r.setHeader("X-Request-ID",i)}return r}function rP(e,t,n){return oP.apply(this,arguments)}function oP(){var e;return e=QS().mark(function e(t,n,r){var o;return QS().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof r.onBeforeRequest){e.next=3;break}return e.next=3,r.onBeforeRequest(t);case 3:return e.next=5,t.send(n);case 5:if(o=e.sent,"function"!=typeof r.onAfterResponse){e.next=9;break}return e.next=9,r.onAfterResponse(t,o);case 9:return e.abrupt("return",o);case 10:case"end":return e.stop()}},e)}),oP=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){WS(i,r,o,a,l,"next",e)}function l(e){WS(i,r,o,a,l,"throw",e)}a(void 0)})},oP.apply(this,arguments)}function iP(e,t,n){return!(null==n.retryDelays||t>=n.retryDelays.length||null==e.originalRequest)&&(n&&"function"==typeof n.onShouldRetry?n.onShouldRetry(e,t,n):aP(e))}function aP(e){var t,n=e.originalResponse?e.originalResponse.getStatus():0;return(!tP(n,400)||409===n||423===n)&&(t=!0,"undefined"!=typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(t=!1),t)}function lP(e,t){return new BS(t,e).toString()}function sP(e){return sP="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},sP(e)}function cP(e){var t=function(e){if("object"!==sP(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==sP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===sP(t)?t:String(t)}JS.defaultOptions=KS;var uP=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,(n=[{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)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cP(r.key),r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e;var t,n}();function dP(e){return dP="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},dP(e)}function fP(e){var t=function(e){if("object"!==dP(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==dP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===dP(t)?t:String(t)}var pP=!1;try{pP="localStorage"in window;var hP="tusSupport",mP=localStorage.getItem(hP);localStorage.setItem(hP,mP),null===mP&&localStorage.removeItem(hP)}catch(e){if(e.code!==e.SECURITY_ERR&&e.code!==e.QUOTA_EXCEEDED_ERR)throw e;pP=!1}var gP=pP,vP=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,(n=[{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 n=Math.round(1e12*Math.random()),r="tus::".concat(e,"::").concat(n);return localStorage.setItem(r,JSON.stringify(t)),Promise.resolve(r)}},{key:"_findEntries",value:function(e){for(var t=[],n=0;n<localStorage.length;n++){var r=localStorage.key(n);if(0===r.indexOf(e))try{var o=JSON.parse(localStorage.getItem(r));o.urlStorageKey=r,t.push(o)}catch(e){}}return t}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fP(r.key),r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e;var t,n}();function bP(e){return bP="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},bP(e)}function yP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AP(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wP(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wP(e){var t=function(e){if("object"!==bP(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==bP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===bP(t)?t:String(t)}var OP=function(){function e(){yP(this,e)}return AP(e,[{key:"createRequest",value:function(e,t){return new _P(e,t)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),_P=function(){function e(t,n){yP(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,n,!0),this._method=t,this._url=n,this._headers={}}return AP(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(n,r){e._xhr.onload=function(){n(new xP(e._xhr))},e._xhr.onerror=function(e){r(e)},e._xhr.send(t)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),xP=function(){function e(t){yP(this,e),this._xhr=t}return AP(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}(),CP=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()};function EP(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.responseType="blob",r.onload=function(){var e=r.response;t(e)},r.onerror=function(e){n(e)},r.open("GET",e),r.send()})}function kP(e){return kP="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},kP(e)}function SP(e){var t=function(e){if("object"!==kP(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==kP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===kP(t)?t:String(t)}var PP=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}return t=e,(n=[{key:"slice",value:function(e,t){if("undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova))return n=this._file.slice(e,t),new Promise(function(e,t){var r=new FileReader;r.onload=function(){var t=new Uint8Array(r.result);e({value:t})},r.onerror=function(e){t(e)},r.readAsArrayBuffer(n)});var n,r=this._file.slice(e,t),o=t>=this.size;return Promise.resolve({value:r,done:o})}},{key:"close",value:function(){}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SP(r.key),r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e;var t,n}();function DP(e){return DP="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},DP(e)}function MP(e){var t=function(e){if("object"!==DP(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==DP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===DP(t)?t:String(t)}function qP(e){return void 0===e?0:void 0!==e.size?e.size:e.length}var $P=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}return t=e,(n=[{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 n=this,r=t<=this._bufferOffset+qP(this._buffer);if(this._done||r){var o=this._getDataFromBuffer(e,t),i=null==o&&this._done;return Promise.resolve({value:o,done:i})}return this._reader.read().then(function(r){var o=r.value;return r.done?n._done=!0:void 0===n._buffer?n._buffer=o:n._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 n=new e.constructor(e.length+t.length);return n.set(e),n.set(t,e.length),n}throw new Error("Unknown data type")}(n._buffer,o),n._readUntilEnoughDataOrDone(e,t)})}},{key:"_getDataFromBuffer",value:function(e,t){e>this._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var n=0===qP(this._buffer);return this._done&&n?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,MP(r.key),r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e;var t,n}();function TP(e){return TP="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},TP(e)}function BP(){BP=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new D(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var A={};c(A,a,function(){return this});var w=Object.getPrototypeOf,O=w&&w(w(M([])));O&&O!==n&&r.call(O,a)&&(A=O);var _=y.prototype=v.prototype=Object.create(A);function x(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==TP(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){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(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=k(l,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function k(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(TP(t)+" is not iterable")}return b.prototype=y,o(_,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},x(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},x(_),c(_,s,"Generator"),c(_,a,function(){return this}),c(_,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=M,D.prototype={constructor:D,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(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function jP(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function FP(e){var t=function(e){if("object"!==TP(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==TP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===TP(t)?t:String(t)}var NP=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r,o;return r=e,o=[{key:"openFile",value:(t=BP().mark(function e(t,n){var r;return BP().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!CP()||!t||void 0===t.uri){e.next=11;break}return e.prev=1,e.next=4,EP(t.uri);case 4:return r=e.sent,e.abrupt("return",new PP(r));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 PP(t)));case 13:if("function"!=typeof t.read){e.next=18;break}if(n=Number(n),Number.isFinite(n)){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 $P(t,n)));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]])}),n=function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){jP(i,r,o,a,l,"next",e)}function l(e){jP(i,r,o,a,l,"throw",e)}a(void 0)})},function(e,t){return n.apply(this,arguments)})}],o&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,FP(r.key),r)}}(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),e}();function IP(e){return IP="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},IP(e)}function RP(e,t){return RP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RP(e,t)}function zP(e){return zP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zP(e)}function LP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function QP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LP(Object(n),!0).forEach(function(t){var r,o,i;r=e,o=t,i=n[t],(o=WP(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function WP(e){var t=function(e,t){if("object"!==IP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==IP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===IP(t)?t:String(t)}var VP=QP(QP({},JS.defaultOptions),{},{httpStack:new OP,fileReader:new NP,urlStorage:gP?new vP:new uP,fingerprint:function(e,t){return CP()?Promise.resolve(function(e,t){var n=e.exif?function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",n,t.endpoint].join("/")}(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}}),HP=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&&RP(e,t)}(a,e);var t,n,r,o,i=(t=a,n=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,r=zP(t);if(n){var o=zP(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===IP(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=QP(QP({},VP),t),i.call(this,e,t)}return r=a,o=[{key:"terminate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=QP(QP({},VP),t),JS.terminate(e,t)}}],o&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,WP(r.key),r)}}(r,o),Object.defineProperty(r,"prototype",{writable:!1}),a}(JS);function UP(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ZP=0;function GP(e){return"__private_"+ZP+++"_"+e}var YP=GP("uppy"),XP=GP("events");class KP{constructor(e){Object.defineProperty(this,YP,{writable:!0,value:void 0}),Object.defineProperty(this,XP,{writable:!0,value:[]}),UP(this,YP)[YP]=e}on(e,t){return UP(this,XP)[XP].push([e,t]),UP(this,YP)[YP].on(e,t)}remove(){for(const[e,t]of UP(this,XP)[XP].splice(0))UP(this,YP)[YP].off(e,t)}onFilePause(e,t){this.on("upload-pause",(n,r)=>{e===n&&t(r)})}onFileRemove(e,t){this.on("file-removed",n=>{e===n.id&&t(n.id)})}onPause(e,t){this.on("upload-pause",(n,r)=>{e===n&&t(r)})}onRetry(e,t){this.on("upload-retry",n=>{e===n&&t()})}onRetryAll(e,t){this.on("retry-all",()=>{UP(this,YP)[YP].getFile(e)&&t()})}onPauseAll(e,t){this.on("pause-all",()=>{UP(this,YP)[YP].getFile(e)&&t()})}onCancelAll(e,t){var n=this;this.on("cancel-all",function(){UP(n,YP)[YP].getFile(e)&&t(...arguments)})}onResumeAll(e,t){this.on("resume-all",()=>{UP(this,YP)[YP].getFile(e)&&t()})}}class JP 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 eD(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var tD=0;function nD(e){return"__private_"+tD+++"_"+e}function rD(e){if(null!=e){var t;const n=()=>this.abort(e.reason);e.addEventListener("abort",n,{once:!0});const r=()=>{e.removeEventListener("abort",n)};null==(t=this.then)||t.call(this,r,r)}return this}var oD=nD("activeRequests"),iD=nD("queuedHandlers"),aD=nD("paused"),lD=nD("pauseTimer"),sD=nD("downLimit"),cD=nD("upperLimit"),uD=nD("rateLimitingTimer"),dD=nD("call"),fD=nD("queueNext"),pD=nD("next"),hD=nD("queue"),mD=nD("dequeue"),gD=nD("resume"),vD=nD("increaseLimit");class bD{constructor(e){Object.defineProperty(this,mD,{value:_D}),Object.defineProperty(this,hD,{value:OD}),Object.defineProperty(this,pD,{value:wD}),Object.defineProperty(this,fD,{value:AD}),Object.defineProperty(this,dD,{value:yD}),Object.defineProperty(this,oD,{writable:!0,value:0}),Object.defineProperty(this,iD,{writable:!0,value:[]}),Object.defineProperty(this,aD,{writable:!0,value:!1}),Object.defineProperty(this,lD,{writable:!0,value:void 0}),Object.defineProperty(this,sD,{writable:!0,value:1}),Object.defineProperty(this,cD,{writable:!0,value:void 0}),Object.defineProperty(this,uD,{writable:!0,value:void 0}),Object.defineProperty(this,gD,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,vD,{writable:!0,value:()=>{if(eD(this,aD)[aD])eD(this,uD)[uD]=setTimeout(eD(this,vD)[vD],0);else{eD(this,sD)[sD]=this.limit,this.limit=Math.ceil((eD(this,cD)[cD]+eD(this,sD)[sD])/2);for(let e=eD(this,sD)[sD];e<=this.limit;e++)eD(this,fD)[fD]();eD(this,cD)[cD]-eD(this,sD)[sD]>3?eD(this,uD)[uD]=setTimeout(eD(this,vD)[vD],2e3):eD(this,sD)[sD]=Math.floor(eD(this,sD)[sD]/2)}}}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return!eD(this,aD)[aD]&&eD(this,oD)[oD]<this.limit?eD(this,dD)[dD](e):eD(this,hD)[hD](e,t)}wrapSyncFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];const a=n.run(()=>(e(...o),queueMicrotask(()=>a.done()),()=>{}),t);return{abortOn:rD,abort(){a.abort()}}}}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const l=new Promise((r,i)=>{a=n.run(()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(e){n=Promise.reject(e)}return n.then(e=>{t?i(t):(a.done(),r(e))},e=>{t?i(t):(a.done(),i(e))}),e=>{t=function(e){return new Error("Cancelled",{cause:e})}(e)}},t)});return l.abort=e=>{a.abort(e)},l.abortOn=rD,l}}resume(){eD(this,aD)[aD]=!1,clearTimeout(eD(this,lD)[lD]);for(let e=0;e<this.limit;e++)eD(this,fD)[fD]()}pause(e){void 0===e&&(e=null),eD(this,aD)[aD]=!0,clearTimeout(eD(this,lD)[lD]),null!=e&&(eD(this,lD)[lD]=setTimeout(eD(this,gD)[gD],e))}rateLimit(e){clearTimeout(eD(this,uD)[uD]),this.pause(e),this.limit>1&&Number.isFinite(this.limit)&&(eD(this,cD)[cD]=this.limit-1,this.limit=eD(this,sD)[sD],eD(this,uD)[uD]=setTimeout(eD(this,vD)[vD],e))}get isPaused(){return eD(this,aD)[aD]}}function yD(e){eD(this,oD)[oD]+=1;let t,n=!1;try{t=e()}catch(e){throw eD(this,oD)[oD]-=1,e}return{abort:e=>{n||(n=!0,eD(this,oD)[oD]-=1,null==t||t(e),eD(this,fD)[fD]())},done:()=>{n||(n=!0,eD(this,oD)[oD]-=1,eD(this,fD)[fD]())}}}function AD(){queueMicrotask(()=>eD(this,pD)[pD]())}function wD(){if(eD(this,aD)[aD]||eD(this,oD)[oD]>=this.limit)return;if(0===eD(this,iD)[iD].length)return;const e=eD(this,iD)[iD].shift();if(null==e)throw new Error("Invariant violation: next is null");const t=eD(this,dD)[dD](e.fn);e.abort=t.abort,e.done=t.done}function OD(e,t){const n={fn:e,priority:(null==t?void 0:t.priority)||0,abort:()=>{eD(this,mD)[mD](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=eD(this,iD)[iD].findIndex(e=>n.priority>e.priority);return-1===r?eD(this,iD)[iD].push(n):eD(this,iD)[iD].splice(r,0,n),n}function _D(e){const t=eD(this,iD)[iD].indexOf(e);-1!==t&&eD(this,iD)[iD].splice(t,1)}function xD(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function CD(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ED=0;function kD(e){return"__private_"+ED+++"_"+e}const SD={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},PD={limit:20,retryDelays:SD.retryDelays,withCredentials:!1};var DD=kD("retryDelayIterator"),MD=kD("uploadLocalFile"),qD=kD("getCompanionClientArgs"),$D=kD("uploadFiles"),TD=kD("handleUpload");class BD extends Jk{constructor(e,t){var n,r;if(super(e,{...PD,...t}),Object.defineProperty(this,$D,{value:ND}),Object.defineProperty(this,qD,{value:FD}),Object.defineProperty(this,MD,{value:jD}),Object.defineProperty(this,DD,{writable:!0,value:void 0}),Object.defineProperty(this,TD,{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 CD(this,$D)[$D](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!=(n=this.opts.rateLimitedQueue)?n:new bD(this.opts.limit),CD(this,DD)[DD]=null==(r=this.opts.retryDelays)?void 0:r.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 n;if(null!=(n=e[t])&&null!=(n=n.tus)&&n.uploadUrl){const n={...e[t].tus};delete n.uploadUrl,e[t]={...e[t],tus:n}}}),this.uppy.setState({files:e})}resetUploaderReferences(e,t){const n=this.uploaders[e];n&&(n.abort(),null!=t&&t.abort&&n.abort(!0),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null)}onReceiveUploadUrl(e,t){const n=this.uppy.getFile(e.id);n&&(n.tus&&n.tus.uploadUrl===t||(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(n.id,{tus:{...n.tus,uploadUrl:t}})))}install(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!0}}),this.uppy.addUploader(CD(this,TD)[TD]),this.uppy.on("reset-progress",this.handleResetProgress)}uninstall(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!1}}),this.uppy.removeUploader(CD(this,TD)[TD])}}function jD(e){var t=this;return this.resetUploaderReferences(e.id),new Promise((n,r)=>{let o,i,a;const l={...this.opts,...e.tus||{}};"function"==typeof l.headers&&(l.headers=l.headers(e));const{onShouldRetry:s,onBeforeRequest:c,...u}=l,d={...SD,...u};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 VP.fingerprint(e,t);const n=["tus",f.id,t.endpoint].join("-");return Promise.resolve(n)}),d.onBeforeRequest=async t=>{let n;if(t.getUnderlyingObject().withCredentials=!!l.withCredentials,"function"==typeof c&&(n=c(t,e)),xD(o,"shouldBeRequeued")){if(!o.shouldBeRequeued)return Promise.reject();let t;const r=new Promise(e=>{t=e});return o=this.requests.run(()=>(e.isPaused&&o.abort(),t(),()=>{})),void await Promise.all([r,n])}return n},d.onError=t=>{var n;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 JP(t,i)),this.resetUploaderReferences(e.id),null==(n=o)||n.abort(),this.uppy.emit("upload-error",e,t),"function"==typeof l.onError&&l.onError(t),r(t)},d.onProgress=(t,n)=>{this.onReceiveUploadUrl(e,a.url),"function"==typeof l.onProgress&&l.onProgress(t,n),this.uppy.emit("upload-progress",this.uppy.getFile(e.id),{uploader:this,bytesUploaded:t,bytesTotal:n})},d.onSuccess=()=>{var t;const r={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),r),a.url){const{name:e}=a.file;this.uppy.log(`Download ${e} from ${a.url}`)}"function"==typeof l.onSuccess&&l.onSuccess(),n(a)};const p=e=>{var t;const n=null==e||null==(t=e.originalResponse)?void 0:t.getStatus();if(429===n){if(!this.requests.isPaused){var r;const e=null==(r=CD(this,DD)[DD])?void 0:r.next();if(null==e||e.done)return!1;this.requests.rateLimit(e.value)}}else{if(null!=n&&n>400&&n<500&&409!==n&&423!==n)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!=s?(e,t)=>s(e,t,l,p):p;const h=(e,t,n)=>{xD(e,t)&&!xD(e,n)&&(e[n]=e[t])},m={};(Array.isArray(l.allowedMetaFields)?l.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 HP(e.data,d),this.uploaders[e.id]=a;const g=new KP(this.uppy);this.uploaderEvents[e.id]=g,i=()=>(e.isPaused||a.start(),()=>{}),a.findPreviousUploads().then(t=>{const n=t[0];n&&(this.uppy.log(`[Tus] Resuming upload of ${e.id} started at ${n.creationTime}`),a.resumeFromPreviousUpload(n))}),o=this.requests.run(i),g.onFileRemove(e.id,t=>{o.abort(),this.resetUploaderReferences(e.id,{abort:!!a.url}),n(`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(r){let{reason:i}=void 0===r?{}:r;"user"===i&&(o.abort(),t.resetUploaderReferences(e.id,{abort:!!a.url})),n(`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 FD(e){var t;const n={...this.opts};return e.tus&&Object.assign(n,e.tus),{...null==(t=e.remote)?void 0:t.body,endpoint:n.endpoint,uploadUrl:n.uploadUrl,protocol:"tus",size:e.data.size,headers:n.headers,metadata:e.meta}}async function ND(e){const t=function(e){return e.filter(e=>!(e=>"error"in e&&!!e.error)(e))}(e),n=function(e){return e.filter(e=>{var t;return!(null!=(t=e.progress)&&t.uploadStarted&&e.isRestored)})}(t);this.uppy.emit("upload-start",n),await Promise.allSettled(t.map(e=>{if(e.isRemote){const t=()=>this.requests,n=new AbortController,r=t=>{t.id===e.id&&n.abort()};this.uppy.on("file-removed",r);const o=this.uppy.getRequestClientForFile(e).uploadRemoteFile(e,CD(this,qD)[qD](e),{signal:n.signal,getQueue:t});return this.requests.wrapSyncFunction(()=>{this.uppy.off("file-removed",r)},{priority:-1})(),o}return CD(this,MD)[MD](e)}))}BD.VERSION="3.5.4";const ID=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],RD=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],zD=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],LD=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],QD=(e,t,n)=>{let r=e;return"string"==typeof t||Array.isArray(t)?r=e.toLocaleString(t,n):!0!==t&&void 0===n||(r=e.toLocaleString(void 0,n)),r};function WD(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const n=(t={bits:!1,binary:!1,space:!0,...t}).bits?t.binary?LD:zD:t.binary?RD:ID,r=t.space?" ":"";if(t.signed&&0===e)return` 0${r}${n[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+QD(e,t.locale,a)+r+n[0];const l=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);return e/=(t.binary?1024:1e3)**l,a||(e=e.toPrecision(3)),i+QD(Number(e),t.locale,a)+r+n[l]}var VD=(void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}).performance||{};VD.now||VD.mozNow||VD.msNow||VD.oNow||VD.webkitNow;var HD,UD,ZD={env:{}},GD={exports:{}},YD={},XD={};"production"===ZD.env.NODE_ENV?GD.exports=function(){if(HD)return YD;HD=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case s:case c:case f:return p;default:switch(p=p&&p.$$typeof){case a:case l:case d:case u:case i:return p;default:return h}}case t:return h}}}return YD.ContextConsumer=i,YD.ContextProvider=a,YD.Element=e,YD.ForwardRef=l,YD.Fragment=n,YD.Lazy=d,YD.Memo=u,YD.Portal=t,YD.Profiler=o,YD.StrictMode=r,YD.Suspense=s,YD.SuspenseList=c,YD.isContextConsumer=function(e){return h(e)===i},YD.isContextProvider=function(e){return h(e)===a},YD.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},YD.isForwardRef=function(e){return h(e)===l},YD.isFragment=function(e){return h(e)===n},YD.isLazy=function(e){return h(e)===d},YD.isMemo=function(e){return h(e)===u},YD.isPortal=function(e){return h(e)===t},YD.isProfiler=function(e){return h(e)===o},YD.isStrictMode=function(e){return h(e)===r},YD.isSuspense=function(e){return h(e)===s},YD.isSuspenseList=function(e){return h(e)===c},YD.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===s||e===c||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===l||e.$$typeof===p||void 0!==e.getModuleId)},YD.typeOf=h,YD}():GD.exports=(UD||(UD=1,"production"!==ZD.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case c:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case s:case f:case d:case a:return e;default:return h}}case n:return h}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");XD.ContextConsumer=a,XD.ContextProvider=l,XD.Element=t,XD.ForwardRef=s,XD.Fragment=r,XD.Lazy=f,XD.Memo=d,XD.Portal=n,XD.Profiler=i,XD.StrictMode=o,XD.Suspense=c,XD.SuspenseList=u,XD.isContextConsumer=function(t){return e(t)===a},XD.isContextProvider=function(t){return e(t)===l},XD.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},XD.isForwardRef=function(t){return e(t)===s},XD.isFragment=function(t){return e(t)===r},XD.isLazy=function(t){return e(t)===f},XD.isMemo=function(t){return e(t)===d},XD.isPortal=function(t){return e(t)===n},XD.isProfiler=function(t){return e(t)===i},XD.isStrictMode=function(t){return e(t)===o},XD.isSuspense=function(t){return e(t)===c},XD.isSuspenseList=function(t){return e(t)===u},XD.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===o||e===c||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===l||e.$$typeof===a||e.$$typeof===s||e.$$typeof===h||void 0!==e.getModuleId)},XD.typeOf=e}()),XD);var KD=GD.exports;function JD(e){function t(e,r,s,c,f){for(var p,h,m,g,A,O=0,_=0,x=0,C=0,E=0,q=0,T=m=p=0,j=0,F=0,N=0,I=0,R=s.length,z=R-1,L="",Q="",W="",V="";j<R;){if(h=s.charCodeAt(j),j===z&&0!==_+C+x+O&&(0!==_&&(h=47===_?10:47),C=x=O=0,R++,z++),0===_+C+x+O){if(j===z&&(0<F&&(L=L.replace(d,"")),0<L.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:L+=s.charAt(j)}h=59}switch(h){case 123:for(p=(L=L.trim()).charCodeAt(0),m=1,I=++j;j<R;){switch(h=s.charCodeAt(j)){case 123:m++;break;case 125:m--;break;case 47:switch(h=s.charCodeAt(j+1)){case 42:case 47:e:{for(T=j+1;T<z;++T)switch(s.charCodeAt(T)){case 47:if(42===h&&42===s.charCodeAt(T-1)&&j+2!==T){j=T+1;break e}break;case 10:if(47===h){j=T+1;break e}}j=T}}break;case 91:h++;case 40:h++;case 34:case 39:for(;j++<z&&s.charCodeAt(j)!==h;);}if(0===m)break;j++}if(m=s.substring(I,j),0===p&&(p=(L=L.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<F&&(L=L.replace(d,"")),h=L.charCodeAt(1)){case 100:case 109:case 115:case 45:F=r;break;default:F=M}if(I=(m=t(r,F,m,h,f+1)).length,0<$&&(A=l(3,m,F=n(M,L,N),r,S,k,I,h,f,c),L=F.join(""),void 0!==A&&0===(I=(m=A.trim()).length)&&(h=0,m="")),0<I)switch(h){case 115:L=L.replace(w,a);case 100:case 109:case 45:m=L+"{"+m+"}";break;case 107:m=(L=L.replace(v,"$1 $2"))+"{"+m+"}",m=1===D||2===D&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=L+m,112===c&&(Q+=m,m="")}else m=""}else m=t(r,n(r,L,N),m,c,f+1);W+=m,m=N=F=T=p=0,L="",h=s.charCodeAt(++j);break;case 125:case 59:if(1<(I=(L=(0<F?L.replace(d,""):L).trim()).length))switch(0===T&&(p=L.charCodeAt(0),45===p||96<p&&123>p)&&(I=(L=L.replace(" ",":")).length),0<$&&void 0!==(A=l(1,L,r,e,S,k,Q.length,c,f,c))&&0===(I=(L=A.trim()).length)&&(L="\0\0"),p=L.charCodeAt(0),h=L.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){V+=L+s.charAt(j);break}default:58!==L.charCodeAt(I-1)&&(Q+=o(L,p,h,L.charCodeAt(2)))}N=F=T=p=0,L="",h=s.charCodeAt(++j)}}switch(h){case 13:case 10:47===_?_=0:0===1+p&&107!==c&&0<L.length&&(F=1,L+="\0"),0<$*B&&l(0,L,r,e,S,k,Q.length,c,f,c),k=1,S++;break;case 59:case 125:if(0===_+C+x+O){k++;break}default:switch(k++,g=s.charAt(j),h){case 9:case 32:if(0===C+O+_)switch(E){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===C+_+O&&(F=N=1,g="\f"+g);break;case 108:if(0===C+_+O+P&&0<T)switch(j-T){case 2:112===E&&58===s.charCodeAt(j-3)&&(P=E);case 8:111===q&&(P=q)}break;case 58:0===C+_+O&&(T=j);break;case 44:0===_+x+C+O&&(F=1,g+="\r");break;case 34:case 39:0===_&&(C=C===h?0:0===C?h:C);break;case 91:0===C+_+x&&O++;break;case 93:0===C+_+x&&O--;break;case 41:0===C+_+O&&x--;break;case 40:0===C+_+O&&(0===p&&(2*E+3*q==533||(p=1)),x++);break;case 64:0===_+x+C+O+T+m&&(m=1);break;case 42:case 47:if(!(0<C+O+x))switch(_){case 0:switch(2*h+3*s.charCodeAt(j+1)){case 235:_=47;break;case 220:I=j,_=42}break;case 42:47===h&&42===E&&I+2!==j&&(33===s.charCodeAt(I+2)&&(Q+=s.substring(I,j+1)),g="",_=0)}}0===_&&(L+=g)}q=E,E=h,j++}if(0<(I=Q.length)){if(F=r,0<$&&void 0!==(A=l(2,Q,F,e,S,k,I,c,f,c))&&0===(Q=A).length)return V+Q+W;if(Q=F.join(",")+"{"+Q+"}",0!==D*P){switch(2!==D||i(Q,2)||(P=0),P){case 111:Q=Q.replace(y,":-moz-$1")+Q;break;case 112:Q=Q.replace(b,"::-webkit-input-$1")+Q.replace(b,"::-moz-$1")+Q.replace(b,":-ms-input-$1")+Q}P=0}}return V+Q+W}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var l=0;for(e=0===a?"":e[0]+" ";l<i;++l)t[l]=r(e,t[l],n).trim();break;default:var s=l=0;for(t=[];l<i;++l)for(var c=0;c<a;++c)t[s++]=r(e[c]+" ",o[l],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",l=2*t+3*n+4*r;if(944===l){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===D||2===D&&i(s,1)?"-webkit-"+s+s:s}if(0===D||2===D&&!i(a,1))return a;switch(l){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(E,"$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"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(A,"tb");break;case 232:s=a.replace(A,"tb-rl");break;case 220:s=a.replace(A,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,l=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(_,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(_,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&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 n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),T(2!==t?r:r.replace(x,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function l(e,t,n,r,o,i,a,l,s,u){for(var d,f=0,p=t;f<$;++f)switch(d=q[f].call(c,e,p,n,r,o,i,a,l,s,u)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?D=1:(D=2,T=e):D=0),s}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<$){var o=l(-1,n,r,r,S,k,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(M,r,n,0,0);return 0<$&&void 0!==(o=l(-2,i,r,r,S,k,i.length,0,0,0))&&(i=o),P=0,k=S=1,i}var u=/^\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*/,b=/::(place)/g,y=/:(read-only)/g,A=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,_=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,k=1,S=1,P=0,D=1,M=[],q=[],$=0,T=null,B=0;return c.use=function e(t){switch(t){case void 0:case null:$=q.length=0;break;default:if("function"==typeof t)q[$++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else B=0|!!t}return e},c.set=s,void 0!==e&&s(e),c}var eM={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 tM(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var nM,rM,oM=/^((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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,iM=tM(function(e){return oM.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),aM={exports:{}},lM={},sM={};"production"===ZD.env.NODE_ENV?aM.exports=function(){if(nM)return lM;nM=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=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,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=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,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case s:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case h:case p:case a:return e;default:return f}}case n:return f}}}function A(e){return y(e)===c}return lM.AsyncMode=s,lM.ConcurrentMode=c,lM.ContextConsumer=l,lM.ContextProvider=a,lM.Element=t,lM.ForwardRef=u,lM.Fragment=r,lM.Lazy=h,lM.Memo=p,lM.Portal=n,lM.Profiler=i,lM.StrictMode=o,lM.Suspense=d,lM.isAsyncMode=function(e){return A(e)||y(e)===s},lM.isConcurrentMode=A,lM.isContextConsumer=function(e){return y(e)===l},lM.isContextProvider=function(e){return y(e)===a},lM.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},lM.isForwardRef=function(e){return y(e)===u},lM.isFragment=function(e){return y(e)===r},lM.isLazy=function(e){return y(e)===h},lM.isMemo=function(e){return y(e)===p},lM.isPortal=function(e){return y(e)===n},lM.isProfiler=function(e){return y(e)===i},lM.isStrictMode=function(e){return y(e)===o},lM.isSuspense=function(e){return y(e)===d},lM.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},lM.typeOf=y,lM}():aM.exports=(rM||(rM=1,"production"!==ZD.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=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,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=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,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case s:case c:case r:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case l:case u:case h:case p:case a:return g;default:return f}}case n:return f}}}var A=s,w=c,O=l,_=a,x=t,C=u,E=r,k=h,S=p,P=n,D=i,M=o,q=d,$=!1;function T(e){return y(e)===c}sM.AsyncMode=A,sM.ConcurrentMode=w,sM.ContextConsumer=O,sM.ContextProvider=_,sM.Element=x,sM.ForwardRef=C,sM.Fragment=E,sM.Lazy=k,sM.Memo=S,sM.Portal=P,sM.Profiler=D,sM.StrictMode=M,sM.Suspense=q,sM.isAsyncMode=function(e){return $||($=!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.")),T(e)||y(e)===s},sM.isConcurrentMode=T,sM.isContextConsumer=function(e){return y(e)===l},sM.isContextProvider=function(e){return y(e)===a},sM.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},sM.isForwardRef=function(e){return y(e)===u},sM.isFragment=function(e){return y(e)===r},sM.isLazy=function(e){return y(e)===h},sM.isMemo=function(e){return y(e)===p},sM.isPortal=function(e){return y(e)===n},sM.isProfiler=function(e){return y(e)===i},sM.isStrictMode=function(e){return y(e)===o},sM.isSuspense=function(e){return y(e)===d},sM.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},sM.typeOf=y}()),sM);var cM=aM.exports,uM={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},dM={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fM={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pM={};function hM(e){return cM.isMemo(e)?fM:pM[e.$$typeof]||uM}pM[cM.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pM[cM.Memo]=fM;var mM=Object.defineProperty,gM=Object.getOwnPropertyNames,vM=Object.getOwnPropertySymbols,bM=Object.getOwnPropertyDescriptor,yM=Object.getPrototypeOf,AM=Object.prototype,wM=Mx(function e(t,n,r){if("string"!=typeof n){if(AM){var o=yM(n);o&&o!==AM&&e(t,o,r)}var i=gM(n);vM&&(i=i.concat(vM(n)));for(var a=hM(t),l=hM(n),s=0;s<i.length;++s){var c=i[s];if(!(dM[c]||r&&r[c]||l&&l[c]||a&&a[c])){var u=bM(n,c);try{mM(t,c,u)}catch(e){}}}}return t});function OM(){return(OM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var _M=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},xM=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!KD.typeOf(e)},CM=Object.freeze([]),EM=Object.freeze({});function kM(e){return"function"==typeof e}function SM(e){return"production"!==ZD.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function PM(e){return e&&"string"==typeof e.styledComponentId}var DM=void 0!==ZD.env&&(ZD.env.REACT_APP_SC_ATTR||ZD.env.SC_ATTR)||"data-styled",MM="undefined"!=typeof window&&"HTMLElement"in window,qM=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==ZD.env&&(void 0!==ZD.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==ZD.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==ZD.env.REACT_APP_SC_DISABLE_SPEEDY&&ZD.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==ZD.env.SC_DISABLE_SPEEDY&&""!==ZD.env.SC_DISABLE_SPEEDY?"false"!==ZD.env.SC_DISABLE_SPEEDY&&ZD.env.SC_DISABLE_SPEEDY:"production"!==ZD.env.NODE_ENV)),$M="production"!==ZD.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 TM(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(t){e=e.replace(/%[a-z]/,t)}),e}function BM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw"production"===ZD.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(TM.apply(void 0,[$M[e]].concat(n)).trim())}var jM=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,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&BM(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=0,s=t.length;l<s;l++)this.tag.insertRule(a,t[l])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),FM=new Map,NM=new Map,IM=1,RM=function(e){if(FM.has(e))return FM.get(e);for(;NM.has(IM);)IM++;var t=IM++;return"production"!==ZD.env.NODE_ENV&&((0|t)<0||t>1<<30)&&BM(16,""+t),FM.set(e,t),NM.set(t,e),t},zM=function(e){return NM.get(e)},LM=function(e,t){t>=IM&&(IM=t+1),FM.set(e,t),NM.set(t,e)},QM="style["+DM+'][data-styled-version="5.3.10"]',WM=new RegExp("^"+DM+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),VM=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},HM=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var l=a.match(WM);if(l){var s=0|parseInt(l[1],10),c=l[2];0!==s&&(LM(c,s),VM(e,c,l[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(a)}}},UM=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(DM))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(DM,"active"),r.setAttribute("data-styled-version","5.3.10");var a=__webpack_require__.nc;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},ZM=function(){function e(e){var t=this.element=UM(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}BM(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}(),GM=function(){function e(e){var t=this.element=UM(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 n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||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}(),YM=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}(),XM=MM,KM={isServer:!MM,useCSSOMInjection:!qM},JM=function(){function e(e,t,n){void 0===e&&(e=EM),void 0===t&&(t={}),this.options=OM({},KM,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&MM&&XM&&(XM=!1,function(e){for(var t=document.querySelectorAll(QM),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(DM)&&(HM(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return RM(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(OM({},this.options,{},t),this.gs,n&&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=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new YM(o):r?new ZM(o):new GM(o),new jM(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(RM(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(RM(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(RM(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=zM(o);if(void 0!==i){var a=e.names.get(i),l=t.getGroup(o);if(a&&l&&a.size){var s=DM+".g"+o+'[id="'+i+'"]',c="";void 0!==a&&a.forEach(function(e){e.length>0&&(c+=e+",")}),r+=""+l+s+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),eq=/(a)(d)/gi,tq=function(e){return String.fromCharCode(e+(e>25?39:97))};function nq(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=tq(t%52)+n;return(tq(t%52)+n).replace(eq,"$1-$2")}var rq=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},oq=function(e){return rq(5381,e)},iq=oq("5.3.10"),aq=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===ZD.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(kM(n)&&!PM(n))return!1}return!0}(e),this.componentId=t,this.baseHash=rq(iq,t),this.baseStyle=n,JM.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=Aq(this.rules,e,t,n).join(""),a=nq(rq(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var l=n(i,"."+a,void 0,r);t.insertRules(r,a,l)}o.push(a),this.staticRulesId=a}else{for(var s=this.rules.length,c=rq(this.baseHash,n.hash),u="",d=0;d<s;d++){var f=this.rules[d];if("string"==typeof f)u+=f,"production"!==ZD.env.NODE_ENV&&(c=rq(c,f+d));else if(f){var p=Aq(f,e,t,n),h=Array.isArray(p)?p.join(""):p;c=rq(c,h+d),u+=h}}if(u){var m=nq(c>>>0);if(!t.hasNameForId(r,m)){var g=n(u,"."+m,void 0,r);t.insertRules(r,m,g)}o.push(m)}}return o.join(" ")},e}(),lq=/^\s*\/\/.*$/gm,sq=[":","[",".","#"],cq=ra()().createContext();cq.Consumer;var uq=ra()().createContext(),dq=(uq.Consumer,new JM),fq=function(){var e,t,n,r,o=EM,i=o.options,a=void 0===i?EM:i,l=o.plugins,s=void 0===l?CM:l,c=new JD(a),u=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,l,s,c,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){u.push(e)}),f=function(n,o,i){return 0===o&&-1!==sq.indexOf(i[t.length])||i.match(r)?n:"."+e};function p(o,i,a,l){void 0===l&&(l="&");var s=o.replace(lq,""),u=i&&a?a+" "+i+" { "+s+" }":s;return e=l,t=i,n=new RegExp("\\"+t+"\\b","g"),r=new RegExp("(\\"+t+"\\b){2,}"),c(a||!i?"":i,u)}return c.use([].concat(s,[function(e,r,o){2===e&&o.length&&o[0].lastIndexOf(t)>0&&(o[0]=o[0].replace(n,f))},d,function(e){if(-2===e){var t=u;return u=[],t}}])),p.hash=s.length?s.reduce(function(e,t){return t.name||BM(15),rq(e,t.name)},5381).toString():"",p}(),pq=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=fq);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return BM(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=fq),this.name+e.hash},e}(),hq=/([A-Z])/,mq=/([A-Z])/g,gq=/^ms-/,vq=function(e){return"-"+e.toLowerCase()};function bq(e){return hq.test(e)?e.replace(mq,vq).replace(gq,"-ms-"):e}var yq=function(e){return null==e||!1===e||""===e};function Aq(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a<l;a+=1)""!==(o=Aq(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}if(yq(e))return"";if(PM(e))return"."+e.styledComponentId;if(kM(e)){if("function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t)return e;var s=e(t);return"production"!==ZD.env.NODE_ENV&&KD.isElement(s)&&console.warn(SM(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."),Aq(s,t,n,r)}var c;return e instanceof pq?n?(e.inject(n,r),e.getName(r)):e:xM(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!yq(t[a])&&(Array.isArray(t[a])&&t[a].isCss||kM(t[a])?i.push(bq(a)+":",t[a],";"):xM(t[a])?i.push.apply(i,e(t[a],a)):i.push(bq(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in eM||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString()}var wq=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Oq(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return kM(e)||xM(e)?wq(Aq(_M(CM,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:wq(Aq(_M(e,n)))}var _q=/invalid hook call/i,xq=new Set,Cq=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Eq=/(^-|-$)/g;function kq(e){return e.replace(Cq,"-").replace(Eq,"")}function Sq(e){return"string"==typeof e&&("production"===ZD.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Pq=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Dq=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Mq(e,t,n){var r=e[n];Pq(t)&&Pq(r)?qq(r,t):e[n]=t}function qq(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Pq(a))for(var l in a)Dq(l)&&Mq(e,a[l],l)}return e}var $q=ra()().createContext();$q.Consumer;var Tq={};function Bq(e,t,n){var r=PM(e),o=!Sq(e),i=t.attrs,a=void 0===i?CM:i,l=t.componentId,s=void 0===l?function(e,t){var n="string"!=typeof e?"sc":kq(e);Tq[n]=(Tq[n]||0)+1;var r=n+"-"+function(e){return nq(oq(e)>>>0)}("5.3.10"+n+Tq[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,c=t.displayName,u=void 0===c?function(e){return Sq(e)?"styled."+e:"Styled("+SM(e)+")"}(e):c,d=t.displayName&&t.componentId?kq(t.displayName)+"-"+t.componentId:t.componentId||s,f=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,p=t.shouldForwardProp;r&&e.shouldForwardProp&&(p=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var h,m=new aq(n,d,r?e.componentStyle:void 0),g=m.isStatic&&0===a.length,v=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,l=e.foldedComponentIds,s=e.shouldForwardProp,c=e.styledComponentId,u=e.target;"production"!==ZD.env.NODE_ENV&&(0,le().useDebugValue)(c);var d=function(e,t,n){void 0===e&&(e=EM);var r=OM({},t,{theme:e}),o={};return n.forEach(function(e){var t,n,i,a=e;for(t in kM(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]}),[r,o]}(function(e,t,n){return void 0===n&&(n=EM),e.theme!==n.theme&&e.theme||t||n.theme}(t,(0,le().useContext)($q),a)||EM,t,o),f=d[0],p=d[1],h=function(e,t,n,r){var o=(0,le().useContext)(cq)||dq,i=(0,le().useContext)(uq)||fq,a=t?e.generateAndInjectStyles(EM,o,i):e.generateAndInjectStyles(n,o,i);return"production"!==ZD.env.NODE_ENV&&(0,le().useDebugValue)(a),"production"!==ZD.env.NODE_ENV&&!t&&r&&r(a),a}(i,r,f,"production"!==ZD.env.NODE_ENV?e.warnTooManyClasses:void 0),m=n,g=p.$as||t.$as||p.as||t.as||u,v=Sq(g),b=p!==t?OM({},t,{},p):t,y={};for(var A in b)"$"!==A[0]&&"as"!==A&&("forwardedAs"===A?y.as=b[A]:(s?s(A,iM,g):!v||iM(A))&&(y[A]=b[A]));return t.style&&p.style!==t.style&&(y.style=OM({},t.style,{},p.style)),y.className=Array.prototype.concat(l,c,h!==c?h:null,t.className,p.className).filter(Boolean).join(" "),y.ref=m,(0,le().createElement)(g,y)}(h,e,t,g)};return v.displayName=u,(h=ra()().forwardRef(v)).attrs=f,h.componentStyle=m,h.displayName=u,h.shouldForwardProp=p,h.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):CM,h.styledComponentId=d,h.target=r?e.target:e,h.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(Sq(e)?e:kq(SM(e)));return Bq(e,OM({},o,{attrs:f,componentId:i}),n)},Object.defineProperty(h,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?qq({},e.defaultProps,t):t}}),"production"!==ZD.env.NODE_ENV&&(function(e,t){if("production"!==ZD.env.NODE_ENV){var n="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.",r=console.error;try{var o=!0;console.error=function(e){if(_q.test(e))o=!1,xq.delete(n);else{for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];r.apply(void 0,[e].concat(i))}},(0,le().useRef)(),o&&!xq.has(n)&&(console.warn(n),xq.add(n))}catch(e){_q.test(e.message)&&xq.delete(n)}finally{console.error=r}}}(u,d),h.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).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 />"),r=!0,n={}}}}(u,d)),Object.defineProperty(h,"toString",{value:function(){return"."+h.styledComponentId}}),o&&wM(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),h}var jq=function(e){return function e(t,n,r){if(void 0===r&&(r=EM),!KD.isValidElementType(n))return BM(1,String(n));var o=function(){return t(n,r,Oq.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,OM({},r,{},o))},o.attrs=function(o){return e(t,n,OM({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(Bq,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){jq[e]=jq(e)}),"production"!==ZD.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"!==ZD.env.NODE_ENV&&"test"!==ZD.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);const Fq=Oq`
|
|
125
|
+
`:null,Ch=ap("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Uf(n.color)}`]]}})(sp(({theme:e})=>{const t=xp(e,{animation:"none"});return{display:"inline-block",variants:[{props:{variant:"determinate"},style:{...Cp(e,"transform")}},{props:{variant:"indeterminate"},style:_h||{animation:`${wh} 1.4s linear infinite`}},...t?[{props:{variant:"indeterminate"},style:t}]:[],...Object.entries(e.palette).filter(bh()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}})),Eh=ap("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),kh=ap("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,n.disableShrink&&t.circleDisableShrink]}})(sp(({theme:e})=>{const t=xp(e,{animation:"none"});return{stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{...Cp(e,"stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:xh||{animation:`${Oh} 1.4s ease-in-out infinite`}},...t?[{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:t}]:[]]}})),Sh=ap("circle",{name:"MuiCircularProgress",slot:"Track"})(sp(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Ph=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,enableTrackSlot:a=!1,min:l,max:s,size:c=40,style:u,thickness:d=3.6,value:f=n.min??0,variant:p="indeterminate",...h}=n,m=l??0,g=s??100,v={...n,color:o,disableShrink:i,size:c,thickness:d,value:f,variant:p,enableTrackSlot:a},b=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Hf({root:["root",n,`color${Uf(r)}`],svg:["svg"],track:["track"],circle:["circle",o&&"circleDisableShrink"]},yh,t)})(v),y={},A={},w={};if("determinate"===p){const e=2*Math.PI*((Ah-d)/2),t=g-m;y.strokeDasharray=e.toFixed(3),y.strokeDashoffset=t>0?`${((g-f)/t*e).toFixed(3)}px`:`${e.toFixed(3)}px`,A.transform="rotate(-90deg)",w["aria-valuenow"]=f,w["aria-valuemin"]=m,w["aria-valuemax"]=g}return(0,la.jsx)(Ch,{className:zl(b.root,r),style:{width:c,height:c,...A,...u},ownerState:v,ref:t,role:"progressbar",...w,...h,children:(0,la.jsxs)(Eh,{className:b.svg,ownerState:v,viewBox:"22 22 44 44",children:[a?(0,la.jsx)(Sh,{className:b.track,ownerState:v,cx:Ah,cy:Ah,r:(Ah-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,(0,la.jsx)(kh,{className:b.circle,style:y,ownerState:v,cx:Ah,cy:Ah,r:(Ah-d)/2,fill:"none",strokeWidth:d})]})})});function Dh(e){return pp("MuiButton",e)}const Mh=hp("MuiButton",["root","text","outlined","contained","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),qh=le().createContext({}),$h=le().createContext(void 0),Th=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Bh=ap(vh,{shouldForwardProp:e=>op(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Uf(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(sp(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,...Cp(e,["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Mh.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Mh.focusVisible}`]:{...e.focusVisible,boxShadow:e.focusVisible?.boxShadow?`${(e.vars||e).shadows[6]}, ${e.focusVisible.boxShadow}`:(e.vars||e).shadows[6]},[`&.${Mh.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Mh.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(bh()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Mh.focusVisible}`]:{boxShadow:e.focusVisible?.boxShadow??"none"},"&:active":{boxShadow:"none"},[`&.${Mh.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loading:!0,loadingPosition:"center"},style:{...Cp(e,["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Mh.loading}`]:{color:"transparent"}}}]}})),jh=ap("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart]}})(({theme:e})=>({display:"inherit",alignItems:"center",marginRight:8,marginLeft:-4,"&::before":{content:'"\\200b"',width:0,overflow:"hidden"},variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{...Cp(e,["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Th]})),Fh=ap("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{...Cp(e,["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Th]})),Nh=ap("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Ih=ap("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Rh=le().forwardRef(function(e,t){const n=le().useContext(qh),r=le().useContext($h),o=cp({props:Ll(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:h=!1,id:m,loading:g=null,loadingIndicator:v,loadingPosition:b="center",size:y="medium",startIcon:A,type:w,variant:O="text",..._}=o,x=$p(m),C=v??(0,la.jsx)(Ph,{"aria-labelledby":x,color:"inherit",size:16}),E={...o,color:a,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,loading:g,loadingIndicator:C,loadingPosition:b,size:y,type:w,variant:O},k=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:l,classes:s}=e,c=Hf({root:["root",a&&"loading",i,`size${Uf(o)}`,`color${Uf(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${Uf(l)}`],startIcon:["icon","startIcon"],endIcon:["icon","endIcon"],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Dh,s);return{...s,...c}})(E),S=(A||g&&"start"===b)&&(0,la.jsx)(jh,{className:k.startIcon,ownerState:E,children:A||(0,la.jsx)(Ih,{className:k.loadingIconPlaceholder,ownerState:E})}),P=(f||g&&"end"===b)&&(0,la.jsx)(Fh,{className:k.endIcon,ownerState:E,children:f||(0,la.jsx)(Ih,{className:k.loadingIconPlaceholder,ownerState:E})}),D=r||"",M="boolean"==typeof g?(0,la.jsx)("span",{className:k.loadingWrapper,style:{display:"contents"},children:g&&(0,la.jsx)(Nh,{className:k.loadingIndicator,ownerState:E,children:C})}):null,{root:q,...$}=k;return(0,la.jsxs)(Bh,{ownerState:E,className:zl(n.className,k.root,s,D),component:l,disabled:c||g,focusRipple:!d,focusVisibleClassName:zl(k.focusVisible,p),ref:t,internalNativeButton:!0,type:w,id:g?x:m,..._,classes:$,children:[S,"end"!==b&&M,i,"end"===b&&M,P]})}),zh=le().createContext(void 0);function Lh({props:e,states:t}){const n=le().useContext(zh),r={};return t.forEach(t=>{const o=e[t];r[t]=void 0===o&&n?n[t]:o}),[r,n]}function Qh(e){return pp("MuiTypography",e)}hp("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom"]);const Wh=ap("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Uf(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom]}})(sp(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([e,t])=>"inherit"!==e&&t&&"object"==typeof t).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(bh()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>"string"==typeof e).map(([t])=>({props:{color:`text${Uf(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}}]}))),Vh={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Hh=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiTypography"}),{color:r,align:o="inherit",className:i,component:a,gutterBottom:l=!1,noWrap:s=!1,variant:c="body1",variantMapping:u=Vh,...d}=n,f={...n,align:o,color:r,className:i,component:a,gutterBottom:l,noWrap:s,variant:c,variantMapping:u},p=a||u[c]||Vh[c]||"span",h=(e=>{const{align:t,gutterBottom:n,noWrap:r,variant:o,classes:i}=e;return Hf({root:["root",o,"inherit"!==e.align&&`align${Uf(t)}`,n&&"gutterBottom",r&&"noWrap"]},Qh,i)})(f);return(0,la.jsx)(Wh,{as:p,ref:t,className:zl(h.root,i),...d,ownerState:f,style:{..."inherit"!==o&&{"--Typography-textAlign":o},...d.style}})});function Uh(e){return pp("MuiFormControlLabel",e)}const Zh=hp("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementEnd","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Gh=function(e){return"string"==typeof e},Yh=function(e,t,n){return void 0===e||Gh(e)?t:{...t,ownerState:{...t.ownerState,...n}}},Xh=function(e,t,n){return"function"==typeof e?e(t,n):e};function Kh(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t}const Jh=function(e){if(void 0===e)return{};const t={},n=Object.keys(e);for(let r=0;r<n.length;r+=1){const o=n[r];Kh(o,e[o])&&(t[o]=e[o])}return t},em=function(e){if(void 0===e)return{};const t={},n=Object.keys(e);for(let r=0;r<n.length;r+=1){const o=n[r];Kh(o,e[o])||(t[o]=e[o])}return t},tm=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=zl(n?.className,i,o?.className,r?.className),t={...n,...o,...r};if(e.length>0&&(t.className=e),n?.style||o?.style||r?.style){const e={...n?.style,...o?.style,...r?.style};Object.keys(e).length>0&&(t.style=e)}return{props:t,internalRef:void 0}}const a=Jh({...o,...r}),l=em(r),s=em(o),c=t(a),u=zl(c?.className,n?.className,i,o?.className,r?.className),d={...c,...n,...s,...l};if(u.length>0&&(d.className=u),c?.style||n?.style||o?.style||r?.style){const e={...c?.style,...n?.style,...o?.style,...r?.style};Object.keys(e).length>0&&(d.style=e)}return{props:d,internalRef:c.ref}};function nm(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...s}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,p=u[e]||r,h=Xh(d[e],o),{props:{component:m,...g},internalRef:v}=tm({className:n,...s,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:h}),b=Bp(v,h?.ref,t.ref),y="root"===e?m||c:m;return[p,Yh(p,{..."root"===e&&!c&&!u[e]&&a,..."root"!==e&&!u[e]&&a,...g,...y&&!l&&{as:y},...y&&l&&{component:y},ref:b},o)]}const rm=ap("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Zh.label}`]:t.label},t.root,t[`labelPlacement${Uf(n.labelPlacement)}`]]}})(sp(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Zh.disabled}`]:{cursor:"default"},[`& .${Zh.label}`]:{[`&.${Zh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]}))),om=ap("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(sp(({theme:e})=>({[`&.${Zh.error}`]:{color:(e.vars||e).palette.error.main}}))),im=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiFormControlLabel"}),{checked:r,className:o,control:i,disabled:a,disableTypography:l,label:s,labelPlacement:c="end",name:u,onChange:d,required:f,slots:p={},slotProps:h={},value:m,...g}=n,[v,b]=Lh({props:n,states:["error"]}),y=a??i.props.disabled??b?.disabled,A=f??i.props.required,w={disabled:y,required:A};["checked","name","onChange","value"].forEach(e=>{void 0===i.props[e]&&void 0!==n[e]&&(w[e]=n[e])});const O={...n,disabled:y,labelPlacement:c,required:A,error:v.error},_=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return Hf({root:["root",n&&"disabled",`labelPlacement${Uf(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},Uh,t)})(O),x={slots:p,slotProps:h},[C,E]=nm("typography",{elementType:Hh,externalForwardedProps:x,ownerState:O});let k=s;return null==k||k.type===Hh||l||(k=(0,la.jsx)(C,{component:"span",...E,className:zl(_.label,E?.className),children:k})),(0,la.jsxs)(rm,{className:zl(_.root,o),ownerState:O,ref:t,...g,children:[le().cloneElement(i,w),A?(0,la.jsxs)("div",{children:[k,(0,la.jsxs)(om,{ownerState:O,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]}):k]})}),am=im;var lm=__webpack_require__(4792),sm=__webpack_require__.n(lm),cm=__webpack_require__(8729),um=__webpack_require__(2600);const dm=function(){return ra()().createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{color:"var(--fb-color-alert-text, #B01F14)"}},ra()().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:"currentColor"}))};var fm=__webpack_require__(4737),pm={};pm.styleTagTransform=Ji()(),pm.setAttributes=Xi()(),pm.insert=Yi()().bind(null,"head"),pm.domAPI=Gi()(),pm.insertStyleElement=Ki()(),Zi()()(fm.A,pm);const hm=fm.A&&fm.A.locals?fm.A.locals:void 0;function mm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const gm=function(e){var t,n,r=e.error,o=(t=(0,le().useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return mm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mm(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return ra()().createElement("div",{className:hm.errorContainer,"data-testid":"form-general-error-container"},ra()().createElement("div",{className:hm.iconWrapper},ra()().createElement(dm,null)),ra()().createElement("p",{className:"".concat(hm.errorMessage," ").concat(i?"":hm.closed),"data-testid":"form-general-error-message"},r),ra()().createElement("div",{className:hm.errorMessageToggleButtonContainer},ra()().createElement("button",{type:"button",onClick:function(){a(function(e){return!e})}},i?ra()().createElement(cm.V,{"data-testid":"form-list__sort-down-button",color:"var(--fb-color-alert-text, #B01F14)"}):ra()().createElement(um.U,{"data-testid":"form-list__sort-up-button",color:"var(--fb-color-alert-text, #B01F14)"}))))};var vm=__webpack_require__(1650),bm={};bm.styleTagTransform=Ji()(),bm.setAttributes=Xi()(),bm.insert=Yi()().bind(null,"head"),bm.domAPI=Gi()(),bm.insertStyleElement=Ki()(),Zi()()(vm.A,bm);const ym=vm.A&&vm.A.locals?vm.A.locals:void 0;function Am(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=le().useRef(void 0!==t),[a,l]=le().useState(n);return[i?t:a,le().useCallback(e=>{i||l(e)},[])]}const wm=Am;function Om(e){return pp("PrivateSwitchBase",e)}hp("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _m=ap(vh,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),xm=ap("input",{name:"MuiSwitchBase",shouldForwardProp:op})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Cm=le().forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:i,disabled:a,disableFocusRipple:l=!1,edge:s=!1,icon:c,id:u,name:d,onBlur:f,onChange:p,onFocus:h,readOnly:m,required:g=!1,tabIndex:v,type:b,value:y,slots:A={},slotProps:w={},...O}=e,{nativeButton:_,...x}=O,[C,E]=wm({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),k=le().useContext(zh);let S=a;k&&void 0===S&&(S=k.disabled);const P="checkbox"===b||"radio"===b,D={...e,checked:C,disabled:S,disableFocusRipple:l,edge:s},M=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Hf({root:["root",n&&"checked",r&&"disabled",o&&`edge${Uf(o)}`],input:["input"]},Om,t)})(D),q={slots:A,slotProps:w},[$,T]=nm("root",{ref:t,elementType:_m,className:M.root,shouldForwardComponentProp:!0,externalForwardedProps:{...q,component:"span",...x},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{h&&h(e),k&&k.onFocus&&k.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{f&&f(e),k&&k.onBlur&&k.onBlur(e)})(t)}}),ownerState:D,additionalProps:{centerRipple:!0,focusRipple:!l,role:void 0,tabIndex:null,internalDisabledThemeFocusVisible:!0}}),[B,j]=nm("input",{elementType:xm,className:M.input,externalForwardedProps:q,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented||m)return;const t=e.target.checked;E(t),p&&p(e,t)})(t)}}),ownerState:D,additionalProps:{autoFocus:n,checked:r,defaultChecked:i,disabled:S,id:P?u:void 0,name:d,readOnly:m,required:g,tabIndex:v,type:b,..."checkbox"===b&&void 0===y?{}:{value:y}}});return(0,la.jsxs)($,{...T,children:[(0,la.jsx)(B,{...j}),C?o:c]})}),Em=Cm;function km(e){return pp("MuiSwitch",e)}const Sm=hp("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);function Pm(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach(r=>{Kh(r,t[r])&&"function"==typeof e[r]&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if("function"==typeof e||"function"==typeof t)return r=>{const o="function"==typeof t?t(r):t,i="function"==typeof e?e({...r,...o}):e,a=zl(r?.className,o?.className,i?.className),l=n(i,o),s={...o,...i,...l};return a&&(s.className=a),o?.style&&i?.style&&(s.style={...o.style,...i.style}),o?.sx&&i?.sx&&(s.sx=[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(i.sx)?i.sx:[i.sx]]),s};const r=t,o=n(e,r),i=zl(r?.className,e?.className),a={...t,...e,...o};return i&&(a.className=i),r?.style&&e?.style&&(a.style={...r.style,...e.style}),r?.sx&&e?.sx&&(a.sx=[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]),a}const Dm=ap("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Uf(n.edge)}`],t[`size${Uf(n.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,[`& .${Sm.thumb}`]:{width:16,height:16},[`& .${Sm.switchBase}`]:{padding:4,[`&.${Sm.checked}`]:{transform:"translateX(16px)"}}}}]}),Mm=ap(Em,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Sm.input}`]:t.input},"default"!==n.color&&t[`color${Uf(n.color)}`]]}})(sp(({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]}`,...Cp(e,["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Sm.checked}`]:{transform:"translateX(20px)"},[`&.${Sm.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},...e.focusVisible?{[`&.${hh.focusVisible} ~ .${Sm.track}`]:{...ud,...e.focusVisible},[`&.${Sm.checked} + .${Sm.track}`]:{backgroundColor:e.alpha(e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,.5)},[`&.${Sm.disabled} + .${Sm.track}`]:{backgroundColor:e.alpha(e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2))}}:{[`&.${Sm.checked} + .${Sm.track}`]:{opacity:.5},[`&.${Sm.disabled} + .${Sm.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)}},[`& .${Sm.input}`]:{left:"-100%",width:"300%"}})),sp(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(bh(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Sm.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Sm.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${Sm.checked} + .${Sm.track}`]:{backgroundColor:(e.vars||e).palette[t].main},...e.focusVisible&&{[`&.${Sm.checked} + .${Sm.track}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,.5)},[`&.${Sm.disabled} + .${Sm.track}`]:{backgroundColor:e.alpha(e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2))},[`&.${Sm.checked}.${Sm.disabled} + .${Sm.track}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2))}}}}))]}))),qm=ap("span",{name:"MuiSwitch",slot:"Track"})(sp(({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,...Cp(e,["opacity","background-color"],{duration:e.transitions.duration.shortest}),"@media (forced-colors: active)":{boxSizing:"border-box",border:"1px solid ButtonBorder"},...e.focusVisible?{backgroundColor:e.alpha(e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3))}:{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)}}))),$m=ap("span",{name:"MuiSwitch",slot:"Thumb"})(sp(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",boxSizing:"border-box",border:"1px solid transparent",width:20,height:20,borderRadius:"50%"}))),Tm=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiSwitch"}),{className:r,color:o="primary",edge:i=!1,size:a="medium",sx:l,slots:s={},slotProps:c={},...u}=n,d={...n,color:o,edge:i,size:a},f=(e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,l=Hf({root:["root",n&&`edge${Uf(n)}`,`size${Uf(r)}`],switchBase:["switchBase",`color${Uf(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},km,t);return{...t,...l}})(d),p=c.input,h={slots:s,slotProps:c},[m,g]=nm("root",{className:zl(f.root,r),elementType:Dm,externalForwardedProps:h,ownerState:d,additionalProps:{sx:l}}),[v,b]=nm("thumb",{className:f.thumb,elementType:$m,externalForwardedProps:h,ownerState:d}),y=(0,la.jsx)(v,{...b}),[A,w]=nm("track",{className:f.track,elementType:qm,externalForwardedProps:h,ownerState:d});return(0,la.jsxs)(m,{...g,children:[(0,la.jsx)(Mm,{type:"checkbox",icon:y,checkedIcon:y,ref:t,ownerState:d,...u,classes:{...f,root:f.switchBase},slots:{...s.switchBase&&{root:s.switchBase},...s.input&&{input:s.input}},slotProps:{...c.switchBase&&{root:"function"==typeof c.switchBase?c.switchBase(d):c.switchBase},input:Pm("function"==typeof p?p(d):p,{role:"switch"})}}),(0,la.jsx)(A,{...w})]})});var Bm=ap(Tm)(function(){return{"& .MuiSwitch-track":{backgroundColor:"var(--fb-color-switch-off, rgba(0, 0, 0, 0.38))",opacity:1},"& .MuiSwitch-switchBase.Mui-focusVisible + .MuiSwitch-track":{outline:"var(--fb-focus-ring, none)",outlineOffset:"1px"},"& .MuiSwitch-switchBase.Mui-checked":{color:"white"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"var(--fb-color-accent, #4A96D2)",opacity:1,"&:hover":{backgroundColor:"var(--fb-color-accent-dark, #255F8E)"}}}});function jm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){jm(e,t,n[t])})}return e}var Nm={add:ra()().createElement(Dp,{"data-testid":"formfooter__add-icon"}),save:ra()().createElement(Mp,{"data-testid":"formfooter__save-icon"}),update:ra()().createElement(qp.K,{size:14,"data-testid":"formfooter__update-icon"})};const Im=function(e){var t,n,r,o,i,a,l,s,c,u,d,f=e.controlProps,p=e.error,h=e.iconType,m=e.loading,g=e.onSubmit,v=(0,le().useContext)(uf.og),b=v.formControls,y=v.isExpertMode,A=v.hasExpertMode,w=v.toggleExpertMode,O=h&&Nm[h.toLowerCase()],_=h&&sm()(h)||"Add",x=null!==(t=null==f||null===(i=f.footerProps)||void 0===i?void 0:i.style)&&void 0!==t?t:{},C=null!==(n=null==f||null===(l=f.footerProps)||void 0===l||null===(a=l.container)||void 0===a?void 0:a.style)&&void 0!==n?n:{},E=null!==(r=null==f||null===(c=f.footerProps)||void 0===c||null===(s=c.submitButtonContainer)||void 0===s?void 0:s.style)&&void 0!==r?r:{},k=null!==(o=null==f||null===(d=f.footerProps)||void 0===d||null===(u=d.submitButton)||void 0===u?void 0:u.sx)&&void 0!==o?o:{};return ra()().createElement("div",{"data-testid":"form-footer-container",className:"".concat(ym["form-footer-container"]," fb-form-footer"),style:x},p&&ra()().createElement("div",{className:ym.notificationContainer},ra()().createElement(gm,{error:p})),ra()().createElement("div",{className:ym.controlsContainer,style:C},A?ra()().createElement(am,{"data-testid":"formfooter__expert-mode",control:ra()().createElement(Bm,{checked:y,onChange:w}),label:"Expert Mode",sx:{color:"var(--fb-color-text-secondary, rgba(0,0,0,.54))",marginBottom:0,input:{marginTop:0},".MuiTypography-root":{fontSize:12}}}):ra()().createElement("div",null),ra()().createElement("div",{className:ym["submit-container"],style:E},ra()().createElement("span",{className:ym["required-message"]},"* Please fill in all required fields"),ra()().createElement(Rh,{"data-testid":"formfooter__submit",id:"submit-button",variant:"contained",type:"submit",form:"form-horizontal xhtmlInstantForm",onClick:function(){return g(b)},disabled:m,className:"fb-submit-button",sx:Fm({minHeight:"var(--fb-button-height, 36px)",padding:"var(--fb-button-padding, 6px 16px)",borderRadius:"var(--fb-button-radius, 4px)",textTransform:"var(--fb-button-text-transform, uppercase)",backgroundColor:"var(--fb-color-accent-strong, var(--fb-color-accent, #4A96D2))",boxShadow:"none","&:hover":{backgroundColor:"var(--fb-color-accent-hover, #0B5BA6)",boxShadow:"none"},"&:focus-visible":{outline:"var(--fb-focus-ring, none)",outlineOffset:"1px"}},k),endIcon:m?ra()().createElement("svg",{className:"".concat(ym["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"},ra()().createElement("g",{id:"Gruppe_272","data-name":"Gruppe 272",transform:"translate(-269.58 -82.717)"},ra()().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"}),ra()().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:"var(--fb-color-bg-muted, #f0f0f0)"}),ra()().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:"var(--fb-color-bg-muted, #f0f0f0)"}),ra()().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"}),ra()().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"}),ra()().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:"var(--fb-color-bg-muted, #f0f0f0)"}),ra()().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:"var(--fb-color-bg-muted, #f0f0f0)"}),ra()().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"}),ra()().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:"var(--fb-color-bg-muted, #f0f0f0)"}),ra()().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"}),ra()().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:"var(--fb-color-bg-muted, #f0f0f0)"}),ra()().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"}))):O||Nm.add},_))))};var Rm=__webpack_require__(8156),zm=__webpack_require__.n(Rm),Lm=__webpack_require__(6924),Qm=__webpack_require__.n(Lm),Wm=__webpack_require__(738),Vm={};Vm.styleTagTransform=Ji()(),Vm.setAttributes=Xi()(),Vm.insert=Yi()().bind(null,"head"),Vm.domAPI=Gi()(),Vm.insertStyleElement=Ki()(),Zi()()(Wm.A,Vm);const Hm=Wm.A&&Wm.A.locals?Wm.A.locals:void 0;function Um(e){return parseInt(le().version,10)>=19?e?.props?.ref||null:e?.ref||null}const Zm=ra()().createContext(null),Gm=function(e){const{in:t=!1,appear:n=!1,enter:r=!0,exit:o=!0,mountOnEnter:i=!1,unmountOnExit:a=!1,timeout:l,addEndListener:s,reduceMotion:c=!1,getAutoTimeout:u,nodeRef:d,onEnter:f,onEntering:p,onEntered:h,onExit:m,onExiting:g,onExited:v,children:b,...y}=e,A=le().useContext(Zm),w=A&&!A.isMounting?r:n,[O,_]=le().useState(()=>t?w?"exited":"entered":i||a?"unmounted":"exited"),x=le().useRef(O);x.current=O,t&&"unmounted"===O&&(x.current="exited",_("exited"));const C=le().useRef(t&&w),E=le().useRef(!1),k=le().useRef(null),S=le().useRef(O),P=le().useRef(!1),D=le().useRef(c),M=function(e){const t=zp(()=>function(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}(e)).current;return t.next=e,Vl(t.effect),t}({timeout:l,addEndListener:s,reduceMotion:c,getAutoTimeout:u,onEnter:f,onEntering:p,onEntered:h,onExit:m,onExiting:g,onExited:v,enter:r,exit:o,mountOnEnter:i,unmountOnExit:a,nodeRef:d,parentGroup:A}),q=le().useCallback(()=>{null!==k.current&&(k.current.cancel(),k.current=null)},[]),$=le().useCallback(e=>{let t=!0;const n=()=>{t&&(t=!1,k.current=null,e())};return n.cancel=()=>{t=!1},k.current=n,n},[]),T=le().useCallback((e,t)=>{let n;const r=()=>{void 0!==n&&(clearTimeout(n),n=void 0)},o=$(()=>{r(),x.current=e,_(e)}),i=o.cancel;o.cancel=()=>{r(),i()};const a=M.current.nodeRef.current,l=M.current.addEndListener,s=void 0!==M.current.getAutoTimeout,c=M.current.getAutoTimeout?.(),u=function(e){if(null!=e.autoTimeout)return e.autoTimeout;const t=function(e){if(null==e)return{appear:void 0,enter:void 0,exit:void 0};if("number"==typeof e)return{appear:e,enter:e,exit:e};const t=e.enter,n=e.exit;return{appear:void 0!==e.appear?e.appear:t,enter:t,exit:n}}(e.timeout);return"entering"===e.currentStatus?e.isAppearing?t.appear??t.enter??null:t.enter??null:t.exit??null}({currentStatus:t,isAppearing:P.current,timeout:M.current.timeout,autoTimeout:c}),d=D.current,f=u??(d&&s?0:null),p=e=>{n=setTimeout(o,e)};if(a)return l?(null!=f&&p(d?0:f),void(l.length>=2?l(a,o):l(o))):void p(d?0:u??0);p(0)},[$,M]),B=le().useCallback(e=>{const t=M.current,n=t.parentGroup?t.parentGroup.isMounting:e;if(P.current=n,!e&&!t.enter)return x.current="entered",void _("entered");D.current=t.reduceMotion,t.onEnter?.(n),x.current="entering",_("entering")},[M]),j=le().useCallback(()=>{const e=M.current;if(!e.exit)return x.current="exited",void _("exited");D.current=e.reduceMotion,e.onExit?.(),x.current="exiting",_("exiting")},[M]),F=le().useCallback((e,t)=>{if(q(),"entering"===t){const t=M.current;if(t.mountOnEnter||t.unmountOnExit){const e=t.nodeRef.current;e&&vp(e)}B(e)}else j()},[q,B,j,M]);return Vl(()=>(E.current=!0,C.current&&(C.current=!1,F(!0,"entering")),()=>{E.current=!1,q()}),[q,F]),Vl(()=>{if(!E.current)return;const e=x.current;t?"entering"!==e&&"entered"!==e&&F(!1,"entering"):"entering"===e||"entered"===e?F(!1,"exiting"):"exited"===e&&a&&(x.current="unmounted",_("unmounted"))},[t,O,a,F]),Vl(()=>{if("unmounted"===O||"unmounted"===S.current)return void(S.current=O);const e=S.current!==O;e&&(S.current=O);const t=M.current;"entering"===O?(e&&t.onEntering?.(P.current),null===k.current&&x.current===O&&T("entered","entering")):"exiting"===O?(e&&t.onExiting?.(),null===k.current&&x.current===O&&T("exited","exiting")):"entered"===O&&e?t.onEntered?.(P.current):"exited"===O&&e&&t.onExited?.()},[M,T,O]),"unmounted"===O?null:(0,la.jsx)(Zm.Provider,{value:null,children:b(O,y)})};function Ym(e){return`scale(${e}, ${e**2})`}const Xm={entering:{opacity:1,transform:Ym(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:Ym(.75)},exited:{opacity:0,transform:Ym(.75)}},Km={opacity:0,transform:Ym(.75),visibility:"hidden"},Jm=le().forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,disablePrefersReducedMotion:i=!1,easing:a,in:l,onEnter:s,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:p,style:h,timeout:m="auto",...g}=e,v=le().useRef(null),b=Up(),y=nh(b.motion.reducedMotion,i),A=le().useRef(null),w=jp(A,Um(o),t),O=wp(A,u),_=wp(A,(e,t)=>{y.shouldReduceMotion||vp(e);const{duration:n,delay:r,easing:o}=_p({style:h,timeout:m,easing:a},{mode:"enter"});let i;"auto"!==m||y.shouldReduceMotion?(i=n,v.current=null):(i=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=i);const l=y.getTransitionTiming({duration:i,delay:r});e.style.transition=[b.transitions.create("opacity",{duration:l.duration,delay:l.delay}),b.transitions.create("transform",{duration:"string"==typeof l.duration?l.duration:.666*l.duration,delay:l.delay,easing:o})].join(","),s&&s(e,t)}),x=wp(A,c),C=wp(A,p),E=wp(A,e=>{const{duration:t,delay:n,easing:r}=_p({style:h,timeout:m,easing:a},{mode:"exit"});let o;"auto"!==m||y.shouldReduceMotion?(o=t,v.current=null):(o=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=o);const i=y.getTransitionTiming({duration:o,delay:n});e.style.transition=[b.transitions.create("opacity",{duration:i.duration,delay:i.delay}),b.transitions.create("transform",{duration:"string"==typeof i.duration?i.duration:.666*i.duration,delay:i.delay||("string"==typeof i.duration?i.duration:.333*i.duration),easing:r})].join(","),e.style.opacity=0,e.style.transform=Ym(.75),d&&d(e)}),k=wp(A,e=>{e.style.transition="",f&&f(e)}),S=n?e=>{n(A.current,e)}:void 0;return(0,la.jsx)(Gm,{appear:r,in:l,nodeRef:A,onEnter:_,onEntered:x,onEntering:O,onExit:E,onExited:k,onExiting:C,addEndListener:S,getAutoTimeout:"auto"===m?()=>v.current:void 0,reduceMotion:y.shouldReduceMotion,timeout:"auto"===m?null:m,...g,children:(e,{ownerState:t,...n})=>{const r=Op(e,l,Xm,Km,h,o.props.style);return le().cloneElement(o,{style:r,ref:w,...n})}})});Jm&&(Jm.muiSupportAuto=!0);const eg=Jm;function tg(e){return e&&e.ownerDocument||document}function ng(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rg(e){return e instanceof ng(e).Element||e instanceof Element}function og(e){return e instanceof ng(e).HTMLElement||e instanceof HTMLElement}function ig(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ng(e).ShadowRoot||e instanceof ShadowRoot)}var ag=Math.max,lg=Math.min,sg=Math.round;function cg(){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 ug(){return!/^((?!chrome|android).)*safari/i.test(cg())}function dg(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&og(e)&&(o=e.offsetWidth>0&&sg(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&sg(r.height)/e.offsetHeight||1);var a=(rg(e)?ng(e):window).visualViewport,l=!ug()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function fg(e){var t=ng(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pg(e){return e?(e.nodeName||"").toLowerCase():null}function hg(e){return((rg(e)?e.ownerDocument:e.document)||window.document).documentElement}function mg(e){return dg(hg(e)).left+fg(e).scrollLeft}function gg(e){return ng(e).getComputedStyle(e)}function vg(e){var t=gg(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function bg(e,t,n){void 0===n&&(n=!1);var r,o,i=og(t),a=og(t)&&function(e){var t=e.getBoundingClientRect(),n=sg(t.width)/e.offsetWidth||1,r=sg(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=hg(t),s=dg(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==pg(t)||vg(l))&&(c=(r=t)!==ng(r)&&og(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:fg(r)),og(t)?((u=dg(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=mg(l))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function yg(e){var t=dg(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ag(e){return"html"===pg(e)?e:e.assignedSlot||e.parentNode||(ig(e)?e.host:null)||hg(e)}function wg(e){return["html","body","#document"].indexOf(pg(e))>=0?e.ownerDocument.body:og(e)&&vg(e)?e:wg(Ag(e))}function Og(e,t){var n;void 0===t&&(t=[]);var r=wg(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=ng(r),a=o?[i].concat(i.visualViewport||[],vg(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Og(Ag(a)))}function _g(e){return["table","td","th"].indexOf(pg(e))>=0}function xg(e){return og(e)&&"fixed"!==gg(e).position?e.offsetParent:null}function Cg(e){for(var t=ng(e),n=xg(e);n&&_g(n)&&"static"===gg(n).position;)n=xg(n);return n&&("html"===pg(n)||"body"===pg(n)&&"static"===gg(n).position)?t:n||function(e){var t=/firefox/i.test(cg());if(/Trident/i.test(cg())&&og(e)&&"fixed"===gg(e).position)return null;var n=Ag(e);for(ig(n)&&(n=n.host);og(n)&&["html","body"].indexOf(pg(n))<0;){var r=gg(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Eg="top",kg="bottom",Sg="right",Pg="left",Dg="auto",Mg=[Eg,kg,Sg,Pg],qg="start",$g="end",Tg="viewport",Bg="popper",jg=Mg.reduce(function(e,t){return e.concat([t+"-"+qg,t+"-"+$g])},[]),Fg=[].concat(Mg,[Dg]).reduce(function(e,t){return e.concat([t,t+"-"+qg,t+"-"+$g])},[]),Ng=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ig(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}var Rg={placement:"bottom",modifiers:[],strategy:"absolute"};function zg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Lg(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Rg:o;return function(e,t,n){void 0===n&&(n=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rg,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},i,l.options,o),l.scrollParents={reference:rg(e)?Og(e):e.contextElement?Og(e.contextElement):[],popper:Og(t)};var a,c,f=function(e){var t=Ig(e);return Ng.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(r,l.options.modifiers),c=a.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return l.orderedModifiers=f.filter(function(e){return e.enabled}),l.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:l,name:t,instance:u,options:r});s.push(i||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(zg(t,n)){l.rects={reference:bg(t,Cg(n),"fixed"===l.options.strategy),popper:yg(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,d=o.name;"function"==typeof i&&(l=i({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise(function(e){u.forceUpdate(),e(l)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){d(),c=!0}};if(!zg(e,t))return u;function d(){s.forEach(function(e){return e()}),s=[]}return u.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var Qg={passive:!0};function Wg(e){return e.split("-")[0]}function Vg(e){return e.split("-")[1]}function Hg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ug(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Wg(o):null,a=o?Vg(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case Eg:t={x:l,y:n.y-r.height};break;case kg:t={x:l,y:n.y+n.height};break;case Sg:t={x:n.x+n.width,y:s};break;case Pg:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?Hg(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case qg:t[c]=t[c]-(n[u]/2-r[u]/2);break;case $g:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var Zg={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Gg(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=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 u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=Pg,A=Eg,w=window;if(c){var O=Cg(n),_="clientHeight",x="clientWidth";O===ng(n)&&"static"!==gg(O=hg(n)).position&&"absolute"===l&&(_="scrollHeight",x="scrollWidth"),(o===Eg||(o===Pg||o===Sg)&&i===$g)&&(A=kg,m-=(d&&O===w&&w.visualViewport?w.visualViewport.height:O[_])-r.height,m*=s?1:-1),o!==Pg&&(o!==Eg&&o!==kg||i!==$g)||(y=Sg,p-=(d&&O===w&&w.visualViewport?w.visualViewport.width:O[x])-r.width,p*=s?1:-1)}var C,E=Object.assign({position:l},c&&Zg),k=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:sg(n*o)/o||0,y:sg(r*o)/o||0}}({x:p,y:m},ng(n)):{x:p,y:m};return p=k.x,m=k.y,s?Object.assign({},E,((C={})[A]=b?"0":"",C[y]=v?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",C)):Object.assign({},E,((t={})[A]=b?m+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var Yg={left:"right",right:"left",bottom:"top",top:"bottom"};function Xg(e){return e.replace(/left|right|bottom|top/g,function(e){return Yg[e]})}var Kg={start:"end",end:"start"};function Jg(e){return e.replace(/start|end/g,function(e){return Kg[e]})}function ev(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ig(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function tv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nv(e,t,n){return t===Tg?tv(function(e,t){var n=ng(e),r=hg(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=ug();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+mg(e),y:s}}(e,n)):rg(t)?function(e,t){var n=dg(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):tv(function(e){var t,n=hg(e),r=fg(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=ag(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ag(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+mg(e),s=-r.scrollTop;return"rtl"===gg(o||n).direction&&(l+=ag(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(hg(e)))}function rv(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ov(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function iv(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?"clippingParents":l,c=n.rootBoundary,u=void 0===c?Tg:c,d=n.elementContext,f=void 0===d?Bg:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=rv("number"!=typeof g?g:ov(g,Mg)),b=f===Bg?"reference":Bg,y=e.rects.popper,A=e.elements[h?b:f],w=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=Og(Ag(e)),n=["absolute","fixed"].indexOf(gg(e).position)>=0&&og(e)?Cg(e):e;return rg(n)?t.filter(function(e){return rg(e)&&ev(e,n)&&"body"!==pg(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(t,n){var o=nv(e,n,r);return t.top=ag(o.top,t.top),t.right=lg(o.right,t.right),t.bottom=lg(o.bottom,t.bottom),t.left=ag(o.left,t.left),t},nv(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(rg(A)?A:A.contextElement||hg(e.elements.popper),s,u,a),O=dg(e.elements.reference),_=Ug({reference:O,element:y,strategy:"absolute",placement:o}),x=tv(Object.assign({},y,_)),C=f===Bg?x:O,E={top:w.top-C.top+v.top,bottom:C.bottom-w.bottom+v.bottom,left:w.left-C.left+v.left,right:C.right-w.right+v.right},k=e.modifiersData.offset;if(f===Bg&&k){var S=k[o];Object.keys(E).forEach(function(e){var t=[Sg,kg].indexOf(e)>=0?1:-1,n=[Eg,kg].indexOf(e)>=0?"y":"x";E[e]+=S[n]*t})}return E}const av={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=Wg(g),b=s||(v!==g&&h?function(e){if(Wg(e)===Dg)return[];var t=Xg(e);return[Jg(e),t,Jg(t)]}(g):[Xg(g)]),y=[g].concat(b).reduce(function(e,n){return e.concat(Wg(n)===Dg?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?Fg:s,u=Vg(r),d=u?l?jg:jg.filter(function(e){return Vg(e)===u}):Mg,f=d.filter(function(e){return c.indexOf(e)>=0});0===f.length&&(f=d);var p=f.reduce(function(t,n){return t[n]=iv(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Wg(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)},[]),A=t.rects.reference,w=t.rects.popper,O=new Map,_=!0,x=y[0],C=0;C<y.length;C++){var E=y[C],k=Wg(E),S=Vg(E)===qg,P=[Eg,kg].indexOf(k)>=0,D=P?"width":"height",M=iv(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),q=P?S?Sg:Pg:S?kg:Eg;A[D]>w[D]&&(q=Xg(q));var $=Xg(q),T=[];if(i&&T.push(M[k]<=0),l&&T.push(M[q]<=0,M[$]<=0),T.every(function(e){return e})){x=E,_=!1;break}O.set(E,T)}if(_)for(var B=function(e){var t=y.find(function(t){var n=O.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return x=t,"break"},j=h?3:1;j>0&&"break"!==B(j);j--);t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function lv(e,t,n){return ag(e,lg(t,n))}const sv={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=iv(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=Wg(t.placement),b=Vg(t.placement),y=!b,A=Hg(v),w="x"===A?"y":"x",O=t.modifiersData.popperOffsets,_=t.rects.reference,x=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,E="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(O){if(i){var P,D="y"===A?Eg:Pg,M="y"===A?kg:Sg,q="y"===A?"height":"width",$=O[A],T=$+g[D],B=$-g[M],j=p?-x[q]/2:0,F=b===qg?_[q]:x[q],N=b===qg?-x[q]:-_[q],I=t.elements.arrow,R=p&&I?yg(I):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},L=z[D],Q=z[M],W=lv(0,_[q],R[q]),V=y?_[q]/2-j-W-L-E.mainAxis:F-W-L-E.mainAxis,H=y?-_[q]/2+j+W+Q+E.mainAxis:N+W+Q+E.mainAxis,U=t.elements.arrow&&Cg(t.elements.arrow),Z=U?"y"===A?U.clientTop||0:U.clientLeft||0:0,G=null!=(P=null==k?void 0:k[A])?P:0,Y=$+H-G,X=lv(p?lg(T,$+V-G-Z):T,$,p?ag(B,Y):B);O[A]=X,S[A]=X-$}if(l){var K,J="x"===A?Eg:Pg,ee="x"===A?kg:Sg,te=O[w],ne="y"===w?"height":"width",re=te+g[J],oe=te-g[ee],ie=-1!==[Eg,Pg].indexOf(v),ae=null!=(K=null==k?void 0:k[w])?K:0,le=ie?re:te-_[ne]-x[ne]-ae+E.altAxis,se=ie?te+_[ne]+x[ne]-ae-E.altAxis:oe,ce=p&&ie?function(e,t,n){var r=lv(e,t,n);return r>n?n:r}(le,te,se):lv(p?le:re,te,p?se:oe);O[w]=ce,S[w]=ce-te}t.modifiersData[r]=S}},requiresIfExists:["offset"]},cv={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Wg(n.placement),s=Hg(l),c=[Pg,Sg].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return rv("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ov(e,Mg))}(o.padding,n),d=yg(i),f="y"===s?Eg:Pg,p="y"===s?kg:Sg,h=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],m=a[s]-n.rects.reference[s],g=Cg(i),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=u[f],A=v-d[c]-u[p],w=v/2-d[c]/2+b,O=lv(y,w,A),_=s;n.modifiersData[r]=((t={})[_]=O,t.centerOffset=O-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ev(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function uv(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function dv(e){return[Eg,Sg,kg,Pg].some(function(t){return e[t]>=0})}var fv=Lg({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,s=ng(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,Qg)}),l&&s.addEventListener("resize",n.update,Qg),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Qg)}),l&&s.removeEventListener("resize",n.update,Qg)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ug({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,c={placement:Wg(t.placement),variation:Vg(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,Gg(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Gg(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];og(o)&&pg(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});og(r)&&pg(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Fg.reduce(function(e,n){return e[n]=function(e,t,n){var r=Wg(e),o=[Pg,Eg].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Pg,Sg].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e},{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},av,sv,cv,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=iv(t,{elementContext:"reference"}),l=iv(t,{altBoundary:!0}),s=uv(a,r),c=uv(l,o,i),u=dv(s),d=dv(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const pv=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:Xh(n,r),{props:l,internalRef:s}=tm({...i,externalSlotProps:a}),c=Bp(s,a?.ref,e.additionalProps?.ref);return Yh(t,{...l,ref:c},r)};function hv(){return hv.c||(hv.c=__webpack_require__.n(se()))}function mv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}se();const gv=le().forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=le().useState(null),l=Bp(le().isValidElement(n)?Um(n):null,t);if(Vl(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),Vl(()=>{if(i&&!o)return mv(t,i),()=>{mv(t,null)}},[t,i,o]),o){if(le().isValidElement(n)){const e={ref:l};return le().cloneElement(n,e)}return n}return i?se().createPortal(n,i):i});function vv(e){return pp("MuiPopper",e)}function bv(e){return"function"==typeof e?e():e}hp("MuiPopper",["root"]);const yv={},Av=le().forwardRef(function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:i,modifiers:a,open:l,placement:s,popperOptions:c,popperRef:u,slotProps:d={},slots:f={},TransitionProps:p,ownerState:h,...m}=e,g=le().useRef(null),v=Bp(g,t),b=le().useRef(null),y=Bp(b,u),A=le().useRef(y);Vl(()=>{A.current=y},[y]),le().useImperativeHandle(u,()=>b.current,[]);const w=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}}(s,o),[O,_]=le().useState(w),x=le().useMemo(()=>bv(n),[n]);le().useEffect(()=>{b.current&&b.current.forceUpdate()}),Vl(()=>{if(!x||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{_(e.placement)}}];null!=a&&(e=e.concat(a)),c&&null!=c.modifiers&&(e=e.concat(c.modifiers));const t=fv(x,g.current,{placement:w,...c,modifiers:e});A.current(t);const n=g.current;return()=>{if(n){const{style:e}=n,r=e.position,o=e.top,i=e.left,a=e.transform;t.destroy(),e.position=r,e.top=o,e.left=i,e.transform=a}else t.destroy();A.current(null)}},[x,i,a,l,c,w]);const C={placement:O};null!==p&&(C.TransitionProps=p);const E=(e=>{const{classes:t}=e;return Hf({root:["root"]},vv,t)})(e),k=f.root??"div",S=pv({elementType:k,externalSlotProps:d.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:E.root});return(0,la.jsx)(k,{...S,children:"function"==typeof r?r(C):r})}),wv=ap(le().forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:s,open:c,placement:u="bottom",popperOptions:d=yv,popperRef:f,style:p,transition:h=!1,slotProps:m={},slots:g={},...v}=e,[b,y]=le().useState(!0);if(!l&&!c&&(!h||b))return null;let A;if(o)A=o;else if(n){const e=bv(n);A=e&&void 0!==e.nodeType?tg(e).body:tg(null).body}const w=c||!l||h&&!b?void 0:"none",O=h?{in:c,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return(0,la.jsx)(gv,{disablePortal:a,container:A,children:(0,la.jsx)(Av,{anchorEl:n,direction:i,disablePortal:a,modifiers:s,ref:t,open:h?!b:c,placement:u,popperOptions:d,popperRef:f,slotProps:m,slots:g,...v,style:{position:"fixed",top:0,left:0,display:w,...p},TransitionProps:O,children:r})})}),{name:"MuiPopper",slot:"Root"})({}),Ov=le().forwardRef(function(e,t){const n=Fl(),r=cp({props:e,name:"MuiPopper"}),{anchorEl:o,component:i,container:a,disablePortal:l,keepMounted:s,modifiers:c,open:u,placement:d,popperOptions:f,popperRef:p,transition:h,slots:m,slotProps:g,...v}=r,b={anchorEl:o,container:a,disablePortal:l,keepMounted:s,modifiers:c,open:u,placement:d,popperOptions:f,popperRef:p,transition:h,...v};return(0,la.jsx)(wv,{as:i,direction:n?"rtl":"ltr",slots:m,slotProps:g,...b,ref:t})});function _v(e){return pp("MuiTooltip",e)}const xv=hp("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Cv=ap(Ov,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(sp(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>e.open&&!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${xv.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${xv.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${xv.arrow}`]:{height:"1em",width:"0.71em",insetInlineStart:0,marginInlineStart:"-0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${xv.arrow}`]:{height:"1em",width:"0.71em",insetInlineEnd:0,marginInlineEnd:"-0.71em","&::before":{transformOrigin:"0 0"}}}}]}))),Ev=ap("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Uf(n.placement.split("-")[0])}`]]}})(sp(({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(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,[`.${xv.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center",marginInlineEnd:"14px"},[`.${xv.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center",marginInlineStart:"14px"},[`.${xv.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${xv.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",marginBlock:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(t=16/14,Math.round(1e5*t)/1e5+"em"),fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>e.touch,style:{[`.${xv.popper}[data-popper-placement*="left"] &`]:{marginInlineEnd:"24px"},[`.${xv.popper}[data-popper-placement*="right"] &`]:{marginInlineStart:"24px"},[`.${xv.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"},[`.${xv.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),kv=ap("span",{name:"MuiTooltip",slot:"Arrow"})(sp(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Sv=!1;const Pv=new Vp;let Dv={x:0,y:0};function Mv(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const qv=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiTooltip"}),{arrow:r=!1,children:o,classes:i,describeChild:a=!1,disableFocusListener:l=!1,disableHoverListener:s=!1,disableInteractive:c=!1,disableTouchListener:u=!1,enterDelay:d=100,enterNextDelay:f=0,enterTouchDelay:p=700,followCursor:h=!1,id:m,leaveDelay:g=0,leaveTouchDelay:v=1500,onClose:b,onOpen:y,open:A,placement:w="bottom",slotProps:O={},slots:_={},title:x,...C}=n,E=le().isValidElement(o)?o:(0,la.jsx)("span",{children:o}),k=Up(),[S,P]=le().useState(),[D,M]=le().useState(null),q=le().useRef(!1),$=le().useRef(!1),T=c||h,B=Hp(),j=Hp(),F=Hp(),N=Hp(),[I,R]=wm({controlled:A,default:!1,name:"Tooltip",state:"open"});let z=I;const{current:L}=le().useRef(void 0!==A),Q=$p(m),W=le().useRef(),V=Np(()=>{void 0!==W.current&&(document.body.style.WebkitUserSelect=W.current,W.current=void 0),N.clear()});le().useEffect(()=>V,[V]);const H=e=>{Pv.clear(),Sv=!0,R(!0),y&&!z&&y(e)},U=Np(e=>{$.current=!1,Pv.start(800+g,()=>{Sv=!1}),R(!1),b&&z&&b(e),B.start(k.transitions.duration.shortest,()=>{q.current=!1})}),Z=e=>{q.current&&"touchstart"!==e.type||(S&&S.removeAttribute("title"),j.clear(),F.clear(),d||Sv&&f?j.start(Sv?f:d,()=>{H(e)}):H(e))},G=e=>{if(S?.disabled&&!L){if(z&&!$.current)return;$.current=!0}else $.current=!1;Z(e)},Y=e=>{j.clear(),F.start(g,()=>{U(e)})},[,X]=le().useState(!1),K=e=>{const t=e?.target??S;if(!t||t.disabled||!Tp(t)){X(!1);const n=e??new Event("blur");!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),Y(n)}},J=e=>{if(S||P(e.currentTarget),$.current=!1,Tp(e.target)){const t=e=>{e.target.disabled&&K(e),e.target.removeEventListener("blur",t)};e.target.addEventListener("blur",t),X(!0),Z(e)}},ee=e=>{q.current=!0;const t=E.props;t.onTouchStart&&t.onTouchStart(e)};le().useEffect(()=>{if(z)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&U(e)}},[U,z]);const te=jp(Um(E),P,t);x||0===x||(z=!1);const ne=le().useRef(),re={},oe="string"==typeof x;a?(re.title=z||!oe||s?null:x,re["aria-describedby"]=z?Q:null):(re["aria-label"]=oe?x:null,re["aria-labelledby"]=z&&!oe?Q:null);const ie={...re,...C,...E.props,className:zl(C.className,E.props.className),onTouchStart:ee,ref:te,...h?{onMouseMove:e=>{const t=E.props;t.onMouseMove&&t.onMouseMove(e),Dv={x:e.clientX,y:e.clientY},ne.current&&ne.current.update()}}:{}},ae={};u||(ie.onTouchStart=e=>{ee(e),F.clear(),B.clear(),V(),W.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",N.start(p,()=>{document.body.style.WebkitUserSelect=W.current,G(e)})},ie.onTouchEnd=e=>{E.props.onTouchEnd&&E.props.onTouchEnd(e),V(),F.start(v,()=>{U(e)})}),s||(ie.onMouseOver=Mv(G,ie.onMouseOver),ie.onMouseLeave=Mv(Y,ie.onMouseLeave),T||(ae.onMouseOver=e=>{(!S?.disabled||L||$.current)&&Z(e)},ae.onMouseLeave=Y)),l||(ie.onFocus=Mv(J,ie.onFocus),ie.onBlur=Mv(K,ie.onBlur),T||(ae.onFocus=J,ae.onBlur=K));const se={...n,arrow:r,disableInteractive:T,open:z,placement:w,touch:q.current},ce="function"==typeof O.popper?O.popper(se):O.popper,ue=le().useMemo(()=>{let e=[{name:"arrow",enabled:Boolean(D),options:{element:D,padding:4}}];return ce?.popperOptions?.modifiers&&(e=e.concat(ce.popperOptions.modifiers)),{...ce?.popperOptions,modifiers:e}},[D,ce?.popperOptions]),de=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i,open:a}=e;return Hf({popper:["popper",!n&&"popperInteractive",r&&"popperArrow",!a&&"popperClose"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Uf(i.split("-")[0])}`],arrow:["arrow"]},_v,t)})(se),fe={slots:_,slotProps:{arrow:O.arrow,popper:ce,tooltip:O.tooltip,transition:O.transition}},[pe,he]=nm("popper",{elementType:Cv,externalForwardedProps:fe,ownerState:se,className:de.popper}),[me,ge]=nm("transition",{elementType:eg,externalForwardedProps:fe,ownerState:se}),[ve,be]=nm("tooltip",{elementType:Ev,className:de.tooltip,externalForwardedProps:fe,ownerState:se}),[ye,Ae]=nm("arrow",{elementType:kv,className:de.arrow,externalForwardedProps:fe,ownerState:se,ref:M});return(0,la.jsxs)(le().Fragment,{children:[le().cloneElement(E,ie),(0,la.jsx)(pe,{as:Ov,placement:w,anchorEl:h?{getBoundingClientRect:()=>({top:Dv.y,left:Dv.x,right:Dv.x,bottom:Dv.y,width:0,height:0})}:S,popperRef:ne,open:!!S&&z,id:Q,transition:!0,...ae,...he,popperOptions:ue,children:({TransitionProps:e})=>(0,la.jsx)(me,{timeout:k.transitions.duration.shorter,...e,...ge,children:(0,la.jsxs)(ve,{...be,children:[x,r?(0,la.jsx)(ye,{...Ae}):null]})})})]})}),$v=qv;var Tv=__webpack_require__(3684);function Bv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jv=function(e){var t,n,r,o,i,a,l,s,c,u=e.controlProps,d=function(e,t){if(null==e)return{};var n,r,o,i={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(n=Reflect.ownKeys(Object(e)),o=0;o<n.length;o++)r=n[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,o={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,t),Object.getOwnPropertySymbols)for(n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++)r=n[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,["controlProps"]),f=d.id,p=d.objectPathId,h=d.error,m=d.displayName,g=d.required,v=d.hideLabel,b=void 0!==v&&v,y=d.isExpert,A=d.children,w=d.tooltip,O=d.helper,_=!!h,x=!!y,C=p||f,E=p?"".concat(Hm["control-wrapper"]," fb-control-wrapper"):"".concat(Hm["control-wrapper"]," fb-control-wrapper ").concat(Hm["control-wrapper-firstlayer"]),k=null!==(t=null==u||null===(o=u.controlWrapperProps)||void 0===o?void 0:o.style)&&void 0!==t?t:{},S=null!==(n=null==u||null===(a=u.controlWrapperProps)||void 0===a||null===(i=a.label)||void 0===i?void 0:i.style)&&void 0!==n?n:{},P=null!==(r=null==u||null===(s=u.controlWrapperProps)||void 0===s||null===(l=s.container)||void 0===l?void 0:l.style)&&void 0!==r?r:{};return ra()().createElement("div",{className:cf()()(Hm["form-group"],"fb-form-group",(c={"fb-form-group--error":_},Bv(c,Hm.error,_),Bv(c,Hm.expert,x),c)),style:k},!b&&ra()().createElement("label",{htmlFor:C,"data-testid":"control-label",className:"".concat(Hm["control-label"]," fb-control-label"),style:S},ra()().createElement("div",{className:Hm["text-tooltip-container"],"data-testid":"control-label-container"},ra()().createElement("span",{"data-testid":"name-span"},g?"".concat(m," *"):m),w&&ra()().createElement("div",{className:Hm.tooltip,"data-testid":"tooltip-container"},ra()().createElement($v,{"data-testid":"tooltip-style",title:w,arrow:!0,slotProps:{popper:{className:"fb-tooltip-popper",modifiers:[{name:"offset",options:{offset:[0,-7]}}]},tooltip:{className:"fb-tooltip",sx:{display:"flex",padding:"8px",alignItems:"flex-start",gap:"10px",borderRadius:"4px",background:"var(--fb-color-tooltip-bg, 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(--fb-color-tooltip-bg, var(--grey-900, #333))",top:"0"}}}},ra()().createElement("span",{className:Hm["icon-container"],"data-testid":"tooltip-icon"},ra()().createElement(Tv._,{height:12,width:12})))))),ra()().createElement("div",{className:E,style:P},A,O&&ra()().createElement("div",{className:"".concat(Hm["helper-text"]," fb-helper-text"),"data-testid":"helper-text"},O),ra()().createElement("label",{htmlFor:C,className:"".concat(Hm["error-message"]," fb-error-message")},h)))};function Fv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Fv(e,t,n[t])})}return e}const Iv=function(e){var t,n,r,o,i,a,l,s,c,u,d,f=e.Control,p=e.config,h=e.isExpert,m=e.hideLabel,g=void 0!==m&&m,v=e.controlProps,b=p.control,y=p.id,A=p.objectPathId,w=p.groupIsRequired,O=p.isInRequiredGroup,_=p.isControlHidden,x=void 0!==_&&_,C=b.error,E=b.displayName,k=b.required,S=b.value,P=null==b?void 0:b["custom-attributes"],D=!0===(null==P?void 0:P.readOnly)||"true"===(null==P?void 0:P.readOnly)||!0===(null==P?void 0:P.readonly)||"true"===(null==P?void 0:P.readonly),M=!0===(null==P?void 0:P.alwaysRequired),q=!x&&!D&&(!!M||!(!O&&!w)&&k),$=(0,le().useContext)(uf.og),T=$.updateControl,B=$.showValidationErrors,j="select"===b.control&&(null===(r=b.options)||void 0===r?void 0:r.some(function(e){return e.selected&&""!==e.value&&null!=e.value})),F=!B||!q||null!=S&&""!==S||j?void 0:"This field is required.",N={id:y,objectPathId:A,error:(null==C?void 0:C.message)||F,displayName:E,hideLabel:g,isExpert:h,required:q,tooltip:null==b||null===(i=b["custom-attributes"])||void 0===i||null===(o=i.fieldDescription)||void 0===o?void 0:o.tooltip,helper:null!==(t=null==b||null===(l=b["custom-attributes"])||void 0===l||null===(a=l.fieldDescription)||void 0===a?void 0:a.helper)&&void 0!==t?t:null==b?void 0:b.description},I={objectPathId:A,id:y,control:(u=Nv({},b),d={required:q,placeholder:null!==(n=null==b||null===(c=b["custom-attributes"])||void 0===c||null===(s=c.fieldDescription)||void 0===s?void 0:s.placeholder)&&void 0!==n?n:null==b?void 0:b.placeholder},d=null!=d?d:{},Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(d)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(d)).forEach(function(e){Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(d,e))}),u)};return ra()().createElement(jv,Nv({controlProps:v},N),ra()().createElement(f,Nv({controlProps:v,onChangeValue:function(e,t){var n=Nv({hasChanged:!0},e);null==T||T(A||y,Qm()({},b,n,t))}},I)))};function Rv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zv(e){return function(e){if(Array.isArray(e))return Rv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Lv(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.")}()}function Lv(e,t){if(e){if("string"==typeof e)return Rv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rv(e,t):void 0}}var Qv=/mrn:srv:([a-z-A-Z0-9]+):(?:[a-zA-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,Wv=function(e,t,n){var r=e.slice("mrn:srv:".concat(t,":").length);if(!r.startsWith(n))return r.slice(0,r.indexOf(":"))},Vv=function(e){if(e){var t=zv(e.matchAll(Qv)),n=t&&t[0];return n&&4===n.length?{matchAll:t,mrn:n[0],serviceName:n[1],applicationId:n[2],region:Wv(n[0],n[1],n[2]),resource:n[3]}:Hv(e)}},Hv=function(e){var t=zv(e.matchAll(/mrn:srv:([a-z-A-Z0-9]+):(?:[a-zA-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)),n=t&&t[0];return n&&3===n.length?{matchAll:t,mrn:n[0],serviceName:n[1],applicationId:n[2],region:Wv(n[0],n[1],n[2])}:null},Uv="[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}",Zv=new RegExp("^mrn:([a-zA-Z0-9-]+):([a-zA-Z0-9-]+):(".concat(Uv,")(?::(.+))?$")),Gv=new RegExp("^mrn:([a-zA-Z0-9-]+):([a-zA-Z0-9-]+):([a-zA-Z0-9-]*):(".concat(Uv,")(?::(.*))?$")),Yv=function(e){if("string"!=typeof e||!e.startsWith("mrn:")||Zv.test(e))return e;var t=Gv.exec(e);if(!t)return e;var n,r,o=(r=6,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(n,r)||Lv(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[1],a=o[2],l=o[3],s=o[4],c=o[5];return""===l||"eu-central-1"===l?"mrn:".concat(i,":").concat(a,":").concat(s).concat(c?":".concat(c):""):"mrn:".concat(i,":").concat(a,":").concat(l,":").concat(s,":").concat(null!=c?c:"")};const Xv=Pp((0,la.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"})),Kv=Pp((0,la.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"})),Jv=Pp((0,la.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"}));function eb(e){return pp("MuiCheckbox",e)}const tb=hp("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),nb=Vl,rb=ap(Em,{shouldForwardProp:e=>op(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Uf(n.size)}`],"default"!==n.color&&t[`color${Uf(n.color)}`]]}})(sp(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.focusVisible&&{[`&.${hh.focusVisible} svg:first-of-type`]:{...ud,borderRadius:(e.vars||e).shape.borderRadius,...e.focusVisible}},variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(bh()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(bh()).map(([t])=>({props:{color:t},style:{[`&.${tb.checked}, &.${tb.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${tb.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),ob=(0,la.jsx)(Kv,{}),ib=(0,la.jsx)(Xv,{}),ab=(0,la.jsx)(Jv,{}),lb=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiCheckbox"}),{checkedIcon:r=ob,color:o="primary",icon:i=ib,indeterminate:a=!1,indeterminateIcon:l=ab,size:s="medium",disableRipple:c=!1,className:u,slots:d={},slotProps:f={},...p}=n,h=a?l:i,m=a?l:r,g={...n,disableRipple:c,color:o,indeterminate:a,size:s},v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i=Hf({root:["root",n&&"indeterminate",`color${Uf(r)}`,`size${Uf(o)}`]},eb,t);return{...t,...i}})(g),b="function"==typeof f.input?f.input(g):f.input,y=le().useRef(null),A=jp(y,b?.ref);nb(()=>{y.current&&(y.current.indeterminate=a)});const[w,O]=nm("root",{ref:t,elementType:rb,className:zl(v.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:d,slotProps:f,...p},ownerState:g,additionalProps:{type:"checkbox",icon:le().cloneElement(h,{fontSize:h.props.fontSize??s}),checkedIcon:le().cloneElement(m,{fontSize:m.props.fontSize??s}),disableRipple:n.disableRipple,slots:d,slotProps:{input:{...Pm(b,{"data-indeterminate":a,onChange:e=>{e.target.indeterminate=a}}),ref:A}}}});return(0,la.jsx)(w,{...O,classes:v})}),sb=lb;var cb=__webpack_require__(179),ub=__webpack_require__.n(cb),db=__webpack_require__(7387),fb={};fb.styleTagTransform=Ji()(),fb.setAttributes=Xi()(),fb.insert=Yi()().bind(null,"head"),fb.domAPI=Gi()(),fb.insertStyleElement=Ki()(),Zi()()(db.A,fb);const pb=db.A&&db.A.locals?db.A.locals:void 0;const hb=function(e){var t,n=e.onChangeValue,r=function(e,t){if(null==e)return{};var n,r,o,i={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(n=Reflect.ownKeys(Object(e)),o=0;o<n.length;o++)r=n[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,o={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,t),Object.getOwnPropertySymbols)for(n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++)r=n[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,["onChangeValue"]),o=r.control,i=r.id,a=r.objectPathId,l=o.selected,s=void 0!==l&&l,c=o.value||"on",u=a||i;(0,le().useEffect)(function(){n({value:o.selected?c:""})},[]);var d=Object.assign(ub()(r,["objectPathId","checked","control","displayName","error"]),{name:u,value:c,type:o.control,role:o.control});return ra()().createElement(sb,{className:pb["checkbox-container"],id:u,color:"default",checked:s,readOnly:null===(t=o["custom-attributes"])||void 0===t?void 0:t.readOnly,onClick:function(){n({selected:!o.selected,value:o.selected?"":c})},slotProps:{input:d},disableRipple:!0,sx:{padding:"0px",marginLeft:"-2px",color:"var(--fb-color-checkbox-off, #D0D0D0)","&.Mui-checked":{color:"var(--fb-color-accent, #4A96D2)"},"&:hover":{backgroundColor:"transparent",color:"var(--fb-color-accent-dark, #255F8E)"},"&.Mui-focusVisible":{outline:"var(--fb-focus-ring, 2px solid #4A96D2)",outlineOffset:"1px",borderRadius:"2px"}}})},mb=Object.is;function gb(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}const vb=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown","Home","End"];function bb(e,t,n,r){return null!=e?function(e,t,n){const r=_b(t,e);return-1===r?wb(t,n):n(t[r])?t[r].id:Ab(t,r,"next",!1,n)?.id??null}(e,t,n):function(e,t,n){const r=n?.(e);if(null!=r){const n=Ob(e,r);if(n&&t(n))return n.id}return wb(e,t)}(t,n,r)}function yb(e,t,n){if(t){const n=xb(e,t);if(-1!==n)return n}return _b(e,n)}function Ab(e,t,n,r,o){const i=e.length-1;if(-1===i)return null;let a=!1,l=kb(t,i,n,r);const s=l;for(;-1!==l;){if(l===s){if(a)return null;a=!0}const t=e[l];if(t&&o(t))return t;l=kb(l,i,n,r)}return null}function wb(e,t){return e.find(e=>t(e))?.id??null}function Ob(e,t){return null==t?null:e.find(e=>e.id===t)??null}function _b(e,t){return null==t?-1:e.findIndex(e=>e.id===t)}function xb(e,t){return t?e.findIndex(e=>e.element===t||e.element?.contains(t)):-1}function Cb(e){const t=Array.from(e.values());return t.every(e=>null==e.element)?t:[...t.filter(Pb).sort((e,t)=>function(e,t){if(e===t)return 0;const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}(e.element,t.element)),...t.filter(e=>!Pb(e))]}function Eb(e){return Cb(e).filter(Pb)}function kb(e,t,n,r=!0){return"next"===n?e===t?r?0:-1:e+1:0===e?r?t:-1:e-1}function Sb(e){return!!e.element&&(!!e.focusableWhenDisabled||!e.disabled&&!e.element.hasAttribute("disabled")&&"true"!==e.element.getAttribute("aria-disabled")&&e.element.hasAttribute("tabindex"))}function Pb(e){return null!=e.element&&e.element.isConnected}function Db(...e){return t=>{e.forEach(e=>{mv(e??null,t)})}}function Mb(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;const n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}const qb=Mb,$b=tg,Tb=gb;function Bb(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const jb=Bb,Fb=le().createContext(void 0);function Nb(e){return tg(e).defaultView||window}const Ib=Nb,Rb=le().createContext({});function zb(e){return pp("MuiList",e)}hp("MuiList",["root","padding","dense","subheader"]);const Lb=ap("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0,isolation:"isolate"}}]}),Qb=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s,...c}=n,u=le().useMemo(()=>({dense:a}),[a]),d={...n,component:i,dense:a,disablePadding:l},f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Hf({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},zb,t)})(d);return(0,la.jsx)(Rb.Provider,{value:u,children:(0,la.jsxs)(Lb,{as:i,className:zl(f.root,o),ref:t,ownerState:d,...c,children:[s,r]})})}),Wb=le().createContext(null),Vb=Wb.Provider,Hb=le().createContext(void 0);function Ub(e,t){if(void 0===t)return!0;let n=function(e){const t=e?.element??e;if(!t)return"";if(void 0!==e?.textValue)return e.textValue;let n=t.innerText;return void 0===n&&(n=t.textContent),n??""}(e);return n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}const Zb=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiMenuList"}),{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...f}=n,p=le().useRef(null),h=le().useRef(!1),[m,g]=le().useState(!1),v=le().useContext(Wb),b=le().useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null}),y=function(e){const{activeItemId:t,getDefaultActiveItemId:n,orientation:r,isRtl:o=!1,isItemFocusable:i=Sb,wrap:a=!0}=e,[l,s]=le().useState(t),[c,u]=le().useState(t);let d=l;t!==c&&(u(t),void 0!==t&&t!==l&&(d=t,s(t)));const f=le().useRef(null),p=le().useRef(new Map),[h,m]=le().useState(0),g=bb(d,le().useMemo(()=>Cb(p.current),[h]),i,n),v=le().useRef(g);v.current=g;const b=le().useCallback(()=>{const e=Cb(p.current);return Ob(e,bb(v.current,e,i,n))},[n,i]),y=le().useCallback(()=>p.current,[]),A=Fp(e=>{(function(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;let n=0,r=0;for(const r in e){if(n+=1,!mb(e[r],t[r]))return!1;if(!(r in t))return!1}for(const e in t)r+=1;return n===r})(p.current.get(e.id)??null,e)||(p.current.set(e.id,e),m(e=>e+1))}),w=Fp(e=>{p.current.delete(e)&&m(e=>e+1)}),O=Fp(e=>{s(e)}),_=le().useCallback(e=>v.current===e,[]),x=le().useCallback((e,t,n,r)=>{const o=Ab(Eb(p.current),e,t,n,r??i);return o?(o.element?.focus(),s(o.id),o):null},[i]),C=le().useCallback((e,t,n)=>({onFocus:e=>{t?.(e);const n=Eb(p.current),r=xb(n,e.target);-1!==r&&s(n[r].id)},onKeyDown:e=>{if(n?.(e),e.defaultPrevented||e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;if(!vb.includes(e.key))return;let t="horizontal"===r?"ArrowLeft":"ArrowUp",i="horizontal"===r?"ArrowRight":"ArrowDown";"horizontal"===r&&o&&(t="ArrowRight",i="ArrowLeft");const l=Eb(p.current),s=gb(tg(f.current)),c=s===f.current;let u=yb(l,s,v.current),d="next";switch(e.key){case t:d="previous",e.preventDefault(),c&&(u=l.length);break;case i:e.preventDefault(),c&&(u=-1);break;case"Home":e.preventDefault(),u=-1;break;case"End":e.preventDefault(),d="previous",u=l.length;break;default:return}x(u,d,a)},ref:Db(e,e=>{f.current=e})}),[x,o,r,a]),E=le().useCallback(e=>{const t=Eb(p.current),n=gb(tg(f.current)),r=n===f.current?-1:yb(t,n,v.current);return x(r,"next",!0,e)?.id??null},[x]);return le().useMemo(()=>({activeItemId:g,focusNext:E,getActiveItem:b,getContainerProps:C,getItemMap:y,isItemActive:_,registerItem:A,setActiveItemId:O,unregisterItem:w}),[g,E,b,C,y,_,A,O,w])}({activeItemId:void 0,getDefaultActiveItemId:le().useCallback(e=>"selectedMenu"===d?e.find(e=>e.selected&&Sb(e))?.id??e.find(e=>Sb(e))?.id??null:e.find(e=>Sb(e))?.id??null,[d]),orientation:"vertical",wrap:!c}),{activeItemId:A,focusNext:w,getActiveItem:O,getContainerProps:_,getItemMap:x}=y,C=Np((e=!1)=>{if(!p.current||!e&&h.current)return null;if(i){const e=O();if(e?.element){const t=Array.from(x().values()).some(e=>e.selected),n="menu"===d&&t&&!e.selected&&null==v;return g(n),function(e,t){!function(e,t){if(null!=t)try{e.focus({focusVisible:"keyboard"===t})}catch(t){e.focus()}else e.focus()}(e,t)}(e.element,v),h.current=!0,e.element}return o?(g(!1),p.current.focus(),p.current):null}return o?(g(!1),p.current.focus(),h.current=!0,p.current):(g(!1),null)});nb(()=>{if(!o&&!i)return h.current=!1,void g(!1);C()},[A,i,o,C]),le().useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=Ib(e),r=jb(n);if(r>0){const e=`${r}px`,o="rtl"===t?"paddingLeft":"paddingRight",i=parseFloat(n.getComputedStyle(p.current)[o])||0;p.current.style[o]=`${i+r}px`,p.current.style.width=`calc(100% + ${e})`}}return p.current},focusInitialTarget:()=>{if(!p.current)return null;const e=Tb($b(p.current));return e&&qb(p.current,e)?e:C(!0)}}),[C]);const E=_(void 0,f.onFocus),k=jp(p,E.ref,t),S=le().useMemo(()=>({itemsFocusableWhenDisabled:s,suppressInitialFocusVisible:m,variant:d}),[s,m,d]),P=Np(e=>{if(m&&g(!1),(e.ctrlKey||e.metaKey||e.altKey)&&u)u(e);else{if(E.onKeyDown(e),1===e.key.length){const t=b.current,n=e.key.toLowerCase(),r=performance.now();t.keys.length>0&&(r-t.lastTime>500?(t.keys=[],t.repeating=!0,t.previousKeyMatched=!0):t.repeating&&n!==t.keys[0]&&(t.repeating=!1)),t.lastTime=r,t.keys.push(n);const o=Tb($b(p.current)),i=o&&!t.repeating&&Ub(o,t);t.previousKeyMatched&&(i||null!=w(e=>function(e,t){return!!Ub(e,t)&&Sb(e)}(e,t)))?e.preventDefault():t.previousKeyMatched=!1}u&&u(e)}});return(0,la.jsx)(Qb,{role:"menu",ref:k,className:l,onKeyDown:P,tabIndex:-1,...f,onFocus:E.onFocus,children:(0,la.jsx)(Hb.Provider,{value:S,children:(0,la.jsx)(Fb.Provider,{value:y,children:a})})})});function Gb(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}const Yb=Gb,Xb="data-mui-focusable";function Kb(e){return e?e.hasAttribute(Xb)?e:e.querySelector(`[${Xb}]`):null}const Jb=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ey(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}function ty(e){const t=[],n=[];return Array.from(e.querySelectorAll(Jb)).forEach((e,r)=>{const o=ey(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 n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function ny(){return!0}const ry=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=ty,isEnabled:a=ny,open:l}=e,s=le().useRef(!1),c=le().useRef(null),u=le().useRef(null),d=le().useRef(null),f=le().useRef(null),p=le().useRef(!1),h=le().useRef(null),m=Bp(Um(t),h),g=le().useRef(null);le().useEffect(()=>{l&&h.current&&(p.current=!n)},[n,l]),le().useEffect(()=>{if(s.current=!1,!l||!h.current)return;const e=tg(h.current),t=Tb(e),n=Kb(h.current)??h.current;return qb(h.current,t)||(n.hasAttribute("tabIndex")||n.setAttribute("tabIndex","-1"),p.current&&n.focus()),()=>{!o&&d.current&&(s.current=!0,d.current.focus(),d.current=null)}},[l]),le().useEffect(()=>{if(!l||!h.current)return;const e=tg(h.current),t=t=>{if(g.current=t,r||!a()||"Tab"!==t.key)return;const n=h.current,o=Tb(e);if(null===n)return;const l=Kb(n);if(o===n||o===l){const e=i(n);if(0===e.length)return;return t.preventDefault(),void(t.shiftKey?e[e.length-1].focus():e[0].focus())}if(qb(n,o)){const e=i(n),r=e.indexOf(o);if(-1===r)return;if(!e.some(e=>ey(e)>0))return;t.preventDefault();let a=0;a=t.shiftKey?r<=0?e.length-1:r-1:r===e.length-1?0:r+1,e[a].focus()}},n=()=>{const t=h.current;if(null===t)return;const n=Tb(e);if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(qb(t,n))return;if(r&&n!==c.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(null!==f.current)return;if(!p.current)return;let o=[];if(n!==c.current&&n!==u.current||(o=i(h.current)),o.length>0){const e=Boolean(g.current?.shiftKey&&"Tab"===g.current?.key),t=o[0],n=o[o.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{const t=Tb(e);t&&"BODY"===t.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return(0,la.jsxs)(le().Fragment,{children:[(0,la.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),le().cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,la.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})},oy={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},iy={opacity:0,visibility:"hidden"},ay=le().forwardRef(function(e,t){const n=Up(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,disablePrefersReducedMotion:l=!1,easing:s,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:m,style:g,timeout:v=r,...b}=e,y=nh(n.motion.reducedMotion,l),A=le().useRef(null),w=jp(A,Um(a),t),O=wp(A,f),_=wp(A,(e,t)=>{y.shouldReduceMotion||vp(e);const r=_p({style:g,timeout:v,easing:s},{mode:"enter"}),o=y.getTransitionTiming({duration:r.duration,delay:r.delay});e.style.transition=n.transitions.create("opacity",{duration:o.duration,easing:r.easing,delay:o.delay}),u&&u(e,t)}),x=wp(A,d),C=wp(A,m),E=wp(A,e=>{const t=_p({style:g,timeout:v,easing:s},{mode:"exit"}),r=y.getTransitionTiming({duration:t.duration,delay:t.delay});e.style.transition=n.transitions.create("opacity",{duration:r.duration,easing:t.easing,delay:r.delay}),p&&p(e)}),k=wp(A,e=>{e.style.transition="",h&&h(e)}),S=o?e=>{o(A.current,e)}:void 0;return(0,la.jsx)(Gm,{appear:i,in:c,nodeRef:A,onEnter:_,onEntered:x,onEntering:O,onExit:E,onExited:k,onExiting:C,addEndListener:S,reduceMotion:y.shouldReduceMotion,timeout:v,...b,children:(e,{ownerState:t,...n})=>{const r=Op(e,c,oy,iy,g,a.props.style);return le().cloneElement(a,{style:r,ref:w,...n})}})}),ly=ay;function sy(e){return pp("MuiBackdrop",e)}hp("MuiBackdrop",["root","invisible"]);const cy=ap("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),uy=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:i="div",invisible:a=!1,open:l,slotProps:s={},slots:c={},transitionDuration:u,...d}=n,f={...n,component:i,invisible:a},p=(e=>{const{classes:t,invisible:n}=e;return Hf({root:["root",n&&"invisible"]},sy,t)})(f),h={component:i,slots:c,slotProps:s},[m,g]=nm("root",{elementType:cy,externalForwardedProps:h,className:zl(p.root,o),ownerState:f}),[v,b]=nm("transition",{elementType:ly,externalForwardedProps:h,ownerState:f});return(0,la.jsx)(v,{in:l,timeout:u,...d,...b,children:(0,la.jsx)(m,{...g,ref:t,children:r})})});function dy(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function fy(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function py(e){return parseFloat(Nb(e).getComputedStyle(e).paddingRight)||0}function hy(e,t,n,r){[].forEach.call(e.children,e=>{e===t||function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e)||(n.has(e)?hy(e,t,n,r):r.add(e))})}function my(e){const{container:t,modals:n}=e,r=n[n.length-1].modalRef,o=new Set;hy(t,r,function(e,t){const n=new Set;let r=e;for(;r&&r!==t;)n.add(r),r=r.parentElement;return r===t?n:new Set}(r,t),o),o.forEach(t=>{e.hiddenSet.has(t)||"true"!==t.getAttribute("aria-hidden")||o.delete(t)}),e.hiddenSet.forEach(e=>{o.has(e)||fy(e,!1)}),o.forEach(e=>fy(e,!0)),r&&fy(r,!1),e.hiddenSet=o}const gy=()=>{},vy=new class{containers=[];modals=[];add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&fy(e.modalRef,!1);const r=this.containers.findIndex(e=>e.container===t);if(-1!==r)return this.containers[r].modals.push(e),my(this.containers[r]),n;const o={modals:[e],container:t,restore:null,hiddenSet:new Set};return this.containers.push(o),my(o),n}mount(e,t){const n=this.containers.findIndex(t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=function(e,t){const n=[],r=e.container;if(!t.disableScrollLock){let e;if(r.parentNode instanceof DocumentFragment)e=tg(r).body;else{const t=r.parentElement,n=Nb(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}if(function(e){const t=tg(e);return e===t.body||e===t.documentElement?Nb(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(e)){const t=Bb(Nb(e));n.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight=`${py(e)+t}px`;const o=tg(r).querySelectorAll(".mui-fixed");[].forEach.call(o,e=>{n.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight=`${py(e)+t}px`})}n.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()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=this.containers.findIndex(t=>t.modals.includes(e)),o=this.containers[r];return o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length?(o.restore&&o.restore(),e.modalRef&&fy(e.modalRef,t),o.hiddenSet.forEach(e=>fy(e,!1)),o.hiddenSet.clear(),this.containers.splice(r,1)):(my(o),e.modalRef&&fy(e.modalRef,t)),n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function by(e){return pp("MuiModal",e)}hp("MuiModal",["root","hidden","backdrop"]);const yy=ap("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(sp(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),Ay=ap(uy,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),wy=le().forwardRef(function(e,t){const n=cp({name:"MuiModal",props:e}),{classes:r,className:o,closeAfterTransition:i=!1,children:a,container:l,component:s,disableAutoFocus:c=!1,disableEnforceFocus:u=!1,disablePortal:d=!1,disableRestoreFocus:f=!1,disableScrollLock:p=!1,hideBackdrop:h=!1,keepMounted:m=!1,onClose:g,onTransitionEnter:v,onTransitionExited:b,open:y,slotProps:A={},slots:w={},theme:O,..._}=n,x={...n,closeAfterTransition:i,disableAutoFocus:c,disableEnforceFocus:u,disablePortal:d,disableRestoreFocus:f,disableScrollLock:p,hideBackdrop:h,keepMounted:m},{getRootProps:C,getBackdropProps:E,getTransitionProps:k,portalRef:S,portalContainer:P,isTopModal:D,exited:M,hasTransition:q}=function(e){const{container:t,disableScrollLock:n=!1,closeAfterTransition:r=!1,onTransitionEnter:o,onTransitionExited:i,children:a,onClose:l,open:s,rootRef:c}=e,u=le().useRef({}),d=le().useRef(null),f=le().useRef(null),p=le().useRef(null),h=Bp(p,c),[m,g]=le().useState(!s),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(a);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const y=()=>(u.current.modalRef=p.current,u.current.mount=d.current,u.current),A=()=>{vy.mount(y(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},w=Fp(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||tg(d.current).body;vy.add(y(),e),p.current&&A()}),O=()=>vy.isTopModal(y()),_=Fp(e=>{d.current=e,e&&(f.current=e,s&&O()?A():p.current&&fy(p.current,b))}),x=le().useCallback(()=>{vy.remove(y(),b)},[b]);le().useEffect(()=>()=>{x()},[x]),le().useEffect(()=>{s?w():v&&r||x()},[s,x,v,r,w]);const C=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&O()&&(t.stopPropagation(),l&&l(t,"escapeKeyDown"))},E=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&l&&l(t,"backdropClick")},k=s||!v||m?t:f.current??t;return{getRootProps:(t={})=>{const n=Jh(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:C(r),ref:h}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:E(t),open:s}},getTransitionProps:()=>({onEnter:dy(()=>{g(!1),o&&o()},a?.props.onEnter??gy),onExited:dy(()=>{g(!0),i&&i(),r&&x()},a?.props.onExited??gy)}),rootRef:h,portalRef:_,portalContainer:k,isTopModal:O,exited:m,hasTransition:v}}({...x,rootRef:t}),$={...x,exited:M},T=(e=>{const{open:t,exited:n,classes:r}=e;return Hf({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},by,r)})($),B={};if(void 0===a.props.tabIndex&&(B.tabIndex="-1"),q){const{onEnter:e,onExited:t}=k();B.onEnter=e,B.onExited=t}const j={slots:w,slotProps:A},[F,N]=nm("root",{ref:t,elementType:yy,externalForwardedProps:{...j,..._,component:s},getSlotProps:C,ownerState:$,className:zl(o,T?.root,!$.open&&$.exited&&T?.hidden)}),[I,R]=nm("backdrop",{elementType:Ay,externalForwardedProps:j,shouldForwardComponentProp:!0,getSlotProps:e=>E({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:T?.backdrop,ownerState:$});return m||y||q&&!M?(0,la.jsx)(gv,{ref:S,container:P,disablePortal:d,children:(0,la.jsxs)(F,{...N,children:[h?null:(0,la.jsx)(I,{...R}),(0,la.jsx)(ry,{disableEnforceFocus:u,disableAutoFocus:c,disableRestoreFocus:f,isEnabled:D,open:y,children:le().cloneElement(a,B)})]})}):null}),Oy=wy;function _y(e){return pp("MuiPaper",e)}hp("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 xy=ap("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(sp(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,...Cp(e,"box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Cy=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiPaper"}),r=Up(),{className:o,component:i="div",elevation:a=1,square:l=!1,variant:s="elevation",...c}=n,u={...n,component:i,elevation:a,square:l,variant:s},d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Hf({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},_y,o)})(u);return(0,la.jsx)(xy,{as:i,ownerState:u,className:zl(d.root,o),ref:t,...c,style:{..."elevation"===s&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${fu("#fff",Id(a))}, ${fu("#fff",Id(a))})`}},...c.style}})});function Ey(e){return pp("MuiPopover",e)}function ky(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Sy(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Py(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Dy(e){return"function"==typeof e?e():e}hp("MuiPopover",["root","paper"]);const My=ap(Oy,{name:"MuiPopover",slot:"Root"})({}),qy=ap(Cy,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),$y=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:s,className:c,container:u,disableAutoFocus:d=!1,elevation:f=8,marginThreshold:p=16,open:h,slots:m={},slotProps:g={},transformOrigin:v={vertical:"top",horizontal:"left"},transitionDuration:b="auto",disableScrollLock:y=!1,...A}=n,w=le().useRef(),O={...n,anchorOrigin:i,anchorReference:l,elevation:f,marginThreshold:p,transformOrigin:v,transitionDuration:b},_=(e=>{const{classes:t}=e;return Hf({root:["root"],paper:["paper"]},Ey,t)})(O),x=le().useCallback(()=>{if("anchorPosition"===l)return a;const e=Dy(o),t=(e&&1===e.nodeType?e:$b(w.current).body).getBoundingClientRect();return{top:t.top+ky(t,i.vertical),left:t.left+Sy(t,i.horizontal)}},[o,i.horizontal,i.vertical,a,l]),C=le().useCallback(e=>({vertical:ky(e,v.vertical),horizontal:Sy(e,v.horizontal)}),[v.horizontal,v.vertical]),E=le().useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=C(t);if("none"===l)return{top:null,left:null,transformOrigin:Py(n)};const r=x();let i=r.top-n.vertical,a=r.left-n.horizontal;const s=i+t.height,c=a+t.width,u=Ib(Dy(o)),d=u.innerHeight-p,f=u.innerWidth-p;if(null!=p&&i<p){const e=i-p;i-=e,n.vertical+=e}else if(null!=p&&s>d){const e=s-d;i-=e,n.vertical+=e}if(null!=p&&a<p){const e=a-p;a-=e,n.horizontal+=e}else if(c>f){const e=c-f;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:Py(n)}},[o,l,x,C,p]),[k,S]=le().useState(h),P=le().useCallback(()=>{const e=w.current;if(!e)return;const t=E(e);null!=t.top&&e.style.setProperty("top",t.top),null!=t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,S(!0)},[E]);le().useEffect(()=>(y&&window.addEventListener("scroll",P),()=>window.removeEventListener("scroll",P)),[o,y,P]),le().useEffect(()=>{h&&P()}),le().useImperativeHandle(r,()=>h?{updatePosition:()=>{P()}}:null,[h,P]),le().useEffect(()=>{if(!h)return;const e=Yb(()=>{P()}),t=Ib(Dy(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,h,P]);let D=b;const M={slots:m,slotProps:g},[q,$]=nm("transition",{elementType:eg,externalForwardedProps:M,ownerState:O,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),P()},onExited:t=>{e.onExited?.(t),S(!1)}}),additionalProps:{appear:!0,in:h}});"auto"!==b||q.muiSupportAuto||(D=void 0);const T=u||(o?$b(Dy(o)).body:void 0),[B,{slots:j,slotProps:F,...N}]=nm("root",{ref:t,elementType:My,externalForwardedProps:{...M,...A},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:Pm("function"==typeof g.backdrop?g.backdrop(O):g.backdrop,{invisible:!0})},container:T,open:h},ownerState:O,className:zl(_.root,c)}),[I,R]=nm("paper",{ref:w,className:_.paper,elementType:qy,externalForwardedProps:M,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:k?void 0:{opacity:0}},ownerState:O});return(0,la.jsx)(B,{...N,...!Gh(B)&&{slots:j,slotProps:F,disableAutoFocus:d,disableScrollLock:y},children:(0,la.jsx)(q,{...$,timeout:D,children:(0,la.jsx)(I,{...R,children:s})})})}),Ty=$y;function By(e){return pp("MuiMenu",e)}hp("MuiMenu",["root","paper","list"]);const jy={vertical:"top",horizontal:"right"},Fy={vertical:"top",horizontal:"left"},Ny=ap(Ty,{shouldForwardProp:e=>op(e)||"classes"===e,name:"MuiMenu",slot:"Root"})({}),Iy=ap(qy,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ry=ap(Zb,{name:"MuiMenu",slot:"List"})({outline:0}),zy=le().forwardRef(function(e,t){const n=cp({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:i,disableAutoFocusItem:a=!1,onClose:l,open:s,PopoverClasses:c,transitionDuration:u="auto",variant:d="selectedMenu",slots:f={},slotProps:p={},...h}=n,m=Fl(),g={...n,autoFocus:r,disableAutoFocusItem:a,transitionDuration:u,variant:d},v=(e=>{const{classes:t}=e;return Hf({root:["root"],paper:["paper"],list:["list"]},By,t)})(g),b=r&&s,y=b&&!a,A=le().useRef(null),w={slots:f,slotProps:p},O=pv({elementType:f.root,externalSlotProps:p.root,ownerState:g,className:[v.root,i]}),[_,x]=nm("paper",{className:v.paper,elementType:Iy,externalForwardedProps:w,shouldForwardComponentProp:!0,ownerState:g}),[C,E]=nm("list",{className:v.list,elementType:Ry,shouldForwardComponentProp:!0,externalForwardedProps:w,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{"Tab"===e.key&&(e.preventDefault(),l&&l(e,"tabKeyDown"))})(t),e.onKeyDown?.(t)}}),ownerState:g}),k="function"==typeof p.transition?p.transition(g):p.transition;return(0,la.jsx)(Ny,{disableAutoFocus:r,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:m?"right":"left"},transformOrigin:m?jy:Fy,slots:{root:f.root,paper:_,backdrop:f.backdrop,transition:f.transition},slotProps:{root:O,paper:x,backdrop:"function"==typeof p.backdrop?p.backdrop(g):p.backdrop,transition:{...k,onEntering:(...e)=>{(e=>{A.current&&(A.current.adjustStyleForScrollbar(e,{direction:m?"rtl":"ltr"}),b&&A.current.focusInitialTarget?.())})(...e),k?.onEntering?.(...e)}}},open:s,ref:t,transitionDuration:u,ownerState:g,...h,classes:c,children:(0,la.jsx)(C,{actions:A,autoFocus:b,autoFocusItem:y,variant:d,...E,children:o})})}),Ly=zy;var Qy=__webpack_require__(6968),Wy={};Wy.styleTagTransform=Ji()(),Wy.setAttributes=Xi()(),Wy.insert=Yi()().bind(null,"head"),Wy.domAPI=Gi()(),Wy.insertStyleElement=Ki()(),Zi()()(Qy.A,Wy);const Vy=Qy.A&&Qy.A.locals?Qy.A.locals:void 0;var Hy=__webpack_require__(5711),Uy="rgb(85, 85, 85)";const Zy=function(e){var t=e.onChangeValue,n=e.query,r=e.objectPathId,o=e.value,i=e.hasEdited,a=(0,Hy.A)({query:n,objectPathId:r}),l=a.resolvedQuery,s=a.mrnEntriesLoaded;if((0,le().useEffect)(function(){n&&(!i&&l&&(0===o.length&&l||o===l?t({value:l,hasEdited:"not-edited"}):o!==l&&t({value:o,hasEdited:"edited"})),i&&t({value:"not-edited"===i?l:o}))},[l]),!n)return{textColor:Uy};var c=(!i||"not-edited"===i)&&(null==o?void 0:o.length)>0?"rgba(85, 85, 85, 0.6)":Uy;return{textColor:s?c:Uy}};var Gy=__webpack_require__(2595),Yy={};Yy.styleTagTransform=Ji()(),Yy.setAttributes=Xi()(),Yy.insert=Yi()().bind(null,"head"),Yy.domAPI=Gi()(),Yy.insertStyleElement=Ki()(),Zi()()(Gy.A,Yy);const Xy=Gy.A&&Gy.A.locals?Gy.A.locals:void 0;var Ky="-ms-",Jy="-moz-",eA="-webkit-",tA="comm",nA="rule",rA="decl",oA="@keyframes",iA=Math.abs,aA=String.fromCharCode,lA=Object.assign;function sA(e){return e.trim()}function cA(e,t){return(e=t.exec(e))?e[0]:e}function uA(e,t,n){return e.replace(t,n)}function dA(e,t,n){return e.indexOf(t,n)}function fA(e,t){return 0|e.charCodeAt(t)}function pA(e,t,n){return e.slice(t,n)}function hA(e){return e.length}function mA(e){return e.length}function gA(e,t){return t.push(e),e}function vA(e,t){return e.filter(function(e){return!cA(e,t)})}var bA,yA,AA=1,wA=1,OA=0,_A=0,xA=0,CA="";function EA(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:AA,column:wA,length:a,return:"",siblings:l}}function kA(e,t){return lA(EA("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function SA(e){for(;e.root;)e=kA(e.root,{children:[e]});gA(e,e.siblings)}function PA(){return xA=_A>0?fA(CA,--_A):0,wA--,10===xA&&(wA=1,AA--),xA}function DA(){return xA=_A<OA?fA(CA,_A++):0,wA++,10===xA&&(wA=1,AA++),xA}function MA(){return fA(CA,_A)}function qA(){return _A}function $A(e,t){return pA(CA,e,t)}function TA(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function BA(e){return sA($A(_A-1,NA(91===e?e+2:40===e?e+1:e)))}function jA(e){for(;(xA=MA())&&xA<33;)DA();return TA(e)>2||TA(xA)>3?"":" "}function FA(e,t){for(;--t&&DA()&&!(xA<48||xA>102||xA>57&&xA<65||xA>70&&xA<97););return $A(e,qA()+(t<6&&32==MA()&&32==DA()))}function NA(e){for(;DA();)switch(xA){case e:return _A;case 34:case 39:34!==e&&39!==e&&NA(xA);break;case 40:41===e&&NA(e);break;case 92:DA()}return _A}function IA(e,t){for(;DA()&&e+xA!==57&&(e+xA!==84||47!==MA()););return"/*"+$A(t,_A-1)+"*"+aA(47===e?e:DA())}function RA(e){for(;!TA(MA());)DA();return $A(e,_A)}function zA(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function LA(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case rA:return e.return=e.return||e.value;case tA:return"";case oA:return e.return=e.value+"{"+zA(e.children,r)+"}";case nA:if(!hA(e.value=e.props.join(",")))return""}return hA(n=zA(e.children,r))?e.return=e.value+"{"+n+"}":""}function QA(e,t,n){switch(function(e,t){return 45^fA(e,0)?(((t<<2^fA(e,0))<<2^fA(e,1))<<2^fA(e,2))<<2^fA(e,3):0}(e,t)){case 5103:return eA+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return eA+e+e;case 4855:return eA+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Jy+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return eA+e+Jy+e+Ky+e+e;case 5936:switch(fA(e,t+11)){case 114:return eA+e+Ky+uA(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return eA+e+Ky+uA(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return eA+e+Ky+uA(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return eA+e+Ky+e+e;case 6165:return eA+e+Ky+"flex-"+e+e;case 5187:return eA+e+uA(e,/(\w+).+(:[^]+)/,eA+"box-$1$2"+Ky+"flex-$1$2")+e;case 5443:return eA+e+Ky+"flex-item-"+uA(e,/flex-|-self/g,"")+(cA(e,/flex-|baseline/)?"":Ky+"grid-row-"+uA(e,/flex-|-self/g,""))+e;case 4675:return eA+e+Ky+"flex-line-pack"+uA(e,/align-content|flex-|-self/g,"")+e;case 5548:return eA+e+Ky+uA(e,"shrink","negative")+e;case 5292:return eA+e+Ky+uA(e,"basis","preferred-size")+e;case 6060:return eA+"box-"+uA(e,"-grow","")+eA+e+Ky+uA(e,"grow","positive")+e;case 4554:return eA+uA(e,/([^-])(transform)/g,"$1"+eA+"$2")+e;case 6187:return uA(uA(uA(e,/(zoom-|grab)/,eA+"$1"),/(image-set)/,eA+"$1"),e,"")+e;case 5495:case 3959:return uA(e,/(image-set\([^]*)/,eA+"$1$`$1");case 4968:return uA(uA(e,/(.+:)(flex-)?(.*)/,eA+"box-pack:$3"+Ky+"flex-pack:$3"),/space-between/,"justify")+eA+e+e;case 4200:if(!cA(e,/flex-|baseline/))return Ky+"grid-column-align"+pA(e,t)+e;break;case 2592:case 3360:return Ky+uA(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,cA(e.props,/grid-\w+-end/)})?~dA(e+(n=n[t].value),"span",0)?e:Ky+uA(e,"-start","")+e+Ky+"grid-row-span:"+(~dA(n,"span",0)?cA(n,/\d+/):+cA(n,/\d+/)-+cA(e,/\d+/))+";":Ky+uA(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return cA(e.props,/grid-\w+-start/)})?e:Ky+uA(uA(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return uA(e,/(.+)-inline(.+)/,eA+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(hA(e)-1-t>6)switch(fA(e,t+1)){case 109:if(45!==fA(e,t+4))break;case 102:return uA(e,/(.+:)(.+)-([^]+)/,"$1"+eA+"$2-$3$1"+Jy+(108==fA(e,t+3)?"$3":"$2-$3"))+e;case 115:return~dA(e,"stretch",0)?QA(uA(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return uA(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,i,a,l){return Ky+n+":"+r+l+(o?Ky+n+"-span:"+(i?a:+a-+r)+l:"")+e});case 4949:if(121===fA(e,t+6))return uA(e,":",":"+eA)+e;break;case 6444:switch(fA(e,45===fA(e,14)?18:11)){case 120:return uA(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+eA+(45===fA(e,14)?"inline-":"")+"box$3$1"+eA+"$2$3$1"+Ky+"$2box$3")+e;case 100:return uA(e,":",":"+Ky)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return uA(e,"scroll-","scroll-snap-")+e}return e}function WA(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case rA:return void(e.return=QA(e.value,e.length,n));case oA:return zA([kA(e,{value:uA(e.value,"@","@"+eA)})],r);case nA:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(cA(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":SA(kA(e,{props:[uA(t,/:(read-\w+)/,":-moz-$1")]})),SA(kA(e,{props:[t]})),lA(e,{props:vA(n,r)});break;case"::placeholder":SA(kA(e,{props:[uA(t,/:(plac\w+)/,":"+eA+"input-$1")]})),SA(kA(e,{props:[uA(t,/:(plac\w+)/,":-moz-$1")]})),SA(kA(e,{props:[uA(t,/:(plac\w+)/,Ky+"input-$1")]})),SA(kA(e,{props:[t]})),lA(e,{props:vA(n,r)})}return""})}}function VA(e){return function(e){return CA="",e}(HA("",null,null,null,[""],e=function(e){return AA=wA=1,OA=hA(CA=e),_A=0,[]}(e),0,[0],e))}function HA(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,b=0,y="",A=o,w=i,O=r,_=y;g;)switch(h=b,b=DA()){case 40:if(108!=h&&58==fA(_,d-1)){-1!=dA(_+=uA(BA(b),"&","&\f"),"&\f",iA(c?l[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:_+=BA(b);break;case 9:case 10:case 13:case 32:_+=jA(h);break;case 92:_+=FA(qA()-1,7);continue;case 47:switch(MA()){case 42:case 47:gA(ZA(IA(DA(),qA()),t,n,s),s),5!=TA(h||1)&&5!=TA(MA()||1)||!hA(_)||" "===pA(_,-1,void 0)||(_+=" ");break;default:_+="/"}break;case 123*m:l[c++]=hA(_)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(_=uA(_,/\f/g,"")),p>0&&(hA(_)-d||0===m&&47===h)&&gA(p>32?GA(_+";",r,n,d-1,s):GA(uA(_," ","")+";",r,n,d-2,s),s);break;case 59:_+=";";default:if(gA(O=UA(_,t,n,c,u,o,l,y,A=[],w=[],d,i),i),123===b)if(0===u)HA(_,t,O,O,A,i,d,l,w);else{switch(f){case 99:if(110===fA(_,3))break;case 108:if(97===fA(_,2))break;default:u=0;case 100:case 109:case 115:}u?HA(e,O,O,r&&gA(UA(e,O,O,0,0,o,l,y,o,A=[],d,w),w),o,w,d,l,r?A:w):HA(_,O,O,O,[""],w,0,l,w)}}c=u=p=0,m=v=1,y=_="",d=a;break;case 58:d=1+hA(_),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==PA())continue;switch(_+=aA(b),b*m){case 38:v=u>0?1:(_+="\f",-1);break;case 44:l[c++]=(hA(_)-1)*v,v=1;break;case 64:45===MA()&&(_+=BA(DA())),f=MA(),u=d=hA(y=_+=RA(qA())),b++;break;case 45:45===h&&2==hA(_)&&(m=0)}}return i}function UA(e,t,n,r,o,i,a,l,s,c,u,d){for(var f=o-1,p=0===o?i:[""],h=mA(p),m=0,g=0,v=0;m<r;++m)for(var b=0,y=pA(e,f+1,f=iA(g=a[m])),A=e;b<h;++b)(A=sA(g>0?p[b]+" "+y:uA(y,/&\f/g,p[b])))&&(s[v++]=A);return EA(e,t,n,0===o?nA:l,s,c,u,d)}function ZA(e,t,n,r){return EA(e,t,n,tA,aA(xA),pA(e,2,-2),0,r)}function GA(e,t,n,r,o){return EA(e,t,n,rA,pA(e,0,r),pA(e,r+1,-1),r,o)}function YA(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}const XA="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",KA="active",JA="data-styled-version",ew="6.6.0",tw="/*!sc*/\n",nw="undefined"!=typeof window&&"undefined"!=typeof document;if(!ra()().createContext)throw YA(19);function rw(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const ow=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(yA=null!==(bA=rw("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==bA?bA:rw("SC_DISABLE_SPEEDY"))&&void 0!==yA?yA:"undefined"!=typeof process&&void 0!==process.env&&!1);let iw=new Map,aw=new Map,lw=1;const sw=e=>{if(iw.has(e))return iw.get(e);for(;aw.has(lw);)lw++;const t=lw++;return iw.set(e,t),aw.set(t,e),t},cw=e=>aw.get(e),uw=(e,t)=>{lw=t+1,iw.set(e,t),aw.set(t,e)},dw=(new Set,Object.freeze([])),fw=Object.freeze({});const pw=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,hw=/(^-|-$)/g;function mw(e){return e.replace(pw,"-").replace(hw,"")}const gw=/(a)(d)/gi,vw=e=>String.fromCharCode(e+(e>25?39:97));function bw(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=vw(t%52)+n;return(vw(t%52)+n).replace(gw,"$1-$2")}const yw=5381,Aw=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},ww=e=>Aw(yw,e);function Ow(e){return"string"==typeof e&&!0}function _w(e){return Ow(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}const xw=Symbol.for("react.memo"),Cw=Symbol.for("react.forward_ref"),Ew={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},kw={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Sw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Pw={[Cw]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[xw]:Sw};function Dw(e){return("type"in(t=e)&&t.type.$$typeof)===xw?Sw:"$$typeof"in e?Pw[e.$$typeof]:Ew;var t}const Mw=Object.defineProperty,qw=Object.getOwnPropertyNames,$w=Object.getOwnPropertySymbols,Tw=Object.getOwnPropertyDescriptor,Bw=Object.getPrototypeOf,jw=Object.prototype;function Fw(e,t,n){if("string"!=typeof t){const r=Bw(t);r&&r!==jw&&Fw(e,r,n);const o=qw(t).concat($w(t)),i=Dw(e),a=Dw(t);for(let r=0;r<o.length;++r){const l=o[r];if(!(l in kw||n&&n[l]||a&&l in a||i&&l in i)){const n=Tw(t,l);try{Mw(e,l,n)}catch(e){}}}}return e}function Nw(e){return"function"==typeof e}const Iw=Symbol.for("react.forward_ref");function Rw(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===Iw&&"styledComponentId"in e}function zw(e,t){return e&&t?e+" "+t:e||t||""}function Lw(e,t){return e.join(t||"")}function Qw(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ww(e,t,n=!1){if(!n&&!Qw(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Ww(e[n],t[n]);else if(Qw(t))for(const n in t)e[n]=Ww(e[n],t[n]);return e}function Vw(e,t){Object.defineProperty(e,"toString",{value:t})}const Hw=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let r=n;for(;e>=r;)if(r<<=1,r<0)throw YA(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let o=0,i=t.length;o<i;o++)this.tag.insertRule(n,t[o])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n;for(let e=r;e<o;e++)t+=this.tag.getRule(e)+tw;return t}},Uw=`style[${XA}][${JA}="${ew}"]`,Zw=new RegExp(`^${XA}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Gw=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,Yw=e=>{if(!e)return document;if(Gw(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Gw(t))return t}return document},Xw=(e,t,n)=>{const r=n.split(",");let o;for(let n=0,i=r.length;n<i;n++)(o=r[n])&&e.registerName(t,o)},Kw=(e,t)=>{var n;const r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(tw),o=[];for(let t=0,n=r.length;t<n;t++){const n=r[t].trim();if(!n)continue;const i=n.match(Zw);if(i){const t=0|parseInt(i[1],10),n=i[2];0!==t&&(uw(n,t),Xw(e,n,i[3]),e.getTag().insertRules(t,o)),o.length=0}else o.push(n)}},Jw=e=>{const t=Yw(e.options.target).querySelectorAll(Uw);for(let n=0,r=t.length;n<r;n++){const r=t[n];r&&r.getAttribute(XA)!==KA&&(Kw(e,r),r.parentNode&&r.parentNode.removeChild(r))}};let eO=!1;const tO=(e,t)=>{if("undefined"==typeof document)throw YA(20);const n=document.head,r=e||n,o=document.createElement("style"),i=(e=>{const t=Array.from(e.querySelectorAll(`style[${XA}]`));return t[t.length-1]})(r),a=void 0!==i?i.nextSibling:null;o.setAttribute(XA,KA),o.setAttribute(JA,ew);const l=t||function(){if(!1!==eO)return eO;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return eO=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return eO=t.getAttribute("content")||void 0}return eO=__webpack_require__.nc}();return l&&o.setAttribute("nonce",l),r.insertBefore(o,a),o},nO=class{constructor(e,t){this.element=tO(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,r=n.length;t<r;t++){const r=n[t];if(r.ownerNode===e)return r}throw YA(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},rO=class{constructor(e,t){this.element=tO(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let oO=nw;const iO={isServer:!nw,useCSSOMInjection:!ow};class aO{static registerId(e){return sw(e)}constructor(e=fw,t={},n){this.options=Object.assign(Object.assign({},iO),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&nw&&oO&&(oO=!1,Jw(this)),Vw(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let r="";for(let o=0;o<n;o++){const n=cw(o);if(void 0===n)continue;const i=e.names.get(n);if(void 0===i||!i.size)continue;const a=t.getGroup(o);if(0===a.length)continue;const l=XA+".g"+o+'[id="'+n+'"]';let s="";for(const e of i)e.length>0&&(s+=e+",");r+=a+l+'{content:"'+s+'"}'+tw}return r})(this))}rehydrate(){!this.server&&nw&&Jw(this)}reconstructWithOptions(e,t=!0){const n=new aO(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&nw&&e.target!==this.options.target&&Yw(this.options.target)!==Yw(e.target)&&Jw(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new nO(t,n):new rO(t,n))(this.options),new Hw(e)));var e}hasNameForId(e,t){var n,r;return null!==(r=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==r&&r}registerName(e,t){sw(e),e.startsWith("sc-keyframes-")&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(sw(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(sw(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const lO=new WeakSet,sO={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function cO(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in sO||e.startsWith("--")?String(t).trim():t+"px"}const uO=47;function dO(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}const fO=Symbol.for("sc-keyframes");function pO(e){return Nw(e)&&!(e.prototype&&e.prototype.isReactComponent)}const hO=e=>null==e||!1===e||""===e,mO=Symbol.for("react.client.reference");function gO(e){return e.$$typeof===mO}function vO(e,t){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!hO(r)&&(Array.isArray(r)&&lO.has(r)||Nw(r)?t.push(dO(n)+":",r,";"):Qw(r)?(t.push(n+" {"),vO(r,t),t.push("}")):t.push(dO(n)+": "+cO(n,r)+";"))}}function bO(e,t,n,r,o=[]){if(hO(e))return o;const i=typeof e;if("string"===i)return o.push(e),o;if("function"===i)return gO(e)?o:pO(e)&&t?bO(e(t),t,n,r,o):(o.push(e),o);if(Array.isArray(e)){for(let i=0;i<e.length;i++)bO(e[i],t,n,r,o);return o}return Rw(e)?(o.push(`.${e.styledComponentId}`),o):function(e){return"object"==typeof e&&null!==e&&fO in e}(e)?(n?(e.inject(n,r),o.push(e.getName(r))):o.push(e),o):gO(e)?o:Qw(e)?e.toString!==Object.prototype.toString?(o.push(e.toString()),o):(vO(e,o),o):(o.push(e.toString()),o)}const yO=ww(ew);class AO{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=Aw(yO,t),this.baseStyle=n,aO.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let o="";for(let r=0;r<this.rules.length;r++){const i=this.rules[r];if("string"==typeof i)o+=i;else if(i)if(pO(i)){const r=i(e);"string"==typeof r?o+=r:null!=r&&!1!==r&&(o+=Lw(bO(r,e,t,n)))}else o+=Lw(bO(i,e,t,n))}if(o){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+o:o;let i=this.dynamicNameCache.get(e);if(!i){if(i=bw(Aw(Aw(this.baseHash,n.hash),o)>>>0),this.dynamicNameCache.size>=200){const e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,i)}if(!t.hasNameForId(this.componentId,i)){const e=n(o,"."+i,void 0,this.componentId);t.insertRules(this.componentId,i,e)}r=zw(r,i)}}return r}}const wO=/&/g;function OO(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function _O(e){const t=e.length;let n="",r=0,o=0,i=0,a=!1,l=!1;for(let s=0;s<t;s++){const c=e.charCodeAt(s);if(0!==i||a||c!==uO||42!==e.charCodeAt(s+1))if(a)42===c&&e.charCodeAt(s+1)===uO&&(a=!1,s++);else if(34!==c&&39!==c||OO(e,s)){if(0===i)if(123===c)o++;else if(125===c){if(o--,o<0){l=!0;let n=s+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,o=0,s=n-1,r=n;continue}0===o&&(n+=e.substring(r,s+1),r=s+1)}else 59===c&&0===o&&(n+=e.substring(r,s+1),r=s+1)}else 0===i?i=c:i===c&&(i=0);else a=!0,s++}return l||0!==o||0!==i?(r<t&&0===o&&0===i&&(n+=e.substring(r)),n):e}function xO(e,t){const n=t+" ",r=","+n;for(let o=0;o<e.length;o++){const i=e[o];if("rule"===i.type){i.value=(n+i.value).replaceAll(",",r);const e=i.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];i.props=t}Array.isArray(i.children)&&"@keyframes"!==i.type&&xO(i.children,t)}return e}const CO=new aO,EO=function({options:e=fw,plugins:t=dw}=fw){let n,r,o;const i=(e,t,o)=>o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?`.${n}`:e,a=t.slice();a.push(e=>{e.type===nA&&e.value.includes("&")&&(o||(o=new RegExp(`\\${r}\\b`,"g")),e.props[0]=e.props[0].replace(wO,r).replace(o,i))}),e.prefix&&a.push(WA),a.push(LA);let l=[];const s=(d=a.concat((p=e=>l.push(e),function(e){e.root||(e=e.return)&&p(e)})),f=mA(d),function(e,t,n,r){for(var o="",i=0;i<f;i++)o+=d[i](e,t,n,r)||"";return o}),c=(t,i="",a="",c="&")=>{n=c,r=i,o=void 0;const u=function(e){const t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return _O(e);const r=e.length;let o="",i=0,a=0,l=0,s=0,c=0,u=!1;for(;a<r;){const t=e.charCodeAt(a);if(34!==t&&39!==t||OO(e,a))if(0===l)if(t===uO&&a+1<r&&42===e.charCodeAt(a+1)){for(a+=2;a+1<r&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==uO);)a++;a+=2}else if(40!==t)if(41!==t)if(s>0)a++;else if(42===t&&a+1<r&&e.charCodeAt(a+1)===uO)o+=e.substring(i,a),a+=2,i=a,u=!0;else if(t===uO&&a+1<r&&e.charCodeAt(a+1)===uO){for(o+=e.substring(i,a);a<r&&10!==e.charCodeAt(a);)a++;i=a,u=!0}else 123===t?c++:125===t&&c--,a++;else s>0&&s--,a++;else s++,a++;else a++;else 0===l?l=t:l===t&&(l=0),a++}return u?(i<r&&(o+=e.substring(i)),0===c?o:_O(o)):0===c?e:_O(e)}(t);let d=VA(a||i?a+" "+i+" { "+u+" }":u);return e.namespace&&(d=xO(d,e.namespace)),l=[],zA(d,s),l},u=e;var d,f,p;let h=yw;for(let e=0;e<t.length;e++)t[e].name||YA(15),h=Aw(h,t[e].name);return(null==u?void 0:u.namespace)&&(h=Aw(h,u.namespace)),(null==u?void 0:u.prefix)&&(h=Aw(h,"p")),c.hash=h!==yw?h.toString():"",c}(),kO=ra()().createContext({shouldForwardProp:void 0,styleSheet:CO,stylis:EO,stylisPlugins:void 0});kO.Consumer;const SO=ra()().createContext(void 0);SO.Consumer;const PO={};function DO(e,t){const n="string"!=typeof e?"sc":mw(e);PO[n]=(PO[n]||0)+1;const r=n+"-"+function(e){return bw(ww(e)>>>0)}(ew+n+PO[n]);return t?t+"-"+r:r}function MO(e,t,n){const r=Rw(e),o=e,i=!Ow(e),{attrs:a=dw,componentId:l=DO(t.displayName,t.parentComponentId),displayName:s=_w(e)}=t,c=t.displayName&&t.componentId?mw(t.displayName)+"-"+t.componentId:t.componentId||l,u=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a;let{shouldForwardProp:d}=t;if(r&&o.shouldForwardProp){const e=o.shouldForwardProp;if(t.shouldForwardProp){const n=t.shouldForwardProp;d=(t,r)=>e(t,r)&&n(t,r)}else d=e}const f=new AO(n,c,r?o.componentStyle:void 0);function p(e,t){return function(e,t,n){const{attrs:r,componentStyle:o,defaultProps:i,foldedComponentIds:a,styledComponentId:l,target:s}=e,c=ra()().useContext(SO),u=ra()().useContext(kO),d=e.shouldForwardProp||u.shouldForwardProp,f=function(e,t,n=fw){return e.theme!==n.theme&&e.theme||t||n.theme}(t,c,i)||fw,[p,h]=function(e,t,n){const r=Object.assign(Object.assign({},t),{className:void 0,theme:n});let o=null;const i=e.length>1;for(let t=0;t<e.length;t++){const n=e[t],a=Nw(n)?n(i?Object.assign({},r):r):n;for(const e in a)"className"===e?r.className=zw(r.className,a[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),a[e]):void 0===a[e]?e in r&&(void 0!==r[e]&&(o||(o=[])).push(e),r[e]=void 0):r[e]=a[e]}return"className"in t&&"string"==typeof t.className&&(r.className=zw(r.className,t.className)),[r,o]}(r,t,f),m=o.generateAndInjectStyles(p,u.styleSheet,u.stylis),g=p.as||s,v=Ow(g),b=function(e,t,n,r,o,i){const a={};for(const l in e)"$"===l[0]||"as"===l||"theme"===l&&e.theme===n||("forwardedAs"===l?void 0!==e.forwardedAs&&(a.as=e.forwardedAs):void 0===e[l]?"className"===l||o||null!==i&&-1!==i.indexOf(l)||r&&!r(l,t)||(a[l]=void 0):r&&!r(l,t)||(a[l]=e[l]));return a}(p,g,f,d,v,h);let y=zw(a,l);return m&&(y+=" "+m),p.className&&(y+=" "+p.className),b[v&&g.includes("-")?"class":"className"]=y,n&&(b.ref=n),(0,le().createElement)(g,b)}(h,e,t)}p.displayName=s;let h=ra()().forwardRef(p);return h.attrs=u,h.componentStyle=f,h.displayName=s,h.shouldForwardProp=d,h.foldedComponentIds=r?zw(o.foldedComponentIds,o.styledComponentId):"",h.styledComponentId=c,h.target=r?o.target:e,Object.defineProperty(h,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=r?function(e,...t){for(const n of t)Ww(e,n,!0);return e}({},o.defaultProps,e):e}}),Vw(h,()=>`.${h.styledComponentId}`),i&&Fw(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),h}var qO=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function $O(e,t){const n=[e[0]];for(let r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}const TO=e=>(lO.add(e),e);function BO(e,...t){if(Nw(e)||Qw(e))return TO(bO($O(dw,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?bO(n):TO(bO($O(n,t)))}function jO(e,t,n=fw){if(!t)throw YA(1,t);const r=(r,...o)=>e(t,n,BO(r,...o));return r.attrs=r=>jO(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>jO(e,t,Object.assign(Object.assign({},n),r)),r}const FO=e=>jO(MO,e),NO=FO;qO.forEach(e=>{NO[e]=FO(e)});const IO=Pp((0,la.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"}));function RO(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function zO(){var e=RO(["\n width: 100%;\n position: relative;\n"]);return zO=function(){return e},e}function LO(){var e=RO(["\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: var(--fb-color-icon-hover-bg, #f5f5f5);\n }\n"]);return LO=function(){return e},e}function QO(){var e=RO(["\n color: var(--fb-color-icon-muted, #767676);\n"]);return QO=function(){return e},e}var WO=NO.div(zO()),VO=NO.div.withConfig({shouldForwardProp:function(e){return"inputValue"!==e}})(LO(),function(e){return""===e.inputValue?"none":"flex"}),HO=NO(IO)(QO());function UO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ZO=/^@today(?:([+-])(\d+))?$/;const GO=function(e){if(!e)return e;var t=ZO.exec(e);if(!t)return e;var n,r,o=(r=3,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(n,r)||function(e,t){if(e){if("string"==typeof e)return UO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?UO(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[1],a=o[2],l=new Date;if(i&&a){var s=Number(a)*("-"===i?-1:1);l.setDate(l.getDate()+s)}return function(e){var t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r)}(l)};function YO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){YO(e,t,n[t])})}return e}function KO(e,t){if(null==e)return{};var n,r,o,i={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(n=Reflect.ownKeys(Object(e)),o=0;o<n.length;o++)r=n[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}if(i=function(e,t){if(null==e)return{};var n,r,o={},i=Object.getOwnPropertyNames(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,t),Object.getOwnPropertySymbols)for(n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++)r=n[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}const JO=function(e){var t,n=e.onChangeValue,r=e.hasClearButton,o=void 0!==r&&r,i=e.onClearCallback,a=e.controlProps,l=KO(e,["onChangeValue","hasClearButton","onClearCallback","controlProps"]),s=l.control,c=l.id,u=l.objectPathId,d=KO(l,["control","id","objectPathId"]),f=s.value,p=void 0===f?"":f,h=(s.displayName,s["custom-attributes"]),m=s.error,g=s.placeholder,v=s.required,b=s.hasEdited,y=KO(s,["value","displayName","custom-attributes","error","placeholder","required","hasEdited"]),A="date"===s.type?GO(null==h?void 0:h.defaultValue):null==h?void 0:h.defaultValue,w=Zy({onChangeValue:n,query:A,objectPathId:u,value:p,hasEdited:b}).textColor,O=m?"error":"",_=Vy["form-control"];_=O?_+" "+Xy[O]:_;var x,C,E=g?v?g+" *":g:"";return ra()().createElement(WO,null,ra()().createElement("input",(x=XO({role:"textbox","data-testid":"input-control-".concat(c),max:"date"===s.type?"9999-12-31":void 0,className:_,id:u||c,name:u||c,value:p,onChange:function(e){n({value:e.target.value,hasEdited:"edited"})},onWheel:function(e){var t=e.target;"number"===t.type&&t.blur()},placeholder:E,required:v},ub()(h,["defaultValue","mrnPreview","mrnSources"]),ub()(y,["displayName","placholder","control","error","defaultValue"]),ub()(d,["defaultValue","mrnPreview","mrnSources"])),C=null!=(C={pattern:s.pattern,style:XO({color:w,minWidth:o?"175px":""},null==a||null===(t=a.inputProps)||void 0===t?void 0:t.style)})?C:{},Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(C)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(C)).forEach(function(e){Object.defineProperty(x,e,Object.getOwnPropertyDescriptor(C,e))}),x)),o&&"date"===s.type&&ra()().createElement(VO,{inputValue:p},ra()().createElement(HO,{"data-testid":"input_clearButton",fontSize:"small",onClick:function(){n({value:""}),null==i||i()}})))};function e_(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function t_(){var e=e_(["\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 t_=function(){return e},e}function n_(){var e=e_(["\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 n_=function(){return e},e}function r_(){var e=e_(["\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 var(--fb-color-border, #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 var(--fb-color-border-focus, rgba(0, 0, 0, 0.87));\n }\n &::-moz-placeholder {\n color: var(--fb-color-text-placeholder, #999);\n opacity: 1;\n }\n &:-ms-input-placeholder {\n color: var(--fb-color-text-placeholder, #999);\n }\n &::-webkit-input-placeholder {\n color: var(--fb-color-text-placeholder, #999);\n }\n"]);return r_=function(){return e},e}var o_=NO.div(t_()),i_=NO.label(n_());NO(JO)(r_());const a_=Pp((0,la.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}));z();var l_=__webpack_require__(7319),s_={};s_.styleTagTransform=Ji()(),s_.setAttributes=Xi()(),s_.insert=Yi()().bind(null,"head"),s_.domAPI=Gi()(),s_.insertStyleElement=Ki()(),Zi()()(l_.A,s_);const c_=l_.A&&l_.A.locals?l_.A.locals:void 0;function u_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u_(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.")}()}var f_="var(--fb-color-accent-strong, var(--fb-color-accent, #3d91ff))";const p_=function(e){var t=e.handleDateChange,n=e.from,r=e.to,o=d_((0,le().useState)([{startDate:new Date,endDate:new Date,key:"selection"}]),2),i=o[0],a=o[1],l=d_((0,le().useState)(window.matchMedia("(max-width: 615px)").matches),2),s=l[0],c=l[1],u=d_((0,le().useState)(window.matchMedia("(max-width: 1200px)").matches),2),d=u[0],f=u[1];window.addEventListener("resize",function(){var e=window.matchMedia("(max-width: 1200px)").matches;e!==d&&f(e);var t=window.matchMedia("(max-width: 615px)").matches;t!==s&&c(t)}),(0,le().useEffect)(function(){var e=[],t=[];n&&(e=n.split("-")),r&&(t=r.split("-"));var o=n?new Date(Number(e[0]),Number(e[1])-1,Number(e[2])):new Date,i=r?new Date(Number(t[0]),Number(t[1])-1,Number(t[2])):o;a([{startDate:o,endDate:i,key:"selection"}])},[n,r]);var p=function(e,n){a(e),e[0].startDate!==e[0].endDate&&t(e[0],n)},h=function(){t(i[0])};return ra()().createElement("div",{className:c_.dateRangeWrapper},s?ra()().createElement("div",{style:{display:"flex",flexDirection:"column"}},ra()().createElement(z().ad,{onChange:function(e){return p([e.selection])},moveRangeOnFirstSelection:!1,rangeColors:[f_],color:f_,ranges:i,direction:"horizontal"}),ra()().createElement(Rh,{variant:"contained",size:"medium",sx:{display:"flex",alignItems:"center",alignSelf:"flex-end",marginRight:"16px",marginBottom:"16px",gap:"8px",width:"fit-content",backgroundColor:"var(--fb-color-accent-strong, var(--fb-color-accent, #4A96D2))",boxShadow:"none","&:hover":{backgroundColor:"var(--fb-color-accent-hover, #0B5BA6)",boxShadow:"none"},"&.Mui-focusVisible":{outline:"var(--fb-focus-ring, none)",outlineOffset:"1px"}},onClick:h},ra()().createElement("p",{style:{all:"unset"}},"CONFIRM"),ra()().createElement(a_,{style:{color:"white",width:"20px",height:"20px"}}))):ra()().createElement("div",{style:{display:"flex",flexDirection:"column"}},ra()().createElement("div",{style:{display:"flex"}},ra()().createElement(z().HY,{ranges:i,onChange:function(e){return p([e.selection],!0)},rangeColors:[f_]}),ra()().createElement(z().ad,{ranges:i,onChange:function(e){return p([e.selection])},showDateDisplay:!1,rangeColors:[f_],color:f_,direction:"horizontal",months:d?1:2,"data-testid":"date-range-picker"})),ra()().createElement(Rh,{variant:"contained",size:"medium",sx:{display:"flex",alignItems:"center",alignSelf:"flex-end",marginRight:"16px",marginBottom:"16px",gap:"8px",width:"fit-content",backgroundColor:"var(--fb-color-accent-strong, var(--fb-color-accent, #4A96D2))",boxShadow:"none","&:hover":{backgroundColor:"var(--fb-color-accent-hover, #0B5BA6)",boxShadow:"none"},"&.Mui-focusVisible":{outline:"var(--fb-focus-ring, none)",outlineOffset:"1px"}},onClick:h},ra()().createElement("p",{style:{all:"unset"}},"CONFIRM"),ra()().createElement(a_,{style:{color:"white",width:"20px",height:"20px"}}))))};function h_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h_(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 g_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){v_(e,t,n[t])})}return e}function y_(e){return y_="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},y_(e)}function A_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w_(e){var t=function(e,t){if("object"!=y_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=y_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==y_(t)?t:t+""}function O_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w_(r.key),r)}}function __(e,t,n){return t&&O_(e.prototype,t),n&&O_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function x_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C_(e,t){return C_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C_(e,t)}function E_(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&&C_(e,t)}function k_(e,t){if(t&&("object"==y_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x_(e)}function S_(e){return S_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S_(e)}function P_(e,t,n){return(t=w_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D_(e){if(Array.isArray(e))return e}function M_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function q_(e,t){if(e){if("string"==typeof e)return M_(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M_(e,t):void 0}}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 T_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function B_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T_(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var j_={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)}},F_=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};A_(this,e),this.init(t,n)}return __(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||j_,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),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,B_(B_({},{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}()),N_=function(){function e(){A_(this,e),this.observers={}}return __(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.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,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function I_(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}function R_(e){return null==e?"":""+e}function z_(e,t,n){function r(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=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function L_(e,t,n){var r=z_(e,t,Object);r.obj[r.k]=n}function Q_(e,t){var n=z_(e,t),r=n.obj,o=n.k;if(r)return r[o]}function W_(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):W_(e[r],t[r],n):e[r]=t[r]);return e}function V_(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var H_={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function U_(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return H_[e]}):e}var Z_="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,G_=[" ",",","?","!",";"];function Y_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,l=r.slice(i,i+a).join(n),s=o[l];void 0===s&&r.length>i+a;)a++,s=o[l=r.slice(i,i+a).join(n)];if(void 0===s)return;if(null===s)return null;if(t.endsWith(l)){if("string"==typeof s)return s;if(l&&"string"==typeof s[l])return s[l]}var c=r.slice(i+a).join(n);return c?Y_(s,c,n):void 0}o=o[r[i]]}return o}}function X_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X_(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var J_=function(e){E_(o,e);var t,n,r=(t=o,n=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,r=S_(t);if(n){var o=S_(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return k_(this,e)});function o(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return A_(this,o),t=r.call(this),Z_&&N_.call(x_(t)),t.data=e||{},t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return __(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,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var l=Q_(this.data,a);return l||!i||"string"!=typeof n?l:Y_(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){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];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),L_(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var l=Q_(this.data,a)||{};r?W_(l,n,o):l=K_(K_({},l),n),L_(this.data,a,l),i.silent||this.emit("added",e,t,n)}},{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?K_(K_({},{}),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}(N_),ex={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))}),t}};function tx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tx(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var rx={},ox=function(e){E_(o,e);var t,n,r=(t=o,n=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,r=S_(t);if(n){var o=S_(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return k_(this,e)});function o(e){var t,n,i,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return A_(this,o),t=r.call(this),Z_&&N_.call(x_(t)),n=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i=e,a=x_(t),n.forEach(function(e){i[e]&&(a[e]=i[e])}),t.options=l,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=F_.create("translator"),t}return __(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 n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=G_.filter(function(e){return t.indexOf(e)<0&&n.indexOf(e)<0});if(0===r.length)return!0;var o=new RegExp("(".concat(r.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}(e,n,r));if(i&&!a){var l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:o};var s=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),e=s.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,n){var r=this;if("object"!==y_(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===y_(t)&&(t=nx({},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,l=this.extractFromKey(e[e.length-1],t),s=l.key,c=l.namespaces,u=c[c.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(u).concat(p).concat(s),usedKey:s,exactUsedKey:s,usedLng:d,usedNS:u}:"".concat(u).concat(p).concat(s)}return i?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:u}:s}var h=this.resolve(e,t),m=h&&h.res,g=h&&h.usedKey||s,v=h&&h.exactUsedKey||s,b=Object.prototype.toString.apply(m),y=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(b)<0&&("string"!=typeof y||"[object Array]"!==b)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,m,nx(nx({},t),{},{ns:c})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");return i?(h.res=w,h):w}if(a){var O="[object Array]"===b,_=O?[]:{},x=O?v:g;for(var C in m)if(Object.prototype.hasOwnProperty.call(m,C)){var E="".concat(x).concat(a).concat(C);_[C]=this.translate(E,nx(nx({},t),{joinArrays:!1,ns:c})),_[C]===E&&(_[C]=m[C])}m=_}}else if(A&&"string"==typeof y&&"[object Array]"===b)(m=m.join(y))&&(m=this.extendTranslation(m,e,t,n));else{var k=!1,S=!1,P=void 0!==t.count&&"string"!=typeof t.count,D=o.hasDefaultValue(t),M=P?this.pluralResolver.getSuffix(d,t.count,t):"",q=t["defaultValue".concat(M)]||t.defaultValue;!this.isValidLookup(m)&&D&&(k=!0,m=q),this.isValidLookup(m)||(S=!0,m=s);var $=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:m,T=D&&q!==m&&this.options.updateMissing;if(S||k||T){if(this.logger.log(T?"updateKey":"missingKey",d,u,s,T?q:m),a){var B=this.resolve(s,nx(nx({},t),{},{keySeparator:!1}));B&&B.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 j=[],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++)j.push(F[N]);else"all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(t.lng||this.language):j.push(t.lng||this.language);var I=function(e,n,o){var i=D&&o!==m?o:$;r.options.missingKeyHandler?r.options.missingKeyHandler(e,u,n,i,T,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,u,n,i,T,t),r.emit("missingKey",e,u,n,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?j.forEach(function(e){r.pluralResolver.getSuffixes(e,t).forEach(function(n){I([e],s+n,t["defaultValue".concat(n)]||q)})}):I(j,s,q))}m=this.extendTranslation(m,e,t,h,n),S&&m===s&&this.options.appendNamespaceToMissingKey&&(m="".concat(u,":").concat(s)),(S||k)&&this.options.parseMissingKeyHandler&&(m="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(u,":").concat(s):s,k?m:void 0):this.options.parseMissingKeyHandler(m))}return i?(h.res=m,h):m}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,nx(nx({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(nx(nx({},n),{interpolation:nx(nx({},this.options.interpolation),n.interpolation)}));var a,l="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=nx(nx({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),l){var u=e.match(this.interpolator.nestingRegexp);a<(u&&u.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,f="string"==typeof d?[d]:d;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=ex.handle(f,e,t,this.options&&this.options.postProcessPassResolved?nx({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,l),c=s.key;n=c;var u=s.namespaces;a.options.fallbackNS&&(u=u.concat(a.options.fallbackNS));var d=void 0!==l.count&&"string"!=typeof l.count,f=d&&!l.ordinal&&0===l.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==l.context&&("string"==typeof l.context||"number"==typeof l.context)&&""!==l.context,h=l.lngs?l.lngs:a.languageUtils.toResolveHierarchy(l.lng||a.language,l.fallbackLng);u.forEach(function(e){a.isValidLookup(t)||(i=e,!rx["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(rx["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" 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(n){if(!a.isValidLookup(t)){o=n;var i,s=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(s,c,n,e,l);else{var u;d&&(u=a.pluralResolver.getSuffix(n,l.count,l));var h="".concat(a.options.pluralSeparator,"zero");if(d&&(s.push(c+u),f&&s.push(c+h)),p){var m="".concat(c).concat(a.options.contextSeparator).concat(l.context);s.push(m),d&&(s.push(m+u),f&&s.push(m+h))}}for(;i=s.pop();)a.isValidLookup(t)||(r=i,t=a.getResource(n,e,i,l))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,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,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{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}(N_);function ix(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ax=function(){function e(t){A_(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=F_.create("languageUtils")}return __(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"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ix(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ix(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=ix(n[2].toLowerCase()))),n.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,n=this;return e?(e.forEach(function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find(function(e){return e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:0===e.indexOf(r)?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 n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.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)),r.forEach(function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))}),o}}]),e}(),lx=[{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}],sx={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)}},cx=["v1","v2","v3"],ux={zero:0,one:1,two:2,few:3,many:4,other:5},dx=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};A_(this,e),this.languageUtils=t,this.options=r,this.logger=F_.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=(n={},lx.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:sx[e.fc]}})}),n)}return __(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]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(function(e,t){return ux[e]-ux[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):r.numbers.map(function(r){return t.getSuffix(e,r,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return n.options.prepend&&o.toString()?n.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&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!cx.includes(this.options.compatibilityJSON)}}]),e}();function fx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function px(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fx(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hx(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=function(e,t,n){var r=Q_(e,n);return void 0!==r?r:Q_(t,n)}(e,t,n);return!i&&o&&"string"==typeof n&&void 0===(i=Y_(e,n,r))&&(i=Y_(t,n,r)),i}var mx=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};A_(this,e),this.logger=F_.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return __(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:U_,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?V_(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?V_(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?V_(t.nestingPrefix):t.nestingPrefixEscaped||V_("$t("),this.nestingSuffix=t.nestingSuffix?V_(t.nestingSuffix):t.nestingSuffixEscaped||V_(")"),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 n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,l=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(l.formatSeparator)<0){var o=hx(t,s,e,l.options.keySeparator,l.options.ignoreJSONStructure);return l.alwaysFormat?l.format(o,void 0,n,px(px(px({},r),t),{},{interpolationkey:e})):o}var i=e.split(l.formatSeparator),a=i.shift().trim(),c=i.join(l.formatSeparator).trim();return l.format(hx(t,s,a,l.options.keySeparator,l.options.ignoreJSONStructure),c,n,px(px(px({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return l.escapeValue?c(l.escape(e)):c(e)}}].forEach(function(t){for(a=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(i=u(n)))if("function"==typeof d){var s=d(e,o,r);i="string"==typeof s?s:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(f){i=o[0];continue}l.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),i=""}else"string"==typeof i||l.useRawValueToEscape||(i=R_(i));var c=t.safeValue(i);if(e=e.replace(o[0],c),f?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=l.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,r,o,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0];var a=(i=this.interpolate(i,o)).match(/'/g),l=i.match(/"/g);(a&&a.length%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o=px(px({},t),o))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){var s=[];(o=(o=px({},a)).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;var c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=u.shift(),s=u,c=!0}if((r=t(l.call(this,n[1].trim(),o),o))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=R_(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=s.reduce(function(e,t){return i.format(e,t,a.lng,px(px({},a),{},{interpolationkey:n[1].trim()}))},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function gx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gx(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bx(e){var t={};return function(n,r,o){var i=r+JSON.stringify(o),a=t[i];return a||(a=e(r,o),t[i]=a),a(n)}}var yx=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};A_(this,e),this.logger=F_.create("formatter"),this.options=t,this.formats={number:bx(function(e,t){var n=new Intl.NumberFormat(e,vx({},t));return function(e){return n.format(e)}}),currency:bx(function(e,t){var n=new Intl.NumberFormat(e,vx(vx({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:bx(function(e,t){var n=new Intl.DateTimeFormat(e,vx({},t));return function(e){return n.format(e)}}),relativetime:bx(function(e,t){var n=new Intl.RelativeTimeFormat(e,vx({},t));return function(e){return n.format(e,t.range||"day")}}),list:bx(function(e,t){var n=new Intl.ListFormat(e,vx({},t));return function(e){return n.format(e)}})},this.init(t)}return __(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()]=bx(t)}},{key:"format",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(function(e,t){var i=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(function(e){if(e){var t=D_(i=e.split(":"))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||q_(i)||$_(),r=t[0],o=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[r.trim()]||(n[r.trim()]=o),"false"===o&&(n[r.trim()]=!1),"true"===o&&(n[r.trim()]=!0),isNaN(o)||(n[r.trim()]=parseInt(o,10))}var i})}return{formatName:t,formatOptions:n}}(t),a=i.formatName,l=i.formatOptions;if(r.formats[a]){var s=e;try{var c=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},u=c.locale||c.lng||o.locale||o.lng||n;s=r.formats[a](e,u,vx(vx(vx({},l),o),c))}catch(e){r.logger.warn(e)}return s}return r.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function Ax(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ax(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ax(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ox=function(e){E_(o,e);var t,n,r=(t=o,n=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,r=S_(t);if(n){var o=S_(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return k_(this,e)});function o(e,t,n){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return A_(this,o),i=r.call(this),Z_&&N_.call(x_(i)),i.backend=e,i.store=t,i.services=n,i.languageUtils=n.languageUtils,i.options=a,i.logger=F_.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(n,a.backend,a),i}return __(o,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i={},a={},l={},s={};return e.forEach(function(e){var r=!0;t.forEach(function(t){var l="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[l]=2:o.state[l]<0||(1===o.state[l]?void 0===a[l]&&(a[l]=!0):(o.state[l]=1,r=!1,void 0===a[l]&&(a[l]=!0),void 0===i[l]&&(i[l]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(l[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(s)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(n){var r,l,s,c,u;r=n.loaded,l=i,(c=(s=z_(r,[o],Object)).obj)[u=s.k]=c[u]||[],c[u].push(l),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var r=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:n,tried:o,wait:i,callback:a});else{this.readingCalls++;var l=function(l,s){if(r.readingCalls--,r.waitingReads.length>0){var c=r.waitingReads.shift();r.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}l&&s&&o<r.maxRetries?setTimeout(function(){r.read.call(r,e,t,n,o+1,2*i,a)},i):a(l,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,l);try{var c=s(e,t);c&&"function"==typeof c.then?c.then(function(e){return l(null,e)}).catch(l):l(null,c)}catch(e){l(e)}}}},{key:"prepareLoading",value:function(e,t){var n=this,r=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,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)})}},{key:"saveMissing",value:function(e,t,n,r,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(n,'" 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!=n&&""!==n){if(this.backend&&this.backend.create){var l=wx(wx({},i),{},{isUpdate:o}),s=this.backend.create.bind(this.backend);if(s.length<6)try{var c;(c=5===s.length?s(e,t,n,r,l):s(e,t,n,r))&&"function"==typeof c.then?c.then(function(e){return a(null,e)}).catch(a):a(null,c)}catch(e){a(e)}else s(e,t,n,r,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}]),o}(N_);function _x(){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"===y_(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===y_(e[2])||"object"===y_(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function xx(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 Cx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ex(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cx(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kx(){}var Sx=function(e){E_(o,e);var t,n,r=(t=o,n=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,r=S_(t);if(n){var o=S_(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return k_(this,e)});function o(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(A_(this,o),e=r.call(this),Z_&&N_.call(x_(e)),e.options=xx(n),e.services={},e.logger=F_,e.modules={external:[]},t=x_(e),Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(function(e){"function"==typeof t[e]&&(t[e]=t[e].bind(t))}),i&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,i),k_(e,x_(e));setTimeout(function(){e.init(n,i)},0)}return e}return __(o,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=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 r=_x();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=Ex(Ex(Ex({},r),this.options),xx(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Ex(Ex({},r.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?F_.init(o(this.modules.logger),this.options):F_.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=yx);var a=new ax(this.options);this.store=new J_(this.options.resources,this.options);var l=this.services;l.logger=F_,l.resourceStore=this.store,l.languageUtils=a,l.pluralResolver=new dx(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!i||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(l.formatter=o(i),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new mx(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new Ox(o(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))}),this.modules.languageDetector&&(l.languageDetector=o(this.modules.languageDetector),l.languageDetector.init&&l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=o(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new ox(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=kx),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[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 n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var c=I_(),u=function(){var t=function(t,r){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),c.resolve(r),n(t,r)};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?u():setTimeout(u,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kx,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};r?i(r):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),n(e)})}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=I_();return e||(e=this.languages),t||(t=this.options.ns),n||(n=kx),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{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&&ex.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 n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=I_();this.emit("languageChanging",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},i=function(i){e||i||!n.services.languageDetector||(i=[]);var a="string"==typeof i?i:n.services.languageUtils.getBestMatchFromCodes(i);a&&(n.language||o(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,function(e){!function(e,i){i?(o(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,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()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==y_(o)){for(var a=arguments.length,l=new Array(a>2?a-2:0),s=2;s<a;s++)l[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(l))}else i=Ex({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||n||e.keyPrefix;var c,u=r.options.keySeparator||".";return c=i.keyPrefix&&Array.isArray(t)?t.map(function(e){return"".concat(i.keyPrefix).concat(u).concat(e)}):i.keyPrefix?"".concat(i.keyPrefix).concat(u).concat(t):t,r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,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,n=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 r=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var l=n.precheck(this,a);if(void 0!==l)return l}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=I_();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=I_();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter(function(e){return r.indexOf(e)<0});return o.length?(this.options.preload=r.concat(o),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(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 ax(_x());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]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kx,r=Ex(Ex(Ex({},this.options),t),{isClone:!0}),i=new o(r);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=Ex({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new ox(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))}),i.init(r,n),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}(N_);P_(Sx,"createInstance",function(){return new Sx(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)});var Px=Sx.createInstance();Px.createInstance=Sx.createInstance,Px.createInstance,Px.dir,Px.init,Px.loadResources,Px.reloadResources,Px.use,Px.changeLanguage,Px.getFixedT,Px.t,Px.exists,Px.setDefaultNamespace,Px.hasLoadedNamespace,Px.loadNamespaces,Px.loadLanguages;var Dx="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function Mx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qx(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}function $x(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var Tx={};function Bx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&Tx[t[0]]||("string"==typeof t[0]&&(Tx[t[0]]=new Date),$x.apply(void 0,t))}function jx(e,t,n){e.loadNamespaces(t,function(){e.isInitialized?n():e.on("initialized",function t(){setTimeout(function(){e.off("initialized",t)},0),n()})})}var Fx=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Nx={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Ix=function(e){return Nx[e]};function Rx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rx(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Lx,Qx={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(Fx,Ix)}},Wx={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Qx=zx(zx({},Qx),e)}(e.options.react),function(e){Lx=e}(e)}},Vx=(0,le().createContext)(),Hx=function(){function e(){A_(this,e),this.usedNamespaces={}}return __(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 Ux(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ux(Object(n),!0).forEach(function(t){P_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ux(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=(0,le().useContext)(Vx)||{},o=r.i18n,i=r.defaultNS,a=n||o||Lx;if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Hx),!a){Bx("You will need to pass in an i18next instance by using initReactI18next");var l=function(e,t){return"string"==typeof t?t:t&&"object"===y_(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},s=[l,{},!1];return s.t=l,s.i18n={},s.ready=!1,s}a.options.react&&void 0!==a.options.react.wait&&Bx("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=Zx(Zx(Zx({},Qx),a.options.react),t),u=c.useSuspense,d=c.keyPrefix,f=i||a.options&&a.options.defaultNS;f="string"==typeof f?[f]:f||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(f);var p=(a.isInitialized||a.initializedStoreOnce)&&f.every(function(e){return function(e,t){var n=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,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}(e,t,n):(Bx("i18n.languages were undefined or empty",t.languages),!0)}(e,a,c)});function h(){return a.getFixedT(null,"fallback"===c.nsMode?f:f[0],d)}var m,g,v,b,y=(v=(0,le().useState)(h),b=2,D_(v)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(v,b)||q_(v,b)||$_()),A=y[0],w=y[1],O=f.join(),_=(m=O,g=(0,le().useRef)(),(0,le().useEffect)(function(){g.current=m},[m,void 0]),g.current),x=(0,le().useRef)(!0);(0,le().useEffect)(function(){var e=c.bindI18n,t=c.bindI18nStore;function n(){x.current&&w(h)}return x.current=!0,p||u||jx(a,f,function(){x.current&&w(h)}),p&&_&&_!==O&&x.current&&w(h),e&&a&&a.on(e,n),t&&a&&a.store.on(t,n),function(){x.current=!1,e&&a&&e.split(" ").forEach(function(e){return a.off(e,n)}),t&&a&&t.split(" ").forEach(function(e){return a.store.off(e,n)})}},[a,O]);var C=(0,le().useRef)(!0);(0,le().useEffect)(function(){x.current&&!C.current&&w(h),C.current=!1},[a,d]);var E=[A,a,p];if(E.t=A,E.i18n=a,E.ready=p,p)return E;if(!p&&!u)return E;throw new Promise(function(e){jx(a,f,function(){e()})})}var Yx=[],Xx=Yx.forEach,Kx=Yx.slice,Jx=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,eC={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var n=function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===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);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*n*1e3)),r&&(o.domain=r),document.cookie=function(e,t,n){var r=n||{};r.path=r.path||"/";var o=encodeURIComponent(t),i="".concat(e,"=").concat(o);if(r.maxAge>0){var a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");i+="; Max-Age=".concat(Math.floor(a))}if(r.domain){if(!Jx.test(r.domain))throw new TypeError("option domain is invalid");i+="; Domain=".concat(r.domain)}if(r.path){if(!Jx.test(r.path))throw new TypeError("option path is invalid");i+="; Path=".concat(r.path)}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");i+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.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)}},tC={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1).split("&"),o=0;o<r.length;o++){var i=r[o].indexOf("=");i>0&&r[o].substring(0,i)===e.lookupQuerystring&&(t=r[o].substring(i+1))}}return t}},nC=null,rC=function(){if(null!==nC)return nC;try{nC="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){nC=!1}return nC},oC={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&rC()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&rC()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},iC=null,aC=function(){if(null!==iC)return iC;try{iC="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){iC=!1}return iC},lC={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&aC()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&aC()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},sC={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},cC={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},uC={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},dC={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,n="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(n)return n[t]}},fC=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};A_(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return __(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return Xx.call(Kx.call(arguments,1),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),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=n,this.addDetector(eC),this.addDetector(tC),this.addDetector(oC),this.addDetector(lC),this.addDetector(sC),this.addDetector(cC),this.addDetector(uC),this.addDetector(dC)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach(function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"==typeof r&&(r=[r]),r&&(n=n.concat(r))}}),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)}))}}]),e}();fC.type="languageDetector";function pC(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}Px.use(fC).use(Wx).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 hC=0;function mC(e){return"__private_"+hC+++"_"+e}function gC(e,t,n){const r=[];return e.forEach(e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})),r}function vC(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,"$$$$")),r=gC(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}const bC=e=>{throw new Error(`missing string: ${e}`)};var yC=mC("onMissingKey"),AC=mC("apply");class wC{constructor(e,t){let{onMissingKey:n=bC}=void 0===t?{}:t;Object.defineProperty(this,AC,{value:OC}),Object.defineProperty(this,yC,{writable:!0,value:void 0}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(pC(this,AC)[AC],this):pC(this,AC)[AC](e),pC(this,yC)[yC]=n}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){let n=this.locale.strings[e];if(null==n&&(pC(this,yC)[yC](e),n=e),"object"==typeof n){if(t&&void 0!==t.smart_count)return vC(n[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 n)throw new Error("string was not a string");return vC(n,t)}}function OC(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 _C=Mx(function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,l){var s=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,l=i.length;a<l;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,l])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,function r(){n.apply(this,arguments),e.off(t,r)})},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e}),xC=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},CC="object"==typeof Dx&&Dx&&Dx.Object===Object&&Dx,EC="object"==typeof self&&self&&self.Object===Object&&self,kC=CC||EC||Function("return this")(),SC=kC,PC=/\s/,DC=/^\s+/,MC=kC.Symbol,qC=MC,$C=Object.prototype,TC=$C.hasOwnProperty,BC=$C.toString,jC=qC?qC.toStringTag:void 0,FC=Object.prototype.toString,NC=function(e){var t=TC.call(e,jC),n=e[jC];try{e[jC]=void 0;var r=!0}catch(e){}var o=BC.call(e);return r&&(t?e[jC]=n:delete e[jC]),o},IC=MC?MC.toStringTag:void 0,RC=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":IC&&IC in Object(e)?NC(e):function(e){return FC.call(e)}(e)},zC=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&PC.test(e.charAt(t)););return t}(e)+1).replace(DC,""):e},LC=xC,QC=/^[-+]0x[0-9a-f]+$/i,WC=/^0b[01]+$/i,VC=/^0o[0-7]+$/i,HC=parseInt,UC=xC,ZC=function(){return SC.Date.now()},GC=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]"==RC(e)}(e))return NaN;if(LC(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=LC(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=zC(e);var n=WC.test(e);return n||VC.test(e)?HC(e.slice(2),n?2:8):QC.test(e)?NaN:+e},YC=Math.max,XC=Math.min,KC=xC,JC=Mx(function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return KC(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),function(e,t,n){var r,o,i,a,l,s,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-c>=i}function m(){var e=ZC();if(h(e))return g(e);l=setTimeout(m,function(e){var n=t-(e-s);return d?XC(n,i-(e-c)):n}(e))}function g(e){return l=void 0,f&&r?p(e):(r=o=void 0,a)}function v(){var e=ZC(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(m,t),u?p(e):a}(s);if(d)return clearTimeout(l),l=setTimeout(m,t),p(s)}return void 0===l&&(l=setTimeout(m,t)),a}return t=GC(t)||0,UC(n)&&(u=!!n.leading,i=(d="maxWait"in n)?YC(GC(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=o=l=void 0},v.flush=function(){return void 0===l?a:g(ZC())},v}(e,t,{leading:r,maxWait:t,trailing:o})});function eE(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var tE=0;function nE(e){return"__private_"+tE+++"_"+e}var rE=nE("callbacks"),oE=nE("publish");class iE{constructor(){Object.defineProperty(this,oE,{value:aE}),this.state={},Object.defineProperty(this,rE,{writable:!0,value:new Set})}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,eE(this,oE)[oE](t,n,e)}subscribe(e){return eE(this,rE)[rE].add(e),()=>{eE(this,rE)[rE].delete(e)}}}function aE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];eE(this,rE)[rE].forEach(e=>{e(...t)})}function lE(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)}}iE.VERSION="3.2.2";var sE={__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 cE(e){var t;if(e.type)return e.type;const n=e.name?null==(t=lE(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in sE?sE[n]:"application/octet-stream"}function uE(e){let t="";return e.replace(/[^A-Z0-9]/gi,e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/"))+t}function dE(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 n=t[1].split(".",2),r=parseInt(n[0],10),o=parseInt(n[1],10);return r<15||15===r&&o<15063||r>18||18===r&&o>=18218}function fE(e){return e<10?`0${e}`:e.toString()}function pE(){const e=new Date;return`${fE(e.getHours())}:${fE(e.getMinutes())}:${fE(e.getSeconds())}`}const hE={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${pE()}]`,...t)}},mE={debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${pE()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${pE()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${pE()}]`,...t)}};var gE=Mx(function(e){if("number"!=typeof e||Number.isNaN(e))throw new TypeError("Expected a number, got "+typeof e);const t=e<0;let n=Math.abs(e);if(t&&(n=-n),0===n)return"0 B";const r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.min(Math.floor(Math.log(n)/Math.log(1024)),r.length-1),i=Number(n/1024**o),a=r[o];return`${i>=10||i%1==0?Math.round(i):i.toFixed(1)} ${a}`});function vE(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}vE.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var bE=/[\/\+\.]/,yE=Mx(function(e,t){function n(t){var n=function(e,t,n){var r=new vE(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,bE);return n&&n.length>=2}return t?n(t.split(";")[0]):n});const AE={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class wE extends Error{constructor(e,t){var n;super(e),this.isRestriction=!0,this.isUserFacing=null==(n=null==t?void 0:t.isUserFacing)||n,null!=t&&t.file&&(this.file=t.file)}}class OE{constructor(e,t){this.i18n=t,this.getOpts=()=>{var t;const n=e();if(null!=(null==(t=n.restrictions)?void 0:t.allowedFileTypes)&&!Array.isArray(n.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return n}}validateAggregateRestrictions(e,t){const{maxTotalFileSize:n,maxNumberOfFiles:r}=this.getOpts().restrictions;if(r&&e.filter(e=>!e.isGhost).length+t.length>r)throw new wE(`${this.i18n("youCanOnlyUploadX",{smart_count:r})}`);if(n){let r=e.reduce((e,t)=>{var n;return e+(null!=(n=t.size)?n:0)},0);for(const e of t)if(null!=e.size&&(r+=e.size,r>n))throw new wE(this.i18n("exceedsSize",{size:gE(n),file:e.name}))}}validateSingleFile(e){const{maxFileSize:t,minFileSize:n,allowedFileTypes:r}=this.getOpts().restrictions;if(r&&!r.some(t=>t.includes("/")?!!e.type&&yE(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.slice(1).toLowerCase())){const t=r.join(", ");throw new wE(this.i18n("youCanOnlyUploadFileTypes",{types:t}),{file:e})}if(t&&null!=e.size&&e.size>t)throw new wE(this.i18n("exceedsSize",{size:gE(t),file:e.name}),{file:e});if(n&&null!=e.size&&e.size<n)throw new wE(this.i18n("inferiorSize",{size:gE(n)}),{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 wE(this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}getMissingRequiredMetaFields(e){const t=new wE(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})),{requiredMetaFields:n}=this.getOpts().restrictions,r=[];for(const t of n)Object.hasOwn(e.meta,t)&&""!==e.meta[t]||r.push(t);return{missingFields:r,error:t}}}var _E={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 xE,CE;function EE(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var kE=0;function SE(e){return"__private_"+kE+++"_"+e}const PE={totalProgress:0,allowNewUpload:!0,error:null,recoveredState:null};var DE=SE("plugins"),ME=SE("restricter"),qE=SE("storeUnsubscribe"),$E=SE("emitter"),TE=SE("preProcessors"),BE=SE("uploaders"),jE=SE("postProcessors"),FE=SE("informAndEmit"),NE=SE("checkRequiredMetaFieldsOnFile"),IE=SE("checkRequiredMetaFields"),RE=SE("assertNewUploadAllowed"),zE=SE("transformFile"),LE=SE("startIfAutoProceed"),QE=SE("checkAndUpdateFileState"),WE=SE("addListeners"),VE=SE("updateOnlineStatus"),HE=SE("requestClientById"),UE=SE("createUpload"),ZE=SE("getUpload"),GE=SE("removeUpload"),YE=SE("runUpload");xE=Symbol.for("uppy test: getPlugins"),CE=Symbol.for("uppy test: createUpload");class XE{constructor(e){Object.defineProperty(this,YE,{value:ck}),Object.defineProperty(this,GE,{value:sk}),Object.defineProperty(this,ZE,{value:lk}),Object.defineProperty(this,UE,{value:ak}),Object.defineProperty(this,WE,{value:ik}),Object.defineProperty(this,QE,{value:ok}),Object.defineProperty(this,LE,{value:rk}),Object.defineProperty(this,zE,{value:nk}),Object.defineProperty(this,RE,{value:tk}),Object.defineProperty(this,IE,{value:ek}),Object.defineProperty(this,NE,{value:JE}),Object.defineProperty(this,FE,{value:KE}),Object.defineProperty(this,DE,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,ME,{writable:!0,value:void 0}),Object.defineProperty(this,qE,{writable:!0,value:void 0}),Object.defineProperty(this,$E,{writable:!0,value:_C()}),Object.defineProperty(this,TE,{writable:!0,value:new Set}),Object.defineProperty(this,BE,{writable:!0,value:new Set}),Object.defineProperty(this,jE,{writable:!0,value:new Set}),this.scheduledAutoProceed=null,this.wasOffline=!1,this.calculateProgress=JC((e,t)=>{const n=this.getFile(null==e?void 0:e.id);if(null==e||!n)return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);if(100===n.progress.percentage)return void this.log(`Not setting progress for a file that has been already uploaded: ${e.id}`);const r=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...n.progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:r?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()},500,{leading:!0,trailing:!0}),Object.defineProperty(this,VE,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,HE,{writable:!0,value:new Map}),this.defaultLocale=_E;const t={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:AE,meta:{},onBeforeFileAdded:(e,t)=>!Object.hasOwn(t,e.id),onBeforeUpload:e=>e,store:new iE,logger:hE,infoTimeout:5e3},n={...t,...e};this.opts={...n,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=mE),this.log(`Using Core v${XE.VERSION}`),this.i18nInit(),this.store=this.opts.store,this.setState({...PE,plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:dE(),individualCancellation:!0,resumableUploads:!1},meta:{...this.opts.meta},info:[]}),EE(this,ME)[ME]=new OE(()=>this.opts,this.i18n),EE(this,qE)[qE]=this.store.subscribe((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),EE(this,WE)[WE]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];EE(this,$E)[$E].emit(e,...n)}on(e,t){return EE(this,$E)[$E].on(e,t),this}once(e,t){return EE(this,$E)[$E].once(e,t),this}off(e,t){return EE(this,$E)[$E].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[n,r]=e;return[n,{...t[n],...r}]}))}})}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 wC([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},n={};Object.keys(t).forEach(r=>{n[r]={...t[r],progress:{...t[r].progress,...e}}}),this.setState({files:n,...PE}),this.emit("reset-progress")}clearUploadedFiles(){this.setState({...PE,files:{}})}addPreProcessor(e){EE(this,TE)[TE].add(e)}removePreProcessor(e){return EE(this,TE)[TE].delete(e)}addPostProcessor(e){EE(this,jE)[jE].add(e)}removePostProcessor(e){return EE(this,jE)[jE].delete(e)}addUploader(e){EE(this,BE)[BE].add(e)}removeUploader(e){return EE(this,BE)[BE].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}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:n}=this.getState(),r=Object.values(e),o=r.filter(e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted}),i=r.filter(e=>!e.progress.uploadStarted),a=r.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess),l=r.filter(e=>e.progress.uploadStarted),s=r.filter(e=>e.isPaused),c=r.filter(e=>e.progress.uploadComplete),u=r.filter(e=>e.error),d=o.filter(e=>!e.isPaused),f=r.filter(e=>e.progress.preprocess||e.progress.postprocess);return{newFiles:i,startedFiles:a,uploadStartedFiles:l,pausedFiles:s,completeFiles:c,erroredFiles:u,inProgressFiles:o,inProgressNotPausedFiles:d,processingFiles:f,isUploadStarted:l.length>0,isAllComplete:100===t&&c.length===r.length&&0===f.length,isAllErrored:!!n&&u.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some(e=>e.isGhost)}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{EE(this,ME)[ME].validate(t,[e])}catch(e){return e}return null}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){EE(this,RE)[RE](e);const{nextFilesState:t,validFilesToAdd:n,errors:r}=EE(this,QE)[QE]([e]),o=r.filter(e=>e.isRestriction);if(EE(this,FE)[FE](o),r.length>0)throw r[0];this.setState({files:t});const[i]=n;return this.emit("file-added",i),this.emit("files-added",n),this.log(`Added file: ${i.name}, ${i.id}, mime type: ${i.type}`),EE(this,LE)[LE](),i.id}addFiles(e){EE(this,RE)[RE]();const{nextFilesState:t,validFilesToAdd:n,errors:r}=EE(this,QE)[QE](e),o=r.filter(e=>e.isRestriction);EE(this,FE)[FE](o);const i=r.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}),n.forEach(e=>{this.emit("file-added",e)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.values(n).forEach(e=>{this.log(`Added file: ${e.name}\n id: ${e.id}\n type: ${e.type}`)}),n.length>0&&EE(this,LE)[LE]()}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function l(e){return void 0===a[e]}e.forEach(e=>{n[e]&&(a[e]=n[e],delete o[e])}),Object.keys(i).forEach(e=>{const t=r[e].fileIDs.filter(l);if(0===t.length)return void delete i[e];const{capabilities:n}=this.getState();if(t.length!==r[e].fileIDs.length&&!n.individualCancellation)throw new Error("individualCancellation is disabled");i[e]={...r[e],fileIDs:t}});const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const c=Object.keys(a);c.forEach(e=>{this.emit("file-removed",a[e],t)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.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 n={...e[t],isPaused:!0};e[t]=n}),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 n={...e[t],isPaused:!1,error:null};e[t]=n}),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 n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=EE(this,UE)[UE](t,{forceAllowNewUpload:!0});return EE(this,YE)[YE](n)}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(PE)}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=EE(this,UE)[UE]([e],{forceAllowNewUpload:!0});return EE(this,YE)[YE](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),n=e.filter(e=>null==e.progress.bytesTotal);if(0===t.length){const t=100*e.length,r=n.reduce((e,t)=>e+t.progress.percentage,0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce((e,t)=>{var n;return e+(null!=(n=t.progress.bytesTotal)?n:0)},0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach(e=>{i+=e.progress.bytesUploaded}),n.forEach(e=>{i+=o*(e.progress.percentage||0)/100});let a=0===r?0:Math.round(i/r*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 n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in EE(this,DE)[DE]?EE(this,DE)[DE][n.type].push(n):EE(this,DE)[DE][n.type]=[n],n.install(),this.emit("plugin-added",n),this}getPlugin(e){for(const t of Object.values(EE(this,DE)[DE])){const n=t.find(t=>t.id===e);if(null!=n)return n}}[xE](e){return EE(this,DE)[DE][e]}iteratePlugins(e){Object.values(EE(this,DE)[DE]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=EE(this,DE)[DE][e.type],n=t.findIndex(t=>t.id===e.id);-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}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}),EE(this,qE)[qE](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",EE(this,VE)[VE]),window.removeEventListener("offline",EE(this,VE)[VE]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}registerRequestClient(e,t){EE(this,HE)[HE].set(e,t)}getRequestClientForFile(e){if(!e.remote)throw new Error(`Tried to get RequestClient for a non-remote file ${e.id}`);const t=EE(this,HE)[HE].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]?EE(this,YE)[YE](e):(EE(this,GE)[GE](e),Promise.reject(new Error("Nonexistent upload")))}[CE](){return EE(this,UE)[UE](...arguments)}addResultData(e,t){if(!EE(this,ZE)[ZE](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=EE(this,DE)[DE].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then(()=>EE(this,ME)[ME].validateMinNumberOfFiles(t)).catch(e=>{throw EE(this,FE)[FE]([e]),e}).then(()=>{if(!EE(this,IE)[IE](t))throw new wE(this.i18n("missingRequiredMetaField"))}).catch(e=>{throw e}).then(()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap(e=>e.fileIDs),r=[];Object.keys(t).forEach(e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)});const o=EE(this,UE)[UE](r);return EE(this,YE)[YE](o)}).catch(e=>{throw this.emit("error",e),this.log(e,"error"),e}))}}function KE(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),n=t.slice(0,4),r=t.slice(4);n.forEach(e=>{let{message:t,details:n=""}=e;this.info({message:t,details:n},"error",this.opts.infoTimeout)}),r.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:r.length})})}function JE(e){const{missingFields:t,error:n}=EE(this,ME)[ME].getMissingRequiredMetaFields(e);return!(t.length>0&&(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(n.message),this.emit("restriction-failed",e,n),1))}function ek(e){let t=!0;for(const n of Object.values(e))EE(this,NE)[NE](n)||(t=!1);return t}function tk(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new wE(this.i18n("noMoreFilesAllowed"),{file:e});throw EE(this,FE)[FE]([t]),t}}function nk(e){const t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,n=cE(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),o=lE(r).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=cE(e);return function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${uE(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${uE(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=r,a.type=n;const l=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:i,name:r,extension:o||"",meta:{...this.getState().meta,...a},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote||"",preview:t.preview}}function rk(){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 ok(e){const{files:t}=this.getState(),n={...t},r=[],o=[];for(const a of e)try{var i;let e=EE(this,zE)[zE](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 l=this.opts.onBeforeFileAdded(e,n);if(!l&&this.checkIfFileAlreadyExists(e.id))throw new wE(this.i18n("noDuplicates",{fileName:e.name}),{file:a});if(!1===l&&!o)throw new wE("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:a});"object"==typeof l&&null!==l&&(e=l),EE(this,ME)[ME].validateSingleFile(e),n[e.id]=e,r.push(e)}catch(e){o.push(e)}try{EE(this,ME)[ME].validateAggregateRestrictions(Object.values(t),r)}catch(e){return o.push(e),{nextFilesState:t,validFilesToAdd:[],errors:o}}return{nextFilesState:n,validFilesToAdd:r,errors:o}}function ik(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){var o;this.log(n.message,"error");const e=new Error(this.i18n("failedToUpload",{file:null!=(o=null==t?void 0:t.name)?o:""}));e.isUserFacing=!0,e.details=n.message,n.details&&(e.details+=` ${n.details}`),EE(this,FE)[FE]([e])}else EE(this,FE)[FE]([n])});let t=null;this.on("upload-stalled",(e,n)=>{const{message:r}=e,o=n.map(e=>e.meta.name).join(", ");t||(this.info({message:r,details:o},"warning",this.opts.infoTimeout),t=setTimeout(()=>{t=null},this.opts.infoTimeout)),this.log(`${r} ${o}`.trim(),"warning")}),this.on("upload",()=>{this.setState({error:null})});const n=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}),n=Object.fromEntries(t.map(e=>[e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}]));this.patchFilesState(n)};this.on("upload-start",e=>{e.forEach(e=>{this.emit("upload-started",e)}),n(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 n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:EE(this,jE)[jE].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.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&&EE(this,NE)[NE](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",EE(this,VE)[VE]),window.addEventListener("offline",EE(this,VE)[VE]),setTimeout(EE(this,VE)[VE],3e3))}function ak(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=((e=21)=>{let t="",n=0|e;for(;n-- >0;)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 lk(e){const{currentUploads:t}=this.getState();return t[e]}function sk(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function ck(e){const t=()=>{const{currentUploads:t}=this.getState();return t[e]};let n=t();const r=[...EE(this,TE)[TE],...EE(this,BE)[BE],...EE(this,jE)[jE]];try{for(let o=n.step||0;o<r.length&&n;o++){const i=r[o];this.setState({currentUploads:{...this.getState().currentUploads,[e]:{...n,step:o}}});const{fileIDs:a}=n;await i(a,e),n=t()}}catch(t){throw EE(this,GE)[GE](e),t}if(n){n.fileIDs.forEach(e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)});const r=n.fileIDs.map(e=>this.getFile(e)),o=r.filter(e=>!e.error),i=r.filter(e=>e.error);this.addResultData(e,{successful:o,failed:i,uploadID:e}),n=t()}let o;return n&&(o=n.result,this.emit("complete",o),EE(this,GE)[GE](e)),null==o&&this.log(`Not setting result for an upload that has been removed: ${e}`),o}XE.VERSION="3.10.0";var uk,dk,fk,pk,hk,mk,gk,vk,bk,yk,Ak,wk,Ok,_k,xk={},Ck=[],Ek=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,kk=Array.isArray;function Sk(e,t){for(var n in t)e[n]=t[n];return e}function Pk(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Dk(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?uk.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return Mk(e,a,r,o,null)}function Mk(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++fk,__i:-1,__u:0};return null==o&&null!=dk.vnode&&dk.vnode(i),i}function qk(e){return e.children}function $k(e,t){this.props=e,this.context=t}function Tk(e,t){if(null==t)return e.__?Tk(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Tk(e):null}function Bk(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],o=[],i=Sk({},t);i.__v=t.__v+1,dk.vnode&&dk.vnode(i),Vk(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??Tk(t),!!(32&t.__u),o),i.__v=t.__v,i.__.__k[i.__i]=i,Uk(r,i,o),t.__e=t.__=null,i.__e!=n&&jk(i)}}function jk(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),jk(e)}function Fk(e){(!e.__d&&(e.__d=!0)&&pk.push(e)&&!Nk.__r++||hk!=dk.debounceRendering)&&((hk=dk.debounceRendering)||mk)(Nk)}function Nk(){try{for(var e,t=1;pk.length;)pk.length>t&&pk.sort(gk),e=pk.shift(),t=pk.length,Bk(e)}finally{pk.length=Nk.__r=0}}function Ik(e,t,n,r,o,i,a,l,s,c,u){var d,f,p,h,m,g,v=r&&r.__k||Ck,b=t.length;for(s=function(e,t,n,r,o){var i,a,l,s,c,u=n.length,d=u,f=0;for(e.__k=new Array(o),i=0;i<o;i++)null!=(a=t[i])&&"boolean"!=typeof a&&"function"!=typeof a?("string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?a=e.__k[i]=Mk(null,a,null,null,null):kk(a)?a=e.__k[i]=Mk(qk,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?a=e.__k[i]=Mk(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,s=i+f,a.__=e,a.__b=e.__b+1,l=null,-1!=(c=a.__i=zk(a,n,s,d))&&(d--,(l=n[c])&&(l.__u|=2)),null==l||null==l.__v?(-1==c&&(o>u?f--:o<u&&f++),"function"!=typeof a.type&&(a.__u|=4)):c!=s&&(c==s-1?f--:c==s+1?f++:(c>s?f--:f++,a.__u|=4))):e.__k[i]=null;if(d)for(i=0;i<u;i++)null!=(l=n[i])&&!(2&l.__u)&&(l.__e==r&&(r=Tk(l)),Yk(l,l));return r}(n,t,v,s,b),d=0;d<b;d++)null!=(p=n.__k[d])&&(f=-1!=p.__i&&v[p.__i]||xk,p.__i=d,g=Vk(e,p,f,o,i,a,l,s,c,u),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&Gk(f.ref,null,p),u.push(p.ref,p.__c||h,p)),null==m&&null!=h&&(m=h),4&p.__u?(s=Rk(p,s,e),f.__e&&(f.__e=null)):"function"==typeof p.type&&void 0!==g?s=g:h&&(s=h.nextSibling),p.__u&=-7);return n.__e=m,s}function Rk(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Rk(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!t.parentNode&&(t=Tk(e)),t=n.insertBefore(e.__e,t||null));do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function zk(e,t,n,r){var o,i,a,l=e.key,s=e.type,c=t[n],u=null!=c&&!(2&c.__u);if(null===c&&null==l||u&&l==c.key&&s==c.type)return n;if(r>(u?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;)if(null!=(c=t[a=o>=0?o--:i++])&&!(2&c.__u)&&l==c.key&&s==c.type)return a;return-1}function Lk(e,t,n){"-"==t[0]?e.setProperty(t,n??""):e[t]=null==n?"":"number"!=typeof n||Ek.test(t)?n:n+"px"}function Qk(e,t,n,r,o){var i,a;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Lk(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Lk(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(Ak,"$1")),a=t.toLowerCase(),t=a in e||"onFocusOut"==t||"onFocusIn"==t?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n[yk]=r[yk]:(n[yk]=wk,e.addEventListener(t,i?_k:Ok,i)):e.removeEventListener(t,i?_k:Ok,i);else{if("http://www.w3.org/2000/svg"==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&&"popover"!=t&&t in e)try{e[t]=n??"";break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function Wk(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t[bk])t[bk]=wk++;else if(t[bk]<n[yk])return;return n(dk.event?dk.event(t):t)}}}function Vk(e,t,n,r,o,i,a,l,s,c){var u,d,f,p,h,m,g,v,b,y,A,w,O,_,x,C,E=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(s=!!(32&n.__u),i=[l=t.__e=n.__e]),(u=dk.__b)&&u(t);e:if("function"==typeof E){d=a.length;try{if(b=t.props,y=E.prototype&&E.prototype.render,A=(u=E.contextType)&&r[u.__c],w=u?A?A.props.value:u.__:r,n.__c?v=(f=t.__c=n.__c).__=f.__E:(y?t.__c=f=new E(b,w):(t.__c=f=new $k(b,w),f.constructor=E,f.render=Xk),A&&A.sub(f),f.state||(f.state={}),f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),y&&null==f.__s&&(f.__s=f.state),y&&null!=E.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=Sk({},f.__s)),Sk(f.__s,E.getDerivedStateFromProps(b,f.__s))),h=f.props,m=f.state,f.__v=t,p)y&&null==E.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),y&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(y&&null==E.getDerivedStateFromProps&&b!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,w),t.__v==n.__v||!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,w)){t.__v!=n.__v&&(f.props=b,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),Ck.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&a.push(f),l=Tk(n);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,w),y&&null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(h,m,g)})}if(f.context=w,f.props=b,f.__P=e,f.__e=!1,O=dk.__r,_=0,y)f.state=f.__s,f.__d=!1,O&&O(t),u=f.render(f.props,f.state,f.context),Ck.push.apply(f.__h,f._sb),f._sb=[];else do{f.__d=!1,O&&O(t),u=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++_<25);f.state=f.__s,null!=f.getChildContext&&(r=Sk(Sk({},r),f.getChildContext())),y&&!p&&null!=f.getSnapshotBeforeUpdate&&(g=f.getSnapshotBeforeUpdate(h,m)),x=null!=u&&u.type===qk&&null==u.key?Zk(u.props.children):u,l=Ik(e,kk(x)?x:[x],t,n,r,o,i,a,l,s,c),f.base=t.__e,t.__u&=-161,f.__h.length&&a.push(f),v&&(f.__E=f.__=null)}catch(e){if(a.length=d,t.__v=null,s||null!=i){if(e.then){for(t.__u|=s?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;null!=i&&(i[i.indexOf(l)]=null),t.__e=l}else if(null!=i)for(C=i.length;C--;)Pk(i[C])}else t.__e=n.__e;null==t.__k&&(t.__k=n.__k||[]),e.then||Hk(t),dk.__e(e,t,n)}}else null==i&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):l=t.__e=function(e,t,n,r,o,i,a,l,s){var c,u,d,f,p,h,m,g=n.props||xk,v=t.props,b=t.type;if("svg"==b?o="http://www.w3.org/2000/svg":"math"==b?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(c=0;c<i.length;c++)if((p=i[c])&&"setAttribute"in p==!!b&&(b?p.localName==b:3==p.nodeType)){e=p,i[c]=null;break}if(null==e){if(null==b)return document.createTextNode(v);e=document.createElementNS(o,b,v.is&&v),l&&(dk.__m&&dk.__m(t,i),l=!1),i=null}if(null==b)g===v||l&&e.data==v||(e.data=v);else{if(i="textarea"==b&&null!=v.defaultValue?null:i&&uk.call(e.childNodes),!l&&null!=i)for(g={},c=0;c<e.attributes.length;c++)g[(p=e.attributes[c]).name]=p.value;for(c in g)p=g[c],"dangerouslySetInnerHTML"==c?d=p:"children"==c||c in v||"value"==c&&"defaultValue"in v||"checked"==c&&"defaultChecked"in v||Qk(e,c,null,p,o);for(c in v)p=v[c],"children"==c?f=p:"dangerouslySetInnerHTML"==c?u=p:"value"==c?h=p:"checked"==c?m=p:l&&"function"!=typeof p||g[c]===p||Qk(e,c,p,g[c],o);if(u)l||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),Ik("template"==t.type?e.content:e,kk(f)?f:[f],t,n,r,"foreignObject"==b?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&Tk(n,0),l,s),null!=i)for(c=i.length;c--;)Pk(i[c]);l&&"textarea"!=b||(c="value","progress"==b&&null==h?e.removeAttribute("value"):null!=h&&(h!==e[c]||"progress"==b&&!h||"option"==b&&h!=g[c])&&Qk(e,c,h,g[c],o),c="checked",null!=m&&m!=e[c]&&Qk(e,c,m,g[c],o))}return e}(n.__e,t,n,r,o,i,a,s,c);return(u=dk.diffed)&&u(t),128&t.__u?void 0:l}function Hk(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Hk))}function Uk(e,t,n){for(var r=0;r<n.length;r++)Gk(n[r],n[++r],n[++r]);dk.__c&&dk.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){dk.__e(e,t.__v)}})}function Zk(e){return"object"!=typeof e||null==e||e.__b>0?e:kk(e)?e.map(Zk):void 0!==e.constructor?null:Sk({},e)}function Gk(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){dk.__e(e,n)}}function Yk(e,t,n){var r,o;if(dk.unmount&&dk.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Gk(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){dk.__e(e,t)}r.base=r.__P=r.__n=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Yk(r[o],t,n||"function"!=typeof e.type);n||Pk(e.__e),e.__c=e.__=e.__e=void 0}function Xk(e,t,n){return this.constructor(e,n)}function Kk(e,t,n){var r,o,i;t==document&&(t=document.documentElement),dk.__&&dk.__(e,t),r=t.__k,o=[],i=[],Vk(t,e=t.__k=Dk(qk,null,[e]),r||xk,xk,t.namespaceURI,r?null:t.firstChild?uk.call(t.childNodes):null,o,r?r.__e:t.firstChild,!1,i),Uk(o,e,i),e.props.children=null}uk=Ck.slice,dk={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},fk=0,$k.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=Sk({},this.state),"function"==typeof e&&(e=e(Sk({},n),this.props)),e&&Sk(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),Fk(this))},$k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Fk(this))},$k.prototype.render=qk,pk=[],mk="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,gk=function(e,t){return e.__v.__b-t.__v.__b},Nk.__r=0,vk=Math.random().toString(8),bk="__d"+vk,yk="__a"+vk,Ak=/(PointerCapture)$|Capture$/i,wk=0,Ok=Wk(!1),_k=Wk(!0);class Jk{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 wC([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 eS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var tS=0;function nS(e){return"__private_"+tS+++"_"+e}var rS=nS("updateUI");class oS extends Jk{constructor(){super(...arguments),Object.defineProperty(this,rS,{writable:!0,value:void 0})}getTargetPlugin(e){let t;if("function"==typeof(null==e?void 0:e.addTarget))t=e,t instanceof oS||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:oS}}));else if("function"==typeof e){const n=e;this.uppy.iteratePlugins(e=>{e instanceof n&&(t=e)})}return t}mount(e,t){const n=t.id,r=(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(r){this.isTargetDOMEl=!0;const t=document.createElement("div");return t.classList.add("uppy-Root"),eS(this,rS)[rS]=function(e){let t,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=o,n||(n=Promise.resolve().then(()=>(n=null,e(...t)))),n}}(e=>{this.uppy.getPlugin(this.id)&&(Kk(this.render(e),t),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Kk(this.render(this.uppy.getState()),t),this.el=t,r.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 l=this.getTargetPlugin(e);if(l)return this.uppy.log(`Installing ${n} to ${l.id}`),this.parent=l,this.el=l.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let s=`Invalid target option given to ${n}.`;throw s+="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(s)}render(e){throw new Error("Extend the render method to add your plugin to a DOM element")}update(e){var t,n;null!=this.el&&(null==(t=(n=eS(this,rS))[rS])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}"function"==typeof TextDecoder&&new TextDecoder("utf-8",{ignoreBOM:!0});const iS="function"==typeof TextEncoder?new TextEncoder:void 0,aS=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),lS=(e=>{let t={};return e.forEach((e,n)=>t[e]=n),t})(aS),sS=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,cS=String.fromCharCode.bind(String),uS=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),"function"==typeof btoa?e=>btoa(e):e=>{let t,n,r,o,i="";const a=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|o,i+=aS[t>>18&63]+aS[t>>12&63]+aS[t>>6&63]+aS[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i}),dS="function"==typeof Uint8Array.prototype.toBase64?e=>e.toBase64():e=>{let t=[];for(let n=0,r=e.length;n<r;n+=4096)t.push(cS.apply(null,e.subarray(n,n+4096)));return uS(t.join(""))},fS=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?cS(192|t>>>6)+cS(128|63&t):cS(224|t>>>12&15)+cS(128|t>>>6&63)+cS(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return cS(240|t>>>18&7)+cS(128|t>>>12&63)+cS(128|t>>>6&63)+cS(128|63&t)},pS=/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\x00-\x7F]/g,hS=iS?e=>dS(iS.encode(e)):e=>uS(e.replace(pS,fS)),mS=(Uint8Array.fromBase64,(e,t=!1)=>t?(e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"))(hS(e)):hS(e));var gS={},vS=Object.prototype.hasOwnProperty;function bS(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function yS(e){try{return encodeURIComponent(e)}catch(e){return null}}gS.stringify=function(e,t){t=t||"";var n,r,o=[];for(r in"string"!=typeof t&&(t="?"),e)if(vS.call(e,r)){if((n=e[r])||null!=n&&!isNaN(n)||(n=""),r=yS(r),n=yS(n),null===r||null===n)continue;o.push(r+"="+n)}return o.length?t+o.join("&"):""},gS.parse=function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,r={};t=n.exec(e);){var o=bS(t[1]),i=bS(t[2]);null===o||null===i||o in r||(r[o]=i)}return r};var AS=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},wS=gS,OS=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,_S=/[\n\r\t]/g,xS=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,CS=/:\d+$/,ES=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,kS=/^[a-zA-Z]:/;function SS(e){return(e||"").toString().replace(OS,"")}var PS=[["#","hash"],["?","query"],function(e,t){return qS(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]],DS={hash:1,query:1};function MS(e){var t,n=("undefined"!=typeof window?window:void 0!==Dx?Dx:"undefined"!=typeof self?self:{}).location||{},r={},o=typeof(e=e||n);if("blob:"===e.protocol)r=new TS(unescape(e.pathname),{});else if("string"===o)for(t in r=new TS(e,{}),DS)delete r[t];else if("object"===o){for(t in e)t in DS||(r[t]=e[t]);void 0===r.slashes&&(r.slashes=xS.test(e.href))}return r}function qS(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function $S(e,t){e=(e=SS(e)).replace(_S,""),t=t||{};var n,r=ES.exec(e),o=r[1]?r[1].toLowerCase():"",i=!!r[2],a=!!r[3],l=0;return i?a?(n=r[2]+r[3]+r[4],l=r[2].length+r[3].length):(n=r[2]+r[4],l=r[2].length):a?(n=r[3]+r[4],l=r[3].length):n=r[4],"file:"===o?l>=2&&(n=n.slice(2)):qS(o)?n=r[4]:o?i&&(n=n.slice(2)):l>=2&&qS(t.protocol)&&(n=r[4]),{protocol:o,slashes:i||qS(o),slashesCount:l,rest:n}}function TS(e,t,n){if(e=(e=SS(e)).replace(_S,""),!(this instanceof TS))return new TS(e,t,n);var r,o,i,a,l,s,c=PS.slice(),u=typeof t,d=this,f=0;for("object"!==u&&"string"!==u&&(n=t,t=null),n&&"function"!=typeof n&&(n=wS.parse),r=!(o=$S(e||"",t=MS(t))).protocol&&!o.slashes,d.slashes=o.slashes||r&&t.slashes,d.protocol=o.protocol||t.protocol||"",e=o.rest,("file:"===o.protocol&&(2!==o.slashesCount||kS.test(e))||!o.slashes&&(o.protocol||o.slashesCount<2||!qS(d.protocol)))&&(c[3]=[/(.*)/,"pathname"]);f<c.length;f++)"function"!=typeof(a=c[f])?(i=a[0],s=a[1],i!=i?d[s]=e:"string"==typeof i?~(l="@"===i?e.lastIndexOf(i):e.indexOf(i))&&("number"==typeof a[2]?(d[s]=e.slice(0,l),e=e.slice(l+a[2])):(d[s]=e.slice(l),e=e.slice(0,l))):(l=i.exec(e))&&(d[s]=l[1],e=e.slice(0,l.index)),d[s]=d[s]||r&&a[3]&&t[s]||"",a[4]&&(d[s]=d[s].toLowerCase())):e=a(e,d);n&&(d.query=n(d.query)),r&&t.slashes&&"/"!==d.pathname.charAt(0)&&(""!==d.pathname||""!==t.pathname)&&(d.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],i=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(i=!0),n.splice(r,1),a--);return i&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(d.pathname,t.pathname)),"/"!==d.pathname.charAt(0)&&qS(d.protocol)&&(d.pathname="/"+d.pathname),AS(d.port,d.protocol)||(d.host=d.hostname,d.port=""),d.username=d.password="",d.auth&&(~(l=d.auth.indexOf(":"))?(d.username=d.auth.slice(0,l),d.username=encodeURIComponent(decodeURIComponent(d.username)),d.password=d.auth.slice(l+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&&qS(d.protocol)&&d.host?d.protocol+"//"+d.host:"null",d.href=d.toString()}TS.prototype={set:function(e,t,n){var r=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||wS.parse)(t)),r[e]=t;break;case"port":r[e]=t,AS(t,r.protocol)?t&&(r.host=r.hostname+":"+t):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=t,r.port&&(t+=":"+r.port),r.host=t;break;case"host":r[e]=t,CS.test(t)?(t=t.split(":"),r.port=t.pop(),r.hostname=t.join(":")):(r.hostname=t,r.port="");break;case"protocol":r.protocol=t.toLowerCase(),r.slashes=!n;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";r[e]=t.charAt(0)!==o?o+t:t}else r[e]=t;break;case"username":case"password":r[e]=encodeURIComponent(t);break;case"auth":var i=t.indexOf(":");~i?(r.username=t.slice(0,i),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=t.slice(i+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(t))}for(var a=0;a<PS.length;a++){var l=PS[a];l[4]&&(r[l[1]]=r[l[1]].toLowerCase())}return r.auth=r.password?r.username+":"+r.password:r.username,r.origin="file:"!==r.protocol&&qS(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r},toString:function(e){e&&"function"==typeof e||(e=wS.stringify);var t,n=this,r=n.host,o=n.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var i=o+(n.protocol&&n.slashes||qS(n.protocol)?"//":"");return n.username?(i+=n.username,n.password&&(i+=":"+n.password),i+="@"):n.password?(i+=":"+n.password,i+="@"):"file:"!==n.protocol&&qS(n.protocol)&&!r&&"/"!==n.pathname&&(i+="@"),(":"===r[r.length-1]||CS.test(n.hostname)&&!n.port)&&(r+=":"),i+=r+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(i+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(i+=n.hash),i}},TS.extractProtocol=$S,TS.location=MS,TS.trimLeft=SS,TS.qs=wS;var BS=Mx(TS);function jS(e){return jS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jS(e)}function FS(e){var t="function"==typeof Map?new Map:void 0;return FS=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,n)}function n(){return NS(e,arguments,zS(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),RS(n,e)},FS(e)}function NS(e,t,n){return NS=IS()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&RS(o,n.prototype),o},NS.apply(null,arguments)}function IS(){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 RS(e,t){return RS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RS(e,t)}function zS(e){return zS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zS(e)}var LS=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&&RS(e,t)}(i,e);var t,n,r,o=(n=i,r=IS(),function(){var e,t=zS(n);if(r){var o=zS(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===jS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=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=r,t.originalResponse=a,t.causingError=n,null!=n&&(e+=", caused by ".concat(n.toString())),null!=r){var l=r.getHeader("X-Request-ID")||"n/a",s=r.getMethod(),c=r.getURL(),u=a?a.getStatus():"n/a",d=a?a.getBody()||"":"n/a";e+=", originated from request (method: ".concat(s,", url: ").concat(c,", response code: ").concat(u,", response text: ").concat(d,", request id: ").concat(l,")")}return t.message=e,t}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(FS(Error));function QS(){QS=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new D(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var A={};c(A,a,function(){return this});var w=Object.getPrototypeOf,O=w&&w(w(M([])));O&&O!==n&&r.call(O,a)&&(A=O);var _=y.prototype=v.prototype=Object.create(A);function x(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==US(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){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(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=k(l,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function k(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(US(t)+" is not iterable")}return b.prototype=y,o(_,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},x(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},x(_),c(_,s,"Generator"),c(_,a,function(){return this}),c(_,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=M,D.prototype={constructor:D,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(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function WS(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function VS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return HS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?HS(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 HS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function US(e){return US="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},US(e)}function ZS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZS(Object(n),!0).forEach(function(t){var r,o,i;r=e,o=t,i=n[t],(o=XS(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XS(r.key),r)}}function XS(e){var t=function(e){if("object"!==US(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==US(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===US(t)?t:String(t)}var KS={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:aP,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},JS=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"resume"in n&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=n,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,n,r;return t=e,n=[{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 n=this.options.retryDelays;if(null==n||"[object Array]"===Object.prototype.toString.call(n)){if(this.options.parallelUploads>1)for(var r=0,o=["uploadUrl","uploadSize","uploadLengthDeferred"];r<o.length;r++){var i=o[r];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(n){return e._fingerprint=n,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,n=this,r=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 n=Math.floor(e/t),r=[],o=0;o<t;o++)r.push({start:n*o,end:n*(o+1)});return r[t-1].end=e,r}(this._source.size,i);this._parallelUploadUrls&&a.forEach(function(e,t){e.uploadUrl=n._parallelUploadUrls[t]||null}),this._parallelUploadUrls=new Array(a.length);var l,s=a.map(function(t,i){var l=0;return n._source.slice(t.start,t.end).then(function(s){var c=s.value;return new Promise(function(s,u){var d=GS(GS({},n.options),{},{uploadUrl:t.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:{},headers:GS(GS({},n.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:s,onError:u,onProgress:function(e){o=o-l+e,l=e,n._emitProgress(o,r)},onUploadUrlAvailable:function(){n._parallelUploadUrls[i]=f.url,n._parallelUploadUrls.filter(function(e){return Boolean(e)}).length===a.length&&n._saveUploadInUrlStorage()}}),f=new e(c,d);f.start(),n._parallelUploads.push(f)})})});Promise.all(s).then(function(){(l=n._openRequest("POST",n.options.endpoint)).setHeader("Upload-Concat","final;".concat(n._parallelUploadUrls.join(" ")));var e=eP(n.options.metadata);return""!==e&&l.setHeader("Upload-Metadata",e),n._sendRequest(l,null)}).then(function(e){if(tP(e.getStatus(),200)){var t=e.getHeader("Location");null!=t?(n.url=lP(n.options.endpoint,t),"Created upload at ".concat(n.url),n._emitSuccess()):n._emitHttpError(l,e,"tus: invalid or missing Location header")}else n._emitHttpError(l,e,"tus: unexpected response while creating upload")}).catch(function(e){n._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 n=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 n._removeFromUrlStorage()}):Promise.resolve()}},{key:"_emitHttpError",value:function(e,t,n,r){this._emitError(new LS(n,r,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),iP(e,this._retryAttempt,this.options))){var n=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout(function(){t.start()},n))}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,n){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,n)}},{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 n,r=eP(this.options.metadata);""!==r&&t.setHeader("Upload-Metadata",r),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,n=this._addChunkToRequest(t)):n=this._sendRequest(t,null),n.then(function(n){if(tP(n.getStatus(),200)){var r=n.getHeader("Location");if(null!=r){if(e.url=lP(e.options.endpoint,r),"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,n):(e._offset=0,e._performUpload())})}else e._emitHttpError(t,n,"tus: invalid or missing Location header")}else e._emitHttpError(t,n,"tus: unexpected response while creating upload")}).catch(function(n){e._emitHttpError(t,null,"tus: failed to create upload",n)})}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(n){var r=n.getStatus();if(!tP(r,200))return 423===r?void e._emitHttpError(t,n,"tus: upload is currently locked; retry later"):(tP(r,400)&&e._removeFromUrlStorage(),e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,n,"tus: unable to resume upload (new upload cannot be created without an endpoint)"));var o=parseInt(n.getHeader("Upload-Offset"),10);if(Number.isNaN(o))e._emitHttpError(t,n,"tus: invalid or missing offset value");else{var i=parseInt(n.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,n,"tus: invalid or missing length value")}}).catch(function(n){e._emitHttpError(t,null,"tus: failed to resume upload",n)})}},{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(n){tP(n.getStatus(),200)?t._handleUploadResponse(e,n):t._emitHttpError(e,n,"tus: unexpected response while uploading chunk")}).catch(function(n){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),n)}))}},{key:"_addChunkToRequest",value:function(e){var t=this,n=this._offset,r=this._offset+this.options.chunkSize;return e.setProgressHandler(function(e){t._emitProgress(n+e,t._size)}),e.setHeader("Content-Type","application/offset+octet-stream"),(r===1/0||r>this._size)&&!this.options.uploadLengthDeferred&&(r=this._size),this._source.slice(n,r).then(function(n){var r=n.value,o=n.done,i=r&&r.size?r.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===r?t._sendRequest(e):(t._emitProgress(t._offset,t._size),t._sendRequest(e,r))})}},{key:"_handleUploadResponse",value:function(e,t){var n=parseInt(t.getHeader("Upload-Offset"),10);if(Number.isNaN(n))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(n,this._size),this._emitChunkComplete(n-this._offset,n,this._size),this._offset=n,n===this._size)return this._emitSuccess(),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var n=nP(e,t,this.options);return this._req=n,n}},{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 rP(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.options)}}],r=[{key:"terminate",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=nP("DELETE",t,n);return rP(r,null,n).then(function(e){if(204!==e.getStatus())throw new LS("tus: unexpected response while terminating upload",null,r,e)}).catch(function(o){if(o instanceof LS||(o=new LS("tus: failed to terminate upload",o,r,null)),!iP(o,0,n))throw o;var i=n.retryDelays[0],a=n.retryDelays.slice(1),l=GS(GS({},n),{},{retryDelays:a});return new Promise(function(e){return setTimeout(e,i)}).then(function(){return e.terminate(t,l)})})}}],n&&YS(t.prototype,n),r&&YS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function eP(e){return Object.entries(e).map(function(e){var t=VS(e,2),n=t[0],r=t[1];return"".concat(n," ").concat(mS(String(r)))}).join(",")}function tP(e,t){return e>=t&&e<t+100}function nP(e,t,n){var r=n.httpStack.createRequest(e,t);r.setHeader("Tus-Resumable","1.0.0");var o=n.headers||{};if(Object.entries(o).forEach(function(e){var t=VS(e,2),n=t[0],o=t[1];r.setHeader(n,o)}),n.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)});r.setHeader("X-Request-ID",i)}return r}function rP(e,t,n){return oP.apply(this,arguments)}function oP(){var e;return e=QS().mark(function e(t,n,r){var o;return QS().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof r.onBeforeRequest){e.next=3;break}return e.next=3,r.onBeforeRequest(t);case 3:return e.next=5,t.send(n);case 5:if(o=e.sent,"function"!=typeof r.onAfterResponse){e.next=9;break}return e.next=9,r.onAfterResponse(t,o);case 9:return e.abrupt("return",o);case 10:case"end":return e.stop()}},e)}),oP=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){WS(i,r,o,a,l,"next",e)}function l(e){WS(i,r,o,a,l,"throw",e)}a(void 0)})},oP.apply(this,arguments)}function iP(e,t,n){return!(null==n.retryDelays||t>=n.retryDelays.length||null==e.originalRequest)&&(n&&"function"==typeof n.onShouldRetry?n.onShouldRetry(e,t,n):aP(e))}function aP(e){var t,n=e.originalResponse?e.originalResponse.getStatus():0;return(!tP(n,400)||409===n||423===n)&&(t=!0,"undefined"!=typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(t=!1),t)}function lP(e,t){return new BS(t,e).toString()}function sP(e){return sP="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},sP(e)}function cP(e){var t=function(e){if("object"!==sP(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==sP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===sP(t)?t:String(t)}JS.defaultOptions=KS;var uP=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,(n=[{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)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cP(r.key),r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e;var t,n}();function dP(e){return dP="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},dP(e)}function fP(e){var t=function(e){if("object"!==dP(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==dP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===dP(t)?t:String(t)}var pP=!1;try{pP="localStorage"in window;var hP="tusSupport",mP=localStorage.getItem(hP);localStorage.setItem(hP,mP),null===mP&&localStorage.removeItem(hP)}catch(e){if(e.code!==e.SECURITY_ERR&&e.code!==e.QUOTA_EXCEEDED_ERR)throw e;pP=!1}var gP=pP,vP=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,(n=[{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 n=Math.round(1e12*Math.random()),r="tus::".concat(e,"::").concat(n);return localStorage.setItem(r,JSON.stringify(t)),Promise.resolve(r)}},{key:"_findEntries",value:function(e){for(var t=[],n=0;n<localStorage.length;n++){var r=localStorage.key(n);if(0===r.indexOf(e))try{var o=JSON.parse(localStorage.getItem(r));o.urlStorageKey=r,t.push(o)}catch(e){}}return t}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fP(r.key),r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e;var t,n}();function bP(e){return bP="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},bP(e)}function yP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AP(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wP(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wP(e){var t=function(e){if("object"!==bP(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==bP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===bP(t)?t:String(t)}var OP=function(){function e(){yP(this,e)}return AP(e,[{key:"createRequest",value:function(e,t){return new _P(e,t)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),_P=function(){function e(t,n){yP(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,n,!0),this._method=t,this._url=n,this._headers={}}return AP(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(n,r){e._xhr.onload=function(){n(new xP(e._xhr))},e._xhr.onerror=function(e){r(e)},e._xhr.send(t)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),xP=function(){function e(t){yP(this,e),this._xhr=t}return AP(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}(),CP=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()};function EP(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.responseType="blob",r.onload=function(){var e=r.response;t(e)},r.onerror=function(e){n(e)},r.open("GET",e),r.send()})}function kP(e){return kP="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},kP(e)}function SP(e){var t=function(e){if("object"!==kP(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==kP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===kP(t)?t:String(t)}var PP=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}return t=e,(n=[{key:"slice",value:function(e,t){if("undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova))return n=this._file.slice(e,t),new Promise(function(e,t){var r=new FileReader;r.onload=function(){var t=new Uint8Array(r.result);e({value:t})},r.onerror=function(e){t(e)},r.readAsArrayBuffer(n)});var n,r=this._file.slice(e,t),o=t>=this.size;return Promise.resolve({value:r,done:o})}},{key:"close",value:function(){}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SP(r.key),r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e;var t,n}();function DP(e){return DP="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},DP(e)}function MP(e){var t=function(e){if("object"!==DP(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==DP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===DP(t)?t:String(t)}function qP(e){return void 0===e?0:void 0!==e.size?e.size:e.length}var $P=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}return t=e,(n=[{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 n=this,r=t<=this._bufferOffset+qP(this._buffer);if(this._done||r){var o=this._getDataFromBuffer(e,t),i=null==o&&this._done;return Promise.resolve({value:o,done:i})}return this._reader.read().then(function(r){var o=r.value;return r.done?n._done=!0:void 0===n._buffer?n._buffer=o:n._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 n=new e.constructor(e.length+t.length);return n.set(e),n.set(t,e.length),n}throw new Error("Unknown data type")}(n._buffer,o),n._readUntilEnoughDataOrDone(e,t)})}},{key:"_getDataFromBuffer",value:function(e,t){e>this._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var n=0===qP(this._buffer);return this._done&&n?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,MP(r.key),r)}}(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e;var t,n}();function TP(e){return TP="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},TP(e)}function BP(){BP=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new D(r||[]);return o(a,"_invoke",{value:E(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var A={};c(A,a,function(){return this});var w=Object.getPrototypeOf,O=w&&w(w(M([])));O&&O!==n&&r.call(O,a)&&(A=O);var _=y.prototype=v.prototype=Object.create(A);function x(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==TP(u)&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function E(t,n,r){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(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=k(l,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function k(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(TP(t)+" is not iterable")}return b.prototype=y,o(_,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},x(C.prototype),c(C.prototype,l,function(){return this}),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},x(_),c(_,s,"Generator"),c(_,a,function(){return this}),c(_,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=M,D.prototype={constructor:D,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(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function jP(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function FP(e){var t=function(e){if("object"!==TP(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==TP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===TP(t)?t:String(t)}var NP=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r,o;return r=e,o=[{key:"openFile",value:(t=BP().mark(function e(t,n){var r;return BP().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!CP()||!t||void 0===t.uri){e.next=11;break}return e.prev=1,e.next=4,EP(t.uri);case 4:return r=e.sent,e.abrupt("return",new PP(r));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 PP(t)));case 13:if("function"!=typeof t.read){e.next=18;break}if(n=Number(n),Number.isFinite(n)){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 $P(t,n)));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]])}),n=function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){jP(i,r,o,a,l,"next",e)}function l(e){jP(i,r,o,a,l,"throw",e)}a(void 0)})},function(e,t){return n.apply(this,arguments)})}],o&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,FP(r.key),r)}}(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),e}();function IP(e){return IP="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},IP(e)}function RP(e,t){return RP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RP(e,t)}function zP(e){return zP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zP(e)}function LP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function QP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LP(Object(n),!0).forEach(function(t){var r,o,i;r=e,o=t,i=n[t],(o=WP(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function WP(e){var t=function(e,t){if("object"!==IP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==IP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===IP(t)?t:String(t)}var VP=QP(QP({},JS.defaultOptions),{},{httpStack:new OP,fileReader:new NP,urlStorage:gP?new vP:new uP,fingerprint:function(e,t){return CP()?Promise.resolve(function(e,t){var n=e.exif?function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",n,t.endpoint].join("/")}(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}}),HP=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&&RP(e,t)}(a,e);var t,n,r,o,i=(t=a,n=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,r=zP(t);if(n){var o=zP(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===IP(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=QP(QP({},VP),t),i.call(this,e,t)}return r=a,o=[{key:"terminate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=QP(QP({},VP),t),JS.terminate(e,t)}}],o&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,WP(r.key),r)}}(r,o),Object.defineProperty(r,"prototype",{writable:!1}),a}(JS);function UP(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ZP=0;function GP(e){return"__private_"+ZP+++"_"+e}var YP=GP("uppy"),XP=GP("events");class KP{constructor(e){Object.defineProperty(this,YP,{writable:!0,value:void 0}),Object.defineProperty(this,XP,{writable:!0,value:[]}),UP(this,YP)[YP]=e}on(e,t){return UP(this,XP)[XP].push([e,t]),UP(this,YP)[YP].on(e,t)}remove(){for(const[e,t]of UP(this,XP)[XP].splice(0))UP(this,YP)[YP].off(e,t)}onFilePause(e,t){this.on("upload-pause",(n,r)=>{e===n&&t(r)})}onFileRemove(e,t){this.on("file-removed",n=>{e===n.id&&t(n.id)})}onPause(e,t){this.on("upload-pause",(n,r)=>{e===n&&t(r)})}onRetry(e,t){this.on("upload-retry",n=>{e===n&&t()})}onRetryAll(e,t){this.on("retry-all",()=>{UP(this,YP)[YP].getFile(e)&&t()})}onPauseAll(e,t){this.on("pause-all",()=>{UP(this,YP)[YP].getFile(e)&&t()})}onCancelAll(e,t){var n=this;this.on("cancel-all",function(){UP(n,YP)[YP].getFile(e)&&t(...arguments)})}onResumeAll(e,t){this.on("resume-all",()=>{UP(this,YP)[YP].getFile(e)&&t()})}}class JP 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 eD(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var tD=0;function nD(e){return"__private_"+tD+++"_"+e}function rD(e){if(null!=e){var t;const n=()=>this.abort(e.reason);e.addEventListener("abort",n,{once:!0});const r=()=>{e.removeEventListener("abort",n)};null==(t=this.then)||t.call(this,r,r)}return this}var oD=nD("activeRequests"),iD=nD("queuedHandlers"),aD=nD("paused"),lD=nD("pauseTimer"),sD=nD("downLimit"),cD=nD("upperLimit"),uD=nD("rateLimitingTimer"),dD=nD("call"),fD=nD("queueNext"),pD=nD("next"),hD=nD("queue"),mD=nD("dequeue"),gD=nD("resume"),vD=nD("increaseLimit");class bD{constructor(e){Object.defineProperty(this,mD,{value:_D}),Object.defineProperty(this,hD,{value:OD}),Object.defineProperty(this,pD,{value:wD}),Object.defineProperty(this,fD,{value:AD}),Object.defineProperty(this,dD,{value:yD}),Object.defineProperty(this,oD,{writable:!0,value:0}),Object.defineProperty(this,iD,{writable:!0,value:[]}),Object.defineProperty(this,aD,{writable:!0,value:!1}),Object.defineProperty(this,lD,{writable:!0,value:void 0}),Object.defineProperty(this,sD,{writable:!0,value:1}),Object.defineProperty(this,cD,{writable:!0,value:void 0}),Object.defineProperty(this,uD,{writable:!0,value:void 0}),Object.defineProperty(this,gD,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,vD,{writable:!0,value:()=>{if(eD(this,aD)[aD])eD(this,uD)[uD]=setTimeout(eD(this,vD)[vD],0);else{eD(this,sD)[sD]=this.limit,this.limit=Math.ceil((eD(this,cD)[cD]+eD(this,sD)[sD])/2);for(let e=eD(this,sD)[sD];e<=this.limit;e++)eD(this,fD)[fD]();eD(this,cD)[cD]-eD(this,sD)[sD]>3?eD(this,uD)[uD]=setTimeout(eD(this,vD)[vD],2e3):eD(this,sD)[sD]=Math.floor(eD(this,sD)[sD]/2)}}}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return!eD(this,aD)[aD]&&eD(this,oD)[oD]<this.limit?eD(this,dD)[dD](e):eD(this,hD)[hD](e,t)}wrapSyncFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];const a=n.run(()=>(e(...o),queueMicrotask(()=>a.done()),()=>{}),t);return{abortOn:rD,abort(){a.abort()}}}}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const l=new Promise((r,i)=>{a=n.run(()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(e){n=Promise.reject(e)}return n.then(e=>{t?i(t):(a.done(),r(e))},e=>{t?i(t):(a.done(),i(e))}),e=>{t=function(e){return new Error("Cancelled",{cause:e})}(e)}},t)});return l.abort=e=>{a.abort(e)},l.abortOn=rD,l}}resume(){eD(this,aD)[aD]=!1,clearTimeout(eD(this,lD)[lD]);for(let e=0;e<this.limit;e++)eD(this,fD)[fD]()}pause(e){void 0===e&&(e=null),eD(this,aD)[aD]=!0,clearTimeout(eD(this,lD)[lD]),null!=e&&(eD(this,lD)[lD]=setTimeout(eD(this,gD)[gD],e))}rateLimit(e){clearTimeout(eD(this,uD)[uD]),this.pause(e),this.limit>1&&Number.isFinite(this.limit)&&(eD(this,cD)[cD]=this.limit-1,this.limit=eD(this,sD)[sD],eD(this,uD)[uD]=setTimeout(eD(this,vD)[vD],e))}get isPaused(){return eD(this,aD)[aD]}}function yD(e){eD(this,oD)[oD]+=1;let t,n=!1;try{t=e()}catch(e){throw eD(this,oD)[oD]-=1,e}return{abort:e=>{n||(n=!0,eD(this,oD)[oD]-=1,null==t||t(e),eD(this,fD)[fD]())},done:()=>{n||(n=!0,eD(this,oD)[oD]-=1,eD(this,fD)[fD]())}}}function AD(){queueMicrotask(()=>eD(this,pD)[pD]())}function wD(){if(eD(this,aD)[aD]||eD(this,oD)[oD]>=this.limit)return;if(0===eD(this,iD)[iD].length)return;const e=eD(this,iD)[iD].shift();if(null==e)throw new Error("Invariant violation: next is null");const t=eD(this,dD)[dD](e.fn);e.abort=t.abort,e.done=t.done}function OD(e,t){const n={fn:e,priority:(null==t?void 0:t.priority)||0,abort:()=>{eD(this,mD)[mD](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=eD(this,iD)[iD].findIndex(e=>n.priority>e.priority);return-1===r?eD(this,iD)[iD].push(n):eD(this,iD)[iD].splice(r,0,n),n}function _D(e){const t=eD(this,iD)[iD].indexOf(e);-1!==t&&eD(this,iD)[iD].splice(t,1)}function xD(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function CD(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ED=0;function kD(e){return"__private_"+ED+++"_"+e}const SD={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},PD={limit:20,retryDelays:SD.retryDelays,withCredentials:!1};var DD=kD("retryDelayIterator"),MD=kD("uploadLocalFile"),qD=kD("getCompanionClientArgs"),$D=kD("uploadFiles"),TD=kD("handleUpload");class BD extends Jk{constructor(e,t){var n,r;if(super(e,{...PD,...t}),Object.defineProperty(this,$D,{value:ND}),Object.defineProperty(this,qD,{value:FD}),Object.defineProperty(this,MD,{value:jD}),Object.defineProperty(this,DD,{writable:!0,value:void 0}),Object.defineProperty(this,TD,{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 CD(this,$D)[$D](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!=(n=this.opts.rateLimitedQueue)?n:new bD(this.opts.limit),CD(this,DD)[DD]=null==(r=this.opts.retryDelays)?void 0:r.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 n;if(null!=(n=e[t])&&null!=(n=n.tus)&&n.uploadUrl){const n={...e[t].tus};delete n.uploadUrl,e[t]={...e[t],tus:n}}}),this.uppy.setState({files:e})}resetUploaderReferences(e,t){const n=this.uploaders[e];n&&(n.abort(),null!=t&&t.abort&&n.abort(!0),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null)}onReceiveUploadUrl(e,t){const n=this.uppy.getFile(e.id);n&&(n.tus&&n.tus.uploadUrl===t||(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(n.id,{tus:{...n.tus,uploadUrl:t}})))}install(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!0}}),this.uppy.addUploader(CD(this,TD)[TD]),this.uppy.on("reset-progress",this.handleResetProgress)}uninstall(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!1}}),this.uppy.removeUploader(CD(this,TD)[TD])}}function jD(e){var t=this;return this.resetUploaderReferences(e.id),new Promise((n,r)=>{let o,i,a;const l={...this.opts,...e.tus||{}};"function"==typeof l.headers&&(l.headers=l.headers(e));const{onShouldRetry:s,onBeforeRequest:c,...u}=l,d={...SD,...u};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 VP.fingerprint(e,t);const n=["tus",f.id,t.endpoint].join("-");return Promise.resolve(n)}),d.onBeforeRequest=async t=>{let n;if(t.getUnderlyingObject().withCredentials=!!l.withCredentials,"function"==typeof c&&(n=c(t,e)),xD(o,"shouldBeRequeued")){if(!o.shouldBeRequeued)return Promise.reject();let t;const r=new Promise(e=>{t=e});return o=this.requests.run(()=>(e.isPaused&&o.abort(),t(),()=>{})),void await Promise.all([r,n])}return n},d.onError=t=>{var n;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 JP(t,i)),this.resetUploaderReferences(e.id),null==(n=o)||n.abort(),this.uppy.emit("upload-error",e,t),"function"==typeof l.onError&&l.onError(t),r(t)},d.onProgress=(t,n)=>{this.onReceiveUploadUrl(e,a.url),"function"==typeof l.onProgress&&l.onProgress(t,n),this.uppy.emit("upload-progress",this.uppy.getFile(e.id),{uploader:this,bytesUploaded:t,bytesTotal:n})},d.onSuccess=()=>{var t;const r={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),r),a.url){const{name:e}=a.file;this.uppy.log(`Download ${e} from ${a.url}`)}"function"==typeof l.onSuccess&&l.onSuccess(),n(a)};const p=e=>{var t;const n=null==e||null==(t=e.originalResponse)?void 0:t.getStatus();if(429===n){if(!this.requests.isPaused){var r;const e=null==(r=CD(this,DD)[DD])?void 0:r.next();if(null==e||e.done)return!1;this.requests.rateLimit(e.value)}}else{if(null!=n&&n>400&&n<500&&409!==n&&423!==n)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!=s?(e,t)=>s(e,t,l,p):p;const h=(e,t,n)=>{xD(e,t)&&!xD(e,n)&&(e[n]=e[t])},m={};(Array.isArray(l.allowedMetaFields)?l.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 HP(e.data,d),this.uploaders[e.id]=a;const g=new KP(this.uppy);this.uploaderEvents[e.id]=g,i=()=>(e.isPaused||a.start(),()=>{}),a.findPreviousUploads().then(t=>{const n=t[0];n&&(this.uppy.log(`[Tus] Resuming upload of ${e.id} started at ${n.creationTime}`),a.resumeFromPreviousUpload(n))}),o=this.requests.run(i),g.onFileRemove(e.id,t=>{o.abort(),this.resetUploaderReferences(e.id,{abort:!!a.url}),n(`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(r){let{reason:i}=void 0===r?{}:r;"user"===i&&(o.abort(),t.resetUploaderReferences(e.id,{abort:!!a.url})),n(`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 FD(e){var t;const n={...this.opts};return e.tus&&Object.assign(n,e.tus),{...null==(t=e.remote)?void 0:t.body,endpoint:n.endpoint,uploadUrl:n.uploadUrl,protocol:"tus",size:e.data.size,headers:n.headers,metadata:e.meta}}async function ND(e){const t=function(e){return e.filter(e=>!(e=>"error"in e&&!!e.error)(e))}(e),n=function(e){return e.filter(e=>{var t;return!(null!=(t=e.progress)&&t.uploadStarted&&e.isRestored)})}(t);this.uppy.emit("upload-start",n),await Promise.allSettled(t.map(e=>{if(e.isRemote){const t=()=>this.requests,n=new AbortController,r=t=>{t.id===e.id&&n.abort()};this.uppy.on("file-removed",r);const o=this.uppy.getRequestClientForFile(e).uploadRemoteFile(e,CD(this,qD)[qD](e),{signal:n.signal,getQueue:t});return this.requests.wrapSyncFunction(()=>{this.uppy.off("file-removed",r)},{priority:-1})(),o}return CD(this,MD)[MD](e)}))}BD.VERSION="3.5.4";const ID=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],RD=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],zD=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],LD=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],QD=(e,t,n)=>{let r=e;return"string"==typeof t||Array.isArray(t)?r=e.toLocaleString(t,n):!0!==t&&void 0===n||(r=e.toLocaleString(void 0,n)),r};function WD(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const n=(t={bits:!1,binary:!1,space:!0,...t}).bits?t.binary?LD:zD:t.binary?RD:ID,r=t.space?" ":"";if(t.signed&&0===e)return` 0${r}${n[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+QD(e,t.locale,a)+r+n[0];const l=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);return e/=(t.binary?1024:1e3)**l,a||(e=e.toPrecision(3)),i+QD(Number(e),t.locale,a)+r+n[l]}var VD=(void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}).performance||{};VD.now||VD.mozNow||VD.msNow||VD.oNow||VD.webkitNow;var HD,UD,ZD={env:{}},GD={exports:{}},YD={},XD={};"production"===ZD.env.NODE_ENV?GD.exports=function(){if(HD)return YD;HD=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case n:case o:case r:case s:case c:case f:return p;default:switch(p=p&&p.$$typeof){case a:case l:case d:case u:case i:return p;default:return h}}case t:return h}}}return YD.ContextConsumer=i,YD.ContextProvider=a,YD.Element=e,YD.ForwardRef=l,YD.Fragment=n,YD.Lazy=d,YD.Memo=u,YD.Portal=t,YD.Profiler=o,YD.StrictMode=r,YD.Suspense=s,YD.SuspenseList=c,YD.isContextConsumer=function(e){return h(e)===i},YD.isContextProvider=function(e){return h(e)===a},YD.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},YD.isForwardRef=function(e){return h(e)===l},YD.isFragment=function(e){return h(e)===n},YD.isLazy=function(e){return h(e)===d},YD.isMemo=function(e){return h(e)===u},YD.isPortal=function(e){return h(e)===t},YD.isProfiler=function(e){return h(e)===o},YD.isStrictMode=function(e){return h(e)===r},YD.isSuspense=function(e){return h(e)===s},YD.isSuspenseList=function(e){return h(e)===c},YD.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===s||e===c||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===l||e.$$typeof===p||void 0!==e.getModuleId)},YD.typeOf=h,YD}():GD.exports=(UD||(UD=1,"production"!==ZD.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case c:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case s:case f:case d:case a:return e;default:return h}}case n:return h}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");XD.ContextConsumer=a,XD.ContextProvider=l,XD.Element=t,XD.ForwardRef=s,XD.Fragment=r,XD.Lazy=f,XD.Memo=d,XD.Portal=n,XD.Profiler=i,XD.StrictMode=o,XD.Suspense=c,XD.SuspenseList=u,XD.isContextConsumer=function(t){return e(t)===a},XD.isContextProvider=function(t){return e(t)===l},XD.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},XD.isForwardRef=function(t){return e(t)===s},XD.isFragment=function(t){return e(t)===r},XD.isLazy=function(t){return e(t)===f},XD.isMemo=function(t){return e(t)===d},XD.isPortal=function(t){return e(t)===n},XD.isProfiler=function(t){return e(t)===i},XD.isStrictMode=function(t){return e(t)===o},XD.isSuspense=function(t){return e(t)===c},XD.isSuspenseList=function(t){return e(t)===u},XD.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===o||e===c||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===l||e.$$typeof===a||e.$$typeof===s||e.$$typeof===h||void 0!==e.getModuleId)},XD.typeOf=e}()),XD);var KD=GD.exports;function JD(e){function t(e,r,s,c,f){for(var p,h,m,g,A,O=0,_=0,x=0,C=0,E=0,q=0,T=m=p=0,j=0,F=0,N=0,I=0,R=s.length,z=R-1,L="",Q="",W="",V="";j<R;){if(h=s.charCodeAt(j),j===z&&0!==_+C+x+O&&(0!==_&&(h=47===_?10:47),C=x=O=0,R++,z++),0===_+C+x+O){if(j===z&&(0<F&&(L=L.replace(d,"")),0<L.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:L+=s.charAt(j)}h=59}switch(h){case 123:for(p=(L=L.trim()).charCodeAt(0),m=1,I=++j;j<R;){switch(h=s.charCodeAt(j)){case 123:m++;break;case 125:m--;break;case 47:switch(h=s.charCodeAt(j+1)){case 42:case 47:e:{for(T=j+1;T<z;++T)switch(s.charCodeAt(T)){case 47:if(42===h&&42===s.charCodeAt(T-1)&&j+2!==T){j=T+1;break e}break;case 10:if(47===h){j=T+1;break e}}j=T}}break;case 91:h++;case 40:h++;case 34:case 39:for(;j++<z&&s.charCodeAt(j)!==h;);}if(0===m)break;j++}if(m=s.substring(I,j),0===p&&(p=(L=L.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<F&&(L=L.replace(d,"")),h=L.charCodeAt(1)){case 100:case 109:case 115:case 45:F=r;break;default:F=M}if(I=(m=t(r,F,m,h,f+1)).length,0<$&&(A=l(3,m,F=n(M,L,N),r,S,k,I,h,f,c),L=F.join(""),void 0!==A&&0===(I=(m=A.trim()).length)&&(h=0,m="")),0<I)switch(h){case 115:L=L.replace(w,a);case 100:case 109:case 45:m=L+"{"+m+"}";break;case 107:m=(L=L.replace(v,"$1 $2"))+"{"+m+"}",m=1===D||2===D&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=L+m,112===c&&(Q+=m,m="")}else m=""}else m=t(r,n(r,L,N),m,c,f+1);W+=m,m=N=F=T=p=0,L="",h=s.charCodeAt(++j);break;case 125:case 59:if(1<(I=(L=(0<F?L.replace(d,""):L).trim()).length))switch(0===T&&(p=L.charCodeAt(0),45===p||96<p&&123>p)&&(I=(L=L.replace(" ",":")).length),0<$&&void 0!==(A=l(1,L,r,e,S,k,Q.length,c,f,c))&&0===(I=(L=A.trim()).length)&&(L="\0\0"),p=L.charCodeAt(0),h=L.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){V+=L+s.charAt(j);break}default:58!==L.charCodeAt(I-1)&&(Q+=o(L,p,h,L.charCodeAt(2)))}N=F=T=p=0,L="",h=s.charCodeAt(++j)}}switch(h){case 13:case 10:47===_?_=0:0===1+p&&107!==c&&0<L.length&&(F=1,L+="\0"),0<$*B&&l(0,L,r,e,S,k,Q.length,c,f,c),k=1,S++;break;case 59:case 125:if(0===_+C+x+O){k++;break}default:switch(k++,g=s.charAt(j),h){case 9:case 32:if(0===C+O+_)switch(E){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===C+_+O&&(F=N=1,g="\f"+g);break;case 108:if(0===C+_+O+P&&0<T)switch(j-T){case 2:112===E&&58===s.charCodeAt(j-3)&&(P=E);case 8:111===q&&(P=q)}break;case 58:0===C+_+O&&(T=j);break;case 44:0===_+x+C+O&&(F=1,g+="\r");break;case 34:case 39:0===_&&(C=C===h?0:0===C?h:C);break;case 91:0===C+_+x&&O++;break;case 93:0===C+_+x&&O--;break;case 41:0===C+_+O&&x--;break;case 40:0===C+_+O&&(0===p&&(2*E+3*q==533||(p=1)),x++);break;case 64:0===_+x+C+O+T+m&&(m=1);break;case 42:case 47:if(!(0<C+O+x))switch(_){case 0:switch(2*h+3*s.charCodeAt(j+1)){case 235:_=47;break;case 220:I=j,_=42}break;case 42:47===h&&42===E&&I+2!==j&&(33===s.charCodeAt(I+2)&&(Q+=s.substring(I,j+1)),g="",_=0)}}0===_&&(L+=g)}q=E,E=h,j++}if(0<(I=Q.length)){if(F=r,0<$&&void 0!==(A=l(2,Q,F,e,S,k,I,c,f,c))&&0===(Q=A).length)return V+Q+W;if(Q=F.join(",")+"{"+Q+"}",0!==D*P){switch(2!==D||i(Q,2)||(P=0),P){case 111:Q=Q.replace(y,":-moz-$1")+Q;break;case 112:Q=Q.replace(b,"::-webkit-input-$1")+Q.replace(b,"::-moz-$1")+Q.replace(b,":-ms-input-$1")+Q}P=0}}return V+Q+W}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var l=0;for(e=0===a?"":e[0]+" ";l<i;++l)t[l]=r(e,t[l],n).trim();break;default:var s=l=0;for(t=[];l<i;++l)for(var c=0;c<a;++c)t[s++]=r(e[c]+" ",o[l],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",l=2*t+3*n+4*r;if(944===l){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===D||2===D&&i(s,1)?"-webkit-"+s+s:s}if(0===D||2===D&&!i(a,1))return a;switch(l){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(E,"$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"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(A,"tb");break;case 232:s=a.replace(A,"tb-rl");break;case 220:s=a.replace(A,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,l=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(_,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(_,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&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 n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),T(2!==t?r:r.replace(x,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function l(e,t,n,r,o,i,a,l,s,u){for(var d,f=0,p=t;f<$;++f)switch(d=q[f].call(c,e,p,n,r,o,i,a,l,s,u)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?D=1:(D=2,T=e):D=0),s}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<$){var o=l(-1,n,r,r,S,k,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(M,r,n,0,0);return 0<$&&void 0!==(o=l(-2,i,r,r,S,k,i.length,0,0,0))&&(i=o),P=0,k=S=1,i}var u=/^\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*/,b=/::(place)/g,y=/:(read-only)/g,A=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,_=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,k=1,S=1,P=0,D=1,M=[],q=[],$=0,T=null,B=0;return c.use=function e(t){switch(t){case void 0:case null:$=q.length=0;break;default:if("function"==typeof t)q[$++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else B=0|!!t}return e},c.set=s,void 0!==e&&s(e),c}var eM={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 tM(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var nM,rM,oM=/^((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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,iM=tM(function(e){return oM.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),aM={exports:{}},lM={},sM={};"production"===ZD.env.NODE_ENV?aM.exports=function(){if(nM)return lM;nM=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=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,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=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,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case s:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case h:case p:case a:return e;default:return f}}case n:return f}}}function A(e){return y(e)===c}return lM.AsyncMode=s,lM.ConcurrentMode=c,lM.ContextConsumer=l,lM.ContextProvider=a,lM.Element=t,lM.ForwardRef=u,lM.Fragment=r,lM.Lazy=h,lM.Memo=p,lM.Portal=n,lM.Profiler=i,lM.StrictMode=o,lM.Suspense=d,lM.isAsyncMode=function(e){return A(e)||y(e)===s},lM.isConcurrentMode=A,lM.isContextConsumer=function(e){return y(e)===l},lM.isContextProvider=function(e){return y(e)===a},lM.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},lM.isForwardRef=function(e){return y(e)===u},lM.isFragment=function(e){return y(e)===r},lM.isLazy=function(e){return y(e)===h},lM.isMemo=function(e){return y(e)===p},lM.isPortal=function(e){return y(e)===n},lM.isProfiler=function(e){return y(e)===i},lM.isStrictMode=function(e){return y(e)===o},lM.isSuspense=function(e){return y(e)===d},lM.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},lM.typeOf=y,lM}():aM.exports=(rM||(rM=1,"production"!==ZD.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=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,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=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,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case s:case c:case r:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case l:case u:case h:case p:case a:return g;default:return f}}case n:return f}}}var A=s,w=c,O=l,_=a,x=t,C=u,E=r,k=h,S=p,P=n,D=i,M=o,q=d,$=!1;function T(e){return y(e)===c}sM.AsyncMode=A,sM.ConcurrentMode=w,sM.ContextConsumer=O,sM.ContextProvider=_,sM.Element=x,sM.ForwardRef=C,sM.Fragment=E,sM.Lazy=k,sM.Memo=S,sM.Portal=P,sM.Profiler=D,sM.StrictMode=M,sM.Suspense=q,sM.isAsyncMode=function(e){return $||($=!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.")),T(e)||y(e)===s},sM.isConcurrentMode=T,sM.isContextConsumer=function(e){return y(e)===l},sM.isContextProvider=function(e){return y(e)===a},sM.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},sM.isForwardRef=function(e){return y(e)===u},sM.isFragment=function(e){return y(e)===r},sM.isLazy=function(e){return y(e)===h},sM.isMemo=function(e){return y(e)===p},sM.isPortal=function(e){return y(e)===n},sM.isProfiler=function(e){return y(e)===i},sM.isStrictMode=function(e){return y(e)===o},sM.isSuspense=function(e){return y(e)===d},sM.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},sM.typeOf=y}()),sM);var cM=aM.exports,uM={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},dM={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fM={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pM={};function hM(e){return cM.isMemo(e)?fM:pM[e.$$typeof]||uM}pM[cM.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pM[cM.Memo]=fM;var mM=Object.defineProperty,gM=Object.getOwnPropertyNames,vM=Object.getOwnPropertySymbols,bM=Object.getOwnPropertyDescriptor,yM=Object.getPrototypeOf,AM=Object.prototype,wM=Mx(function e(t,n,r){if("string"!=typeof n){if(AM){var o=yM(n);o&&o!==AM&&e(t,o,r)}var i=gM(n);vM&&(i=i.concat(vM(n)));for(var a=hM(t),l=hM(n),s=0;s<i.length;++s){var c=i[s];if(!(dM[c]||r&&r[c]||l&&l[c]||a&&a[c])){var u=bM(n,c);try{mM(t,c,u)}catch(e){}}}}return t});function OM(){return(OM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var _M=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},xM=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!KD.typeOf(e)},CM=Object.freeze([]),EM=Object.freeze({});function kM(e){return"function"==typeof e}function SM(e){return"production"!==ZD.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function PM(e){return e&&"string"==typeof e.styledComponentId}var DM=void 0!==ZD.env&&(ZD.env.REACT_APP_SC_ATTR||ZD.env.SC_ATTR)||"data-styled",MM="undefined"!=typeof window&&"HTMLElement"in window,qM=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==ZD.env&&(void 0!==ZD.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==ZD.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==ZD.env.REACT_APP_SC_DISABLE_SPEEDY&&ZD.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==ZD.env.SC_DISABLE_SPEEDY&&""!==ZD.env.SC_DISABLE_SPEEDY?"false"!==ZD.env.SC_DISABLE_SPEEDY&&ZD.env.SC_DISABLE_SPEEDY:"production"!==ZD.env.NODE_ENV)),$M="production"!==ZD.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 TM(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(t){e=e.replace(/%[a-z]/,t)}),e}function BM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw"production"===ZD.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(TM.apply(void 0,[$M[e]].concat(n)).trim())}var jM=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,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&BM(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=0,s=t.length;l<s;l++)this.tag.insertRule(a,t[l])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),FM=new Map,NM=new Map,IM=1,RM=function(e){if(FM.has(e))return FM.get(e);for(;NM.has(IM);)IM++;var t=IM++;return"production"!==ZD.env.NODE_ENV&&((0|t)<0||t>1<<30)&&BM(16,""+t),FM.set(e,t),NM.set(t,e),t},zM=function(e){return NM.get(e)},LM=function(e,t){t>=IM&&(IM=t+1),FM.set(e,t),NM.set(t,e)},QM="style["+DM+'][data-styled-version="5.3.10"]',WM=new RegExp("^"+DM+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),VM=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},HM=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var l=a.match(WM);if(l){var s=0|parseInt(l[1],10),c=l[2];0!==s&&(LM(c,s),VM(e,c,l[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(a)}}},UM=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(DM))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(DM,"active"),r.setAttribute("data-styled-version","5.3.10");var a=__webpack_require__.nc;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},ZM=function(){function e(e){var t=this.element=UM(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}BM(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}(),GM=function(){function e(e){var t=this.element=UM(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 n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||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}(),YM=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}(),XM=MM,KM={isServer:!MM,useCSSOMInjection:!qM},JM=function(){function e(e,t,n){void 0===e&&(e=EM),void 0===t&&(t={}),this.options=OM({},KM,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&MM&&XM&&(XM=!1,function(e){for(var t=document.querySelectorAll(QM),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(DM)&&(HM(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return RM(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(OM({},this.options,{},t),this.gs,n&&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=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new YM(o):r?new ZM(o):new GM(o),new jM(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(RM(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(RM(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(RM(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=zM(o);if(void 0!==i){var a=e.names.get(i),l=t.getGroup(o);if(a&&l&&a.size){var s=DM+".g"+o+'[id="'+i+'"]',c="";void 0!==a&&a.forEach(function(e){e.length>0&&(c+=e+",")}),r+=""+l+s+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),eq=/(a)(d)/gi,tq=function(e){return String.fromCharCode(e+(e>25?39:97))};function nq(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=tq(t%52)+n;return(tq(t%52)+n).replace(eq,"$1-$2")}var rq=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},oq=function(e){return rq(5381,e)},iq=oq("5.3.10"),aq=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===ZD.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(kM(n)&&!PM(n))return!1}return!0}(e),this.componentId=t,this.baseHash=rq(iq,t),this.baseStyle=n,JM.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=Aq(this.rules,e,t,n).join(""),a=nq(rq(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var l=n(i,"."+a,void 0,r);t.insertRules(r,a,l)}o.push(a),this.staticRulesId=a}else{for(var s=this.rules.length,c=rq(this.baseHash,n.hash),u="",d=0;d<s;d++){var f=this.rules[d];if("string"==typeof f)u+=f,"production"!==ZD.env.NODE_ENV&&(c=rq(c,f+d));else if(f){var p=Aq(f,e,t,n),h=Array.isArray(p)?p.join(""):p;c=rq(c,h+d),u+=h}}if(u){var m=nq(c>>>0);if(!t.hasNameForId(r,m)){var g=n(u,"."+m,void 0,r);t.insertRules(r,m,g)}o.push(m)}}return o.join(" ")},e}(),lq=/^\s*\/\/.*$/gm,sq=[":","[",".","#"],cq=ra()().createContext();cq.Consumer;var uq=ra()().createContext(),dq=(uq.Consumer,new JM),fq=function(){var e,t,n,r,o=EM,i=o.options,a=void 0===i?EM:i,l=o.plugins,s=void 0===l?CM:l,c=new JD(a),u=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,l,s,c,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){u.push(e)}),f=function(n,o,i){return 0===o&&-1!==sq.indexOf(i[t.length])||i.match(r)?n:"."+e};function p(o,i,a,l){void 0===l&&(l="&");var s=o.replace(lq,""),u=i&&a?a+" "+i+" { "+s+" }":s;return e=l,t=i,n=new RegExp("\\"+t+"\\b","g"),r=new RegExp("(\\"+t+"\\b){2,}"),c(a||!i?"":i,u)}return c.use([].concat(s,[function(e,r,o){2===e&&o.length&&o[0].lastIndexOf(t)>0&&(o[0]=o[0].replace(n,f))},d,function(e){if(-2===e){var t=u;return u=[],t}}])),p.hash=s.length?s.reduce(function(e,t){return t.name||BM(15),rq(e,t.name)},5381).toString():"",p}(),pq=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=fq);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return BM(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=fq),this.name+e.hash},e}(),hq=/([A-Z])/,mq=/([A-Z])/g,gq=/^ms-/,vq=function(e){return"-"+e.toLowerCase()};function bq(e){return hq.test(e)?e.replace(mq,vq).replace(gq,"-ms-"):e}var yq=function(e){return null==e||!1===e||""===e};function Aq(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a<l;a+=1)""!==(o=Aq(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}if(yq(e))return"";if(PM(e))return"."+e.styledComponentId;if(kM(e)){if("function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t)return e;var s=e(t);return"production"!==ZD.env.NODE_ENV&&KD.isElement(s)&&console.warn(SM(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."),Aq(s,t,n,r)}var c;return e instanceof pq?n?(e.inject(n,r),e.getName(r)):e:xM(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!yq(t[a])&&(Array.isArray(t[a])&&t[a].isCss||kM(t[a])?i.push(bq(a)+":",t[a],";"):xM(t[a])?i.push.apply(i,e(t[a],a)):i.push(bq(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in eM||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString()}var wq=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Oq(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return kM(e)||xM(e)?wq(Aq(_M(CM,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:wq(Aq(_M(e,n)))}var _q=/invalid hook call/i,xq=new Set,Cq=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Eq=/(^-|-$)/g;function kq(e){return e.replace(Cq,"-").replace(Eq,"")}function Sq(e){return"string"==typeof e&&("production"===ZD.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Pq=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Dq=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Mq(e,t,n){var r=e[n];Pq(t)&&Pq(r)?qq(r,t):e[n]=t}function qq(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Pq(a))for(var l in a)Dq(l)&&Mq(e,a[l],l)}return e}var $q=ra()().createContext();$q.Consumer;var Tq={};function Bq(e,t,n){var r=PM(e),o=!Sq(e),i=t.attrs,a=void 0===i?CM:i,l=t.componentId,s=void 0===l?function(e,t){var n="string"!=typeof e?"sc":kq(e);Tq[n]=(Tq[n]||0)+1;var r=n+"-"+function(e){return nq(oq(e)>>>0)}("5.3.10"+n+Tq[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,c=t.displayName,u=void 0===c?function(e){return Sq(e)?"styled."+e:"Styled("+SM(e)+")"}(e):c,d=t.displayName&&t.componentId?kq(t.displayName)+"-"+t.componentId:t.componentId||s,f=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,p=t.shouldForwardProp;r&&e.shouldForwardProp&&(p=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var h,m=new aq(n,d,r?e.componentStyle:void 0),g=m.isStatic&&0===a.length,v=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,l=e.foldedComponentIds,s=e.shouldForwardProp,c=e.styledComponentId,u=e.target;"production"!==ZD.env.NODE_ENV&&(0,le().useDebugValue)(c);var d=function(e,t,n){void 0===e&&(e=EM);var r=OM({},t,{theme:e}),o={};return n.forEach(function(e){var t,n,i,a=e;for(t in kM(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]}),[r,o]}(function(e,t,n){return void 0===n&&(n=EM),e.theme!==n.theme&&e.theme||t||n.theme}(t,(0,le().useContext)($q),a)||EM,t,o),f=d[0],p=d[1],h=function(e,t,n,r){var o=(0,le().useContext)(cq)||dq,i=(0,le().useContext)(uq)||fq,a=t?e.generateAndInjectStyles(EM,o,i):e.generateAndInjectStyles(n,o,i);return"production"!==ZD.env.NODE_ENV&&(0,le().useDebugValue)(a),"production"!==ZD.env.NODE_ENV&&!t&&r&&r(a),a}(i,r,f,"production"!==ZD.env.NODE_ENV?e.warnTooManyClasses:void 0),m=n,g=p.$as||t.$as||p.as||t.as||u,v=Sq(g),b=p!==t?OM({},t,{},p):t,y={};for(var A in b)"$"!==A[0]&&"as"!==A&&("forwardedAs"===A?y.as=b[A]:(s?s(A,iM,g):!v||iM(A))&&(y[A]=b[A]));return t.style&&p.style!==t.style&&(y.style=OM({},t.style,{},p.style)),y.className=Array.prototype.concat(l,c,h!==c?h:null,t.className,p.className).filter(Boolean).join(" "),y.ref=m,(0,le().createElement)(g,y)}(h,e,t,g)};return v.displayName=u,(h=ra()().forwardRef(v)).attrs=f,h.componentStyle=m,h.displayName=u,h.shouldForwardProp=p,h.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):CM,h.styledComponentId=d,h.target=r?e.target:e,h.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(Sq(e)?e:kq(SM(e)));return Bq(e,OM({},o,{attrs:f,componentId:i}),n)},Object.defineProperty(h,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?qq({},e.defaultProps,t):t}}),"production"!==ZD.env.NODE_ENV&&(function(e,t){if("production"!==ZD.env.NODE_ENV){var n="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.",r=console.error;try{var o=!0;console.error=function(e){if(_q.test(e))o=!1,xq.delete(n);else{for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];r.apply(void 0,[e].concat(i))}},(0,le().useRef)(),o&&!xq.has(n)&&(console.warn(n),xq.add(n))}catch(e){_q.test(e.message)&&xq.delete(n)}finally{console.error=r}}}(u,d),h.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).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 />"),r=!0,n={}}}}(u,d)),Object.defineProperty(h,"toString",{value:function(){return"."+h.styledComponentId}}),o&&wM(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),h}var jq=function(e){return function e(t,n,r){if(void 0===r&&(r=EM),!KD.isValidElementType(n))return BM(1,String(n));var o=function(){return t(n,r,Oq.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,OM({},r,{},o))},o.attrs=function(o){return e(t,n,OM({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(Bq,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){jq[e]=jq(e)}),"production"!==ZD.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"!==ZD.env.NODE_ENV&&"test"!==ZD.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);const Fq=Oq`
|
|
126
126
|
pointer-events: none;
|
|
127
127
|
`,Nq=jq.div`
|
|
128
128
|
position: relative;
|