@agentica/chat 0.45.0-dev.20260426 → 0.45.1

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.
@@ -0,0 +1,17 @@
1
+ import{q as di,v as gi,w as mi,r as L,x as hi,y as Pn,j as m,e as me,g as Ce,a as he,c as G,u as Je,n as ee,z as pe,f as be,s as B,m as zn,A as Mn,C as In,D as Ue,E as xi,F as Mi,G as Ii,H as Te,I as Xe,b as ji,R as M,T as z,o as jn}from"../client-B8OTM7em.js";import{I as Yn,P as Qe,u as ce,g as yi,a as fe,B as $e,O as Ni,V as yn,F as wi,T as Nn,b as Li,c as vi,A as Ci,H as bi,d as Ti}from"../VendorConfigurationMovie-Cq8Q-tWq.js";var Fn={exports:{}},Di="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ai=Di,Si=Ai;function Gn(){}function Bn(){}Bn.resetWarningCache=Gn;var Ei=function(){function e(r,o,t,l,a,c){if(c!==Si){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function n(){return e}var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:Bn,resetWarningCache:Gn};return i.PropTypes=i,i};Fn.exports=Ei();var ki=Fn.exports;const x=di(ki);function Oi(e={}){const{themeId:n,defaultTheme:i,defaultClassName:r="MuiBox-root",generateClassName:o}=e,t=gi("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(mi);return L.forwardRef(function(c,u){const f=hi(i),{className:s,component:h="div",...p}=Pn(c);return m.jsx(t,{as:h,ref:u,className:me(s,o?o(r):r),theme:n&&f[n]||f,...p})})}function Pi(e){return Ce("MuiAlert",e)}const wn=he("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),zi=G(m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Yi=G(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Fi=G(m.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Gi=G(m.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Bi=G(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Ui=e=>{const{variant:n,color:i,severity:r,classes:o}=e,t={root:["root",`color${pe(i||r)}`,`${n}${pe(i||r)}`,`${n}`],icon:["icon"],message:["message"],action:["action"]};return be(t,Pi,o)},Zi=B(Qe,{name:"MuiAlert",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:i}=e;return[n.root,n[i.variant],n[`${i.variant}${pe(i.color||i.severity)}`]]}})(zn(({theme:e})=>{const n=e.palette.mode==="light"?Mn:In,i=e.palette.mode==="light"?In:Mn;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Ue(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:n(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:i(e.palette[r].light,.9),[`& .${wn.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Ue(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:n(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${wn.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Ue(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),Ri=B("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,n)=>n.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),_i=B("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,n)=>n.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Wi=B("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,n)=>n.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Ln={success:m.jsx(zi,{fontSize:"inherit"}),warning:m.jsx(Yi,{fontSize:"inherit"}),error:m.jsx(Fi,{fontSize:"inherit"}),info:m.jsx(Gi,{fontSize:"inherit"})},Hi=L.forwardRef(function(n,i){const r=Je({props:n,name:"MuiAlert"}),{action:o,children:t,className:l,closeText:a="Close",color:c,components:u={},componentsProps:f={},icon:s,iconMapping:h=Ln,onClose:p,role:j="alert",severity:N="success",slotProps:g={},slots:y={},variant:I="standard",...S}=r,E={...r,color:c,severity:N,variant:I,colorSeverity:c||N},O=Ui(E),T={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...y},slotProps:{...f,...g}},[U,ie]=ee("root",{ref:i,shouldForwardComponentProp:!0,className:me(O.root,l),elementType:Zi,externalForwardedProps:{...T,...S},ownerState:E,additionalProps:{role:j,elevation:0}}),[J,W]=ee("icon",{className:O.icon,elementType:Ri,externalForwardedProps:T,ownerState:E}),[Ae,Se]=ee("message",{className:O.message,elementType:_i,externalForwardedProps:T,ownerState:E}),[xe,Me]=ee("action",{className:O.action,elementType:Wi,externalForwardedProps:T,ownerState:E}),[Ee,ke]=ee("closeButton",{elementType:Yn,externalForwardedProps:T,ownerState:E}),[Y,Oe]=ee("closeIcon",{elementType:Bi,externalForwardedProps:T,ownerState:E});return m.jsxs(U,{...ie,children:[s!==!1?m.jsx(J,{...W,children:s||h[N]||Ln[N]}):null,m.jsx(Ae,{...Se,children:t}),o!=null?m.jsx(xe,{...Me,children:o}):null,o==null&&p?m.jsx(xe,{...Me,children:m.jsx(Ee,{size:"small","aria-label":a,title:a,color:"inherit",onClick:p,...ke,children:m.jsx(Y,{fontSize:"small",...Oe})})}):null]})}),Qi=G(m.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function $i(e){return Ce("MuiAvatar",e)}he("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Vi=e=>{const{classes:n,variant:i,colorDefault:r}=e;return be({root:["root",i,r&&"colorDefault"],img:["img"],fallback:["fallback"]},$i,n)},Ji=B("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:i}=e;return[n.root,n[i.variant],i.colorDefault&&n.colorDefault]}})(zn(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),Xi=B("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,n)=>n.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),qi=B(Qi,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,n)=>n.fallback})({width:"75%",height:"75%"});function Ki({crossOrigin:e,referrerPolicy:n,src:i,srcSet:r}){const[o,t]=L.useState(!1);return L.useEffect(()=>{if(!i&&!r)return;t(!1);let l=!0;const a=new Image;return a.onload=()=>{l&&t("loaded")},a.onerror=()=>{l&&t("error")},a.crossOrigin=e,a.referrerPolicy=n,a.src=i,r&&(a.srcset=r),()=>{l=!1}},[e,n,i,r]),o}const er=L.forwardRef(function(n,i){const r=Je({props:n,name:"MuiAvatar"}),{alt:o,children:t,className:l,component:a="div",slots:c={},slotProps:u={},imgProps:f,sizes:s,src:h,srcSet:p,variant:j="circular",...N}=r;let g=null;const y={...r,component:a,variant:j},I=Ki({...f,...typeof u.img=="function"?u.img(y):u.img,src:h,srcSet:p}),S=h||p,E=S&&I!=="error";y.colorDefault=!E,delete y.ownerState;const O=Vi(y),[T,U]=ee("img",{className:O.img,elementType:Xi,externalForwardedProps:{slots:c,slotProps:{img:{...f,...u.img}}},additionalProps:{alt:o,src:h,srcSet:p,sizes:s},ownerState:y});return E?g=m.jsx(T,{...U}):t||t===0?g=t:S&&o?g=o[0]:g=m.jsx(qi,{ownerState:y,className:O.fallback}),m.jsx(Ji,{as:a,className:me(O.root,l),ref:i,...N,ownerState:y,children:g})}),nr=he("MuiBox",["root"]),ir=Ii(),Ne=Oi({themeId:Mi,defaultTheme:ir,defaultClassName:nr.root,generateClassName:xi.generate}),vn=L.createContext();function rr(e){return Ce("MuiGrid",e)}const or=[0,1,2,3,4,5,6,7,8,9,10],lr=["column-reverse","column","row-reverse","row"],tr=["nowrap","wrap-reverse","wrap"],se=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],de=he("MuiGrid",["root","container","item","zeroMinWidth",...or.map(e=>`spacing-xs-${e}`),...lr.map(e=>`direction-xs-${e}`),...tr.map(e=>`wrap-xs-${e}`),...se.map(e=>`grid-xs-${e}`),...se.map(e=>`grid-sm-${e}`),...se.map(e=>`grid-md-${e}`),...se.map(e=>`grid-lg-${e}`),...se.map(e=>`grid-xl-${e}`)]);function ar({theme:e,ownerState:n}){let i;return e.breakpoints.keys.reduce((r,o)=>{let t={};if(n[o]&&(i=n[o]),!i)return r;if(i===!0)t={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(i==="auto")t={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const l=Te({values:n.columns,breakpoints:e.breakpoints.values}),a=typeof l=="object"?l[o]:l;if(a==null)return r;const c=`${Math.round(i/a*1e8)/1e6}%`;let u={};if(n.container&&n.item&&n.columnSpacing!==0){const f=e.spacing(n.columnSpacing);if(f!=="0px"){const s=`calc(${c} + ${f})`;u={flexBasis:s,maxWidth:s}}}t={flexBasis:c,flexGrow:0,maxWidth:c,...u}}return e.breakpoints.values[o]===0?Object.assign(r,t):r[e.breakpoints.up(o)]=t,r},{})}function cr({theme:e,ownerState:n}){const i=Te({values:n.direction,breakpoints:e.breakpoints.values});return Xe({theme:e},i,r=>{const o={flexDirection:r};return r.startsWith("column")&&(o[`& > .${de.item}`]={maxWidth:"none"}),o})}function Un({breakpoints:e,values:n}){let i="";Object.keys(n).forEach(o=>{i===""&&n[o]!==0&&(i=o)});const r=Object.keys(e).sort((o,t)=>e[o]-e[t]);return r.slice(0,r.indexOf(i))}function ur({theme:e,ownerState:n}){const{container:i,rowSpacing:r}=n;let o={};if(i&&r!==0){const t=Te({values:r,breakpoints:e.breakpoints.values});let l;typeof t=="object"&&(l=Un({breakpoints:e.breakpoints.values,values:t})),o=Xe({theme:e},t,(a,c)=>{const u=e.spacing(a);return u!=="0px"?{marginTop:`calc(-1 * ${u})`,[`& > .${de.item}`]:{paddingTop:u}}:l!=null&&l.includes(c)?{}:{marginTop:0,[`& > .${de.item}`]:{paddingTop:0}}})}return o}function sr({theme:e,ownerState:n}){const{container:i,columnSpacing:r}=n;let o={};if(i&&r!==0){const t=Te({values:r,breakpoints:e.breakpoints.values});let l;typeof t=="object"&&(l=Un({breakpoints:e.breakpoints.values,values:t})),o=Xe({theme:e},t,(a,c)=>{const u=e.spacing(a);if(u!=="0px"){const f=`calc(-1 * ${u})`;return{width:`calc(100% + ${u})`,marginLeft:f,[`& > .${de.item}`]:{paddingLeft:u}}}return l!=null&&l.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${de.item}`]:{paddingLeft:0}}})}return o}function fr(e,n,i={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[i[`spacing-xs-${String(e)}`]];const r=[];return n.forEach(o=>{const t=e[o];Number(t)>0&&r.push(i[`spacing-${o}-${String(t)}`])}),r}const pr=B("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:i}=e,{container:r,direction:o,item:t,spacing:l,wrap:a,zeroMinWidth:c,breakpoints:u}=i;let f=[];r&&(f=fr(l,u,n));const s=[];return u.forEach(h=>{const p=i[h];p&&s.push(n[`grid-${h}-${String(p)}`])}),[n.root,r&&n.container,t&&n.item,c&&n.zeroMinWidth,...f,o!=="row"&&n[`direction-xs-${String(o)}`],a!=="wrap"&&n[`wrap-xs-${String(a)}`],...s]}})(({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},...e.wrap!=="wrap"&&{flexWrap:e.wrap}}),cr,ur,sr,ar);function dr(e,n){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const i=[];return n.forEach(r=>{const o=e[r];if(Number(o)>0){const t=`spacing-${r}-${String(o)}`;i.push(t)}}),i}const gr=e=>{const{classes:n,container:i,direction:r,item:o,spacing:t,wrap:l,zeroMinWidth:a,breakpoints:c}=e;let u=[];i&&(u=dr(t,c));const f=[];c.forEach(h=>{const p=e[h];p&&f.push(`grid-${h}-${String(p)}`)});const s={root:["root",i&&"container",o&&"item",a&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,l!=="wrap"&&`wrap-xs-${String(l)}`,...f]};return be(s,rr,n)},Ze=L.forwardRef(function(n,i){const r=Je({props:n,name:"MuiGrid"}),{breakpoints:o}=ce(),t=Pn(r),{className:l,columns:a,columnSpacing:c,component:u="div",container:f=!1,direction:s="row",item:h=!1,rowSpacing:p,spacing:j=0,wrap:N="wrap",zeroMinWidth:g=!1,...y}=t,I=p||j,S=c||j,E=L.useContext(vn),O=f?a||12:E,T={},U={...y};o.keys.forEach(W=>{y[W]!=null&&(T[W]=y[W],delete U[W])});const ie={...t,columns:O,container:f,direction:s,item:h,rowSpacing:I,columnSpacing:S,wrap:N,zeroMinWidth:g,spacing:j,...T,breakpoints:o.keys},J=gr(ie);return m.jsx(vn.Provider,{value:O,children:m.jsx(pr,{ownerState:ie,className:me(J.root,l),as:u,ref:i,...U})})}),Q=["xs","sm","md","lg","xl"],mr=(e,n,i=!0)=>i?Q.indexOf(e)<=Q.indexOf(n):Q.indexOf(e)<Q.indexOf(n),hr=(e,n,i=!1)=>i?Q.indexOf(n)<=Q.indexOf(e):Q.indexOf(n)<Q.indexOf(e),xr=(e={})=>n=>{const{withTheme:i=!1,noSSR:r=!1,initialWidth:o}=e;function t(l){const a=ce(),c=l.theme||a,{initialWidth:u,width:f,...s}=yi({theme:c,name:"MuiWithWidth",props:l}),[h,p]=L.useState(!1);ji(()=>{p(!0)},[]);const N=c.breakpoints.keys.slice().reverse().reduce((y,I)=>{const S=fe(c.breakpoints.up(I));return!y&&S?I:y},null),g={width:f||(h||r?N:void 0)||u||o,...i?{theme:c}:{},...s};return g.width===void 0?null:m.jsx(n,{...g})}return t};function Zn(e){const{children:n,only:i,width:r}=e,o=ce();let t=!0;if(i)if(Array.isArray(i))for(let l=0;l<i.length;l+=1){const a=i[l];if(r===a){t=!1;break}}else i&&r===i&&(t=!1);if(t)for(let l=0;l<o.breakpoints.keys.length;l+=1){const a=o.breakpoints.keys[l],c=e[`${a}Up`],u=e[`${a}Down`];if(c&&mr(a,r)||u&&hr(a,r)){t=!1;break}}return t?n:null}Zn.propTypes={children:x.node,lgDown:x.bool,lgUp:x.bool,mdDown:x.bool,mdUp:x.bool,only:x.oneOfType([x.oneOf(["xs","sm","md","lg","xl"]),x.arrayOf(x.oneOf(["xs","sm","md","lg","xl"]))]),smDown:x.bool,smUp:x.bool,width:x.string.isRequired,xlDown:x.bool,xlUp:x.bool,xsDown:x.bool,xsUp:x.bool};const Mr=xr()(Zn);function Ir(e){return Ce("PrivateHiddenCss",e)}he("PrivateHiddenCss",["root","xlDown","xlUp","onlyXl","lgDown","lgUp","onlyLg","mdDown","mdUp","onlyMd","smDown","smUp","onlySm","xsDown","xsUp","onlyXs"]);const jr=e=>{const{classes:n,breakpoints:i}=e,r={root:["root",...i.map(({breakpoint:o,dir:t})=>t==="only"?`${t}${pe(o)}`:`${o}${pe(t)}`)]};return be(r,Ir,n)},yr=B("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:e,ownerState:n})=>{const i={display:"none"};return{...n.breakpoints.map(({breakpoint:r,dir:o})=>o==="only"?{[e.breakpoints.only(r)]:i}:o==="up"?{[e.breakpoints.up(r)]:i}:{[e.breakpoints.down(r)]:i}).reduce((r,o)=>(Object.keys(o).forEach(t=>{r[t]=o[t]}),r),{})}});function Nr(e){const{children:n,className:i,only:r,...o}=e,t=ce(),l=[];for(let u=0;u<t.breakpoints.keys.length;u+=1){const f=t.breakpoints.keys[u],s=o[`${f}Up`],h=o[`${f}Down`];s&&l.push({breakpoint:f,dir:"up"}),h&&l.push({breakpoint:f,dir:"down"})}r&&(Array.isArray(r)?r:[r]).forEach(f=>{l.push({breakpoint:f,dir:"only"})});const a={...e,breakpoints:l},c=jr(a);return m.jsx(yr,{className:me(c.root,i),ownerState:a,children:n})}function Cn(e){const{implementation:n="js",lgDown:i=!1,lgUp:r=!1,mdDown:o=!1,mdUp:t=!1,smDown:l=!1,smUp:a=!1,xlDown:c=!1,xlUp:u=!1,xsDown:f=!1,xsUp:s=!1,...h}=e;return n==="js"?m.jsx(Mr,{lgDown:i,lgUp:r,mdDown:o,mdUp:t,smDown:l,smUp:a,xlDown:c,xlUp:u,xsDown:f,xsUp:s,...h}):m.jsx(Nr,{lgDown:i,lgUp:r,mdDown:o,mdUp:t,smDown:l,smUp:a,xlDown:c,xlUp:u,xsDown:f,xsUp:s,...h})}/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function Rn(e){return typeof e>"u"||e===null}function wr(e){return typeof e=="object"&&e!==null}function Lr(e){return Array.isArray(e)?e:Rn(e)?[]:[e]}function vr(e,n){var i,r,o,t;if(n)for(t=Object.keys(n),i=0,r=t.length;i<r;i+=1)o=t[i],e[o]=n[o];return e}function Cr(e,n){var i="",r;for(r=0;r<n;r+=1)i+=e;return i}function br(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Tr=Rn,Dr=wr,Ar=Lr,Sr=Cr,Er=br,kr=vr,A={isNothing:Tr,isObject:Dr,toArray:Ar,repeat:Sr,isNegativeZero:Er,extend:kr};function _n(e,n){var i="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(i+='in "'+e.mark.name+'" '),i+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(i+=`
2
+
3
+ `+e.mark.snippet),r+" "+i):r}function ge(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=_n(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ge.prototype=Object.create(Error.prototype);ge.prototype.constructor=ge;ge.prototype.toString=function(n){return this.name+": "+_n(this,n)};var _=ge;function Re(e,n,i,r,o){var t="",l="",a=Math.floor(o/2)-1;return r-n>a&&(t=" ... ",n=r-a+t.length),i-r>a&&(l=" ...",i=r+a-l.length),{str:t+e.slice(n,i).replace(/\t/g,"→")+l,pos:r-n+t.length}}function _e(e,n){return A.repeat(" ",n-e.length)+e}function Or(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],o=[],t,l=-1;t=i.exec(e.buffer);)o.push(t.index),r.push(t.index+t[0].length),e.position<=t.index&&l<0&&(l=r.length-2);l<0&&(l=r.length-1);var a="",c,u,f=Math.min(e.line+n.linesAfter,o.length).toString().length,s=n.maxLength-(n.indent+f+3);for(c=1;c<=n.linesBefore&&!(l-c<0);c++)u=Re(e.buffer,r[l-c],o[l-c],e.position-(r[l]-r[l-c]),s),a=A.repeat(" ",n.indent)+_e((e.line-c+1).toString(),f)+" | "+u.str+`
4
+ `+a;for(u=Re(e.buffer,r[l],o[l],e.position,s),a+=A.repeat(" ",n.indent)+_e((e.line+1).toString(),f)+" | "+u.str+`
5
+ `,a+=A.repeat("-",n.indent+f+3+u.pos)+`^
6
+ `,c=1;c<=n.linesAfter&&!(l+c>=o.length);c++)u=Re(e.buffer,r[l+c],o[l+c],e.position-(r[l]-r[l+c]),s),a+=A.repeat(" ",n.indent)+_e((e.line+c+1).toString(),f)+" | "+u.str+`
7
+ `;return a.replace(/\n$/,"")}var Pr=Or,zr=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Yr=["scalar","sequence","mapping"];function Fr(e){var n={};return e!==null&&Object.keys(e).forEach(function(i){e[i].forEach(function(r){n[String(r)]=i})}),n}function Gr(e,n){if(n=n||{},Object.keys(n).forEach(function(i){if(zr.indexOf(i)===-1)throw new _('Unknown option "'+i+'" is met in definition of "'+e+'" YAML type.')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return!0},this.construct=n.construct||function(i){return i},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||!1,this.styleAliases=Fr(n.styleAliases||null),Yr.indexOf(this.kind)===-1)throw new _('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var D=Gr;function bn(e,n){var i=[];return e[n].forEach(function(r){var o=i.length;i.forEach(function(t,l){t.tag===r.tag&&t.kind===r.kind&&t.multi===r.multi&&(o=l)}),i[o]=r}),i}function Br(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,i;function r(o){o.multi?(e.multi[o.kind].push(o),e.multi.fallback.push(o)):e[o.kind][o.tag]=e.fallback[o.tag]=o}for(n=0,i=arguments.length;n<i;n+=1)arguments[n].forEach(r);return e}function Ve(e){return this.extend(e)}Ve.prototype.extend=function(n){var i=[],r=[];if(n instanceof D)r.push(n);else if(Array.isArray(n))r=r.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(i=i.concat(n.implicit)),n.explicit&&(r=r.concat(n.explicit));else throw new _("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(t){if(!(t instanceof D))throw new _("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&t.loadKind!=="scalar")throw new _("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new _("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(t){if(!(t instanceof D))throw new _("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(Ve.prototype);return o.implicit=(this.implicit||[]).concat(i),o.explicit=(this.explicit||[]).concat(r),o.compiledImplicit=bn(o,"implicit"),o.compiledExplicit=bn(o,"explicit"),o.compiledTypeMap=Br(o.compiledImplicit,o.compiledExplicit),o};var Ur=Ve,Zr=new D("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Rr=new D("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),_r=new D("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Wr=new Ur({explicit:[Zr,Rr,_r]});function Hr(e){if(e===null)return!0;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function Qr(){return null}function $r(e){return e===null}var Vr=new D("tag:yaml.org,2002:null",{kind:"scalar",resolve:Hr,construct:Qr,predicate:$r,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Jr(e){if(e===null)return!1;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function Xr(e){return e==="true"||e==="True"||e==="TRUE"}function qr(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Kr=new D("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Jr,construct:Xr,predicate:qr,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function eo(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function no(e){return 48<=e&&e<=55}function io(e){return 48<=e&&e<=57}function ro(e){if(e===null)return!1;var n=e.length,i=0,r=!1,o;if(!n)return!1;if(o=e[i],(o==="-"||o==="+")&&(o=e[++i]),o==="0"){if(i+1===n)return!0;if(o=e[++i],o==="b"){for(i++;i<n;i++)if(o=e[i],o!=="_"){if(o!=="0"&&o!=="1")return!1;r=!0}return r&&o!=="_"}if(o==="x"){for(i++;i<n;i++)if(o=e[i],o!=="_"){if(!eo(e.charCodeAt(i)))return!1;r=!0}return r&&o!=="_"}if(o==="o"){for(i++;i<n;i++)if(o=e[i],o!=="_"){if(!no(e.charCodeAt(i)))return!1;r=!0}return r&&o!=="_"}}if(o==="_")return!1;for(;i<n;i++)if(o=e[i],o!=="_"){if(!io(e.charCodeAt(i)))return!1;r=!0}return!(!r||o==="_")}function oo(e){var n=e,i=1,r;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),r=n[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),n=n.slice(1),r=n[0]),n==="0")return 0;if(r==="0"){if(n[1]==="b")return i*parseInt(n.slice(2),2);if(n[1]==="x")return i*parseInt(n.slice(2),16);if(n[1]==="o")return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)}function lo(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!A.isNegativeZero(e)}var to=new D("tag:yaml.org,2002:int",{kind:"scalar",resolve:ro,construct:oo,predicate:lo,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ao=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function co(e){return!(e===null||!ao.test(e)||e[e.length-1]==="_")}function uo(e){var n,i;return n=e.replace(/_/g,"").toLowerCase(),i=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:i*parseFloat(n,10)}var so=/^[-+]?[0-9]+e/;function fo(e,n){var i;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(A.isNegativeZero(e))return"-0.0";return i=e.toString(10),so.test(i)?i.replace("e",".e"):i}function po(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||A.isNegativeZero(e))}var go=new D("tag:yaml.org,2002:float",{kind:"scalar",resolve:co,construct:uo,predicate:po,represent:fo,defaultStyle:"lowercase"}),mo=Wr.extend({implicit:[Vr,Kr,to,go]}),ho=mo,Wn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Hn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function xo(e){return e===null?!1:Wn.exec(e)!==null||Hn.exec(e)!==null}function Mo(e){var n,i,r,o,t,l,a,c=0,u=null,f,s,h;if(n=Wn.exec(e),n===null&&(n=Hn.exec(e)),n===null)throw new Error("Date resolve error");if(i=+n[1],r=+n[2]-1,o=+n[3],!n[4])return new Date(Date.UTC(i,r,o));if(t=+n[4],l=+n[5],a=+n[6],n[7]){for(c=n[7].slice(0,3);c.length<3;)c+="0";c=+c}return n[9]&&(f=+n[10],s=+(n[11]||0),u=(f*60+s)*6e4,n[9]==="-"&&(u=-u)),h=new Date(Date.UTC(i,r,o,t,l,a,c)),u&&h.setTime(h.getTime()-u),h}function Io(e){return e.toISOString()}var jo=new D("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:xo,construct:Mo,instanceOf:Date,represent:Io});function yo(e){return e==="<<"||e===null}var No=new D("tag:yaml.org,2002:merge",{kind:"scalar",resolve:yo}),qe=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
8
+ \r`;function wo(e){if(e===null)return!1;var n,i,r=0,o=e.length,t=qe;for(i=0;i<o;i++)if(n=t.indexOf(e.charAt(i)),!(n>64)){if(n<0)return!1;r+=6}return r%8===0}function Lo(e){var n,i,r=e.replace(/[\r\n=]/g,""),o=r.length,t=qe,l=0,a=[];for(n=0;n<o;n++)n%4===0&&n&&(a.push(l>>16&255),a.push(l>>8&255),a.push(l&255)),l=l<<6|t.indexOf(r.charAt(n));return i=o%4*6,i===0?(a.push(l>>16&255),a.push(l>>8&255),a.push(l&255)):i===18?(a.push(l>>10&255),a.push(l>>2&255)):i===12&&a.push(l>>4&255),new Uint8Array(a)}function vo(e){var n="",i=0,r,o,t=e.length,l=qe;for(r=0;r<t;r++)r%3===0&&r&&(n+=l[i>>18&63],n+=l[i>>12&63],n+=l[i>>6&63],n+=l[i&63]),i=(i<<8)+e[r];return o=t%3,o===0?(n+=l[i>>18&63],n+=l[i>>12&63],n+=l[i>>6&63],n+=l[i&63]):o===2?(n+=l[i>>10&63],n+=l[i>>4&63],n+=l[i<<2&63],n+=l[64]):o===1&&(n+=l[i>>2&63],n+=l[i<<4&63],n+=l[64],n+=l[64]),n}function Co(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var bo=new D("tag:yaml.org,2002:binary",{kind:"scalar",resolve:wo,construct:Lo,predicate:Co,represent:vo}),To=Object.prototype.hasOwnProperty,Do=Object.prototype.toString;function Ao(e){if(e===null)return!0;var n=[],i,r,o,t,l,a=e;for(i=0,r=a.length;i<r;i+=1){if(o=a[i],l=!1,Do.call(o)!=="[object Object]")return!1;for(t in o)if(To.call(o,t))if(!l)l=!0;else return!1;if(!l)return!1;if(n.indexOf(t)===-1)n.push(t);else return!1}return!0}function So(e){return e!==null?e:[]}var Eo=new D("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ao,construct:So}),ko=Object.prototype.toString;function Oo(e){if(e===null)return!0;var n,i,r,o,t,l=e;for(t=new Array(l.length),n=0,i=l.length;n<i;n+=1){if(r=l[n],ko.call(r)!=="[object Object]"||(o=Object.keys(r),o.length!==1))return!1;t[n]=[o[0],r[o[0]]]}return!0}function Po(e){if(e===null)return[];var n,i,r,o,t,l=e;for(t=new Array(l.length),n=0,i=l.length;n<i;n+=1)r=l[n],o=Object.keys(r),t[n]=[o[0],r[o[0]]];return t}var zo=new D("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Oo,construct:Po}),Yo=Object.prototype.hasOwnProperty;function Fo(e){if(e===null)return!0;var n,i=e;for(n in i)if(Yo.call(i,n)&&i[n]!==null)return!1;return!0}function Go(e){return e!==null?e:{}}var Bo=new D("tag:yaml.org,2002:set",{kind:"mapping",resolve:Fo,construct:Go}),Uo=ho.extend({implicit:[jo,No],explicit:[bo,Eo,zo,Bo]}),V=Object.prototype.hasOwnProperty,we=1,Qn=2,$n=3,Le=4,We=1,Zo=2,Tn=3,Ro=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_o=/[\x85\u2028\u2029]/,Wo=/[,\[\]\{\}]/,Vn=/^(?:!|!!|![a-z\-]+!)$/i,Jn=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Dn(e){return Object.prototype.toString.call(e)}function F(e){return e===10||e===13}function ne(e){return e===9||e===32}function k(e){return e===9||e===32||e===10||e===13}function le(e){return e===44||e===91||e===93||e===123||e===125}function Ho(e){var n;return 48<=e&&e<=57?e-48:(n=e|32,97<=n&&n<=102?n-97+10:-1)}function Qo(e){return e===120?2:e===117?4:e===85?8:0}function $o(e){return 48<=e&&e<=57?e-48:-1}function An(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
9
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function Vo(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Xn(e,n,i){n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:i}):e[n]=i}var qn=new Array(256),Kn=new Array(256);for(var oe=0;oe<256;oe++)qn[oe]=An(oe)?1:0,Kn[oe]=An(oe);function Jo(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||Uo,this.onWarning=n.onWarning||null,this.legacy=n.legacy||!1,this.json=n.json||!1,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ei(e,n){var i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=Pr(i),new _(n,i)}function d(e,n){throw ei(e,n)}function ve(e,n){e.onWarning&&e.onWarning.call(null,ei(e,n))}var Sn={YAML:function(n,i,r){var o,t,l;n.version!==null&&d(n,"duplication of %YAML directive"),r.length!==1&&d(n,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),o===null&&d(n,"ill-formed argument of the YAML directive"),t=parseInt(o[1],10),l=parseInt(o[2],10),t!==1&&d(n,"unacceptable YAML version of the document"),n.version=r[0],n.checkLineBreaks=l<2,l!==1&&l!==2&&ve(n,"unsupported YAML version of the document")},TAG:function(n,i,r){var o,t;r.length!==2&&d(n,"TAG directive accepts exactly two arguments"),o=r[0],t=r[1],Vn.test(o)||d(n,"ill-formed tag handle (first argument) of the TAG directive"),V.call(n.tagMap,o)&&d(n,'there is a previously declared suffix for "'+o+'" tag handle'),Jn.test(t)||d(n,"ill-formed tag prefix (second argument) of the TAG directive");try{t=decodeURIComponent(t)}catch{d(n,"tag prefix is malformed: "+t)}n.tagMap[o]=t}};function $(e,n,i,r){var o,t,l,a;if(n<i){if(a=e.input.slice(n,i),r)for(o=0,t=a.length;o<t;o+=1)l=a.charCodeAt(o),l===9||32<=l&&l<=1114111||d(e,"expected valid JSON character");else Ro.test(a)&&d(e,"the stream contains non-printable characters");e.result+=a}}function En(e,n,i,r){var o,t,l,a;for(A.isObject(i)||d(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(i),l=0,a=o.length;l<a;l+=1)t=o[l],V.call(n,t)||(Xn(n,t,i[t]),r[t]=!0)}function te(e,n,i,r,o,t,l,a,c){var u,f;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),u=0,f=o.length;u<f;u+=1)Array.isArray(o[u])&&d(e,"nested arrays are not supported inside keys"),typeof o=="object"&&Dn(o[u])==="[object Object]"&&(o[u]="[object Object]");if(typeof o=="object"&&Dn(o)==="[object Object]"&&(o="[object Object]"),o=String(o),n===null&&(n={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(t))for(u=0,f=t.length;u<f;u+=1)En(e,n,t[u],i);else En(e,n,t,i);else!e.json&&!V.call(i,o)&&V.call(n,o)&&(e.line=l||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,d(e,"duplicated mapping key")),Xn(n,o,t),delete i[o];return n}function Ke(e){var n;n=e.input.charCodeAt(e.position),n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):d(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function b(e,n,i){for(var r=0,o=e.input.charCodeAt(e.position);o!==0;){for(;ne(o);)o===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(n&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(F(o))for(Ke(e),o=e.input.charCodeAt(e.position),r++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return i!==-1&&r!==0&&e.lineIndent<i&&ve(e,"deficient indentation"),r}function De(e){var n=e.position,i;return i=e.input.charCodeAt(n),!!((i===45||i===46)&&i===e.input.charCodeAt(n+1)&&i===e.input.charCodeAt(n+2)&&(n+=3,i=e.input.charCodeAt(n),i===0||k(i)))}function en(e,n){n===1?e.result+=" ":n>1&&(e.result+=A.repeat(`
10
+ `,n-1))}function Xo(e,n,i){var r,o,t,l,a,c,u,f,s=e.kind,h=e.result,p;if(p=e.input.charCodeAt(e.position),k(p)||le(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(o=e.input.charCodeAt(e.position+1),k(o)||i&&le(o)))return!1;for(e.kind="scalar",e.result="",t=l=e.position,a=!1;p!==0;){if(p===58){if(o=e.input.charCodeAt(e.position+1),k(o)||i&&le(o))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),k(r))break}else{if(e.position===e.lineStart&&De(e)||i&&le(p))break;if(F(p))if(c=e.line,u=e.lineStart,f=e.lineIndent,b(e,!1,-1),e.lineIndent>=n){a=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=l,e.line=c,e.lineStart=u,e.lineIndent=f;break}}a&&($(e,t,l,!1),en(e,e.line-c),t=l=e.position,a=!1),ne(p)||(l=e.position+1),p=e.input.charCodeAt(++e.position)}return $(e,t,l,!1),e.result?!0:(e.kind=s,e.result=h,!1)}function qo(e,n){var i,r,o;if(i=e.input.charCodeAt(e.position),i!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=o=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39)if($(e,r,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)r=e.position,e.position++,o=e.position;else return!0;else F(i)?($(e,r,o,!0),en(e,b(e,!1,n)),r=o=e.position):e.position===e.lineStart&&De(e)?d(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);d(e,"unexpected end of the stream within a single quoted scalar")}function Ko(e,n){var i,r,o,t,l,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,i=r=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return $(e,i,e.position,!0),e.position++,!0;if(a===92){if($(e,i,e.position,!0),a=e.input.charCodeAt(++e.position),F(a))b(e,!1,n);else if(a<256&&qn[a])e.result+=Kn[a],e.position++;else if((l=Qo(a))>0){for(o=l,t=0;o>0;o--)a=e.input.charCodeAt(++e.position),(l=Ho(a))>=0?t=(t<<4)+l:d(e,"expected hexadecimal character");e.result+=Vo(t),e.position++}else d(e,"unknown escape sequence");i=r=e.position}else F(a)?($(e,i,r,!0),en(e,b(e,!1,n)),i=r=e.position):e.position===e.lineStart&&De(e)?d(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}d(e,"unexpected end of the stream within a double quoted scalar")}function el(e,n){var i=!0,r,o,t,l=e.tag,a,c=e.anchor,u,f,s,h,p,j=Object.create(null),N,g,y,I;if(I=e.input.charCodeAt(e.position),I===91)f=93,p=!1,a=[];else if(I===123)f=125,p=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),I=e.input.charCodeAt(++e.position);I!==0;){if(b(e,!0,n),I=e.input.charCodeAt(e.position),I===f)return e.position++,e.tag=l,e.anchor=c,e.kind=p?"mapping":"sequence",e.result=a,!0;i?I===44&&d(e,"expected the node content, but found ','"):d(e,"missed comma between flow collection entries"),g=N=y=null,s=h=!1,I===63&&(u=e.input.charCodeAt(e.position+1),k(u)&&(s=h=!0,e.position++,b(e,!0,n))),r=e.line,o=e.lineStart,t=e.position,ae(e,n,we,!1,!0),g=e.tag,N=e.result,b(e,!0,n),I=e.input.charCodeAt(e.position),(h||e.line===r)&&I===58&&(s=!0,I=e.input.charCodeAt(++e.position),b(e,!0,n),ae(e,n,we,!1,!0),y=e.result),p?te(e,a,j,g,N,y,r,o,t):s?a.push(te(e,null,j,g,N,y,r,o,t)):a.push(N),b(e,!0,n),I=e.input.charCodeAt(e.position),I===44?(i=!0,I=e.input.charCodeAt(++e.position)):i=!1}d(e,"unexpected end of the stream within a flow collection")}function nl(e,n){var i,r,o=We,t=!1,l=!1,a=n,c=0,u=!1,f,s;if(s=e.input.charCodeAt(e.position),s===124)r=!1;else if(s===62)r=!0;else return!1;for(e.kind="scalar",e.result="";s!==0;)if(s=e.input.charCodeAt(++e.position),s===43||s===45)We===o?o=s===43?Tn:Zo:d(e,"repeat of a chomping mode identifier");else if((f=$o(s))>=0)f===0?d(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?d(e,"repeat of an indentation width identifier"):(a=n+f-1,l=!0);else break;if(ne(s)){do s=e.input.charCodeAt(++e.position);while(ne(s));if(s===35)do s=e.input.charCodeAt(++e.position);while(!F(s)&&s!==0)}for(;s!==0;){for(Ke(e),e.lineIndent=0,s=e.input.charCodeAt(e.position);(!l||e.lineIndent<a)&&s===32;)e.lineIndent++,s=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>a&&(a=e.lineIndent),F(s)){c++;continue}if(e.lineIndent<a){o===Tn?e.result+=A.repeat(`
11
+ `,t?1+c:c):o===We&&t&&(e.result+=`
12
+ `);break}for(r?ne(s)?(u=!0,e.result+=A.repeat(`
13
+ `,t?1+c:c)):u?(u=!1,e.result+=A.repeat(`
14
+ `,c+1)):c===0?t&&(e.result+=" "):e.result+=A.repeat(`
15
+ `,c):e.result+=A.repeat(`
16
+ `,t?1+c:c),t=!0,l=!0,c=0,i=e.position;!F(s)&&s!==0;)s=e.input.charCodeAt(++e.position);$(e,i,e.position,!1)}return!0}function kn(e,n){var i,r=e.tag,o=e.anchor,t=[],l,a=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=t),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,d(e,"tab characters must not be used in indentation")),!(c!==45||(l=e.input.charCodeAt(e.position+1),!k(l))));){if(a=!0,e.position++,b(e,!0,-1)&&e.lineIndent<=n){t.push(null),c=e.input.charCodeAt(e.position);continue}if(i=e.line,ae(e,n,$n,!1,!0),t.push(e.result),b(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===i||e.lineIndent>n)&&c!==0)d(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return a?(e.tag=r,e.anchor=o,e.kind="sequence",e.result=t,!0):!1}function il(e,n,i){var r,o,t,l,a,c,u=e.tag,f=e.anchor,s={},h=Object.create(null),p=null,j=null,N=null,g=!1,y=!1,I;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),I=e.input.charCodeAt(e.position);I!==0;){if(!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,d(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),t=e.line,(I===63||I===58)&&k(r))I===63?(g&&(te(e,s,h,p,j,null,l,a,c),p=j=N=null),y=!0,g=!0,o=!0):g?(g=!1,o=!0):d(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,I=r;else{if(l=e.line,a=e.lineStart,c=e.position,!ae(e,i,Qn,!1,!0))break;if(e.line===t){for(I=e.input.charCodeAt(e.position);ne(I);)I=e.input.charCodeAt(++e.position);if(I===58)I=e.input.charCodeAt(++e.position),k(I)||d(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(te(e,s,h,p,j,null,l,a,c),p=j=N=null),y=!0,g=!1,o=!1,p=e.tag,j=e.result;else if(y)d(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=f,!0}else if(y)d(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=f,!0}if((e.line===t||e.lineIndent>n)&&(g&&(l=e.line,a=e.lineStart,c=e.position),ae(e,n,Le,!0,o)&&(g?j=e.result:N=e.result),g||(te(e,s,h,p,j,N,l,a,c),p=j=N=null),b(e,!0,-1),I=e.input.charCodeAt(e.position)),(e.line===t||e.lineIndent>n)&&I!==0)d(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return g&&te(e,s,h,p,j,null,l,a,c),y&&(e.tag=u,e.anchor=f,e.kind="mapping",e.result=s),y}function rl(e){var n,i=!1,r=!1,o,t,l;if(l=e.input.charCodeAt(e.position),l!==33)return!1;if(e.tag!==null&&d(e,"duplication of a tag property"),l=e.input.charCodeAt(++e.position),l===60?(i=!0,l=e.input.charCodeAt(++e.position)):l===33?(r=!0,o="!!",l=e.input.charCodeAt(++e.position)):o="!",n=e.position,i){do l=e.input.charCodeAt(++e.position);while(l!==0&&l!==62);e.position<e.length?(t=e.input.slice(n,e.position),l=e.input.charCodeAt(++e.position)):d(e,"unexpected end of the stream within a verbatim tag")}else{for(;l!==0&&!k(l);)l===33&&(r?d(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(n-1,e.position+1),Vn.test(o)||d(e,"named tag handle cannot contain such characters"),r=!0,n=e.position+1)),l=e.input.charCodeAt(++e.position);t=e.input.slice(n,e.position),Wo.test(t)&&d(e,"tag suffix cannot contain flow indicator characters")}t&&!Jn.test(t)&&d(e,"tag name cannot contain such characters: "+t);try{t=decodeURIComponent(t)}catch{d(e,"tag name is malformed: "+t)}return i?e.tag=t:V.call(e.tagMap,o)?e.tag=e.tagMap[o]+t:o==="!"?e.tag="!"+t:o==="!!"?e.tag="tag:yaml.org,2002:"+t:d(e,'undeclared tag handle "'+o+'"'),!0}function ol(e){var n,i;if(i=e.input.charCodeAt(e.position),i!==38)return!1;for(e.anchor!==null&&d(e,"duplication of an anchor property"),i=e.input.charCodeAt(++e.position),n=e.position;i!==0&&!k(i)&&!le(i);)i=e.input.charCodeAt(++e.position);return e.position===n&&d(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),!0}function ll(e){var n,i,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),n=e.position;r!==0&&!k(r)&&!le(r);)r=e.input.charCodeAt(++e.position);return e.position===n&&d(e,"name of an alias node must contain at least one character"),i=e.input.slice(n,e.position),V.call(e.anchorMap,i)||d(e,'unidentified alias "'+i+'"'),e.result=e.anchorMap[i],b(e,!0,-1),!0}function ae(e,n,i,r,o){var t,l,a,c=1,u=!1,f=!1,s,h,p,j,N,g;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,t=l=a=Le===i||$n===i,r&&b(e,!0,-1)&&(u=!0,e.lineIndent>n?c=1:e.lineIndent===n?c=0:e.lineIndent<n&&(c=-1)),c===1)for(;rl(e)||ol(e);)b(e,!0,-1)?(u=!0,a=t,e.lineIndent>n?c=1:e.lineIndent===n?c=0:e.lineIndent<n&&(c=-1)):a=!1;if(a&&(a=u||o),(c===1||Le===i)&&(we===i||Qn===i?N=n:N=n+1,g=e.position-e.lineStart,c===1?a&&(kn(e,g)||il(e,g,N))||el(e,N)?f=!0:(l&&nl(e,N)||qo(e,N)||Ko(e,N)?f=!0:ll(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&d(e,"alias node should not have any properties")):Xo(e,N,we===i)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(f=a&&kn(e,g))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&d(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),s=0,h=e.implicitTypes.length;s<h;s+=1)if(j=e.implicitTypes[s],j.resolve(e.result)){e.result=j.construct(e.result),e.tag=j.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(V.call(e.typeMap[e.kind||"fallback"],e.tag))j=e.typeMap[e.kind||"fallback"][e.tag];else for(j=null,p=e.typeMap.multi[e.kind||"fallback"],s=0,h=p.length;s<h;s+=1)if(e.tag.slice(0,p[s].tag.length)===p[s].tag){j=p[s];break}j||d(e,"unknown tag !<"+e.tag+">"),e.result!==null&&j.kind!==e.kind&&d(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+j.kind+'", not "'+e.kind+'"'),j.resolve(e.result,e.tag)?(e.result=j.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):d(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function tl(e){var n=e.position,i,r,o,t=!1,l;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(l=e.input.charCodeAt(e.position))!==0&&(b(e,!0,-1),l=e.input.charCodeAt(e.position),!(e.lineIndent>0||l!==37));){for(t=!0,l=e.input.charCodeAt(++e.position),i=e.position;l!==0&&!k(l);)l=e.input.charCodeAt(++e.position);for(r=e.input.slice(i,e.position),o=[],r.length<1&&d(e,"directive name must not be less than one character in length");l!==0;){for(;ne(l);)l=e.input.charCodeAt(++e.position);if(l===35){do l=e.input.charCodeAt(++e.position);while(l!==0&&!F(l));break}if(F(l))break;for(i=e.position;l!==0&&!k(l);)l=e.input.charCodeAt(++e.position);o.push(e.input.slice(i,e.position))}l!==0&&Ke(e),V.call(Sn,r)?Sn[r](e,r,o):ve(e,'unknown document directive "'+r+'"')}if(b(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,b(e,!0,-1)):t&&d(e,"directives end mark is expected"),ae(e,e.lineIndent-1,Le,!1,!0),b(e,!0,-1),e.checkLineBreaks&&_o.test(e.input.slice(n,e.position))&&ve(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&De(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,b(e,!0,-1));return}if(e.position<e.length-1)d(e,"end of the stream or a document separator is expected");else return}function al(e,n){e=String(e),n=n||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
17
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var i=new Jo(e,n),r=e.indexOf("\0");for(r!==-1&&(i.position=r,d(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)tl(i);return i.documents}function cl(e,n){var i=al(e,n);if(i.length!==0){if(i.length===1)return i[0];throw new _("expected a single document in the stream, but found more")}}var ul=cl,sl={load:ul},fl=sl.load;const pl=G(m.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"}),"Close"),dl=G(m.jsx("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27M6.24 5h11.52l.81.97H5.44zM5 19V8h14v11zm8.45-9h-2.9v3H8l4 4 4-4h-2.55z"}),"ArchiveOutlined"),gl=G(m.jsx("path",{d:"m10 16.5 6-4.5-6-4.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"PlayCircleOutline"),ml=G(m.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"}),"InsertDriveFileOutlined");var P=function(){return P=Object.assign||function(n){for(var i,r=1,o=arguments.length;r<o;r++){i=arguments[r];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(n[t]=i[t])}return n},P.apply(this,arguments)};function He(e,n,i){for(var r=0,o=n.length,t;r<o;r++)(t||!(r in n))&&(t||(t=Array.prototype.slice.call(n,0,r)),t[r]=n[r]);return e.concat(t||Array.prototype.slice.call(n))}var hl="data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgMzAwIiB3aWR0aD0iNDA2IiBoZWlnaHQ9IjMwNiIgY2xhc3M9ImlsbHVzdHJhdGlvbiBzdHlsZXNfaWxsdXN0cmF0aW9uVGFibGV0X18xRFdPYSI+PHRpdGxlPiMxNiBmaWxlcyBhbmQgZm9sZGVyczwvdGl0bGU+PHBhdGggZD0iTTE0Ny43MSwxNDcuN0gxNDAuOHYtMi43Nmg2LjkxYTMuNDQsMy40NCwwLDEsMCwwLTYuODhIMTQwLjhWMTM1LjNoNi45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BhdGg+PHBvbHlnb24gcG9pbnRzPSI5My4wMSAyNDAuNTEgOTUuNDggMjU2LjkxIDExMC41OCAyNTYuOTEgMTEyLjc0IDI0MC41MSA5My4wMSAyNDAuNTEiIGZpbGw9IiMyNDI4NWIiPjwvcG9seWdvbj48L3N2Zz4=";function ni(e){var n=e.size,i=e.file,r=e.index,o=e.disabled,t=e.handleRemoveFile,l=ce(),a=L.useRef(null),c=M.createElement(ml,{color:"primary",fontSize:"large"});return/\.(g?zip|tar|gz|rar)$/i.test(i.name)&&(c=M.createElement(dl,{color:"primary",fontSize:"large"})),/\.(mp.|midi|mkv|avi)$/i.test(i.name)&&(c=M.createElement(gl,{color:"primary",fontSize:"large"})),M.createElement(M.Fragment,null,M.createElement(Ne,{sx:{mb:0,display:"flex",alignItems:"center","&:nth-of-type(even)":{backgroundColor:l.palette.action.hover}}},M.createElement(Ne,{sx:{display:"flex",flexGrow:1,alignItems:"center"}},M.createElement(er,{alt:"",src:i.path,ref:a,variant:"rounded",sx:{m:.5,width:32,height:32,display:"flex",background:"transparent"}},c),M.createElement(z,{component:"div",sx:{display:"inline-grid",alignItems:"center"}},M.createElement(z,{variant:"body2",noWrap:!0},i.name),M.createElement(z,{variant:"caption",noWrap:!0},M.createElement(M.Fragment,null,M.createElement("b",null,n)," | ",M.createElement("b",null,i!=null&&i.extension?i.extension.toLowerCase():""))))),M.createElement(z,{component:"div",sx:{mr:-.5,textAlign:"right"}},M.createElement(Yn,{disabled:o,onClick:function(u){return t(u,r)}},M.createElement(pl,null)))))}ni.propTypes={size:x.string,file:x.object,disabled:x.bool,index:x.number.isRequired,handleRemoveFile:x.func.isRequired};var xl=B(z)(function(){return{"&::-webkit-scrollbar":{width:7,height:6},"&::-webkit-scrollbar-track":{WebkitBoxShadow:"inset 0 0 6px rgb(125, 161, 196, 0.5)"},"&::-webkit-scrollbar-thumb":{WebkitBorderRadius:4,borderRadius:4,background:"rgba(0, 172, 193, .5)",WebkitBoxShadow:"inset 0 0 6px rgba(25, 118, 210, .5)"},"&::-webkit-scrollbar-thumb:window-inactive":{background:"rgba(125, 161, 196, 0.5)"}}}),On=1024*1024;function nn(e){var n=e.title,i=e.header,r=e.onError,o=e.disabled,t=e.imageSrc,l=e.getBase64,a=e.imageSrcAlt,c=e.multiFile,u=e.leftLabel,f=e.rightLabel,s=e.buttonLabel,h=e.maxFileSize,p=e.bannerProps,j=e.BannerProps,N=e.acceptedType,g=e.defaultFiles,y=e.onFilesChange,I=e.maxUploadFiles,S=I===void 0?0:I,E=e.containerProps,O=e.ContainerProps,T=e.onContextReady,U=e.showPlaceholderImage,ie=e.errorSizeMessage,J=e.allowedExtensions,W=e.buttonRemoveLabel,Ae=e.LabelsGridProps,Se=e.PlaceholderGridProps,xe=e.filesContainerHeight,Me=e.maxFilesContainerHeight,Ee=e.placeholderImageDimension,ke=e.PlaceholderImageDimension,Y=ce(),Oe=P(P({},p),j),ii=P(P({},E),O),Ie=P(P({},Ee),ke),rn=Ie.lg,on=Ie.md,ln=Ie.sm,tn=Ie.xs,an=L.useState(),cn=an[0],X=an[1],un=L.useState(),Z=un[0],sn=un[1],fn=L.useState(),ri=fn[0],je=fn[1],pn=L.useState([]),v=pn[0],ye=pn[1],dn=L.useState([]),H=dn[0],Pe=dn[1],q=L.useRef(null),oi=L.useRef(null),ze=L.useRef(null),re={width:128,height:128};fe(Y.breakpoints.up("xs"))&&tn&&(re=tn),fe(Y.breakpoints.up("sm"))&&ln&&(re=ln),fe(Y.breakpoints.up("md"))&&on&&(re=on),fe(Y.breakpoints.up("lg"))&&rn&&(re=rn);var Ye=function(w,C){if(je(!1),X(null),!C&&w.target.files&&(C=w.target.files),(!C||C.length===0)&&r)return r("Empty file input"),!1;if(S&&S-v.length<=0&&r){var K="You cannot attach more than ".concat(S," files");return X(K),r(K),!1}if(window.File&&window.FileReader&&window.FileList&&window.Blob)try{for(var si=function(Be){var R=C[Be],mn=new FileReader,ue=R.type.split("/")[1];if(h&&h>0&&R.size>1048576*h){var hn=ie||"The size of files cannot exceed ".concat(h,"Mb");return X(hn),r&&r(hn),"continue"}if(J&&J.length>0){var fi=J.findIndex(function(pi){return pi.toLowerCase()===ue.toLowerCase()})!==-1;if(!fi){var xn="Extension .".concat(ue," has been excluded");return X(xn),r&&r(xn),"continue"}}l||(H.push(R),Pe(H)),mn.addEventListener("load",function(){v.push({name:R.name,size:R.size,path:this.result,type:R.type,contentType:R.type,lastModified:R.lastModified,extension:ue==null?void 0:ue.toLowerCase()}),ye(He([],v,!0))},!1),mn.readAsDataURL(R)},Ge=0;Ge<(C==null?void 0:C.length);Ge++)si(Ge);return w.target.value="",!0}catch(Be){return X(Be.toString()),!1}return!1},Fe=function(w,C){if(X(null),q.current&&(q.current.value=""),typeof C!="number"){ye([]),Pe([]);return}if(C<0||C>v.length-1)return console.error("item's index not found...");var K=P({},v[C]);return v==null||v.splice(C,1),H==null||H.splice(C,1),ye(He([],v)),Pe(He([],H)),K},li=L.useCallback(function(w){w.preventDefault(),je(!0)},[]),ti=L.useCallback(function(w){w.stopPropagation(),w.preventDefault()},[]),ai=L.useCallback(function(w){var C;w.stopPropagation(),w.preventDefault(),je(!1),sn({event:w,files:(C=w.dataTransfer)===null||C===void 0?void 0:C.files})},[]),ci=L.useCallback(function(){je(!1)},[]),gn=function(){return{addFile:Ye,removeFile:Fe,input:q.current,files:l?v:H}};L.useEffect(function(){q.current&&T&&typeof T=="function"&&T(gn())},[q.current]),L.useEffect(function(){var w=ze.current;w&&!w.ondrop&&!o&&(w.ondrop=ai,w.ondragend=ci,w.ondragover=ti,w.ondragenter=li)},[ze.current]),L.useEffect(function(){g&&g.length>0&&v.length!==g.length&&ye(g)},[g]),L.useEffect(function(){Z!=null&&Z.event&&(Z!=null&&Z.files)&&(Ye(Z.event,Z.files),sn(null)),y&&(y(l?v:H),T&&T(gn()))},[v,Z]);var ui=ri?Y.palette.secondary.light:Y.palette.primary.light;return M.createElement(M.Fragment,null,M.createElement(Qe,P({sx:{p:1},elevation:0,ref:ze,variant:"outlined"},ii),M.createElement(z,{gutterBottom:!0,component:"div",color:"textSecondary",sx:{display:"flex"}},M.createElement(Ne,{sx:{flexGrow:1,fontSize:12}},n),(v==null?void 0:v.length)>0&&M.createElement(Ne,{sx:{fontSize:12}},v.length,S>0&&"/".concat(S)," file",(v==null?void 0:v.length)>1&&"s"," joined")),M.createElement(Qe,P({elevation:0,sx:{p:1,transition:500,background:ui}},Oe),M.createElement(Ze,{container:!0,spacing:2,alignItems:"center",justifyContent:"center"},U&&M.createElement(Ze,P({item:!0,xs:12,sm:3,md:4,sx:{textAlign:"center",mt:{xs:-3,sm:2}}},Se),M.createElement("img",{alt:a,src:t||hl,width:re.width,height:re.height})),M.createElement(Ze,P({item:!0,xs:12,sm:!0,md:!0,sx:{color:"#fff",textAlign:"center",mt:{xs:U?-4:0,sm:2}}},Ae),M.createElement(Cn,{smDown:!0},M.createElement(z,{variant:"h5"},M.createElement("b",null,i))),M.createElement(Cn,{smUp:!0},M.createElement(z,{variant:"h6"},M.createElement("b",null,i))),M.createElement(z,{variant:"caption"},u,M.createElement($e,{size:"small",color:"secondary",variant:"outlined",disabled:o,onClick:function(){var w;return(w=q.current)===null||w===void 0?void 0:w.click()},sx:{m:.5,color:Y.palette.grey[50],borderColor:Y.palette.grey[50],"&:hover":{borderColor:Y.palette.grey[50]}}},s),f),M.createElement("input",{type:"file",ref:q,onChange:function(w){return Ye(w)},multiple:c,accept:N,style:{display:"none"}})))),cn&&M.createElement(Hi,{color:"error",severity:"error",sx:{mt:1},onClose:function(){return X(null)}},cn),(v==null?void 0:v.length)>0&&M.createElement(M.Fragment,null,M.createElement(xl,{component:"div",sx:{overflowY:"auto",mt:2,mr:-1,pr:1,height:xe,maxHeight:Me}},v==null?void 0:v.map(function(w,C){var K=(w.size/1024).toFixed(2)+" Kb";return w.size>On&&(K=(w.size/On).toFixed(2)+" Mb"),M.createElement(ni,{file:w,size:K,index:C,disabled:o,key:"upload-file--".concat(C),handleRemoveFile:Fe})})),M.createElement(z,{component:"div",align:"right",sx:{mt:1}},M.createElement($e,{size:"small",disabled:o,onClick:Fe,ref:oi},W||"Remove all")))))}nn.propTypes={getBase64:x.bool,maxUploadFiles:x.number,title:x.string,header:x.string,leftLabel:x.string,rightLabel:x.string,buttonLabel:x.string,multiFile:x.bool,disabled:x.bool,defaultFiles:x.array,maxFileSize:x.number,maxFilesContainerHeight:x.number,errorSizeMessage:x.string,imageSrc:x.string,imageSrcAlt:x.string,acceptedType:x.string,bannerProps:x.object,BannerProps:x.object,containerProps:x.object,ContainerProps:x.object,allowedExtensions:x.array,onError:x.func,onContextReady:x.func,onFilesChange:x.func,showPlaceholderImage:x.bool,LabelsGridProps:x.object,PlaceholderGridProps:x.object,placeholderImageDimension:x.object,PlaceholderImageDimension:x.object};nn.defaultProps={getBase64:!1,multiFile:!0,maxFileSize:0,maxUploadFiles:0,acceptedType:"*/*",defaultFiles:[],allowedExtensions:[],title:"My awesome file uploader",header:">[Drag to drop]<",leftLabel:"or",rightLabel:"to select files",buttonLabel:"click here",imageSrcAlt:"Placeholder image",maxFilesContainerHeight:300,showPlaceholderImage:!0,placeholderImageDimension:{},PlaceholderImageDimension:{},bannerProps:{},BannerProps:{},containerProps:{},ContainerProps:{},LabelsGridProps:{},PlaceholderGridProps:{}};function Ml(e){const[n,i]=M.useState([]),r=async o=>{const t=o[o.length-1];if(t===void 0){e.onChange(null,null);return}const l=await t.arrayBuffer(),a=new TextDecoder().decode(l),c=(t.name.split(".").pop()??"").toLowerCase()==="json";let u;try{u=c?JSON.parse(a):fl(a)}catch{e.onChange(null,c?"Invalid JSON file.":"Invalid YAML file.");return}try{e.onChange(Ni.upgradeDocument(u),null)}catch(f){e.onChange(null,f instanceof Error?f.message:"Not a valid Swagger/OpenAPI document.");return}o.length>1&&i([t])};return m.jsx(nn,{defaultFiles:n,onFilesChange:r,acceptedType:".json, .yaml",getBase64:!1,multiFile:!1,maxUploadFiles:1,title:"Swagger file uploader",header:"Drag and drop a Swagger file here",buttonLabel:"Click Here",rightLabel:"to select swagger.json/yaml file",buttonRemoveLabel:"Clear"})}function Il(e){const[n,i]=L.useState("http://localhost:37001"),[r,o]=L.useState(JSON.stringify({Authorization:"YOUR_SERVER_API_KEY"},null,2)),[t,l]=L.useState(yn.defaultConfig()),[a,c]=L.useState(null),[u,f]=L.useState(!1),s=jl(r),h=u===!0||s===null||a===null||n.length===0||t.apiKey.length===0||t.vendorModel.length===0,p=g=>{e.onError!=null?e.onError(g):alert(g)},j=(g,y)=>{c(g),y!==null&&p(y)},N=async()=>{if(a!==null){f(!0);try{const g={api:new vi({apiKey:t.apiKey,baseURL:t.baseURL,dangerouslyAllowBrowser:!0}),model:t.vendorModel},y=new Ci({vendor:g,controllers:[{protocol:"http",name:"main",application:bi.application({document:a}),connection:{host:n,headers:s}}],config:{eliticism:!1}});e.onSuccess(m.jsx(Ti,{agent:y}))}catch(g){p(g instanceof Error?g.message:"unknown error"),f(!1)}}};return m.jsxs("div",{style:e.style,children:[m.jsx(Ml,{onChange:j}),m.jsx("br",{}),m.jsxs(wi,{fullWidth:!0,children:[m.jsx(z,{variant:"h6",children:"HTTP Connection"}),m.jsx("br",{}),m.jsx(Nn,{onChange:g=>i(g.target.value),defaultValue:n,label:"Host URL",variant:"outlined",placeholder:"Server URL",error:n.length===0}),m.jsx("br",{}),m.jsx(Li,{children:" Headers "}),m.jsx(Nn,{fullWidth:!0,multiline:!0,defaultValue:r,onChange:g=>o(g.target.value),maxRows:10,error:s===null,helperText:s===null?"Invalid JSON format":void 0}),m.jsx("br",{}),m.jsx("br",{}),m.jsx(z,{variant:"h6",children:"OpenAI Configuration"}),m.jsx("br",{}),m.jsx(yn,{config:t,onChange:l}),m.jsx("br",{})]}),m.jsx("br",{}),m.jsx("br",{}),m.jsx($e,{component:"a",fullWidth:!0,variant:"contained",color:"info",size:"large",disabled:h,onClick:()=>void N().catch(()=>{}),children:u?"Generating...":"Generate AI Chatbot"})]})}function jl(e){try{return JSON.parse(e)}catch{return null}}jn(window.document.getElementById("root")).render(m.jsx(Il,{style:{width:"calc(100% - 30px)",height:"calc(100% - 30px)",overflowY:"auto",padding:15},onSuccess:e=>{jn(window.document.getElementById("root")).render(e)}}));
@@ -20,9 +20,9 @@
20
20
  })(window, document, "clarity", "script", "gu5qz1srj3");
21
21
  </script>
22
22
  <title>Agentica Playground > TypeScript Class Demonstration</title>
23
- <script type="module" src="../assets/bbs/index-DS9reiTy.js"></script>
23
+ <script type="module" src="../assets/bbs/index-B88VN4Qr.js"></script>
24
24
  <link rel="modulepreload" crossorigin href="../assets/client-B8OTM7em.js">
25
- <link rel="modulepreload" crossorigin href="../assets/VendorConfigurationMovie-uQrARutt.js">
25
+ <link rel="modulepreload" crossorigin href="../assets/VendorConfigurationMovie-Cq8Q-tWq.js">
26
26
  <link rel="modulepreload" crossorigin href="../assets/Divider-Cos-Ru5Z.js">
27
27
  </head>
28
28
 
@@ -20,10 +20,9 @@
20
20
  })(window, document, "clarity", "script", "gu5qz1srj3");
21
21
  </script>
22
22
  <title>Agentica Playground > Shopping Mall Demonstration</title>
23
- <script type="module" src="../assets/shopping/index.html-MN2pRG2q.js"></script>
23
+ <script type="module" src="../assets/shopping/index.html-BB80aNMj.js"></script>
24
24
  <link rel="modulepreload" crossorigin href="../assets/client-B8OTM7em.js">
25
- <link rel="modulepreload" crossorigin href="../assets/VendorConfigurationMovie-uQrARutt.js">
26
- <link rel="modulepreload" crossorigin href="../assets/_accessExpressionAsString-CTLekF-M.js">
25
+ <link rel="modulepreload" crossorigin href="../assets/VendorConfigurationMovie-Cq8Q-tWq.js">
27
26
  <link rel="modulepreload" crossorigin href="../assets/Divider-Cos-Ru5Z.js">
28
27
  </head>
29
28
 
@@ -20,10 +20,9 @@
20
20
  })(window, document, "clarity", "script", "gu5qz1srj3");
21
21
  </script>
22
22
  <title>Agentica Playground > Uploader</title>
23
- <script type="module" src="../assets/uploader/index.html-W7Kka10Y.js"></script>
23
+ <script type="module" src="../assets/uploader/index.html-B2NyezlN.js"></script>
24
24
  <link rel="modulepreload" crossorigin href="../assets/client-B8OTM7em.js">
25
- <link rel="modulepreload" crossorigin href="../assets/VendorConfigurationMovie-uQrARutt.js">
26
- <link rel="modulepreload" crossorigin href="../assets/_accessExpressionAsString-CTLekF-M.js">
25
+ <link rel="modulepreload" crossorigin href="../assets/VendorConfigurationMovie-Cq8Q-tWq.js">
27
26
  </head>
28
27
 
29
28
  <body style="width: 100%; height: 100%; margin: 0px; overflow: hidden">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agentica/chat",
3
3
  "type": "module",
4
- "version": "0.45.0-dev.20260426",
4
+ "version": "0.45.1",
5
5
  "description": "Frontend Application of Agentica",
6
6
  "author": "Wrtn Technologies",
7
7
  "license": "MIT",
@@ -40,14 +40,14 @@
40
40
  "@typia/interface": "^12.0.1",
41
41
  "@typia/utils": "^12.0.1",
42
42
  "html-to-image": "^1.11.13",
43
- "openai": "^6.15.0",
43
+ "openai": "^6.38.0",
44
44
  "react-markdown": "^9.0.3",
45
45
  "rehype-raw": "^7.0.0",
46
46
  "rehype-stringify": "^10.0.1",
47
47
  "remark-mermaid-plugin": "^1.0.2",
48
48
  "typia": "^12.0.1",
49
49
  "uuid": "^13.0.0",
50
- "@agentica/core": "^0.45.0-dev.20260426"
50
+ "@agentica/core": "^0.45.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@eslint/js": "^9.13.0",
@@ -64,7 +64,7 @@
64
64
  "gh-pages": "^6.3.0",
65
65
  "globals": "^15.11.0",
66
66
  "js-yaml": "^4.1.0",
67
- "openai": "^6.15.0",
67
+ "openai": "^6.38.0",
68
68
  "react": "^18.3.1",
69
69
  "react-dom": "^18.3.1",
70
70
  "react-mui-fileuploader": "^0.5.2",
@@ -1 +0,0 @@
1
- const M=t=>s.test(t),s=/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,f=t=>Math.floor(t)===t&&e<=t&&t<=n,e=-9223372036854776e3,n=9223372036854776e3,z=t=>Math.floor(t)===t&&o<=t&&t<=a,o=0,a=2**64-1,$=t=>c(t)?`.${t}`:`[${JSON.stringify(t)}]`,c=t=>i(t)===!1&&/^[a-zA-Z_$][a-zA-Z_$0-9]*$/g.test(t),i=t=>r.has(t),r=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"]);export{M as _,f as a,z as b,$ as c};