@ahmedramez-org/nexus-chat 1.0.0-beta.2 → 1.0.0-beta.21

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.
Files changed (78) hide show
  1. package/README.md +134 -44
  2. package/contract/conformance.js +30 -5
  3. package/contract/index.d.ts +96 -8
  4. package/contract/index.js +14 -0
  5. package/index.d.ts +23 -3
  6. package/index.js +238 -14
  7. package/package.json +19 -4
  8. package/react.d.ts +77 -17
  9. package/react.js +241 -35
  10. package/window.js +387 -0
  11. package/remote/assets/AgentOptionControl-BnqfB5W3.js +0 -1
  12. package/remote/assets/CsvPreview-DD2VELWa.js +0 -10
  13. package/remote/assets/ErrorCard-Bu_0QAJ9.js +0 -1
  14. package/remote/assets/HighlightedCode-DpxGYHfF.js +0 -1
  15. package/remote/assets/HistorySearchDialog-q4cvx5jy.js +0 -41
  16. package/remote/assets/HostBridgeProvider-BV-UGU3Q.js +0 -1
  17. package/remote/assets/HtmlArtifactRenderer-EO_cwaEm.js +0 -1
  18. package/remote/assets/I18nContext-BlQKoDmv.js +0 -24
  19. package/remote/assets/PreviewState-VcIZyCXJ.js +0 -1
  20. package/remote/assets/SourceCitations-DvApeC9N.js +0 -1
  21. package/remote/assets/SourcesArtifactRenderer-BqnIOctm.js +0 -1
  22. package/remote/assets/TableArtifactRenderer-BLZLQMxU.js +0 -2
  23. package/remote/assets/TiptapComposerInput-CmxEiBlE.js +0 -132
  24. package/remote/assets/UnsupportedArtifact-CeOCu_J6.js +0 -1
  25. package/remote/assets/_virtual_mf-localSharedImportMap___mfe_internal__nexusChat__mf_owner__1-CObPUVU6.js +0 -1
  26. package/remote/assets/ar-BV81JAir.js +0 -1
  27. package/remote/assets/button-CO0tH6F2.js +0 -1
  28. package/remote/assets/client-Bv7EbCrM.js +0 -2
  29. package/remote/assets/composite-giRhJC3d.js +0 -1
  30. package/remote/assets/conformance-entry-uotihsU2.js +0 -2
  31. package/remote/assets/createLucideIcon-D1A0JYKN.js +0 -1
  32. package/remote/assets/de-BXJlhmC2.js +0 -1
  33. package/remote/assets/defineProperty-BbfpZ9Tg.js +0 -1
  34. package/remote/assets/dist-MaNcI-Om.js +0 -4
  35. package/remote/assets/errorReporter-hCgThzof.js +0 -1
  36. package/remote/assets/es-nnw68YFM.js +0 -1
  37. package/remote/assets/federation-entry-B8pojL73.css +0 -2
  38. package/remote/assets/federation-entry-BA9UpYiM.js +0 -65
  39. package/remote/assets/floating-ui.dom-B99QSfPH.js +0 -1
  40. package/remote/assets/floating-ui.utils.dom-ObnfY4F6.js +0 -1
  41. package/remote/assets/fr-CJIAbbzn.js +0 -1
  42. package/remote/assets/highlighter-C37NKSjx.js +0 -19
  43. package/remote/assets/hostInit-YMtJ2r-g.js +0 -1
  44. package/remote/assets/it-D3TiEKfy.js +0 -1
  45. package/remote/assets/ja-ZB0L4Lsc.js +0 -1
  46. package/remote/assets/jsx-runtime-DE3RlOCf.js +0 -1
  47. package/remote/assets/lib-CjT9YRPC.js +0 -1
  48. package/remote/assets/modelProviderIcons-fiyx4SaW.js +0 -1
  49. package/remote/assets/react-dom-FxOPXJ08.js +0 -1
  50. package/remote/assets/rehype-raw-CNOzW4vu.js +0 -2
  51. package/remote/assets/roboto-latin-400-italic-CSuqwwKr.woff2 +0 -0
  52. package/remote/assets/roboto-latin-400-normal-BqEyEoaF.woff2 +0 -0
  53. package/remote/assets/roboto-latin-500-italic-DOe3GFcv.woff2 +0 -0
  54. package/remote/assets/roboto-latin-500-normal-7RbcRiD8.woff2 +0 -0
  55. package/remote/assets/roboto-latin-700-italic-Cb9agdGy.woff2 +0 -0
  56. package/remote/assets/roboto-latin-700-normal-BZpUvMxY.woff2 +0 -0
  57. package/remote/assets/roboto-latin-ext-400-italic-BilqUbDw.woff2 +0 -0
  58. package/remote/assets/roboto-latin-ext-400-normal-C3tdtHj3.woff2 +0 -0
  59. package/remote/assets/roboto-latin-ext-500-italic-B5teBpxj.woff2 +0 -0
  60. package/remote/assets/roboto-latin-ext-500-normal-pMCM9Ixg.woff2 +0 -0
  61. package/remote/assets/roboto-latin-ext-700-italic-CBdFfgzf.woff2 +0 -0
  62. package/remote/assets/roboto-latin-ext-700-normal-DSBUz0N1.woff2 +0 -0
  63. package/remote/assets/rolldown-runtime-hePW80VL.js +0 -1
  64. package/remote/assets/sessionTitle-C9LhAN0r.js +0 -1
  65. package/remote/assets/spinner-eqRx6Fq-.js +0 -1
  66. package/remote/assets/sqlFormatting-BjJIfUN_.js +0 -7
  67. package/remote/assets/src-CIHHGjAO.js +0 -1
  68. package/remote/assets/store-FaSYSP4_.js +0 -1
  69. package/remote/assets/useBaseUiId-Dpqq0brK.js +0 -1
  70. package/remote/assets/usePositioner-BhCjFmeW.js +0 -1
  71. package/remote/assets/virtualExposes-C0oWo8z2.js +0 -1
  72. package/remote/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__nexusChat__remoteEntry_js-5uUvXWWH.js +0 -1
  73. package/remote/assets/virtual_mf-exposes-ssr___mfe_internal__nexusChat__remoteEntry_js-WBZ0Muv9.js +0 -2
  74. package/remote/assets/virtual_mf-exposes___mfe_internal__nexusChat__remoteEntry_js-BGZ2nkwm.js +0 -2
  75. package/remote/assets/vite-preload-helper-B7qeedMF.js +0 -1
  76. package/remote/assets/zh-De2Ilp0M.js +0 -1
  77. package/remote/remoteEntry.js +0 -1
  78. package/remote/remoteEntry.ssr.js +0 -1
