@agentica/chat 0.44.0 → 0.44.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.
- package/dist/assets/{VendorConfigurationMovie-EWdPNego.js → VendorConfigurationMovie-D2x7zQVs.js} +4 -4
- package/dist/assets/bbs/{index-C41Fyr_2.js → index-BqboZFZm.js} +1 -1
- package/dist/assets/shopping/{index.html-Cc68Vgxi.js → index.html-CGw3gR1k.js} +1 -1
- package/dist/assets/uploader/{index.html-Ck-EBUdZ.js → index.html-BdKXQiCC.js} +1 -1
- package/dist/bbs/index.html +2 -2
- package/dist/shopping/index.html +2 -2
- package/dist/uploader/index.html +2 -2
- package/package.json +6 -6
package/dist/assets/{VendorConfigurationMovie-EWdPNego.js → VendorConfigurationMovie-D2x7zQVs.js}
RENAMED
|
@@ -416,7 +416,7 @@ You have been provided with \`IValidation.IError[][]\` containing **previous his
|
|
|
416
416
|
${JSON.stringify(f.failure.data)}
|
|
417
417
|
\`\`\`
|
|
418
418
|
`},systemPrompt:((q=($=(O=o.config)==null?void 0:O.systemPrompt)==null?void 0:$.jsonParseError)==null?void 0:q.call($,f))??E6.JSON_PARSE_ERROR.replace("${{FAILURE}}",JSON.stringify(f.failure)),life:S,previousValidationErrors:y})}function lBn(o,s,f){const y=o.function.parse(s.function.arguments);return y.success===!1?ERn({call_id:s.id,operation:o,failure:y,life:f}):xRn({id:s.id,operation:o,arguments:y.data})}async function QFt(o,s){var O,$,q,nt,z,G;if(s.life<=0)return s.giveUp();const f=await o.request("call",{messages:[...o.histories.map(GF).flat(),{role:"user",content:o.prompt.contents.map(YF)},{role:"system",content:((q=($=(O=o.config)==null?void 0:O.systemPrompt)==null?void 0:$.execute)==null?void 0:q.call($,o.histories))??E6.EXECUTE},{role:"assistant",tool_calls:[{type:"function",id:s.toolCall.id,function:{name:s.operation.name,arguments:s.toolCall.arguments}}]},{role:"tool",content:s.toolCall.result,tool_call_id:s.toolCall.id},{role:"system",content:s.systemPrompt},{role:"system",content:VF.write(o.config)}],tools:[{type:"function",function:{name:s.operation.name,description:s.operation.function.description,parameters:s.operation.function.parameters}}],tool_choice:"required"}),S=(G=(z=(nt=(await(async()=>f.type==="none-stream"?f.value:tL.merge(await UQ.readAll(f.value)))()).choices)==null?void 0:nt[0])==null?void 0:z.message.tool_calls)==null?void 0:G.filter(W=>W.type==="function").find(W=>W.function.name===s.operation.name);return S===void 0?QFt(o,{...s,life:s.life-1}):lNe(o,s.operation,S,s.previousValidationErrors,s.life)}async function hBn(o,s){try{const f=await(async()=>{switch(s.protocol){case"class":return fBn(o,s);case"http":return dBn(o,s);case"mcp":return pBn(o,s);default:throw new Error("Unknown protocol")}})();return ymt({call_id:o.id,operation:o.operation,arguments:o.arguments,value:f,success:!0})}catch(f){return ymt({call_id:o.id,operation:o.operation,arguments:o.arguments,value:f instanceof Error?{...f,name:f.name,message:f.message,stack:f.stack}:f,success:!1})}}async function fBn(o,s){const f=s.controller.execute;return typeof f=="function"?await f({application:s.controller.application,function:s.function,arguments:o.arguments}):await f[s.function.name](o.arguments)}async function dBn(o,s){const f=s.controller.execute;return typeof f=="function"?await f({connection:s.controller.connection,application:s.controller.application,function:s.function,arguments:o.arguments}):await ZBt.propagate({connection:s.controller.connection,application:s.controller.application,function:s.function,input:o.arguments})}async function pBn(o,s){return s.controller.client.callTool({name:s.function.name,arguments:o.arguments}).then(f=>f.content)}const JFt=o=>{const s=f=>{if(o.length===0)return!0;const y=o[o.length-1].path;return f.length>y.length||y.substring(0,f.length)!==f};return(f,y)=>(f&&s(y.path)&&(y.value===void 0&&(y.description??(y.description=["The value at this path is `undefined`.","",`Please fill the \`${y.expected}\` typed value next time.`].join(`
|
|
419
|
-
`))),o.push(y)),!1)},ZFt=(o,s)=>({...o,config:{...jF.getConfig(),validate:
|
|
419
|
+
`))),o.push(y)),!1)},ZFt=(o,s)=>({...o,config:{...jF.getConfig(),validate:null},functions:o.functions.map(f=>({...f,parse:y=>fk.parse(y,f.parameters),coerce:y=>fk.coerce(y,f.parameters),validate:f.validate}))}),ZX=ZFt({functions:[{name:"cancelFunctions",parameters:{description:"Current Type: {@link __IChatFunctionReference.IProps}",type:"object",properties:{functions:{description:"List of target functions.",type:"array",items:{$ref:"#/$defs/___IChatFunctionReference"}}},required:["functions"],additionalProperties:!1,$defs:{___IChatFunctionReference:{type:"object",properties:{reason:{description:`The reason of the function selection.
|
|
420
420
|
|
|
421
421
|
Just write the reason why you've determined to select this function.`,type:"string"},name:{description:"Name of the target function to call.",type:"string"}},required:["reason","name"]}}},description:`Cancel a function from the candidate list to call.
|
|
422
422
|
|
|
@@ -431,7 +431,7 @@ agent selects multiple candidate functions because the A.I. agent can't specify
|
|
|
431
431
|
only one thing due to lack of specificity or homogeneity of candidate functions.
|
|
432
432
|
|
|
433
433
|
Additionally, if you A.I. agent wants to cancel same function multiply, you can
|
|
434
|
-
do it by assigning the same function name multiply in the \`functions\` property.`,validate:(()=>{const o=q=>Array.isArray(q.functions)&&q.functions.every(nt=>typeof nt=="object"&&nt!==null&&s(nt)),s=q=>typeof q.reason=="string"&&typeof q.name=="string",f=(q,nt,z=!0)=>[(Array.isArray(q.functions)||$(z,{path:nt+".functions",expected:"Array<___IChatFunctionReference>",value:q.functions}))&&q.functions.map((G,W)=>(typeof G=="object"&&G!==null||$(z,{path:nt+".functions["+W+"]",expected:"___IChatFunctionReference",value:G}))&&y(G,nt+".functions["+W+"]",z)||$(z,{path:nt+".functions["+W+"]",expected:"___IChatFunctionReference",value:G})).every(G=>G)||$(z,{path:nt+".functions",expected:"Array<___IChatFunctionReference>",value:q.functions})].every(G=>G),y=(q,nt,z=!0)=>[typeof q.reason=="string"||$(z,{path:nt+".reason",expected:"string",value:q.reason}),typeof q.name=="string"||$(z,{path:nt+".name",expected:"string",value:q.name})].every(G=>G),S=q=>typeof q=="object"&&q!==null&&o(q);let O,$;return q=>{if(S(q)===!1){O=[],$=JFt(O),((z,G,W=!0)=>(typeof z=="object"&&z!==null||$(!0,{path:G+"",expected:"__IChatFunctionReference.IProps",value:z}))&&f(z,G+"",!0)||$(!0,{path:G+"",expected:"__IChatFunctionReference.IProps",value:z}))(q,"$input",!0);const nt=O.length===0;return nt?{success:nt,data:q}:{success:nt,errors:O,data:q}}return{success:!0,data:q}}})()}]}
|
|
434
|
+
do it by assigning the same function name multiply in the \`functions\` property.`,validate:(()=>{const o=q=>Array.isArray(q.functions)&&q.functions.every(nt=>typeof nt=="object"&&nt!==null&&s(nt)),s=q=>typeof q.reason=="string"&&typeof q.name=="string",f=(q,nt,z=!0)=>[(Array.isArray(q.functions)||$(z,{path:nt+".functions",expected:"Array<___IChatFunctionReference>",value:q.functions}))&&q.functions.map((G,W)=>(typeof G=="object"&&G!==null||$(z,{path:nt+".functions["+W+"]",expected:"___IChatFunctionReference",value:G}))&&y(G,nt+".functions["+W+"]",z)||$(z,{path:nt+".functions["+W+"]",expected:"___IChatFunctionReference",value:G})).every(G=>G)||$(z,{path:nt+".functions",expected:"Array<___IChatFunctionReference>",value:q.functions})].every(G=>G),y=(q,nt,z=!0)=>[typeof q.reason=="string"||$(z,{path:nt+".reason",expected:"string",value:q.reason}),typeof q.name=="string"||$(z,{path:nt+".name",expected:"string",value:q.name})].every(G=>G),S=q=>typeof q=="object"&&q!==null&&o(q);let O,$;return q=>{if(S(q)===!1){O=[],$=JFt(O),((z,G,W=!0)=>(typeof z=="object"&&z!==null||$(!0,{path:G+"",expected:"__IChatFunctionReference.IProps",value:z}))&&f(z,G+"",!0)||$(!0,{path:G+"",expected:"__IChatFunctionReference.IProps",value:z}))(q,"$input",!0);const nt=O.length===0;return nt?{success:nt,data:q}:{success:nt,errors:O,data:q}}return{success:!0,data:q}}})()}]}).functions[0];async function gBn(o){var y;if(o.operations.divided===void 0)return Hbt(o,o.operations.array,0);const s=o.operations.divided.map(()=>[]),f=[];if(await Promise.all(o.operations.divided.map(async(S,O)=>Hbt({...o,stack:s[O],dispatch:async $=>{f.push($)}},S,0))),(((y=o.config)==null?void 0:y.eliticism)??dk.ELITICISM)===!0&&s.some(S=>S.length!==0))return Hbt(o,s.flat().map(S=>o.operations.group.get(S.operation.controller.name).get(S.operation.function.name)),0);{const S=f.filter(O=>O.type==="cancel");(S.length!==0?S:f).forEach(O=>{o.dispatch(O).catch(()=>{})})}}async function Hbt(o,s,f,y){var $,q,nt,z;const S=await o.request("cancel",{messages:[{role:"assistant",tool_calls:[{type:"function",id:"getApiFunctions",function:{name:"getApiFunctions",arguments:JSON.stringify({})}}]},{role:"tool",tool_call_id:"getApiFunctions",content:JSON.stringify(s.map(G=>({name:G.name,description:G.function.description,...G.protocol==="http"?{method:G.function.method,path:G.function.path,tags:G.function.tags}:{}})))},...o.histories.map(GF).flat(),{role:"user",content:o.prompt.contents.map(YF)},{role:"system",content:((nt=(q=($=o.config)==null?void 0:$.systemPrompt)==null?void 0:q.cancel)==null?void 0:nt.call(q,o.histories))??E6.CANCEL},...bBn(y??[]),{role:"system",content:VF.write(o.config)}],tools:[{type:"function",function:{name:ZX.name,description:ZX.description,parameters:ZX.parameters}}],tool_choice:f===0?"auto":"required"}),O=await(async()=>S.type==="none-stream"?S.value:tL.merge(await UQ.readAll(S.value)))();if(f++<(((z=o.config)==null?void 0:z.retry)??dk.RETRY)){const G=[];for(const W of O.choices??[])for(const et of W.message.tool_calls??[]){if(et.type!=="function"||et.function.name!=="cancelFunctions")continue;const st=ZX.parse(et.function.arguments),_t=ZX.validate(st);_t.success===!1&&G.push({id:et.id,name:et.function.name,validation:_t})}if(G.length>0)return Hbt(o,s,f,G)}for(const G of O.choices??[])if(G.message.tool_calls!=null)for(const W of G.message.tool_calls){if(W.type!=="function")continue;if(W.function.name!=="cancelFunctions")continue;const et=(()=>{const st=Mt=>Array.isArray(Mt.functions)&&Mt.functions.every(re=>typeof re=="object"&&re!==null&&_t(re)),_t=Mt=>typeof Mt.reason=="string"&&typeof Mt.name=="string",gt=Mt=>typeof Mt=="object"&&Mt!==null&&st(Mt);return Mt=>(Mt=JSON.parse(Mt),gt(Mt)?Mt:null)})()(W.function.arguments);if(et!==null)for(const st of et.functions)uNe(o,st)}}function bBn(o){return o.map(s=>[{role:"assistant",tool_calls:[{type:"function",id:s.id,function:{name:s.name,arguments:JSON.stringify(s.validation.data)}}]},{role:"tool",content:JSON.stringify(s.validation.errors),tool_call_id:s.id},{role:"system",content:["You A.I. assistant has composed wrong typed arguments.","","Correct it at the next function calling."].join(`
|
|
435
435
|
`)}]).flat()}async function mBn(o,s){var y,S,O,$,q;if(s.length===0)return;const f=await o.request("describe",{messages:[...s.map(GF).flat(),{role:"system",content:((O=(S=(y=o.config)==null?void 0:y.systemPrompt)==null?void 0:S.describe)==null?void 0:O.call(S,s))??E6.DESCRIBE},{role:"system",content:VF.write(o.config)}]});if(f.type==="none-stream"){const nt=((q=($=f.value.choices)==null?void 0:$[0])==null?void 0:q.message.content)??"",z=HCe({executes:s,stream:tJ(nt),done:()=>!0,get:()=>nt,join:async()=>nt});o.dispatch(z).catch(()=>{});return}await Vmt(f.value,nt=>{const z=HCe({executes:s,...nt});o.dispatch(z).catch(()=>{})},o.abortSignal)}const Cbt=ZFt({functions:[{name:"getApiFunctions",parameters:{description:"Current Type: {@link object}",type:"object",properties:{},required:[],additionalProperties:!1,$defs:{}},description:`Get list of API functions.
|
|
436
436
|
|
|
437
437
|
If user seems like to request some function calling except this one,
|
|
@@ -439,7 +439,7 @@ call this \`getApiFunctions()\` to get the list of candidate API functions
|
|
|
439
439
|
provided from this application.
|
|
440
440
|
|
|
441
441
|
Also, user just wants to list up every remote API functions that can be
|
|
442
|
-
called from the backend server, utilize this function too.`,validate:(()=>{const o=O=>!0,s=(O,$,q=!0)=>!0,f=O=>typeof O=="object"&&O!==null&&Array.isArray(O)===!1&&o();let y,S;return O=>{if(f(O)===!1){y=[],S=JFt(y),((q,nt,z=!0)=>(typeof q=="object"&&q!==null&&Array.isArray(q)===!1||S(!0,{path:nt+"",expected:"object",value:q}))&&s(q,nt+"",!0)||S(!0,{path:nt+"",expected:"object",value:q}))(O,"$input",!0);const $=y.length===0;return $?{success:$,data:O}:{success:$,errors:y,data:O}}return{success:!0,data:O}}})()}]}
|
|
442
|
+
called from the backend server, utilize this function too.`,validate:(()=>{const o=O=>!0,s=(O,$,q=!0)=>!0,f=O=>typeof O=="object"&&O!==null&&Array.isArray(O)===!1&&o();let y,S;return O=>{if(f(O)===!1){y=[],S=JFt(y),((q,nt,z=!0)=>(typeof q=="object"&&q!==null&&Array.isArray(q)===!1||S(!0,{path:nt+"",expected:"object",value:q}))&&s(q,nt+"",!0)||S(!0,{path:nt+"",expected:"object",value:q}))(O,"$input",!0);const $=y.length===0;return $?{success:$,data:O}:{success:$,errors:y,data:O}}return{success:!0,data:O}}})()}]}).functions[0];async function yBn(o){var y,S,O,$,q,nt;const s=await o.request("initialize",{messages:[...o.histories.map(GF).flat(),{role:"user",content:o.prompt.contents.map(YF)},{role:"system",content:((O=(S=(y=o.config)==null?void 0:y.systemPrompt)==null?void 0:S.initialize)==null?void 0:O.call(S,o.histories))??E6.INITIALIZE},{role:"system",content:VF.write(o.config)}],tools:[{type:"function",function:{name:Cbt.name,description:Cbt.description,parameters:Cbt.parameters}}],tool_choice:"auto"});if(s.type==="none-stream"){const z=((q=($=s.value.choices)==null?void 0:$[0])==null?void 0:q.message.content)??"",G=FF({stream:tJ(z),done:()=>!0,get:()=>z,join:async()=>z});o.dispatch(G).catch(()=>{});return}const f=await Vmt(s.value,z=>{const G=FF(z);o.dispatch(G).catch(()=>{})},o.abortSignal);if(f===null)throw new Error("No completion received");(nt=f.choices)!=null&&nt.some(z=>z.message.tool_calls!=null&&z.message.tool_calls.some(G=>G.type==="function"&&G.function.name===Cbt.name))&&await o.initialize()}function wBn(o,s){const f=o.operations.flat.get(s.name);if(f===void 0)return;const y=Xmt({operation:f,reason:s.reason});o.stack.push(y);const S=vRn({selection:y});o.dispatch(S).catch(()=>{})}const tQ=ZFt({functions:[{name:"selectFunctions",parameters:{description:"Current Type: {@link __IChatFunctionReference.IProps}",type:"object",properties:{functions:{description:"List of target functions.",type:"array",items:{$ref:"#/$defs/___IChatFunctionReference"}}},required:["functions"],additionalProperties:!1,$defs:{___IChatFunctionReference:{type:"object",properties:{reason:{description:`The reason of the function selection.
|
|
443
443
|
|
|
444
444
|
Just write the reason why you've determined to select this function.`,type:"string"},name:{description:"Name of the target function to call.",type:"string"}},required:["reason","name"]}}},description:`Select proper API functions to call.
|
|
445
445
|
|
|
@@ -455,7 +455,7 @@ them all into the \`functions\` property.
|
|
|
455
455
|
Also, if you A.I. agent can't specify a specific function to call due to lack
|
|
456
456
|
of specificity or homogeneity of candidate functions, just assign all of them
|
|
457
457
|
by in the\` functions\` property\` too. Instead, when you A.I. agent can specify
|
|
458
|
-
a specific function to call, the others would be eliminated.`,validate:(()=>{const o=q=>Array.isArray(q.functions)&&q.functions.every(nt=>typeof nt=="object"&&nt!==null&&s(nt)),s=q=>typeof q.reason=="string"&&typeof q.name=="string",f=(q,nt,z=!0)=>[(Array.isArray(q.functions)||$(z,{path:nt+".functions",expected:"Array<___IChatFunctionReference>",value:q.functions}))&&q.functions.map((G,W)=>(typeof G=="object"&&G!==null||$(z,{path:nt+".functions["+W+"]",expected:"___IChatFunctionReference",value:G}))&&y(G,nt+".functions["+W+"]",z)||$(z,{path:nt+".functions["+W+"]",expected:"___IChatFunctionReference",value:G})).every(G=>G)||$(z,{path:nt+".functions",expected:"Array<___IChatFunctionReference>",value:q.functions})].every(G=>G),y=(q,nt,z=!0)=>[typeof q.reason=="string"||$(z,{path:nt+".reason",expected:"string",value:q.reason}),typeof q.name=="string"||$(z,{path:nt+".name",expected:"string",value:q.name})].every(G=>G),S=q=>typeof q=="object"&&q!==null&&o(q);let O,$;return q=>{if(S(q)===!1){O=[],$=JFt(O),((z,G,W=!0)=>(typeof z=="object"&&z!==null||$(!0,{path:G+"",expected:"__IChatFunctionReference.IProps",value:z}))&&f(z,G+"",!0)||$(!0,{path:G+"",expected:"__IChatFunctionReference.IProps",value:z}))(q,"$input",!0);const nt=O.length===0;return nt?{success:nt,data:q}:{success:nt,errors:O,data:q}}return{success:!0,data:q}}})()}]}
|
|
458
|
+
a specific function to call, the others would be eliminated.`,validate:(()=>{const o=q=>Array.isArray(q.functions)&&q.functions.every(nt=>typeof nt=="object"&&nt!==null&&s(nt)),s=q=>typeof q.reason=="string"&&typeof q.name=="string",f=(q,nt,z=!0)=>[(Array.isArray(q.functions)||$(z,{path:nt+".functions",expected:"Array<___IChatFunctionReference>",value:q.functions}))&&q.functions.map((G,W)=>(typeof G=="object"&&G!==null||$(z,{path:nt+".functions["+W+"]",expected:"___IChatFunctionReference",value:G}))&&y(G,nt+".functions["+W+"]",z)||$(z,{path:nt+".functions["+W+"]",expected:"___IChatFunctionReference",value:G})).every(G=>G)||$(z,{path:nt+".functions",expected:"Array<___IChatFunctionReference>",value:q.functions})].every(G=>G),y=(q,nt,z=!0)=>[typeof q.reason=="string"||$(z,{path:nt+".reason",expected:"string",value:q.reason}),typeof q.name=="string"||$(z,{path:nt+".name",expected:"string",value:q.name})].every(G=>G),S=q=>typeof q=="object"&&q!==null&&o(q);let O,$;return q=>{if(S(q)===!1){O=[],$=JFt(O),((z,G,W=!0)=>(typeof z=="object"&&z!==null||$(!0,{path:G+"",expected:"__IChatFunctionReference.IProps",value:z}))&&f(z,G+"",!0)||$(!0,{path:G+"",expected:"__IChatFunctionReference.IProps",value:z}))(q,"$input",!0);const nt=O.length===0;return nt?{success:nt,data:q}:{success:nt,errors:O,data:q}}return{success:!0,data:q}}})()}]}).functions[0];async function vBn(o){var y;if(o.operations.divided===void 0)return zbt(o,o.operations.array,0);const s=o.operations.divided.map(()=>[]),f=[];if(await Promise.all(o.operations.divided.map(async(S,O)=>zbt({...o,stack:s[O],dispatch:async $=>{f.push($)}},S,0))),(((y=o.config)==null?void 0:y.eliticism)??dk.ELITICISM)===!0&&s.some(S=>S.length!==0))return zbt(o,s.flat().map(S=>o.operations.group.get(S.operation.controller.name).get(S.operation.function.name)),0);{const S=f.filter(O=>O.type==="select");(S.length!==0?S:f).forEach(O=>{o.dispatch(O).catch(()=>{})})}}async function zbt(o,s,f,y){var q;const S=rNe(1),$=await(async nt=>S(nt).catch(z=>{if(z instanceof IF)return Symbol("emptyAssistantMessage");throw z}))(async nt=>{var et,st,_t,gt,Mt,re,ue,ae,Le,Jn,Pe;const z=await o.request("select",{messages:[{role:"assistant",tool_calls:[{type:"function",id:"getApiFunctions",function:{name:"getApiFunctions",arguments:JSON.stringify({})}}]},{role:"tool",tool_call_id:"getApiFunctions",content:JSON.stringify(s.map(gn=>({name:gn.name,description:gn.function.description,...gn.protocol==="http"?{method:gn.function.method,path:gn.function.path,tags:gn.function.tags}:{}})))},...o.histories.map(GF).flat(),{role:"user",content:o.prompt.contents.map(YF)},...nt instanceof CQ?[{role:"assistant",content:nt.reasoning}]:[],{role:"system",content:((_t=(st=(et=o.config)==null?void 0:et.systemPrompt)==null?void 0:st.select)==null?void 0:_t.call(st,o.histories))??E6.SELECT},..._Bn(y??[]),{role:"system",content:VF.write(o.config)}],tools:[{type:"function",function:{name:tQ.name,description:tQ.description,parameters:tQ.parameters}}],tool_choice:f===0?"auto":"required"});if(z.type==="none-stream"){const gn=z.value;if(!!((gt=gn.choices)!=null&>.every(Gn=>Gn.message.tool_calls==null&&Gn.message.content===""))){const Gn=(Mt=gn.choices)==null?void 0:Mt[0];throw((re=Gn==null?void 0:Gn.message)==null?void 0:re.reasoning)!=null?new CQ(((ue=Gn==null?void 0:Gn.message)==null?void 0:ue.reasoning)??""):new IF}return gn}const G=await Vmt(z.value,gn=>{const er=FF(gn);o.dispatch(er).catch(()=>{})},o.abortSignal);if(!!((ae=G.choices)!=null&&ae.every(gn=>gn.message.tool_calls==null&&gn.message.content===""))){const gn=(Le=G.choices)==null?void 0:Le[0];throw((Jn=gn==null?void 0:gn.message)==null?void 0:Jn.reasoning)!=null?new CQ(((Pe=gn==null?void 0:gn.message)==null?void 0:Pe.reasoning)??""):new IF}return G});if(typeof $=="symbol"){const nt=FF({stream:tJ(""),done:()=>!0,get:()=>"",join:async()=>""});o.dispatch(nt).catch(()=>{});return}if(f++<(((q=o.config)==null?void 0:q.retry)??dk.RETRY)){const nt=[];for(const z of $.choices??[])for(const G of z.message.tool_calls??[]){if(G.type!=="function"||G.function.name!=="selectFunctions")continue;const W=tQ.parse(G.function.arguments),et=tQ.validate(W);et.success===!1&&nt.push({id:G.id,name:G.function.name,validation:et})}if(nt.length>0)return zbt(o,s,f,nt)}for(const nt of $.choices??[])if(nt.message.tool_calls!=null)for(const z of nt.message.tool_calls){if(z.type!=="function")continue;if(z.function.name!=="selectFunctions")continue;const G=(()=>{const W=_t=>Array.isArray(_t.functions)&&_t.functions.every(gt=>typeof gt=="object"&>!==null&&et(gt)),et=_t=>typeof _t.reason=="string"&&typeof _t.name=="string",st=_t=>typeof _t=="object"&&_t!==null&&W(_t);return _t=>(_t=JSON.parse(_t),st(_t)?_t:null)})()(z.function.arguments);if(G!==null)for(const W of G.functions)wBn(o,W)}}function _Bn(o){return o.map(s=>[{role:"assistant",tool_calls:[{type:"function",id:s.id,function:{name:s.name,arguments:JSON.stringify(s.validation.data)}}]},{role:"tool",content:JSON.stringify(s.validation.errors),tool_call_id:s.id},{role:"system",content:["You A.I. assistant has composed wrong typed arguments.","","Correct it at the next function calling."].join(`
|
|
459
459
|
`)}]).flat()}function xBn(o){return async s=>{if(s.ready()===!1){if((o==null?void 0:o.initialize)!==!0&&typeof(o==null?void 0:o.initialize)!="function")await s.initialize();else if(await(typeof(o==null?void 0:o.initialize)=="function"?o.initialize:yBn)(s),s.ready()===!1)return}if(s.stack.length!==0&&await((o==null?void 0:o.cancel)??gBn)(s),await((o==null?void 0:o.select)??vBn)(s),s.stack.length!==0)for(;;){const f=await((o==null?void 0:o.call)??oBn)(s,s.stack.map(y=>y.operation));if((o==null?void 0:o.describe)!==null&&(o==null?void 0:o.describe)!==!1&&await(typeof(o==null?void 0:o.describe)=="function"?o.describe:mBn)(s,f),f.length===0||s.stack.length===0)break}}}function EBn(o){return o.history.type==="userMessage"?CBn({history:o.history}):o.history.type==="assistantMessage"?TBn({history:o.history}):o.history.type==="systemMessage"?kBn({history:o.history}):o.history.type==="select"?SBn({operations:o.operations,history:o.history}):o.history.type==="cancel"?ABn({operations:o.operations,history:o.history}):o.history.type==="execute"?hNe({operations:o.operations,history:o.history}):IBn({operations:o.operations,history:o.history})}function TBn(o){return gRn(o.history)}function kBn(o){return bRn(o.history)}function CBn(o){return JIe(o.history)}function SBn(o){return ZIe({id:o.history.id,created_at:o.history.created_at,selection:Xmt({operation:t$t({operations:o.operations,input:o.history.selection.operation}),reason:o.history.selection.reason})})}function ABn(o){return yRn({id:o.history.id,created_at:o.history.created_at,selection:Xmt({operation:t$t({operations:o.operations,input:o.history.selection.operation}),reason:o.history.selection.reason})})}function hNe(o){return tNe({id:o.history.id,created_at:o.history.created_at,operation:t$t({operations:o.operations,input:o.history.operation}),arguments:o.history.arguments,value:o.history.value,success:o.history.success})}function IBn(o){return mRn({id:o.history.id,created_at:o.history.created_at,text:o.history.text,executes:o.history.executes.map(s=>hNe({operations:o.operations,history:s}))})}function t$t(o){var f;const s=(f=o.operations.get(o.input.controller))==null?void 0:f.get(o.input.function);if(s===void 0)throw new Error(`No operation found: (controller: ${o.input.controller}, function: ${o.input.function})`);return s}function NBn(o){return async(s,f)=>{var st,_t,gt;const y=((st=o.config)==null?void 0:st.stream)===!0||((_t=o.config)==null?void 0:_t.stream)===void 0?{stream:!0,stream_options:{include_usage:!0}}:{stream:!1},S=CRn({source:s,stream:y.stream,body:{...f,model:o.vendor.model,...y},options:{...o.vendor.options,signal:o.abortSignal}});await o.dispatch(S);const O=((gt=o.config)==null?void 0:gt.backoffStrategy)??(Mt=>{throw Mt.error}),$=await(async()=>{let Mt=0;for(;;)try{return await o.vendor.api.chat.completions.create(S.body,S.options)}catch(re){const ue=O({count:Mt,error:re});await new Promise(ae=>setTimeout(ae,ue)),Mt++}})();if(!("toReadableStream"in $))return $.usage!=null&&NBt.aggregate({kind:s,completionUsage:$.usage,usage:o.usage}),o.dispatch({id:N3(),type:"response",request_id:S.id,source:s,stream:!1,body:S.body,completion:$,options:S.options,join:async()=>$,created_at:new Date().toISOString()}).catch(()=>{}),{type:"none-stream",value:$};const[q,nt]=UQ.transform($.toReadableStream(),Mt=>tL.transformCompletionChunk(Mt),o.abortSignal).tee(),[z,G]=nt.tee();(async()=>{var re;const Mt=z.getReader();for(;;){const ue=await Mt.read();if(ue.done||((re=o.abortSignal)==null?void 0:re.aborted)===!0)break;ue.value.usage!=null&&NBt.aggregate({kind:s,completionUsage:ue.value.usage,usage:o.usage})}})().catch(()=>{});const[W,et]=q.tee();return o.dispatch({id:N3(),type:"response",request_id:S.id,source:s,stream:!0,body:S.body,completion:XFt(W.getReader(),o.abortSignal),options:S.options,join:async()=>{const Mt=await UQ.readAll(et,o.abortSignal);return tL.merge(Mt)},created_at:new Date().toISOString()}).catch(()=>{}),{type:"stream",value:G}}}class _mt{constructor(s){var f,y;this.props=s,this.operations_=uRn.compose({controllers:s.controllers,config:s.config}),this.stack_=[],this.listeners_=new Map,this.histories_=(s.histories??[]).map(S=>EBn({operations:this.operations_.group,history:S})),this.executor_=typeof((f=s.config)==null?void 0:f.executor)=="function"?s.config.executor:xBn(((y=s.config)==null?void 0:y.executor)??null),this.semaphore_=s.vendor.semaphore!=null?typeof s.vendor.semaphore=="object"?s.vendor.semaphore:new IBt(s.vendor.semaphore):null,this.token_usage_=this.props.tokenUsage!==void 0?this.props.tokenUsage instanceof ZO?this.props.tokenUsage:new ZO(this.props.tokenUsage):ZO.zero(),this.ready_=!1}clone(){var s;return new _mt({...this.props,histories:(s=this.props.histories)==null?void 0:s.slice()})}async conversate(s,f={}){const y=[],S=async q=>{try{await this.dispatch(q),"toHistory"in q&&("join"in q?y.push(async()=>(await q.join(),q.toHistory())):y.push(async()=>q.toHistory()))}catch{}},O=kRn({contents:Array.isArray(s)?s:typeof s=="string"?[{type:"text",text:s}]:[s]});S(O).catch(()=>{}),await this.executor_(this.getContext({dispatch:S,prompt:O.toHistory(),abortSignal:f.abortSignal,usage:this.token_usage_}));const $=await Promise.all(y.map(async q=>q()));return this.histories_.push(...$),$}getConfig(){return this.props.config}getVendor(){return this.props.vendor}getControllers(){return this.props.controllers}getOperations(){return this.operations_.array}getHistories(){return this.histories_}getTokenUsage(){return this.token_usage_}getContext(s){const f=NBn({vendor:this.props.vendor,config:this.props.config,dispatch:s.dispatch,abortSignal:s.abortSignal,usage:this.token_usage_});return{operations:this.operations_,config:this.props.config,histories:this.histories_,stack:this.stack_,ready:()=>this.ready_,prompt:s.prompt,abortSignal:s.abortSignal,dispatch:s.dispatch,request:this.semaphore_===null?f:async(y,S)=>{await this.semaphore_.acquire();try{return await f(y,S)}finally{this.semaphore_.release().catch(()=>{})}},initialize:async()=>{this.ready_=!0,s.dispatch(wRn()).catch(()=>{})}}}on(s,f){return QIe(this.listeners_,s,()=>new Set).add(f),this}off(s,f){const y=this.listeners_.get(s);return y!==void 0&&(y.delete(f),y.size===0&&this.listeners_.delete(s)),this}async dispatch(s){const f=this.listeners_.get(s.type);f!==void 0&&await Promise.all(Array.from(f).map(async y=>{try{await y(s)}catch{}}))}}function zo(o,s,f,y,S){if(typeof s=="function"?o!==s||!0:!s.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s.set(o,f),f}function cr(o,s,f,y){if(f==="a"&&!y)throw new TypeError("Private accessor was defined without a getter");if(typeof s=="function"?o!==s||!y:!s.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return f==="m"?y:f==="a"?y.call(o):y?y.value:s.get(o)}let fNe=function(){const{crypto:o}=globalThis;if(o!=null&&o.randomUUID)return fNe=o.randomUUID.bind(o),o.randomUUID();const s=new Uint8Array(1),f=o?()=>o.getRandomValues(s)[0]:()=>Math.random()*255&255;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,y=>(+y^f()&15>>+y/4).toString(16))};function eFt(o){return typeof o=="object"&&o!==null&&("name"in o&&o.name==="AbortError"||"message"in o&&String(o.message).includes("FetchRequestCanceledException"))}const nFt=o=>{if(o instanceof Error)return o;if(typeof o=="object"&&o!==null){try{if(Object.prototype.toString.call(o)==="[object Error]"){const s=new Error(o.message,o.cause?{cause:o.cause}:{});return o.stack&&(s.stack=o.stack),o.cause&&!s.cause&&(s.cause=o.cause),o.name&&(s.name=o.name),s}}catch{}try{return new Error(JSON.stringify(o))}catch{}}return new Error(o)};class to extends Error{}class Og extends to{constructor(s,f,y,S){super(`${Og.makeMessage(s,f,y)}`),this.status=s,this.headers=S,this.requestID=S==null?void 0:S.get("x-request-id"),this.error=f;const O=f;this.code=O==null?void 0:O.code,this.param=O==null?void 0:O.param,this.type=O==null?void 0:O.type}static makeMessage(s,f,y){const S=f!=null&&f.message?typeof f.message=="string"?f.message:JSON.stringify(f.message):f?JSON.stringify(f):y;return s&&S?`${s} ${S}`:s?`${s} status code (no body)`:S||"(no status code or body)"}static generate(s,f,y,S){if(!s||!S)return new Qmt({message:y,cause:nFt(f)});const O=f==null?void 0:f.error;return s===400?new dNe(s,O,y,S):s===401?new pNe(s,O,y,S):s===403?new gNe(s,O,y,S):s===404?new bNe(s,O,y,S):s===409?new mNe(s,O,y,S):s===422?new yNe(s,O,y,S):s===429?new wNe(s,O,y,S):s>=500?new vNe(s,O,y,S):new Og(s,O,y,S)}}class S3 extends Og{constructor({message:s}={}){super(void 0,void 0,s||"Request was aborted.",void 0)}}class Qmt extends Og{constructor({message:s,cause:f}){super(void 0,void 0,s||"Connection error.",void 0),f&&(this.cause=f)}}class e$t extends Qmt{constructor({message:s}={}){super({message:s??"Request timed out."})}}class dNe extends Og{}class pNe extends Og{}class gNe extends Og{}class bNe extends Og{}class mNe extends Og{}class yNe extends Og{}class wNe extends Og{}class vNe extends Og{}class _Ne extends to{constructor(){super("Could not parse response content as the length limit was reached")}}class xNe extends to{constructor(){super("Could not parse response content as the request was rejected by the content filter")}}class cQ extends Error{constructor(s){super(s)}}const OBn=/^[a-z][a-z0-9+.-]*:/i,LBn=o=>OBn.test(o);let Y2=o=>(Y2=Array.isArray,Y2(o)),nSe=Y2;function ENe(o){return typeof o!="object"?{}:o??{}}function MBn(o){if(!o)return!0;for(const s in o)return!1;return!0}function PBn(o,s){return Object.prototype.hasOwnProperty.call(o,s)}function VDt(o){return o!=null&&typeof o=="object"&&!Array.isArray(o)}const RBn=(o,s)=>{if(typeof s!="number"||!Number.isInteger(s))throw new to(`${o} must be an integer`);if(s<0)throw new to(`${o} must be a positive integer`);return s},DBn=o=>{try{return JSON.parse(o)}catch{return}},eJ=o=>new Promise(s=>setTimeout(s,o)),xF="6.27.0",BBn=()=>typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u";function FBn(){return typeof Deno<"u"&&Deno.build!=null?"deno":typeof EdgeRuntime<"u"?"edge":Object.prototype.toString.call(typeof globalThis.process<"u"?globalThis.process:0)==="[object process]"?"node":"unknown"}const $Bn=()=>{var f;const o=FBn();if(o==="deno")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":xF,"X-Stainless-OS":iSe(Deno.build.os),"X-Stainless-Arch":rSe(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":typeof Deno.version=="string"?Deno.version:((f=Deno.version)==null?void 0:f.deno)??"unknown"};if(typeof EdgeRuntime<"u")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":xF,"X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":globalThis.process.version};if(o==="node")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":xF,"X-Stainless-OS":iSe(globalThis.process.platform??"unknown"),"X-Stainless-Arch":rSe(globalThis.process.arch??"unknown"),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":globalThis.process.version??"unknown"};const s=jBn();return s?{"X-Stainless-Lang":"js","X-Stainless-Package-Version":xF,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${s.browser}`,"X-Stainless-Runtime-Version":s.version}:{"X-Stainless-Lang":"js","X-Stainless-Package-Version":xF,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}};function jBn(){if(typeof navigator>"u"||!navigator)return null;const o=[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(const{key:s,pattern:f}of o){const y=f.exec(navigator.userAgent);if(y){const S=y[1]||0,O=y[2]||0,$=y[3]||0;return{browser:s,version:`${S}.${O}.${$}`}}}return null}const rSe=o=>o==="x32"?"x32":o==="x86_64"||o==="x64"?"x64":o==="arm"?"arm":o==="aarch64"||o==="arm64"?"arm64":o?`other:${o}`:"unknown",iSe=o=>(o=o.toLowerCase(),o.includes("ios")?"iOS":o==="android"?"Android":o==="darwin"?"MacOS":o==="win32"?"Windows":o==="freebsd"?"FreeBSD":o==="openbsd"?"OpenBSD":o==="linux"?"Linux":o?`Other:${o}`:"Unknown");let aSe;const HBn=()=>aSe??(aSe=$Bn());function zBn(){if(typeof fetch<"u")return fetch;throw new Error("`fetch` is not defined as a global; Either pass `fetch` to the client, `new OpenAI({ fetch })` or polyfill the global, `globalThis.fetch = fetch`")}function TNe(...o){const s=globalThis.ReadableStream;if(typeof s>"u")throw new Error("`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`");return new s(...o)}function kNe(o){let s=Symbol.asyncIterator in o?o[Symbol.asyncIterator]():o[Symbol.iterator]();return TNe({start(){},async pull(f){const{done:y,value:S}=await s.next();y?f.close():f.enqueue(S)},async cancel(){var f;await((f=s.return)==null?void 0:f.call(s))}})}function CNe(o){if(o[Symbol.asyncIterator])return o;const s=o.getReader();return{async next(){try{const f=await s.read();return f!=null&&f.done&&s.releaseLock(),f}catch(f){throw s.releaseLock(),f}},async return(){const f=s.cancel();return s.releaseLock(),await f,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}async function UBn(o){var y,S;if(o===null||typeof o!="object")return;if(o[Symbol.asyncIterator]){await((S=(y=o[Symbol.asyncIterator]()).return)==null?void 0:S.call(y));return}const s=o.getReader(),f=s.cancel();s.releaseLock(),await f}const qBn=({headers:o,body:s})=>({bodyHeaders:{"content-type":"application/json"},body:JSON.stringify(s)}),SNe="RFC3986",ANe=o=>String(o),sSe={RFC1738:o=>String(o).replace(/%20/g,"+"),RFC3986:ANe},WBn="RFC1738";let rFt=(o,s)=>(rFt=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),rFt(o,s));const p6=(()=>{const o=[];for(let s=0;s<256;++s)o.push("%"+((s<16?"0":"")+s.toString(16)).toUpperCase());return o})(),XDt=1024,KBn=(o,s,f,y,S)=>{if(o.length===0)return o;let O=o;if(typeof o=="symbol"?O=Symbol.prototype.toString.call(o):typeof o!="string"&&(O=String(o)),f==="iso-8859-1")return escape(O).replace(/%u[0-9a-f]{4}/gi,function(q){return"%26%23"+parseInt(q.slice(2),16)+"%3B"});let $="";for(let q=0;q<O.length;q+=XDt){const nt=O.length>=XDt?O.slice(q,q+XDt):O,z=[];for(let G=0;G<nt.length;++G){let W=nt.charCodeAt(G);if(W===45||W===46||W===95||W===126||W>=48&&W<=57||W>=65&&W<=90||W>=97&&W<=122||S===WBn&&(W===40||W===41)){z[z.length]=nt.charAt(G);continue}if(W<128){z[z.length]=p6[W];continue}if(W<2048){z[z.length]=p6[192|W>>6]+p6[128|W&63];continue}if(W<55296||W>=57344){z[z.length]=p6[224|W>>12]+p6[128|W>>6&63]+p6[128|W&63];continue}G+=1,W=65536+((W&1023)<<10|nt.charCodeAt(G)&1023),z[z.length]=p6[240|W>>18]+p6[128|W>>12&63]+p6[128|W>>6&63]+p6[128|W&63]}$+=z.join("")}return $};function GBn(o){return!o||typeof o!="object"?!1:!!(o.constructor&&o.constructor.isBuffer&&o.constructor.isBuffer(o))}function oSe(o,s){if(Y2(o)){const f=[];for(let y=0;y<o.length;y+=1)f.push(s(o[y]));return f}return s(o)}const INe={brackets(o){return String(o)+"[]"},comma:"comma",indices(o,s){return String(o)+"["+s+"]"},repeat(o){return String(o)}},NNe=function(o,s){Array.prototype.push.apply(o,Y2(s)?s:[s])};let cSe;const Z0={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:KBn,encodeValuesOnly:!1,format:SNe,formatter:ANe,indices:!1,serializeDate(o){return(cSe??(cSe=Function.prototype.call.bind(Date.prototype.toISOString)))(o)},skipNulls:!1,strictNullHandling:!1};function YBn(o){return typeof o=="string"||typeof o=="number"||typeof o=="boolean"||typeof o=="symbol"||typeof o=="bigint"}const QDt={};function ONe(o,s,f,y,S,O,$,q,nt,z,G,W,et,st,_t,gt,Mt,re){let ue=o,ae=re,Le=0,Jn=!1;for(;(ae=ae.get(QDt))!==void 0&&!Jn;){const Or=ae.get(o);if(Le+=1,typeof Or<"u"){if(Or===Le)throw new RangeError("Cyclic object value");Jn=!0}typeof ae.get(QDt)>"u"&&(Le=0)}if(typeof z=="function"?ue=z(s,ue):ue instanceof Date?ue=et==null?void 0:et(ue):f==="comma"&&Y2(ue)&&(ue=oSe(ue,function(Or){return Or instanceof Date?et==null?void 0:et(Or):Or})),ue===null){if(O)return nt&&!gt?nt(s,Z0.encoder,Mt,"key",st):s;ue=""}if(YBn(ue)||GBn(ue)){if(nt){const Or=gt?s:nt(s,Z0.encoder,Mt,"key",st);return[(_t==null?void 0:_t(Or))+"="+(_t==null?void 0:_t(nt(ue,Z0.encoder,Mt,"value",st)))]}return[(_t==null?void 0:_t(s))+"="+(_t==null?void 0:_t(String(ue)))]}const Pe=[];if(typeof ue>"u")return Pe;let gn;if(f==="comma"&&Y2(ue))gt&&nt&&(ue=oSe(ue,nt)),gn=[{value:ue.length>0?ue.join(",")||null:void 0}];else if(Y2(z))gn=z;else{const Or=Object.keys(ue);gn=G?Or.sort(G):Or}const er=q?String(s).replace(/\./g,"%2E"):String(s),Gn=y&&Y2(ue)&&ue.length===1?er+"[]":er;if(S&&Y2(ue)&&ue.length===0)return Gn+"[]";for(let Or=0;Or<gn.length;++Or){const fr=gn[Or],ur=typeof fr=="object"&&typeof fr.value<"u"?fr.value:ue[fr];if($&&ur===null)continue;const fi=W&&q?fr.replace(/\./g,"%2E"):fr,pi=Y2(ue)?typeof f=="function"?f(Gn,fi):Gn:Gn+(W?"."+fi:"["+fi+"]");re.set(o,Le);const Ir=new WeakMap;Ir.set(QDt,re),NNe(Pe,ONe(ur,pi,f,y,S,O,$,q,f==="comma"&>&&Y2(ue)?null:nt,z,G,W,et,st,_t,gt,Mt,Ir))}return Pe}function VBn(o=Z0){if(typeof o.allowEmptyArrays<"u"&&typeof o.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof o.encodeDotInKeys<"u"&&typeof o.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(o.encoder!==null&&typeof o.encoder<"u"&&typeof o.encoder!="function")throw new TypeError("Encoder has to be a function.");const s=o.charset||Z0.charset;if(typeof o.charset<"u"&&o.charset!=="utf-8"&&o.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let f=SNe;if(typeof o.format<"u"){if(!rFt(sSe,o.format))throw new TypeError("Unknown format option provided.");f=o.format}const y=sSe[f];let S=Z0.filter;(typeof o.filter=="function"||Y2(o.filter))&&(S=o.filter);let O;if(o.arrayFormat&&o.arrayFormat in INe?O=o.arrayFormat:"indices"in o?O=o.indices?"indices":"repeat":O=Z0.arrayFormat,"commaRoundTrip"in o&&typeof o.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");const $=typeof o.allowDots>"u"?o.encodeDotInKeys?!0:Z0.allowDots:!!o.allowDots;return{addQueryPrefix:typeof o.addQueryPrefix=="boolean"?o.addQueryPrefix:Z0.addQueryPrefix,allowDots:$,allowEmptyArrays:typeof o.allowEmptyArrays=="boolean"?!!o.allowEmptyArrays:Z0.allowEmptyArrays,arrayFormat:O,charset:s,charsetSentinel:typeof o.charsetSentinel=="boolean"?o.charsetSentinel:Z0.charsetSentinel,commaRoundTrip:!!o.commaRoundTrip,delimiter:typeof o.delimiter>"u"?Z0.delimiter:o.delimiter,encode:typeof o.encode=="boolean"?o.encode:Z0.encode,encodeDotInKeys:typeof o.encodeDotInKeys=="boolean"?o.encodeDotInKeys:Z0.encodeDotInKeys,encoder:typeof o.encoder=="function"?o.encoder:Z0.encoder,encodeValuesOnly:typeof o.encodeValuesOnly=="boolean"?o.encodeValuesOnly:Z0.encodeValuesOnly,filter:S,format:f,formatter:y,serializeDate:typeof o.serializeDate=="function"?o.serializeDate:Z0.serializeDate,skipNulls:typeof o.skipNulls=="boolean"?o.skipNulls:Z0.skipNulls,sort:typeof o.sort=="function"?o.sort:null,strictNullHandling:typeof o.strictNullHandling=="boolean"?o.strictNullHandling:Z0.strictNullHandling}}function XBn(o,s={}){let f=o;const y=VBn(s);let S,O;typeof y.filter=="function"?(O=y.filter,f=O("",f)):Y2(y.filter)&&(O=y.filter,S=O);const $=[];if(typeof f!="object"||f===null)return"";const q=INe[y.arrayFormat],nt=q==="comma"&&y.commaRoundTrip;S||(S=Object.keys(f)),y.sort&&S.sort(y.sort);const z=new WeakMap;for(let et=0;et<S.length;++et){const st=S[et];y.skipNulls&&f[st]===null||NNe($,ONe(f[st],st,q,nt,y.allowEmptyArrays,y.strictNullHandling,y.skipNulls,y.encodeDotInKeys,y.encode?y.encoder:null,y.filter,y.sort,y.allowDots,y.serializeDate,y.format,y.formatter,y.encodeValuesOnly,y.charset,z))}const G=$.join(y.delimiter);let W=y.addQueryPrefix===!0?"?":"";return y.charsetSentinel&&(y.charset==="iso-8859-1"?W+="utf8=%26%2310003%3B&":W+="utf8=%E2%9C%93&"),G.length>0?W+G:""}function QBn(o){return XBn(o,{arrayFormat:"brackets"})}function JBn(o){let s=0;for(const S of o)s+=S.length;const f=new Uint8Array(s);let y=0;for(const S of o)f.set(S,y),y+=S.length;return f}let uSe;function n$t(o){let s;return(uSe??(s=new globalThis.TextEncoder,uSe=s.encode.bind(s)))(o)}let lSe;function hSe(o){let s;return(lSe??(s=new globalThis.TextDecoder,lSe=s.decode.bind(s)))(o)}var yw,ww;class Jmt{constructor(){yw.set(this,void 0),ww.set(this,void 0),zo(this,yw,new Uint8Array),zo(this,ww,null)}decode(s){if(s==null)return[];const f=s instanceof ArrayBuffer?new Uint8Array(s):typeof s=="string"?n$t(s):s;zo(this,yw,JBn([cr(this,yw,"f"),f]));const y=[];let S;for(;(S=ZBn(cr(this,yw,"f"),cr(this,ww,"f")))!=null;){if(S.carriage&&cr(this,ww,"f")==null){zo(this,ww,S.index);continue}if(cr(this,ww,"f")!=null&&(S.index!==cr(this,ww,"f")+1||S.carriage)){y.push(hSe(cr(this,yw,"f").subarray(0,cr(this,ww,"f")-1))),zo(this,yw,cr(this,yw,"f").subarray(cr(this,ww,"f"))),zo(this,ww,null);continue}const O=cr(this,ww,"f")!==null?S.preceding-1:S.preceding,$=hSe(cr(this,yw,"f").subarray(0,O));y.push($),zo(this,yw,cr(this,yw,"f").subarray(S.index)),zo(this,ww,null)}return y}flush(){return cr(this,yw,"f").length?this.decode(`
|
|
460
460
|
`):[]}}yw=new WeakMap,ww=new WeakMap;Jmt.NEWLINE_CHARS=new Set([`
|
|
461
461
|
`,"\r"]);Jmt.NEWLINE_REGEXP=/\r\n|[\n\r]/g;function ZBn(o,s){for(let S=s??0;S<o.length;S++){if(o[S]===10)return{preceding:S,index:S+1,carriage:!1};if(o[S]===13)return{preceding:S,index:S+1,carriage:!0}}return null}function tFn(o){for(let y=0;y<o.length-1;y++){if(o[y]===10&&o[y+1]===10||o[y]===13&&o[y+1]===13)return y+2;if(o[y]===13&&o[y+1]===10&&y+3<o.length&&o[y+2]===13&&o[y+3]===10)return y+4}return-1}const xmt={off:0,error:200,warn:300,info:400,debug:500},fSe=(o,s,f)=>{if(o){if(PBn(xmt,o))return o;Ig(f).warn(`${s} was set to ${JSON.stringify(o)}, expected one of ${JSON.stringify(Object.keys(xmt))}`)}};function uQ(){}function Sbt(o,s,f){return!s||xmt[o]>xmt[f]?uQ:s[o].bind(s)}const eFn={error:uQ,warn:uQ,info:uQ,debug:uQ};let dSe=new WeakMap;function Ig(o){const s=o.logger,f=o.logLevel??"off";if(!s)return eFn;const y=dSe.get(s);if(y&&y[0]===f)return y[1];const S={error:Sbt("error",s,f),warn:Sbt("warn",s,f),info:Sbt("info",s,f),debug:Sbt("debug",s,f)};return dSe.set(s,[f,S]),S}const KO=o=>(o.options&&(o.options={...o.options},delete o.options.headers),o.headers&&(o.headers=Object.fromEntries((o.headers instanceof Headers?[...o.headers]:Object.entries(o.headers)).map(([s,f])=>[s,s.toLowerCase()==="authorization"||s.toLowerCase()==="cookie"||s.toLowerCase()==="set-cookie"?"***":f]))),"retryOfRequestLogID"in o&&(o.retryOfRequestLogID&&(o.retryOf=o.retryOfRequestLogID),delete o.retryOfRequestLogID),o);var eQ;class _6{constructor(s,f,y){this.iterator=s,eQ.set(this,void 0),this.controller=f,zo(this,eQ,y)}static fromSSEResponse(s,f,y,S){let O=!1;const $=y?Ig(y):console;async function*q(){if(O)throw new to("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");O=!0;let nt=!1;try{for await(const z of nFn(s,f))if(!nt){if(z.data.startsWith("[DONE]")){nt=!0;continue}if(z.event===null||!z.event.startsWith("thread.")){let G;try{G=JSON.parse(z.data)}catch(W){throw $.error("Could not parse message into JSON:",z.data),$.error("From chunk:",z.raw),W}if(G&&G.error)throw new Og(void 0,G.error,void 0,s.headers);yield S?{event:z.event,data:G}:G}else{let G;try{G=JSON.parse(z.data)}catch(W){throw console.error("Could not parse message into JSON:",z.data),console.error("From chunk:",z.raw),W}if(z.event=="error")throw new Og(void 0,G.error,G.message,void 0);yield{event:z.event,data:G}}}nt=!0}catch(z){if(eFt(z))return;throw z}finally{nt||f.abort()}}return new _6(q,f,y)}static fromReadableStream(s,f,y){let S=!1;async function*O(){const q=new Jmt,nt=CNe(s);for await(const z of nt)for(const G of q.decode(z))yield G;for(const z of q.flush())yield z}async function*$(){if(S)throw new to("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");S=!0;let q=!1;try{for await(const nt of O())q||nt&&(yield JSON.parse(nt));q=!0}catch(nt){if(eFt(nt))return;throw nt}finally{q||f.abort()}}return new _6($,f,y)}[(eQ=new WeakMap,Symbol.asyncIterator)](){return this.iterator()}tee(){const s=[],f=[],y=this.iterator(),S=O=>({next:()=>{if(O.length===0){const $=y.next();s.push($),f.push($)}return O.shift()}});return[new _6(()=>S(s),this.controller,cr(this,eQ,"f")),new _6(()=>S(f),this.controller,cr(this,eQ,"f"))]}toReadableStream(){const s=this;let f;return TNe({async start(){f=s[Symbol.asyncIterator]()},async pull(y){try{const{value:S,done:O}=await f.next();if(O)return y.close();const $=n$t(JSON.stringify(S)+`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as o,o as w,r as h,T as u}from"../client-B8OTM7em.js";import{e as x,t as v,f as d,S as j,h as _,i as C,j as S,k as A,l as k,v as E,d as I,V as b,c as U,F as B,T as M,B as O}from"../VendorConfigurationMovie-
|
|
1
|
+
import{j as o,o as w,r as h,T as u}from"../client-B8OTM7em.js";import{e as x,t as v,f as d,S as j,h as _,i as C,j as S,k as A,l as k,v as E,d as I,V as b,c as U,F as B,T as M,B as O}from"../VendorConfigurationMovie-D2x7zQVs.js";import{D as T}from"../Divider-Cos-Ru5Z.js";function D(i){if(i.success!==!0){{if(i.value instanceof Error)throw i.value;if(typeof i.value=="object"&&i.value!==null){const t=new Error("Error from execute failure");throw Object.assign(t,i.value),t}}throw i.value}}class p{constructor(t){this.props=t,this.operations_=x.compose({controllers:t.controllers,config:t.config}),this.histories_=(t.histories??[]).map(e=>v({operations:this.operations_.group,history:e})),this.token_usage_=this.props.tokenUsage!==void 0?this.props.tokenUsage instanceof d?this.props.tokenUsage:new d(this.props.tokenUsage):d.zero(),this.listeners_=new Map,this.semaphore_=t.vendor.semaphore!=null?typeof t.vendor.semaphore=="object"?t.vendor.semaphore:new j(t.vendor.semaphore):null}clone(){var t;return new p({...this.props,histories:(t=this.props.histories)==null?void 0:t.slice()})}async conversate(t,e={}){var f,m,y;const s=[],n=async r=>{try{await this.dispatch(r),"toHistory"in r&&("join"in r?s.push(async()=>(await r.join(),r.toHistory())):s.push(async()=>r.toHistory()))}catch{}},a=_({contents:Array.isArray(t)?t:typeof t=="string"?[{type:"text",text:t}]:[t]});n(a).catch(()=>{});const c=this.getContext({prompt:a,dispatch:n,usage:this.token_usage_,abortSignal:e.abortSignal}),l=await C(c,this.operations_.array);l.length&&((m=(f=this.props.config)==null?void 0:f.executor)!=null&&m.describe)&&await(typeof this.props.config.executor.describe=="function"?this.props.config.executor.describe:S)(c,l);const g=await Promise.all(s.map(async r=>r()));if(this.histories_.push(...g),((y=this.props.config)==null?void 0:y.throw)!==!1)for(const r of l)D(r);return g}getConfig(){return this.props.config}getVendor(){return this.props.vendor}getOperations(){return this.operations_.array}getControllers(){return this.props.controllers}getHistories(){return this.histories_}getTokenUsage(){return this.token_usage_}getContext(t){const e=A({vendor:this.props.vendor,config:this.props.config,dispatch:t.dispatch,abortSignal:t.abortSignal,usage:this.token_usage_});return{operations:this.operations_,config:this.props.config,histories:this.histories_,prompt:t.prompt,dispatch:t.dispatch,request:this.semaphore_===null?e:async(s,n)=>{await this.semaphore_.acquire();try{return await e(s,n)}finally{this.semaphore_.release().catch(()=>{})}}}}on(t,e){return k(this.listeners_,t,()=>new Set).add(e),this}off(t,e){const s=this.listeners_.get(t);return s!==void 0&&(s.delete(e),s.size===0&&this.listeners_.delete(t)),this}async dispatch(t){const e=this.listeners_.get(t.type);e!==void 0&&await Promise.all(Array.from(e).map(async s=>{try{await s(t)}catch{}}))}}function R(i){throw new Error([`Error on typia.${i}(): no transform has been configured.`,"","Read and follow https://typia.io/docs/setup please.","",["If you've already completed the setup, it means there's","a bug in your code. Run `tsc` command so that check what","is wrong with your code."].join(" ")].join(`
|
|
2
2
|
`))}function z(){R("llm.application")}class F{constructor(){this.articles=[]}index(){return this.articles}create(t){const e={id:E(),title:t.input.title,body:t.input.body,thumbnail:t.input.thumbnail,created_at:new Date().toISOString(),updated_at:new Date().toISOString()};return this.articles.push(e),e}update(t){const e=this.articles.find(s=>s.id===t.id);if(e===void 0)throw new Error("Unable to find the matched article.");t.input.title!==void 0&&(e.title=t.input.title),t.input.body!==void 0&&(e.body=t.input.body),t.input.thumbnail!==void 0&&(e.thumbnail=t.input.thumbnail),e.updated_at=new Date().toISOString()}erase(t){const e=this.articles.findIndex(s=>s.id===t.id);if(e===-1)throw new Error("Unable to find the matched article.");this.articles.splice(e,1)}}function H(i){const t=new F,e=new p({vendor:{api:i.api,model:i.vendorModel},controllers:[{protocol:"class",name:"bbs",application:z(),execute:t}],config:{locale:i.locale,timezone:i.timezone}});return o.jsx(I,{agent:e})}function L(){const[i,t]=h.useState(b.defaultConfig()),[e,s]=h.useState(window.navigator.language),[n,a]=h.useState(!1);return o.jsx("div",{style:{width:"100%",height:"100%",overflow:n===!0?void 0:"auto"},children:n===!0?o.jsx(H,{api:new U({apiKey:i.apiKey,baseURL:i.baseURL,dangerouslyAllowBrowser:!0}),vendorModel:i.vendorModel,locale:e}):o.jsxs(B,{style:{width:"calc(100% - 60px)",padding:15,margin:15},children:[o.jsx(u,{variant:"h6",children:"BBS AI Chatbot"}),o.jsx("br",{}),o.jsx(T,{}),o.jsx("br",{}),"Demonstration of Agentica with TypeScript Controller Class.",o.jsx("br",{}),o.jsx("br",{}),o.jsx(u,{variant:"h6",children:" OpenAI Configuration "}),o.jsx("br",{}),o.jsx(b,{config:i,onChange:t}),o.jsx("br",{}),o.jsx(u,{variant:"h6",children:" Membership Information "}),o.jsx("br",{}),o.jsx(M,{onChange:c=>s(c.target.value),defaultValue:e,label:"Locale",variant:"outlined",error:e.length===0}),o.jsx("br",{}),o.jsx("br",{}),o.jsx(O,{component:"a",fullWidth:!0,variant:"contained",color:"info",size:"large",disabled:i.apiKey.length===0||i.vendorModel.length===0||e.length===0,onClick:()=>a(!0),children:"Start AI Chatbot"})]})})}w(window.document.getElementById("root")).render(o.jsx(L,{}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var bu=Object.defineProperty;var wu=(t,n,i)=>n in t?bu(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i;var oe=(t,n,i)=>wu(t,typeof n!="symbol"?n+"":n,i);import{g as $u,a as Ru,J as go,i as So,r as Ie,u as Mu,j as N,e as Eu,z as Jc,f as Du,s as Uu,T as Vo,m as Pu,D as qu,K as cc,M as jc,N as _,o as Cu}from"../client-B8OTM7em.js";import{u as Nu,H as zu,O as Bu,A as Fu,d as ku,V as lc,F as Lu,T as Sn,B as Hu,c as Wu}from"../VendorConfigurationMovie-
|
|
1
|
+
var bu=Object.defineProperty;var wu=(t,n,i)=>n in t?bu(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i;var oe=(t,n,i)=>wu(t,typeof n!="symbol"?n+"":n,i);import{g as $u,a as Ru,J as go,i as So,r as Ie,u as Mu,j as N,e as Eu,z as Jc,f as Du,s as Uu,T as Vo,m as Pu,D as qu,K as cc,M as jc,N as _,o as Cu}from"../client-B8OTM7em.js";import{u as Nu,H as zu,O as Bu,A as Fu,d as ku,V as lc,F as Lu,T as Sn,B as Hu,c as Wu}from"../VendorConfigurationMovie-D2x7zQVs.js";import{_ as ve,c as w,a as q,b as P}from"../_accessExpressionAsString-CTLekF-M.js";import{D as Ku}from"../Divider-Cos-Ru5Z.js";function Gu(t){return $u("MuiLink",t)}const Zu=Ru("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Qu=({theme:t,ownerState:n})=>{const i=n.color,y=go(t,`palette.${i}.main`,!1)||go(t,`palette.${i}`,!1)||n.color,O=go(t,`palette.${i}.mainChannel`)||go(t,`palette.${i}Channel`);return"vars"in t&&O?`rgba(${O} / 0.4)`:So(y,.4)},mc={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Yu=t=>{const{classes:n,component:i,focusVisible:y,underline:O}=t,S={root:["root",`underline${Jc(O)}`,i==="button"&&"button",y&&"focusVisible"]};return Du(S,Gu,n)},Xu=Uu(Vo,{name:"MuiLink",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:i}=t;return[n.root,n[`underline${Jc(i.underline)}`],i.component==="button"&&n.button]}})(Pu(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:n,ownerState:i})=>n==="always"&&i.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(t.palette).filter(qu()).map(([n])=>({props:{underline:"always",color:n},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.4)`:So(t.palette[n].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:So(t.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.vars?`rgba(${t.vars.palette.text.secondaryChannel} / 0.4)`:So(t.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Zu.focusVisible}`]:{outline:"auto"}}}]}))),_u=Ie.forwardRef(function(n,i){const y=Mu({props:n,name:"MuiLink"}),O=Nu(),{className:S,color:f="primary",component:g="a",onBlur:u,onFocus:p,TypographyClasses:A,underline:h="always",variant:m="inherit",sx:v,...l}=y,[J,j]=Ie.useState(!1),I=U=>{cc(U.target)||j(!1),u&&u(U)},b=U=>{cc(U.target)&&j(!0),p&&p(U)},x={...y,color:f,component:g,focusVisible:J,underline:h,variant:m},D=Yu(x);return N.jsx(Xu,{color:f,className:Eu(D.root,S),classes:A,component:g,onBlur:I,onFocus:b,ref:i,ownerState:x,variant:m,...l,sx:[...mc[f]===void 0?[{color:f}]:[],...Array.isArray(v)?v:[v]],style:{...l.style,...h==="always"&&f!=="inherit"&&!mc[f]&&{"--Link-underlineColor":Qu({theme:O,ownerState:x})}}})});let ev=class extends Error{constructor(i){super(i.message||`Error on ${i.method}(): invalid type${i.path?` on ${i.path}`:""}, expect to be ${i.expected}`);oe(this,"method");oe(this,"path");oe(this,"expected");oe(this,"value");oe(this,"description");oe(this,"fake_expected_typed_value_");const y=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,y):this.__proto__=y,this.method=i.method,this.path=i.path,this.expected=i.expected,this.value=i.value,(i.description||i.value===void 0)&&(this.description=i.description??["The value at this path is `undefined`.","",`Please fill the \`${i.expected}\` typed value next time.`].join(`
|
|
2
2
|
`))}};const o=(t,n,i)=>{if(t===!0)throw i?i(n):new ev(n);return!1};var xc={},Tc={};Object.defineProperty(Tc,"__esModule",{value:!0});var si={},Jo;(function(t){t.is=n=>typeof n=="object"&&n!==null&&typeof n.openapi=="string"&&n.openapi.startsWith("3.0")})(Jo||(Jo={}));var jo;(function(t){t.is=n=>typeof n=="object"&&n!==null&&typeof n.openapi=="string"&&n.openapi.startsWith("3.1")})(jo||(jo={}));var xo;(function(t){t.is=n=>typeof n=="object"&&n!==null&&typeof n.swagger=="string"&&n.swagger.startsWith("2.0")})(xo||(xo={}));var To;(function(t){t.reference=n=>n.split("/").filter((i,y)=>!!i.length&&!(y===0&&i==="#")).join(".")})(To||(To={}));var De;(function(t){t.take=n=>i=>y=>{const O=n.get(i);if(O)return O;const S=y();return n.set(i,S),S}})(De||(De={}));var ro;(function(t){t.variable=n=>t.reserved(n)===!1&&/^[a-zA-Z_$][a-zA-Z_$0-9]*$/g.test(n),t.reserved=n=>rv.has(n)})(ro||(ro={}));const rv=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","package","return","super","switch","this","throw","true","try","typeof","var","void","while","with"]);var Ue;(function(t){t.cascade=n=>{var O,S;const i=n.schema.$ref.split(n.prefix)[1].split("."),y=i.slice(0,n.escape?i.length:i.length-1).map((f,g,u)=>u.slice(0,g+1).join(".")).map(f=>{var g,u;return{key:f,description:(u=(g=n.components.schemas)==null?void 0:g[f])==null?void 0:u.description}}).reverse().filter((f,g)=>g===0||!!(f!=null&&f.description));if(!(!((O=n.schema.description)!=null&&O.length)&&y.length===0))return[...(S=n.schema.description)!=null&&S.length?[n.schema.description]:[],...y.map((f,g)=>f.description===void 0?`Current Type: {@link ${f.key}}`:`Description of the ${g===0&&n.escape?"current":"parent"} {@link ${f.key}} type:
|
|
3
3
|
|
|
4
4
|
`+f.description.split(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as Hl,v as Wl,w as Ql,r as L,x as Kl,y as ln,j as V,e as fr,g as Mr,a as yr,c as fe,u as jo,n as ze,z as cr,f as Rr,s as ye,m as mn,A as Gs,C as Zs,D as po,E as Xl,F as _l,G as em,H as Nr,I as wo,b as rm,R as w,T as _,o as Hs}from"../client-B8OTM7em.js";import{I as fn,P as Vo,u as Xe,g as om,a as tr,B as Jo,_ as sm,O as nm,V as Ws,F as am,T as Qs,b as dm,c as im,A as tm,H as cm,d as lm}from"../VendorConfigurationMovie-EWdPNego.js";import{_ as Le,a as j,b as S,c as y}from"../_accessExpressionAsString-CTLekF-M.js";var yn={exports:{}},mm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fm=mm,ym=fm;function In(){}function vn(){}vn.resetWarningCache=In;var Im=function(){function a(c,l,f,m,I,v){if(v!==ym){var A=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 A.name="Invariant Violation",A}}a.isRequired=a;function i(){return a}var t={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:i,element:a,elementType:a,instanceOf:i,node:a,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:vn,resetWarningCache:In};return t.PropTypes=t,t};yn.exports=Im();var vm=yn.exports;const x=Hl(vm);function Am(a={}){const{themeId:i,defaultTheme:t,defaultClassName:c="MuiBox-root",generateClassName:l}=a,f=Wl("div",{shouldForwardProp:I=>I!=="theme"&&I!=="sx"&&I!=="as"})(Ql);return L.forwardRef(function(v,A){const O=Kl(t),{className:p,component:J="div",...g}=ln(v);return V.jsx(f,{as:J,ref:A,className:fr(p,l?l(c):c),theme:i&&O[i]||O,...g})})}function pm(a){return Mr("MuiAlert",a)}const Ks=yr("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Om=fe(V.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"),gm=fe(V.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),hm=fe(V.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"),Sm=fe(V.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"),um=fe(V.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"),Vm=a=>{const{variant:i,color:t,severity:c,classes:l}=a,f={root:["root",`color${cr(t||c)}`,`${i}${cr(t||c)}`,`${i}`],icon:["icon"],message:["message"],action:["action"]};return Rr(f,pm,l)},Jm=ye(Vo,{name:"MuiAlert",slot:"Root",overridesResolver:(a,i)=>{const{ownerState:t}=a;return[i.root,i[t.variant],i[`${t.variant}${cr(t.color||t.severity)}`]]}})(mn(({theme:a})=>{const i=a.palette.mode==="light"?Gs:Zs,t=a.palette.mode==="light"?Zs:Gs;return{...a.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(a.palette).filter(po(["light"])).map(([c])=>({props:{colorSeverity:c,variant:"standard"},style:{color:a.vars?a.vars.palette.Alert[`${c}Color`]:i(a.palette[c].light,.6),backgroundColor:a.vars?a.vars.palette.Alert[`${c}StandardBg`]:t(a.palette[c].light,.9),[`& .${Ks.icon}`]:a.vars?{color:a.vars.palette.Alert[`${c}IconColor`]}:{color:a.palette[c].main}}})),...Object.entries(a.palette).filter(po(["light"])).map(([c])=>({props:{colorSeverity:c,variant:"outlined"},style:{color:a.vars?a.vars.palette.Alert[`${c}Color`]:i(a.palette[c].light,.6),border:`1px solid ${(a.vars||a).palette[c].light}`,[`& .${Ks.icon}`]:a.vars?{color:a.vars.palette.Alert[`${c}IconColor`]}:{color:a.palette[c].main}}})),...Object.entries(a.palette).filter(po(["dark"])).map(([c])=>({props:{colorSeverity:c,variant:"filled"},style:{fontWeight:a.typography.fontWeightMedium,...a.vars?{color:a.vars.palette.Alert[`${c}FilledColor`],backgroundColor:a.vars.palette.Alert[`${c}FilledBg`]}:{backgroundColor:a.palette.mode==="dark"?a.palette[c].dark:a.palette[c].main,color:a.palette.getContrastText(a.palette[c].main)}}}))]}})),xm=ye("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(a,i)=>i.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),jm=ye("div",{name:"MuiAlert",slot:"Message",overridesResolver:(a,i)=>i.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),wm=ye("div",{name:"MuiAlert",slot:"Action",overridesResolver:(a,i)=>i.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Xs={success:V.jsx(Om,{fontSize:"inherit"}),warning:V.jsx(gm,{fontSize:"inherit"}),error:V.jsx(hm,{fontSize:"inherit"}),info:V.jsx(Sm,{fontSize:"inherit"})},bm=L.forwardRef(function(i,t){const c=jo({props:i,name:"MuiAlert"}),{action:l,children:f,className:m,closeText:I="Close",color:v,components:A={},componentsProps:O={},icon:p,iconMapping:J=Xs,onClose:g,role:M="alert",severity:R="success",slotProps:h={},slots:N={},variant:b="standard",...F}=c,Y={...c,color:v,severity:R,variant:b,colorSeverity:v||R},Z=Vm(Y),z={slots:{closeButton:A.CloseButton,closeIcon:A.CloseIcon,...N},slotProps:{...O,...h}},[ee,je]=ze("root",{ref:t,shouldForwardComponentProp:!0,className:fr(Z.root,m),elementType:Jm,externalForwardedProps:{...z,...F},ownerState:Y,additionalProps:{role:M,elevation:0}}),[Ie,de]=ze("icon",{className:Z.icon,elementType:xm,externalForwardedProps:z,ownerState:Y}),[_e,ke]=ze("message",{className:Z.message,elementType:jm,externalForwardedProps:z,ownerState:Y}),[we,be]=ze("action",{className:Z.action,elementType:wm,externalForwardedProps:z,ownerState:Y}),[Ue,Ee]=ze("closeButton",{elementType:fn,externalForwardedProps:z,ownerState:Y}),[H,ve]=ze("closeIcon",{elementType:um,externalForwardedProps:z,ownerState:Y});return V.jsxs(ee,{...je,children:[p!==!1?V.jsx(Ie,{...de,children:p||J[R]||Xs[R]}):null,V.jsx(_e,{...ke,children:f}),l!=null?V.jsx(we,{...be,children:l}):null,l==null&&g?V.jsx(we,{...be,children:V.jsx(Ue,{size:"small","aria-label":I,title:I,color:"inherit",onClick:g,...Ee,children:V.jsx(H,{fontSize:"small",...ve})})}):null]})}),Mm=fe(V.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 Rm(a){return Mr("MuiAvatar",a)}yr("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Nm=a=>{const{classes:i,variant:t,colorDefault:c}=a;return Rr({root:["root",t,c&&"colorDefault"],img:["img"],fallback:["fallback"]},Rm,i)},Cm=ye("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(a,i)=>{const{ownerState:t}=a;return[i.root,i[t.variant],t.colorDefault&&i.colorDefault]}})(mn(({theme:a})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:a.typography.fontFamily,fontSize:a.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(a.vars||a).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(a.vars||a).palette.background.default,...a.vars?{backgroundColor:a.vars.palette.Avatar.defaultBg}:{backgroundColor:a.palette.grey[400],...a.applyStyles("dark",{backgroundColor:a.palette.grey[600]})}}}]}))),Lm=ye("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(a,i)=>i.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Tm=ye(Mm,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(a,i)=>i.fallback})({width:"75%",height:"75%"});function Pm({crossOrigin:a,referrerPolicy:i,src:t,srcSet:c}){const[l,f]=L.useState(!1);return L.useEffect(()=>{if(!t&&!c)return;f(!1);let m=!0;const I=new Image;return I.onload=()=>{m&&f("loaded")},I.onerror=()=>{m&&f("error")},I.crossOrigin=a,I.referrerPolicy=i,I.src=t,c&&(I.srcset=c),()=>{m=!1}},[a,i,t,c]),l}const Dm=L.forwardRef(function(i,t){const c=jo({props:i,name:"MuiAvatar"}),{alt:l,children:f,className:m,component:I="div",slots:v={},slotProps:A={},imgProps:O,sizes:p,src:J,srcSet:g,variant:M="circular",...R}=c;let h=null;const N={...c,component:I,variant:M},b=Pm({...O,...typeof A.img=="function"?A.img(N):A.img,src:J,srcSet:g}),F=J||g,Y=F&&b!=="error";N.colorDefault=!Y,delete N.ownerState;const Z=Nm(N),[z,ee]=ze("img",{className:Z.img,elementType:Lm,externalForwardedProps:{slots:v,slotProps:{img:{...O,...A.img}}},additionalProps:{alt:l,src:J,srcSet:g,sizes:p},ownerState:N});return Y?h=V.jsx(z,{...ee}):f||f===0?h=f:F&&l?h=l[0]:h=V.jsx(Tm,{ownerState:N,className:Z.fallback}),V.jsx(Cm,{as:I,className:fr(Z.root,m),ref:t,...R,ownerState:N,children:h})}),km=yr("MuiBox",["root"]),Um=em(),xr=Am({themeId:_l,defaultTheme:Um,defaultClassName:km.root,generateClassName:Xl.generate}),_s=L.createContext();function Em(a){return Mr("MuiGrid",a)}const $m=[0,1,2,3,4,5,6,7,8,9,10],Bm=["column-reverse","column","row-reverse","row"],zm=["nowrap","wrap-reverse","wrap"],ir=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],lr=yr("MuiGrid",["root","container","item","zeroMinWidth",...$m.map(a=>`spacing-xs-${a}`),...Bm.map(a=>`direction-xs-${a}`),...zm.map(a=>`wrap-xs-${a}`),...ir.map(a=>`grid-xs-${a}`),...ir.map(a=>`grid-sm-${a}`),...ir.map(a=>`grid-md-${a}`),...ir.map(a=>`grid-lg-${a}`),...ir.map(a=>`grid-xl-${a}`)]);function qm({theme:a,ownerState:i}){let t;return a.breakpoints.keys.reduce((c,l)=>{let f={};if(i[l]&&(t=i[l]),!t)return c;if(t===!0)f={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(t==="auto")f={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const m=Nr({values:i.columns,breakpoints:a.breakpoints.values}),I=typeof m=="object"?m[l]:m;if(I==null)return c;const v=`${Math.round(t/I*1e8)/1e6}%`;let A={};if(i.container&&i.item&&i.columnSpacing!==0){const O=a.spacing(i.columnSpacing);if(O!=="0px"){const p=`calc(${v} + ${O})`;A={flexBasis:p,maxWidth:p}}}f={flexBasis:v,flexGrow:0,maxWidth:v,...A}}return a.breakpoints.values[l]===0?Object.assign(c,f):c[a.breakpoints.up(l)]=f,c},{})}function Fm({theme:a,ownerState:i}){const t=Nr({values:i.direction,breakpoints:a.breakpoints.values});return wo({theme:a},t,c=>{const l={flexDirection:c};return c.startsWith("column")&&(l[`& > .${lr.item}`]={maxWidth:"none"}),l})}function An({breakpoints:a,values:i}){let t="";Object.keys(i).forEach(l=>{t===""&&i[l]!==0&&(t=l)});const c=Object.keys(a).sort((l,f)=>a[l]-a[f]);return c.slice(0,c.indexOf(t))}function Ym({theme:a,ownerState:i}){const{container:t,rowSpacing:c}=i;let l={};if(t&&c!==0){const f=Nr({values:c,breakpoints:a.breakpoints.values});let m;typeof f=="object"&&(m=An({breakpoints:a.breakpoints.values,values:f})),l=wo({theme:a},f,(I,v)=>{const A=a.spacing(I);return A!=="0px"?{marginTop:`calc(-1 * ${A})`,[`& > .${lr.item}`]:{paddingTop:A}}:m!=null&&m.includes(v)?{}:{marginTop:0,[`& > .${lr.item}`]:{paddingTop:0}}})}return l}function Gm({theme:a,ownerState:i}){const{container:t,columnSpacing:c}=i;let l={};if(t&&c!==0){const f=Nr({values:c,breakpoints:a.breakpoints.values});let m;typeof f=="object"&&(m=An({breakpoints:a.breakpoints.values,values:f})),l=wo({theme:a},f,(I,v)=>{const A=a.spacing(I);if(A!=="0px"){const O=`calc(-1 * ${A})`;return{width:`calc(100% + ${A})`,marginLeft:O,[`& > .${lr.item}`]:{paddingLeft:A}}}return m!=null&&m.includes(v)?{}:{width:"100%",marginLeft:0,[`& > .${lr.item}`]:{paddingLeft:0}}})}return l}function Zm(a,i,t={}){if(!a||a<=0)return[];if(typeof a=="string"&&!Number.isNaN(Number(a))||typeof a=="number")return[t[`spacing-xs-${String(a)}`]];const c=[];return i.forEach(l=>{const f=a[l];Number(f)>0&&c.push(t[`spacing-${l}-${String(f)}`])}),c}const Hm=ye("div",{name:"MuiGrid",slot:"Root",overridesResolver:(a,i)=>{const{ownerState:t}=a,{container:c,direction:l,item:f,spacing:m,wrap:I,zeroMinWidth:v,breakpoints:A}=t;let O=[];c&&(O=Zm(m,A,i));const p=[];return A.forEach(J=>{const g=t[J];g&&p.push(i[`grid-${J}-${String(g)}`])}),[i.root,c&&i.container,f&&i.item,v&&i.zeroMinWidth,...O,l!=="row"&&i[`direction-xs-${String(l)}`],I!=="wrap"&&i[`wrap-xs-${String(I)}`],...p]}})(({ownerState:a})=>({boxSizing:"border-box",...a.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...a.item&&{margin:0},...a.zeroMinWidth&&{minWidth:0},...a.wrap!=="wrap"&&{flexWrap:a.wrap}}),Fm,Ym,Gm,qm);function Wm(a,i){if(!a||a<=0)return[];if(typeof a=="string"&&!Number.isNaN(Number(a))||typeof a=="number")return[`spacing-xs-${String(a)}`];const t=[];return i.forEach(c=>{const l=a[c];if(Number(l)>0){const f=`spacing-${c}-${String(l)}`;t.push(f)}}),t}const Qm=a=>{const{classes:i,container:t,direction:c,item:l,spacing:f,wrap:m,zeroMinWidth:I,breakpoints:v}=a;let A=[];t&&(A=Wm(f,v));const O=[];v.forEach(J=>{const g=a[J];g&&O.push(`grid-${J}-${String(g)}`)});const p={root:["root",t&&"container",l&&"item",I&&"zeroMinWidth",...A,c!=="row"&&`direction-xs-${String(c)}`,m!=="wrap"&&`wrap-xs-${String(m)}`,...O]};return Rr(p,Em,i)},Oo=L.forwardRef(function(i,t){const c=jo({props:i,name:"MuiGrid"}),{breakpoints:l}=Xe(),f=ln(c),{className:m,columns:I,columnSpacing:v,component:A="div",container:O=!1,direction:p="row",item:J=!1,rowSpacing:g,spacing:M=0,wrap:R="wrap",zeroMinWidth:h=!1,...N}=f,b=g||M,F=v||M,Y=L.useContext(_s),Z=O?I||12:Y,z={},ee={...N};l.keys.forEach(de=>{N[de]!=null&&(z[de]=N[de],delete ee[de])});const je={...f,columns:Z,container:O,direction:p,item:J,rowSpacing:b,columnSpacing:F,wrap:R,zeroMinWidth:h,spacing:M,...z,breakpoints:l.keys},Ie=Qm(je);return V.jsx(_s.Provider,{value:Z,children:V.jsx(Hm,{ownerState:je,className:fr(Ie.root,m),as:A,ref:t,...ee})})}),Te=["xs","sm","md","lg","xl"],Km=(a,i,t=!0)=>t?Te.indexOf(a)<=Te.indexOf(i):Te.indexOf(a)<Te.indexOf(i),Xm=(a,i,t=!1)=>t?Te.indexOf(i)<=Te.indexOf(a):Te.indexOf(i)<Te.indexOf(a),_m=(a={})=>i=>{const{withTheme:t=!1,noSSR:c=!1,initialWidth:l}=a;function f(m){const I=Xe(),v=m.theme||I,{initialWidth:A,width:O,...p}=om({theme:v,name:"MuiWithWidth",props:m}),[J,g]=L.useState(!1);rm(()=>{g(!0)},[]);const R=v.breakpoints.keys.slice().reverse().reduce((N,b)=>{const F=tr(v.breakpoints.up(b));return!N&&F?b:N},null),h={width:O||(J||c?R:void 0)||A||l,...t?{theme:v}:{},...p};return h.width===void 0?null:V.jsx(i,{...h})}return f};function pn(a){const{children:i,only:t,width:c}=a,l=Xe();let f=!0;if(t)if(Array.isArray(t))for(let m=0;m<t.length;m+=1){const I=t[m];if(c===I){f=!1;break}}else t&&c===t&&(f=!1);if(f)for(let m=0;m<l.breakpoints.keys.length;m+=1){const I=l.breakpoints.keys[m],v=a[`${I}Up`],A=a[`${I}Down`];if(v&&Km(I,c)||A&&Xm(I,c)){f=!1;break}}return f?i:null}pn.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 ef=_m()(pn);function rf(a){return Mr("PrivateHiddenCss",a)}yr("PrivateHiddenCss",["root","xlDown","xlUp","onlyXl","lgDown","lgUp","onlyLg","mdDown","mdUp","onlyMd","smDown","smUp","onlySm","xsDown","xsUp","onlyXs"]);const of=a=>{const{classes:i,breakpoints:t}=a,c={root:["root",...t.map(({breakpoint:l,dir:f})=>f==="only"?`${f}${cr(l)}`:`${l}${cr(f)}`)]};return Rr(c,rf,i)},sf=ye("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:a,ownerState:i})=>{const t={display:"none"};return{...i.breakpoints.map(({breakpoint:c,dir:l})=>l==="only"?{[a.breakpoints.only(c)]:t}:l==="up"?{[a.breakpoints.up(c)]:t}:{[a.breakpoints.down(c)]:t}).reduce((c,l)=>(Object.keys(l).forEach(f=>{c[f]=l[f]}),c),{})}});function nf(a){const{children:i,className:t,only:c,...l}=a,f=Xe(),m=[];for(let A=0;A<f.breakpoints.keys.length;A+=1){const O=f.breakpoints.keys[A],p=l[`${O}Up`],J=l[`${O}Down`];p&&m.push({breakpoint:O,dir:"up"}),J&&m.push({breakpoint:O,dir:"down"})}c&&(Array.isArray(c)?c:[c]).forEach(O=>{m.push({breakpoint:O,dir:"only"})});const I={...a,breakpoints:m},v=of(I);return V.jsx(sf,{className:fr(v.root,t),ownerState:I,children:i})}function en(a){const{implementation:i="js",lgDown:t=!1,lgUp:c=!1,mdDown:l=!1,mdUp:f=!1,smDown:m=!1,smUp:I=!1,xlDown:v=!1,xlUp:A=!1,xsDown:O=!1,xsUp:p=!1,...J}=a;return i==="js"?V.jsx(ef,{lgDown:t,lgUp:c,mdDown:l,mdUp:f,smDown:m,smUp:I,xlDown:v,xlUp:A,xsDown:O,xsUp:p,...J}):V.jsx(nf,{lgDown:t,lgUp:c,mdDown:l,mdUp:f,smDown:m,smUp:I,xlDown:v,xlUp:A,xsDown:O,xsUp:p,...J})}/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function On(a){return typeof a>"u"||a===null}function af(a){return typeof a=="object"&&a!==null}function df(a){return Array.isArray(a)?a:On(a)?[]:[a]}function tf(a,i){var t,c,l,f;if(i)for(f=Object.keys(i),t=0,c=f.length;t<c;t+=1)l=f[t],a[l]=i[l];return a}function cf(a,i){var t="",c;for(c=0;c<i;c+=1)t+=a;return t}function lf(a){return a===0&&Number.NEGATIVE_INFINITY===1/a}var mf=On,ff=af,yf=df,If=cf,vf=lf,Af=tf,W={isNothing:mf,isObject:ff,toArray:yf,repeat:If,isNegativeZero:vf,extend:Af};function gn(a,i){var t="",c=a.reason||"(unknown reason)";return a.mark?(a.mark.name&&(t+='in "'+a.mark.name+'" '),t+="("+(a.mark.line+1)+":"+(a.mark.column+1)+")",!i&&a.mark.snippet&&(t+=`
|
|
1
|
+
import{q as Hl,v as Wl,w as Ql,r as L,x as Kl,y as ln,j as V,e as fr,g as Mr,a as yr,c as fe,u as jo,n as ze,z as cr,f as Rr,s as ye,m as mn,A as Gs,C as Zs,D as po,E as Xl,F as _l,G as em,H as Nr,I as wo,b as rm,R as w,T as _,o as Hs}from"../client-B8OTM7em.js";import{I as fn,P as Vo,u as Xe,g as om,a as tr,B as Jo,_ as sm,O as nm,V as Ws,F as am,T as Qs,b as dm,c as im,A as tm,H as cm,d as lm}from"../VendorConfigurationMovie-D2x7zQVs.js";import{_ as Le,a as j,b as S,c as y}from"../_accessExpressionAsString-CTLekF-M.js";var yn={exports:{}},mm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fm=mm,ym=fm;function In(){}function vn(){}vn.resetWarningCache=In;var Im=function(){function a(c,l,f,m,I,v){if(v!==ym){var A=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 A.name="Invariant Violation",A}}a.isRequired=a;function i(){return a}var t={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:i,element:a,elementType:a,instanceOf:i,node:a,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:vn,resetWarningCache:In};return t.PropTypes=t,t};yn.exports=Im();var vm=yn.exports;const x=Hl(vm);function Am(a={}){const{themeId:i,defaultTheme:t,defaultClassName:c="MuiBox-root",generateClassName:l}=a,f=Wl("div",{shouldForwardProp:I=>I!=="theme"&&I!=="sx"&&I!=="as"})(Ql);return L.forwardRef(function(v,A){const O=Kl(t),{className:p,component:J="div",...g}=ln(v);return V.jsx(f,{as:J,ref:A,className:fr(p,l?l(c):c),theme:i&&O[i]||O,...g})})}function pm(a){return Mr("MuiAlert",a)}const Ks=yr("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Om=fe(V.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"),gm=fe(V.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),hm=fe(V.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"),Sm=fe(V.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"),um=fe(V.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"),Vm=a=>{const{variant:i,color:t,severity:c,classes:l}=a,f={root:["root",`color${cr(t||c)}`,`${i}${cr(t||c)}`,`${i}`],icon:["icon"],message:["message"],action:["action"]};return Rr(f,pm,l)},Jm=ye(Vo,{name:"MuiAlert",slot:"Root",overridesResolver:(a,i)=>{const{ownerState:t}=a;return[i.root,i[t.variant],i[`${t.variant}${cr(t.color||t.severity)}`]]}})(mn(({theme:a})=>{const i=a.palette.mode==="light"?Gs:Zs,t=a.palette.mode==="light"?Zs:Gs;return{...a.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(a.palette).filter(po(["light"])).map(([c])=>({props:{colorSeverity:c,variant:"standard"},style:{color:a.vars?a.vars.palette.Alert[`${c}Color`]:i(a.palette[c].light,.6),backgroundColor:a.vars?a.vars.palette.Alert[`${c}StandardBg`]:t(a.palette[c].light,.9),[`& .${Ks.icon}`]:a.vars?{color:a.vars.palette.Alert[`${c}IconColor`]}:{color:a.palette[c].main}}})),...Object.entries(a.palette).filter(po(["light"])).map(([c])=>({props:{colorSeverity:c,variant:"outlined"},style:{color:a.vars?a.vars.palette.Alert[`${c}Color`]:i(a.palette[c].light,.6),border:`1px solid ${(a.vars||a).palette[c].light}`,[`& .${Ks.icon}`]:a.vars?{color:a.vars.palette.Alert[`${c}IconColor`]}:{color:a.palette[c].main}}})),...Object.entries(a.palette).filter(po(["dark"])).map(([c])=>({props:{colorSeverity:c,variant:"filled"},style:{fontWeight:a.typography.fontWeightMedium,...a.vars?{color:a.vars.palette.Alert[`${c}FilledColor`],backgroundColor:a.vars.palette.Alert[`${c}FilledBg`]}:{backgroundColor:a.palette.mode==="dark"?a.palette[c].dark:a.palette[c].main,color:a.palette.getContrastText(a.palette[c].main)}}}))]}})),xm=ye("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(a,i)=>i.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),jm=ye("div",{name:"MuiAlert",slot:"Message",overridesResolver:(a,i)=>i.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),wm=ye("div",{name:"MuiAlert",slot:"Action",overridesResolver:(a,i)=>i.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Xs={success:V.jsx(Om,{fontSize:"inherit"}),warning:V.jsx(gm,{fontSize:"inherit"}),error:V.jsx(hm,{fontSize:"inherit"}),info:V.jsx(Sm,{fontSize:"inherit"})},bm=L.forwardRef(function(i,t){const c=jo({props:i,name:"MuiAlert"}),{action:l,children:f,className:m,closeText:I="Close",color:v,components:A={},componentsProps:O={},icon:p,iconMapping:J=Xs,onClose:g,role:M="alert",severity:R="success",slotProps:h={},slots:N={},variant:b="standard",...F}=c,Y={...c,color:v,severity:R,variant:b,colorSeverity:v||R},Z=Vm(Y),z={slots:{closeButton:A.CloseButton,closeIcon:A.CloseIcon,...N},slotProps:{...O,...h}},[ee,je]=ze("root",{ref:t,shouldForwardComponentProp:!0,className:fr(Z.root,m),elementType:Jm,externalForwardedProps:{...z,...F},ownerState:Y,additionalProps:{role:M,elevation:0}}),[Ie,de]=ze("icon",{className:Z.icon,elementType:xm,externalForwardedProps:z,ownerState:Y}),[_e,ke]=ze("message",{className:Z.message,elementType:jm,externalForwardedProps:z,ownerState:Y}),[we,be]=ze("action",{className:Z.action,elementType:wm,externalForwardedProps:z,ownerState:Y}),[Ue,Ee]=ze("closeButton",{elementType:fn,externalForwardedProps:z,ownerState:Y}),[H,ve]=ze("closeIcon",{elementType:um,externalForwardedProps:z,ownerState:Y});return V.jsxs(ee,{...je,children:[p!==!1?V.jsx(Ie,{...de,children:p||J[R]||Xs[R]}):null,V.jsx(_e,{...ke,children:f}),l!=null?V.jsx(we,{...be,children:l}):null,l==null&&g?V.jsx(we,{...be,children:V.jsx(Ue,{size:"small","aria-label":I,title:I,color:"inherit",onClick:g,...Ee,children:V.jsx(H,{fontSize:"small",...ve})})}):null]})}),Mm=fe(V.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 Rm(a){return Mr("MuiAvatar",a)}yr("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Nm=a=>{const{classes:i,variant:t,colorDefault:c}=a;return Rr({root:["root",t,c&&"colorDefault"],img:["img"],fallback:["fallback"]},Rm,i)},Cm=ye("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(a,i)=>{const{ownerState:t}=a;return[i.root,i[t.variant],t.colorDefault&&i.colorDefault]}})(mn(({theme:a})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:a.typography.fontFamily,fontSize:a.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(a.vars||a).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(a.vars||a).palette.background.default,...a.vars?{backgroundColor:a.vars.palette.Avatar.defaultBg}:{backgroundColor:a.palette.grey[400],...a.applyStyles("dark",{backgroundColor:a.palette.grey[600]})}}}]}))),Lm=ye("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(a,i)=>i.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Tm=ye(Mm,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(a,i)=>i.fallback})({width:"75%",height:"75%"});function Pm({crossOrigin:a,referrerPolicy:i,src:t,srcSet:c}){const[l,f]=L.useState(!1);return L.useEffect(()=>{if(!t&&!c)return;f(!1);let m=!0;const I=new Image;return I.onload=()=>{m&&f("loaded")},I.onerror=()=>{m&&f("error")},I.crossOrigin=a,I.referrerPolicy=i,I.src=t,c&&(I.srcset=c),()=>{m=!1}},[a,i,t,c]),l}const Dm=L.forwardRef(function(i,t){const c=jo({props:i,name:"MuiAvatar"}),{alt:l,children:f,className:m,component:I="div",slots:v={},slotProps:A={},imgProps:O,sizes:p,src:J,srcSet:g,variant:M="circular",...R}=c;let h=null;const N={...c,component:I,variant:M},b=Pm({...O,...typeof A.img=="function"?A.img(N):A.img,src:J,srcSet:g}),F=J||g,Y=F&&b!=="error";N.colorDefault=!Y,delete N.ownerState;const Z=Nm(N),[z,ee]=ze("img",{className:Z.img,elementType:Lm,externalForwardedProps:{slots:v,slotProps:{img:{...O,...A.img}}},additionalProps:{alt:l,src:J,srcSet:g,sizes:p},ownerState:N});return Y?h=V.jsx(z,{...ee}):f||f===0?h=f:F&&l?h=l[0]:h=V.jsx(Tm,{ownerState:N,className:Z.fallback}),V.jsx(Cm,{as:I,className:fr(Z.root,m),ref:t,...R,ownerState:N,children:h})}),km=yr("MuiBox",["root"]),Um=em(),xr=Am({themeId:_l,defaultTheme:Um,defaultClassName:km.root,generateClassName:Xl.generate}),_s=L.createContext();function Em(a){return Mr("MuiGrid",a)}const $m=[0,1,2,3,4,5,6,7,8,9,10],Bm=["column-reverse","column","row-reverse","row"],zm=["nowrap","wrap-reverse","wrap"],ir=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],lr=yr("MuiGrid",["root","container","item","zeroMinWidth",...$m.map(a=>`spacing-xs-${a}`),...Bm.map(a=>`direction-xs-${a}`),...zm.map(a=>`wrap-xs-${a}`),...ir.map(a=>`grid-xs-${a}`),...ir.map(a=>`grid-sm-${a}`),...ir.map(a=>`grid-md-${a}`),...ir.map(a=>`grid-lg-${a}`),...ir.map(a=>`grid-xl-${a}`)]);function qm({theme:a,ownerState:i}){let t;return a.breakpoints.keys.reduce((c,l)=>{let f={};if(i[l]&&(t=i[l]),!t)return c;if(t===!0)f={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(t==="auto")f={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const m=Nr({values:i.columns,breakpoints:a.breakpoints.values}),I=typeof m=="object"?m[l]:m;if(I==null)return c;const v=`${Math.round(t/I*1e8)/1e6}%`;let A={};if(i.container&&i.item&&i.columnSpacing!==0){const O=a.spacing(i.columnSpacing);if(O!=="0px"){const p=`calc(${v} + ${O})`;A={flexBasis:p,maxWidth:p}}}f={flexBasis:v,flexGrow:0,maxWidth:v,...A}}return a.breakpoints.values[l]===0?Object.assign(c,f):c[a.breakpoints.up(l)]=f,c},{})}function Fm({theme:a,ownerState:i}){const t=Nr({values:i.direction,breakpoints:a.breakpoints.values});return wo({theme:a},t,c=>{const l={flexDirection:c};return c.startsWith("column")&&(l[`& > .${lr.item}`]={maxWidth:"none"}),l})}function An({breakpoints:a,values:i}){let t="";Object.keys(i).forEach(l=>{t===""&&i[l]!==0&&(t=l)});const c=Object.keys(a).sort((l,f)=>a[l]-a[f]);return c.slice(0,c.indexOf(t))}function Ym({theme:a,ownerState:i}){const{container:t,rowSpacing:c}=i;let l={};if(t&&c!==0){const f=Nr({values:c,breakpoints:a.breakpoints.values});let m;typeof f=="object"&&(m=An({breakpoints:a.breakpoints.values,values:f})),l=wo({theme:a},f,(I,v)=>{const A=a.spacing(I);return A!=="0px"?{marginTop:`calc(-1 * ${A})`,[`& > .${lr.item}`]:{paddingTop:A}}:m!=null&&m.includes(v)?{}:{marginTop:0,[`& > .${lr.item}`]:{paddingTop:0}}})}return l}function Gm({theme:a,ownerState:i}){const{container:t,columnSpacing:c}=i;let l={};if(t&&c!==0){const f=Nr({values:c,breakpoints:a.breakpoints.values});let m;typeof f=="object"&&(m=An({breakpoints:a.breakpoints.values,values:f})),l=wo({theme:a},f,(I,v)=>{const A=a.spacing(I);if(A!=="0px"){const O=`calc(-1 * ${A})`;return{width:`calc(100% + ${A})`,marginLeft:O,[`& > .${lr.item}`]:{paddingLeft:A}}}return m!=null&&m.includes(v)?{}:{width:"100%",marginLeft:0,[`& > .${lr.item}`]:{paddingLeft:0}}})}return l}function Zm(a,i,t={}){if(!a||a<=0)return[];if(typeof a=="string"&&!Number.isNaN(Number(a))||typeof a=="number")return[t[`spacing-xs-${String(a)}`]];const c=[];return i.forEach(l=>{const f=a[l];Number(f)>0&&c.push(t[`spacing-${l}-${String(f)}`])}),c}const Hm=ye("div",{name:"MuiGrid",slot:"Root",overridesResolver:(a,i)=>{const{ownerState:t}=a,{container:c,direction:l,item:f,spacing:m,wrap:I,zeroMinWidth:v,breakpoints:A}=t;let O=[];c&&(O=Zm(m,A,i));const p=[];return A.forEach(J=>{const g=t[J];g&&p.push(i[`grid-${J}-${String(g)}`])}),[i.root,c&&i.container,f&&i.item,v&&i.zeroMinWidth,...O,l!=="row"&&i[`direction-xs-${String(l)}`],I!=="wrap"&&i[`wrap-xs-${String(I)}`],...p]}})(({ownerState:a})=>({boxSizing:"border-box",...a.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...a.item&&{margin:0},...a.zeroMinWidth&&{minWidth:0},...a.wrap!=="wrap"&&{flexWrap:a.wrap}}),Fm,Ym,Gm,qm);function Wm(a,i){if(!a||a<=0)return[];if(typeof a=="string"&&!Number.isNaN(Number(a))||typeof a=="number")return[`spacing-xs-${String(a)}`];const t=[];return i.forEach(c=>{const l=a[c];if(Number(l)>0){const f=`spacing-${c}-${String(l)}`;t.push(f)}}),t}const Qm=a=>{const{classes:i,container:t,direction:c,item:l,spacing:f,wrap:m,zeroMinWidth:I,breakpoints:v}=a;let A=[];t&&(A=Wm(f,v));const O=[];v.forEach(J=>{const g=a[J];g&&O.push(`grid-${J}-${String(g)}`)});const p={root:["root",t&&"container",l&&"item",I&&"zeroMinWidth",...A,c!=="row"&&`direction-xs-${String(c)}`,m!=="wrap"&&`wrap-xs-${String(m)}`,...O]};return Rr(p,Em,i)},Oo=L.forwardRef(function(i,t){const c=jo({props:i,name:"MuiGrid"}),{breakpoints:l}=Xe(),f=ln(c),{className:m,columns:I,columnSpacing:v,component:A="div",container:O=!1,direction:p="row",item:J=!1,rowSpacing:g,spacing:M=0,wrap:R="wrap",zeroMinWidth:h=!1,...N}=f,b=g||M,F=v||M,Y=L.useContext(_s),Z=O?I||12:Y,z={},ee={...N};l.keys.forEach(de=>{N[de]!=null&&(z[de]=N[de],delete ee[de])});const je={...f,columns:Z,container:O,direction:p,item:J,rowSpacing:b,columnSpacing:F,wrap:R,zeroMinWidth:h,spacing:M,...z,breakpoints:l.keys},Ie=Qm(je);return V.jsx(_s.Provider,{value:Z,children:V.jsx(Hm,{ownerState:je,className:fr(Ie.root,m),as:A,ref:t,...ee})})}),Te=["xs","sm","md","lg","xl"],Km=(a,i,t=!0)=>t?Te.indexOf(a)<=Te.indexOf(i):Te.indexOf(a)<Te.indexOf(i),Xm=(a,i,t=!1)=>t?Te.indexOf(i)<=Te.indexOf(a):Te.indexOf(i)<Te.indexOf(a),_m=(a={})=>i=>{const{withTheme:t=!1,noSSR:c=!1,initialWidth:l}=a;function f(m){const I=Xe(),v=m.theme||I,{initialWidth:A,width:O,...p}=om({theme:v,name:"MuiWithWidth",props:m}),[J,g]=L.useState(!1);rm(()=>{g(!0)},[]);const R=v.breakpoints.keys.slice().reverse().reduce((N,b)=>{const F=tr(v.breakpoints.up(b));return!N&&F?b:N},null),h={width:O||(J||c?R:void 0)||A||l,...t?{theme:v}:{},...p};return h.width===void 0?null:V.jsx(i,{...h})}return f};function pn(a){const{children:i,only:t,width:c}=a,l=Xe();let f=!0;if(t)if(Array.isArray(t))for(let m=0;m<t.length;m+=1){const I=t[m];if(c===I){f=!1;break}}else t&&c===t&&(f=!1);if(f)for(let m=0;m<l.breakpoints.keys.length;m+=1){const I=l.breakpoints.keys[m],v=a[`${I}Up`],A=a[`${I}Down`];if(v&&Km(I,c)||A&&Xm(I,c)){f=!1;break}}return f?i:null}pn.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 ef=_m()(pn);function rf(a){return Mr("PrivateHiddenCss",a)}yr("PrivateHiddenCss",["root","xlDown","xlUp","onlyXl","lgDown","lgUp","onlyLg","mdDown","mdUp","onlyMd","smDown","smUp","onlySm","xsDown","xsUp","onlyXs"]);const of=a=>{const{classes:i,breakpoints:t}=a,c={root:["root",...t.map(({breakpoint:l,dir:f})=>f==="only"?`${f}${cr(l)}`:`${l}${cr(f)}`)]};return Rr(c,rf,i)},sf=ye("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:a,ownerState:i})=>{const t={display:"none"};return{...i.breakpoints.map(({breakpoint:c,dir:l})=>l==="only"?{[a.breakpoints.only(c)]:t}:l==="up"?{[a.breakpoints.up(c)]:t}:{[a.breakpoints.down(c)]:t}).reduce((c,l)=>(Object.keys(l).forEach(f=>{c[f]=l[f]}),c),{})}});function nf(a){const{children:i,className:t,only:c,...l}=a,f=Xe(),m=[];for(let A=0;A<f.breakpoints.keys.length;A+=1){const O=f.breakpoints.keys[A],p=l[`${O}Up`],J=l[`${O}Down`];p&&m.push({breakpoint:O,dir:"up"}),J&&m.push({breakpoint:O,dir:"down"})}c&&(Array.isArray(c)?c:[c]).forEach(O=>{m.push({breakpoint:O,dir:"only"})});const I={...a,breakpoints:m},v=of(I);return V.jsx(sf,{className:fr(v.root,t),ownerState:I,children:i})}function en(a){const{implementation:i="js",lgDown:t=!1,lgUp:c=!1,mdDown:l=!1,mdUp:f=!1,smDown:m=!1,smUp:I=!1,xlDown:v=!1,xlUp:A=!1,xsDown:O=!1,xsUp:p=!1,...J}=a;return i==="js"?V.jsx(ef,{lgDown:t,lgUp:c,mdDown:l,mdUp:f,smDown:m,smUp:I,xlDown:v,xlUp:A,xsDown:O,xsUp:p,...J}):V.jsx(nf,{lgDown:t,lgUp:c,mdDown:l,mdUp:f,smDown:m,smUp:I,xlDown:v,xlUp:A,xsDown:O,xsUp:p,...J})}/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function On(a){return typeof a>"u"||a===null}function af(a){return typeof a=="object"&&a!==null}function df(a){return Array.isArray(a)?a:On(a)?[]:[a]}function tf(a,i){var t,c,l,f;if(i)for(f=Object.keys(i),t=0,c=f.length;t<c;t+=1)l=f[t],a[l]=i[l];return a}function cf(a,i){var t="",c;for(c=0;c<i;c+=1)t+=a;return t}function lf(a){return a===0&&Number.NEGATIVE_INFINITY===1/a}var mf=On,ff=af,yf=df,If=cf,vf=lf,Af=tf,W={isNothing:mf,isObject:ff,toArray:yf,repeat:If,isNegativeZero:vf,extend:Af};function gn(a,i){var t="",c=a.reason||"(unknown reason)";return a.mark?(a.mark.name&&(t+='in "'+a.mark.name+'" '),t+="("+(a.mark.line+1)+":"+(a.mark.column+1)+")",!i&&a.mark.snippet&&(t+=`
|
|
2
2
|
|
|
3
3
|
`+a.mark.snippet),c+" "+t):c}function mr(a,i){Error.call(this),this.name="YAMLException",this.reason=a,this.mark=i,this.message=gn(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}mr.prototype=Object.create(Error.prototype);mr.prototype.constructor=mr;mr.prototype.toString=function(i){return this.name+": "+gn(this,i)};var xe=mr;function go(a,i,t,c,l){var f="",m="",I=Math.floor(l/2)-1;return c-i>I&&(f=" ... ",i=c-I+f.length),t-c>I&&(m=" ...",t=c+I-m.length),{str:f+a.slice(i,t).replace(/\t/g,"→")+m,pos:c-i+f.length}}function ho(a,i){return W.repeat(" ",i-a.length)+a}function pf(a,i){if(i=Object.create(i||null),!a.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!="number"&&(i.indent=1),typeof i.linesBefore!="number"&&(i.linesBefore=3),typeof i.linesAfter!="number"&&(i.linesAfter=2);for(var t=/\r?\n|\r|\0/g,c=[0],l=[],f,m=-1;f=t.exec(a.buffer);)l.push(f.index),c.push(f.index+f[0].length),a.position<=f.index&&m<0&&(m=c.length-2);m<0&&(m=c.length-1);var I="",v,A,O=Math.min(a.line+i.linesAfter,l.length).toString().length,p=i.maxLength-(i.indent+O+3);for(v=1;v<=i.linesBefore&&!(m-v<0);v++)A=go(a.buffer,c[m-v],l[m-v],a.position-(c[m]-c[m-v]),p),I=W.repeat(" ",i.indent)+ho((a.line-v+1).toString(),O)+" | "+A.str+`
|
|
4
4
|
`+I;for(A=go(a.buffer,c[m],l[m],a.position,p),I+=W.repeat(" ",i.indent)+ho((a.line+1).toString(),O)+" | "+A.str+`
|
package/dist/bbs/index.html
CHANGED
|
@@ -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-
|
|
23
|
+
<script type="module" src="../assets/bbs/index-BqboZFZm.js"></script>
|
|
24
24
|
<link rel="modulepreload" crossorigin href="../assets/client-B8OTM7em.js">
|
|
25
|
-
<link rel="modulepreload" crossorigin href="../assets/VendorConfigurationMovie-
|
|
25
|
+
<link rel="modulepreload" crossorigin href="../assets/VendorConfigurationMovie-D2x7zQVs.js">
|
|
26
26
|
<link rel="modulepreload" crossorigin href="../assets/Divider-Cos-Ru5Z.js">
|
|
27
27
|
</head>
|
|
28
28
|
|
package/dist/shopping/index.html
CHANGED
|
@@ -20,9 +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-
|
|
23
|
+
<script type="module" src="../assets/shopping/index.html-CGw3gR1k.js"></script>
|
|
24
24
|
<link rel="modulepreload" crossorigin href="../assets/client-B8OTM7em.js">
|
|
25
|
-
<link rel="modulepreload" crossorigin href="../assets/VendorConfigurationMovie-
|
|
25
|
+
<link rel="modulepreload" crossorigin href="../assets/VendorConfigurationMovie-D2x7zQVs.js">
|
|
26
26
|
<link rel="modulepreload" crossorigin href="../assets/_accessExpressionAsString-CTLekF-M.js">
|
|
27
27
|
<link rel="modulepreload" crossorigin href="../assets/Divider-Cos-Ru5Z.js">
|
|
28
28
|
</head>
|
package/dist/uploader/index.html
CHANGED
|
@@ -20,9 +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-
|
|
23
|
+
<script type="module" src="../assets/uploader/index.html-BdKXQiCC.js"></script>
|
|
24
24
|
<link rel="modulepreload" crossorigin href="../assets/client-B8OTM7em.js">
|
|
25
|
-
<link rel="modulepreload" crossorigin href="../assets/VendorConfigurationMovie-
|
|
25
|
+
<link rel="modulepreload" crossorigin href="../assets/VendorConfigurationMovie-D2x7zQVs.js">
|
|
26
26
|
<link rel="modulepreload" crossorigin href="../assets/_accessExpressionAsString-CTLekF-M.js">
|
|
27
27
|
</head>
|
|
28
28
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentica/chat",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.44.
|
|
4
|
+
"version": "0.44.1",
|
|
5
5
|
"description": "Frontend Application of Agentica",
|
|
6
6
|
"author": "Wrtn Technologies",
|
|
7
7
|
"license": "MIT",
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@mui/icons-material": "^6.4.0",
|
|
39
39
|
"@mui/material": "^6.4.0",
|
|
40
|
-
"@typia/interface": "^12.0.
|
|
41
|
-
"@typia/utils": "^12.0.
|
|
40
|
+
"@typia/interface": "^12.0.1",
|
|
41
|
+
"@typia/utils": "^12.0.1",
|
|
42
42
|
"html-to-image": "^1.11.13",
|
|
43
43
|
"openai": "^6.15.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
|
-
"typia": "^12.0.
|
|
48
|
+
"typia": "^12.0.1",
|
|
49
49
|
"uuid": "^13.0.0",
|
|
50
|
-
"@agentica/core": "^0.44.
|
|
50
|
+
"@agentica/core": "^0.44.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@eslint/js": "^9.13.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@types/react": "^18.3.11",
|
|
60
60
|
"@types/react-dom": "^18.3.1",
|
|
61
61
|
"@types/uuid": "^10.0.0",
|
|
62
|
-
"@typia/unplugin": "^12.0.
|
|
62
|
+
"@typia/unplugin": "^12.0.1",
|
|
63
63
|
"@vitejs/plugin-react": "^4.3.3",
|
|
64
64
|
"gh-pages": "^6.3.0",
|
|
65
65
|
"globals": "^15.11.0",
|