@agentica/chat 0.16.0 → 0.16.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.
@@ -1 +1 @@
1
- import{g as y,a as C,r as A,u as D,j as h,s as f,e as R,f as L,m as u,i as S}from"./client-CpqWRuez.js";function W(i){return y("MuiDivider",i)}C("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const I=i=>{const{absolute:t,children:e,classes:n,flexItem:s,light:l,orientation:r,textAlign:a,variant:o}=i;return L({root:["root",t&&"absolute",o,l&&"light",r==="vertical"&&"vertical",s&&"flexItem",e&&"withChildren",e&&r==="vertical"&&"withChildrenVertical",a==="right"&&r!=="vertical"&&"textAlignRight",a==="left"&&r!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",r==="vertical"&&"wrapperVertical"]},W,n)},$=f("div",{name:"MuiDivider",slot:"Root",overridesResolver:(i,t)=>{const{ownerState:e}=i;return[t.root,e.absolute&&t.absolute,t[e.variant],e.light&&t.light,e.orientation==="vertical"&&t.vertical,e.flexItem&&t.flexItem,e.children&&t.withChildren,e.children&&e.orientation==="vertical"&&t.withChildrenVertical,e.textAlign==="right"&&e.orientation!=="vertical"&&t.textAlignRight,e.textAlign==="left"&&e.orientation!=="vertical"&&t.textAlignLeft]}})(u(({theme:i})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(i.vars||i).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:i.vars?`rgba(${i.vars.palette.dividerChannel} / 0.08)`:S(i.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:i.spacing(2),marginRight:i.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:i.spacing(1),marginBottom:i.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(i.vars||i).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(i.vars||i).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),T=f("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(i,t)=>{const{ownerState:e}=i;return[t.wrapper,e.orientation==="vertical"&&t.wrapperVertical]}})(u(({theme:i})=>({display:"inline-block",paddingLeft:`calc(${i.spacing(1)} * 1.2)`,paddingRight:`calc(${i.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${i.spacing(1)} * 1.2)`,paddingBottom:`calc(${i.spacing(1)} * 1.2)`}}]}))),v=A.forwardRef(function(t,e){const n=D({props:t,name:"MuiDivider"}),{absolute:s=!1,children:l,className:r,orientation:a="horizontal",component:o=l||a==="vertical"?"div":"hr",flexItem:c=!1,light:b=!1,role:d=o!=="hr"?"separator":void 0,textAlign:x="center",variant:m="fullWidth",...w}=n,p={...n,absolute:s,component:o,flexItem:c,light:b,orientation:a,role:d,textAlign:x,variant:m},g=I(p);return h.jsx($,{as:o,className:R(g.root,r),role:d,ref:e,ownerState:p,"aria-orientation":d==="separator"&&(o!=="hr"||a==="vertical")?a:void 0,...w,children:l?h.jsx(T,{className:g.wrapper,ownerState:p,children:l}):null})});v&&(v.muiSkipListHighlight=!0);export{v as D};
1
+ import{g as y,a as C,r as A,u as D,j as h,s as f,e as R,f as L,m as u,i as S}from"./client-B3aq8qpT.js";function W(i){return y("MuiDivider",i)}C("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const I=i=>{const{absolute:t,children:e,classes:n,flexItem:s,light:l,orientation:r,textAlign:a,variant:o}=i;return L({root:["root",t&&"absolute",o,l&&"light",r==="vertical"&&"vertical",s&&"flexItem",e&&"withChildren",e&&r==="vertical"&&"withChildrenVertical",a==="right"&&r!=="vertical"&&"textAlignRight",a==="left"&&r!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",r==="vertical"&&"wrapperVertical"]},W,n)},$=f("div",{name:"MuiDivider",slot:"Root",overridesResolver:(i,t)=>{const{ownerState:e}=i;return[t.root,e.absolute&&t.absolute,t[e.variant],e.light&&t.light,e.orientation==="vertical"&&t.vertical,e.flexItem&&t.flexItem,e.children&&t.withChildren,e.children&&e.orientation==="vertical"&&t.withChildrenVertical,e.textAlign==="right"&&e.orientation!=="vertical"&&t.textAlignRight,e.textAlign==="left"&&e.orientation!=="vertical"&&t.textAlignLeft]}})(u(({theme:i})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(i.vars||i).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:i.vars?`rgba(${i.vars.palette.dividerChannel} / 0.08)`:S(i.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:i.spacing(2),marginRight:i.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:i.spacing(1),marginBottom:i.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(i.vars||i).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(i.vars||i).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),T=f("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(i,t)=>{const{ownerState:e}=i;return[t.wrapper,e.orientation==="vertical"&&t.wrapperVertical]}})(u(({theme:i})=>({display:"inline-block",paddingLeft:`calc(${i.spacing(1)} * 1.2)`,paddingRight:`calc(${i.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${i.spacing(1)} * 1.2)`,paddingBottom:`calc(${i.spacing(1)} * 1.2)`}}]}))),v=A.forwardRef(function(t,e){const n=D({props:t,name:"MuiDivider"}),{absolute:s=!1,children:l,className:r,orientation:a="horizontal",component:o=l||a==="vertical"?"div":"hr",flexItem:c=!1,light:b=!1,role:d=o!=="hr"?"separator":void 0,textAlign:x="center",variant:m="fullWidth",...w}=n,p={...n,absolute:s,component:o,flexItem:c,light:b,orientation:a,role:d,textAlign:x,variant:m},g=I(p);return h.jsx($,{as:o,className:R(g.root,r),role:d,ref:e,ownerState:p,"aria-orientation":d==="separator"&&(o!=="hr"||a==="vertical")?a:void 0,...w,children:l?h.jsx(T,{className:g.wrapper,ownerState:p,children:l}):null})});v&&(v.muiSkipListHighlight=!0);export{v as D};
@@ -0,0 +1 @@
1
+ var f={};Object.defineProperty(f,"__esModule",{value:!0});var i=f._isFormatUuid=void 0;const t=a=>r.test(a);i=f._isFormatUuid=t;const r=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var _={};Object.defineProperty(_,"__esModule",{value:!0});var d=_._isFormatUri=void 0;const o=a=>s.test(a)&&e.test(a);d=_._isFormatUri=o;const s=/\/|:/,e=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;export{i as _,d as a};
@@ -0,0 +1,97 @@
1
+ import{j as a,o as B,r as y,T as g}from"../client-B3aq8qpT.js";import{v as C,A as T,e as w,_ as v,f as R,F as S,T as I,R as _,c as x,d as j,B as P}from"../AgenticaChatApplication-FutOMCcj.js";import{a as f,_ as b}from"../_isFormatUri-YqTfGpHo.js";import{D as U}from"../Divider-DX1xhf0M.js";class k{constructor(){this.articles=[]}index(){return this.articles}create(o){const l={id:C(),title:o.input.title,body:o.input.body,thumbnail:o.input.thumbnail,created_at:new Date().toISOString(),updated_at:new Date().toISOString()};return this.articles.push(l),l}update(o){const l=this.articles.find(d=>d.id===o.id);if(l===void 0)throw new Error("Unable to find the matched article.");o.input.title!==void 0&&(l.title=o.input.title),o.input.body!==void 0&&(l.body=o.input.body),o.input.thumbnail!==void 0&&(l.thumbnail=o.input.thumbnail),l.updated_at=new Date().toISOString()}erase(o){const l=this.articles.findIndex(d=>d.id===o.id);if(l===-1)throw new Error("Unable to find the matched article.");this.articles.splice(l,1)}}function D(u){const o=new k,l=new T({model:"chatgpt",vendor:{api:new w({apiKey:u.apiKey,dangerouslyAllowBrowser:!0}),model:u.model??"gpt-4o-mini"},controllers:[{protocol:"class",name:"bbs",application:{model:"chatgpt",options:{reference:!1,strict:!1,separate:null},functions:[{name:"index",parameters:{description:"",type:"object",properties:{},additionalProperties:!1,required:[],$defs:{}},output:{description:"List of every articles",type:"array",items:{description:`Description of the current {@link IBbsArticle} type:
2
+
3
+ > Article entity.
4
+ >
5
+ > \`IBbsArticle\` is an entity representing an article in the BBS (Bulletin Board System).`,type:"object",properties:{id:{title:"Primary Key",description:`Primary Key.
6
+
7
+
8
+ @format uuid`,type:"string"},created_at:{title:"Creation time of the article",description:`Creation time of the article.
9
+
10
+
11
+ @format date-time`,type:"string"},updated_at:{title:"Last updated time of the article",description:`Last updated time of the article.
12
+
13
+
14
+ @format date-time`,type:"string"},title:{title:"Title of the article",description:`Title of the article.
15
+
16
+ Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
17
+
18
+ Content body of the article writtn in the markdown format.`,type:"string"},thumbnail:{title:"Thumbnail image URI",description:`Thumbnail image URI.
19
+
20
+ Thumbnail image URI which can represent the article.
21
+
22
+ If configured as \`null\`, it means that no thumbnail image in the article.`,anyOf:[{type:"null"},{type:"string",description:`@format uri
23
+ @contentMediaType image/*`}]}},required:["id","created_at","updated_at","title","body","thumbnail"]}},description:`Get all articles.
24
+
25
+ List up every articles archived in the BBS DB.`,validate:d=>({success:!0,data:d})},{name:"create",parameters:{description:" Properties of create function",type:"object",properties:{input:{description:`Information of the article to create
26
+
27
+ ------------------------------
28
+
29
+ Description of the current {@link IBbsArticle.ICreate} type:
30
+
31
+ > Information of the article to create.
32
+
33
+ ------------------------------
34
+
35
+ Description of the parent {@link IBbsArticle} type:
36
+
37
+ > Article entity.
38
+ >
39
+ > \`IBbsArticle\` is an entity representing an article in the BBS (Bulletin Board System).`,type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
40
+
41
+ Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
42
+
43
+ Content body of the article writtn in the markdown format.`,type:"string"},thumbnail:{title:"Thumbnail image URI",description:`Thumbnail image URI.
44
+
45
+ Thumbnail image URI which can represent the article.
46
+
47
+ If configured as \`null\`, it means that no thumbnail image in the article.`,anyOf:[{type:"null"},{type:"string",description:`@format uri
48
+ @contentMediaType image/*`}]}},required:["title","body","thumbnail"]}},required:["input"],additionalProperties:!1,$defs:{}},output:{description:`Description of the current {@link IBbsArticle} type:
49
+
50
+ > Article entity.
51
+ >
52
+ > \`IBbsArticle\` is an entity representing an article in the BBS (Bulletin Board System).`,type:"object",properties:{id:{title:"Primary Key",description:`Primary Key.
53
+
54
+
55
+ @format uuid`,type:"string"},created_at:{title:"Creation time of the article",description:`Creation time of the article.
56
+
57
+
58
+ @format date-time`,type:"string"},updated_at:{title:"Last updated time of the article",description:`Last updated time of the article.
59
+
60
+
61
+ @format date-time`,type:"string"},title:{title:"Title of the article",description:`Title of the article.
62
+
63
+ Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
64
+
65
+ Content body of the article writtn in the markdown format.`,type:"string"},thumbnail:{title:"Thumbnail image URI",description:`Thumbnail image URI.
66
+
67
+ Thumbnail image URI which can represent the article.
68
+
69
+ If configured as \`null\`, it means that no thumbnail image in the article.`,anyOf:[{type:"null"},{type:"string",description:`@format uri
70
+ @contentMediaType image/*`}]}},required:["id","created_at","updated_at","title","body","thumbnail"]},description:`Create a new article.
71
+
72
+ Writes a new article and archives it into the DB.`,validate:(()=>{const d=e=>typeof e.input=="object"&&e.input!==null&&p(e.input),p=e=>typeof e.title=="string"&&typeof e.body=="string"&&(e.thumbnail===null||typeof e.thumbnail=="string"&&f(e.thumbnail)),h=(e,t,r=!0)=>[(typeof e.input=="object"&&e.input!==null||n(r,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input}))&&m(e.input,t+".input",r)||n(r,{path:t+".input",expected:"IBbsArticle.ICreate",value:e.input})].every(s=>s),m=(e,t,r=!0)=>[typeof e.title=="string"||n(r,{path:t+".title",expected:"string",value:e.title}),typeof e.body=="string"||n(r,{path:t+".body",expected:"string",value:e.body}),e.thumbnail===null||typeof e.thumbnail=="string"&&(f(e.thumbnail)||n(r,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||n(r,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null)',value:e.thumbnail})].every(s=>s),c=e=>typeof e=="object"&&e!==null&&d(e);let i,n;return e=>{if(c(e)===!1){i=[],n=v(i),((r,s,A=!0)=>(typeof r=="object"&&r!==null||n(!0,{path:s+"",expected:"__type",value:r}))&&h(r,s+"",!0)||n(!0,{path:s+"",expected:"__type",value:r}))(e,"$input",!0);const t=i.length===0;return t?{success:t,data:e}:{success:t,errors:i,data:e}}return{success:!0,data:e}}})()},{name:"update",parameters:{description:" Properties of update function",type:"object",properties:{id:{title:"Target article's {@link IBbsArticle.id}",description:`Target article's {@link IBbsArticle.id}.
73
+
74
+
75
+ @format uuid`,type:"string"},input:{description:`New content to update.
76
+
77
+ ------------------------------
78
+
79
+ Description of the current {@link PartialIBbsArticle.ICreate} type:
80
+
81
+ > Make all properties in T optional`,type:"object",properties:{title:{title:"Title of the article",description:`Title of the article.
82
+
83
+ Representative title of the article.`,type:"string"},body:{title:"Content body",description:`Content body.
84
+
85
+ Content body of the article writtn in the markdown format.`,type:"string"},thumbnail:{title:"Thumbnail image URI",description:`Thumbnail image URI.
86
+
87
+ Thumbnail image URI which can represent the article.
88
+
89
+ If configured as \`null\`, it means that no thumbnail image in the article.`,anyOf:[{type:"null"},{type:"string",description:`@format uri
90
+ @contentMediaType image/*`}]}},required:[]}},required:["id","input"],additionalProperties:!1,$defs:{}},description:`Update an article.
91
+
92
+ Updates an article with new content.`,validate:(()=>{const d=e=>typeof e.id=="string"&&b(e.id)&&typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1&&p(e.input),p=e=>(e.title===void 0||typeof e.title=="string")&&(e.body===void 0||typeof e.body=="string")&&(e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&f(e.thumbnail)),h=(e,t,r=!0)=>[typeof e.id=="string"&&(b(e.id)||n(r,{path:t+".id",expected:'string & Format<"uuid">',value:e.id}))||n(r,{path:t+".id",expected:'(string & Format<"uuid">)',value:e.id}),(typeof e.input=="object"&&e.input!==null&&Array.isArray(e.input)===!1||n(r,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input}))&&m(e.input,t+".input",r)||n(r,{path:t+".input",expected:"Partial<IBbsArticle.ICreate>",value:e.input})].every(s=>s),m=(e,t,r=!0)=>[e.title===void 0||typeof e.title=="string"||n(r,{path:t+".title",expected:"(string | undefined)",value:e.title}),e.body===void 0||typeof e.body=="string"||n(r,{path:t+".body",expected:"(string | undefined)",value:e.body}),e.thumbnail===null||e.thumbnail===void 0||typeof e.thumbnail=="string"&&(f(e.thumbnail)||n(r,{path:t+".thumbnail",expected:'string & Format<"uri">',value:e.thumbnail}))||n(r,{path:t+".thumbnail",expected:'((string & Format<"uri"> & ContentMediaType<"image/*">) | null | undefined)',value:e.thumbnail})].every(s=>s),c=e=>typeof e=="object"&&e!==null&&d(e);let i,n;return e=>{if(c(e)===!1){i=[],n=v(i),((r,s,A=!0)=>(typeof r=="object"&&r!==null||n(!0,{path:s+"",expected:"__type",value:r}))&&h(r,s+"",!0)||n(!0,{path:s+"",expected:"__type",value:r}))(e,"$input",!0);const t=i.length===0;return t?{success:t,data:e}:{success:t,errors:i,data:e}}return{success:!0,data:e}}})()},{name:"erase",parameters:{description:" Properties of erase function",type:"object",properties:{id:{title:"Target article's {@link IBbsArticle.id}",description:`Target article's {@link IBbsArticle.id}.
93
+
94
+
95
+ @format uuid`,type:"string"}},required:["id"],additionalProperties:!1,$defs:{}},description:`Erase an article.
96
+
97
+ Erases an article from the DB.`,validate:(()=>{const d=i=>typeof i.id=="string"&&b(i.id),p=(i,n,e=!0)=>[typeof i.id=="string"&&(b(i.id)||c(e,{path:n+".id",expected:'string & Format<"uuid">',value:i.id}))||c(e,{path:n+".id",expected:'(string & Format<"uuid">)',value:i.id})].every(t=>t),h=i=>typeof i=="object"&&i!==null&&d(i);let m,c;return i=>{if(h(i)===!1){m=[],c=v(m),((e,t,r=!0)=>(typeof e=="object"&&e!==null||c(!0,{path:t+"",expected:"__type",value:e}))&&p(e,t+"",!0)||c(!0,{path:t+"",expected:"__type",value:e}))(i,"$input",!0);const n=m.length===0;return n?{success:n,data:i}:{success:n,errors:m,data:i}}return{success:!0,data:i}}})()}]},execute:o}],config:{locale:u.locale,timezone:u.timezone,executor:{initialize:null}}});return a.jsx(R,{agent:l})}function F(){const[u,o]=y.useState(""),[l,d]=y.useState("gpt-4o-mini"),[p,h]=y.useState(window.navigator.language),[m,c]=y.useState(!1);return a.jsx("div",{style:{width:"100%",height:"100%"},children:m===!0?a.jsx(D,{apiKey:u,model:l,locale:p}):a.jsxs(S,{style:{width:"calc(100% - 60px)",padding:15,margin:15},children:[a.jsx(g,{variant:"h6",children:"BBS AI Chatbot"}),a.jsx("br",{}),a.jsx(U,{}),a.jsx("br",{}),"Demonstration of Agentica with TypeScript Controller Class.",a.jsx("br",{}),a.jsx("br",{}),a.jsx(g,{variant:"h6",children:" OpenAI Configuration "}),a.jsx(I,{onChange:i=>o(i.target.value),defaultValue:u,label:"OpenAI API Key",variant:"outlined",placeholder:"Your OpenAI API Key",error:u.length===0}),a.jsx("br",{}),a.jsxs(_,{defaultValue:l,onChange:(i,n)=>d(n),style:{paddingLeft:15},children:[a.jsx(x,{control:a.jsx(j,{}),label:"GPT-4o Mini",value:"gpt-4o-mini"}),a.jsx(x,{control:a.jsx(j,{}),label:"GPT-4o",value:"gpt-4o"})]}),a.jsx("br",{}),a.jsx(g,{variant:"h6",children:" Membership Information "}),a.jsx("br",{}),a.jsx(I,{onChange:i=>h(i.target.value),defaultValue:p,label:"Locale",variant:"outlined",error:p.length===0}),a.jsx("br",{}),a.jsx("br",{}),a.jsx(P,{component:"a",fullWidth:!0,variant:"contained",color:"info",size:"large",disabled:u.length===0||p.length===0,onClick:()=>c(!0),children:"Start AI Chatbot"})]})})}B(window.document.getElementById("root")).render(a.jsx(F,{}));
@@ -138,4 +138,4 @@ Error generating stack: `+i.message+`
138
138
  animation-iteration-count: infinite;
