@3sc/common-component 0.0.64 → 0.0.65

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/index.umd.js CHANGED
@@ -244,7 +244,7 @@ const theme2 = createTheme({ palette: {
244
244
  ${e.palette.mode==="light"?ms(we(e.palette.divider,1),.88):fs(we(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${g1.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Od=C.forwardRef(function(t,n){const o=Ie({props:t,name:"MuiTableCell"}),{align:r="inherit",className:s,component:a,padding:c,scope:l,size:u,sortDirection:d,variant:p}=o,f=oe(o,b1),h=C.useContext(Ys),m=C.useContext(Po),b=m&&m.variant==="head";let g;a?g=a:g=b?"th":"td";let x=l;g==="td"?x=void 0:!x&&b&&(x="col");const S=p||m&&m.variant,I=v({},o,{align:r,component:g,padding:c||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:d,stickyHeader:S==="head"&&h&&h.stickyHeader,variant:S}),T=h1(I);let y=null;return d&&(y=d==="asc"?"ascending":"descending"),E.jsx(v1,v({as:g,ref:n,className:ie(T.root,s),"aria-sort":y,scope:x,ownerState:I},f))});process.env.NODE_ENV!=="production"&&(Od.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),scope:i.string,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sortDirection:i.oneOf(["asc","desc",!1]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body","footer","head"]),i.string])});function y1(e){return he("MuiTableHead",e)}ve("MuiTableHead",["root"]);const C1=["className","component"],x1=e=>{const{classes:t}=e;return Ce({root:["root"]},y1,t)},I1=q("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),E1={variant:"head"},Rd="thead",wd=C.forwardRef(function(t,n){const o=Ie({props:t,name:"MuiTableHead"}),{className:r,component:s=Rd}=o,a=oe(o,C1),c=v({},o,{component:s}),l=x1(c);return E.jsx(Po.Provider,{value:E1,children:E.jsx(I1,v({as:s,className:ie(l.root,r),ref:n,role:s===Rd?null:"rowgroup",ownerState:c},a))})});process.env.NODE_ENV!=="production"&&(wd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const T1=Wt(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),S1=Wt(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function O1(e){return he("MuiTableRow",e)}const Ad=ve("MuiTableRow",["root","selected","hover","head","footer"]),R1=["className","component","hover","selected"],w1=e=>{const{classes:t,selected:n,hover:o,head:r,footer:s}=e;return Ce({root:["root",n&&"selected",o&&"hover",r&&"head",s&&"footer"]},O1,t)},A1=q("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Ad.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ad.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:we(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:we(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),Nd="tr",qr=C.forwardRef(function(t,n){const o=Ie({props:t,name:"MuiTableRow"}),{className:r,component:s=Nd,hover:a=!1,selected:c=!1}=o,l=oe(o,R1),u=C.useContext(Po),d=v({},o,{component:s,hover:a,selected:c,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=w1(d);return E.jsx(A1,v({as:s,ref:n,className:ie(p.root,r),role:s===Nd?null:"row",ownerState:d},l))});process.env.NODE_ENV!=="production"&&(qr.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,hover:i.bool,selected:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function N1(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function P1(e,t,n,o={},r=()=>{}){const{ease:s=N1,duration:a=300}=o;let c=null;const l=t[e];let u=!1;const d=()=>{u=!0},p=f=>{if(u){r(new Error("Animation cancelled"));return}c===null&&(c=f);const h=Math.min(1,(f-c)/a);if(t[e]=s(h)*(n-l)+l,h>=1){requestAnimationFrame(()=>{r(null)});return}requestAnimationFrame(p)};return l===n?(r(new Error("Element already at target position")),d):(requestAnimationFrame(p),d)}const k1=["onChange"],F1={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Pd(e){const{onChange:t}=e,n=oe(e,k1),o=C.useRef(),r=C.useRef(null),s=()=>{o.current=r.current.offsetHeight-r.current.clientHeight};return un(()=>{const a=dr(()=>{const l=o.current;s(),l!==o.current&&t(o.current)}),c=qt(r.current);return c.addEventListener("resize",a),()=>{a.clear(),c.removeEventListener("resize",a)}},[t]),C.useEffect(()=>{s(),t(o.current)},[t]),E.jsx("div",v({style:F1,ref:r},n))}process.env.NODE_ENV!=="production"&&(Pd.propTypes={onChange:i.func.isRequired});function B1(e){return he("MuiTabScrollButton",e)}const M1=ve("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),D1=["className","slots","slotProps","direction","orientation","disabled"],j1=e=>{const{classes:t,orientation:n,disabled:o}=e;return Ce({root:["root",n,o&&"disabled"]},B1,t)},$1=q(Qt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>v({width:40,flexShrink:0,opacity:.8,[`&.${M1.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),kd=C.forwardRef(function(t,n){var o,r;const s=Ie({props:t,name:"MuiTabScrollButton"}),{className:a,slots:c={},slotProps:l={},direction:u}=s,d=oe(s,D1),p=br(),f=v({isRtl:p},s),h=j1(f),m=(o=c.StartScrollButtonIcon)!=null?o:T1,b=(r=c.EndScrollButtonIcon)!=null?r:S1,g=Ft({elementType:m,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),x=Ft({elementType:b,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return E.jsx($1,v({component:"div",className:ie(h.root,a),ref:n,role:null,ownerState:f,tabIndex:null},d,{children:u==="left"?E.jsx(m,v({},g)):E.jsx(b,v({},x))}))});process.env.NODE_ENV!=="production"&&(kd.propTypes={children:i.node,classes:i.object,className:i.string,direction:i.oneOf(["left","right"]).isRequired,disabled:i.bool,orientation:i.oneOf(["horizontal","vertical"]).isRequired,slotProps:i.shape({endScrollButtonIcon:i.oneOfType([i.func,i.object]),startScrollButtonIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({EndScrollButtonIcon:i.elementType,StartScrollButtonIcon:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function V1(e){return he("MuiTabs",e)}const Js=ve("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),_1=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Fd=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Bd=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Kr=(e,t,n)=>{let o=!1,r=n(e,t);for(;r;){if(r===e.firstChild){if(o)return;o=!0}const s=r.disabled||r.getAttribute("aria-disabled")==="true";if(!r.hasAttribute("tabindex")||s)r=n(e,r);else{r.focus();return}}},L1=e=>{const{vertical:t,fixed:n,hideScrollbar:o,scrollableX:r,scrollableY:s,centered:a,scrollButtonsHideMobile:c,classes:l}=e;return Ce({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",o&&"hideScrollbar",r&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",c&&"scrollButtonsHideMobile"],scrollableX:[r&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},V1,l)},W1=q("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Js.scrollButtons}`]:t.scrollButtons},{[`& .${Js.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>v({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Js.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),G1=q("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>v({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),z1=q("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>v({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),H1=q("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>v({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),X1=q(Pd)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Md={};let Dd=!1;const jd=C.forwardRef(function(t,n){const o=Ie({props:t,name:"MuiTabs"}),r=Rt(),s=br(),{"aria-label":a,"aria-labelledby":c,action:l,centered:u=!1,children:d,className:p,component:f="div",allowScrollButtonsMobile:h=!1,indicatorColor:m="primary",onChange:b,orientation:g="horizontal",ScrollButtonComponent:x=kd,scrollButtons:S="auto",selectionFollowsFocus:I,slots:T={},slotProps:y={},TabIndicatorProps:R={},TabScrollButtonProps:w={},textColor:A="primary",value:k,variant:j="standard",visibleScrollbar:V=!1}=o,G=oe(o,_1),$=j==="scrollable",M=g==="vertical",_=M?"scrollTop":"scrollLeft",F=M?"top":"left",W=M?"bottom":"right",D=M?"clientHeight":"clientWidth",Z=M?"height":"width",P=v({},o,{component:f,allowScrollButtonsMobile:h,indicatorColor:m,orientation:g,vertical:M,scrollButtons:S,textColor:A,variant:j,visibleScrollbar:V,fixed:!$,hideScrollbar:$&&!V,scrollableX:$&&!M,scrollableY:$&&M,centered:u&&!$,scrollButtonsHideMobile:!h}),z=L1(P),U=Ft({elementType:T.StartScrollButtonIcon,externalSlotProps:y.startScrollButtonIcon,ownerState:P}),ee=Ft({elementType:T.EndScrollButtonIcon,externalSlotProps:y.endScrollButtonIcon,ownerState:P});process.env.NODE_ENV!=="production"&&u&&$&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[Y,te]=C.useState(!1),[Q,re]=C.useState(Md),[ne,le]=C.useState(!1),[ce,ue]=C.useState(!1),[N,de]=C.useState(!1),[X,ye]=C.useState({overflow:"hidden",scrollbarWidth:0}),Ve=new Map,Le=C.useRef(null),Ue=C.useRef(null),it=()=>{const K=Le.current;let se;if(K){const Te=K.getBoundingClientRect();se={clientWidth:K.clientWidth,scrollLeft:K.scrollLeft,scrollTop:K.scrollTop,scrollLeftNormalized:qb(K,s?"rtl":"ltr"),scrollWidth:K.scrollWidth,top:Te.top,bottom:Te.bottom,left:Te.left,right:Te.right}}let Ee;if(K&&k!==!1){const Te=Ue.current.children;if(Te.length>0){const ze=Te[Ve.get(k)];process.env.NODE_ENV!=="production"&&(ze||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${k}".`,Ve.keys?`You can provide one of the following values: ${Array.from(Ve.keys()).join(", ")}.`:null].join(`
245
245
  `))),Ee=ze?ze.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&!Dd&&Ee&&Ee.width===0&&Ee.height===0&&se.clientWidth!==0&&(se=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${k}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join(`
246
246
  `)),Dd=!0)}}return{tabsMeta:se,tabMeta:Ee}},ot=Kt(()=>{const{tabsMeta:K,tabMeta:se}=it();let Ee=0,Te;if(M)Te="top",se&&K&&(Ee=se.top-K.top+K.scrollTop);else if(Te=s?"right":"left",se&&K){const lt=s?K.scrollLeftNormalized+K.clientWidth-K.scrollWidth:K.scrollLeft;Ee=(s?-1:1)*(se[Te]-K[Te]+lt)}const ze={[Te]:Ee,[Z]:se?se[Z]:0};if(isNaN(Q[Te])||isNaN(Q[Z]))re(ze);else{const lt=Math.abs(Q[Te]-ze[Te]),dt=Math.abs(Q[Z]-ze[Z]);(lt>=1||dt>=1)&&re(ze)}}),_e=(K,{animation:se=!0}={})=>{se?P1(_,Le.current,K,{duration:r.transitions.duration.standard}):Le.current[_]=K},st=K=>{let se=Le.current[_];M?se+=K:(se+=K*(s?-1:1),se*=s&&Ec()==="reverse"?-1:1),_e(se)},at=()=>{const K=Le.current[D];let se=0;const Ee=Array.from(Ue.current.children);for(let Te=0;Te<Ee.length;Te+=1){const ze=Ee[Te];if(se+ze[D]>K){Te===0&&(se=K);break}se+=ze[D]}return se},We=()=>{st(-1*at())},ut=()=>{st(at())},jt=C.useCallback(K=>{ye({overflow:null,scrollbarWidth:K})},[]),ft=()=>{const K={};K.scrollbarSizeListener=$?E.jsx(X1,{onChange:jt,className:ie(z.scrollableX,z.hideScrollbar)}):null;const Ee=$&&(S==="auto"&&(ne||ce)||S===!0);return K.scrollButtonStart=Ee?E.jsx(x,v({slots:{StartScrollButtonIcon:T.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:U},orientation:g,direction:s?"right":"left",onClick:We,disabled:!ne},w,{className:ie(z.scrollButtons,w.className)})):null,K.scrollButtonEnd=Ee?E.jsx(x,v({slots:{EndScrollButtonIcon:T.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ee},orientation:g,direction:s?"left":"right",onClick:ut,disabled:!ce},w,{className:ie(z.scrollButtons,w.className)})):null,K},Oe=Kt(K=>{const{tabsMeta:se,tabMeta:Ee}=it();if(!(!Ee||!se)){if(Ee[F]<se[F]){const Te=se[_]+(Ee[F]-se[F]);_e(Te,{animation:K})}else if(Ee[W]>se[W]){const Te=se[_]+(Ee[W]-se[W]);_e(Te,{animation:K})}}}),fe=Kt(()=>{$&&S!==!1&&de(!N)});C.useEffect(()=>{const K=dr(()=>{Le.current&&ot()});let se;const Ee=lt=>{lt.forEach(dt=>{dt.removedNodes.forEach(rn=>{var $t;($t=se)==null||$t.unobserve(rn)}),dt.addedNodes.forEach(rn=>{var $t;($t=se)==null||$t.observe(rn)})}),K(),fe()},Te=qt(Le.current);Te.addEventListener("resize",K);let ze;return typeof ResizeObserver<"u"&&(se=new ResizeObserver(K),Array.from(Ue.current.children).forEach(lt=>{se.observe(lt)})),typeof MutationObserver<"u"&&(ze=new MutationObserver(Ee),ze.observe(Ue.current,{childList:!0})),()=>{var lt,dt;K.clear(),Te.removeEventListener("resize",K),(lt=ze)==null||lt.disconnect(),(dt=se)==null||dt.disconnect()}},[ot,fe]),C.useEffect(()=>{const K=Array.from(Ue.current.children),se=K.length;if(typeof IntersectionObserver<"u"&&se>0&&$&&S!==!1){const Ee=K[0],Te=K[se-1],ze={root:Le.current,threshold:.99},lt=io=>{le(!io[0].isIntersecting)},dt=new IntersectionObserver(lt,ze);dt.observe(Ee);const rn=io=>{ue(!io[0].isIntersecting)},$t=new IntersectionObserver(rn,ze);return $t.observe(Te),()=>{dt.disconnect(),$t.disconnect()}}},[$,S,N,d==null?void 0:d.length]),C.useEffect(()=>{te(!0)},[]),C.useEffect(()=>{ot()}),C.useEffect(()=>{Oe(Md!==Q)},[Oe,Q]),C.useImperativeHandle(l,()=>({updateIndicator:ot,updateScrollButtons:fe}),[ot,fe]);const mt=E.jsx(H1,v({},R,{className:ie(z.indicator,R.className),ownerState:P,style:v({},Q,R.style)}));let It=0;const Yt=C.Children.map(d,K=>{if(!C.isValidElement(K))return null;process.env.NODE_ENV!=="production"&&Zn.isFragment(K)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
247
- `));const se=K.props.value===void 0?It:K.props.value;Ve.set(se,It);const Ee=se===k;return It+=1,C.cloneElement(K,v({fullWidth:j==="fullWidth",indicator:Ee&&!Y&&mt,selected:Ee,selectionFollowsFocus:I,onChange:b,textColor:A,value:se},It===1&&k===!1&&!K.props.tabIndex?{tabIndex:0}:{}))}),kn=K=>{const se=Ue.current,Ee=Ct(se).activeElement;if(Ee.getAttribute("role")!=="tab")return;let ze=g==="horizontal"?"ArrowLeft":"ArrowUp",lt=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&s&&(ze="ArrowRight",lt="ArrowLeft"),K.key){case ze:K.preventDefault(),Kr(se,Ee,Bd);break;case lt:K.preventDefault(),Kr(se,Ee,Fd);break;case"Home":K.preventDefault(),Kr(se,null,Fd);break;case"End":K.preventDefault(),Kr(se,null,Bd);break}},pe=ft();return E.jsxs(W1,v({className:ie(z.root,p),ownerState:P,ref:n,as:f},G,{children:[pe.scrollButtonStart,pe.scrollbarSizeListener,E.jsxs(G1,{className:z.scroller,ownerState:P,style:{overflow:X.overflow,[M?`margin${s?"Left":"Right"}`:"marginBottom"]:V?void 0:-X.scrollbarWidth},ref:Le,children:[E.jsx(z1,{"aria-label":a,"aria-labelledby":c,"aria-orientation":g==="vertical"?"vertical":null,className:z.flexContainer,ownerState:P,onKeyDown:kn,ref:Ue,role:"tablist",children:Yt}),Y&&mt]}),pe.scrollButtonEnd]}))});process.env.NODE_ENV!=="production"&&(jd.propTypes={action:Ot,allowScrollButtonsMobile:i.bool,"aria-label":i.string,"aria-labelledby":i.string,centered:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,indicatorColor:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),onChange:i.func,orientation:i.oneOf(["horizontal","vertical"]),ScrollButtonComponent:i.elementType,scrollButtons:i.oneOf(["auto",!1,!0]),selectionFollowsFocus:i.bool,slotProps:i.shape({endScrollButtonIcon:i.oneOfType([i.func,i.object]),startScrollButtonIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({EndScrollButtonIcon:i.elementType,StartScrollButtonIcon:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TabIndicatorProps:i.object,TabScrollButtonProps:i.object,textColor:i.oneOf(["inherit","primary","secondary"]),value:i.any,variant:i.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:i.bool});function Z1(e){return he("MuiTextField",e)}ve("MuiTextField",["root"]);const U1=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Y1={standard:Ur,filled:Zr,outlined:Jr},J1=e=>{const{classes:t}=e;return Ce({root:["root"]},Z1,t)},q1=q(Wu,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$d=C.forwardRef(function(t,n){const o=Ie({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:s=!1,children:a,className:c,color:l="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:f,fullWidth:h=!1,helperText:m,id:b,InputLabelProps:g,inputProps:x,InputProps:S,inputRef:I,label:T,maxRows:y,minRows:R,multiline:w=!1,name:A,onBlur:k,onChange:j,onFocus:V,placeholder:G,required:$=!1,rows:M,select:_=!1,SelectProps:F,type:W,value:D,variant:Z="outlined"}=o,P=oe(o,U1),z=v({},o,{autoFocus:s,color:l,disabled:d,error:p,fullWidth:h,multiline:w,required:$,select:_,variant:Z}),U=J1(z);process.env.NODE_ENV!=="production"&&_&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const ee={};Z==="outlined"&&(g&&typeof g.shrink<"u"&&(ee.notched=g.shrink),ee.label=T),_&&((!F||!F.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const Y=ls(b),te=m&&Y?`${Y}-helper-text`:void 0,Q=T&&Y?`${Y}-label`:void 0,re=Y1[Z],ne=E.jsx(re,v({"aria-describedby":te,autoComplete:r,autoFocus:s,defaultValue:u,fullWidth:h,multiline:w,name:A,rows:M,maxRows:y,minRows:R,type:W,value:D,id:Y,inputRef:I,onBlur:k,onChange:j,onFocus:V,placeholder:G,inputProps:x},ee,S));return E.jsxs(q1,v({className:ie(U.root,c),disabled:d,error:p,fullWidth:h,ref:n,required:$,color:l,variant:Z,ownerState:z},P,{children:[T!=null&&T!==""&&E.jsx(Zu,v({htmlFor:Y,id:Q},g,{children:T})),_?E.jsx(Us,v({"aria-describedby":te,id:Y,labelId:Q,value:D,input:ne},F,{children:a})):ne,m&&E.jsx(Hu,v({id:te},f,{children:m}))]}))});process.env.NODE_ENV!=="production"&&($d.propTypes={autoComplete:i.string,autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),defaultValue:i.any,disabled:i.bool,error:i.bool,FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:Ot,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,placeholder:i.string,required:i.bool,rows:i.oneOfType([i.number,i.string]),select:i.bool,SelectProps:i.object,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any,variant:i.oneOf(["filled","outlined","standard"])});const Xe={LOADING:"LOADING",SUCCESS:"SUCCESS",ERROR:"ERROR",MARK_ALL_AS_READ:"MARK_ALL_AS_READ"},tn={SWR:"Something went wrong!",UNHANDLED:"Unhandled action type: ",INVALID:"Invalid action type: ",INVALID_ACTION:"Invalid action type: ",NRF:"No Records found"},Vd=H.createContext(null),_d=H.createContext(null);function K1({children:e}){const[t,n]=H.useReducer(Q1,eI);return E.jsx(Vd.Provider,{value:t,children:E.jsx(_d.Provider,{value:n,children:e})})}function Q1(e,t){var n;switch(t.type){case Xe.LOADING:return{...e,loading:t.loading};case Xe.SUCCESS:return{...e,data:(n=t.data)==null?void 0:n.sort((o,r)=>new Date(r.createdAt)-new Date(o.createdAt))};case Xe.MARK_ALL_AS_READ:return{...e,isMarkAllAsRead:t.isMarkAllAsRead};case Xe.ERROR:return{...e,error:t.error};default:throw new Error(`${tn.UNHANDLED}: ${t}`)}}const eI={loading:!1,data:[],error:"",isMarkAllAsRead:{count:0,boo:!1}},qs=e=>{const t=localStorage.getItem(e);return t?JSON.parse(t):""},tI=e=>{const t=new Date,n=new Date(e),o=t-n,r=Math.floor(o/(1e3*60));return r<60?`${r} min ago`:n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})},Ks=e=>e.sort((n,o)=>{let r=new Date(n.createdAt),s=new Date(o.createdAt);return r===s?0:r>s?-1:1}).sort((n,o)=>n.isRead===o.isRead?0:o.isRead?-1:1),nI=e=>{let t=0;for(let n=0;n<e.length;n++)e[n].isRead||t++;return t},oI=e=>{const t=[];return e.forEach(n=>{n.isRead||t.push(n.id)}),t},rI=(e,t,n)=>e.filter(r=>t.some(s=>{var a,c,l;return(l=(a=r[s])==null?void 0:a.toLowerCase())==null?void 0:l.includes((c=n==null?void 0:n.trim())==null?void 0:c.toLowerCase())})),iI=(e,t,n)=>e.sort((r,s)=>n==="asc"?r[t].toLowerCase().localeCompare(s[t].toLowerCase()):s[t].toLowerCase().localeCompare(r[t].toLowerCase())),Qs=(e,t,n)=>e.slice((t-1)*n,t*n),ea=e=>e.split("_").map(t=>t==="sku"?"SKU":t[0].toUpperCase()+t.substring(1)).join(" "),sI=e=>{const t=e.reduce((o,r)=>{const s=new Date(r==null?void 0:r.createdAt),a=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric"}).format(s);return o[a]||(o[a]=[]),o[a].push(r),o},{});return Object.fromEntries(Object.entries(t).sort(([o],[r])=>new Date(r)-new Date(o)))};function Ld(e,t){return function(){return e.apply(t,arguments)}}const{toString:aI}=Object.prototype,{getPrototypeOf:ta}=Object,Qr=(e=>t=>{const n=aI.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Gt=e=>(e=e.toLowerCase(),t=>Qr(t)===e),ei=e=>t=>typeof t===e,{isArray:no}=Array,ko=ei("undefined");function lI(e){return e!==null&&!ko(e)&&e.constructor!==null&&!ko(e.constructor)&&Dt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Wd=Gt("ArrayBuffer");function cI(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Wd(e.buffer),t}const uI=ei("string"),Dt=ei("function"),Gd=ei("number"),ti=e=>e!==null&&typeof e=="object",dI=e=>e===!0||e===!1,ni=e=>{if(Qr(e)!=="object")return!1;const t=ta(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},pI=Gt("Date"),fI=Gt("File"),mI=Gt("Blob"),gI=Gt("FileList"),bI=e=>ti(e)&&Dt(e.pipe),hI=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Dt(e.append)&&((t=Qr(e))==="formdata"||t==="object"&&Dt(e.toString)&&e.toString()==="[object FormData]"))},vI=Gt("URLSearchParams"),[yI,CI,xI,II]=["ReadableStream","Request","Response","Headers"].map(Gt),EI=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),no(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let c;for(o=0;o<a;o++)c=s[o],t.call(null,e[c],c,e)}}function zd(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,r;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Hd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xd=e=>!ko(e)&&e!==Hd;function na(){const{caseless:e}=Xd(this)&&this||{},t={},n=(o,r)=>{const s=e&&zd(t,r)||r;ni(t[s])&&ni(o)?t[s]=na(t[s],o):ni(o)?t[s]=na({},o):no(o)?t[s]=o.slice():t[s]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&Fo(arguments[o],n);return t}const TI=(e,t,n,{allOwnKeys:o}={})=>(Fo(t,(r,s)=>{n&&Dt(r)?e[s]=Ld(r,n):e[s]=r},{allOwnKeys:o}),e),SI=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),OI=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},RI=(e,t,n,o)=>{let r,s,a;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)a=r[s],(!o||o(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&ta(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},wI=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},AI=e=>{if(!e)return null;if(no(e))return e;let t=e.length;if(!Gd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},NI=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ta(Uint8Array)),PI=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const s=r.value;t.call(e,s[0],s[1])}},kI=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},FI=Gt("HTMLFormElement"),BI=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),Zd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),MI=Gt("RegExp"),Ud=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Fo(n,(r,s)=>{let a;(a=t(r,s,e))!==!1&&(o[s]=a||r)}),Object.defineProperties(e,o)},DI=e=>{Ud(e,(t,n)=>{if(Dt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(Dt(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},jI=(e,t)=>{const n={},o=r=>{r.forEach(s=>{n[s]=!0})};return no(e)?o(e):o(String(e).split(t)),n},$I=()=>{},VI=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,oa="abcdefghijklmnopqrstuvwxyz",Yd="0123456789",Jd={DIGIT:Yd,ALPHA:oa,ALPHA_DIGIT:oa+oa.toUpperCase()+Yd},_I=(e=16,t=Jd.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function LI(e){return!!(e&&Dt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const WI=e=>{const t=new Array(10),n=(o,r)=>{if(ti(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const s=no(o)?[]:{};return Fo(o,(a,c)=>{const l=n(a,r+1);!ko(l)&&(s[c]=l)}),t[r]=void 0,s}}return o};return n(e,0)},GI=Gt("AsyncFunction"),B={isArray:no,isArrayBuffer:Wd,isBuffer:lI,isFormData:hI,isArrayBufferView:cI,isString:uI,isNumber:Gd,isBoolean:dI,isObject:ti,isPlainObject:ni,isReadableStream:yI,isRequest:CI,isResponse:xI,isHeaders:II,isUndefined:ko,isDate:pI,isFile:fI,isBlob:mI,isRegExp:MI,isFunction:Dt,isStream:bI,isURLSearchParams:vI,isTypedArray:NI,isFileList:gI,forEach:Fo,merge:na,extend:TI,trim:EI,stripBOM:SI,inherits:OI,toFlatObject:RI,kindOf:Qr,kindOfTest:Gt,endsWith:wI,toArray:AI,forEachEntry:PI,matchAll:kI,isHTMLForm:FI,hasOwnProperty:Zd,hasOwnProp:Zd,reduceDescriptors:Ud,freezeMethods:DI,toObjectSet:jI,toCamelCase:BI,noop:$I,toFiniteNumber:VI,findKey:zd,global:Hd,isContextDefined:Xd,ALPHABET:Jd,generateString:_I,isSpecCompliantForm:LI,toJSONObject:WI,isAsyncFn:GI,isThenable:e=>e&&(ti(e)||Dt(e))&&Dt(e.then)&&Dt(e.catch)};function xe(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}B.inherits(xe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const qd=xe.prototype,Kd={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Kd[e]={value:e}}),Object.defineProperties(xe,Kd),Object.defineProperty(qd,"isAxiosError",{value:!0}),xe.from=(e,t,n,o,r,s)=>{const a=Object.create(qd);return B.toFlatObject(e,a,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),xe.call(a,e.message,t,n,o,r),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};const zI=null;function ra(e){return B.isPlainObject(e)||B.isArray(e)}function Qd(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function ep(e,t,n){return e?e.concat(t).map(function(r,s){return r=Qd(r),!n&&s?"["+r+"]":r}).join(n?".":""):t}function HI(e){return B.isArray(e)&&!e.some(ra)}const XI=B.toFlatObject(B,{},null,function(t){return/^is[A-Z]/.test(t)});function oi(e,t,n){if(!B.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=B.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,g){return!B.isUndefined(g[b])});const o=n.metaTokens,r=n.visitor||d,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&B.isSpecCompliantForm(t);if(!B.isFunction(r))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(B.isDate(m))return m.toISOString();if(!l&&B.isBlob(m))throw new xe("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(m)||B.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,b,g){let x=m;if(m&&!g&&typeof m=="object"){if(B.endsWith(b,"{}"))b=o?b:b.slice(0,-2),m=JSON.stringify(m);else if(B.isArray(m)&&HI(m)||(B.isFileList(m)||B.endsWith(b,"[]"))&&(x=B.toArray(m)))return b=Qd(b),x.forEach(function(I,T){!(B.isUndefined(I)||I===null)&&t.append(a===!0?ep([b],T,s):a===null?b:b+"[]",u(I))}),!1}return ra(m)?!0:(t.append(ep(g,b,s),u(m)),!1)}const p=[],f=Object.assign(XI,{defaultVisitor:d,convertValue:u,isVisitable:ra});function h(m,b){if(!B.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+b.join("."));p.push(m),B.forEach(m,function(x,S){(!(B.isUndefined(x)||x===null)&&r.call(t,x,B.isString(S)?S.trim():S,b,f))===!0&&h(x,b?b.concat(S):[S])}),p.pop()}}if(!B.isObject(e))throw new TypeError("data must be an object");return h(e),t}function tp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function ia(e,t){this._pairs=[],e&&oi(e,this,t)}const np=ia.prototype;np.append=function(t,n){this._pairs.push([t,n])},np.toString=function(t){const n=t?function(o){return t.call(this,o,tp)}:tp;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function ZI(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function op(e,t,n){if(!t)return e;const o=n&&n.encode||ZI,r=n&&n.serialize;let s;if(r?s=r(t,n):s=B.isURLSearchParams(t)?t.toString():new ia(t,n).toString(o),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class rp{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){B.forEach(this.handlers,function(o){o!==null&&t(o)})}}const ip={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},UI={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ia,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},sa=typeof window<"u"&&typeof document<"u",YI=(e=>sa&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),JI=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qI=sa&&window.location.href||"http://localhost",zt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:sa,hasStandardBrowserEnv:YI,hasStandardBrowserWebWorkerEnv:JI,origin:qI},Symbol.toStringTag,{value:"Module"})),...UI};function KI(e,t){return oi(e,new zt.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,s){return zt.isNode&&B.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function QI(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function eE(e){const t={},n=Object.keys(e);let o;const r=n.length;let s;for(o=0;o<r;o++)s=n[o],t[s]=e[s];return t}function sp(e){function t(n,o,r,s){let a=n[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),l=s>=n.length;return a=!a&&B.isArray(r)?r.length:a,l?(B.hasOwnProp(r,a)?r[a]=[r[a],o]:r[a]=o,!c):((!r[a]||!B.isObject(r[a]))&&(r[a]=[]),t(n,o,r[a],s)&&B.isArray(r[a])&&(r[a]=eE(r[a])),!c)}if(B.isFormData(e)&&B.isFunction(e.entries)){const n={};return B.forEachEntry(e,(o,r)=>{t(QI(o),r,n,0)}),n}return null}function tE(e,t,n){if(B.isString(e))try{return(t||JSON.parse)(e),B.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Bo={transitional:ip,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,s=B.isObject(t);if(s&&B.isHTMLForm(t)&&(t=new FormData(t)),B.isFormData(t))return r?JSON.stringify(sp(t)):t;if(B.isArrayBuffer(t)||B.isBuffer(t)||B.isStream(t)||B.isFile(t)||B.isBlob(t)||B.isReadableStream(t))return t;if(B.isArrayBufferView(t))return t.buffer;if(B.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return KI(t,this.formSerializer).toString();if((c=B.isFileList(t))||o.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return oi(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),tE(t)):t}],transformResponse:[function(t){const n=this.transitional||Bo.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(B.isResponse(t)||B.isReadableStream(t))return t;if(t&&B.isString(t)&&(o&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?xe.from(c,xe.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zt.classes.FormData,Blob:zt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],e=>{Bo.headers[e]={}});const nE=B.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),oE=e=>{const t={};let n,o,r;return e&&e.split(`
247
+ `));const se=K.props.value===void 0?It:K.props.value;Ve.set(se,It);const Ee=se===k;return It+=1,C.cloneElement(K,v({fullWidth:j==="fullWidth",indicator:Ee&&!Y&&mt,selected:Ee,selectionFollowsFocus:I,onChange:b,textColor:A,value:se},It===1&&k===!1&&!K.props.tabIndex?{tabIndex:0}:{}))}),kn=K=>{const se=Ue.current,Ee=Ct(se).activeElement;if(Ee.getAttribute("role")!=="tab")return;let ze=g==="horizontal"?"ArrowLeft":"ArrowUp",lt=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&s&&(ze="ArrowRight",lt="ArrowLeft"),K.key){case ze:K.preventDefault(),Kr(se,Ee,Bd);break;case lt:K.preventDefault(),Kr(se,Ee,Fd);break;case"Home":K.preventDefault(),Kr(se,null,Fd);break;case"End":K.preventDefault(),Kr(se,null,Bd);break}},pe=ft();return E.jsxs(W1,v({className:ie(z.root,p),ownerState:P,ref:n,as:f},G,{children:[pe.scrollButtonStart,pe.scrollbarSizeListener,E.jsxs(G1,{className:z.scroller,ownerState:P,style:{overflow:X.overflow,[M?`margin${s?"Left":"Right"}`:"marginBottom"]:V?void 0:-X.scrollbarWidth},ref:Le,children:[E.jsx(z1,{"aria-label":a,"aria-labelledby":c,"aria-orientation":g==="vertical"?"vertical":null,className:z.flexContainer,ownerState:P,onKeyDown:kn,ref:Ue,role:"tablist",children:Yt}),Y&&mt]}),pe.scrollButtonEnd]}))});process.env.NODE_ENV!=="production"&&(jd.propTypes={action:Ot,allowScrollButtonsMobile:i.bool,"aria-label":i.string,"aria-labelledby":i.string,centered:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,indicatorColor:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),onChange:i.func,orientation:i.oneOf(["horizontal","vertical"]),ScrollButtonComponent:i.elementType,scrollButtons:i.oneOf(["auto",!1,!0]),selectionFollowsFocus:i.bool,slotProps:i.shape({endScrollButtonIcon:i.oneOfType([i.func,i.object]),startScrollButtonIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({EndScrollButtonIcon:i.elementType,StartScrollButtonIcon:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TabIndicatorProps:i.object,TabScrollButtonProps:i.object,textColor:i.oneOf(["inherit","primary","secondary"]),value:i.any,variant:i.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:i.bool});function Z1(e){return he("MuiTextField",e)}ve("MuiTextField",["root"]);const U1=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Y1={standard:Ur,filled:Zr,outlined:Jr},J1=e=>{const{classes:t}=e;return Ce({root:["root"]},Z1,t)},q1=q(Wu,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$d=C.forwardRef(function(t,n){const o=Ie({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:s=!1,children:a,className:c,color:l="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:f,fullWidth:h=!1,helperText:m,id:b,InputLabelProps:g,inputProps:x,InputProps:S,inputRef:I,label:T,maxRows:y,minRows:R,multiline:w=!1,name:A,onBlur:k,onChange:j,onFocus:V,placeholder:G,required:$=!1,rows:M,select:_=!1,SelectProps:F,type:W,value:D,variant:Z="outlined"}=o,P=oe(o,U1),z=v({},o,{autoFocus:s,color:l,disabled:d,error:p,fullWidth:h,multiline:w,required:$,select:_,variant:Z}),U=J1(z);process.env.NODE_ENV!=="production"&&_&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const ee={};Z==="outlined"&&(g&&typeof g.shrink<"u"&&(ee.notched=g.shrink),ee.label=T),_&&((!F||!F.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const Y=ls(b),te=m&&Y?`${Y}-helper-text`:void 0,Q=T&&Y?`${Y}-label`:void 0,re=Y1[Z],ne=E.jsx(re,v({"aria-describedby":te,autoComplete:r,autoFocus:s,defaultValue:u,fullWidth:h,multiline:w,name:A,rows:M,maxRows:y,minRows:R,type:W,value:D,id:Y,inputRef:I,onBlur:k,onChange:j,onFocus:V,placeholder:G,inputProps:x},ee,S));return E.jsxs(q1,v({className:ie(U.root,c),disabled:d,error:p,fullWidth:h,ref:n,required:$,color:l,variant:Z,ownerState:z},P,{children:[T!=null&&T!==""&&E.jsx(Zu,v({htmlFor:Y,id:Q},g,{children:T})),_?E.jsx(Us,v({"aria-describedby":te,id:Y,labelId:Q,value:D,input:ne},F,{children:a})):ne,m&&E.jsx(Hu,v({id:te},f,{children:m}))]}))});process.env.NODE_ENV!=="production"&&($d.propTypes={autoComplete:i.string,autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),defaultValue:i.any,disabled:i.bool,error:i.bool,FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:Ot,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,placeholder:i.string,required:i.bool,rows:i.oneOfType([i.number,i.string]),select:i.bool,SelectProps:i.object,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any,variant:i.oneOf(["filled","outlined","standard"])});const Xe={LOADING:"LOADING",SUCCESS:"SUCCESS",ERROR:"ERROR",MARK_ALL_AS_READ:"MARK_ALL_AS_READ"},tn={SWR:"Something went wrong!",UNHANDLED:"Unhandled action type: ",INVALID:"Invalid action type: ",INVALID_ACTION:"Invalid action type: ",NRF:"No Records found"},Vd=H.createContext(null),_d=H.createContext(null);function K1({children:e}){const[t,n]=H.useReducer(Q1,eI);return E.jsx(Vd.Provider,{value:t,children:E.jsx(_d.Provider,{value:n,children:e})})}function Q1(e,t){var n;switch(t.type){case Xe.LOADING:return{...e,loading:t.loading};case Xe.SUCCESS:return{...e,data:(n=t.data)==null?void 0:n.sort((o,r)=>new Date(r.createdAt)-new Date(o.createdAt))};case Xe.MARK_ALL_AS_READ:return{...e,isMarkAllAsRead:t.isMarkAllAsRead};case Xe.ERROR:return{...e,error:t.error};default:throw new Error(`${tn.UNHANDLED}: ${t}`)}}const eI={loading:!1,data:[],error:"",isMarkAllAsRead:{count:0,boo:!1}},qs=e=>{const t=localStorage.getItem(e);return t?JSON.parse(t):""},tI=e=>{const t=new Date,n=new Date(e);let o=t-n;o<0&&(o=0);const r=Math.floor(o/1e3),s=Math.floor(r/60);return r<60?`${r} sec ago`:s<60?`${s} min ago`:n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})},Ks=e=>e.sort((n,o)=>{let r=new Date(n.createdAt),s=new Date(o.createdAt);return r===s?0:r>s?-1:1}).sort((n,o)=>n.isRead===o.isRead?0:o.isRead?-1:1),nI=e=>{let t=0;for(let n=0;n<e.length;n++)e[n].isRead||t++;return t},oI=e=>{const t=[];return e.forEach(n=>{n.isRead||t.push(n.id)}),t},rI=(e,t,n)=>e.filter(r=>t.some(s=>{var a,c,l;return(l=(a=r[s])==null?void 0:a.toLowerCase())==null?void 0:l.includes((c=n==null?void 0:n.trim())==null?void 0:c.toLowerCase())})),iI=(e,t,n)=>e.sort((r,s)=>n==="asc"?r[t].toLowerCase().localeCompare(s[t].toLowerCase()):s[t].toLowerCase().localeCompare(r[t].toLowerCase())),Qs=(e,t,n)=>e.slice((t-1)*n,t*n),ea=e=>e.split("_").map(t=>t==="sku"?"SKU":t[0].toUpperCase()+t.substring(1)).join(" "),sI=e=>{const t=e.reduce((o,r)=>{const s=new Date(r==null?void 0:r.createdAt),a=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric"}).format(s);return o[a]||(o[a]=[]),o[a].push(r),o},{});return Object.fromEntries(Object.entries(t).sort(([o],[r])=>new Date(r)-new Date(o)))};function Ld(e,t){return function(){return e.apply(t,arguments)}}const{toString:aI}=Object.prototype,{getPrototypeOf:ta}=Object,Qr=(e=>t=>{const n=aI.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Gt=e=>(e=e.toLowerCase(),t=>Qr(t)===e),ei=e=>t=>typeof t===e,{isArray:no}=Array,ko=ei("undefined");function lI(e){return e!==null&&!ko(e)&&e.constructor!==null&&!ko(e.constructor)&&Dt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Wd=Gt("ArrayBuffer");function cI(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Wd(e.buffer),t}const uI=ei("string"),Dt=ei("function"),Gd=ei("number"),ti=e=>e!==null&&typeof e=="object",dI=e=>e===!0||e===!1,ni=e=>{if(Qr(e)!=="object")return!1;const t=ta(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},pI=Gt("Date"),fI=Gt("File"),mI=Gt("Blob"),gI=Gt("FileList"),bI=e=>ti(e)&&Dt(e.pipe),hI=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Dt(e.append)&&((t=Qr(e))==="formdata"||t==="object"&&Dt(e.toString)&&e.toString()==="[object FormData]"))},vI=Gt("URLSearchParams"),[yI,CI,xI,II]=["ReadableStream","Request","Response","Headers"].map(Gt),EI=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),no(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let c;for(o=0;o<a;o++)c=s[o],t.call(null,e[c],c,e)}}function zd(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,r;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Hd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xd=e=>!ko(e)&&e!==Hd;function na(){const{caseless:e}=Xd(this)&&this||{},t={},n=(o,r)=>{const s=e&&zd(t,r)||r;ni(t[s])&&ni(o)?t[s]=na(t[s],o):ni(o)?t[s]=na({},o):no(o)?t[s]=o.slice():t[s]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&Fo(arguments[o],n);return t}const TI=(e,t,n,{allOwnKeys:o}={})=>(Fo(t,(r,s)=>{n&&Dt(r)?e[s]=Ld(r,n):e[s]=r},{allOwnKeys:o}),e),SI=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),OI=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},RI=(e,t,n,o)=>{let r,s,a;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)a=r[s],(!o||o(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&ta(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},wI=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},AI=e=>{if(!e)return null;if(no(e))return e;let t=e.length;if(!Gd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},NI=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ta(Uint8Array)),PI=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const s=r.value;t.call(e,s[0],s[1])}},kI=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},FI=Gt("HTMLFormElement"),BI=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),Zd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),MI=Gt("RegExp"),Ud=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Fo(n,(r,s)=>{let a;(a=t(r,s,e))!==!1&&(o[s]=a||r)}),Object.defineProperties(e,o)},DI=e=>{Ud(e,(t,n)=>{if(Dt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(Dt(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},jI=(e,t)=>{const n={},o=r=>{r.forEach(s=>{n[s]=!0})};return no(e)?o(e):o(String(e).split(t)),n},$I=()=>{},VI=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,oa="abcdefghijklmnopqrstuvwxyz",Yd="0123456789",Jd={DIGIT:Yd,ALPHA:oa,ALPHA_DIGIT:oa+oa.toUpperCase()+Yd},_I=(e=16,t=Jd.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function LI(e){return!!(e&&Dt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const WI=e=>{const t=new Array(10),n=(o,r)=>{if(ti(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const s=no(o)?[]:{};return Fo(o,(a,c)=>{const l=n(a,r+1);!ko(l)&&(s[c]=l)}),t[r]=void 0,s}}return o};return n(e,0)},GI=Gt("AsyncFunction"),B={isArray:no,isArrayBuffer:Wd,isBuffer:lI,isFormData:hI,isArrayBufferView:cI,isString:uI,isNumber:Gd,isBoolean:dI,isObject:ti,isPlainObject:ni,isReadableStream:yI,isRequest:CI,isResponse:xI,isHeaders:II,isUndefined:ko,isDate:pI,isFile:fI,isBlob:mI,isRegExp:MI,isFunction:Dt,isStream:bI,isURLSearchParams:vI,isTypedArray:NI,isFileList:gI,forEach:Fo,merge:na,extend:TI,trim:EI,stripBOM:SI,inherits:OI,toFlatObject:RI,kindOf:Qr,kindOfTest:Gt,endsWith:wI,toArray:AI,forEachEntry:PI,matchAll:kI,isHTMLForm:FI,hasOwnProperty:Zd,hasOwnProp:Zd,reduceDescriptors:Ud,freezeMethods:DI,toObjectSet:jI,toCamelCase:BI,noop:$I,toFiniteNumber:VI,findKey:zd,global:Hd,isContextDefined:Xd,ALPHABET:Jd,generateString:_I,isSpecCompliantForm:LI,toJSONObject:WI,isAsyncFn:GI,isThenable:e=>e&&(ti(e)||Dt(e))&&Dt(e.then)&&Dt(e.catch)};function xe(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}B.inherits(xe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const qd=xe.prototype,Kd={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Kd[e]={value:e}}),Object.defineProperties(xe,Kd),Object.defineProperty(qd,"isAxiosError",{value:!0}),xe.from=(e,t,n,o,r,s)=>{const a=Object.create(qd);return B.toFlatObject(e,a,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),xe.call(a,e.message,t,n,o,r),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};const zI=null;function ra(e){return B.isPlainObject(e)||B.isArray(e)}function Qd(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function ep(e,t,n){return e?e.concat(t).map(function(r,s){return r=Qd(r),!n&&s?"["+r+"]":r}).join(n?".":""):t}function HI(e){return B.isArray(e)&&!e.some(ra)}const XI=B.toFlatObject(B,{},null,function(t){return/^is[A-Z]/.test(t)});function oi(e,t,n){if(!B.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=B.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,g){return!B.isUndefined(g[b])});const o=n.metaTokens,r=n.visitor||d,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&B.isSpecCompliantForm(t);if(!B.isFunction(r))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(B.isDate(m))return m.toISOString();if(!l&&B.isBlob(m))throw new xe("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(m)||B.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,b,g){let x=m;if(m&&!g&&typeof m=="object"){if(B.endsWith(b,"{}"))b=o?b:b.slice(0,-2),m=JSON.stringify(m);else if(B.isArray(m)&&HI(m)||(B.isFileList(m)||B.endsWith(b,"[]"))&&(x=B.toArray(m)))return b=Qd(b),x.forEach(function(I,T){!(B.isUndefined(I)||I===null)&&t.append(a===!0?ep([b],T,s):a===null?b:b+"[]",u(I))}),!1}return ra(m)?!0:(t.append(ep(g,b,s),u(m)),!1)}const p=[],f=Object.assign(XI,{defaultVisitor:d,convertValue:u,isVisitable:ra});function h(m,b){if(!B.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+b.join("."));p.push(m),B.forEach(m,function(x,S){(!(B.isUndefined(x)||x===null)&&r.call(t,x,B.isString(S)?S.trim():S,b,f))===!0&&h(x,b?b.concat(S):[S])}),p.pop()}}if(!B.isObject(e))throw new TypeError("data must be an object");return h(e),t}function tp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function ia(e,t){this._pairs=[],e&&oi(e,this,t)}const np=ia.prototype;np.append=function(t,n){this._pairs.push([t,n])},np.toString=function(t){const n=t?function(o){return t.call(this,o,tp)}:tp;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function ZI(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function op(e,t,n){if(!t)return e;const o=n&&n.encode||ZI,r=n&&n.serialize;let s;if(r?s=r(t,n):s=B.isURLSearchParams(t)?t.toString():new ia(t,n).toString(o),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class rp{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){B.forEach(this.handlers,function(o){o!==null&&t(o)})}}const ip={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},UI={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ia,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},sa=typeof window<"u"&&typeof document<"u",YI=(e=>sa&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),JI=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qI=sa&&window.location.href||"http://localhost",zt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:sa,hasStandardBrowserEnv:YI,hasStandardBrowserWebWorkerEnv:JI,origin:qI},Symbol.toStringTag,{value:"Module"})),...UI};function KI(e,t){return oi(e,new zt.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,s){return zt.isNode&&B.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function QI(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function eE(e){const t={},n=Object.keys(e);let o;const r=n.length;let s;for(o=0;o<r;o++)s=n[o],t[s]=e[s];return t}function sp(e){function t(n,o,r,s){let a=n[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),l=s>=n.length;return a=!a&&B.isArray(r)?r.length:a,l?(B.hasOwnProp(r,a)?r[a]=[r[a],o]:r[a]=o,!c):((!r[a]||!B.isObject(r[a]))&&(r[a]=[]),t(n,o,r[a],s)&&B.isArray(r[a])&&(r[a]=eE(r[a])),!c)}if(B.isFormData(e)&&B.isFunction(e.entries)){const n={};return B.forEachEntry(e,(o,r)=>{t(QI(o),r,n,0)}),n}return null}function tE(e,t,n){if(B.isString(e))try{return(t||JSON.parse)(e),B.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Bo={transitional:ip,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,s=B.isObject(t);if(s&&B.isHTMLForm(t)&&(t=new FormData(t)),B.isFormData(t))return r?JSON.stringify(sp(t)):t;if(B.isArrayBuffer(t)||B.isBuffer(t)||B.isStream(t)||B.isFile(t)||B.isBlob(t)||B.isReadableStream(t))return t;if(B.isArrayBufferView(t))return t.buffer;if(B.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return KI(t,this.formSerializer).toString();if((c=B.isFileList(t))||o.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return oi(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),tE(t)):t}],transformResponse:[function(t){const n=this.transitional||Bo.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(B.isResponse(t)||B.isReadableStream(t))return t;if(t&&B.isString(t)&&(o&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?xe.from(c,xe.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zt.classes.FormData,Blob:zt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],e=>{Bo.headers[e]={}});const nE=B.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),oE=e=>{const t={};let n,o,r;return e&&e.split(`
248
248
  `).forEach(function(a){r=a.indexOf(":"),n=a.substring(0,r).trim().toLowerCase(),o=a.substring(r+1).trim(),!(!n||t[n]&&nE[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},ap=Symbol("internals");function Mo(e){return e&&String(e).trim().toLowerCase()}function ri(e){return e===!1||e==null?e:B.isArray(e)?e.map(ri):String(e)}function rE(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const iE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function aa(e,t,n,o,r){if(B.isFunction(o))return o.call(this,t,n);if(r&&(t=n),!!B.isString(t)){if(B.isString(o))return t.indexOf(o)!==-1;if(B.isRegExp(o))return o.test(t)}}function sE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function aE(e,t){const n=B.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(r,s,a){return this[o].call(this,t,r,s,a)},configurable:!0})})}class xt{constructor(t){t&&this.set(t)}set(t,n,o){const r=this;function s(c,l,u){const d=Mo(l);if(!d)throw new Error("header name must be a non-empty string");const p=B.findKey(r,d);(!p||r[p]===void 0||u===!0||u===void 0&&r[p]!==!1)&&(r[p||l]=ri(c))}const a=(c,l)=>B.forEach(c,(u,d)=>s(u,d,l));if(B.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(B.isString(t)&&(t=t.trim())&&!iE(t))a(oE(t),n);else if(B.isHeaders(t))for(const[c,l]of t.entries())s(l,c,o);else t!=null&&s(n,t,o);return this}get(t,n){if(t=Mo(t),t){const o=B.findKey(this,t);if(o){const r=this[o];if(!n)return r;if(n===!0)return rE(r);if(B.isFunction(n))return n.call(this,r,o);if(B.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Mo(t),t){const o=B.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||aa(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let r=!1;function s(a){if(a=Mo(a),a){const c=B.findKey(o,a);c&&(!n||aa(o,o[c],c,n))&&(delete o[c],r=!0)}}return B.isArray(t)?t.forEach(s):s(t),r}clear(t){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const s=n[o];(!t||aa(this,this[s],s,t,!0))&&(delete this[s],r=!0)}return r}normalize(t){const n=this,o={};return B.forEach(this,(r,s)=>{const a=B.findKey(o,s);if(a){n[a]=ri(r),delete n[s];return}const c=t?sE(s):String(s).trim();c!==s&&delete n[s],n[c]=ri(r),o[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return B.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=t&&B.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
249
249
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[ap]=this[ap]={accessors:{}}).accessors,r=this.prototype;function s(a){const c=Mo(a);o[c]||(aE(r,a),o[c]=!0)}return B.isArray(t)?t.forEach(s):s(t),this}}xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.reduceDescriptors(xt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}}),B.freezeMethods(xt);function la(e,t){const n=this||Bo,o=t||n,r=xt.from(o.headers);let s=o.data;return B.forEach(e,function(c){s=c.call(n,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function lp(e){return!!(e&&e.__CANCEL__)}function oo(e,t,n){xe.call(this,e??"canceled",xe.ERR_CANCELED,t,n),this.name="CanceledError"}B.inherits(oo,xe,{__CANCEL__:!0});function cp(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new xe("Request failed with status code "+n.status,[xe.ERR_BAD_REQUEST,xe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function lE(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cE(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,s=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=o[s];a||(a=u),n[r]=l,o[r]=u;let p=s,f=0;for(;p!==r;)f+=n[p++],p=p%e;if(r=(r+1)%e,r===s&&(s=(s+1)%e),u-a<t)return;const h=d&&u-d;return h?Math.round(f*1e3/h):void 0}}function uE(e,t){let n=0;const o=1e3/t;let r=null;return function(){const a=this===!0,c=Date.now();if(a||c-n>o)return r&&(clearTimeout(r),r=null),n=c,e.apply(null,arguments);r||(r=setTimeout(()=>(r=null,n=Date.now(),e.apply(null,arguments)),o-(c-n)))}}const ii=(e,t,n=3)=>{let o=0;const r=cE(50,250);return uE(s=>{const a=s.loaded,c=s.lengthComputable?s.total:void 0,l=a-o,u=r(l),d=a<=c;o=a;const p={loaded:a,total:c,progress:c?a/c:void 0,bytes:l,rate:u||void 0,estimated:u&&c&&d?(c-a)/u:void 0,event:s,lengthComputable:c!=null};p[t?"download":"upload"]=!0,e(p)},n)},dE=zt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function r(s){let a=s;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(a){const c=B.isString(a)?r(a):a;return c.protocol===o.protocol&&c.host===o.host}}():function(){return function(){return!0}}(),pE=zt.hasStandardBrowserEnv?{write(e,t,n,o,r,s){const a=[e+"="+encodeURIComponent(t)];B.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),B.isString(o)&&a.push("path="+o),B.isString(r)&&a.push("domain="+r),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fE(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mE(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function up(e,t){return e&&!fE(t)?mE(e,t):t}const dp=e=>e instanceof xt?{...e}:e;function Nn(e,t){t=t||{};const n={};function o(u,d,p){return B.isPlainObject(u)&&B.isPlainObject(d)?B.merge.call({caseless:p},u,d):B.isPlainObject(d)?B.merge({},d):B.isArray(d)?d.slice():d}function r(u,d,p){if(B.isUndefined(d)){if(!B.isUndefined(u))return o(void 0,u,p)}else return o(u,d,p)}function s(u,d){if(!B.isUndefined(d))return o(void 0,d)}function a(u,d){if(B.isUndefined(d)){if(!B.isUndefined(u))return o(void 0,u)}else return o(void 0,d)}function c(u,d,p){if(p in t)return o(u,d);if(p in e)return o(void 0,u)}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(u,d)=>r(dp(u),dp(d),!0)};return B.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=l[d]||r,f=p(e[d],t[d],d);B.isUndefined(f)&&p!==c||(n[d]=f)}),n}const pp=e=>{const t=Nn({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:s,headers:a,auth:c}=t;t.headers=a=xt.from(a),t.url=op(up(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let l;if(B.isFormData(n)){if(zt.hasStandardBrowserEnv||zt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...d]=l?l.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(zt.hasStandardBrowserEnv&&(o&&B.isFunction(o)&&(o=o(t)),o||o!==!1&&dE(t.url))){const u=r&&s&&pE.read(s);u&&a.set(r,u)}return t},gE=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){const r=pp(e);let s=r.data;const a=xt.from(r.headers).normalize();let{responseType:c}=r,l;function u(){r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener("abort",l)}let d=new XMLHttpRequest;d.open(r.method.toUpperCase(),r.url,!0),d.timeout=r.timeout;function p(){if(!d)return;const h=xt.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),b={data:!c||c==="text"||c==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:e,request:d};cp(function(x){n(x),u()},function(x){o(x),u()},b),d=null}"onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(o(new xe("Request aborted",xe.ECONNABORTED,r,d)),d=null)},d.onerror=function(){o(new xe("Network Error",xe.ERR_NETWORK,r,d)),d=null},d.ontimeout=function(){let m=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const b=r.transitional||ip;r.timeoutErrorMessage&&(m=r.timeoutErrorMessage),o(new xe(m,b.clarifyTimeoutError?xe.ETIMEDOUT:xe.ECONNABORTED,r,d)),d=null},s===void 0&&a.setContentType(null),"setRequestHeader"in d&&B.forEach(a.toJSON(),function(m,b){d.setRequestHeader(b,m)}),B.isUndefined(r.withCredentials)||(d.withCredentials=!!r.withCredentials),c&&c!=="json"&&(d.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&d.addEventListener("progress",ii(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",ii(r.onUploadProgress)),(r.cancelToken||r.signal)&&(l=h=>{d&&(o(!h||h.type?new oo(null,e,d):h),d.abort(),d=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener("abort",l)));const f=lE(r.url);if(f&&zt.protocols.indexOf(f)===-1){o(new xe("Unsupported protocol "+f+":",xe.ERR_BAD_REQUEST,e));return}d.send(s||null)})},bE=(e,t)=>{let n=new AbortController,o;const r=function(l){if(!o){o=!0,a();const u=l instanceof Error?l:this.reason;n.abort(u instanceof xe?u:new oo(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{r(new xe(`timeout ${t} of ms exceeded`,xe.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",r):l.unsubscribe(r))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",r));const{signal:c}=n;return c.unsubscribe=a,[c,()=>{s&&clearTimeout(s),s=null}]},hE=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let o=0,r;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},vE=async function*(e,t,n){for await(const o of e)yield*hE(ArrayBuffer.isView(o)?o:await n(String(o)),t)},fp=(e,t,n,o,r)=>{const s=vE(e,t,r);let a=0;return new ReadableStream({type:"bytes",async pull(c){const{done:l,value:u}=await s.next();if(l){c.close(),o();return}let d=u.byteLength;n&&n(a+=d),c.enqueue(new Uint8Array(u))},cancel(c){return o(c),s.return()}},{highWaterMark:2})},mp=(e,t)=>{const n=e!=null;return o=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:o}))},si=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",gp=si&&typeof ReadableStream=="function",ca=si&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),yE=gp&&(()=>{let e=!1;const t=new Request(zt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),bp=64*1024,ua=gp&&!!(()=>{try{return B.isReadableStream(new Response("").body)}catch{}})(),ai={stream:ua&&(e=>e.body)};si&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ai[t]&&(ai[t]=B.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new xe(`Response type '${t}' is not supported`,xe.ERR_NOT_SUPPORT,o)})})})(new Response);const CE=async e=>{if(e==null)return 0;if(B.isBlob(e))return e.size;if(B.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(B.isArrayBufferView(e))return e.byteLength;if(B.isURLSearchParams(e)&&(e=e+""),B.isString(e))return(await ca(e)).byteLength},xE=async(e,t)=>{const n=B.toFiniteNumber(e.getContentLength());return n??CE(t)},da={http:zI,xhr:gE,fetch:si&&(async e=>{let{url:t,method:n,data:o,signal:r,cancelToken:s,timeout:a,onDownloadProgress:c,onUploadProgress:l,responseType:u,headers:d,withCredentials:p="same-origin",fetchOptions:f}=pp(e);u=u?(u+"").toLowerCase():"text";let[h,m]=r||s||a?bE([r,s],a):[],b,g;const x=()=>{!b&&setTimeout(()=>{h&&h.unsubscribe()}),b=!0};let S;try{if(l&&yE&&n!=="get"&&n!=="head"&&(S=await xE(d,o))!==0){let R=new Request(t,{method:"POST",body:o,duplex:"half"}),w;B.isFormData(o)&&(w=R.headers.get("content-type"))&&d.setContentType(w),R.body&&(o=fp(R.body,bp,mp(S,ii(l)),null,ca))}B.isString(p)||(p=p?"cors":"omit"),g=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:o,duplex:"half",withCredentials:p});let I=await fetch(g);const T=ua&&(u==="stream"||u==="response");if(ua&&(c||T)){const R={};["status","statusText","headers"].forEach(A=>{R[A]=I[A]});const w=B.toFiniteNumber(I.headers.get("content-length"));I=new Response(fp(I.body,bp,c&&mp(w,ii(c,!0)),T&&x,ca),R)}u=u||"text";let y=await ai[B.findKey(ai,u)||"text"](I,e);return!T&&x(),m&&m(),await new Promise((R,w)=>{cp(R,w,{data:y,headers:xt.from(I.headers),status:I.status,statusText:I.statusText,config:e,request:g})})}catch(I){throw x(),I&&I.name==="TypeError"&&/fetch/i.test(I.message)?Object.assign(new xe("Network Error",xe.ERR_NETWORK,e,g),{cause:I.cause||I}):xe.from(I,I&&I.code,e,g)}})};B.forEach(da,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hp=e=>`- ${e}`,IE=e=>B.isFunction(e)||e===null||e===!1,vp={getAdapter:e=>{e=B.isArray(e)?e:[e];const{length:t}=e;let n,o;const r={};for(let s=0;s<t;s++){n=e[s];let a;if(o=n,!IE(n)&&(o=da[(a=String(n)).toLowerCase()],o===void 0))throw new xe(`Unknown adapter '${a}'`);if(o)break;r[a||"#"+s]=o}if(!o){const s=Object.entries(r).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?s.length>1?`since :
250
250
  `+s.map(hp).join(`