@@ -1 +0,0 @@
1
- import{t as e}from"./jsx-runtime-DE3RlOCf.js";import{t}from"./createLucideIcon-D1A0JYKN.js";import{r as n}from"./I18nContext-BlQKoDmv.js";import{t as r}from"./ErrorCard-Bu_0QAJ9.js";var i={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};i.node;var a=t(i),o={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};o.node;var s=t(o),c=e();function l({artifact:e}){let t=n();return(0,c.jsx)(r,{message:t(`artifact.noRenderer`,{kind:e.kind}),title:e.title})}export{s as n,a as r,l as t};
@@ -1 +0,0 @@
1
- import"./dist-MaNcI-Om.js";var e={},t=[];export{t as usedRemotes,e as usedShared};
@@ -1 +0,0 @@
1
- var e=`Machine-authored Arabic (ar) catalog, pending translator review. Human translations reused from web-react libs/locale/src/ar-EG.json where the English matched.`,t={_comment:e,"action.groupLabel":`الإجراءات المقترحة`,"action.submitting":`يتم إرسال هذا الإجراء.`,"action.suggested":`إجراء مقترح`,"action.unavailable":`هذا الإجراء غير متاح.`,"artifact.action.download":`التنزيل`,"artifact.action.open":`الفتح`,"artifact.action.save":`الحفظ`,"artifact.action.share":`المشاركة`,"artifact.actionComplete":`تم {action}`,"artifact.actionFailed":`فشل إجراء {action} على القطعة.`,"artifact.actionInProgress":`{action} قيد التنفيذ`,"artifact.cannotOpenHere":`لا يمكن فتح هذه القطعة هنا.`,"artifact.cannotSaveHere":`لا يمكن حفظ هذه القطعة من هنا.`,"artifact.canvas":`لوحة القطع`,"artifact.canvasActions":`إجراءات اللوحة`,"artifact.closeCanvas":`إغلاق اللوحة`,"artifact.contentLoadFailed":`تعذّر تحميل محتوى القطعة.`,"artifact.contentReadFailed":`تعذّرت قراءة محتوى القطعة.`,"artifact.displayFailed":`تعذّر عرض {noun}.`,"artifact.download":`تنزيل القطعة`,"artifact.exitFullscreen":`الخروج من وضع ملء الشاشة`,"artifact.generated":`القطع المُنشأة`,"artifact.hostRendererMountFailed":`تعذّر تركيب عارض المضيف.`,"artifact.hostRendererUpdateFailed":`تعذّر تحديث عارض المضيف.`,"artifact.htmlDisplayFailed":`تعذّر عرض قطعة HTML هذه.`,"artifact.loadFailed":`تعذّر تحميل القطعة`,"artifact.mermaidSource":`مصدر Mermaid`,"artifact.mermaidUnavailable":`عرض المخططات غير متاح حتى يجتاز عارض Mermaid الاختياري بوابة CSP وإمكانية الوصول.`,"artifact.moreActions":`إجراءات إضافية`,"artifact.noDownload":`لا يوجد محتوى قابل للتنزيل.`,"artifact.noRenderer":`لا يتوفر عارض لقطعة {kind} هذه. لا يزال بإمكانك استخدام إجراءات القطعة عندما يوفرها المضيف.`,"artifact.openFailed":`تعذّر فتح {noun}.`,"artifact.openInEditor":`فتح في المحرّر`,"artifact.previewDescription":`معاينة قطعة {kind} المحددة.`,"artifact.previewTitle":`معاينة القطعة`,"artifact.report":`تقرير`,"artifact.saveFailed":`فشل الحفظ.`,"artifact.saveUnrecorded":`تم الحفظ في الكتالوج، لكن المحادثة لم تتمكن من تسجيله. احفظ مرة أخرى لإعادة المحاولة.`,"artifact.selectPrompt":`اختر قطعة من المحادثة.`,"artifact.share":`مشاركة القطعة`,"artifact.shareIncomplete":`لم تكتمل المشاركة.`,"artifact.snapshot":`لقطة`,"artifact.snapshotHint":`لقطة للبيانات وقت الإجابة. افتح {noun} لعرض البيانات الحية.`,"artifact.unavailable":`هذه القطعة غير متاحة.`,"artifact.viewAsChart":`عرض كمخطط`,"artifact.viewAsTable":`عرض كجدول`,"artifact.viewFullscreen":`عرض بملء الشاشة`,"artifact.viewing":`قيد العرض`,"artifact.visualizationLabel":`تمثيل مرئي من نوع {kind}`,"artifact.visualizationUnavailable":`التمثيل المرئي غير متاح`,"brand.name":`Incorta Intelligence`,"code.copy":`نسخ الكود`,"code.insert":`إدراج الكود`,"common.cancel":`إلغاء`,"common.delete":`حذف`,"common.download":`تنزيل`,"common.edit":`تعديل`,"common.loading":`جارٍ التحميل…`,"common.next":`التالي`,"common.open":`فتح`,"common.preview":`معاينة`,"common.previous":`السابق`,"common.rename":`إعادة تسمية`,"common.retry":`إعادة المحاولة`,"common.save":`حفظ`,"common.search":`بحث`,"common.searching":`جارٍ البحث…`,"common.share":`مشاركة`,"common.showLess":`إظهار الأقل`,"common.showMore":`إظهار المزيد`,"composer.agentOptions":`خيارات الوكيل`,"composer.agentOptionsHeading":`خيارات {agent}`,"composer.agentOptionsWithValue":`خيارات الوكيل: {value}`,"composer.appliedToNextRequest":`يُطبَّق على الطلب التالي`,"composer.chooseAgent":`اختر وكيلًا`,"composer.chooseAgentCommand":`اختر أمر وكيل`,"composer.collapseInput":`طي حقل الإدخال`,"composer.commandsStartEmptyPrompt":`تبدأ الأوامر في بداية مطالبة فارغة`,"composer.disclaimer":`قد يخطئ Incorta AI؛ تحقق من القرارات المهمة.`,"composer.expandInput":`توسيع حقل الإدخال`,"composer.loadingAgentOptions":`جارٍ تحميل خيارات الوكيل`,"composer.mentionColumn":`الإشارة إلى عمود`,"composer.mentionColumnLabel":`الإشارة إلى عمود في عرض الأعمال`,"composer.mentionColumnRequiresOneView":`أرفق عرض أعمال واحدًا فقط للإشارة إلى عمود`,"composer.placeholder":`اسأل Incorta Intelligence`,"composer.removeAgent":`إزالة الوكيل {agent}`,"composer.searchValues":`البحث في قيم عرض الأعمال المرفق`,"composer.searchValuesLabel":`البحث في قيم عرض الأعمال`,"composer.searchValuesRequiresOneView":`أرفق عرض أعمال واحدًا فقط للبحث في قيمه`,"composer.sendMessage":`إرسال الرسالة`,"composer.stopResponse":`إيقاف الرد`,"composer.suggestions":`اقتراحات محرر الرسائل`,"composer.unavailable":`تعذّر عرض محرر الرسائل.`,"context.add":`إضافة سياق التحليل`,"context.kind.aiContainers":`AI Containers`,"context.kind.businessView":`عرض الأعمال`,"context.kind.file":`ملف`,"context.kind.insight":`رؤية`,"context.kind.knowledgeStore":`مخزن المعرفة`,"context.kind.physicalTable":`الجداول`,"context.loadingSource":`جارٍ تحميل {title}…`,"context.noItems":`لا توجد عناصر متاحة.`,"context.previewName":`معاينة {name}`,"context.removeName":`إزالة {name}`,"context.searchSource":`البحث في {title}`,"context.selectedLabel":`سياق التحليل المحدد`,"context.selectedSummary":`سياق التحليل المحدد: {contexts}`,"context.showMore":`إظهار المزيد من السياقات المحددة`,"context.showPrevious":`إظهار السياقات المحددة السابقة`,"context.sourceFailed":`تعذّر تحميل {title}.`,"context.sourceNoun":`{count, plural, zero {مصادر} one {مصدر} two {مصدران} few {مصادر} many {مصدرًا} other {مصدر}}`,"context.unsupportedByAgent":`غير مدعوم من الوكيل الحالي.`,"context.uploadAnalysisFiles":`رفع ملفات التحليل`,"context.uploadFiles":`رفع الملفات`,"csv.goToPage":`الانتقال إلى الصفحة {page}`,"csv.nextPage":`الانتقال إلى الصفحة التالية`,"csv.previousPage":`الانتقال إلى الصفحة السابقة`,"csv.summary":`الصفوف {from}–{to} من {total} · الصفحة {page} من {pages}`,"file.blockedUrl":`يستخدم رابط هذا الملف نظام URL محظورًا.`,"file.downloadFailed":`تعذّر تنزيل الملف.`,"file.downloadName":`تنزيل {name}`,"file.invalidData":`بيانات الملف غير صالحة.`,"file.noContent":`لا يحتوي هذا الملف على محتوى قابل للتنزيل.`,"file.noContentYet":`لا يحتوي هذا الملف على محتوى قابل للتنزيل بعد.`,"file.openName":`فتح {name}`,"file.openUnsupported":`فتح هذا الملف غير مدعوم هنا.`,"file.pdfPreviewFailed":`تعذّرت معاينة ملف PDF هذا.`,"file.pdfTooLarge":`ملف PDF هذا أكبر من أن تتم معاينته هنا.`,"file.previewFailed":`تعذّرت معاينة هذا الملف.`,"file.readFailed":`تعذّرت قراءة هذا الملف.`,"file.tooLargeToDownload":`هذا الملف أكبر من أن يتم تنزيله هنا.`,"file.tooLargeToPreview":`هذا الملف أكبر من أن تتم معاينته هنا.`,"file.type.archive":`أرشيف · {format}`,"file.type.document":`مستند · {format}`,"file.type.env":`Env`,"file.type.file":`ملف`,"file.type.format":`{format}`,"file.type.image":`صورة · {format}`,"file.type.log":`سجل`,"file.type.markdown":`Markdown`,"file.type.slides":`شرائح · {format}`,"file.type.spreadsheet":`جدول بيانات · {format}`,"file.type.text":`نص`,"file.unpreviewable":`لا يمكن معاينة “{name}” هنا. نزّله لفتحه في تطبيقه الخاص.`,"history.collapse":`طي سجل المحادثات`,"history.conversationRunning":`المحادثة قيد التشغيل`,"history.delete.description":`ستتم إزالة هذه المحادثة من سجل المحادثات.`,"history.delete.descriptionNamed":`ستتم إزالة “{title}” من سجل المحادثات.`,"history.delete.title":`حذف المحادثة؟`,"history.deleteFailed":`تعذّر حذف المحادثة.`,"history.dismissError":`تجاهل خطأ السجل`,"history.empty":`لا توجد محادثات بعد`,"history.expand":`توسيع سجل المحادثات`,"history.group.older":`أقدم`,"history.group.previous7Days":`آخر 7 أيام`,"history.group.today":`اليوم`,"history.group.yesterday":`أمس`,"history.loadFailed":`تعذر تحميل المحادثات.`,"history.loadMoreConversations":`تحميل المزيد من المحادثات`,"history.loadingConversations":`جارٍ تحميل المحادثات…`,"history.moreActions":`إجراءات إضافية لـ {title}`,"history.newAnswer":`إجابة جديدة`,"history.newChat":`محادثة جديدة`,"history.notSavedYet":`لم يتم حفظ هذه المحادثة بعد.`,"history.rename.description":`اختر عنوانًا قصيرًا يسهّل العثور على هذا التحليل.`,"history.rename.inputLabel":`عنوان المحادثة`,"history.rename.title":`إعادة تسمية المحادثة`,"history.renameFailed":`تعذّرت إعادة تسمية المحادثة.`,"history.search.assistantAnswer":`إجابة المساعد`,"history.search.conversations":`المحادثات`,"history.search.description":`البحث في عناوين المحادثات ومعايناتها.`,"history.search.empty":`لم يتم العثور على محادثات.`,"history.search.failed":`فشل البحث في المحادثات.`,"history.search.moreResults":`{count, plural, zero {# نتائج إضافية} one {# نتيجة إضافية} two {# نتيجتان إضافيتان} few {# نتائج إضافية} many {# نتيجة إضافية} other {# نتيجة إضافية}}`,"history.search.noMatch":`لا توجد محادثات تطابق “{query}”`,"history.search.placeholder":`بحث في المحادثات…`,"history.search.resultCount":`{count, plural, zero {# نتائج} one {# نتيجة} two {# نتيجتان} few {# نتائج} many {# نتيجة} other {# نتيجة}}`,"history.search.searching":`جارٍ البحث في المحادثات`,"history.search.userQuestion":`سؤال المستخدم`,"history.searchChats":`بحث في المحادثات`,"history.sheetDescription":`إنشاء المحادثات والبحث فيها وإعادة فتحها.`,"history.startNewChat":`بدء محادثة جديدة`,"history.title":`سجل المحادثات`,"markdown.scrollableTable":`جدول قابل للتمرير`,"message.conversationLost":`لم تعد هذه المحادثة متاحة. ابدأ جلسة جديدة للمتابعة.`,"message.copy":`نسخ الرسالة`,"message.download":`تنزيل الرد`,"message.downloadCsv":`الجدول بصيغة CSV`,"message.downloadMarkdown":`Markdown (.md)`,"message.downloadText":`نص عادي (.txt)`,"message.errorDetails":`تفاصيل الخطأ`,"message.errorDetailsDescription":`التفاصيل التقنية التي أعادها Incorta Intelligence لهذا الرد.`,"message.feedbackFailed":`تعذّر إرسال الملاحظات`,"message.helpful":`رد مفيد`,"message.lastExecuted":`آخر تنفيذ: {time}`,"message.notSaved":`لم يتم حفظ المحادثة`,"message.startNewSession":`بدء جلسة جديدة`,"message.taskFailed":`تعذّر إكمال الإجابة`,"message.unhelpful":`رد غير مفيد`,"message.viewErrorDetails":`عرض تفاصيل الخطأ`,"preview.noData":`لا توجد بيانات لعرضها`,"session.actions":`إجراءات المحادثة`,"session.clickToRename":`انقر لإعادة التسمية`,"session.delete":`حذف المحادثة`,"session.untitled":`بدون عنوان`,"shell.canvasUnavailable":`تعذّر عرض اللوحة.`,"shell.close":`إغلاق المحادثة`,"shell.dock":`تثبيت على الجانب`,"shell.enterFullScreen":`الدخول إلى وضع ملء الشاشة`,"shell.exitFullScreen":`الخروج من وضع ملء الشاشة`,"shell.historyUnavailable":`تعذّر عرض سجل المحادثات.`,"shell.openHistory":`فتح سجل المحادثات`,"shell.resizeHandle":`تغيير حجم المحادثة واللوحة`,"shell.threadUnavailable":`تعذّر عرض منطقة المحادثة.`,"shell.unavailable":`NexusChat غير متاح`,"shell.undock":`إلغاء التثبيت`,"shell.workspace":`مساحة عمل المحادثة`,"source.cite":`المصدر {index}`,"source.content":`المحتوى`,"source.copy":`نسخ المحتوى`,"source.count":`{count, plural, zero {# مصادر} one {# مصدر} two {# مصدران} few {# مصادر} many {# مصدرًا} other {# مصدر}}`,"source.kind.aiContainer":`AI Container`,"source.kind.businessView":`عرض الأعمال`,"source.kind.document":`مستند`,"source.kind.file":`ملف`,"source.kind.insight":`رؤية`,"source.kind.knowledgeStore":`مخزن المعرفة`,"source.next":`المصدر التالي`,"source.open":`فتح المصدر`,"source.position":`{index} من {total}`,"source.preview":`عرض {shown, number} من {total, number} حرف.`,"source.previous":`المصدر السابق`,"source.showAll":`عرض الكل`,"source.title":`المصادر`,"source.untitled":`مصدر بدون عنوان`,"table.column":`العمود {index}`,"task.backendReason":`سبب الواجهة الخلفية: {reason}`,"task.clarificationFailed":`تعذّر إرسال التوضيح.`,"task.contextRequestPreview":`طلب سياق`,"task.launchUnresolved":`نتيجة إرسال المطالبة غير محسومة لأنه لم تُرجَع هوية مهمة بعيدة. حدّث سجل المحادثة قبل إعادة المحاولة.`,"task.pollFailed":`تعذّر استئناف المهمة المتوقفة.`,"task.responseFailed":`تعذّر إنشاء الرد.`,"thinking.analyzingThis":`أحلل هذا`,"thinking.checkingDetails":`أتحقق من التفاصيل`,"thinking.checkingRequest":`أتحقق من الطلب`,"thinking.consideringDetails":`أنظر في التفاصيل`,"thinking.evaluatingDetails":`أقيّم التفاصيل`,"thinking.examiningRequest":`أفحص الطلب`,"thinking.lookingIntoIt":`أبحث في الأمر`,"thinking.lookingOverRequest":`أراجع الطلب`,"thinking.parsingRequest":`أفسر الطلب`,"thinking.processing":`جارٍ المعالجة`,"thinking.readingThroughIt":`أقرأه بعناية`,"thinking.reasoningThroughIt":`أستدل على الأمر`,"thinking.reviewingThis":`أراجع هذا`,"thinking.sortingThroughDetails":`أرتب التفاصيل`,"thinking.takingCloserLook":`أنظر عن قرب`,"thinking.thinking":`جارٍ التفكير`,"thinking.thinkingItThrough":`أفكر في الأمر`,"thinking.understandingRequest":`أفهم الطلب`,"thinking.workingOnIt":`أعمل على ذلك`,"thinking.workingThroughIt":`أعمل على معالجته`,"thread.agentActivity":`نشاط الوكيل`,"thread.inputNeeded":`مطلوب إدخال إضافي`,"thread.inputRequiredDefault":`يلزم إدخال إضافي للمتابعة.`,"thread.loadingConversation":`جارٍ تحميل المحادثة`,"thread.loadingConversationEllipsis":`جارٍ تحميل المحادثة…`,"thread.loadingEarlier":`جارٍ تحميل الرسائل السابقة`,"thread.messagesRegion":`الرسائل`,"thread.olderMessagesFailed":`تعذّر تحميل الرسائل الأقدم.`,"thread.renderFailed":`تعذّر عرض هذه المحادثة.`,"thread.responseStopped":`لقد أوقفت هذا الرد.`,"thread.retryLoadEarlier":`إعادة محاولة تحميل الرسائل السابقة`,"thread.scrollToLatest":`الانتقال إلى أحدث رسالة`,"thread.thoughts":`عرض التفكير`,"thread.unsupportedPart":`جزء A2A غير مدعوم: {kind}`,"thread.unsupportedPartDetail":`احتوى الرد على جزء لا يمكن لإصدار NexusChat هذا عرضه.`,"time.justNow":`الآن`,"tool.input":`مدخلات`,"tool.moreRows":`{count, plural, zero {لا صفوف أخرى} one {صف واحد آخر} two {صفان آخران} few {# صفوف أخرى} many {# صفًا آخر} other {# صف آخر}}`,"tool.output":`مخرجات`,"tool.unsupportedContent":`نوع محتوى الأداة هذا غير مدعوم في إصدار NexusChat هذا.`,"upload.agentCannotUseFile":`لا يمكن للوكيل المحدد استخدام سياق الملف هذا.`,"upload.alreadyAttached":`“{name}” مرفق بالفعل.`,"upload.attachFailed":`تعذّر إرفاق الملف`,"upload.failed":`فشل رفع الملف.`,"upload.failedShort":`فشل الرفع`,"upload.fileTooLarge":`يتجاوز الملف “{name}” الحد الأقصى للحجم وهو {maxMb} ميجابايت.`,"upload.progress":`جارٍ الرفع {percent, number, percent}`,"upload.recentFile":`ملف حديث`,"upload.sessionFailed":`تعذّر إنشاء جلسة رفع الملفات.`,"upload.tooManyFiles":`يمكنك إضافة {max} ملفات كحد أقصى.`,"upload.unsupportedFormat":`الملف “{name}” غير مدعوم. الصيغ المدعومة: {formats}.`,"upload.unsupportedShort":`صيغة غير مدعومة. المدعومة: {formats}`,"upload.uploadingName":`جارٍ رفع {name}`,"upload.waitForConnection":`انتظر اتصال المحادثة الحالية قبل إضافة الملفات.`,"usage.cached":`({percent} مخزّن مؤقتًا)`,"usage.calls":`{count, plural, one {استدعاء واحد} two {استدعاءان} few {# استدعاءات} many {# استدعاءً} other {# استدعاء}}`,"usage.columnIn":`↑إدخال`,"usage.columnModel":`النموذج`,"usage.columnOut":`↓إخراج`,"usage.duration":`{minutes}، {seconds}`,"usage.label":`استخدام النماذج`,"usage.models":`{count, plural, one {نموذج واحد} two {نموذجان} few {# نماذج} many {# نموذجًا} other {# نموذج}}`,"usage.title":`توزيع الرموز`,"welcome.about":`حول Incorta Intelligence`,"welcome.attachContextHint":`أرفق سياقًا مدعومًا لتأسيس سؤالك عليه.`,"welcome.connecting":`جارٍ الاتصال بـ Incorta Intelligence…`,"welcome.connectionFailed":`يتعذّر الوصول إلى Incorta Intelligence حاليًا.`,"welcome.greeting.afternoon":`{named, select, true {مساء الخير، {name}} other {مساء الخير}}`,"welcome.greeting.evening":`{named, select, true {مساء الخير، {name}} other {مساء الخير}}`,"welcome.greeting.morning":`{named, select, true {صباح الخير، {name}} other {صباح الخير}}`,"welcome.greeting.welcomeBack":`{named, select, true {مرحبًا بعودتك، {name}} other {مرحبًا بعودتك}}`,"welcome.retryConnecting":`إعادة محاولة الاتصال بـ Incorta Intelligence`,"welcome.skill.buildDashboards":`إنشاء لوحات القيادة`,"welcome.skill.createInsights":`إنشاء الرؤى`,"welcome.skill.exploreData":`استكشاف البيانات`,"welcome.skill.generateReports":`إنشاء التقارير`,"welcome.subline":`كيف يمكنني مساعدتك اليوم؟`};export{e as _comment,t as default};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-DE3RlOCf.js";import{n as r,r as i}from"./createLucideIcon-D1A0JYKN.js";import{f as a}from"./floating-ui.utils.dom-ObnfY4F6.js";var o=e(t(),1),s={...o},c={};function l(e,t){let n=o.useRef(c);return n.current===c&&(n.current=e(t)),n}var u=s.useInsertionEffect,d=u&&u!==s.useLayoutEffect?u:e=>e();function f(e){let t=l(p).current;return t.next=e,d(t.effect),t.trampoline}function p(){let e={next:void 0,callback:m,trampoline:(...t)=>{var n;return(n=e.callback)==null?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function m(){}var h=typeof document<`u`?o.useLayoutEffect:()=>{};function g(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var _={};function v(e,t,n,r,i){if(!n&&!r&&!i&&!e)return y(t);let a=y(e);return t&&(a=b(a,t)),n&&(a=b(a,n)),r&&(a=b(a,r)),i&&(a=b(a,i)),a}function ee(e){if(e.length===0)return _;if(e.length===1)return y(e[0]);let t=y(e[0]);for(let n=1;n<e.length;n+=1)t=b(t,e[n]);return t}function y(e){return C(e)?{...w(e,_)}:te(e)}function b(e,t){return C(t)?w(t,e):x(e,t)}function te(e){let t={...e};for(let e in t){let n=t[e];S(e,n)&&(t[e]=E(n))}return t}function x(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=g(e.style,r);break;case`className`:e[n]=O(e.className,r);break;default:e[n]=S(n,r)?T(e[n],r):r}}return e}function S(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function C(e){return typeof e==`function`}function w(e,t){return C(e)?e(t):e??_}function T(e,t){return t?e?(...n)=>{let r=n[0];if(k(r)){let i=r;D(i);let a=t(...n);return i.baseUIHandlerPrevented||e==null||e(...n),a}let i=t(...n);return e==null||e(...n),i}:E(t):e}function E(e){return e&&((...t)=>{let n=t[0];return k(n)&&D(n),e(...t)})}function D(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function O(e,t){return t?e?t+` `+e:t:e}function k(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function A(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var j=A(`https://base-ui.com/production-error`,`Base UI`),M=o.createContext(void 0);function N(e=!1){let t=o.useContext(M);if(t===void 0&&!e)throw Error(j(16));return t}function P(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,s=r&&t!==!1,c=r&&t===!1;return{props:o.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||s)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||c)&&(e.disabled=n),e},[r,n,t,s,c,a,i])}}function F(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,s=o.useRef(null),c=N(!0),l=a??c!==void 0,{props:u}=P({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:i}),d=o.useCallback(()=>{let e=s.current;I(e)&&l&&t&&u.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,u.disabled,l]);return h(d,[d]),{getButtonProps:o.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...c}=e;return v({onClick(e){if(t){e.preventDefault();return}n==null||n(e)},onMouseDown(e){t||r==null||r(e)},onKeyDown(e){if(t||(D(e),o==null||o(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,a=e.currentTarget,s=I(a),c=!i&&ne(a),u=r&&(i?s:!c),d=e.key===`Enter`,f=e.key===` `,p=a.getAttribute(`role`),m=(p==null?void 0:p.startsWith(`menuitem`))||p===`option`||p===`gridcell`;if(r&&l&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),c||i&&s?(a.click(),e.preventBaseUIHandler()):u&&(n==null||n(e),e.preventBaseUIHandler());return}u&&(!i&&(f||d)&&e.preventDefault(),!i&&d&&(n==null||n(e)))},onKeyUp(e){if(!t){if(D(e),a==null||a(e),e.target===e.currentTarget&&i&&l&&I(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!l&&e.key===` `&&(n==null||n(e))}},onPointerDown(e){if(t){e.preventDefault();return}s==null||s(e)}},i?{type:`button`}:{role:`button`},u,c)},[t,u,l,i]),buttonRef:f(e=>{s.current=e,d()})}}function I(e){return a(e)&&e.tagName===`BUTTON`}function ne(e){return!!((e==null?void 0:e.tagName)===`A`&&e!=null&&e.href)}function L(e,t,n,r){let i=l(R).current;return ie(i,e,t,n,r)&&z(i,[e,t,n,r]),i.callback}function re(e){let t=l(R).current;return ae(t,e)&&z(t,e),t.callback}function R(){return{callback:null,cleanup:null,refs:[]}}function ie(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function ae(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function z(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}var B=19;function V(e){return B>=e}function H(e){if(!o.isValidElement(e))return null;let t=e,n=t.props;return(V(19)?n==null?void 0:n.ref:t.ref)??null}function U(){}var W=Object.freeze([]),G=Object.freeze({});function K(e,t){let n={};for(let r in e){let i=e[r];if(t!=null&&t.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function q(e,t){return typeof e==`function`?e(t):e}function J(e,t){return typeof e==`function`?e(t):e}function Y(e,t,n={}){let r=t.render,i=oe(t,n);return n.enabled===!1?null:le(e,r,i,n.state??G)}function oe(e,t={}){let{className:n,style:r,render:i}=e,{state:a=G,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?q(n,a):void 0,d=l?J(r,a):void 0,f=l?K(a,c):G,p=l&&s?se(s):void 0,m=l?g(f,p)??{}:G;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?re([m.ref,H(i),...o]):L(m.ref,H(i),o):L(null,null)),l?(u!==void 0&&(m.className=O(m.className,u)),d!==void 0&&(m.style=g(m.style,d)),m):G}function se(e){return Array.isArray(e)?ee(e):v(void 0,e)}var ce=Symbol.for(`react.lazy`);function le(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=v(n,t.props);e.ref=n.ref;let i=t;return(i==null?void 0:i.$$typeof)===ce&&(i=o.Children.toArray(t)[0]),o.cloneElement(i,e)}if(e&&typeof e==`string`)return X(e,n);throw Error(j(8))}function X(e,t){return e===`button`?(0,o.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,o.createElement)(`img`,{alt:``,...t,key:t.key}):o.createElement(e,t)}var ue=o.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=F({disabled:i,focusableWhenDisabled:a,native:o});return Y(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),de=n(),Z=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Q=i,$=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Q(e,n==null?void 0:n.class,n==null?void 0:n.className);let{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(e=>{let t=n==null?void 0:n[e],r=a==null?void 0:a[e];if(t===null)return null;let o=Z(t)||Z(r);return i[e][o]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Q(e,o,t==null||(r=t.compoundVariants)==null?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n})?[...e,n,r]:e},[]),n==null?void 0:n.class,n==null?void 0:n.className)},fe=$(`group/button inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/20 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive-border aria-invalid:ring-3 aria-invalid:ring-destructive-border/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive text-destructive-foreground hover:bg-[color-mix(in_oklch,var(--destructive),var(--foreground)_5%)] focus-visible:border-destructive-border focus-visible:ring-destructive-border/40`,success:`bg-success-foreground text-background hover:bg-[color-mix(in_oklch,var(--success-foreground),var(--foreground)_5%)] focus-visible:border-success-border focus-visible:ring-success-border/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5`,lg:`h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-9`,"icon-xs":`size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function pe({className:e,variant:t=`default`,size:n=`default`,...i}){return(0,de.jsx)(ue,{"data-slot":`button`,className:r(fe({variant:t,size:n,className:e})),...i})}export{l as _,W as a,V as c,M as d,N as f,f as g,h,J as i,L as l,v as m,$ as n,G as o,j as p,Y as r,U as s,pe as t,F as u,s as v};
@@ -1,2 +0,0 @@
1
- import{t as e}from"./defineProperty-BbfpZ9Tg.js";async function*t(e){if(!e.body)throw Error(`SSE response body is undefined. Cannot read stream.`);let t=``,r=`message`,i=``,a=e.body.pipeThrough(new TextDecoderStream);for await(let e of n(a)){t+=e;let n;for(;(n=t.indexOf(`
2
- `))>=0;){let e=t.substring(0,n).trim();t=t.substring(n+1),e===``?i&&(yield{type:r,data:i},i=``,r=`message`):e.startsWith(`event:`)?r=e.substring(6).trim():e.startsWith(`data:`)&&(i=e.substring(5).trim())}}i&&(yield{type:r,data:i})}async function*n(e){let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{t.releaseLock()}}var r=`.well-known/agent-card.json`,i={PARSE_ERROR:-32700,INVALID_REQUEST:-32600,METHOD_NOT_FOUND:-32601,INVALID_PARAMS:-32602,INTERNAL_ERROR:-32603,TASK_NOT_FOUND:-32001,TASK_NOT_CANCELABLE:-32002,PUSH_NOTIFICATION_NOT_SUPPORTED:-32003,UNSUPPORTED_OPERATION:-32004,CONTENT_TYPE_NOT_SUPPORTED:-32005,INVALID_AGENT_RESPONSE:-32006,AUTHENTICATED_EXTENDED_CARD_NOT_CONFIGURED:-32007},a=class extends Error{constructor(e){super(e??`Task not found`),this.name=`TaskNotFoundError`}},o=class extends Error{constructor(e){super(e??`Task cannot be canceled`),this.name=`TaskNotCancelableError`}},s=class extends Error{constructor(e){super(e??`Push Notification is not supported`),this.name=`PushNotificationNotSupportedError`}},c=class extends Error{constructor(e){super(e??`This operation is not supported`),this.name=`UnsupportedOperationError`}},l=class extends Error{constructor(e){super(e??`Incompatible content types`),this.name=`ContentTypeNotSupportedError`}},ee=class extends Error{constructor(e){super(e??`Invalid agent response type`),this.name=`InvalidAgentResponseError`}},u=class extends Error{constructor(e){super(e??`Authenticated Extended Card not configured`),this.name=`AuthenticatedExtendedCardNotConfiguredError`}},d=class t extends Error{constructor(t,n,r,i){super(n),e(this,`code`,void 0),e(this,`data`,void 0),e(this,`taskId`,void 0),this.name=`A2AError`,this.code=t,this.data=r,this.taskId=i}toJSONRPCError(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}static parseError(e,n){return new t(-32700,e,n)}static invalidRequest(e,n){return new t(-32600,e,n)}static methodNotFound(e){return new t(-32601,`Method not found: ${e}`)}static invalidParams(e,n){return new t(-32602,e,n)}static internalError(e,n){return new t(-32603,e,n)}static taskNotFound(e){return new t(-32001,`Task not found: ${e}`,void 0,e)}static taskNotCancelable(e){return new t(-32002,`Task not cancelable: ${e}`,void 0,e)}static pushNotificationNotSupported(){return new t(-32003,`Push Notification is not supported`)}static unsupportedOperation(e){return new t(-32004,`Unsupported operation: ${e}`)}static authenticatedExtendedCardNotConfigured(){return new t(-32007,`Extended card not configured.`)}};function te(e){switch(e){case 0:case`TASK_STATE_UNSPECIFIED`:return 0;case 1:case`TASK_STATE_SUBMITTED`:return 1;case 2:case`TASK_STATE_WORKING`:return 2;case 3:case`TASK_STATE_COMPLETED`:return 3;case 4:case`TASK_STATE_FAILED`:return 4;case 5:case`TASK_STATE_CANCELLED`:return 5;case 6:case`TASK_STATE_INPUT_REQUIRED`:return 6;case 7:case`TASK_STATE_REJECTED`:return 7;case 8:case`TASK_STATE_AUTH_REQUIRED`:return 8;default:return-1}}function ne(e){switch(e){case 0:return`TASK_STATE_UNSPECIFIED`;case 1:return`TASK_STATE_SUBMITTED`;case 2:return`TASK_STATE_WORKING`;case 3:return`TASK_STATE_COMPLETED`;case 4:return`TASK_STATE_FAILED`;case 5:return`TASK_STATE_CANCELLED`;case 6:return`TASK_STATE_INPUT_REQUIRED`;case 7:return`TASK_STATE_REJECTED`;case 8:return`TASK_STATE_AUTH_REQUIRED`;default:return`UNRECOGNIZED`}}function re(e){switch(e){case 0:case`ROLE_UNSPECIFIED`:return 0;case 1:case`ROLE_USER`:return 1;case 2:case`ROLE_AGENT`:return 2;default:return-1}}function ie(e){switch(e){case 0:return`ROLE_UNSPECIFIED`;case 1:return`ROLE_USER`;case 2:return`ROLE_AGENT`;default:return`UNRECOGNIZED`}}var f={fromJSON(e){return{acceptedOutputModes:globalThis.Array.isArray(e==null?void 0:e.acceptedOutputModes)?e.acceptedOutputModes.map(e=>globalThis.String(e)):globalThis.Array.isArray(e==null?void 0:e.accepted_output_modes)?e.accepted_output_modes.map(e=>globalThis.String(e)):[],pushNotification:W(e.pushNotification)?S.fromJSON(e.pushNotification):W(e.push_notification)?S.fromJSON(e.push_notification):void 0,historyLength:W(e.historyLength)?globalThis.Number(e.historyLength):W(e.history_length)?globalThis.Number(e.history_length):0,blocking:W(e.blocking)?globalThis.Boolean(e.blocking):!1}},toJSON(e){var t;let n={};return(t=e.acceptedOutputModes)!=null&&t.length&&(n.acceptedOutputModes=e.acceptedOutputModes),e.pushNotification!==void 0&&(n.pushNotification=S.toJSON(e.pushNotification)),e.historyLength!==0&&(n.historyLength=Math.round(e.historyLength)),e.blocking!==!1&&(n.blocking=e.blocking),n}},p={fromJSON(e){return{id:W(e.id)?globalThis.String(e.id):``,contextId:W(e.contextId)?globalThis.String(e.contextId):W(e.context_id)?globalThis.String(e.context_id):``,status:W(e.status)?m.fromJSON(e.status):void 0,artifacts:globalThis.Array.isArray(e==null?void 0:e.artifacts)?e.artifacts.map(e=>y.fromJSON(e)):[],history:globalThis.Array.isArray(e==null?void 0:e.history)?e.history.map(e=>v.fromJSON(e)):[],metadata:U(e.metadata)?e.metadata:void 0}},toJSON(e){var t,n;let r={};return e.id!==``&&(r.id=e.id),e.contextId!==``&&(r.contextId=e.contextId),e.status!==void 0&&(r.status=m.toJSON(e.status)),(t=e.artifacts)!=null&&t.length&&(r.artifacts=e.artifacts.map(e=>y.toJSON(e))),(n=e.history)!=null&&n.length&&(r.history=e.history.map(e=>v.toJSON(e))),e.metadata!==void 0&&(r.metadata=e.metadata),r}},m={fromJSON(e){return{state:W(e.state)?te(e.state):0,update:W(e.message)?v.fromJSON(e.message):W(e.update)?v.fromJSON(e.update):void 0,timestamp:W(e.timestamp)?globalThis.String(e.timestamp):void 0}},toJSON(e){let t={};return e.state!==0&&(t.state=ne(e.state)),e.update!==void 0&&(t.message=v.toJSON(e.update)),e.timestamp!==void 0&&(t.timestamp=e.timestamp),t}},h={fromJSON(e){return{part:W(e.text)?{$case:`text`,value:globalThis.String(e.text)}:W(e.file)?{$case:`file`,value:g.fromJSON(e.file)}:W(e.data)?{$case:`data`,value:_.fromJSON(e.data)}:void 0}},toJSON(e){var t,n,r;let i={};return((t=e.part)==null?void 0:t.$case)===`text`?i.text=e.part.value:((n=e.part)==null?void 0:n.$case)===`file`?i.file=g.toJSON(e.part.value):((r=e.part)==null?void 0:r.$case)===`data`&&(i.data=_.toJSON(e.part.value)),i}},g={fromJSON(e){return{file:W(e.fileWithUri)?{$case:`fileWithUri`,value:globalThis.String(e.fileWithUri)}:W(e.file_with_uri)?{$case:`fileWithUri`,value:globalThis.String(e.file_with_uri)}:W(e.fileWithBytes)?{$case:`fileWithBytes`,value:Buffer.from(H(e.fileWithBytes))}:W(e.file_with_bytes)?{$case:`fileWithBytes`,value:Buffer.from(H(e.file_with_bytes))}:void 0,mimeType:W(e.mimeType)?globalThis.String(e.mimeType):W(e.mime_type)?globalThis.String(e.mime_type):``}},toJSON(e){var t,n;let r={};return((t=e.file)==null?void 0:t.$case)===`fileWithUri`?r.fileWithUri=e.file.value:((n=e.file)==null?void 0:n.$case)===`fileWithBytes`&&(r.fileWithBytes=fe(e.file.value)),e.mimeType!==``&&(r.mimeType=e.mimeType),r}},_={fromJSON(e){return{data:U(e.data)?e.data:void 0}},toJSON(e){let t={};return e.data!==void 0&&(t.data=e.data),t}},v={fromJSON(e){return{messageId:W(e.messageId)?globalThis.String(e.messageId):W(e.message_id)?globalThis.String(e.message_id):``,contextId:W(e.contextId)?globalThis.String(e.contextId):W(e.context_id)?globalThis.String(e.context_id):``,taskId:W(e.taskId)?globalThis.String(e.taskId):W(e.task_id)?globalThis.String(e.task_id):``,role:W(e.role)?re(e.role):0,content:globalThis.Array.isArray(e==null?void 0:e.content)?e.content.map(e=>h.fromJSON(e)):[],metadata:U(e.metadata)?e.metadata:void 0,extensions:globalThis.Array.isArray(e==null?void 0:e.extensions)?e.extensions.map(e=>globalThis.String(e)):[]}},toJSON(e){var t,n;let r={};return e.messageId!==``&&(r.messageId=e.messageId),e.contextId!==``&&(r.contextId=e.contextId),e.taskId!==``&&(r.taskId=e.taskId),e.role!==0&&(r.role=ie(e.role)),(t=e.content)!=null&&t.length&&(r.content=e.content.map(e=>h.toJSON(e))),e.metadata!==void 0&&(r.metadata=e.metadata),(n=e.extensions)!=null&&n.length&&(r.extensions=e.extensions),r}},y={fromJSON(e){return{artifactId:W(e.artifactId)?globalThis.String(e.artifactId):W(e.artifact_id)?globalThis.String(e.artifact_id):``,name:W(e.name)?globalThis.String(e.name):``,description:W(e.description)?globalThis.String(e.description):``,parts:globalThis.Array.isArray(e==null?void 0:e.parts)?e.parts.map(e=>h.fromJSON(e)):[],metadata:U(e.metadata)?e.metadata:void 0,extensions:globalThis.Array.isArray(e==null?void 0:e.extensions)?e.extensions.map(e=>globalThis.String(e)):[]}},toJSON(e){var t,n;let r={};return e.artifactId!==``&&(r.artifactId=e.artifactId),e.name!==``&&(r.name=e.name),e.description!==``&&(r.description=e.description),(t=e.parts)!=null&&t.length&&(r.parts=e.parts.map(e=>h.toJSON(e))),e.metadata!==void 0&&(r.metadata=e.metadata),(n=e.extensions)!=null&&n.length&&(r.extensions=e.extensions),r}},b={fromJSON(e){return{taskId:W(e.taskId)?globalThis.String(e.taskId):W(e.task_id)?globalThis.String(e.task_id):``,contextId:W(e.contextId)?globalThis.String(e.contextId):W(e.context_id)?globalThis.String(e.context_id):``,status:W(e.status)?m.fromJSON(e.status):void 0,final:W(e.final)?globalThis.Boolean(e.final):!1,metadata:U(e.metadata)?e.metadata:void 0}},toJSON(e){let t={};return e.taskId!==``&&(t.taskId=e.taskId),e.contextId!==``&&(t.contextId=e.contextId),e.status!==void 0&&(t.status=m.toJSON(e.status)),e.final!==!1&&(t.final=e.final),e.metadata!==void 0&&(t.metadata=e.metadata),t}},x={fromJSON(e){return{taskId:W(e.taskId)?globalThis.String(e.taskId):W(e.task_id)?globalThis.String(e.task_id):``,contextId:W(e.contextId)?globalThis.String(e.contextId):W(e.context_id)?globalThis.String(e.context_id):``,artifact:W(e.artifact)?y.fromJSON(e.artifact):void 0,append:W(e.append)?globalThis.Boolean(e.append):!1,lastChunk:W(e.lastChunk)?globalThis.Boolean(e.lastChunk):W(e.last_chunk)?globalThis.Boolean(e.last_chunk):!1,metadata:U(e.metadata)?e.metadata:void 0}},toJSON(e){let t={};return e.taskId!==``&&(t.taskId=e.taskId),e.contextId!==``&&(t.contextId=e.contextId),e.artifact!==void 0&&(t.artifact=y.toJSON(e.artifact)),e.append!==!1&&(t.append=e.append),e.lastChunk!==!1&&(t.lastChunk=e.lastChunk),e.metadata!==void 0&&(t.metadata=e.metadata),t}},S={fromJSON(e){return{id:W(e.id)?globalThis.String(e.id):``,url:W(e.url)?globalThis.String(e.url):``,token:W(e.token)?globalThis.String(e.token):``,authentication:W(e.authentication)?C.fromJSON(e.authentication):void 0}},toJSON(e){let t={};return e.id!==``&&(t.id=e.id),e.url!==``&&(t.url=e.url),e.token!==``&&(t.token=e.token),e.authentication!==void 0&&(t.authentication=C.toJSON(e.authentication)),t}},C={fromJSON(e){return{schemes:globalThis.Array.isArray(e==null?void 0:e.schemes)?e.schemes.map(e=>globalThis.String(e)):[],credentials:W(e.credentials)?globalThis.String(e.credentials):``}},toJSON(e){var t;let n={};return(t=e.schemes)!=null&&t.length&&(n.schemes=e.schemes),e.credentials!==``&&(n.credentials=e.credentials),n}},w={fromJSON(e){return{url:W(e.url)?globalThis.String(e.url):``,transport:W(e.transport)?globalThis.String(e.transport):``}},toJSON(e){let t={};return e.url!==``&&(t.url=e.url),e.transport!==``&&(t.transport=e.transport),t}},ae={fromJSON(e){return{protocolVersion:W(e.protocolVersion)?globalThis.String(e.protocolVersion):W(e.protocol_version)?globalThis.String(e.protocol_version):``,name:W(e.name)?globalThis.String(e.name):``,description:W(e.description)?globalThis.String(e.description):``,url:W(e.url)?globalThis.String(e.url):``,preferredTransport:W(e.preferredTransport)?globalThis.String(e.preferredTransport):W(e.preferred_transport)?globalThis.String(e.preferred_transport):``,additionalInterfaces:globalThis.Array.isArray(e==null?void 0:e.additionalInterfaces)?e.additionalInterfaces.map(e=>w.fromJSON(e)):globalThis.Array.isArray(e==null?void 0:e.additional_interfaces)?e.additional_interfaces.map(e=>w.fromJSON(e)):[],provider:W(e.provider)?T.fromJSON(e.provider):void 0,version:W(e.version)?globalThis.String(e.version):``,documentationUrl:W(e.documentationUrl)?globalThis.String(e.documentationUrl):W(e.documentation_url)?globalThis.String(e.documentation_url):``,capabilities:W(e.capabilities)?oe.fromJSON(e.capabilities):void 0,securitySchemes:U(e.securitySchemes)?globalThis.Object.entries(e.securitySchemes).reduce((e,[t,n])=>(e[t]=A.fromJSON(n),e),{}):U(e.security_schemes)?globalThis.Object.entries(e.security_schemes).reduce((e,[t,n])=>(e[t]=A.fromJSON(n),e),{}):{},security:globalThis.Array.isArray(e==null?void 0:e.security)?e.security.map(e=>k.fromJSON(e)):[],defaultInputModes:globalThis.Array.isArray(e==null?void 0:e.defaultInputModes)?e.defaultInputModes.map(e=>globalThis.String(e)):globalThis.Array.isArray(e==null?void 0:e.default_input_modes)?e.default_input_modes.map(e=>globalThis.String(e)):[],defaultOutputModes:globalThis.Array.isArray(e==null?void 0:e.defaultOutputModes)?e.defaultOutputModes.map(e=>globalThis.String(e)):globalThis.Array.isArray(e==null?void 0:e.default_output_modes)?e.default_output_modes.map(e=>globalThis.String(e)):[],skills:globalThis.Array.isArray(e==null?void 0:e.skills)?e.skills.map(e=>ce.fromJSON(e)):[],supportsAuthenticatedExtendedCard:W(e.supportsAuthenticatedExtendedCard)?globalThis.Boolean(e.supportsAuthenticatedExtendedCard):W(e.supports_authenticated_extended_card)?globalThis.Boolean(e.supports_authenticated_extended_card):!1,signatures:globalThis.Array.isArray(e==null?void 0:e.signatures)?e.signatures.map(e=>E.fromJSON(e)):[]}},toJSON(e){var t,n,r,i,a,o;let s={};if(e.protocolVersion!==``&&(s.protocolVersion=e.protocolVersion),e.name!==``&&(s.name=e.name),e.description!==``&&(s.description=e.description),e.url!==``&&(s.url=e.url),e.preferredTransport!==``&&(s.preferredTransport=e.preferredTransport),(t=e.additionalInterfaces)!=null&&t.length&&(s.additionalInterfaces=e.additionalInterfaces.map(e=>w.toJSON(e))),e.provider!==void 0&&(s.provider=T.toJSON(e.provider)),e.version!==``&&(s.version=e.version),e.documentationUrl!==``&&(s.documentationUrl=e.documentationUrl),e.capabilities!==void 0&&(s.capabilities=oe.toJSON(e.capabilities)),e.securitySchemes){let t=globalThis.Object.entries(e.securitySchemes);t.length>0&&(s.securitySchemes={},t.forEach(([e,t])=>{s.securitySchemes[e]=A.toJSON(t)}))}return(n=e.security)!=null&&n.length&&(s.security=e.security.map(e=>k.toJSON(e))),(r=e.defaultInputModes)!=null&&r.length&&(s.defaultInputModes=e.defaultInputModes),(i=e.defaultOutputModes)!=null&&i.length&&(s.defaultOutputModes=e.defaultOutputModes),(a=e.skills)!=null&&a.length&&(s.skills=e.skills.map(e=>ce.toJSON(e))),e.supportsAuthenticatedExtendedCard!==!1&&(s.supportsAuthenticatedExtendedCard=e.supportsAuthenticatedExtendedCard),(o=e.signatures)!=null&&o.length&&(s.signatures=e.signatures.map(e=>E.toJSON(e))),s}},T={fromJSON(e){return{url:W(e.url)?globalThis.String(e.url):``,organization:W(e.organization)?globalThis.String(e.organization):``}},toJSON(e){let t={};return e.url!==``&&(t.url=e.url),e.organization!==``&&(t.organization=e.organization),t}},oe={fromJSON(e){return{streaming:W(e.streaming)?globalThis.Boolean(e.streaming):!1,pushNotifications:W(e.pushNotifications)?globalThis.Boolean(e.pushNotifications):W(e.push_notifications)?globalThis.Boolean(e.push_notifications):!1,extensions:globalThis.Array.isArray(e==null?void 0:e.extensions)?e.extensions.map(e=>se.fromJSON(e)):[]}},toJSON(e){var t;let n={};return e.streaming!==!1&&(n.streaming=e.streaming),e.pushNotifications!==!1&&(n.pushNotifications=e.pushNotifications),(t=e.extensions)!=null&&t.length&&(n.extensions=e.extensions.map(e=>se.toJSON(e))),n}},se={fromJSON(e){return{uri:W(e.uri)?globalThis.String(e.uri):``,description:W(e.description)?globalThis.String(e.description):``,required:W(e.required)?globalThis.Boolean(e.required):!1,params:U(e.params)?e.params:void 0}},toJSON(e){let t={};return e.uri!==``&&(t.uri=e.uri),e.description!==``&&(t.description=e.description),e.required!==!1&&(t.required=e.required),e.params!==void 0&&(t.params=e.params),t}},ce={fromJSON(e){return{id:W(e.id)?globalThis.String(e.id):``,name:W(e.name)?globalThis.String(e.name):``,description:W(e.description)?globalThis.String(e.description):``,tags:globalThis.Array.isArray(e==null?void 0:e.tags)?e.tags.map(e=>globalThis.String(e)):[],examples:globalThis.Array.isArray(e==null?void 0:e.examples)?e.examples.map(e=>globalThis.String(e)):[],inputModes:globalThis.Array.isArray(e==null?void 0:e.inputModes)?e.inputModes.map(e=>globalThis.String(e)):globalThis.Array.isArray(e==null?void 0:e.input_modes)?e.input_modes.map(e=>globalThis.String(e)):[],outputModes:globalThis.Array.isArray(e==null?void 0:e.outputModes)?e.outputModes.map(e=>globalThis.String(e)):globalThis.Array.isArray(e==null?void 0:e.output_modes)?e.output_modes.map(e=>globalThis.String(e)):[],security:globalThis.Array.isArray(e==null?void 0:e.security)?e.security.map(e=>k.fromJSON(e)):[]}},toJSON(e){var t,n,r,i,a;let o={};return e.id!==``&&(o.id=e.id),e.name!==``&&(o.name=e.name),e.description!==``&&(o.description=e.description),(t=e.tags)!=null&&t.length&&(o.tags=e.tags),(n=e.examples)!=null&&n.length&&(o.examples=e.examples),(r=e.inputModes)!=null&&r.length&&(o.inputModes=e.inputModes),(i=e.outputModes)!=null&&i.length&&(o.outputModes=e.outputModes),(a=e.security)!=null&&a.length&&(o.security=e.security.map(e=>k.toJSON(e))),o}},E={fromJSON(e){return{protected:W(e.protected)?globalThis.String(e.protected):``,signature:W(e.signature)?globalThis.String(e.signature):``,header:U(e.header)?e.header:void 0}},toJSON(e){let t={};return e.protected!==``&&(t.protected=e.protected),e.signature!==``&&(t.signature=e.signature),e.header!==void 0&&(t.header=e.header),t}},D={fromJSON(e){return{name:W(e.name)?globalThis.String(e.name):``,pushNotificationConfig:W(e.pushNotificationConfig)?S.fromJSON(e.pushNotificationConfig):W(e.push_notification_config)?S.fromJSON(e.push_notification_config):void 0}},toJSON(e){let t={};return e.name!==``&&(t.name=e.name),e.pushNotificationConfig!==void 0&&(t.pushNotificationConfig=S.toJSON(e.pushNotificationConfig)),t}},O={fromJSON(e){return{list:globalThis.Array.isArray(e==null?void 0:e.list)?e.list.map(e=>globalThis.String(e)):[]}},toJSON(e){var t;let n={};return(t=e.list)!=null&&t.length&&(n.list=e.list),n}},k={fromJSON(e){return{schemes:U(e.schemes)?globalThis.Object.entries(e.schemes).reduce((e,[t,n])=>(e[t]=O.fromJSON(n),e),{}):{}}},toJSON(e){let t={};if(e.schemes){let n=globalThis.Object.entries(e.schemes);n.length>0&&(t.schemes={},n.forEach(([e,n])=>{t.schemes[e]=O.toJSON(n)}))}return t}},A={fromJSON(e){return{scheme:W(e.apiKeySecurityScheme)?{$case:`apiKeySecurityScheme`,value:j.fromJSON(e.apiKeySecurityScheme)}:W(e.api_key_security_scheme)?{$case:`apiKeySecurityScheme`,value:j.fromJSON(e.api_key_security_scheme)}:W(e.httpAuthSecurityScheme)?{$case:`httpAuthSecurityScheme`,value:M.fromJSON(e.httpAuthSecurityScheme)}:W(e.http_auth_security_scheme)?{$case:`httpAuthSecurityScheme`,value:M.fromJSON(e.http_auth_security_scheme)}:W(e.oauth2SecurityScheme)?{$case:`oauth2SecurityScheme`,value:N.fromJSON(e.oauth2SecurityScheme)}:W(e.oauth2_security_scheme)?{$case:`oauth2SecurityScheme`,value:N.fromJSON(e.oauth2_security_scheme)}:W(e.openIdConnectSecurityScheme)?{$case:`openIdConnectSecurityScheme`,value:P.fromJSON(e.openIdConnectSecurityScheme)}:W(e.open_id_connect_security_scheme)?{$case:`openIdConnectSecurityScheme`,value:P.fromJSON(e.open_id_connect_security_scheme)}:W(e.mtlsSecurityScheme)?{$case:`mtlsSecurityScheme`,value:F.fromJSON(e.mtlsSecurityScheme)}:W(e.mtls_security_scheme)?{$case:`mtlsSecurityScheme`,value:F.fromJSON(e.mtls_security_scheme)}:void 0}},toJSON(e){var t,n,r,i,a;let o={};return((t=e.scheme)==null?void 0:t.$case)===`apiKeySecurityScheme`?o.apiKeySecurityScheme=j.toJSON(e.scheme.value):((n=e.scheme)==null?void 0:n.$case)===`httpAuthSecurityScheme`?o.httpAuthSecurityScheme=M.toJSON(e.scheme.value):((r=e.scheme)==null?void 0:r.$case)===`oauth2SecurityScheme`?o.oauth2SecurityScheme=N.toJSON(e.scheme.value):((i=e.scheme)==null?void 0:i.$case)===`openIdConnectSecurityScheme`?o.openIdConnectSecurityScheme=P.toJSON(e.scheme.value):((a=e.scheme)==null?void 0:a.$case)===`mtlsSecurityScheme`&&(o.mtlsSecurityScheme=F.toJSON(e.scheme.value)),o}},j={fromJSON(e){return{description:W(e.description)?globalThis.String(e.description):``,location:W(e.location)?globalThis.String(e.location):``,name:W(e.name)?globalThis.String(e.name):``}},toJSON(e){let t={};return e.description!==``&&(t.description=e.description),e.location!==``&&(t.location=e.location),e.name!==``&&(t.name=e.name),t}},M={fromJSON(e){return{description:W(e.description)?globalThis.String(e.description):``,scheme:W(e.scheme)?globalThis.String(e.scheme):``,bearerFormat:W(e.bearerFormat)?globalThis.String(e.bearerFormat):W(e.bearer_format)?globalThis.String(e.bearer_format):``}},toJSON(e){let t={};return e.description!==``&&(t.description=e.description),e.scheme!==``&&(t.scheme=e.scheme),e.bearerFormat!==``&&(t.bearerFormat=e.bearerFormat),t}},N={fromJSON(e){return{description:W(e.description)?globalThis.String(e.description):``,flows:W(e.flows)?I.fromJSON(e.flows):void 0,oauth2MetadataUrl:W(e.oauth2MetadataUrl)?globalThis.String(e.oauth2MetadataUrl):W(e.oauth2_metadata_url)?globalThis.String(e.oauth2_metadata_url):``}},toJSON(e){let t={};return e.description!==``&&(t.description=e.description),e.flows!==void 0&&(t.flows=I.toJSON(e.flows)),e.oauth2MetadataUrl!==``&&(t.oauth2MetadataUrl=e.oauth2MetadataUrl),t}},P={fromJSON(e){return{description:W(e.description)?globalThis.String(e.description):``,openIdConnectUrl:W(e.openIdConnectUrl)?globalThis.String(e.openIdConnectUrl):W(e.open_id_connect_url)?globalThis.String(e.open_id_connect_url):``}},toJSON(e){let t={};return e.description!==``&&(t.description=e.description),e.openIdConnectUrl!==``&&(t.openIdConnectUrl=e.openIdConnectUrl),t}},F={fromJSON(e){return{description:W(e.description)?globalThis.String(e.description):``}},toJSON(e){let t={};return e.description!==``&&(t.description=e.description),t}},I={fromJSON(e){return{flow:W(e.authorizationCode)?{$case:`authorizationCode`,value:L.fromJSON(e.authorizationCode)}:W(e.authorization_code)?{$case:`authorizationCode`,value:L.fromJSON(e.authorization_code)}:W(e.clientCredentials)?{$case:`clientCredentials`,value:R.fromJSON(e.clientCredentials)}:W(e.client_credentials)?{$case:`clientCredentials`,value:R.fromJSON(e.client_credentials)}:W(e.implicit)?{$case:`implicit`,value:z.fromJSON(e.implicit)}:W(e.password)?{$case:`password`,value:B.fromJSON(e.password)}:void 0}},toJSON(e){var t,n,r,i;let a={};return((t=e.flow)==null?void 0:t.$case)===`authorizationCode`?a.authorizationCode=L.toJSON(e.flow.value):((n=e.flow)==null?void 0:n.$case)===`clientCredentials`?a.clientCredentials=R.toJSON(e.flow.value):((r=e.flow)==null?void 0:r.$case)===`implicit`?a.implicit=z.toJSON(e.flow.value):((i=e.flow)==null?void 0:i.$case)===`password`&&(a.password=B.toJSON(e.flow.value)),a}},L={fromJSON(e){return{authorizationUrl:W(e.authorizationUrl)?globalThis.String(e.authorizationUrl):W(e.authorization_url)?globalThis.String(e.authorization_url):``,tokenUrl:W(e.tokenUrl)?globalThis.String(e.tokenUrl):W(e.token_url)?globalThis.String(e.token_url):``,refreshUrl:W(e.refreshUrl)?globalThis.String(e.refreshUrl):W(e.refresh_url)?globalThis.String(e.refresh_url):``,scopes:U(e.scopes)?globalThis.Object.entries(e.scopes).reduce((e,[t,n])=>(e[t]=globalThis.String(n),e),{}):{}}},toJSON(e){let t={};if(e.authorizationUrl!==``&&(t.authorizationUrl=e.authorizationUrl),e.tokenUrl!==``&&(t.tokenUrl=e.tokenUrl),e.refreshUrl!==``&&(t.refreshUrl=e.refreshUrl),e.scopes){let n=globalThis.Object.entries(e.scopes);n.length>0&&(t.scopes={},n.forEach(([e,n])=>{t.scopes[e]=n}))}return t}},R={fromJSON(e){return{tokenUrl:W(e.tokenUrl)?globalThis.String(e.tokenUrl):W(e.token_url)?globalThis.String(e.token_url):``,refreshUrl:W(e.refreshUrl)?globalThis.String(e.refreshUrl):W(e.refresh_url)?globalThis.String(e.refresh_url):``,scopes:U(e.scopes)?globalThis.Object.entries(e.scopes).reduce((e,[t,n])=>(e[t]=globalThis.String(n),e),{}):{}}},toJSON(e){let t={};if(e.tokenUrl!==``&&(t.tokenUrl=e.tokenUrl),e.refreshUrl!==``&&(t.refreshUrl=e.refreshUrl),e.scopes){let n=globalThis.Object.entries(e.scopes);n.length>0&&(t.scopes={},n.forEach(([e,n])=>{t.scopes[e]=n}))}return t}},z={fromJSON(e){return{authorizationUrl:W(e.authorizationUrl)?globalThis.String(e.authorizationUrl):W(e.authorization_url)?globalThis.String(e.authorization_url):``,refreshUrl:W(e.refreshUrl)?globalThis.String(e.refreshUrl):W(e.refresh_url)?globalThis.String(e.refresh_url):``,scopes:U(e.scopes)?globalThis.Object.entries(e.scopes).reduce((e,[t,n])=>(e[t]=globalThis.String(n),e),{}):{}}},toJSON(e){let t={};if(e.authorizationUrl!==``&&(t.authorizationUrl=e.authorizationUrl),e.refreshUrl!==``&&(t.refreshUrl=e.refreshUrl),e.scopes){let n=globalThis.Object.entries(e.scopes);n.length>0&&(t.scopes={},n.forEach(([e,n])=>{t.scopes[e]=n}))}return t}},B={fromJSON(e){return{tokenUrl:W(e.tokenUrl)?globalThis.String(e.tokenUrl):W(e.token_url)?globalThis.String(e.token_url):``,refreshUrl:W(e.refreshUrl)?globalThis.String(e.refreshUrl):W(e.refresh_url)?globalThis.String(e.refresh_url):``,scopes:U(e.scopes)?globalThis.Object.entries(e.scopes).reduce((e,[t,n])=>(e[t]=globalThis.String(n),e),{}):{}}},toJSON(e){let t={};if(e.tokenUrl!==``&&(t.tokenUrl=e.tokenUrl),e.refreshUrl!==``&&(t.refreshUrl=e.refreshUrl),e.scopes){let n=globalThis.Object.entries(e.scopes);n.length>0&&(t.scopes={},n.forEach(([e,n])=>{t.scopes[e]=n}))}return t}},V={fromJSON(e){return{request:W(e.message)?v.fromJSON(e.message):W(e.request)?v.fromJSON(e.request):void 0,configuration:W(e.configuration)?f.fromJSON(e.configuration):void 0,metadata:U(e.metadata)?e.metadata:void 0}},toJSON(e){let t={};return e.request!==void 0&&(t.message=v.toJSON(e.request)),e.configuration!==void 0&&(t.configuration=f.toJSON(e.configuration)),e.metadata!==void 0&&(t.metadata=e.metadata),t}},le={fromJSON(e){return{payload:W(e.task)?{$case:`task`,value:p.fromJSON(e.task)}:W(e.message)?{$case:`msg`,value:v.fromJSON(e.message)}:W(e.msg)?{$case:`msg`,value:v.fromJSON(e.msg)}:void 0}},toJSON(e){var t,n;let r={};return((t=e.payload)==null?void 0:t.$case)===`task`?r.task=p.toJSON(e.payload.value):((n=e.payload)==null?void 0:n.$case)===`msg`&&(r.message=v.toJSON(e.payload.value)),r}},ue={fromJSON(e){return{payload:W(e.task)?{$case:`task`,value:p.fromJSON(e.task)}:W(e.message)?{$case:`msg`,value:v.fromJSON(e.message)}:W(e.msg)?{$case:`msg`,value:v.fromJSON(e.msg)}:W(e.statusUpdate)?{$case:`statusUpdate`,value:b.fromJSON(e.statusUpdate)}:W(e.status_update)?{$case:`statusUpdate`,value:b.fromJSON(e.status_update)}:W(e.artifactUpdate)?{$case:`artifactUpdate`,value:x.fromJSON(e.artifactUpdate)}:W(e.artifact_update)?{$case:`artifactUpdate`,value:x.fromJSON(e.artifact_update)}:void 0}},toJSON(e){var t,n,r,i;let a={};return((t=e.payload)==null?void 0:t.$case)===`task`?a.task=p.toJSON(e.payload.value):((n=e.payload)==null?void 0:n.$case)===`msg`?a.message=v.toJSON(e.payload.value):((r=e.payload)==null?void 0:r.$case)===`statusUpdate`?a.statusUpdate=b.toJSON(e.payload.value):((i=e.payload)==null?void 0:i.$case)===`artifactUpdate`&&(a.artifactUpdate=x.toJSON(e.payload.value)),a}},de={fromJSON(e){return{configs:globalThis.Array.isArray(e==null?void 0:e.configs)?e.configs.map(e=>D.fromJSON(e)):[],nextPageToken:W(e.nextPageToken)?globalThis.String(e.nextPageToken):W(e.next_page_token)?globalThis.String(e.next_page_token):``}},toJSON(e){var t;let n={};return(t=e.configs)!=null&&t.length&&(n.configs=e.configs.map(e=>D.toJSON(e))),e.nextPageToken!==``&&(n.nextPageToken=e.nextPageToken),n}};function H(e){return Uint8Array.from(globalThis.Buffer.from(e,`base64`))}function fe(e){return globalThis.Buffer.from(e).toString(`base64`)}function U(e){return typeof e==`object`&&!!e}function W(e){return e!=null}var pe=/^tasks\/([^/]+)\/pushNotificationConfigs\/([^/]+)$/,me=/^tasks\/([^/]+)(?:\/|$)/,G=e=>{let t=e.match(me);if(!t)throw d.invalidParams(`Invalid or missing task ID in: "${e}"`);return t[1]},K=e=>`tasks/${e}`,q=e=>{let t=e.match(pe);if(!t)throw d.invalidParams(`Invalid or missing config ID in: "${e}"`);return{taskId:t[1],configId:t[2]}},J=(e,t)=>`tasks/${e}/pushNotificationConfigs/${t}`,Y=class e{static agentCard(t){var n,r,i;return{protocolVersion:t.protocolVersion,name:t.name,description:t.description,url:t.url,preferredTransport:t.preferredTransport??``,additionalInterfaces:((n=t.additionalInterfaces)==null?void 0:n.map(t=>e.agentInterface(t)))??[],provider:e.agentProvider(t.provider),version:t.version,documentationUrl:t.documentationUrl??``,capabilities:e.agentCapabilities(t.capabilities),securitySchemes:t.securitySchemes?Object.fromEntries(Object.entries(t.securitySchemes).map(([t,n])=>[t,e.securityScheme(n)])):{},security:((r=t.security)==null?void 0:r.map(t=>e.security(t)))??[],defaultInputModes:t.defaultInputModes,defaultOutputModes:t.defaultOutputModes,skills:t.skills.map(t=>e.agentSkill(t)),supportsAuthenticatedExtendedCard:t.supportsAuthenticatedExtendedCard,signatures:((i=t.signatures)==null?void 0:i.map(t=>e.agentCardSignature(t)))??[]}}static agentCardSignature(e){return{protected:e.protected,signature:e.signature,header:e.header}}static agentSkill(t){return{id:t.id,name:t.name,description:t.description,tags:t.tags??[],examples:t.examples??[],inputModes:t.inputModes??[],outputModes:t.outputModes??[],security:t.security?t.security.map(t=>e.security(t)):[]}}static security(e){return{schemes:Object.fromEntries(Object.entries(e).map(([e,t])=>[e,{list:t}]))}}static securityScheme(t){switch(t.type){case`apiKey`:return{scheme:{$case:`apiKeySecurityScheme`,value:{name:t.name,location:t.in,description:t.description??``}}};case`http`:return{scheme:{$case:`httpAuthSecurityScheme`,value:{description:t.description??``,scheme:t.scheme,bearerFormat:t.bearerFormat??``}}};case`mutualTLS`:return{scheme:{$case:`mtlsSecurityScheme`,value:{description:t.description??``}}};case`oauth2`:return{scheme:{$case:`oauth2SecurityScheme`,value:{description:t.description??``,flows:e.oauthFlows(t.flows),oauth2MetadataUrl:t.oauth2MetadataUrl??``}}};case`openIdConnect`:return{scheme:{$case:`openIdConnectSecurityScheme`,value:{description:t.description??``,openIdConnectUrl:t.openIdConnectUrl}}};default:throw d.internalError(`Unsupported security scheme type`)}}static oauthFlows(e){if(e.implicit)return{flow:{$case:`implicit`,value:{authorizationUrl:e.implicit.authorizationUrl,scopes:e.implicit.scopes,refreshUrl:e.implicit.refreshUrl??``}}};if(e.password)return{flow:{$case:`password`,value:{tokenUrl:e.password.tokenUrl,scopes:e.password.scopes,refreshUrl:e.password.refreshUrl??``}}};if(e.clientCredentials)return{flow:{$case:`clientCredentials`,value:{tokenUrl:e.clientCredentials.tokenUrl,scopes:e.clientCredentials.scopes,refreshUrl:e.clientCredentials.refreshUrl??``}}};if(e.authorizationCode)return{flow:{$case:`authorizationCode`,value:{authorizationUrl:e.authorizationCode.authorizationUrl,tokenUrl:e.authorizationCode.tokenUrl,scopes:e.authorizationCode.scopes,refreshUrl:e.authorizationCode.refreshUrl??``}}};throw d.internalError(`Unsupported OAuth flows`)}static agentInterface(e){return{transport:e.transport,url:e.url}}static agentProvider(e){if(e)return{url:e.url,organization:e.organization}}static agentCapabilities(t){return{streaming:t.streaming,pushNotifications:t.pushNotifications,extensions:t.extensions?t.extensions.map(t=>e.agentExtension(t)):[]}}static agentExtension(e){return{uri:e.uri,description:e.description??``,required:e.required??!1,params:e.params}}static listTaskPushNotificationConfig(t){return{configs:t.map(t=>e.taskPushNotificationConfig(t)),nextPageToken:``}}static getTaskPushNotificationConfigParams(e){return{name:J(e.id,e.pushNotificationConfigId)}}static listTaskPushNotificationConfigParams(e){return{parent:K(e.id),pageToken:``,pageSize:0}}static deleteTaskPushNotificationConfigParams(e){return{name:J(e.id,e.pushNotificationConfigId)}}static taskPushNotificationConfig(t){return{name:J(t.taskId,t.pushNotificationConfig.id??``),pushNotificationConfig:e.pushNotificationConfig(t.pushNotificationConfig)}}static taskPushNotificationConfigCreate(t){return{parent:K(t.taskId),config:e.taskPushNotificationConfig(t),configId:t.pushNotificationConfig.id}}static pushNotificationConfig(t){if(t)return{id:t.id??``,url:t.url,token:t.token??``,authentication:e.pushNotificationAuthenticationInfo(t.authentication)}}static pushNotificationAuthenticationInfo(e){if(e)return{schemes:e.schemes,credentials:e.credentials??``}}static messageStreamResult(t){if(t.kind===`message`)return{payload:{$case:`msg`,value:e.message(t)}};if(t.kind===`task`)return{payload:{$case:`task`,value:e.task(t)}};if(t.kind===`status-update`)return{payload:{$case:`statusUpdate`,value:e.taskStatusUpdateEvent(t)}};if(t.kind===`artifact-update`)return{payload:{$case:`artifactUpdate`,value:e.taskArtifactUpdateEvent(t)}};throw d.internalError(`Invalid event type`)}static taskStatusUpdateEvent(t){return{taskId:t.taskId,status:e.taskStatus(t.status),contextId:t.contextId,metadata:t.metadata,final:t.final}}static taskArtifactUpdateEvent(t){return{taskId:t.taskId,artifact:e.artifact(t.artifact),contextId:t.contextId,metadata:t.metadata,append:t.append,lastChunk:t.lastChunk}}static messageSendResult(t){if(t.kind===`message`)return{payload:{$case:`msg`,value:e.message(t)}};if(t.kind===`task`)return{payload:{$case:`task`,value:e.task(t)}}}static message(t){if(t)return{messageId:t.messageId,content:t.parts.map(t=>e.part(t)),contextId:t.contextId??``,taskId:t.taskId??``,role:e.role(t.role),metadata:t.metadata,extensions:t.extensions??[]}}static role(e){switch(e){case`agent`:return 2;case`user`:return 1;default:throw d.internalError(`Invalid role`)}}static task(t){var n,r;return{id:t.id,contextId:t.contextId,status:e.taskStatus(t.status),artifacts:((n=t.artifacts)==null?void 0:n.map(t=>e.artifact(t)))??[],history:((r=t.history)==null?void 0:r.map(t=>e.message(t)))??[],metadata:t.metadata}}static taskStatus(t){return{state:e.taskState(t.state),update:e.message(t.message),timestamp:t.timestamp}}static artifact(t){return{artifactId:t.artifactId,name:t.name??``,description:t.description??``,parts:t.parts.map(t=>e.part(t)),metadata:t.metadata,extensions:t.extensions?t.extensions:[]}}static taskState(e){switch(e){case`submitted`:return 1;case`working`:return 2;case`input-required`:return 6;case`rejected`:return 7;case`auth-required`:return 8;case`completed`:return 3;case`failed`:return 4;case`canceled`:return 5;case`unknown`:return 0;default:return-1}}static part(e){if(e.kind===`text`)return{part:{$case:`text`,value:e.text}};if(e.kind===`file`){let t;if(`uri`in e.file)t={file:{$case:`fileWithUri`,value:e.file.uri},mimeType:e.file.mimeType};else if(`bytes`in e.file)t={file:{$case:`fileWithBytes`,value:Buffer.from(e.file.bytes,`base64`)},mimeType:e.file.mimeType};else throw d.internalError(`Invalid file part`);return{part:{$case:`file`,value:t}}}if(e.kind===`data`)return{part:{$case:`data`,value:{data:e.data}}};throw d.internalError(`Invalid part type`)}static messageSendParams(t){return{request:e.message(t.message),configuration:e.configuration(t.configuration),metadata:t.metadata}}static configuration(t){if(t)return{blocking:t.blocking,acceptedOutputModes:t.acceptedOutputModes??[],pushNotification:e.pushNotificationConfig(t.pushNotificationConfig),historyLength:t.historyLength??0}}static taskQueryParams(e){return{name:K(e.id),historyLength:e.historyLength??0}}static cancelTaskRequest(e){return{name:K(e.id)}}static taskIdParams(e){return{name:K(e.id)}}static getAgentCardRequest(){return{}}},X=class e{static taskQueryParams(e){return{id:G(e.name),historyLength:e.historyLength}}static taskIdParams(e){return{id:G(e.name)}}static getTaskPushNotificationConfigParams(e){let{taskId:t,configId:n}=q(e.name);return{id:t,pushNotificationConfigId:n}}static listTaskPushNotificationConfigParams(e){return{id:G(e.parent)}}static createTaskPushNotificationConfig(t){var n;if(!((n=t.config)!=null&&n.pushNotificationConfig))throw d.invalidParams("Request must include a `config` object with a `pushNotificationConfig`");return{taskId:G(t.parent),pushNotificationConfig:e.pushNotificationConfig(t.config.pushNotificationConfig)}}static deleteTaskPushNotificationConfigParams(e){let{taskId:t,configId:n}=q(e.name);return{id:t,pushNotificationConfigId:n}}static message(t){if(t)return{kind:`message`,messageId:t.messageId,parts:t.content.map(t=>e.part(t)),contextId:t.contextId||void 0,taskId:t.taskId||void 0,role:e.role(t.role),metadata:t.metadata,extensions:t.extensions}}static role(e){switch(e){case 2:return`agent`;case 1:return`user`;default:throw d.invalidParams(`Invalid role: ${e}`)}}static messageSendConfiguration(t){if(t)return{blocking:t.blocking,acceptedOutputModes:t.acceptedOutputModes,pushNotificationConfig:e.pushNotificationConfig(t.pushNotification)}}static pushNotificationConfig(t){if(t)return{id:t.id,url:t.url,token:t.token||void 0,authentication:e.pushNotificationAuthenticationInfo(t.authentication)}}static pushNotificationAuthenticationInfo(e){if(e)return{schemes:e.schemes,credentials:e.credentials}}static part(e){var t,n,r;if(((t=e.part)==null?void 0:t.$case)===`text`)return{kind:`text`,text:e.part.value};if(((n=e.part)==null?void 0:n.$case)===`file`){var i,a;let t=e.part.value;if(((i=t.file)==null?void 0:i.$case)===`fileWithUri`)return{kind:`file`,file:{uri:t.file.value,mimeType:t.mimeType}};if(((a=t.file)==null?void 0:a.$case)===`fileWithBytes`)return{kind:`file`,file:{bytes:t.file.value.toString(`base64`),mimeType:t.mimeType}};throw d.invalidParams(`Invalid file part type`)}if(((r=e.part)==null?void 0:r.$case)===`data`)return{kind:`data`,data:e.part.value.data};throw d.invalidParams(`Invalid part type`)}static messageSendParams(t){return{message:e.message(t.request),configuration:e.messageSendConfiguration(t.configuration),metadata:t.metadata}}static sendMessageResult(t){var n,r;if(((n=t.payload)==null?void 0:n.$case)===`task`)return e.task(t.payload.value);if(((r=t.payload)==null?void 0:r.$case)===`msg`)return e.message(t.payload.value);throw d.invalidParams(`Invalid SendMessageResponse: missing result`)}static task(t){var n,r;return{kind:`task`,id:t.id,status:e.taskStatus(t.status),contextId:t.contextId,artifacts:(n=t.artifacts)==null?void 0:n.map(t=>e.artifact(t)),history:(r=t.history)==null?void 0:r.map(t=>e.message(t)),metadata:t.metadata}}static taskStatus(t){return{message:e.message(t.update),state:e.taskState(t.state),timestamp:t.timestamp}}static taskState(e){switch(e){case 1:return`submitted`;case 2:return`working`;case 6:return`input-required`;case 3:return`completed`;case 5:return`canceled`;case 4:return`failed`;case 7:return`rejected`;case 8:return`auth-required`;case 0:return`unknown`;default:throw d.invalidParams(`Invalid task state: ${e}`)}}static artifact(t){return{artifactId:t.artifactId,name:t.name||void 0,description:t.description||void 0,parts:t.parts.map(t=>e.part(t)),metadata:t.metadata}}static taskPushNotificationConfig(t){return{taskId:G(t.name),pushNotificationConfig:e.pushNotificationConfig(t.pushNotificationConfig)}}static listTaskPushNotificationConfig(t){return t.configs.map(t=>e.taskPushNotificationConfig(t))}static agentCard(t){var n,r,i;return{additionalInterfaces:(n=t.additionalInterfaces)==null?void 0:n.map(t=>e.agentInterface(t)),capabilities:t.capabilities?e.agentCapabilities(t.capabilities):{},defaultInputModes:t.defaultInputModes,defaultOutputModes:t.defaultOutputModes,description:t.description,documentationUrl:t.documentationUrl||void 0,name:t.name,preferredTransport:t.preferredTransport,provider:t.provider?e.agentProvider(t.provider):void 0,protocolVersion:t.protocolVersion,security:(r=t.security)==null?void 0:r.map(t=>e.security(t)),securitySchemes:t.securitySchemes?Object.fromEntries(Object.entries(t.securitySchemes).map(([t,n])=>[t,e.securityScheme(n)])):{},skills:t.skills.map(t=>e.skills(t)),signatures:(i=t.signatures)==null?void 0:i.map(t=>e.agentCardSignature(t)),supportsAuthenticatedExtendedCard:t.supportsAuthenticatedExtendedCard,url:t.url,version:t.version}}static agentCapabilities(t){var n;return{extensions:(n=t.extensions)==null?void 0:n.map(t=>e.agentExtension(t)),pushNotifications:t.pushNotifications,streaming:t.streaming}}static agentExtension(e){return{uri:e.uri,description:e.description||void 0,required:e.required,params:e.params}}static agentInterface(e){return{transport:e.transport,url:e.url}}static agentProvider(e){return{organization:e.organization,url:e.url}}static security(e){var t;return Object.fromEntries((t=Object.entries(e.schemes))==null?void 0:t.map(([e,t])=>[e,t.list]))}static securityScheme(t){var n;switch((n=t.scheme)==null?void 0:n.$case){case`apiKeySecurityScheme`:return{type:`apiKey`,name:t.scheme.value.name,in:t.scheme.value.location,description:t.scheme.value.description||void 0};case`httpAuthSecurityScheme`:return{type:`http`,scheme:t.scheme.value.scheme,bearerFormat:t.scheme.value.bearerFormat||void 0,description:t.scheme.value.description||void 0};case`mtlsSecurityScheme`:return{type:`mutualTLS`,description:t.scheme.value.description||void 0};case`oauth2SecurityScheme`:return{type:`oauth2`,description:t.scheme.value.description||void 0,flows:e.oauthFlows(t.scheme.value.flows),oauth2MetadataUrl:t.scheme.value.oauth2MetadataUrl||void 0};case`openIdConnectSecurityScheme`:return{type:`openIdConnect`,description:t.scheme.value.description||void 0,openIdConnectUrl:t.scheme.value.openIdConnectUrl};default:throw d.internalError(`Unsupported security scheme type`)}}static oauthFlows(e){var t;switch((t=e.flow)==null?void 0:t.$case){case`implicit`:return{implicit:{authorizationUrl:e.flow.value.authorizationUrl,scopes:e.flow.value.scopes,refreshUrl:e.flow.value.refreshUrl||void 0}};case`password`:return{password:{refreshUrl:e.flow.value.refreshUrl||void 0,scopes:e.flow.value.scopes,tokenUrl:e.flow.value.tokenUrl}};case`authorizationCode`:return{authorizationCode:{refreshUrl:e.flow.value.refreshUrl||void 0,authorizationUrl:e.flow.value.authorizationUrl,scopes:e.flow.value.scopes,tokenUrl:e.flow.value.tokenUrl}};case`clientCredentials`:return{clientCredentials:{refreshUrl:e.flow.value.refreshUrl||void 0,scopes:e.flow.value.scopes,tokenUrl:e.flow.value.tokenUrl}};default:throw d.internalError(`Unsupported OAuth flows`)}}static skills(t){var n;return{id:t.id,name:t.name,description:t.description,tags:t.tags,examples:t.examples,inputModes:t.inputModes,outputModes:t.outputModes,security:(n=t.security)==null?void 0:n.map(t=>e.security(t))}}static agentCardSignature(e){return{protected:e.protected,signature:e.signature,header:e.header}}static taskStatusUpdateEvent(t){return{kind:`status-update`,taskId:t.taskId,status:e.taskStatus(t.status),contextId:t.contextId,metadata:t.metadata,final:t.final}}static taskArtifactUpdateEvent(t){return{kind:`artifact-update`,taskId:t.taskId,artifact:e.artifact(t.artifact),contextId:t.contextId,metadata:t.metadata,lastChunk:t.lastChunk}}static messageStreamResult(t){var n;switch((n=t.payload)==null?void 0:n.$case){case`msg`:return e.message(t.payload.value);case`task`:return e.task(t.payload.value);case`statusUpdate`:return e.taskStatusUpdateEvent(t.payload.value);case`artifactUpdate`:return e.taskArtifactUpdateEvent(t.payload.value);default:throw d.internalError(`Invalid event type in StreamResponse`)}}},Z,he,Q,$=class n{constructor(t){e(this,`customFetchImpl`,void 0),e(this,`endpoint`,void 0),e(this,`requestIdCounter`,1),this.endpoint=t.endpoint,this.customFetchImpl=t.fetchImpl}async getExtendedAgentCard(e,t){return(await this._sendRpcRequest(`agent/getAuthenticatedExtendedCard`,void 0,t,e)).result}async sendMessage(e,t,n){return(await this._sendRpcRequest(`message/send`,e,n,t)).result}async*sendMessageStream(e,t){yield*this._sendStreamingRequest(`message/stream`,e,t)}async setTaskPushNotificationConfig(e,t,n){return(await this._sendRpcRequest(`tasks/pushNotificationConfig/set`,e,n,t)).result}async getTaskPushNotificationConfig(e,t,n){return(await this._sendRpcRequest(`tasks/pushNotificationConfig/get`,e,n,t)).result}async listTaskPushNotificationConfig(e,t,n){return(await this._sendRpcRequest(`tasks/pushNotificationConfig/list`,e,n,t)).result}async deleteTaskPushNotificationConfig(e,t,n){await this._sendRpcRequest(`tasks/pushNotificationConfig/delete`,e,n,t)}async getTask(e,t,n){return(await this._sendRpcRequest(`tasks/get`,e,n,t)).result}async cancelTask(e,t,n){return(await this._sendRpcRequest(`tasks/cancel`,e,n,t)).result}async*resubscribeTask(e,t){yield*this._sendStreamingRequest(`tasks/resubscribe`,e,t)}async callExtensionMethod(e,t,n,r){return await this._sendRpcRequest(e,t,n,r)}_fetch(...e){if(this.customFetchImpl)return this.customFetchImpl(...e);if(typeof fetch==`function`)return fetch(...e);throw Error("A `fetch` implementation was not provided and is not available in the global scope. Please provide a `fetchImpl` in the A2ATransportOptions. ")}async _sendRpcRequest(e,t,r,i){let a=r??this.requestIdCounter++,o={jsonrpc:`2.0`,method:e,params:t,id:a},s=await this._fetchRpc(o,`application/json`,i);if(!s.ok){let t=`(empty or non-JSON response)`,r;try{t=await s.text(),r=JSON.parse(t)}catch(n){throw Error(`HTTP error for ${e}! Status: ${s.status} ${s.statusText}. Response: ${t}`,{cause:n})}throw r.jsonrpc&&r.error?n.mapToError(r):Error(`HTTP error for ${e}! Status: ${s.status} ${s.statusText}. Response: ${t}`)}let c=await s.json();if(c.id!==a&&console.error(`CRITICAL: RPC response ID mismatch for method ${e}. Expected ${a}, got ${c.id}.`),`error`in c)throw n.mapToError(c);return c}async _fetchRpc(e,t=`application/json`,n){let r={method:`POST`,headers:{...n==null?void 0:n.serviceParameters,"Content-Type":`application/json`,Accept:t},body:JSON.stringify(e),signal:n==null?void 0:n.signal};return this._fetch(this.endpoint,r)}async*_sendStreamingRequest(e,n,r){var i;let a=this.requestIdCounter++,o={jsonrpc:`2.0`,method:e,params:n,id:a},s=await this._fetchRpc(o,`text/event-stream`,r);if(!s.ok){let t=``,n;try{t=await s.text(),n=JSON.parse(t)}catch(n){throw Error(`HTTP error establishing stream for ${e}: ${s.status} ${s.statusText}. Response: ${t||`(empty)`}`,{cause:n})}throw n.error?Error(`HTTP error establishing stream for ${e}: ${s.status} ${s.statusText}. RPC Error: ${n.error.message} (Code: ${n.error.code})`):Error(`HTTP error establishing stream for ${e}: ${s.status} ${s.statusText}`)}if(!((i=s.headers.get(`Content-Type`))!=null&&i.startsWith(`text/event-stream`)))throw Error(`Invalid response Content-Type for SSE stream for ${e}. Expected 'text/event-stream'.`);for await(let e of t(s))yield this._processSseEventData(e.data,a)}_processSseEventData(e,t){if(!e.trim())throw Error(`Attempted to process empty SSE event data.`);try{let r=JSON.parse(e);if(r.id!==t&&console.warn(`SSE Event's JSON-RPC response ID mismatch. Client request ID: ${t}, event response ID: ${r.id}.`),`error`in r){let e=r.error;throw Error(`SSE event contained an error: ${e.message} (Code: ${e.code}) Data: ${JSON.stringify(e.data||{})}`,{cause:n.mapToError(r)})}if(!(`result`in r)||r.result===void 0)throw Error(`SSE event JSON-RPC response is missing 'result' field. Data: ${e}`);return r.result}catch(t){throw t instanceof Error&&(t.message.startsWith(`SSE event contained an error`)||t.message.startsWith(`SSE event JSON-RPC response is missing 'result' field`))?t:(console.error(`Failed to parse SSE event data string or unexpected JSON-RPC structure:`,e,t),Error(`Failed to parse SSE event data: "${e.substring(0,100)}...". Original error: ${t instanceof Error&&t.message||`Unknown error`}`))}}static mapToError(e){switch(e.error.code){case-32001:return new ve(e);case-32002:return new ye(e);case-32003:return new be(e);case-32004:return new xe(e);case-32005:return new Se(e);case-32006:return new Ce(e);case-32007:return new we(e);default:return new _e(e)}}},ge=(Z=class e{constructor(e){this.options=e}get protocolName(){return e.name}async create(e,t){var n;return new $({endpoint:e,fetchImpl:(n=this.options)==null?void 0:n.fetchImpl})}},e(Z,`name`,`JSONRPC`),Z),_e=class extends Error{constructor(e){super(`JSON-RPC error: ${e.error.message} (Code: ${e.error.code}) Data: ${JSON.stringify(e.error.data||{})}`),this.errorResponse=e}},ve=class extends a{constructor(e){super(),this.errorResponse=e}},ye=class extends o{constructor(e){super(),this.errorResponse=e}},be=class extends s{constructor(e){super(),this.errorResponse=e}},xe=class extends c{constructor(e){super(),this.errorResponse=e}},Se=class extends l{constructor(e){super(),this.errorResponse=e}},Ce=class extends ee{constructor(e){super(),this.errorResponse=e}},we=class extends u{constructor(e){super(),this.errorResponse=e}};he=class t{constructor(t,n){if(e(this,`agentCardPromise`,void 0),e(this,`customFetchImpl`,void 0),e(this,`serviceEndpointUrl`,void 0),e(this,`transport`,void 0),e(this,`requestIdCounter`,1),this.customFetchImpl=n==null?void 0:n.fetchImpl,typeof t==`string`)console.warn(`Warning: Constructing A2AClient with a URL is deprecated. Please use A2AClient.fromCardUrl() instead.`),this.agentCardPromise=this._fetchAndCacheAgentCard(t,n==null?void 0:n.agentCardPath);else{if(!t.url)throw Error(`Provided Agent Card does not contain a valid 'url' for the service endpoint.`);this.serviceEndpointUrl=t.url,this.agentCardPromise=Promise.resolve(t)}}_fetch(...e){if(this.customFetchImpl)return this.customFetchImpl(...e);if(typeof fetch==`function`)return fetch(...e);throw Error("A `fetch` implementation was not provided and is not available in the global scope. Please provide a `fetchImpl` in the A2AClientOptions. For earlier Node.js versions (pre-v18), you can use a library like `node-fetch`.")}static async fromCardUrl(e,n){let r=n==null?void 0:n.fetchImpl,i={headers:{Accept:`application/json`}},a;if(r)a=await r(e,i);else if(typeof fetch==`function`)a=await fetch(e,i);else throw Error("A `fetch` implementation was not provided and is not available in the global scope. Please provide a `fetchImpl` in the A2AClientOptions. For earlier Node.js versions (pre-v18), you can use a library like `node-fetch`.");if(!a.ok)throw Error(`Failed to fetch Agent Card from ${e}: ${a.status} ${a.statusText}`);let o;try{o=await a.json()}catch(t){throw console.error(`Failed to parse Agent Card JSON:`,t),Error(`Failed to parse Agent Card JSON from ${e}. Original error: ${t.message}`)}return new t(o,n)}async sendMessage(e){return await this.invokeJsonRpc((e,n,r)=>e.sendMessage(n,t.emptyOptions,r),e)}async*sendMessageStream(e){var t;if(!((t=(await this.agentCardPromise).capabilities)!=null&&t.streaming))throw Error(`Agent does not support streaming (AgentCard.capabilities.streaming is not true).`);yield*(await this._getOrCreateTransport()).sendMessageStream(e)}async setTaskPushNotificationConfig(e){var n;if(!((n=(await this.agentCardPromise).capabilities)!=null&&n.pushNotifications))throw Error(`Agent does not support push notifications (AgentCard.capabilities.pushNotifications is not true).`);return await this.invokeJsonRpc((e,n,r)=>e.setTaskPushNotificationConfig(n,t.emptyOptions,r),e)}async getTaskPushNotificationConfig(e){return await this.invokeJsonRpc((e,n,r)=>e.getTaskPushNotificationConfig(n,t.emptyOptions,r),e)}async listTaskPushNotificationConfig(e){return await this.invokeJsonRpc((e,n,r)=>e.listTaskPushNotificationConfig(n,t.emptyOptions,r),e)}async deleteTaskPushNotificationConfig(e){return await this.invokeJsonRpc((e,n,r)=>e.deleteTaskPushNotificationConfig(n,t.emptyOptions,r),e)}async getTask(e){return await this.invokeJsonRpc((e,n,r)=>e.getTask(n,t.emptyOptions,r),e)}async cancelTask(e){return await this.invokeJsonRpc((e,n,r)=>e.cancelTask(n,t.emptyOptions,r),e)}async callExtensionMethod(e,t){let n=await this._getOrCreateTransport();try{return await n.callExtensionMethod(e,t,this.requestIdCounter++)}catch(e){let t=Te(e);if(t)return t;throw e}}async*resubscribeTask(e){var t;if(!((t=(await this.agentCardPromise).capabilities)!=null&&t.streaming))throw Error(`Agent does not support streaming (required for tasks/resubscribe).`);yield*(await this._getOrCreateTransport()).resubscribeTask(e)}async _getOrCreateTransport(){if(this.transport)return this.transport;let e=await this._getServiceEndpoint();return this.transport=new $({fetchImpl:this.customFetchImpl,endpoint:e}),this.transport}async _fetchAndCacheAgentCard(e,t){try{let n=this.resolveAgentCardUrl(e,t),r=await this._fetch(n,{headers:{Accept:`application/json`}});if(!r.ok)throw Error(`Failed to fetch Agent Card from ${n}: ${r.status} ${r.statusText}`);let i=await r.json();if(!i.url)throw Error(`Fetched Agent Card does not contain a valid 'url' for the service endpoint.`);return this.serviceEndpointUrl=i.url,i}catch(e){throw console.error(`Error fetching or parsing Agent Card:`,e),e}}async getAgentCard(e,t){if(e){let n=this.resolveAgentCardUrl(e,t),r=await this._fetch(n,{headers:{Accept:`application/json`}});if(!r.ok)throw Error(`Failed to fetch Agent Card from ${n}: ${r.status} ${r.statusText}`);return await r.json()}return this.agentCardPromise}resolveAgentCardUrl(e,t=r){return`${e.replace(/\/$/,``)}/${t.replace(/^\//,``)}`}async _getServiceEndpoint(){if(this.serviceEndpointUrl)return this.serviceEndpointUrl;if(await this.agentCardPromise,!this.serviceEndpointUrl)throw Error(`Agent Card URL for RPC endpoint is not available. Fetching might have failed.`);return this.serviceEndpointUrl}async invokeJsonRpc(e,t){let n=await this._getOrCreateTransport(),r=this.requestIdCounter++;try{return{id:r,jsonrpc:`2.0`,result:await e(n,t,r)??null}}catch(e){let t=Te(e);if(t)return t;throw e}}},e(he,`emptyOptions`,void 0);function Te(e){if(e instanceof Object&&`errorResponse`in e&&e.errorResponse instanceof Object&&`jsonrpc`in e.errorResponse&&e.errorResponse.jsonrpc===`2.0`&&`error`in e.errorResponse&&e.errorResponse.error!==null)return e.errorResponse}new class{constructor(e){this.options=e}async resolve(e,t){var n;let r=new URL(t??((n=this.options)==null?void 0:n.path)??`.well-known/agent-card.json`,e),i=await this.fetchImpl(r);if(!i.ok)throw Error(`Failed to fetch Agent Card from ${r}: ${i.status}`);return await i.json()}fetchImpl(...e){var t;return(t=this.options)!=null&&t.fetchImpl?this.options.fetchImpl(...e):fetch(...e)}};var Ee=class n{constructor(t){e(this,`customFetchImpl`,void 0),e(this,`endpoint`,void 0),this.endpoint=t.endpoint.replace(/\/+$/,``),this.customFetchImpl=t.fetchImpl}async getExtendedAgentCard(e){let t=await this._sendRequest(`GET`,`/v1/card`,void 0,e,void 0,ae);return X.agentCard(t)}async sendMessage(e,t){let n=Y.messageSendParams(e),r=await this._sendRequest(`POST`,`/v1/message:send`,n,t,V,le);return X.sendMessageResult(r)}async*sendMessageStream(e,t){let n=Y.messageSendParams(e),r=V.toJSON(n);yield*this._sendStreamingRequest(`/v1/message:stream`,r,t)}async setTaskPushNotificationConfig(e,t){let n=Y.taskPushNotificationConfig(e),r=await this._sendRequest(`POST`,`/v1/tasks/${encodeURIComponent(e.taskId)}/pushNotificationConfigs`,n,t,D,D);return X.taskPushNotificationConfig(r)}async getTaskPushNotificationConfig(e,t){let{pushNotificationConfigId:n}=e;if(!n)throw Error(`pushNotificationConfigId is required for getTaskPushNotificationConfig with REST transport.`);let r=await this._sendRequest(`GET`,`/v1/tasks/${encodeURIComponent(e.id)}/pushNotificationConfigs/${encodeURIComponent(n)}`,void 0,t,void 0,D);return X.taskPushNotificationConfig(r)}async listTaskPushNotificationConfig(e,t){let n=await this._sendRequest(`GET`,`/v1/tasks/${encodeURIComponent(e.id)}/pushNotificationConfigs`,void 0,t,void 0,de);return X.listTaskPushNotificationConfig(n)}async deleteTaskPushNotificationConfig(e,t){await this._sendRequest(`DELETE`,`/v1/tasks/${encodeURIComponent(e.id)}/pushNotificationConfigs/${encodeURIComponent(e.pushNotificationConfigId)}`,void 0,t,void 0,void 0)}async getTask(e,t){let n=new URLSearchParams;e.historyLength!==void 0&&n.set(`historyLength`,String(e.historyLength));let r=n.toString(),i=`/v1/tasks/${encodeURIComponent(e.id)}${r?`?${r}`:``}`,a=await this._sendRequest(`GET`,i,void 0,t,void 0,p);return X.task(a)}async cancelTask(e,t){let n=await this._sendRequest(`POST`,`/v1/tasks/${encodeURIComponent(e.id)}:cancel`,void 0,t,void 0,p);return X.task(n)}async*resubscribeTask(e,t){yield*this._sendStreamingRequest(`/v1/tasks/${encodeURIComponent(e.id)}:subscribe`,void 0,t)}_fetch(...e){if(this.customFetchImpl)return this.customFetchImpl(...e);if(typeof fetch==`function`)return fetch(...e);throw Error("A `fetch` implementation was not provided and is not available in the global scope. Please provide a `fetchImpl` in the RestTransportOptions.")}_buildHeaders(e,t=`application/json`){return{...e==null?void 0:e.serviceParameters,"Content-Type":`application/json`,Accept:t}}async _sendRequest(e,t,n,r,i,a){let o=`${this.endpoint}${t}`,s={method:e,headers:this._buildHeaders(r),signal:r==null?void 0:r.signal};if(n!==void 0&&e!==`GET`){if(!i)throw Error(`Bug: Request body provided for ${e} ${t} but no toJson serializer provided.`);s.body=JSON.stringify(i.toJSON(n))}let c=await this._fetch(o,s);if(c.ok||await this._handleErrorResponse(c,t),c.status===204||!a)return;let l=await c.json();return a.fromJSON(l)}async _handleErrorResponse(e,t){let r=`(empty or non-JSON response)`,i;try{r=await e.text(),r&&(i=JSON.parse(r))}catch(n){throw Error(`HTTP error for ${t}! Status: ${e.status} ${e.statusText}. Response: ${r}`,{cause:n})}throw i&&typeof i.code==`number`?n.mapToError(i):Error(`HTTP error for ${t}! Status: ${e.status} ${e.statusText}. Response: ${r}`)}async*_sendStreamingRequest(e,r,i){let a=`${this.endpoint}${e}`,o={method:`POST`,headers:this._buildHeaders(i,`text/event-stream`),signal:i==null?void 0:i.signal};r!==void 0&&(o.body=JSON.stringify(r));let s=await this._fetch(a,o);s.ok||await this._handleErrorResponse(s,e);let c=s.headers.get(`Content-Type`);if(!(c!=null&&c.startsWith(`text/event-stream`)))throw Error(`Invalid response Content-Type for SSE stream. Expected 'text/event-stream', got '${c}'.`);for await(let e of t(s)){if(e.type===`error`){let t=JSON.parse(e.data);throw n.mapToError(t)}yield this._processSseEventData(e.data)}}_processSseEventData(e){if(!e.trim())throw Error(`Attempted to process empty SSE event data.`);try{let t=JSON.parse(e),n=ue.fromJSON(t);return X.messageStreamResult(n)}catch(t){throw console.error(`Failed to parse SSE event data:`,e,t),Error(`Failed to parse SSE event data: "${e.substring(0,100)}...". Original error: ${t instanceof Error&&t.message||`Unknown error`}`)}}static mapToError(e){switch(e.code){case i.TASK_NOT_FOUND:return new a(e.message);case i.TASK_NOT_CANCELABLE:return new o(e.message);case i.PUSH_NOTIFICATION_NOT_SUPPORTED:return new s(e.message);case i.UNSUPPORTED_OPERATION:return new c(e.message);case i.CONTENT_TYPE_NOT_SUPPORTED:return new l(e.message);case i.INVALID_AGENT_RESPONSE:return new ee(e.message);case i.AUTHENTICATED_EXTENDED_CARD_NOT_CONFIGURED:return new u(e.message);default:return Error(`REST error: ${e.message} (Code: ${e.code})${e.data?` Data: ${JSON.stringify(e.data)}`:``}`)}}},De=(Q=class e{constructor(e){this.options=e}get protocolName(){return e.name}async create(e,t){var n;return new Ee({endpoint:e,fetchImpl:(n=this.options)==null?void 0:n.fetchImpl})}},e(Q,`name`,`HTTP+JSON`),Q);new ge,new De;export{$ as JsonRpcTransport};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./defineProperty-BbfpZ9Tg.js";import{n,t as r}from"./jsx-runtime-DE3RlOCf.js";import{t as i}from"./createLucideIcon-D1A0JYKN.js";import{a,f as o,g as s,h as c,l}from"./floating-ui.utils.dom-ObnfY4F6.js";import{c as u,g as d,h as f,l as p,s as m}from"./button-CO0tH6F2.js";import{$ as ee,Gt as te,Ht as h,Jt as g,Kt as ne,Ot as re,P as _,Q as v,U as ie,X as ae,Xt as y,Y as oe,Yt as b,Z as se,_t as ce,at as le,bt as x,et as ue,ft as de,gt as S,ht as C,in as fe,it as pe,ln as me,lt as he,nn as ge,on as _e,rn as ve,rt as ye,sn as be,un as xe,vt as w,xt as Se,yt as Ce,z as we}from"./useBaseUiId-Dpqq0brK.js";var T={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};T.node;var E=i(T),D=e(n(),1),O=0;function Te(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(O);function a(){i&&!i()||e==null||e.focus({preventScroll:n})}if(r)return a(),m;let o=requestAnimationFrame(a);return O=o,()=>{O===o&&(cancelAnimationFrame(o),O=0)}}var k={inert:new WeakMap,"aria-hidden":new WeakMap},A=`data-base-ui-inert`,j={inert:new WeakSet,"aria-hidden":new WeakSet},M=new WeakMap,N=0;function Ee(e){return j[e]}function P(e){return e?s(e)?e.host:P(e.parentNode):null}var F=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=P(t);return e.contains(n)?n:null}).filter(e=>e!=null),I=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},L=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{a(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function De(e,t,n,r,{mark:i=!0}){let a=null;r?a=`inert`:n&&(a=`aria-hidden`);let o=null,s=null,c=F(t,e),l=i?L(t,I(c),new Set(c)):[],u=[],d=[];if(a){let e=k[a],n=Ee(a);s=n,o=e;let r=F(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=c.concat(r);L(t,I(i),new Set(i)).forEach(t=>{let r=t.getAttribute(a),i=r!==null&&r!==`false`,o=(e.get(t)||0)+1;e.set(t,o),u.push(t),o===1&&i&&n.add(t),i||t.setAttribute(a,a===`inert`?``:`true`)})}return i&&l.forEach(e=>{let t=(M.get(e)||0)+1;M.set(e,t),d.push(e),t===1&&e.setAttribute(A,``)}),N+=1,()=>{o&&u.forEach(e=>{let t=(o.get(e)||0)-1;o.set(e,t),t||(!(s!=null&&s.has(e))&&a&&e.removeAttribute(a),s==null||s.delete(e))}),i&&d.forEach(e=>{let t=(M.get(e)||0)-1;M.set(e,t),t||e.removeAttribute(A)}),--N,N||(k.inert=new WeakMap,k[`aria-hidden`]=new WeakMap,j.inert=new WeakSet,j[`aria-hidden`]=new WeakSet,M=new WeakMap)}}function Oe(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0}=t,a=C(e[0]).body;return De(e,a,n,r,{mark:i})}var R=r();function ke(e,t){let n=l(y(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var z=20,B=[];function Ae(){B=B.filter(e=>{var t;return(t=e.deref())==null?void 0:t.isConnected})}function je(e){Ae(),e&&a(e)!==`body`&&(B.push(new WeakRef(e)),B.length>z&&(B=B.slice(-20)))}function Me(){var e;return Ae(),(e=B[B.length-1])==null?void 0:e.deref()}function Ne(e){return e?pe(e)?e:le(e)[0]||e:null}function Pe(e){var t;if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!((t=e.getAttribute(`role`))!=null&&t.includes(`dialog`)))return;let n=v(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return pe(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);n.length===0?r!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function V(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:s=!0,restoreFocus:c=!1,modal:l=!0,closeOnFocusOut:u=!0,openInteractionType:m=``,nextFocusableElement:v,previousFocusableElement:S,beforeContentFocusGuardRef:me,externalTree:be,getInsideElements:T}=e,E=`rootStore`in t?t.rootStore:t,O=E.useState(`open`),k=E.useState(`domReferenceElement`),A=E.useState(`floatingElement`),{events:j,dataRef:M}=E.context,N=d(()=>{var e;return(e=M.current.floatingContext)==null?void 0:e.nodeId}),Ee=i===!1,P=te(k)&&Ee,F=w(i),I=w(s),L=w(m),De=w(O),z=we(be),B=ie(),V=D.useRef(!1),H=D.useRef(!1),U=D.useRef(!1),W=D.useRef(null),G=D.useRef(``),K=D.useRef(``),q=D.useRef(null),J=D.useRef(null),Fe=p(q,me,B==null?void 0:B.beforeInsideRef),Ie=p(J,B==null?void 0:B.afterInsideRef),Le=xe(),Y=xe(),X=ce(),Re=B!=null,Z=h(A),Q=d((e=Z)=>e?le(e):[]),$=d(()=>(T==null?void 0:T().filter(e=>e!=null))??[]);D.useEffect(()=>{if(r||!l)return;function e(e){e.key===`Tab`&&b(Z,g(C(Z)))&&Q().length===0&&!P&&fe(e)}let t=C(Z);return x(t,`keydown`,e)},[r,Z,l,P,Q]),D.useEffect(()=>{if(r||!O)return;let e=C(Z);function t(){U.current=!1}function n(e){let t=y(e),n=$(),r=b(A,t)||b(k,t)||b(B==null?void 0:B.portalNode,t)||n.some(e=>e===t||b(e,t));U.current=!r,K.current=e.pointerType||`keyboard`,t!=null&&t.closest(`[data-base-ui-click-trigger]`)&&(H.current=!0,Y.start(0,()=>{H.current=!1}))}function i(){K.current=`keyboard`}return Ce(x(e,`pointerdown`,n,!0),x(e,`pointerup`,t,!0),x(e,`pointercancel`,t,!0),x(e,`keydown`,i,!0),t)},[r,A,k,Z,O,B,Y,$]),D.useEffect(()=>{if(r||!u)return;let e=C(Z);function t(){H.current=!0,Y.start(0,()=>{H.current=!1})}function n(e){let t=y(e);pe(t)&&(W.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=y(t);l&&n==null&&i!=null&&b(A,i)&&je(i),queueMicrotask(()=>{let a=N(),s=E.context.triggerElements,u=$(),d=(n==null?void 0:n.hasAttribute(oe(`focus-guard`)))&&[q.current,J.current,B==null?void 0:B.beforeInsideRef.current,B==null?void 0:B.afterInsideRef.current,B==null?void 0:B.beforeOutsideRef.current,B==null?void 0:B.afterOutsideRef.current,_(S),_(v)].includes(n),f=!(b(k,n)||b(A,n)||b(n,A)||b(B==null?void 0:B.portalNode,n)||u.some(e=>e===n||b(e,n))||n!=null&&s.hasElement(n)||s.hasMatchingElement(e=>b(e,n))||d||z&&(se(z.nodesRef.current,a).find(e=>{var t,r;return b((t=e.context)==null?void 0:t.elements.floating,n)||b((r=e.context)==null?void 0:r.elements.domReference,n)})||ae(z.nodesRef.current,a).find(e=>{var t,r,i;return[(t=e.context)==null?void 0:t.elements.floating,h((r=e.context)==null?void 0:r.elements.floating)].includes(n)||((i=e.context)==null?void 0:i.elements.domReference)===n})));if(r===k&&Z&&Pe(Z),c&&r!==k&&!he(i)&&g(e)===e.body){if(o(Z)&&(Z.focus(),c===`popup`)){X.request(()=>{Z.focus()});return}let e=Q(),t=W.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||Z;o(n)&&n.focus()}if(M.current.insideReactTree){M.current.insideReactTree=!1;return}(P||!l)&&n&&f&&!H.current&&(P||n!==Me())&&(V.current=!0,E.setOpen(!1,Se(re,t)))})}function a(){U.current||(M.current.insideReactTree=!0,Le.start(0,()=>{M.current.insideReactTree=!1}))}let s=o(k)?k:null;if(!(!A&&!s))return Ce(s&&x(s,`focusout`,i),s&&x(s,`pointerdown`,t),A&&x(A,`focusin`,n),A&&x(A,`focusout`,i),A&&B&&x(A,`focusout`,a,!0))},[r,k,A,Z,l,z,B,E,u,c,Q,P,N,M,Le,Y,X,v,S,$]),D.useEffect(()=>{var e,t;if(r||!A||!O)return;let n=Array.from((B==null||(e=B.portalNode)==null?void 0:e.querySelectorAll(`[${oe(`portal`)}]`))||[]),i=(t=(z?ae(z.nodesRef.current,N()):[]).find(e=>{var t;return te(((t=e.context)==null?void 0:t.elements.domReference)||null)}))==null||(t=t.context)==null?void 0:t.elements.domReference,a=Oe([A,...n,q.current,J.current,B==null?void 0:B.beforeOutsideRef.current,B==null?void 0:B.afterOutsideRef.current,...$(),i,_(S),_(v),P?k:null].filter(e=>e!=null),{ariaHidden:l||P,mark:!1}),o=Oe([A,...n].filter(e=>e!=null));return()=>{o(),a()}},[O,r,k,A,l,B,P,z,N,v,S,$]),f(()=>{if(!O||r||!o(Z))return;let e=C(Z),t=g(e);queueMicrotask(()=>{let n=F.current,r=typeof n==`function`?n(L.current||``):n;if(r===void 0||r===!1||b(Z,t))return;let i=null,a=()=>(i??=Q(Z),i[0]||Z),o;o=r===!0||r===null?a():_(r),o||=a();let s=b(Z,g(e));Te(o,{preventScroll:o===Z,shouldFocus(){if(!De.current)return!1;if(s)return!0;let t=g(e);return!(t!==o&&b(Z,t))}})})},[r,O,Z,Q,F,L,De]),f(()=>{if(r||!Z)return;let e=C(Z),t=g(e),n=L.current==null;je(t);function i(e){if(e.open||(G.current=ke(e.nativeEvent,K.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(V.current=!0),e.reason===`outside-press`)if(e.nested)V.current=!1;else if(ge(e.nativeEvent)||ve(e.nativeEvent))V.current=!1;else{let e=!1;C(Z).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?V.current=!1:V.current=!0}}j.on(`openchange`,i);function s(){let e=I.current,r=typeof e==`function`?e(G.current):e;if(r===void 0||r===!1)return null;r===null&&(r=!0);let i=k!=null&&k.isConnected?k:null,o=t!=null&&t.isConnected&&a(t)!==`body`?t:null,s=n?o||i:i||o;return s||=Me()||null,typeof r==`boolean`?s:_(r)||s||null}return()=>{j.off(`openchange`,i);let t=g(e),n=$(),r=b(A,t)||n.some(e=>e===t||b(e,t))||z&&se(z.nodesRef.current,N(),!1).some(e=>{var n;return b((n=e.context)==null?void 0:n.elements.floating,t)}),a=I.current,c=s();queueMicrotask(()=>{let n=Ne(c),i=typeof a!=`boolean`;a&&!V.current&&o(n)&&(!(!i&&n!==t&&t!==e.body)||r)&&n.focus({preventScroll:!0}),V.current=!1})}},[r,A,Z,I,L,j,z,k,N,$]),f(()=>{if(!_e||O||!A)return;let e=g(C(A));!o(e)||!ne(e)||b(A,e)&&e.blur()},[O,A]),f(()=>{if(!(r||!B))return B.setFocusManagerState({modal:l,closeOnFocusOut:u,open:O,onOpenChange:E.setOpen,domReference:k}),()=>{B.setFocusManagerState(null)}},[r,B,l,O,E,u,k]),f(()=>{if(!(r||!Z))return Pe(Z),()=>{queueMicrotask(Ae)}},[r,Z]);let ze=!r&&(!l||!P)&&(Re||l);return(0,R.jsxs)(D.Fragment,{children:[ze&&(0,R.jsx)(de,{"data-type":`inside`,ref:Fe,onFocus:e=>{if(l){let e=Q();Te(e[e.length-1])}else if(B!=null&&B.portalNode)if(V.current=!1,ye(e,B.portalNode)){let e=ee(k);e==null||e.focus()}else{var t;(t=_(S??B.beforeOutsideRef))==null||t.focus()}}}),n,ze&&(0,R.jsx)(de,{"data-type":`inside`,ref:Ie,onFocus:e=>{if(l)Te(Q()[0]);else if(B!=null&&B.portalNode)if(u&&(V.current=!0),ye(e,B.portalNode)){let e=ue(k);e==null||e.focus()}else{var t;(t=_(v??B.afterOutsideRef))==null||t.focus()}}})]})}function H(e){return u(19)?e:e?`true`:void 0}var U=D.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,R.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),W={},G={},K=``;function q(e){if(typeof document>`u`)return!1;let t=C(e);return l(t).innerWidth-t.documentElement.clientWidth>0}function J(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=C(e),n=t.documentElement,r=t.body,i=c(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let l=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===l}function Fe(e){let t=C(e),n=t.documentElement,r=t.body,i=c(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Ie(e){var t;let n=C(e),r=n.documentElement,i=n.body,a=l(r),o=0,s=0,u=!1,d=S.create();if(_e&&(((t=a.visualViewport)==null?void 0:t.scale)??1)!==1)return()=>{};function f(){let t=a.getComputedStyle(r),n=a.getComputedStyle(i),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;o=r.scrollTop,s=r.scrollLeft,W={scrollbarGutter:r.style.scrollbarGutter,overflowY:r.style.overflowY,overflowX:r.style.overflowX},K=r.style.scrollBehavior,G={position:i.style.position,height:i.style.height,width:i.style.width,boxSizing:i.style.boxSizing,overflowY:i.style.overflowY,overflowX:i.style.overflowX,scrollBehavior:i.style.scrollBehavior};let d=r.scrollHeight>r.clientHeight,f=r.scrollWidth>r.clientWidth,p=t.overflowY===`scroll`||n.overflowY===`scroll`,m=t.overflowX===`scroll`||n.overflowX===`scroll`,ee=Math.max(0,a.innerWidth-i.clientWidth),te=Math.max(0,a.innerHeight-i.clientHeight),h=parseFloat(n.marginTop)+parseFloat(n.marginBottom),g=parseFloat(n.marginLeft)+parseFloat(n.marginRight),ne=c(r)?r:i;if(u=J(e),u){r.style.scrollbarGutter=l,ne.style.overflowY=`hidden`,ne.style.overflowX=`hidden`;return}Object.assign(r.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(d||p)&&(r.style.overflowY=`scroll`),(f||m)&&(r.style.overflowX=`scroll`),Object.assign(i.style,{position:`relative`,height:h||te?`calc(100dvh - ${h+te}px)`:`100dvh`,width:g||ee?`calc(100vw - ${g+ee}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),i.scrollTop=o,i.scrollLeft=s,r.setAttribute(`data-base-ui-scroll-locked`,``),r.style.scrollBehavior=`unset`}function p(){Object.assign(r.style,W),Object.assign(i.style,G),u||(r.scrollTop=o,r.scrollLeft=s,r.removeAttribute(`data-base-ui-scroll-locked`),r.style.scrollBehavior=K)}function m(){p(),d.request(f)}f();let ee=x(a,`resize`,m);return()=>{d.cancel(),p(),typeof a.removeEventListener==`function`&&ee()}}var Le=new class{constructor(){t(this,`lockCount`,0),t(this,`restore`,null),t(this,`timeoutLock`,me.create()),t(this,`timeoutUnlock`,me.create()),t(this,`release`,()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)}),t(this,`unlock`,()=>{if(this.lockCount===0&&this.restore){var e;(e=this.restore)==null||e.call(this),this.restore=null}})}acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}lock(e){if(this.lockCount===0||this.restore!==null)return;let t=C(e).documentElement,n=l(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=m;return}let r=be||!q(e);this.restore=r?Fe(e):Ie(e)}};function Y(e=!0,t=null){f(()=>{if(e)return Le.acquire(t)},[e,t])}var X=`ArrowUp`,Re=`ArrowDown`,Z=`ArrowLeft`,Q=`ArrowRight`,$=`Home`,ze=`PageUp`,Be=`PageDown`,Ve=new Set([Z,Q]),He=new Set([Z,Q,$,`End`]),Ue=new Set([X,Re]),We=new Set([X,Re,$,`End`]),Ge=new Set([...Ve,...Ue]),Ke=new Set([...Ge,$,`End`]),qe=`Shift`,Je=new Set([qe,`Control`,`Alt`,`Meta`]);function Ye(e){return o(e)&&e.tagName===`INPUT`}function Xe(e){return!!(Ye(e)&&e.selectionStart!=null||o(e)&&e.tagName===`TEXTAREA`)}function Ze(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=Qe(e,t,`left`),a=$e(e),o=$e(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginRight<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=Qe(e,t,`top`),r=$e(e),i=$e(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function Qe(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function $e(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}export{E as C,Te as S,Ze as _,X as a,H as b,Ve as c,Be as d,ze as f,Xe as g,We as h,Q as i,He as l,Ue as m,Ge as n,Ke as o,qe as p,Z as r,$ as s,Re as t,Je as u,Y as v,V as x,U as y};
@@ -1,2 +0,0 @@
1
- import{t as e}from"./defineProperty-BbfpZ9Tg.js";import"./src-CIHHGjAO.js";var t=class{constructor(){e(this,`results`,[])}async run(e,t,n){try{return await n(),this.results.push({id:e,title:t,status:`passed`}),!0}catch(n){return this.results.push({id:e,title:t,status:`failed`,detail:n instanceof Error?n.message:String(n)}),!1}}skip(e,t,n){this.results.push({id:e,title:t,status:`skipped`,detail:n})}};function n(e,t){if(!e)throw Error(t)}function r(e){let t=e.filter(e=>e.status===`failed`);return{results:e,failures:t,skipped:e.filter(e=>e.status===`skipped`),passed:t.length===0}}function i(e,t){return{artifact:e,messageId:`contract-check-message`,taskId:`contract-check-task`,placement:t,isHistorical:!1,appearance:{theme:`light`,direction:`ltr`,locale:`en`}}}async function a(e,a){let s=new t,u=a.createElement??(()=>document.createElement(`div`)),d=a.artifacts.filter(t=>{try{return e.canRender(i(t,`canvas`))}catch{return!1}});if(await s.run(`renderer.canRender.total`,`canRender never throws`,()=>{a.artifacts.forEach(t=>{var r;e.canRender(i(t,`canvas`)),e.canRender(i(t,`inline`));let a=(r=e.getTitle)==null?void 0:r.call(e,t);n(a===void 0||typeof a==`string`&&a.trim().length>0,`The optional renderer title must be a non-empty string or undefined.`)})}),await s.run(`renderer.canRender.declines`,`canRender declines unknown artifact kinds`,()=>{n(e.canRender(i({id:`contract-check-unknown`,kind:`contract-check-unknown`,data:null},`canvas`))===!1,`canRender accepted an artifact of an unknown kind; the remote would render an empty frame.`)}),d.length===0)return[`renderer.mount.paints`,`renderer.mount.isolated`,`renderer.update.keepsElement`,`renderer.unmount.empties`,`renderer.unmount.idempotent`].forEach(e=>s.skip(e,e,`No supplied artifact was accepted by canRender, so the mount lifecycle could not be observed.`)),r(s.results);let f=d[0];return await s.run(`renderer.mount.paints`,`mount paints into the supplied element`,async()=>{let t=u(),r=e.mount(t,i(f,`canvas`)),a=await c(t);r.unmount(),await o(),n(a,`mount produced no DOM inside the element supplied by the remote.`)}),await s.run(`renderer.mount.isolated`,`mount touches no element but its own`,async()=>{let t=document.createElement(`div`),r=u();t.appendChild(r);let a=new Set(document.body.children),s=new Set(document.head.children);document.body.appendChild(t);try{let c=e.mount(r,i(f,`canvas`));await o();let l=[...document.body.children].some(e=>e!==t&&!a.has(e)),u=[...t.children].some(e=>e!==r),d=[...document.head.children].some(e=>!s.has(e)&&e.tagName!==`STYLE`);c.unmount(),await o(),n(!l&&!u&&!d,`mount wrote DOM outside the element supplied by the remote.`)}finally{t.remove()}}),await s.run(`renderer.update.keepsElement`,`update re-paints in place`,async()=>{let t=u(),r=[],a={...i(f,`canvas`),onSupportedViewsChange:e=>{r=e}},s=e.mount(t,a);try{await c(t),n(Array.isArray(r)&&r.every(e=>e===`chart`||e===`table`)&&new Set(r).size===r.length,`The renderer advertised invalid or duplicate artifact views.`);for(let e of r)s.update({...a,view:e}),n(await l(t),`The advertised ${e} view did not remain painted.`);s.update(i(f,`inline`)),n(await l(t),`update emptied the element instead of re-painting it.`)}finally{s.unmount(),await o()}}),await s.run(`renderer.unmount.empties`,`unmount leaves the element empty`,async()=>{let t=u(),r=e.mount(t,i(f,`canvas`));await o(),r.unmount(),await o(),n(t.childElementCount===0,`unmount left DOM behind; the remote reuses and removes these elements.`)}),await s.run(`renderer.unmount.idempotent`,`unmount and post-unmount update are safe`,async()=>{let t=u(),r=e.mount(t,i(f,`canvas`));await o(),r.unmount(),await o(),r.unmount(),r.update(i(f,`canvas`)),await o(),n(t.childElementCount===0,`an update after unmount re-painted a detached element.`)}),r(s.results)}function o(){return new Promise(e=>setTimeout(e,0))}var s=50;async function c(e,t=2e3){let n=Date.now()+t;for(;;){if(e.childElementCount>0)return!0;if(Date.now()>=n)return!1;await new Promise(e=>setTimeout(e,25))}}async function l(e){return await o(),await c(e)?(await new Promise(e=>setTimeout(e,s)),e.childElementCount>0):!1}var u=[`business-view`,`physical-table`,`insight`,`knowledge-store`,`ai-container`],d=[`@`,`#`];async function f(e,i={}){let s=new t,{connection:c,environment:l,chat:f,actions:p}=e;await s.run(`version`,`declares the supported contract version`,()=>{n(e.version===2,`version must be 2; received ${String(e.version)}.`)}),await s.run(`connection`,`connection names a client and a Copilot root`,async()=>{if(n(typeof(c==null?void 0:c.client)==`string`&&c.client.trim().length>0,`connection.client is required.`),n(typeof c.copilotUrl==`string`,`connection.copilotUrl is required.`),n(!/\/a2a\/?$/i.test(c.copilotUrl.trim()),`connection.copilotUrl is Copilot's root, without /a2a; received ${JSON.stringify(c.copilotUrl)}.`),c.headers){let e=await c.headers();n(e&&typeof e==`object`,`connection.headers() must return an object.`)}}),await s.run(`environment`,`environment.get returns a theme and a locale`,()=>{let e=l.get();n(e&&typeof e==`object`,`environment.get did not return an object.`),n(e.theme===`light`||e.theme===`dark`,`theme must be "light" or "dark"; received ${JSON.stringify(e.theme)}.`),n(typeof e.locale==`string`&&e.locale.length>0,`locale is required.`)}),await s.run(`environment.subscribe`,`subscribe returns a working unsubscribe`,async()=>{let e=0,t=l.subscribe(()=>{e+=1});if(n(typeof t==`function`,`subscribe did not return an unsubscribe function.`),i.triggerEnvironmentChange&&(await i.triggerEnvironmentChange(),await o(),n(e>0,`subscribe did not notify after an environment source changed.`)),t(),t(),i.triggerEnvironmentChange){let t=e;await i.triggerEnvironmentChange(),await o(),n(e===t,`unsubscribe did not detach the listener.`)}}),await s.run(`chat.contexts`,`each context is "file" or a source with a loader`,()=>{let e=((f==null?void 0:f.contexts)??[]).map(e=>e===`file`?e:(n(u.includes(e.kind),`unknown context kind ${JSON.stringify(e.kind)}.`),n(typeof e.load==`function`,`the ${e.kind} source has no load().`),e.kind));n(new Set(e).size===e.length,`a context kind is listed twice.`)}),await s.run(`chat.triggers`,`each trigger is @ or # with a search`,()=>{let e=((f==null?void 0:f.triggers)??[]).map(e=>(n(d.includes(e.char),`unknown trigger ${JSON.stringify(e.char)}.`),n(typeof e.search==`function`,`the ${e.char} trigger has no search().`),e.char));n(new Set(e).size===e.length,`a trigger is listed twice.`)}),await s.run(`actions`,`each action has can() and run()`,()=>{Object.entries(p??{}).forEach(([e,t])=>{t!==void 0&&n(typeof t.can==`function`&&typeof t.run==`function`,`actions.${e} needs both can() and run(). Omit it rather than supplying a placeholder.`)})});let m=f==null?void 0:f.renderers;if(!m)s.skip(`renderers`,`provides a host-native renderer`,`No renderer declared.`);else if(!i.renderer)s.skip(`renderers`,`provides a host-native renderer`,`No renderable artifacts were supplied, so the renderer lifecycle was not exercised.`);else{let e=await a(m,i.renderer);s.results.push(...e.results)}return r(s.results)}function p(e){return e.results.map(e=>`${e.status===`passed`?`✓`:e.status===`failed`?`✗`:`–`} ${e.id} — ${e.title}${e.detail?`\n ${e.detail}`:``}`).join(`
2
- `)}export{a as checkArtifactRendererContract,f as checkHostContract,p as formatHostContractReport};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t}from"./jsx-runtime-DE3RlOCf.js";function n(e){var t,r,i=``;if(typeof e==`string`||typeof e==`number`)i+=e;else if(typeof e==`object`)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=n(e[t]))&&(i&&(i+=` `),i+=r)}else for(r in e)e[r]&&(i&&(i+=` `),i+=r);return i}function r(){for(var e,t,r=0,i=``,a=arguments.length;r<a;r++)(e=arguments[r])&&(t=n(e))&&(i&&(i+=` `),i+=t);return i}var i=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},a=(e,t)=>({classGroupId:e,validator:t}),o=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),s=`-`,c=[],l=`arbitrary..`,u=e=>{let t=p(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return f(e);let n=e.split(s);return d(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],a=n[e];return t?a?i(a,t):t:a||c}return n[e]||c}}},d=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=d(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(s):e.slice(t).join(s),c=a.length;for(let e=0;e<c;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},f=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?l+r:void 0})(),p=e=>{let{theme:t,classGroups:n}=e;return m(n,t)},m=(e,t)=>{let n=o();for(let r in e){let i=e[r];h(i,n,r,t)}return n},h=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];g(i,t,n,r)}},g=(e,t,n,r)=>{if(typeof e==`string`){_(e,t,n);return}if(typeof e==`function`){v(e,t,n,r);return}y(e,t,n,r)},_=(e,t,n)=>{let r=e===``?t:b(t,e);r.classGroupId=n},v=(e,t,n,r)=>{if(x(e)){h(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(a(n,e))},y=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];h(o,b(t,a),n,r)}},b=(e,t)=>{let n=e,r=t.split(s),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=o(),n.nextPart.set(t,i)),n=i}return n},x=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,S=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},C=`!`,w=`:`,T=[],ee=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),te=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===w){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(C)?(c=s.slice(0,-1),l=!0):s.startsWith(C)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return ee(t,l,c,u)};if(t){let e=t+w,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):ee(T,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},E=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},ne=e=>({cache:S(e.cacheSize),parseClassName:te(e),sortModifiers:E(e),postfixLookupClassGroupIds:D(e),...u(e)}),D=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},O=/\s+/,k=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(O),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+C:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},A=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=j(n))&&(i&&(i+=` `),i+=r);return i},j=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=j(e[r]))&&(n&&(n+=` `),n+=t);return n},M=(e,...t)=>{let n,r,i,a,o=o=>(n=ne(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=k(e,n);return i(e,a),a};return a=o,(...e)=>a(A(...e))},N=[],P=e=>{let t=t=>t[e]||N;return t.isThemeGetter=!0,t},re=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ie=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ae=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,oe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,F=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,I=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,L=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,se=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=e=>ae.test(e),z=e=>!!e&&!Number.isNaN(Number(e)),B=e=>!!e&&Number.isInteger(Number(e)),ce=e=>e.endsWith(`%`)&&z(e.slice(0,-1)),V=e=>oe.test(e),le=()=>!0,H=e=>F.test(e)&&!I.test(e),U=()=>!1,W=e=>L.test(e),G=e=>se.test(e),ue=e=>!K(e)&&!J(e),de=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),fe=e=>X(e,De,U),K=e=>re.test(e),q=e=>X(e,Oe,H),pe=e=>X(e,ke,z),me=e=>X(e,je,le),he=e=>X(e,Ae,U),ge=e=>X(e,Te,U),_e=e=>X(e,Ee,G),ve=e=>X(e,Me,W),J=e=>ie.test(e),Y=e=>Z(e,Oe),ye=e=>Z(e,Ae),be=e=>Z(e,Te),xe=e=>Z(e,De),Se=e=>Z(e,Ee),Ce=e=>Z(e,Me,!0),we=e=>Z(e,je,!0),X=(e,t,n)=>{let r=re.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Z=(e,t,n=!1)=>{let r=ie.exec(e);return r?r[1]?t(r[1]):n:!1},Te=e=>e===`position`||e===`percentage`,Ee=e=>e===`image`||e===`url`,De=e=>e===`length`||e===`size`||e===`bg-size`,Oe=e=>e===`length`,ke=e=>e===`number`,Ae=e=>e===`family-name`,je=e=>e===`number`||e===`weight`,Me=e=>e===`shadow`,Ne=M(()=>{let e=P(`color`),t=P(`font`),n=P(`text`),r=P(`font-weight`),i=P(`tracking`),a=P(`leading`),o=P(`breakpoint`),s=P(`container`),c=P(`spacing`),l=P(`radius`),u=P(`shadow`),d=P(`inset-shadow`),f=P(`text-shadow`),p=P(`drop-shadow`),m=P(`blur`),h=P(`perspective`),g=P(`aspect`),_=P(`ease`),v=P(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),J,K],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[J,K,c],T=()=>[R,`full`,`auto`,...w()],ee=()=>[B,`none`,`subgrid`,J,K],te=()=>[`auto`,{span:[`full`,B,J,K]},B,J,K],E=()=>[B,`auto`,J,K],ne=()=>[`auto`,`min`,`max`,`fr`,J,K],D=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],O=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],k=()=>[`auto`,...w()],A=()=>[R,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[R,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],M=()=>[R,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],N=()=>[e,J,K],re=()=>[...b(),be,ge,{position:[J,K]}],ie=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ae=()=>[`auto`,`cover`,`contain`,xe,fe,{size:[J,K]}],oe=()=>[ce,Y,q],F=()=>[``,`none`,`full`,l,J,K],I=()=>[``,z,Y,q],L=()=>[`solid`,`dashed`,`dotted`,`double`],se=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],H=()=>[z,ce,be,ge],U=()=>[``,`none`,m,J,K],W=()=>[`none`,z,J,K],G=()=>[`none`,z,J,K],X=()=>[z,J,K],Z=()=>[R,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[V],breakpoint:[V],color:[le],container:[V],"drop-shadow":[V],ease:[`in`,`out`,`in-out`],font:[ue],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[V],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[V],shadow:[V],spacing:[`px`,z],text:[V],"text-shadow":[V],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,R,K,J,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,J,K]}],"container-named":[de],columns:[{columns:[z,K,J,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[B,`auto`,J,K]}],basis:[{basis:[R,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[z,R,`auto`,`initial`,`none`,K]}],grow:[{grow:[``,z,J,K]}],shrink:[{shrink:[``,z,J,K]}],order:[{order:[B,`first`,`last`,`none`,J,K]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...D(),`normal`]}],"justify-items":[{"justify-items":[...O(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...O()]}],"align-content":[{content:[`normal`,...D()]}],"align-items":[{items:[...O(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...O(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...O(),`baseline`]}],"place-self":[{"place-self":[`auto`,...O()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:A()}],"inline-size":[{inline:[`auto`,...j()]}],"min-inline-size":[{"min-inline":[`auto`,...j()]}],"max-inline-size":[{"max-inline":[`none`,...j()]}],"block-size":[{block:[`auto`,...M()]}],"min-block-size":[{"min-block":[`auto`,...M()]}],"max-block-size":[{"max-block":[`none`,...M()]}],w:[{w:[s,`screen`,...A()]}],"min-w":[{"min-w":[s,`screen`,`none`,...A()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...A()]}],h:[{h:[`screen`,`lh`,...A()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...A()]}],"max-h":[{"max-h":[`screen`,`lh`,...A()]}],"font-size":[{text:[`base`,n,Y,q]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,we,me]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ce,K]}],"font-family":[{font:[ye,he,t]}],"font-features":[{"font-features":[K]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,J,K]}],"line-clamp":[{"line-clamp":[z,`none`,J,pe]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,J,K]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,J,K]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...L(),`wavy`]}],"text-decoration-thickness":[{decoration:[z,`from-font`,`auto`,J,q]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[z,`auto`,J,K]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[B,J,K]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,J,K]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,J,K]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:ie()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},B,J,K],radial:[``,J,K],conic:[B,J,K]},Se,_e]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-bs":[{"border-bs":I()}],"border-w-be":[{"border-be":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":I()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...L(),`hidden`,`none`]}],"divide-style":[{divide:[...L(),`hidden`,`none`]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...L(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[z,J,K]}],"outline-w":[{outline:[``,z,Y,q]}],"outline-color":[{outline:N()}],shadow:[{shadow:[``,`none`,u,Ce,ve]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ce,ve]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:I()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[z,q]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":[`none`,f,Ce,ve]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[z,J,K]}],"mix-blend":[{"mix-blend":[...se(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[z]}],"mask-image-linear-from-pos":[{"mask-linear-from":H()}],"mask-image-linear-to-pos":[{"mask-linear-to":H()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":H()}],"mask-image-t-to-pos":[{"mask-t-to":H()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":H()}],"mask-image-r-to-pos":[{"mask-r-to":H()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":H()}],"mask-image-b-to-pos":[{"mask-b-to":H()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":H()}],"mask-image-l-to-pos":[{"mask-l-to":H()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":H()}],"mask-image-x-to-pos":[{"mask-x-to":H()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":H()}],"mask-image-y-to-pos":[{"mask-y-to":H()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[J,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":H()}],"mask-image-radial-to-pos":[{"mask-radial-to":H()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[z]}],"mask-image-conic-from-pos":[{"mask-conic-from":H()}],"mask-image-conic-to-pos":[{"mask-conic-to":H()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:ie()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,J,K]}],filter:[{filter:[``,`none`,J,K]}],blur:[{blur:U()}],brightness:[{brightness:[z,J,K]}],contrast:[{contrast:[z,J,K]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ce,ve]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:[``,z,J,K]}],"hue-rotate":[{"hue-rotate":[z,J,K]}],invert:[{invert:[``,z,J,K]}],saturate:[{saturate:[z,J,K]}],sepia:[{sepia:[``,z,J,K]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,J,K]}],"backdrop-blur":[{"backdrop-blur":U()}],"backdrop-brightness":[{"backdrop-brightness":[z,J,K]}],"backdrop-contrast":[{"backdrop-contrast":[z,J,K]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,z,J,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[z,J,K]}],"backdrop-invert":[{"backdrop-invert":[``,z,J,K]}],"backdrop-opacity":[{"backdrop-opacity":[z,J,K]}],"backdrop-saturate":[{"backdrop-saturate":[z,J,K]}],"backdrop-sepia":[{"backdrop-sepia":[``,z,J,K]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,J,K]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[z,`initial`,J,K]}],ease:[{ease:[`linear`,`initial`,_,J,K]}],delay:[{delay:[z,J,K]}],animate:[{animate:[`none`,v,J,K]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,J,K]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:W()}],"rotate-x":[{"rotate-x":W()}],"rotate-y":[{"rotate-y":W()}],"rotate-z":[{"rotate-z":W()}],scale:[{scale:G()}],"scale-x":[{"scale-x":G()}],"scale-y":[{"scale-y":G()}],"scale-z":[{"scale-z":G()}],"scale-3d":[`scale-3d`],skew:[{skew:X()}],"skew-x":[{"skew-x":X()}],"skew-y":[{"skew-y":X()}],transform:[{transform:[J,K,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":[`translate-none`],zoom:[{zoom:[B,J,K]}],accent:[{accent:N()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,J,K]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":N()}],"scrollbar-track-color":[{"scrollbar-track":N()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,J,K]}],fill:[{fill:[`none`,...N()]}],"stroke-w":[{stroke:[z,Y,q,pe]}],stroke:[{stroke:[`none`,...N()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Pe(...e){return Ne(r(e))}var Q=e(t(),1),Fe=e=>e==null?void 0:e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Ie(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Fe(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Le=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},Re=e=>{let t=Le(e);return t.charAt(0).toUpperCase()+t.slice(1)},ze=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),$={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function Be(e){return e!=null}function Ve(e,t={}){var n,r;let i=t.attributeNames??{},a=e=>i[e]??e,o=e.size??e.width??$.width,s=e.size??e.height??$.height,c=((n=e.aliases)==null?void 0:n.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`))??[],l=[...e.name?[`lucide-${e.name}`]:[],...c],u=((r=t.className)==null?void 0:r.split(` `).filter(Boolean))??[],d=t.includeDefaultClasses===!1?ze(...u):ze(`lucide`,...l,...u),f=t.absoluteStrokeWidth?Number(t.strokeWidth??$[`stroke-width`])*Number(e.size??e.width??$.width)/Number(t.size??t.width??$.width):t.strokeWidth??$[`stroke-width`];return[`svg`,{...Object.entries($).reduce((e,[t,n])=>(e[a(t)]=n,e),{}),...`color`in t&&t.color&&{[a(`stroke`)]:t.color},...`size`in t&&Be(t.size)&&{[a(`width`)]:t.size,[a(`height`)]:t.size},...`width`in t&&Be(t.width)&&{[a(`width`)]:t.width},...`height`in t&&Be(t.height)&&{[a(`height`)]:t.height},[a(`stroke-width`)]:f,...d&&{[a(`class`)]:d},[a(`viewBox`)]:`0 0 ${o} ${s}`,...t.hasA11yProp===!1?{[a(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,r,i]=e,o=t.nonScalingStroke?{[a(`vector-effect`)]:`non-scaling-stroke`,...r}:r;return i?[n,o,i]:[n,o]})]}function He(e,t={}){return Ve(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Ue=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},We=(0,Q.createContext)({}),Ge=()=>(0,Q.useContext)(We),Ke=(0,Q.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=Ge()??{},y=!!c||Ue(d),[b,x,S=[]]=He(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:ze(v,s),hasA11yProp:y,attributes:d});return(0,Q.createElement)(b,{ref:f,...x},[...S.map(([e,t])=>(0,Q.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function qe(e,t=[],n=[]){let r=typeof e==`string`?Ie(e,t,n):e,i=(0,Q.forwardRef)(({className:e,...t},n)=>(0,Q.createElement)(Ke,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Re(r.name)),i}export{Pe as n,r,qe as t};
@@ -1 +0,0 @@
1
- var e=`Machine-authored German (de) catalog, pending translator review. Human translations reused from web-react libs/locale/src/de-DE.json where the English matched.`,t={_comment:e,"action.groupLabel":`Vorgeschlagene Aktionen`,"action.submitting":`Diese Aktion wird übermittelt.`,"action.suggested":`Vorgeschlagene Aktion`,"action.unavailable":`Diese Aktion ist nicht verfügbar.`,"artifact.action.download":`Herunterladen`,"artifact.action.open":`Öffnen`,"artifact.action.save":`Speichern`,"artifact.action.share":`Freigeben`,"artifact.actionComplete":`{action} abgeschlossen`,"artifact.actionFailed":`Die Aktion „{action}“ für das Artefakt ist fehlgeschlagen.`,"artifact.actionInProgress":`{action} wird ausgeführt`,"artifact.cannotOpenHere":`Dieses Artefakt kann hier nicht geöffnet werden.`,"artifact.cannotSaveHere":`Dieses Artefakt kann von hier aus nicht gespeichert werden.`,"artifact.canvas":`Artefakt-Canvas`,"artifact.canvasActions":`Canvas-Aktionen`,"artifact.closeCanvas":`Canvas schließen`,"artifact.contentLoadFailed":`Der Inhalt des Artefakts konnte nicht geladen werden.`,"artifact.contentReadFailed":`Der Inhalt des Artefakts konnte nicht gelesen werden.`,"artifact.displayFailed":`Das Element „{noun}“ konnte nicht angezeigt werden.`,"artifact.download":`Artefakt herunterladen`,"artifact.exitFullscreen":`Vollbild beenden`,"artifact.generated":`Generierte Artefakte`,"artifact.hostRendererMountFailed":`Der Host-Renderer konnte nicht eingebunden werden.`,"artifact.hostRendererUpdateFailed":`Der Host-Renderer konnte nicht aktualisiert werden.`,"artifact.htmlDisplayFailed":`Dieses HTML-Artefakt konnte nicht angezeigt werden.`,"artifact.loadFailed":`Das Artefakt konnte nicht geladen werden`,"artifact.mermaidSource":`Mermaid-Quelltext`,"artifact.mermaidUnavailable":`Die Diagrammdarstellung ist erst verfügbar, wenn der optionale Mermaid-Renderer die CSP- und Barrierefreiheitsprüfung bestanden hat.`,"artifact.moreActions":`Weitere Aktionen`,"artifact.noDownload":`Kein herunterladbarer Inhalt.`,"artifact.noRenderer":`Für dieses Artefakt vom Typ „{kind}“ ist kein Renderer verfügbar. Die Artefaktaktionen stehen weiterhin zur Verfügung, wenn der Host sie bereitstellt.`,"artifact.openFailed":`Das Element „{noun}“ konnte nicht geöffnet werden.`,"artifact.openInEditor":`Im Editor öffnen`,"artifact.previewDescription":`Vorschau für das ausgewählte Artefakt vom Typ „{kind}“.`,"artifact.previewTitle":`Artefaktvorschau`,"artifact.report":`Bericht`,"artifact.saveFailed":`Das Speichern ist fehlgeschlagen.`,"artifact.saveUnrecorded":`Im Katalog gespeichert, aber die Unterhaltung konnte dies nicht erfassen. Speichern Sie erneut, um es noch einmal zu versuchen.`,"artifact.selectPrompt":`Wählen Sie ein Artefakt aus der Unterhaltung aus.`,"artifact.share":`Artefakt freigeben`,"artifact.shareIncomplete":`Die Freigabe wurde nicht abgeschlossen.`,"artifact.snapshot":`Momentaufnahme`,"artifact.snapshotHint":`Eine Momentaufnahme der Daten zum Zeitpunkt der Antwort. Öffnen Sie das {noun}, um Live-Daten zu sehen.`,"artifact.unavailable":`Dieses Artefakt ist nicht verfügbar.`,"artifact.viewAsChart":`Als Diagramm anzeigen`,"artifact.viewAsTable":`Als Tabelle anzeigen`,"artifact.viewFullscreen":`Im Vollbild anzeigen`,"artifact.viewing":`Wird angezeigt`,"artifact.visualizationLabel":`{kind}-Visualisierung`,"artifact.visualizationUnavailable":`Visualisierung nicht verfügbar`,"brand.name":`Incorta Intelligence`,"code.copy":`Code kopieren`,"code.insert":`Code einfügen`,"common.cancel":`Abbrechen`,"common.delete":`Löschen`,"common.download":`Herunterladen`,"common.edit":`Bearbeiten`,"common.loading":`Laden…`,"common.next":`Weiter`,"common.open":`Öffnen`,"common.preview":`Vorschau`,"common.previous":`Zurück`,"common.rename":`Umbenennen`,"common.retry":`Erneut versuchen`,"common.save":`Speichern`,"common.search":`Suche`,"common.searching":`Suche läuft…`,"common.share":`Teilen`,"common.showLess":`Weniger anzeigen`,"common.showMore":`Mehr anzeigen`,"composer.agentOptions":`Agentenoptionen`,"composer.agentOptionsHeading":`Optionen für {agent}`,"composer.agentOptionsWithValue":`Agentenoptionen: {value}`,"composer.appliedToNextRequest":`Wird auf die nächste Anfrage angewendet`,"composer.chooseAgent":`Agenten auswählen`,"composer.chooseAgentCommand":`Agentenbefehl auswählen`,"composer.collapseInput":`Eingabe verkleinern`,"composer.commandsStartEmptyPrompt":`Befehle beginnen am Anfang einer leeren Eingabe`,"composer.disclaimer":`Incorta AI kann Fehler machen; überprüfen Sie wichtige Entscheidungen.`,"composer.expandInput":`Eingabe vergrößern`,"composer.loadingAgentOptions":`Agentenoptionen werden geladen`,"composer.mentionColumn":`Spalte erwähnen`,"composer.mentionColumnLabel":`Business View-Spalte erwähnen`,"composer.mentionColumnRequiresOneView":`Hängen Sie genau eine Business View an, um eine Spalte zu erwähnen`,"composer.placeholder":`Fragen Sie Incorta Intelligence`,"composer.removeAgent":`Agent {agent} entfernen`,"composer.searchValues":`Werte in der angehängten Business View suchen`,"composer.searchValuesLabel":`Business View-Werte suchen`,"composer.searchValuesRequiresOneView":`Hängen Sie genau eine Business View an, um ihre Werte zu durchsuchen`,"composer.sendMessage":`Nachricht senden`,"composer.stopResponse":`Antwort stoppen`,"composer.suggestions":`Eingabevorschläge`,"composer.unavailable":`Das Eingabefeld konnte nicht angezeigt werden.`,"context.add":`Analysekontext hinzufügen`,"context.kind.aiContainers":`AI Containers`,"context.kind.businessView":`Business View`,"context.kind.file":`Datei`,"context.kind.insight":`Einsicht`,"context.kind.knowledgeStore":`Wissensspeicher`,"context.kind.physicalTable":`Tabellen`,"context.loadingSource":`{title} wird geladen…`,"context.noItems":`Keine Elemente verfügbar.`,"context.previewName":`Vorschau von {name}`,"context.removeName":`{name} entfernen`,"context.searchSource":`{title} durchsuchen`,"context.selectedLabel":`Ausgewählter Analysekontext`,"context.selectedSummary":`Ausgewählter Analysekontext: {contexts}`,"context.showMore":`Weitere ausgewählte Kontexte anzeigen`,"context.showPrevious":`Vorherige ausgewählte Kontexte anzeigen`,"context.sourceFailed":`{title} konnte nicht geladen werden.`,"context.sourceNoun":`{count, plural, one {Quelle} other {Quellen}}`,"context.unsupportedByAgent":`Vom aktuellen Agenten nicht unterstützt.`,"context.uploadAnalysisFiles":`Analysedateien hochladen`,"context.uploadFiles":`Dateien hochladen`,"csv.goToPage":`Zu Seite {page} wechseln`,"csv.nextPage":`Zur nächsten Seite`,"csv.previousPage":`Zur vorherigen Seite`,"csv.summary":`Zeilen {from}–{to} von {total} · Seite {page} von {pages}`,"file.blockedUrl":`Dieser Dateilink verwendet ein blockiertes URL-Schema.`,"file.downloadFailed":`Die Datei konnte nicht heruntergeladen werden.`,"file.downloadName":`{name} herunterladen`,"file.invalidData":`Die Dateidaten sind ungültig.`,"file.noContent":`Diese Datei hat keinen herunterladbaren Inhalt.`,"file.noContentYet":`Diese Datei hat noch keinen herunterladbaren Inhalt.`,"file.openName":`{name} öffnen`,"file.openUnsupported":`Das Öffnen dieser Datei wird hier nicht unterstützt.`,"file.pdfPreviewFailed":`Für diese PDF konnte keine Vorschau angezeigt werden.`,"file.pdfTooLarge":`Diese PDF ist zu groß, um hier in der Vorschau angezeigt zu werden.`,"file.previewFailed":`Für diese Datei konnte keine Vorschau angezeigt werden.`,"file.readFailed":`Diese Datei konnte nicht gelesen werden.`,"file.tooLargeToDownload":`Diese Datei ist zu groß, um hier heruntergeladen zu werden.`,"file.tooLargeToPreview":`Diese Datei ist zu groß, um hier in der Vorschau angezeigt zu werden.`,"file.type.archive":`Archiv · {format}`,"file.type.document":`Dokument · {format}`,"file.type.env":`Env`,"file.type.file":`Datei`,"file.type.format":`{format}`,"file.type.image":`Bild · {format}`,"file.type.log":`Protokoll`,"file.type.markdown":`Markdown`,"file.type.slides":`Folien · {format}`,"file.type.spreadsheet":`Tabellenkalkulation · {format}`,"file.type.text":`Text`,"file.unpreviewable":`„{name}“ kann hier nicht in der Vorschau angezeigt werden. Laden Sie die Datei herunter, um sie in ihrer eigenen Anwendung zu öffnen.`,"history.collapse":`Chatverlauf einklappen`,"history.conversationRunning":`Unterhaltung läuft`,"history.delete.description":`Diese Unterhaltung wird aus dem Chatverlauf entfernt.`,"history.delete.descriptionNamed":`„{title}“ wird aus dem Chatverlauf entfernt.`,"history.delete.title":`Unterhaltung löschen?`,"history.deleteFailed":`Die Unterhaltung konnte nicht gelöscht werden.`,"history.dismissError":`Verlaufsfehler ausblenden`,"history.empty":`Noch keine Chats`,"history.expand":`Chatverlauf erweitern`,"history.group.older":`Älter`,"history.group.previous7Days":`Letzte 7 Tage`,"history.group.today":`Heute`,"history.group.yesterday":`Gestern`,"history.loadFailed":`Die Chats konnten nicht geladen werden.`,"history.loadMoreConversations":`Weitere Unterhaltungen laden`,"history.loadingConversations":`Unterhaltungen werden geladen…`,"history.moreActions":`Weitere Aktionen für {title}`,"history.newAnswer":`Neue Antwort`,"history.newChat":`Neuer Chat`,"history.notSavedYet":`Diese Unterhaltung ist noch nicht gespeichert.`,"history.rename.description":`Wählen Sie einen kurzen Titel, unter dem diese Analyse leicht zu finden ist.`,"history.rename.inputLabel":`Titel der Unterhaltung`,"history.rename.title":`Unterhaltung umbenennen`,"history.renameFailed":`Die Unterhaltung konnte nicht umbenannt werden.`,"history.search.assistantAnswer":`Antwort des Assistenten`,"history.search.conversations":`Unterhaltungen`,"history.search.description":`Titel und Vorschauen von Unterhaltungen durchsuchen.`,"history.search.empty":`Keine Unterhaltungen gefunden.`,"history.search.failed":`Die Suche nach Unterhaltungen ist fehlgeschlagen.`,"history.search.moreResults":`{count, plural, one {# weiteres Ergebnis} other {# weitere Ergebnisse}}`,"history.search.noMatch":`Keine Chats passen zu „{query}“`,"history.search.placeholder":`Chats durchsuchen…`,"history.search.resultCount":`{count, plural, one {# Ergebnis} other {# Ergebnisse}}`,"history.search.searching":`Unterhaltungen werden durchsucht`,"history.search.userQuestion":`Benutzerfrage`,"history.searchChats":`Chats durchsuchen`,"history.sheetDescription":`Unterhaltungen erstellen, durchsuchen und erneut öffnen.`,"history.startNewChat":`Neuen Chat starten`,"history.title":`Chatverlauf`,"markdown.scrollableTable":`Scrollbare Tabelle`,"message.conversationLost":`Diese Unterhaltung ist nicht mehr verfügbar. Starten Sie eine neue Sitzung, um fortzufahren.`,"message.copy":`Nachricht kopieren`,"message.download":`Antwort herunterladen`,"message.downloadCsv":`Tabelle als CSV`,"message.downloadMarkdown":`Markdown (.md)`,"message.downloadText":`Nur Text (.txt)`,"message.errorDetails":`Fehlerdetails`,"message.errorDetailsDescription":`Technische Details, die Incorta Intelligence für diese Antwort zurückgegeben hat.`,"message.feedbackFailed":`Feedback konnte nicht gesendet werden`,"message.helpful":`Hilfreiche Antwort`,"message.lastExecuted":`Zuletzt ausgeführt: {time}`,"message.notSaved":`Die Unterhaltung wurde nicht gespeichert`,"message.startNewSession":`Neue Sitzung starten`,"message.taskFailed":`Die Antwort konnte nicht abgeschlossen werden`,"message.unhelpful":`Nicht hilfreiche Antwort`,"message.viewErrorDetails":`Fehlerdetails anzeigen`,"preview.noData":`Keine Daten zum Anzeigen`,"session.actions":`Chat-Aktionen`,"session.clickToRename":`Zum Umbenennen klicken`,"session.delete":`Chat löschen`,"session.untitled":`Unbetitelt`,"shell.canvasUnavailable":`Der Canvas konnte nicht angezeigt werden.`,"shell.close":`Chat schließen`,"shell.dock":`Seitlich andocken`,"shell.enterFullScreen":`Vollbild aktivieren`,"shell.exitFullScreen":`Vollbild beenden`,"shell.historyUnavailable":`Der Chatverlauf konnte nicht angezeigt werden.`,"shell.openHistory":`Chatverlauf öffnen`,"shell.resizeHandle":`Größe von Unterhaltung und Canvas ändern`,"shell.threadUnavailable":`Der Unterhaltungsbereich konnte nicht angezeigt werden.`,"shell.unavailable":`NexusChat ist nicht verfügbar`,"shell.undock":`Abdocken`,"shell.workspace":`Arbeitsbereich der Unterhaltung`,"source.cite":`Quelle {index}`,"source.content":`Inhalt`,"source.copy":`Inhalt kopieren`,"source.count":`{count, plural, one {# Quelle} other {# Quellen}}`,"source.kind.aiContainer":`AI Container`,"source.kind.businessView":`Business View`,"source.kind.document":`Dokument`,"source.kind.file":`Datei`,"source.kind.insight":`Einsicht`,"source.kind.knowledgeStore":`Wissensspeicher`,"source.next":`Nächste Quelle`,"source.open":`Quelle öffnen`,"source.position":`{index} von {total}`,"source.preview":`{shown, number} von {total, number} Zeichen werden angezeigt.`,"source.previous":`Vorherige Quelle`,"source.showAll":`Alles anzeigen`,"source.title":`Quellen`,"source.untitled":`Unbenannte Quelle`,"table.column":`Spalte {index}`,"task.backendReason":`Backend-Grund: {reason}`,"task.clarificationFailed":`Die Klarstellung konnte nicht übermittelt werden.`,"task.contextRequestPreview":`Kontextanfrage`,"task.launchUnresolved":`Das Ergebnis der Eingabe ist ungeklärt, da keine Remote-Aufgabenkennung zurückgegeben wurde. Aktualisieren Sie den Unterhaltungsverlauf, bevor Sie es erneut versuchen.`,"task.pollFailed":`Die unterbrochene Aufgabe konnte nicht fortgesetzt werden.`,"task.responseFailed":`Die Antwort konnte nicht generiert werden.`,"thinking.analyzingThis":`Wird analysiert`,"thinking.checkingDetails":`Details werden geprüft`,"thinking.checkingRequest":`Anfrage wird geprüft`,"thinking.consideringDetails":`Details werden betrachtet`,"thinking.evaluatingDetails":`Details werden bewertet`,"thinking.examiningRequest":`Anfrage wird geprüft`,"thinking.lookingIntoIt":`Ich sehe mir das an`,"thinking.lookingOverRequest":`Anfrage wird angesehen`,"thinking.parsingRequest":`Anfrage wird ausgewertet`,"thinking.processing":`Wird verarbeitet`,"thinking.readingThroughIt":`Wird durchgelesen`,"thinking.reasoningThroughIt":`Wird durchdacht`,"thinking.reviewingThis":`Wird überprüft`,"thinking.sortingThroughDetails":`Details werden sortiert`,"thinking.takingCloserLook":`Wird genauer angesehen`,"thinking.thinking":`Denke nach`,"thinking.thinkingItThrough":`Wird durchdacht`,"thinking.understandingRequest":`Anfrage wird verstanden`,"thinking.workingOnIt":`Wird bearbeitet`,"thinking.workingThroughIt":`Wird durchgearbeitet`,"thread.agentActivity":`Agentenaktivität`,"thread.inputNeeded":`Weitere Eingabe erforderlich`,"thread.inputRequiredDefault":`Zum Fortfahren ist eine weitere Eingabe erforderlich.`,"thread.loadingConversation":`Unterhaltung wird geladen`,"thread.loadingConversationEllipsis":`Unterhaltung wird geladen…`,"thread.loadingEarlier":`Frühere Nachrichten werden geladen`,"thread.messagesRegion":`Nachrichten`,"thread.olderMessagesFailed":`Ältere Nachrichten konnten nicht geladen werden.`,"thread.renderFailed":`Diese Unterhaltung konnte nicht angezeigt werden.`,"thread.responseStopped":`Sie haben diese Antwort gestoppt.`,"thread.retryLoadEarlier":`Frühere Nachrichten erneut laden`,"thread.scrollToLatest":`Zur neuesten Nachricht scrollen`,"thread.thoughts":`Denken anzeigen`,"thread.unsupportedPart":`Nicht unterstützter A2A-Teil: {kind}`,"thread.unsupportedPartDetail":`Die Antwort enthielt einen Teil, den dieser NexusChat-Build nicht darstellen kann.`,"time.justNow":`gerade eben`,"tool.input":`Eingabe`,"tool.moreRows":`{count, plural, one {# weitere Zeile} other {# weitere Zeilen}}`,"tool.output":`Ausgabe`,"tool.unsupportedContent":`Dieser Tool-Inhaltstyp wird von diesem NexusChat-Build nicht unterstützt.`,"upload.agentCannotUseFile":`Der ausgewählte Agent kann diesen Dateikontext nicht verwenden.`,"upload.alreadyAttached":`„{name}“ ist bereits angehängt.`,"upload.attachFailed":`Datei konnte nicht angehängt werden`,"upload.failed":`Der Datei-Upload ist fehlgeschlagen.`,"upload.failedShort":`Upload fehlgeschlagen`,"upload.fileTooLarge":`Die Datei „{name}“ überschreitet die maximale Größe von {maxMb} MB.`,"upload.progress":`Wird hochgeladen: {percent, number, percent}`,"upload.recentFile":`Kürzlich verwendete Datei`,"upload.sessionFailed":`Es konnte keine Datei-Upload-Sitzung erstellt werden.`,"upload.tooManyFiles":`Sie können maximal {max} Dateien hinzufügen.`,"upload.unsupportedFormat":`Die Datei „{name}“ wird nicht unterstützt. Unterstützte Formate: {formats}.`,"upload.unsupportedShort":`Nicht unterstütztes Format. Unterstützt: {formats}`,"upload.uploadingName":`{name} wird hochgeladen`,"upload.waitForConnection":`Warten Sie, bis die aktuelle Unterhaltung verbunden ist, bevor Sie Dateien hinzufügen.`,"usage.cached":`({percent} aus dem Cache)`,"usage.calls":`{count, plural, one {# Aufruf} other {# Aufrufe}}`,"usage.columnIn":`↑ein`,"usage.columnModel":`Modell`,"usage.columnOut":`↓aus`,"usage.duration":`{minutes}, {seconds}`,"usage.label":`Modellnutzung`,"usage.models":`{count, plural, one {# Modell} other {# Modelle}}`,"usage.title":`Token-Verteilung`,"welcome.about":`Über Incorta Intelligence`,"welcome.attachContextHint":`Hängen Sie einen unterstützten Kontext an, um Ihre Frage zu fundieren.`,"welcome.connecting":`Verbindung mit Incorta Intelligence wird hergestellt…`,"welcome.connectionFailed":`Incorta Intelligence ist gerade nicht erreichbar.`,"welcome.greeting.afternoon":`{named, select, true {Guten Tag, {name}} other {Guten Tag}}`,"welcome.greeting.evening":`{named, select, true {Guten Abend, {name}} other {Guten Abend}}`,"welcome.greeting.morning":`{named, select, true {Guten Morgen, {name}} other {Guten Morgen}}`,"welcome.greeting.welcomeBack":`{named, select, true {Willkommen zurück, {name}} other {Willkommen zurück}}`,"welcome.retryConnecting":`Verbindung mit Incorta Intelligence erneut versuchen`,"welcome.skill.buildDashboards":`Dashboards erstellen`,"welcome.skill.createInsights":`Einsichten erstellen`,"welcome.skill.exploreData":`Daten erkunden`,"welcome.skill.generateReports":`Berichte generieren`,"welcome.subline":`Wie kann ich Ihnen heute helfen?`};export{e as _comment,t as default};
@@ -1 +0,0 @@
1
- function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(t,n){if(e(t)!=`object`||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,n||`default`);if(e(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(n===`string`?String:Number)(t)}function n(n){var r=t(n,`string`);return e(r)==`symbol`?r:r+``}function r(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}export{r as t};