139
139
  animation-delay: 200ms;
140
140
  }
141
- `,H1=$.forwardRef(function(t,n){const r=yo({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:l,...s}=r,[u,a]=$.useState([]),g=$.useRef(0),d=$.useRef(null);$.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);const m=$.useRef(!1),w=Gm(),S=$.useRef(null),v=$.useRef(null),P=$.useCallback(y=>{const{pulsate:C,rippleX:E,rippleY:x,rippleSize:R,cb:M}=y;a(c=>[...c,we.jsx(W1,{classes:{ripple:$e(i.ripple,Xe.ripple),rippleVisible:$e(i.rippleVisible,Xe.rippleVisible),ripplePulsate:$e(i.ripplePulsate,Xe.ripplePulsate),child:$e(i.child,Xe.child),childLeaving:$e(i.childLeaving,Xe.childLeaving),childPulsate:$e(i.childPulsate,Xe.childPulsate)},timeout:uu,pulsate:C,rippleX:E,rippleY:x,rippleSize:R},g.current)]),g.current+=1,d.current=M},[i]),p=$.useCallback((y={},C={},E=()=>{})=>{const{pulsate:x=!1,center:R=o||C.pulsate,fakeElement:M=!1}=C;if((y==null?void 0:y.type)==="mousedown"&&m.current){m.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(m.current=!0);const c=M?null:v.current,_=c?c.getBoundingClientRect():{width:0,height:0,left:0,top:0};let z,L,b;if(R||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)z=Math.round(_.width/2),L=Math.round(_.height/2);else{const{clientX:pe,clientY:ye}=y.touches&&y.touches.length>0?y.touches[0]:y;z=Math.round(pe-_.left),L=Math.round(ye-_.top)}if(R)b=Math.sqrt((2*_.width**2+_.height**2)/3),b%2===0&&(b+=1);else{const pe=Math.max(Math.abs((c?c.clientWidth:0)-z),z)*2+2,ye=Math.max(Math.abs((c?c.clientHeight:0)-L),L)*2+2;b=Math.sqrt(pe**2+ye**2)}y!=null&&y.touches?S.current===null&&(S.current=()=>{P({pulsate:x,rippleX:z,rippleY:L,rippleSize:b,cb:E})},w.start(D1,()=>{S.current&&(S.current(),S.current=null)})):P({pulsate:x,rippleX:z,rippleY:L,rippleSize:b,cb:E})},[o,P,w]),f=$.useCallback(()=>{p({},{pulsate:!0})},[p]),h=$.useCallback((y,C)=>{if(w.clear(),(y==null?void 0:y.type)==="touchend"&&S.current){S.current(),S.current=null,w.start(0,()=>{h(y,C)});return}S.current=null,a(E=>E.length>0?E.slice(1):E),d.current=C},[w]);return $.useImperativeHandle(n,()=>({pulsate:f,start:p,stop:h}),[f,p,h]),we.jsx(V1,{className:$e(Xe.root,i.root,l),ref:v,...s,children:we.jsx(_a,{component:null,exit:!0,children:u})})});function b1(e){return ao("MuiButtonBase",e)}const K1=co("MuiButtonBase",["root","disabled","focusVisible"]),Q1=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,l=bi({root:["root",t&&"disabled",n&&"focusVisible"]},b1,o);return n&&r&&(l.root+=` ${r}`),l},G1=ar("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${K1.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),yS=$.forwardRef(function(t,n){const r=yo({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:l,className:s,component:u="button",disabled:a=!1,disableRipple:g=!1,disableTouchRipple:d=!1,focusRipple:m=!1,focusVisibleClassName:w,LinkComponent:S="a",onBlur:v,onClick:P,onContextMenu:p,onDragLeave:f,onFocus:h,onFocusVisible:y,onKeyDown:C,onKeyUp:E,onMouseDown:x,onMouseLeave:R,onMouseUp:M,onTouchEnd:c,onTouchMove:_,onTouchStart:z,tabIndex:L=0,TouchRippleProps:b,touchRippleRef:pe,type:ye,...Ye}=r,O=$.useRef(null),A=L1(),I=ls(A.ref,pe),[V,ee]=$.useState(!1);a&&V&&ee(!1),$.useImperativeHandle(o,()=>({focusVisible:()=>{ee(!0),O.current.focus()}}),[]);const xn=A.shouldMount&&!g&&!a;$.useEffect(()=>{V&&m&&!g&&A.pulsate()},[g,m,V,A]);const xt=Pt(A,"start",x,d),dr=Pt(A,"stop",p,d),Et=Pt(A,"stop",f,d),En=Pt(A,"stop",M,d),am=Pt(A,"stop",F=>{V&&F.preventDefault(),R&&R(F)},d),cm=Pt(A,"start",z,d),fm=Pt(A,"stop",c,d),dm=Pt(A,"stop",_,d),pm=Pt(A,"stop",F=>{Ma(F.target)||ee(!1),v&&v(F)},!1),mm=bo(F=>{O.current||(O.current=F.currentTarget),Ma(F.target)&&(ee(!0),y&&y(F)),h&&h(F)}),$l=()=>{const F=O.current;return u&&u!=="button"&&!(F.tagName==="A"&&F.href)},hm=bo(F=>{m&&!F.repeat&&V&&F.key===" "&&A.stop(F,()=>{A.start(F)}),F.target===F.currentTarget&&$l()&&F.key===" "&&F.preventDefault(),C&&C(F),F.target===F.currentTarget&&$l()&&F.key==="Enter"&&!a&&(F.preventDefault(),P&&P(F))}),gm=bo(F=>{m&&F.key===" "&&V&&!F.defaultPrevented&&A.stop(F,()=>{A.pulsate(F)}),E&&E(F),P&&F.target===F.currentTarget&&$l()&&F.key===" "&&!F.defaultPrevented&&P(F)});let Co=u;Co==="button"&&(Ye.href||Ye.to)&&(Co=S);const pr={};Co==="button"?(pr.type=ye===void 0?"button":ye,pr.disabled=a):(!Ye.href&&!Ye.to&&(pr.role="button"),a&&(pr["aria-disabled"]=a));const ym=ls(n,O),Ra={...r,centerRipple:i,component:u,disabled:a,disableRipple:g,disableTouchRipple:d,focusRipple:m,tabIndex:L,focusVisible:V},vm=Q1(Ra);return we.jsxs(G1,{as:Co,className:$e(vm.root,s),ownerState:Ra,onBlur:pm,onClick:P,onContextMenu:dr,onFocus:mm,onKeyDown:hm,onKeyUp:gm,onMouseDown:xt,onMouseLeave:am,onMouseUp:En,onDragLeave:Et,onTouchEnd:fm,onTouchMove:dm,onTouchStart:cm,ref:ym,tabIndex:a?-1:L,type:ye,...pr,...Ye,children:[l,xn?we.jsx(H1,{ref:I,center:i,...b}):null]})});function Pt(e,t,n,r=!1){return bo(o=>(n&&n(o),r||e[t](o),!0))}function Y1(e){return typeof e.main=="string"}function X1(e,t=[]){if(!Y1(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Z1(e=[]){return([,t])=>t&&X1(t,e)}function J1(e){return ao("MuiTypography",e)}const vS=co("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),q1={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},eS=S0(),tS=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:l}=e,s={root:["root",i,e.align!=="inherit"&&`align${At(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return bi(s,J1,l)},nS=ar("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${At(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ld(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(Z1()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${At(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),df={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},SS=$.forwardRef(function(t,n){const{color:r,...o}=yo({props:t,name:"MuiTypography"}),i=!q1[r],l=eS({...o,...i&&{color:r}}),{align:s="inherit",className:u,component:a,gutterBottom:g=!1,noWrap:d=!1,paragraph:m=!1,variant:w="body1",variantMapping:S=df,...v}=l,P={...l,align:s,color:r,className:u,component:a,gutterBottom:g,noWrap:d,paragraph:m,variant:w,variantMapping:S},p=a||(m?"p":S[w]||df[w])||"span",f=tS(P);return we.jsx(nS,{as:p,ref:n,className:$e(f.root,u),...v,ownerState:P,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...v.style}})});function wS(e){return typeof e=="string"}const rS=$.createContext({});function oS(e){return ao("MuiList",e)}co("MuiList",["root","padding","dense","subheader"]);const iS=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return bi({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},oS,t)},lS=ar("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),kS=$.forwardRef(function(t,n){const r=yo({props:t,name:"MuiList"}),{children:o,className:i,component:l="ul",dense:s=!1,disablePadding:u=!1,subheader:a,...g}=r,d=$.useMemo(()=>({dense:s}),[s]),m={...r,component:l,dense:s,disablePadding:u},w=iS(m);return we.jsx(rS.Provider,{value:d,children:we.jsxs(lS,{as:l,className:$e(w.root,i),ref:n,ownerState:m,...g,children:[a,o]})})});var sS,pf=um;sS=pf.createRoot,pf.hydrateRoot;export{E0 as $,zu as A,yS as B,Mu as C,Z1 as D,Xm as E,id as F,h0 as G,dS as H,zt as I,Qi as J,Ma as K,rS as L,cS as M,aS as N,vy as O,Nu as P,e0 as Q,Nn as R,Gm as S,SS as T,Aa as U,rh as V,nh as W,eh as X,ss as Y,fy as Z,od as _,co as a,hS as a0,x0 as a1,ff as a2,i0 as a3,Gg as a4,Ou as a5,um as a6,bo as a7,pS as a8,hn as a9,th as aa,Ve as ab,y0 as ac,bm as b,mS as c,ls as d,$e as e,bi as f,ao as g,v0 as h,Py as i,we as j,fS as k,wS as l,ld as m,gS as n,sS as o,kS as p,mf as q,$ as r,ar as s,vS as t,yo as u,oy as v,Jn as w,py as x,Jh as y,At as z};
141
+ `,H1=$.forwardRef(function(t,n){const r=yo({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:l,...s}=r,[u,a]=$.useState([]),g=$.useRef(0),d=$.useRef(null);$.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);const m=$.useRef(!1),w=Gm(),S=$.useRef(null),v=$.useRef(null),P=$.useCallback(y=>{const{pulsate:C,rippleX:E,rippleY:x,rippleSize:R,cb:M}=y;a(c=>[...c,we.jsx(W1,{classes:{ripple:$e(i.ripple,Xe.ripple),rippleVisible:$e(i.rippleVisible,Xe.rippleVisible),ripplePulsate:$e(i.ripplePulsate,Xe.ripplePulsate),child:$e(i.child,Xe.child),childLeaving:$e(i.childLeaving,Xe.childLeaving),childPulsate:$e(i.childPulsate,Xe.childPulsate)},timeout:uu,pulsate:C,rippleX:E,rippleY:x,rippleSize:R},g.current)]),g.current+=1,d.current=M},[i]),p=$.useCallback((y={},C={},E=()=>{})=>{const{pulsate:x=!1,center:R=o||C.pulsate,fakeElement:M=!1}=C;if((y==null?void 0:y.type)==="mousedown"&&m.current){m.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(m.current=!0);const c=M?null:v.current,_=c?c.getBoundingClientRect():{width:0,height:0,left:0,top:0};let z,L,b;if(R||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)z=Math.round(_.width/2),L=Math.round(_.height/2);else{const{clientX:pe,clientY:ye}=y.touches&&y.touches.length>0?y.touches[0]:y;z=Math.round(pe-_.left),L=Math.round(ye-_.top)}if(R)b=Math.sqrt((2*_.width**2+_.height**2)/3),b%2===0&&(b+=1);else{const pe=Math.max(Math.abs((c?c.clientWidth:0)-z),z)*2+2,ye=Math.max(Math.abs((c?c.clientHeight:0)-L),L)*2+2;b=Math.sqrt(pe**2+ye**2)}y!=null&&y.touches?S.current===null&&(S.current=()=>{P({pulsate:x,rippleX:z,rippleY:L,rippleSize:b,cb:E})},w.start(D1,()=>{S.current&&(S.current(),S.current=null)})):P({pulsate:x,rippleX:z,rippleY:L,rippleSize:b,cb:E})},[o,P,w]),f=$.useCallback(()=>{p({},{pulsate:!0})},[p]),h=$.useCallback((y,C)=>{if(w.clear(),(y==null?void 0:y.type)==="touchend"&&S.current){S.current(),S.current=null,w.start(0,()=>{h(y,C)});return}S.current=null,a(E=>E.length>0?E.slice(1):E),d.current=C},[w]);return $.useImperativeHandle(n,()=>({pulsate:f,start:p,stop:h}),[f,p,h]),we.jsx(V1,{className:$e(Xe.root,i.root,l),ref:v,...s,children:we.jsx(_a,{component:null,exit:!0,children:u})})});function b1(e){return ao("MuiButtonBase",e)}const K1=co("MuiButtonBase",["root","disabled","focusVisible"]),Q1=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,l=bi({root:["root",t&&"disabled",n&&"focusVisible"]},b1,o);return n&&r&&(l.root+=` ${r}`),l},G1=ar("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${K1.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),yS=$.forwardRef(function(t,n){const r=yo({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:l,className:s,component:u="button",disabled:a=!1,disableRipple:g=!1,disableTouchRipple:d=!1,focusRipple:m=!1,focusVisibleClassName:w,LinkComponent:S="a",onBlur:v,onClick:P,onContextMenu:p,onDragLeave:f,onFocus:h,onFocusVisible:y,onKeyDown:C,onKeyUp:E,onMouseDown:x,onMouseLeave:R,onMouseUp:M,onTouchEnd:c,onTouchMove:_,onTouchStart:z,tabIndex:L=0,TouchRippleProps:b,touchRippleRef:pe,type:ye,...Ye}=r,O=$.useRef(null),A=L1(),I=ls(A.ref,pe),[V,ee]=$.useState(!1);a&&V&&ee(!1),$.useImperativeHandle(o,()=>({focusVisible:()=>{ee(!0),O.current.focus()}}),[]);const xn=A.shouldMount&&!g&&!a;$.useEffect(()=>{V&&m&&!g&&A.pulsate()},[g,m,V,A]);const xt=Pt(A,"start",x,d),dr=Pt(A,"stop",p,d),Et=Pt(A,"stop",f,d),En=Pt(A,"stop",M,d),am=Pt(A,"stop",F=>{V&&F.preventDefault(),R&&R(F)},d),cm=Pt(A,"start",z,d),fm=Pt(A,"stop",c,d),dm=Pt(A,"stop",_,d),pm=Pt(A,"stop",F=>{Ma(F.target)||ee(!1),v&&v(F)},!1),mm=bo(F=>{O.current||(O.current=F.currentTarget),Ma(F.target)&&(ee(!0),y&&y(F)),h&&h(F)}),$l=()=>{const F=O.current;return u&&u!=="button"&&!(F.tagName==="A"&&F.href)},hm=bo(F=>{m&&!F.repeat&&V&&F.key===" "&&A.stop(F,()=>{A.start(F)}),F.target===F.currentTarget&&$l()&&F.key===" "&&F.preventDefault(),C&&C(F),F.target===F.currentTarget&&$l()&&F.key==="Enter"&&!a&&(F.preventDefault(),P&&P(F))}),gm=bo(F=>{m&&F.key===" "&&V&&!F.defaultPrevented&&A.stop(F,()=>{A.pulsate(F)}),E&&E(F),P&&F.target===F.currentTarget&&$l()&&F.key===" "&&!F.defaultPrevented&&P(F)});let Co=u;Co==="button"&&(Ye.href||Ye.to)&&(Co=S);const pr={};Co==="button"?(pr.type=ye===void 0?"button":ye,pr.disabled=a):(!Ye.href&&!Ye.to&&(pr.role="button"),a&&(pr["aria-disabled"]=a));const ym=ls(n,O),Ra={...r,centerRipple:i,component:u,disabled:a,disableRipple:g,disableTouchRipple:d,focusRipple:m,tabIndex:L,focusVisible:V},vm=Q1(Ra);return we.jsxs(G1,{as:Co,className:$e(vm.root,s),ownerState:Ra,onBlur:pm,onClick:P,onContextMenu:dr,onFocus:mm,onKeyDown:hm,onKeyUp:gm,onMouseDown:xt,onMouseLeave:am,onMouseUp:En,onDragLeave:Et,onTouchEnd:fm,onTouchMove:dm,onTouchStart:cm,ref:ym,tabIndex:a?-1:L,type:ye,...pr,...Ye,children:[l,xn?we.jsx(H1,{ref:I,center:i,...b}):null]})});function Pt(e,t,n,r=!1){return bo(o=>(n&&n(o),r||e[t](o),!0))}function Y1(e){return typeof e.main=="string"}function X1(e,t=[]){if(!Y1(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Z1(e=[]){return([,t])=>t&&X1(t,e)}function J1(e){return ao("MuiTypography",e)}const vS=co("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),q1={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},eS=S0(),tS=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:l}=e,s={root:["root",i,e.align!=="inherit"&&`align${At(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return bi(s,J1,l)},nS=ar("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${At(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ld(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(Z1()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${At(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),df={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},SS=$.forwardRef(function(t,n){const{color:r,...o}=yo({props:t,name:"MuiTypography"}),i=!q1[r],l=eS({...o,...i&&{color:r}}),{align:s="inherit",className:u,component:a,gutterBottom:g=!1,noWrap:d=!1,paragraph:m=!1,variant:w="body1",variantMapping:S=df,...v}=l,P={...l,align:s,color:r,className:u,component:a,gutterBottom:g,noWrap:d,paragraph:m,variant:w,variantMapping:S},p=a||(m?"p":S[w]||df[w])||"span",f=tS(P);return we.jsx(nS,{as:p,ref:n,className:$e(f.root,u),...v,ownerState:P,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...v.style}})});function wS(e){return typeof e=="string"}const rS=$.createContext({});function oS(e){return ao("MuiList",e)}co("MuiList",["root","padding","dense","subheader"]);const iS=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return bi({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},oS,t)},lS=ar("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),kS=$.forwardRef(function(t,n){const r=yo({props:t,name:"MuiList"}),{children:o,className:i,component:l="ul",dense:s=!1,disablePadding:u=!1,subheader:a,...g}=r,d=$.useMemo(()=>({dense:s}),[s]),m={...r,component:l,dense:s,disablePadding:u},w=iS(m);return we.jsx(rS.Provider,{value:d,children:we.jsxs(lS,{as:l,className:$e(w.root,i),ref:n,ownerState:m,...g,children:[a,o]})})});var sS,pf=um;sS=pf.createRoot,pf.hydrateRoot;export{x0 as $,zu as A,yS as B,Mu as C,Z1 as D,Xm as E,id as F,h0 as G,dS as H,zt as I,Qi as J,Ma as K,rS as L,cS as M,aS as N,Aa as O,rh as P,nh as Q,Nn as R,eh as S,SS as T,vy as U,ss as V,fy as W,Nu as X,od as Y,hS as Z,E0 as _,co as a,ff as a0,e0 as a1,Gm as a2,i0 as a3,Gg as a4,Ou as a5,um as a6,bo as a7,pS as a8,hn as a9,th as aa,Ve as ab,y0 as ac,bm as b,mS as c,ls as d,$e as e,bi as f,ao as g,v0 as h,Py as i,we as j,fS as k,wS as l,ld as m,gS as n,sS as o,kS as p,mf as q,$ as r,ar as s,vS as t,yo as u,oy as v,Jn as w,py as x,Jh as y,At as z};
@@ -1 +1 @@
1
- import{c as J,j as s,g as B,a as F,r as l,u as N,L as x,b as st,d as _,s as R,e as I,f as G,B as ot,h as nt,m as tt,i as H,k as at,l as Q,n as q,T as w,t as X,o as rt,R as z,p as it}from"./client-CpqWRuez.js";import{D as Z}from"./Divider-B8tz1oz7.js";const ct=J(s.jsx("path",{d:"M11 9h2V6h3V4h-3V1h-2v3H8v2h3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2m10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2m-9.83-3.25.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4h-.01l-1.1 2-2.76 5H8.53l-.13-.27L6.16 6l-.95-2-.94-2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25"}),"AddShoppingCart"),lt=J(s.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-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),dt=J(s.jsx("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-9 8H3V9h9zm0-4H3V5h9z"}),"FeaturedPlayList");function pt(t){return B("MuiListItem",t)}F("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function ut(t){return B("MuiListItemButton",t)}const A=F("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),mt=(t,e)=>{const{ownerState:o}=t;return[e.root,o.dense&&e.dense,o.alignItems==="flex-start"&&e.alignItemsFlexStart,o.divider&&e.divider,!o.disableGutters&&e.gutters]},yt=t=>{const{alignItems:e,classes:o,dense:n,disabled:a,disableGutters:i,divider:r,selected:c}=t,g=G({root:["root",n&&"dense",!i&&"gutters",r&&"divider",a&&"disabled",e==="flex-start"&&"alignItemsFlexStart",c&&"selected"]},ut,o);return{...o,...g}},gt=R(ot,{shouldForwardProp:t=>nt(t)||t==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:mt})(tt(({theme:t})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${A.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:H(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${A.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:H(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${A.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:H(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:H(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${A.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.dense,style:{paddingTop:4,paddingBottom:4}}]}))),vt=l.forwardRef(function(e,o){const n=N({props:e,name:"MuiListItemButton"}),{alignItems:a="center",autoFocus:i=!1,component:r="div",children:c,dense:d=!1,disableGutters:g=!1,divider:S=!1,focusVisibleClassName:P,selected:T=!1,className:C,...u}=n,f=l.useContext(x),m=l.useMemo(()=>({dense:d||f.dense||!1,alignItems:a,disableGutters:g}),[a,f.dense,d,g]),p=l.useRef(null);st(()=>{i&&p.current&&p.current.focus()},[i]);const v={...n,alignItems:a,dense:m.dense,disableGutters:g,divider:S,selected:T},h=yt(v),b=_(p,o);return s.jsx(x.Provider,{value:m,children:s.jsx(gt,{ref:b,href:u.href||u.to,component:(u.href||u.to)&&r==="div"?"button":r,focusVisibleClassName:I(h.focusVisible,P),ownerState:v,className:I(h.root,C),...u,classes:h,children:c})})});function ht(t){return B("MuiListItemSecondaryAction",t)}F("MuiListItemSecondaryAction",["root","disableGutters"]);const xt=t=>{const{disableGutters:e,classes:o}=t;return G({root:["root",e&&"disableGutters"]},ht,o)},ft=R("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,o.disableGutters&&e.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:t})=>t.disableGutters,style:{right:0}}]}),et=l.forwardRef(function(e,o){const n=N({props:e,name:"MuiListItemSecondaryAction"}),{className:a,...i}=n,r=l.useContext(x),c={...n,disableGutters:r.disableGutters},d=xt(c);return s.jsx(ft,{className:I(d.root,a),ownerState:c,ref:o,...i})});et.muiName="ListItemSecondaryAction";const bt=(t,e)=>{const{ownerState:o}=t;return[e.root,o.dense&&e.dense,o.alignItems==="flex-start"&&e.alignItemsFlexStart,o.divider&&e.divider,!o.disableGutters&&e.gutters,!o.disablePadding&&e.padding,o.hasSecondaryAction&&e.secondaryAction]},It=t=>{const{alignItems:e,classes:o,dense:n,disableGutters:a,disablePadding:i,divider:r,hasSecondaryAction:c}=t;return G({root:["root",n&&"dense",!a&&"gutters",!i&&"padding",r&&"divider",e==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction"],container:["container"]},pt,o)},St=R("div",{name:"MuiListItem",slot:"Root",overridesResolver:bt})(tt(({theme:t})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${A.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),Ct=R("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,e)=>e.container})({position:"relative"}),Lt=l.forwardRef(function(e,o){const n=N({props:e,name:"MuiListItem"}),{alignItems:a="center",children:i,className:r,component:c,components:d={},componentsProps:g={},ContainerComponent:S="li",ContainerProps:{className:P,...T}={},dense:C=!1,disableGutters:u=!1,disablePadding:f=!1,divider:m=!1,secondaryAction:p,slotProps:v={},slots:h={},...b}=n,U=l.useContext(x),k=l.useMemo(()=>({dense:C||U.dense||!1,alignItems:a,disableGutters:u}),[a,U.dense,C,u]),E=l.useRef(null),y=l.Children.toArray(i),O=y.length&&at(y[y.length-1],["ListItemSecondaryAction"]),L={...n,alignItems:a,dense:k.dense,disableGutters:u,disablePadding:f,divider:m,hasSecondaryAction:O},Y=It(L),K=_(E,o),V=h.root||d.Root||St,M=v.root||g.root||{},$={className:I(Y.root,M.className,r),...b};let j=c||"li";return O?(j=!$.component&&!c?"div":j,S==="li"&&(j==="li"?j="div":$.component==="li"&&($.component="div")),s.jsx(x.Provider,{value:k,children:s.jsxs(Ct,{as:S,className:I(Y.container,P),ref:K,ownerState:L,...T,children:[s.jsx(V,{...M,...!Q(V)&&{as:j,ownerState:{...L,...M.ownerState}},...$,children:y}),y.pop()]})})):s.jsx(x.Provider,{value:k,children:s.jsxs(V,{...M,as:j,ref:K,...!Q(V)&&{ownerState:{...L,...M.ownerState}},...$,children:[y,p&&s.jsx(et,{children:p})]})})});function jt(t){return B("MuiListItemAvatar",t)}F("MuiListItemAvatar",["root","alignItemsFlexStart"]);const At=t=>{const{alignItems:e,classes:o}=t;return G({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},jt,o)},wt=R("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,o.alignItems==="flex-start"&&e.alignItemsFlexStart]}})({minWidth:56,flexShrink:0,variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}),Rt=l.forwardRef(function(e,o){const n=N({props:e,name:"MuiListItemAvatar"}),{className:a,...i}=n,r=l.useContext(x),c={...n,alignItems:r.alignItems},d=At(c);return s.jsx(wt,{className:I(d.root,a),ownerState:c,ref:o,...i})});function Pt(t){return B("MuiListItemText",t)}const D=F("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Tt=t=>{const{classes:e,inset:o,primary:n,secondary:a,dense:i}=t;return G({root:["root",o&&"inset",i&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},Pt,e)},kt=R("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[{[`& .${D.primary}`]:e.primary},{[`& .${D.secondary}`]:e.secondary},e.root,o.inset&&e.inset,o.primary&&o.secondary&&e.multiline,o.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${X.root}:where(& .${D.primary})`]:{display:"block"},[`.${X.root}:where(& .${D.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),Mt=l.forwardRef(function(e,o){const n=N({props:e,name:"MuiListItemText"}),{children:a,className:i,disableTypography:r=!1,inset:c=!1,primary:d,primaryTypographyProps:g,secondary:S,secondaryTypographyProps:P,slots:T={},slotProps:C={},...u}=n,{dense:f}=l.useContext(x);let m=d??a,p=S;const v={...n,disableTypography:r,inset:c,primary:!!m,secondary:!!p,dense:f},h=Tt(v),b={slots:T,slotProps:{primary:g,secondary:P,...C}},[U,k]=q("root",{className:I(h.root,i),elementType:kt,externalForwardedProps:{...b,...u},ownerState:v,ref:o}),[E,y]=q("primary",{className:h.primary,elementType:w,externalForwardedProps:b,ownerState:v}),[O,L]=q("secondary",{className:h.secondary,elementType:w,externalForwardedProps:b,ownerState:v});return m!=null&&m.type!==w&&!r&&(m=s.jsx(E,{variant:f?"body2":"body1",component:y!=null&&y.variant?void 0:"span",...y,children:m})),p!=null&&p.type!==w&&!r&&(p=s.jsx(O,{variant:"body2",color:"textSecondary",...L,children:p})),s.jsxs(U,{...k,children:[m,p]})});function W(t){return s.jsx(Lt,{alignItems:"flex-start",children:s.jsxs(vt,{href:t.href,children:[s.jsx(Rt,{children:t.icon}),s.jsx(Mt,{primary:t.title,secondary:s.jsxs(z.Fragment,{children:[s.jsx(w,{component:"span",variant:"body2",sx:{color:"text.primary",display:"inline"},children:t.summary}),t.description]})})]})})}function $t(){return s.jsxs(z.Fragment,{children:[s.jsx(w,{variant:"h4",children:"Agentica Playground"}),s.jsx("hr",{}),s.jsxs(it,{sx:{width:"100%",maxWidth:720,bgcolor:"background.paper"},children:[s.jsx(W,{href:"./uploader/",title:"Swagger Uploader",summary:"Test your backend server's AI chatbot",icon:s.jsx(dt,{}),description:s.jsx("p",{children:"Upload your Swagger document file to the playground website, and start conversation with your backend server. Validate your backend server's Swagger documentation quality before developing your AI chatbot application."})}),s.jsx(Z,{variant:"inset",component:"li"}),s.jsx(W,{href:"./shopping/",title:"Shopping AI Chatbot",summary:"AI chatbot by Swagger document",icon:s.jsx(ct,{}),description:s.jsxs(z.Fragment,{children:[s.jsx("p",{children:"Shopping AI chatbot which can search products, and take orders just by conversation texts."}),s.jsxs("p",{children:["This example project has been developed to prove a key concept of"," ",s.jsx("code",{children:"nestia/agent"})," ","that every backend servers providing Swagger documents can be conversed with the AI chatbot. You can search products, and take orders just by conversation texts."]}),s.jsx("p",{children:"If you've developed a backend server, then you can chat with the backend server just by delivering the Swagger document. If your documentation quality is enough, you can experience the new AI era. No more GUI development required. Just develop only backend server and chat with it."})]})}),s.jsx(Z,{variant:"inset",component:"li"}),s.jsx(W,{href:"./bbs/",title:"BBS AI Chatbot",summary:"AI chatbot by TypeScript Class",icon:s.jsx(lt,{}),description:s.jsxs(z.Fragment,{children:[s.jsx("p",{children:"BBS (Bullet-in Board System) AI chatbot posting articles just by conversation texts."}),s.jsxs("p",{children:["This example project has been developed to demonstrate"," ",s.jsx("code",{children:"typia.llm.application<App, Model>()"})," ","function which can generate LLM (Large Language Model) function calling application schema from a TypeScript class type."]}),s.jsx("p",{children:"If you've developed a TypeScript facade class, then you can chat with the class just by taking the class type. If you've done enough documentations on the class methods and DTO (Data Transfer Object) types, you can experience the new AI era. No more GUI development required. Just develop only TypeScript class containing the business logics and chat with it."})]})})]})]})}rt(window.document.getElementById("root")).render(s.jsx($t,{}));
1
+ import{c as J,j as s,g as B,a as F,r as l,u as N,L as x,b as st,d as _,s as R,e as I,f as G,B as ot,h as nt,m as tt,i as H,k as at,l as Q,n as q,T as w,t as X,o as rt,R as z,p as it}from"./client-B3aq8qpT.js";import{D as Z}from"./Divider-DX1xhf0M.js";const ct=J(s.jsx("path",{d:"M11 9h2V6h3V4h-3V1h-2v3H8v2h3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2m10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2m-9.83-3.25.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4h-.01l-1.1 2-2.76 5H8.53l-.13-.27L6.16 6l-.95-2-.94-2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25"}),"AddShoppingCart"),lt=J(s.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-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),dt=J(s.jsx("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-9 8H3V9h9zm0-4H3V5h9z"}),"FeaturedPlayList");function pt(t){return B("MuiListItem",t)}F("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function ut(t){return B("MuiListItemButton",t)}const A=F("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),mt=(t,e)=>{const{ownerState:o}=t;return[e.root,o.dense&&e.dense,o.alignItems==="flex-start"&&e.alignItemsFlexStart,o.divider&&e.divider,!o.disableGutters&&e.gutters]},yt=t=>{const{alignItems:e,classes:o,dense:n,disabled:a,disableGutters:i,divider:r,selected:c}=t,g=G({root:["root",n&&"dense",!i&&"gutters",r&&"divider",a&&"disabled",e==="flex-start"&&"alignItemsFlexStart",c&&"selected"]},ut,o);return{...o,...g}},gt=R(ot,{shouldForwardProp:t=>nt(t)||t==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:mt})(tt(({theme:t})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${A.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:H(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${A.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:H(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${A.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:H(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:H(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${A.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.dense,style:{paddingTop:4,paddingBottom:4}}]}))),vt=l.forwardRef(function(e,o){const n=N({props:e,name:"MuiListItemButton"}),{alignItems:a="center",autoFocus:i=!1,component:r="div",children:c,dense:d=!1,disableGutters:g=!1,divider:S=!1,focusVisibleClassName:P,selected:T=!1,className:C,...u}=n,f=l.useContext(x),m=l.useMemo(()=>({dense:d||f.dense||!1,alignItems:a,disableGutters:g}),[a,f.dense,d,g]),p=l.useRef(null);st(()=>{i&&p.current&&p.current.focus()},[i]);const v={...n,alignItems:a,dense:m.dense,disableGutters:g,divider:S,selected:T},h=yt(v),b=_(p,o);return s.jsx(x.Provider,{value:m,children:s.jsx(gt,{ref:b,href:u.href||u.to,component:(u.href||u.to)&&r==="div"?"button":r,focusVisibleClassName:I(h.focusVisible,P),ownerState:v,className:I(h.root,C),...u,classes:h,children:c})})});function ht(t){return B("MuiListItemSecondaryAction",t)}F("MuiListItemSecondaryAction",["root","disableGutters"]);const xt=t=>{const{disableGutters:e,classes:o}=t;return G({root:["root",e&&"disableGutters"]},ht,o)},ft=R("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,o.disableGutters&&e.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:t})=>t.disableGutters,style:{right:0}}]}),et=l.forwardRef(function(e,o){const n=N({props:e,name:"MuiListItemSecondaryAction"}),{className:a,...i}=n,r=l.useContext(x),c={...n,disableGutters:r.disableGutters},d=xt(c);return s.jsx(ft,{className:I(d.root,a),ownerState:c,ref:o,...i})});et.muiName="ListItemSecondaryAction";const bt=(t,e)=>{const{ownerState:o}=t;return[e.root,o.dense&&e.dense,o.alignItems==="flex-start"&&e.alignItemsFlexStart,o.divider&&e.divider,!o.disableGutters&&e.gutters,!o.disablePadding&&e.padding,o.hasSecondaryAction&&e.secondaryAction]},It=t=>{const{alignItems:e,classes:o,dense:n,disableGutters:a,disablePadding:i,divider:r,hasSecondaryAction:c}=t;return G({root:["root",n&&"dense",!a&&"gutters",!i&&"padding",r&&"divider",e==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction"],container:["container"]},pt,o)},St=R("div",{name:"MuiListItem",slot:"Root",overridesResolver:bt})(tt(({theme:t})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${A.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),Ct=R("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,e)=>e.container})({position:"relative"}),Lt=l.forwardRef(function(e,o){const n=N({props:e,name:"MuiListItem"}),{alignItems:a="center",children:i,className:r,component:c,components:d={},componentsProps:g={},ContainerComponent:S="li",ContainerProps:{className:P,...T}={},dense:C=!1,disableGutters:u=!1,disablePadding:f=!1,divider:m=!1,secondaryAction:p,slotProps:v={},slots:h={},...b}=n,U=l.useContext(x),k=l.useMemo(()=>({dense:C||U.dense||!1,alignItems:a,disableGutters:u}),[a,U.dense,C,u]),E=l.useRef(null),y=l.Children.toArray(i),O=y.length&&at(y[y.length-1],["ListItemSecondaryAction"]),L={...n,alignItems:a,dense:k.dense,disableGutters:u,disablePadding:f,divider:m,hasSecondaryAction:O},Y=It(L),K=_(E,o),V=h.root||d.Root||St,M=v.root||g.root||{},$={className:I(Y.root,M.className,r),...b};let j=c||"li";return O?(j=!$.component&&!c?"div":j,S==="li"&&(j==="li"?j="div":$.component==="li"&&($.component="div")),s.jsx(x.Provider,{value:k,children:s.jsxs(Ct,{as:S,className:I(Y.container,P),ref:K,ownerState:L,...T,children:[s.jsx(V,{...M,...!Q(V)&&{as:j,ownerState:{...L,...M.ownerState}},...$,children:y}),y.pop()]})})):s.jsx(x.Provider,{value:k,children:s.jsxs(V,{...M,as:j,ref:K,...!Q(V)&&{ownerState:{...L,...M.ownerState}},...$,children:[y,p&&s.jsx(et,{children:p})]})})});function jt(t){return B("MuiListItemAvatar",t)}F("MuiListItemAvatar",["root","alignItemsFlexStart"]);const At=t=>{const{alignItems:e,classes:o}=t;return G({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},jt,o)},wt=R("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,o.alignItems==="flex-start"&&e.alignItemsFlexStart]}})({minWidth:56,flexShrink:0,variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}),Rt=l.forwardRef(function(e,o){const n=N({props:e,name:"MuiListItemAvatar"}),{className:a,...i}=n,r=l.useContext(x),c={...n,alignItems:r.alignItems},d=At(c);return s.jsx(wt,{className:I(d.root,a),ownerState:c,ref:o,...i})});function Pt(t){return B("MuiListItemText",t)}const D=F("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Tt=t=>{const{classes:e,inset:o,primary:n,secondary:a,dense:i}=t;return G({root:["root",o&&"inset",i&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},Pt,e)},kt=R("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[{[`& .${D.primary}`]:e.primary},{[`& .${D.secondary}`]:e.secondary},e.root,o.inset&&e.inset,o.primary&&o.secondary&&e.multiline,o.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${X.root}:where(& .${D.primary})`]:{display:"block"},[`.${X.root}:where(& .${D.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),Mt=l.forwardRef(function(e,o){const n=N({props:e,name:"MuiListItemText"}),{children:a,className:i,disableTypography:r=!1,inset:c=!1,primary:d,primaryTypographyProps:g,secondary:S,secondaryTypographyProps:P,slots:T={},slotProps:C={},...u}=n,{dense:f}=l.useContext(x);let m=d??a,p=S;const v={...n,disableTypography:r,inset:c,primary:!!m,secondary:!!p,dense:f},h=Tt(v),b={slots:T,slotProps:{primary:g,secondary:P,...C}},[U,k]=q("root",{className:I(h.root,i),elementType:kt,externalForwardedProps:{...b,...u},ownerState:v,ref:o}),[E,y]=q("primary",{className:h.primary,elementType:w,externalForwardedProps:b,ownerState:v}),[O,L]=q("secondary",{className:h.secondary,elementType:w,externalForwardedProps:b,ownerState:v});return m!=null&&m.type!==w&&!r&&(m=s.jsx(E,{variant:f?"body2":"body1",component:y!=null&&y.variant?void 0:"span",...y,children:m})),p!=null&&p.type!==w&&!r&&(p=s.jsx(O,{variant:"body2",color:"textSecondary",...L,children:p})),s.jsxs(U,{...k,children:[m,p]})});function W(t){return s.jsx(Lt,{alignItems:"flex-start",children:s.jsxs(vt,{href:t.href,children:[s.jsx(Rt,{children:t.icon}),s.jsx(Mt,{primary:t.title,secondary:s.jsxs(z.Fragment,{children:[s.jsx(w,{component:"span",variant:"body2",sx:{color:"text.primary",display:"inline"},children:t.summary}),t.description]})})]})})}function $t(){return s.jsxs(z.Fragment,{children:[s.jsx(w,{variant:"h4",children:"Agentica Playground"}),s.jsx("hr",{}),s.jsxs(it,{sx:{width:"100%",maxWidth:720,bgcolor:"background.paper"},children:[s.jsx(W,{href:"./uploader/",title:"Swagger Uploader",summary:"Test your backend server's AI chatbot",icon:s.jsx(dt,{}),description:s.jsx("p",{children:"Upload your Swagger document file to the playground website, and start conversation with your backend server. Validate your backend server's Swagger documentation quality before developing your AI chatbot application."})}),s.jsx(Z,{variant:"inset",component:"li"}),s.jsx(W,{href:"./shopping/",title:"Shopping AI Chatbot",summary:"AI chatbot by Swagger document",icon:s.jsx(ct,{}),description:s.jsxs(z.Fragment,{children:[s.jsx("p",{children:"Shopping AI chatbot which can search products, and take orders just by conversation texts."}),s.jsxs("p",{children:["This example project has been developed to prove a key concept of"," ",s.jsx("code",{children:"nestia/agent"})," ","that every backend servers providing Swagger documents can be conversed with the AI chatbot. You can search products, and take orders just by conversation texts."]}),s.jsx("p",{children:"If you've developed a backend server, then you can chat with the backend server just by delivering the Swagger document. If your documentation quality is enough, you can experience the new AI era. No more GUI development required. Just develop only backend server and chat with it."})]})}),s.jsx(Z,{variant:"inset",component:"li"}),s.jsx(W,{href:"./bbs/",title:"BBS AI Chatbot",summary:"AI chatbot by TypeScript Class",icon:s.jsx(lt,{}),description:s.jsxs(z.Fragment,{children:[s.jsx("p",{children:"BBS (Bullet-in Board System) AI chatbot posting articles just by conversation texts."}),s.jsxs("p",{children:["This example project has been developed to demonstrate"," ",s.jsx("code",{children:"typia.llm.application<App, Model>()"})," ","function which can generate LLM (Large Language Model) function calling application schema from a TypeScript class type."]}),s.jsx("p",{children:"If you've developed a TypeScript facade class, then you can chat with the class just by taking the class type. If you've done enough documentations on the class methods and DTO (Data Transfer Object) types, you can experience the new AI era. No more GUI development required. Just develop only TypeScript class containing the business logics and chat with it."})]})})]})]})}rt(window.document.getElementById("root")).render(s.jsx($t,{}));