@inploi/plugin-kin 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/index.js +6 -6
- package/dist/{code-block-37QAKDTI-14890bbd.js → code-block-37QAKDTI-227b441d.js} +1 -1
- package/dist/{code-block-37QAKDTI-74945cd2.cjs → code-block-37QAKDTI-7f27b799.cjs} +1 -1
- package/dist/{index-4554e20b.js → index-67f360ea.js} +41 -39
- package/dist/{index-2a5ad253.cjs → index-70a5a203.cjs} +3 -3
- package/dist/kin.d.ts +4 -5
- package/dist/{mermaid-4DMBBIKO-db642aeb.cjs → mermaid-4DMBBIKO-37b05f47.cjs} +1 -1
- package/dist/{mermaid-4DMBBIKO-7f2453c1.js → mermaid-4DMBBIKO-82ae8ed9.js} +1 -1
- package/dist/plugin-kin.cjs +1 -1
- package/dist/plugin-kin.js +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as m, x as h, F as u, o as r, q as f, N as k, c as p, h as x, p as N, a as v } from "./index-
|
|
1
|
+
import { b as m, x as h, F as u, o as r, q as f, N as k, c as p, h as x, p as N, a as v } from "./index-67f360ea.js";
|
|
2
2
|
import "@inploi/sdk";
|
|
3
3
|
var y = m("block", "before:content-[counter(line)]", "before:inline-block", "before:[counter-increment:line]", "before:w-6", "before:mr-4", "before:text-[13px]", "before:text-right", "before:text-muted-foreground/50", "before:font-mono", "before:select-none"), w = h(({ children: a, result: e, language: o, className: s, ...g }) => {
|
|
4
4
|
let d = u(() => ({ backgroundColor: e.bg, color: e.fg }), [e.bg, e.fg]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-70a5a203.cjs");require("@inploi/sdk");var m=e.b("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),b=e.x(({children:a,result:r,language:n,className:c,...g})=>{let d=e.F(()=>({backgroundColor:r.bg,color:r.fg}),[r.bg,r.fg]);return e.o("pre",{className:e.b(c,"p-4 text-sm dark:bg-(--shiki-dark-bg)!"),"data-language":n,"data-streamdown":"code-block-body",style:d,...g,children:e.o("code",{className:"[counter-increment:line_0] [counter-reset:line]",children:r.tokens.map((s,l)=>e.o("span",{className:m,children:s.map((t,o)=>e.o("span",{className:"dark:bg-(--shiki-dark-bg)! dark:text-(--shiki-dark)!",style:{color:t.color,backgroundColor:t.bgColor,...t.htmlStyle},...t.htmlAttrs,children:t.content},o))},l))})})},(a,r)=>a.result===r.result&&a.language===r.language&&a.className===r.className),h=({className:a,language:r,style:n,...c})=>e.o("div",{className:e.b("my-4 w-full overflow-hidden rounded-xl border border-border",a),"data-language":r,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...c}),f=({language:a,children:r})=>e.o("div",{className:"flex items-center justify-between bg-muted/80 p-3 text-muted-foreground text-xs","data-language":a,"data-streamdown":"code-block-header",children:[e.o("span",{className:"ml-1 font-mono lowercase",children:a}),e.o("div",{className:"flex items-center gap-2",children:r})]}),k=({code:a,language:r,className:n,children:c,...g})=>{let{shikiTheme:d}=e.q(e.N),s=e.cr(),l=e.F(()=>({bg:"transparent",fg:"inherit",tokens:a.split(`
|
|
2
2
|
`).map(i=>[{content:i,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[a]),[t,o]=e.h(l);return e.p(()=>{if(!s){o(l);return}let i=s.highlight({code:a,language:r,themes:d},u=>{o(u)});if(i){o(i);return}o(l)},[a,r,d,s,l]),e.o(e.ao.Provider,{value:{code:a},children:e.o(h,{language:r,children:[e.o(f,{language:r,children:c}),e.o(b,{className:n,language:r,result:t,...g})]})})};exports.CodeBlock=k;
|
|
@@ -21390,7 +21390,7 @@ var ss = (e) => b("svg", { color: "currentColor", height: 16, strokeLinejoin: "r
|
|
|
21390
21390
|
}, [t, n]), t ? b("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm", "data-streamdown": "link-safety-modal", onClick: n, onKeyDown: (o) => {
|
|
21391
21391
|
o.key === "Escape" && n();
|
|
21392
21392
|
}, role: "button", tabIndex: 0, children: b("div", { className: "relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg", onClick: (o) => o.stopPropagation(), onKeyDown: (o) => o.stopPropagation(), role: "presentation", children: [b("button", { className: "absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground", onClick: n, title: "Close", type: "button", children: b(kd, { size: 16 }) }), b("div", { className: "flex flex-col gap-2", children: [b("div", { className: "flex items-center gap-2 font-semibold text-lg", children: [b(go, { size: 20 }), b("span", { children: "Open external link?" })] }), b("p", { className: "text-muted-foreground text-sm", children: "You're about to visit an external website." })] }), b("div", { className: X("break-all rounded-md bg-muted p-3 font-mono text-sm", e.length > 100 && "max-h-32 overflow-y-auto"), children: e }), b("div", { className: "flex gap-2", children: [b("button", { className: "flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted", onClick: s, type: "button", children: i ? b($e, { children: [b(ss, { size: 14 }), b("span", { children: "Copied" })] }) : b($e, { children: [b(us, { size: 14 }), b("span", { children: "Copy link" })] }) }), b("button", { className: "flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90", onClick: u, type: "button", children: [b(go, { size: 14 }), b("span", { children: "Open link" })] })] })] }) }) : null;
|
|
21393
|
-
}, ma = Ta(null), yd = () => at(ma),
|
|
21393
|
+
}, ma = Ta(null), yd = () => at(ma), ux = () => {
|
|
21394
21394
|
var e;
|
|
21395
21395
|
let t = yd();
|
|
21396
21396
|
return (e = t == null ? void 0 : t.code) != null ? e : null;
|
|
@@ -21628,7 +21628,7 @@ var ss = (e) => b("svg", { color: "currentColor", height: 16, strokeLinejoin: "r
|
|
|
21628
21628
|
document.removeEventListener("mousedown", l);
|
|
21629
21629
|
};
|
|
21630
21630
|
}, []), b("div", { className: "relative", ref: s, children: [b("button", { className: X("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t), disabled: u, onClick: () => a(!i), title: "Download table", type: "button", children: e ?? b(hi, { size: 14 }) }), i ? b("div", { className: "absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg", children: [b("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => o("csv"), title: "Download table as CSV", type: "button", children: "CSV" }), b("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => o("markdown"), title: "Download table as Markdown", type: "button", children: "Markdown" })] }) : null] });
|
|
21631
|
-
}, h6 = ({ children: e, className: t, showControls: n, ...r }) => b("div", { className: "my-4 flex flex-col space-y-2", "data-streamdown": "table-wrapper", children: [n ? b("div", { className: "flex items-center justify-end gap-1", children: [b(d6, {}), b(f6, {})] }) : null, b("div", { className: "overflow-x-auto", children: b("table", { className: X("w-full border-collapse border border-border", t), "data-streamdown": "table", ...r, children: e }) })] }), p6 = Qo(() => import("./code-block-37QAKDTI-
|
|
21631
|
+
}, h6 = ({ children: e, className: t, showControls: n, ...r }) => b("div", { className: "my-4 flex flex-col space-y-2", "data-streamdown": "table-wrapper", children: [n ? b("div", { className: "flex items-center justify-end gap-1", children: [b(d6, {}), b(f6, {})] }) : null, b("div", { className: "overflow-x-auto", children: b("table", { className: X("w-full border-collapse border border-border", t), "data-streamdown": "table", ...r, children: e }) })] }), p6 = Qo(() => import("./code-block-37QAKDTI-227b441d.js").then((e) => ({ default: e.CodeBlock }))), m6 = Qo(() => import("./mermaid-4DMBBIKO-82ae8ed9.js").then((e) => ({ default: e.Mermaid }))), g6 = /language-([^\s]+)/;
|
|
21632
21632
|
function pi(e, t) {
|
|
21633
21633
|
if (!(e != null && e.position || t != null && t.position))
|
|
21634
21634
|
return !0;
|
|
@@ -26359,7 +26359,7 @@ function ex(e) {
|
|
|
26359
26359
|
const tx = {
|
|
26360
26360
|
accentColor: "#FF4D00",
|
|
26361
26361
|
mode: "light"
|
|
26362
|
-
},
|
|
26362
|
+
}, ox = {
|
|
26363
26363
|
/** Inploi - Tangerine orange, light mode */
|
|
26364
26364
|
inploi: {
|
|
26365
26365
|
accentColor: "#FF4D00",
|
|
@@ -26381,25 +26381,27 @@ const tx = {
|
|
|
26381
26381
|
mode: "light"
|
|
26382
26382
|
}
|
|
26383
26383
|
}, nx = `:host{--kin-bg-base: #0a0a0a;--kin-bg-elevated: #141414;--kin-bg-surface: #1a1a1a;--kin-bg-muted: #262626;--kin-border: rgba(255, 255, 255, .08);--kin-border-subtle: rgba(255, 255, 255, .05);--kin-text: #ffffff;--kin-text-secondary: #a1a1a1;--kin-text-muted: #8a8a8a;--kin-accent: #635bff;--kin-bubble-user: #f5f5f5;--kin-bubble-user-text: #171717;--kin-bubble-assistant: #1a1a1a;--kin-bubble-assistant-text: #ffffff;--kin-glow-1: #ff6b6b;--kin-glow-2: #c850c0;--kin-glow-3: #635bff;--kin-focus-ring: var(--kin-accent);--kin-focus-ring-offset: 2px;--kin-radius: 16px;--kin-radius-sm: 8px;--kin-panel-width: 450px;--kin-panel-height: min(640px, calc(100svh - 16px));--kin-launcher-width: 380px;--kin-launcher-width-expanded: 450px;--kin-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--kin-font-size: 14px;--kin-line-height: 1.5;--kin-transition: .2s ease;--kin-open-duration: .35s;--kin-open-easing: cubic-bezier(.32, .72, 0, 1)}.kin-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.kin-skip-link{position:absolute;top:-100%;left:50%;transform:translate(-50%);z-index:1000000;padding:8px 16px;background:var(--kin-bg-elevated);color:var(--kin-text);border-radius:var(--kin-radius-sm);text-decoration:none;font-weight:500}.kin-skip-link:focus{top:8px;outline:2px solid var(--kin-focus-ring);outline-offset:2px}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.kin-widget{position:fixed;bottom:24px;left:50%;transform:translate(-50%);z-index:999999;font-family:var(--kin-font);font-size:var(--kin-font-size);line-height:var(--kin-line-height);display:flex;flex-direction:column;align-items:center;gap:16px}.kin-launcher{width:var(--kin-launcher-width);max-width:calc(100vw - 48px);transition:width var(--kin-open-duration) var(--kin-open-easing)}.kin-launcher:has(:focus-within){width:var(--kin-launcher-width-expanded)}.kin-launcher.is-open{width:var(--kin-panel-width)}.kin-launcher-form{position:relative}.kin-launcher-input-wrapper{position:relative;display:flex;align-items:center;background:var(--kin-bg-elevated);border-radius:24px;padding:4px 6px 4px 16px;gap:12px;box-shadow:0 0 0 1px var(--kin-border),0 4px 16px #0000004d}.kin-launcher-input-wrapper:focus-within{box-shadow:0 0 0 1px var(--kin-border),0 4px 16px #0000004d}.kin-launcher-input-wrapper:before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:25px;padding:2px;background:linear-gradient(90deg,var(--kin-glow-1),var(--kin-glow-2),var(--kin-glow-3),var(--kin-glow-2),var(--kin-glow-1));background-size:300% 100%;animation:kin-gradient 4s ease infinite;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.85;transition:opacity var(--kin-transition);pointer-events:none}.kin-launcher-input-wrapper:after{content:"";position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;border-radius:26px;background:linear-gradient(90deg,var(--kin-glow-1),var(--kin-glow-2),var(--kin-glow-3),var(--kin-glow-2),var(--kin-glow-1));background-size:300% 100%;animation:kin-gradient 4s ease infinite;filter:blur(6px);opacity:.35;transition:opacity var(--kin-transition);pointer-events:none;z-index:-1}.kin-launcher-input-wrapper:focus-within:before{opacity:1}.kin-launcher-input-wrapper:focus-within:after{opacity:.5}@keyframes kin-gradient{0%,to{background-position:0% 50%}50%{background-position:100% 50%}}.kin-launcher-icon{width:20px;height:20px;color:var(--kin-text-muted);flex-shrink:0}.kin-launcher-icon-wrapper{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0}.kin-notification-badge{position:absolute;top:-4px;right:-4px;width:10px;height:10px;background:var(--kin-accent);border-radius:50%;border:2px solid var(--kin-bg-surface);animation:kin-pulse 2s ease-in-out infinite}@keyframes kin-pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.8}}@media (prefers-reduced-motion: reduce){.kin-notification-badge{animation:none}}.kin-launcher-input{flex:1;background:transparent;border:none;outline:none;color:var(--kin-text);font-size:var(--kin-font-size);font-family:var(--kin-font);padding:12px 0;min-width:0}.kin-launcher-input::placeholder{color:var(--kin-text-muted)}.kin-launcher-send{width:36px;height:36px;border-radius:50%;border:none;background:var(--kin-bg-muted);color:var(--kin-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--kin-transition);flex-shrink:0}.kin-launcher-send:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:var(--kin-focus-ring-offset)}.kin-launcher-send:not(:disabled){background:var(--kin-text);color:var(--kin-bg-base)}.kin-launcher-send:not(:disabled):hover{transform:scale(1.05)}.kin-launcher-send:disabled{cursor:not-allowed;opacity:.5}.kin-launcher-send svg{width:18px;height:18px}.kin-launcher-attach{width:36px;height:36px;border-radius:50%;border:none;background:transparent;color:var(--kin-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--kin-transition);flex-shrink:0;margin-right:-8px}.kin-launcher-attach:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:var(--kin-focus-ring-offset)}.kin-launcher-attach:not(:disabled):hover{background:var(--kin-bg-muted);color:var(--kin-text)}.kin-launcher-attach:disabled{cursor:not-allowed;opacity:.5}.kin-launcher-attach svg{width:18px;height:18px}.kin-launcher-attach.is-uploading svg{animation:kin-spin 1s linear infinite}@keyframes kin-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.kin-upload-error{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px;padding:8px 12px;background:#dc2626;color:#fff;font-size:12px;border-radius:var(--kin-radius-sm);white-space:nowrap;max-width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;animation:kin-error-in .2s ease}@keyframes kin-error-in{0%{opacity:0;transform:translate(-50%) translateY(4px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.kin-char-limit-error{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px;padding:8px 12px;background:#dc2626;color:#fff;font-size:12px;border-radius:var(--kin-radius-sm);white-space:nowrap;animation:kin-error-in .2s ease}.kin-panel{width:var(--kin-panel-width);max-width:calc(100vw - 32px);height:var(--kin-panel-height);max-height:calc(100svh - 120px);background:var(--kin-bg-base);border-radius:var(--kin-radius);border:1px solid var(--kin-border);box-shadow:0 8px 32px #00000080,0 0 0 1px var(--kin-border);display:flex;flex-direction:column;overflow:hidden;animation:kin-panel-in var(--kin-open-duration) var(--kin-open-easing);transform-origin:bottom center}@keyframes kin-panel-in{0%{opacity:0;transform:translateY(16px) scale(.96)}40%{opacity:1}to{opacity:1;transform:translateY(0) scale(1)}}.kin-header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid var(--kin-border);background:var(--kin-bg-elevated)}.kin-header-title{font-size:14px;font-weight:500;color:var(--kin-text);margin:0}.kin-header-actions{display:flex;align-items:center;gap:4px}.kin-icon-btn{width:32px;height:32px;border-radius:var(--kin-radius-sm);border:none;background:transparent;color:var(--kin-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--kin-transition)}.kin-icon-btn:hover{background:var(--kin-bg-muted);color:var(--kin-text)}.kin-icon-btn:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:var(--kin-focus-ring-offset);background:var(--kin-bg-muted);color:var(--kin-text)}.kin-icon-btn svg{width:18px;height:18px}.kin-clear-btn{font-size:14px;transition:all var(--kin-transition);color:var(--kin-accent)}.kin-clear-btn:hover{background:var(--kin-bg-muted);color:var(--kin-accent)}.kin-clear-confirm{background:var(--kin-accent);color:#fff}.kin-clear-confirm:hover{background:var(--kin-accent);opacity:.9;color:#fff}.kin-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:16px}.kin-messages-empty{justify-content:center;align-items:center}.kin-empty-state{text-align:center;padding:24px}.kin-empty-icon{width:48px;height:48px;margin:0 auto 16px;color:var(--kin-text-muted);opacity:.5}.kin-empty-icon svg{width:100%;height:100%}.kin-empty-text{color:var(--kin-text);font-size:15px;margin:0 0 8px}.kin-empty-subtext{color:var(--kin-text-muted);font-size:13px;margin:0}.kin-starter-prompts{display:flex;flex-direction:column-reverse;align-items:flex-start;gap:8px;padding:0 0 12px;margin-left:0}.kin-starter-btn{display:inline-block;padding:10px 16px;background:var(--kin-bg-elevated);border:1px solid var(--kin-border);border-radius:20px;color:var(--kin-text);font-size:13px;font-family:inherit;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,transform .1s ease;text-align:left;white-space:nowrap;opacity:0;animation:kin-starter-fade-in .3s ease-out forwards}.kin-starter-btn:nth-child(1){animation-delay:.05s}.kin-starter-btn:nth-child(2){animation-delay:.1s}.kin-starter-btn:nth-child(3){animation-delay:.15s}.kin-starter-btn:nth-child(4){animation-delay:.2s}.kin-starter-btn:nth-child(5){animation-delay:.25s}@keyframes kin-starter-fade-in{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.kin-starter-btn:hover{background:var(--kin-bg-surface);border-color:var(--kin-text-muted)}.kin-starter-btn:focus{outline:none;box-shadow:0 0 0 2px var(--kin-focus-ring)}.kin-starter-btn:active{transform:scale(.98)}@media (prefers-reduced-motion: reduce){.kin-starter-prompts,.kin-starter-btn{animation:none;opacity:1;transform:none}}.kin-divider{display:flex;align-items:center;gap:12px;color:var(--kin-glow-1);font-size:11px;text-transform:uppercase;letter-spacing:.5px;font-weight:500}.kin-divider:before,.kin-divider:after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--kin-glow-1),transparent);opacity:.3}.kin-system-message{display:flex;justify-content:center;padding:8px 16px}.kin-system-message span{font-size:12px;color:var(--kin-text-muted);background:var(--kin-bg-surface);padding:6px 12px;border-radius:12px;border:1px solid var(--kin-border)}.kin-message{display:flex;flex-direction:column;max-width:85%}.kin-message-user{align-self:flex-end}.kin-message-assistant{align-self:flex-start}.kin-bubble{padding:12px 16px;border-radius:var(--kin-radius)}.kin-message-user .kin-bubble{background:var(--kin-bubble-user);color:var(--kin-bubble-user-text);border-bottom-right-radius:4px}.kin-message-assistant .kin-bubble{background:var(--kin-bubble-assistant);color:var(--kin-bubble-assistant-text);border:1px solid var(--kin-border);border-bottom-left-radius:4px}.kin-bubble p{margin:0}.kin-message-footer{display:flex;align-items:center;gap:6px;margin-top:6px;padding-left:4px;font-size:11px;color:var(--kin-text-muted)}.kin-loading-dots{display:flex;gap:6px;padding:8px}.kin-loading-dots span{width:8px;height:8px;background:var(--kin-text-muted);border-radius:50%;animation:kin-typing 1.4s ease-in-out infinite}.kin-loading-dots span:nth-child(2){animation-delay:.15s}.kin-loading-dots span:nth-child(3){animation-delay:.3s}.kin-typing-container{display:flex;flex-direction:column;align-items:flex-start;align-self:flex-start;width:fit-content}.kin-typing{display:inline-flex;align-items:center;gap:5px;padding:12px 16px;min-height:44px;box-sizing:border-box;background:var(--kin-bubble-assistant);border:1px solid var(--kin-border);border-radius:var(--kin-radius);border-bottom-left-radius:4px}.kin-typing span{width:8px;height:8px;background:var(--kin-text-muted);border-radius:50%;animation:kin-typing 1.4s ease-in-out infinite}.kin-typing span:nth-child(2){animation-delay:.15s}.kin-typing span:nth-child(3){animation-delay:.3s}@keyframes kin-typing{0%,to{opacity:.3;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}.kin-markdown{line-height:1.65;font-size:14px;color:var(--kin-bubble-assistant-text)}.kin-markdown p{margin:0 0 1em}.kin-markdown p:last-child{margin-bottom:0}.kin-markdown strong,.kin-markdown b{font-weight:600}.kin-markdown em,.kin-markdown i{font-style:italic}.kin-markdown a{color:var(--kin-accent);text-decoration:underline;text-underline-offset:2px;transition:color var(--kin-transition)}.kin-markdown a:hover{text-decoration-thickness:2px}.kin-markdown a:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:2px;border-radius:2px}.kin-markdown code{background:rgba(255,255,255,.1);padding:.15em .4em;border-radius:4px;font-family:SF Mono,Monaco,Consolas,monospace;font-size:.875em}.kin-markdown pre{background:rgba(0,0,0,.4);padding:14px 16px;border-radius:var(--kin-radius-sm);overflow-x:auto;margin:1em 0;border:1px solid var(--kin-border)}.kin-markdown pre code{background:none;padding:0;font-size:.85em;line-height:1.5}.kin-markdown ul{margin:.75em 0;padding-left:1.5em;list-style-type:disc}.kin-markdown ol{margin:.75em 0;padding-left:1.5em;list-style-type:decimal}.kin-markdown li{margin:.35em 0}.kin-markdown li::marker{color:var(--kin-text-muted)}.kin-markdown ul ul,.kin-markdown ol ol,.kin-markdown ul ol,.kin-markdown ol ul{margin:.25em 0}.kin-markdown blockquote{border-left:3px solid var(--kin-accent);margin:1em 0;padding:.5em 0 .5em 1em;color:var(--kin-text-secondary);font-style:italic}.kin-markdown h1,.kin-markdown h2,.kin-markdown h3,.kin-markdown h4{font-weight:600;margin:1.25em 0 .5em;line-height:1.3}.kin-markdown h1:first-child,.kin-markdown h2:first-child,.kin-markdown h3:first-child{margin-top:0}.kin-markdown h1{font-size:1.4em}.kin-markdown h2{font-size:1.25em}.kin-markdown h3{font-size:1.1em}.kin-markdown h4{font-size:1em}.kin-markdown table{width:100%;border-collapse:collapse;margin:1em 0;font-size:.9em}.kin-markdown th,.kin-markdown td{padding:.5em .75em;border:1px solid var(--kin-border);text-align:left}.kin-markdown th{background:var(--kin-bg-muted);font-weight:600}.kin-markdown hr{border:none;border-top:1px solid var(--kin-border);margin:1.5em 0}.kin-markdown input[type=checkbox]{margin-right:.5em;accent-color:var(--kin-accent)}.kin-markdown .streamdown-caret{display:inline-block;width:2px;height:1em;background:var(--kin-accent);margin-left:2px;animation:kin-caret 1s ease-in-out infinite;vertical-align:text-bottom}@keyframes kin-caret{0%,to{opacity:1}50%{opacity:0}}.kin-messages::-webkit-scrollbar{width:6px}.kin-messages::-webkit-scrollbar-track{background:transparent}.kin-messages::-webkit-scrollbar-thumb{background:var(--kin-bg-muted);border-radius:3px}.kin-messages::-webkit-scrollbar-thumb:hover{background:var(--kin-text-muted)}@media (forced-colors: active){.kin-launcher-input-wrapper,.kin-panel,.kin-bubble{border:2px solid CanvasText}.kin-launcher-send,.kin-icon-btn{border:1px solid ButtonText}.kin-launcher-input-wrapper:before{display:none}}@media (min-resolution: 1dppx){.kin-widget{font-size:max(14px,1rem)}.kin-panel{min-height:auto}.kin-messages{word-wrap:break-word;overflow-wrap:break-word}}
|
|
26384
|
-
`,
|
|
26385
|
-
serviceUrl: e,
|
|
26386
|
-
|
|
26387
|
-
|
|
26388
|
-
|
|
26389
|
-
|
|
26390
|
-
container: a
|
|
26384
|
+
`, rx = "wss://agents.inploi.com", lx = ({
|
|
26385
|
+
serviceUrl: e = rx,
|
|
26386
|
+
theme: t = tx,
|
|
26387
|
+
starterPrompts: n = [],
|
|
26388
|
+
mode: r = "floating",
|
|
26389
|
+
container: i
|
|
26391
26390
|
}) => d0(({
|
|
26392
|
-
logger:
|
|
26391
|
+
logger: a,
|
|
26392
|
+
publishableKey: s
|
|
26393
26393
|
}) => {
|
|
26394
|
-
|
|
26395
|
-
|
|
26396
|
-
|
|
26397
|
-
|
|
26398
|
-
|
|
26394
|
+
if (!s)
|
|
26395
|
+
throw new Error("Kin plugin requires a publishableKey. Pass it to initialiseSdk().");
|
|
26396
|
+
let u = !1, o = null, l = t, f = null, d = !1, p = null, h = null, m = !1;
|
|
26397
|
+
const T = r === "embedded", C = () => {
|
|
26398
|
+
if (i)
|
|
26399
|
+
if (typeof i == "string") {
|
|
26400
|
+
const H = document.querySelector(i);
|
|
26399
26401
|
if (H instanceof HTMLElement)
|
|
26400
26402
|
return h = H, m = !1, H;
|
|
26401
26403
|
} else
|
|
26402
|
-
return h =
|
|
26404
|
+
return h = i, m = !1, i;
|
|
26403
26405
|
const R = document.getElementById("inploi-kin-root");
|
|
26404
26406
|
if (R)
|
|
26405
26407
|
return h = R, m = !1, R;
|
|
@@ -26449,7 +26451,7 @@ ${A}
|
|
|
26449
26451
|
Ts(Ot($e, {}, [Ot("style", {
|
|
26450
26452
|
id: "kin-styles"
|
|
26451
26453
|
}, y(l)), Ot(W6, {
|
|
26452
|
-
starterPrompts:
|
|
26454
|
+
starterPrompts: n,
|
|
26453
26455
|
embedded: T,
|
|
26454
26456
|
onSendMessage: (H) => {
|
|
26455
26457
|
o && o.sendMessage(H);
|
|
@@ -26480,16 +26482,16 @@ ${A}
|
|
|
26480
26482
|
if (o)
|
|
26481
26483
|
return;
|
|
26482
26484
|
$.connectionState.value = "connecting", f || (f = ps());
|
|
26483
|
-
const R = `${e}/agent/candidate/${f}?key=${
|
|
26485
|
+
const R = `${e}/agent/candidate/${f}?key=${s}`;
|
|
26484
26486
|
o = z0({
|
|
26485
26487
|
url: R,
|
|
26486
26488
|
onMessage: (A) => {
|
|
26487
26489
|
switch (A.type) {
|
|
26488
26490
|
case "authenticated":
|
|
26489
|
-
|
|
26491
|
+
a.info(`Authenticated with ${A.company}`), $.connectionState.value = "connected";
|
|
26490
26492
|
break;
|
|
26491
26493
|
case "history":
|
|
26492
|
-
A.messages && A.messages.length > 0 && (
|
|
26494
|
+
A.messages && A.messages.length > 0 && (a.info(`Loaded ${A.messages.length} messages from server`), $.setMessages(A.messages));
|
|
26493
26495
|
break;
|
|
26494
26496
|
case "response_start":
|
|
26495
26497
|
$.isStreaming.value = !0, $.addMessage({
|
|
@@ -26504,28 +26506,28 @@ ${A}
|
|
|
26504
26506
|
$.isStreaming.value = !1, $.syncToOtherTabs(), $.isOpen.value || $.setHasUnreadMessages(!0);
|
|
26505
26507
|
break;
|
|
26506
26508
|
case "data_cleared":
|
|
26507
|
-
|
|
26509
|
+
a.info("User data cleared"), $.clearMessages(), $.addMessage({
|
|
26508
26510
|
role: "system",
|
|
26509
26511
|
content: "Your conversation data has been cleared."
|
|
26510
26512
|
});
|
|
26511
26513
|
break;
|
|
26512
26514
|
case "guardrail_block":
|
|
26513
|
-
$.isStreaming.value = !1,
|
|
26515
|
+
$.isStreaming.value = !1, a.warn("Content blocked by safety policy"), $.addMessage({
|
|
26514
26516
|
role: "system",
|
|
26515
26517
|
content: A.content || "I'm not able to help with that request."
|
|
26516
26518
|
}), $.syncToOtherTabs();
|
|
26517
26519
|
break;
|
|
26518
26520
|
case "upload_received":
|
|
26519
|
-
|
|
26521
|
+
a.info(`File upload received: ${A.fileName}`), $.setUploadState("processing", A.fileName);
|
|
26520
26522
|
break;
|
|
26521
26523
|
case "file_processing":
|
|
26522
|
-
|
|
26524
|
+
a.info(`Processing file: ${A.fileName}`), $.setUploadState("processing", A.fileName);
|
|
26523
26525
|
break;
|
|
26524
26526
|
case "file_processed":
|
|
26525
|
-
A.status === "success" ? (
|
|
26527
|
+
A.status === "success" ? (a.info(`File processed successfully: ${A.fileName}`), $.setUploadState("success", A.fileName), setTimeout(() => $.resetUploadState(), 2e3)) : (a.error(`File processing failed: ${A.error}`), $.setUploadState("error", A.fileName, A.error));
|
|
26526
26528
|
break;
|
|
26527
26529
|
case "error":
|
|
26528
|
-
$.isStreaming.value = !1, $.uploadState.value !== "idle" && $.setUploadState("error", void 0, A.content),
|
|
26530
|
+
$.isStreaming.value = !1, $.uploadState.value !== "idle" && $.setUploadState("error", void 0, A.content), a.error("Kin error:", A.content), $.addMessage({
|
|
26529
26531
|
role: "assistant",
|
|
26530
26532
|
content: A.content || "An error occurred"
|
|
26531
26533
|
});
|
|
@@ -26533,17 +26535,17 @@ ${A}
|
|
|
26533
26535
|
}
|
|
26534
26536
|
},
|
|
26535
26537
|
onOpen: () => {
|
|
26536
|
-
|
|
26538
|
+
a.info("WebSocket opened, awaiting authentication...");
|
|
26537
26539
|
},
|
|
26538
26540
|
onClose: () => {
|
|
26539
|
-
|
|
26541
|
+
a.info("Disconnected from Kin service"), $.connectionState.value = "disconnected", $.isStreaming.value = !1;
|
|
26540
26542
|
const A = d;
|
|
26541
|
-
o = null, d = !1, !A && $.isOpen.value && (
|
|
26543
|
+
o = null, d = !1, !A && $.isOpen.value && (a.info("Attempting to reconnect..."), p = setTimeout(() => {
|
|
26542
26544
|
p = null, w();
|
|
26543
26545
|
}, 1e3));
|
|
26544
26546
|
},
|
|
26545
26547
|
onError: (A) => {
|
|
26546
|
-
|
|
26548
|
+
a.error("Kin connection error:", A), $.connectionState.value = "error", $.isStreaming.value = !1;
|
|
26547
26549
|
}
|
|
26548
26550
|
});
|
|
26549
26551
|
}, D = () => {
|
|
@@ -26551,13 +26553,13 @@ ${A}
|
|
|
26551
26553
|
};
|
|
26552
26554
|
return {
|
|
26553
26555
|
prepare: () => {
|
|
26554
|
-
typeof window > "u" || u || (f = ps(), I(), u = !0, w(),
|
|
26556
|
+
typeof window > "u" || u || (f = ps(), I(), u = !0, w(), a.info("Kin plugin prepared"));
|
|
26555
26557
|
},
|
|
26556
26558
|
open: () => {
|
|
26557
|
-
typeof window > "u" || (u || (I(), u = !0), w(), $.isOpen.value = !0, $.clearUnreadMessages(),
|
|
26559
|
+
typeof window > "u" || (u || (I(), u = !0), w(), $.isOpen.value = !0, $.clearUnreadMessages(), a.info("Kin opened"));
|
|
26558
26560
|
},
|
|
26559
26561
|
close: () => {
|
|
26560
|
-
typeof window > "u" || ($.isOpen.value = !1,
|
|
26562
|
+
typeof window > "u" || ($.isOpen.value = !1, a.info("Kin closed"));
|
|
26561
26563
|
},
|
|
26562
26564
|
toggle: () => {
|
|
26563
26565
|
typeof window > "u" || ($.isOpen.value ? $.isOpen.value = !1 : (u || (I(), u = !0), w(), $.isOpen.value = !0, $.clearUnreadMessages()));
|
|
@@ -26568,22 +26570,22 @@ ${A}
|
|
|
26568
26570
|
const H = (A = h.shadowRoot) == null ? void 0 : A.getElementById("kin-styles");
|
|
26569
26571
|
H && (H.textContent = y(l));
|
|
26570
26572
|
}
|
|
26571
|
-
|
|
26573
|
+
a.info("Kin theme updated:", R);
|
|
26572
26574
|
},
|
|
26573
26575
|
destroy: () => {
|
|
26574
|
-
typeof window > "u" || (D(), h && (h.shadowRoot && Ts(null, h.shadowRoot), m && h.remove()), $.isOpen.value = !1, $.isStreaming.value = !1, $.connectionState.value = "idle", $.clearMessages(), $.resetUploadState(), $.clearUnreadMessages(), u = !1, h = null, m = !1,
|
|
26576
|
+
typeof window > "u" || (D(), h && (h.shadowRoot && Ts(null, h.shadowRoot), m && h.remove()), $.isOpen.value = !1, $.isStreaming.value = !1, $.connectionState.value = "idle", $.clearMessages(), $.resetUploadState(), $.clearUnreadMessages(), u = !1, h = null, m = !1, a.info("Kin plugin destroyed"));
|
|
26575
26577
|
}
|
|
26576
26578
|
};
|
|
26577
26579
|
});
|
|
26578
26580
|
export {
|
|
26579
|
-
|
|
26581
|
+
ox as B,
|
|
26580
26582
|
Oe as F,
|
|
26581
26583
|
it as N,
|
|
26582
26584
|
Xk as a,
|
|
26583
26585
|
X as b,
|
|
26584
|
-
|
|
26586
|
+
ux as c,
|
|
26585
26587
|
ce as h,
|
|
26586
|
-
|
|
26588
|
+
lx as k,
|
|
26587
26589
|
b as o,
|
|
26588
26590
|
we as p,
|
|
26589
26591
|
at as q,
|
|
@@ -108,11 +108,11 @@ Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error
|
|
|
108
108
|
`||f==="\r"){o=!0;break}if(!o)return u;let l=[];for(let f of u)f===" "?l.push("\\t"):f===`
|
|
109
109
|
`?l.push("\\n"):f==="\r"?l.push("\\r"):l.push(f);return l.join("")},i=t.length>0?n.length+1:n.length,a=new Array(i),s=0;t.length>0&&(a[s]=t.map(r).join(" "),s+=1);for(let u of n)a[s]=u.map(r).join(" "),s+=1;return a.join(`
|
|
110
110
|
`)},Ui=e=>{let t=!1;for(let r of e)if(r==="\\"||r==="|"){t=!0;break}if(!t)return e;let n=[];for(let r of e)r==="\\"?n.push("\\\\"):r==="|"?n.push("\\|"):n.push(r);return n.join("")},d6=e=>{let{headers:t,rows:n}=e;if(t.length===0)return"";let r=new Array(n.length+2),i=0,a=t.map(u=>Ui(u));r[i]=`| ${a.join(" | ")} |`,i+=1;let s=new Array(t.length);for(let u=0;u<t.length;u+=1)s[u]="---";r[i]=`| ${s.join(" | ")} |`,i+=1;for(let u of n)if(u.length<t.length){let o=new Array(t.length);for(let l=0;l<t.length;l+=1)o[l]=l<u.length?Ui(u[l]):"";r[i]=`| ${o.join(" | ")} |`,i+=1}else{let o=u.map(l=>Ui(l));r[i]=`| ${o.join(" | ")} |`,i+=1}return r.join(`
|
|
111
|
-
`)},f6=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let[a,s]=le(!1),[u,o]=le(!1),l=ve(null),f=ve(0),{isAnimating:d}=nt(tt),p=async m=>{var T,C;if(typeof window>"u"||!((T=navigator==null?void 0:navigator.clipboard)!=null&&T.write)){r==null||r(new Error("Clipboard API not available"));return}try{let y=(C=l.current)==null?void 0:C.closest('[data-streamdown="table-wrapper"]'),I=y==null?void 0:y.querySelector("table");if(!I){r==null||r(new Error("Table not found"));return}let w=Cd(I),D=m==="csv"?Sd(w):c6(w),R=new ClipboardItem({"text/plain":new Blob([D],{type:"text/plain"}),"text/html":new Blob([I.outerHTML],{type:"text/html"})});await navigator.clipboard.write([R]),o(!0),s(!1),n==null||n(m),f.current=window.setTimeout(()=>o(!1),i)}catch(y){r==null||r(y)}};Se(()=>{let m=T=>{let C=T.composedPath();l.current&&!C.includes(l.current)&&s(!1)};return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m),window.clearTimeout(f.current)}},[]);let h=u?us:os;return b("div",{className:"relative",ref:l,children:[b("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:d,onClick:()=>s(!a),title:"Copy table",type:"button",children:e??b(h,{size:14})}),a?b("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>p("csv"),title:"Copy table as CSV",type:"button",children:"CSV"}),b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>p("tsv"),title:"Copy table as TSV",type:"button",children:"TSV"})]}):null]})},h6=({children:e,className:t,onDownload:n,onError:r})=>{let[i,a]=le(!1),s=ve(null),{isAnimating:u}=nt(tt),o=l=>{var f;try{let d=(f=s.current)==null?void 0:f.closest('[data-streamdown="table-wrapper"]'),p=d==null?void 0:d.querySelector("table");if(!p){r==null||r(new Error("Table not found"));return}let h=Cd(p),m=l==="csv"?Sd(h):d6(h);ln(`table.${l==="csv"?"csv":"md"}`,m,l==="csv"?"text/csv":"text/markdown"),a(!1),n==null||n(l)}catch(d){r==null||r(d)}};return Se(()=>{let l=f=>{let d=f.composedPath();s.current&&!d.includes(s.current)&&a(!1)};return document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[]),b("div",{className:"relative",ref:s,children:[b("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:()=>a(!i),title:"Download table",type:"button",children:e??b(hi,{size:14})}),i?b("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>o("csv"),title:"Download table as CSV",type:"button",children:"CSV"}),b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>o("markdown"),title:"Download table as Markdown",type:"button",children:"Markdown"})]}):null]})},p6=({children:e,className:t,showControls:n,...r})=>b("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[n?b("div",{className:"flex items-center justify-end gap-1",children:[b(f6,{}),b(h6,{})]}):null,b("div",{className:"overflow-x-auto",children:b("table",{className:K("w-full border-collapse border border-border",t),"data-streamdown":"table",...r,children:e})})]}),m6=Qo(()=>Promise.resolve().then(()=>require("./code-block-37QAKDTI-74945cd2.cjs")).then(e=>({default:e.CodeBlock}))),g6=Qo(()=>Promise.resolve().then(()=>require("./mermaid-4DMBBIKO-db642aeb.cjs")).then(e=>({default:e.Mermaid}))),b6=/language-([^\s]+)/;function pi(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,a=t.position.end;return(n==null?void 0:n.line)===(r==null?void 0:r.line)&&(n==null?void 0:n.column)===(r==null?void 0:r.column)&&(i==null?void 0:i.line)===(a==null?void 0:a.line)&&(i==null?void 0:i.column)===(a==null?void 0:a.column)}function ye(e,t){return e.className===t.className&&pi(e.node,t.node)}var ba=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,_r=(e,t)=>{if(typeof e=="boolean")return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},cs=he(({children:e,className:t,node:n,...r})=>b("ol",{className:K("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...r,children:e}),(e,t)=>ye(e,t));cs.displayName="MarkdownOl";var wd=he(({children:e,className:t,node:n,...r})=>b("li",{className:K("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e}),(e,t)=>e.className===t.className&&pi(e.node,t.node));wd.displayName="MarkdownLi";var Id=he(({children:e,className:t,node:n,...r})=>b("ul",{className:K("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...r,children:e}),(e,t)=>ye(e,t));Id.displayName="MarkdownUl";var Nd=he(({className:e,node:t,...n})=>b("hr",{className:K("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n}),(e,t)=>ye(e,t));Nd.displayName="MarkdownHr";var Ld=he(({children:e,className:t,node:n,...r})=>b("span",{className:K("font-semibold",t),"data-streamdown":"strong",...r,children:e}),(e,t)=>ye(e,t));Ld.displayName="MarkdownStrong";var E6=({children:e,className:t,href:n,node:r,...i})=>{let{linkSafety:a}=nt(tt),[s,u]=le(!1),o=n==="streamdown:incomplete-link",l=De(async h=>{if(!(!(a!=null&&a.enabled&&n)||o)){if(h.preventDefault(),a.onLinkCheck&&await a.onLinkCheck(n)){window.open(n,"_blank","noreferrer");return}u(!0)}},[a,n,o]),f=De(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),d=De(()=>{u(!1)},[]),p={url:n??"",isOpen:s,onClose:d,onConfirm:f};return a!=null&&a.enabled&&n?b($e,{children:[b("button",{className:K("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":o,"data-streamdown":"link",onClick:l,type:"button",children:e}),a.renderModal?a.renderModal(p):b(r6,{...p})]}):b("a",{className:K("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":o,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...i,children:e})},vd=he(E6,(e,t)=>ye(e,t)&&e.href===t.href);vd.displayName="MarkdownA";var Rd=he(({children:e,className:t,node:n,...r})=>b("h1",{className:K("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e}),(e,t)=>ye(e,t));Rd.displayName="MarkdownH1";var Od=he(({children:e,className:t,node:n,...r})=>b("h2",{className:K("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e}),(e,t)=>ye(e,t));Od.displayName="MarkdownH2";var Dd=he(({children:e,className:t,node:n,...r})=>b("h3",{className:K("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e}),(e,t)=>ye(e,t));Dd.displayName="MarkdownH3";var Pd=he(({children:e,className:t,node:n,...r})=>b("h4",{className:K("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e}),(e,t)=>ye(e,t));Pd.displayName="MarkdownH4";var Md=he(({children:e,className:t,node:n,...r})=>b("h5",{className:K("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e}),(e,t)=>ye(e,t));Md.displayName="MarkdownH5";var Bd=he(({children:e,className:t,node:n,...r})=>b("h6",{className:K("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e}),(e,t)=>ye(e,t));Bd.displayName="MarkdownH6";var Fd=he(({children:e,className:t,node:n,...r})=>{let{controls:i}=nt(tt),a=ba(i,"table");return b(p6,{className:t,showControls:a,...r,children:e})},(e,t)=>ye(e,t));Fd.displayName="MarkdownTable";var Hd=he(({children:e,className:t,node:n,...r})=>b("thead",{className:K("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e}),(e,t)=>ye(e,t));Hd.displayName="MarkdownThead";var Ud=he(({children:e,className:t,node:n,...r})=>b("tbody",{className:K("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...r,children:e}),(e,t)=>ye(e,t));Ud.displayName="MarkdownTbody";var zd=he(({children:e,className:t,node:n,...r})=>b("tr",{className:K("border-border border-b",t),"data-streamdown":"table-row",...r,children:e}),(e,t)=>ye(e,t));zd.displayName="MarkdownTr";var $d=he(({children:e,className:t,node:n,...r})=>b("th",{className:K("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e}),(e,t)=>ye(e,t));$d.displayName="MarkdownTh";var Yd=he(({children:e,className:t,node:n,...r})=>b("td",{className:K("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e}),(e,t)=>ye(e,t));Yd.displayName="MarkdownTd";var jd=he(({children:e,className:t,node:n,...r})=>b("blockquote",{className:K("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e}),(e,t)=>ye(e,t));jd.displayName="MarkdownBlockquote";var qd=he(({children:e,className:t,node:n,...r})=>b("sup",{className:K("text-sm",t),"data-streamdown":"superscript",...r,children:e}),(e,t)=>ye(e,t));qd.displayName="MarkdownSup";var Vd=he(({children:e,className:t,node:n,...r})=>b("sub",{className:K("text-sm",t),"data-streamdown":"subscript",...r,children:e}),(e,t)=>ye(e,t));Vd.displayName="MarkdownSub";var Wd=he(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let i=s=>{var u,o;if(!rn(s))return!1;let l=Array.isArray(s.props.children)?s.props.children:[s.props.children],f=!1,d=!1;for(let p of l)if(p){if(typeof p=="string")p.trim()!==""&&(f=!0);else if(rn(p))if(((u=p.props)==null?void 0:u["data-footnote-backref"])!==void 0)d=!0;else{let h=Array.isArray(p.props.children)?p.props.children:[p.props.children];for(let m of h){if(typeof m=="string"&&m.trim()!==""){f=!0;break}if(rn(m)&&((o=m.props)==null?void 0:o["data-footnote-backref"])===void 0){f=!0;break}}}}return d&&!f},a=Array.isArray(e)?e.map(s=>{if(!rn(s))return s;if(s.type===cs){let u=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(o=>!i(o));return u.length===0?null:{...s,props:{...s.props,children:u}}}return s}):e;return(Array.isArray(a)?a.some(s=>s!==null):a!==null)?b("section",{className:t,...r,children:a}):null}return b("section",{className:t,...r,children:e})},(e,t)=>ye(e,t));Wd.displayName="MarkdownSection";var T6=({node:e,className:t,children:n,...r})=>{var i,a,s;let u=((i=e==null?void 0:e.position)==null?void 0:i.start.line)===((a=e==null?void 0:e.position)==null?void 0:a.end.line),{mermaid:o,controls:l}=nt(tt),f=ls();if(u)return b("code",{className:K("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let d=t==null?void 0:t.match(b6),p=(s=d==null?void 0:d.at(1))!=null?s:"",h="";if(rn(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?h=n.props.children:typeof n=="string"&&(h=n),p==="mermaid"&&f){let T=ba(l,"mermaid"),C=_r(l,"download"),y=_r(l,"copy"),I=_r(l,"fullscreen"),w=_r(l,"panZoom"),D=T&&(C||y||I);return b(Bn,{fallback:b(To,{}),children:b("div",{className:K("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[D?b("div",{className:"flex items-center justify-end gap-2",children:[C?b(s6,{chart:h,config:o==null?void 0:o.config}):null,y?b(bo,{code:h}):null,I?b(l6,{chart:h,config:o==null?void 0:o.config}):null]}):null,b(g6,{chart:h,config:o==null?void 0:o.config,showControls:w})]})})}let m=ba(l,"code");return b(Bn,{fallback:b(To,{}),children:b(m6,{className:K("overflow-x-auto border-border border-t",t),code:h,language:p,children:m?b($e,{children:[b(Zk,{code:h,language:p}),b(bo,{})]}):null})})},Gd=he(T6,(e,t)=>e.className===t.className&&pi(e.node,t.node));Gd.displayName="MarkdownCode";var Qd=he(e6,(e,t)=>e.className===t.className&&pi(e.node,t.node));Qd.displayName="MarkdownImg";var Kd=he(({children:e,className:t,node:n,...r})=>{var i,a;let s=(Array.isArray(e)?e:[e]).filter(u=>u!=null&&u!=="");if(s.length===1&&rn(s[0])){let u=s[0].props.node,o=u==null?void 0:u.tagName;if(o==="img")return b($e,{children:e});if(o==="code"&&((i=u==null?void 0:u.position)==null?void 0:i.start.line)!==((a=u==null?void 0:u.position)==null?void 0:a.end.line))return b($e,{children:e})}return b("p",{className:t,...r,children:e})},(e,t)=>ye(e,t));Kd.displayName="MarkdownParagraph";var _6={ol:cs,li:wd,ul:Id,hr:Nd,strong:Ld,a:vd,h1:Rd,h2:Od,h3:Dd,h4:Pd,h5:Md,h6:Bd,table:Fd,thead:Hd,tbody:Ud,tr:zd,th:$d,td:Yd,blockquote:jd,code:Gd,img:Qd,pre:({children:e})=>e,sup:qd,sub:Vd,p:Kd,section:Wd},_o=[],ko={allowDangerousHtml:!0},kr=new WeakMap,k6=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let f="default";return this.keyCache.set(e,f),f}let a=f=>{if(!f||f.length===0)return"";let d="";for(let p=0;p<f.length;p+=1){let h=f[p];if(p>0&&(d+=","),Array.isArray(h)){let[m,T]=h;if(typeof m=="function"){let C=kr.get(m);C||(C=m.name,kr.set(m,C)),d+=C}else d+=String(m);d+=":",d+=JSON.stringify(T)}else if(typeof h=="function"){let m=kr.get(h);m||(m=h.name,kr.set(h,m)),d+=m}else d+=String(h)}return d},s=a(n),u=a(r),o=i?JSON.stringify(i):"",l=`${u}::${s}::${o}`;return this.keyCache.set(e,l),l}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let r=this.cache.keys().next().value;r&&this.cache.delete(r)}this.cache.set(n,t)}clear(){this.cache.clear()}},xo=new k6,Xd=e=>{let t=x6(e),n=e.children||"";return A6(t.runSync(t.parse(n),n),e)},x6=e=>{let t=xo.get(e);if(t)return t;let n=y6(e);return xo.set(e,n),n},y6=e=>{let t=e.rehypePlugins||_o,n=e.remarkPlugins||_o,r=e.remarkRehypeOptions?{...ko,...e.remarkRehypeOptions}:ko;return nk().use(n_).use(n).use(F_,r).use(t)},A6=(e,t)=>cT(e,{Fragment:$e,components:t.components,ignoreInvalidStyle:!0,jsx:b,jsxs:b,passKeys:!0,passNode:!0}),C6=/\[\^[^\]\s]{1,200}\](?!:)/,S6=/\[\^[^\]\s]{1,200}\]:/,w6=/<\/(\w+)>/,I6=/<(\w+)[\s>]/,zi=e=>{let t=0;for(;t<e.length&&(e[t]===" "||e[t]===" "||e[t]===`
|
|
111
|
+
`)},f6=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let[a,s]=le(!1),[u,o]=le(!1),l=ve(null),f=ve(0),{isAnimating:d}=nt(tt),p=async m=>{var T,C;if(typeof window>"u"||!((T=navigator==null?void 0:navigator.clipboard)!=null&&T.write)){r==null||r(new Error("Clipboard API not available"));return}try{let y=(C=l.current)==null?void 0:C.closest('[data-streamdown="table-wrapper"]'),I=y==null?void 0:y.querySelector("table");if(!I){r==null||r(new Error("Table not found"));return}let w=Cd(I),D=m==="csv"?Sd(w):c6(w),R=new ClipboardItem({"text/plain":new Blob([D],{type:"text/plain"}),"text/html":new Blob([I.outerHTML],{type:"text/html"})});await navigator.clipboard.write([R]),o(!0),s(!1),n==null||n(m),f.current=window.setTimeout(()=>o(!1),i)}catch(y){r==null||r(y)}};Se(()=>{let m=T=>{let C=T.composedPath();l.current&&!C.includes(l.current)&&s(!1)};return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m),window.clearTimeout(f.current)}},[]);let h=u?us:os;return b("div",{className:"relative",ref:l,children:[b("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:d,onClick:()=>s(!a),title:"Copy table",type:"button",children:e??b(h,{size:14})}),a?b("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>p("csv"),title:"Copy table as CSV",type:"button",children:"CSV"}),b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>p("tsv"),title:"Copy table as TSV",type:"button",children:"TSV"})]}):null]})},h6=({children:e,className:t,onDownload:n,onError:r})=>{let[i,a]=le(!1),s=ve(null),{isAnimating:u}=nt(tt),o=l=>{var f;try{let d=(f=s.current)==null?void 0:f.closest('[data-streamdown="table-wrapper"]'),p=d==null?void 0:d.querySelector("table");if(!p){r==null||r(new Error("Table not found"));return}let h=Cd(p),m=l==="csv"?Sd(h):d6(h);ln(`table.${l==="csv"?"csv":"md"}`,m,l==="csv"?"text/csv":"text/markdown"),a(!1),n==null||n(l)}catch(d){r==null||r(d)}};return Se(()=>{let l=f=>{let d=f.composedPath();s.current&&!d.includes(s.current)&&a(!1)};return document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)}},[]),b("div",{className:"relative",ref:s,children:[b("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:()=>a(!i),title:"Download table",type:"button",children:e??b(hi,{size:14})}),i?b("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>o("csv"),title:"Download table as CSV",type:"button",children:"CSV"}),b("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>o("markdown"),title:"Download table as Markdown",type:"button",children:"Markdown"})]}):null]})},p6=({children:e,className:t,showControls:n,...r})=>b("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[n?b("div",{className:"flex items-center justify-end gap-1",children:[b(f6,{}),b(h6,{})]}):null,b("div",{className:"overflow-x-auto",children:b("table",{className:K("w-full border-collapse border border-border",t),"data-streamdown":"table",...r,children:e})})]}),m6=Qo(()=>Promise.resolve().then(()=>require("./code-block-37QAKDTI-7f27b799.cjs")).then(e=>({default:e.CodeBlock}))),g6=Qo(()=>Promise.resolve().then(()=>require("./mermaid-4DMBBIKO-37b05f47.cjs")).then(e=>({default:e.Mermaid}))),b6=/language-([^\s]+)/;function pi(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,a=t.position.end;return(n==null?void 0:n.line)===(r==null?void 0:r.line)&&(n==null?void 0:n.column)===(r==null?void 0:r.column)&&(i==null?void 0:i.line)===(a==null?void 0:a.line)&&(i==null?void 0:i.column)===(a==null?void 0:a.column)}function ye(e,t){return e.className===t.className&&pi(e.node,t.node)}var ba=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,_r=(e,t)=>{if(typeof e=="boolean")return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},cs=he(({children:e,className:t,node:n,...r})=>b("ol",{className:K("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...r,children:e}),(e,t)=>ye(e,t));cs.displayName="MarkdownOl";var wd=he(({children:e,className:t,node:n,...r})=>b("li",{className:K("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e}),(e,t)=>e.className===t.className&&pi(e.node,t.node));wd.displayName="MarkdownLi";var Id=he(({children:e,className:t,node:n,...r})=>b("ul",{className:K("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...r,children:e}),(e,t)=>ye(e,t));Id.displayName="MarkdownUl";var Nd=he(({className:e,node:t,...n})=>b("hr",{className:K("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n}),(e,t)=>ye(e,t));Nd.displayName="MarkdownHr";var Ld=he(({children:e,className:t,node:n,...r})=>b("span",{className:K("font-semibold",t),"data-streamdown":"strong",...r,children:e}),(e,t)=>ye(e,t));Ld.displayName="MarkdownStrong";var E6=({children:e,className:t,href:n,node:r,...i})=>{let{linkSafety:a}=nt(tt),[s,u]=le(!1),o=n==="streamdown:incomplete-link",l=De(async h=>{if(!(!(a!=null&&a.enabled&&n)||o)){if(h.preventDefault(),a.onLinkCheck&&await a.onLinkCheck(n)){window.open(n,"_blank","noreferrer");return}u(!0)}},[a,n,o]),f=De(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),d=De(()=>{u(!1)},[]),p={url:n??"",isOpen:s,onClose:d,onConfirm:f};return a!=null&&a.enabled&&n?b($e,{children:[b("button",{className:K("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":o,"data-streamdown":"link",onClick:l,type:"button",children:e}),a.renderModal?a.renderModal(p):b(r6,{...p})]}):b("a",{className:K("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":o,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...i,children:e})},vd=he(E6,(e,t)=>ye(e,t)&&e.href===t.href);vd.displayName="MarkdownA";var Rd=he(({children:e,className:t,node:n,...r})=>b("h1",{className:K("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e}),(e,t)=>ye(e,t));Rd.displayName="MarkdownH1";var Od=he(({children:e,className:t,node:n,...r})=>b("h2",{className:K("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e}),(e,t)=>ye(e,t));Od.displayName="MarkdownH2";var Dd=he(({children:e,className:t,node:n,...r})=>b("h3",{className:K("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e}),(e,t)=>ye(e,t));Dd.displayName="MarkdownH3";var Pd=he(({children:e,className:t,node:n,...r})=>b("h4",{className:K("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e}),(e,t)=>ye(e,t));Pd.displayName="MarkdownH4";var Md=he(({children:e,className:t,node:n,...r})=>b("h5",{className:K("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e}),(e,t)=>ye(e,t));Md.displayName="MarkdownH5";var Bd=he(({children:e,className:t,node:n,...r})=>b("h6",{className:K("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e}),(e,t)=>ye(e,t));Bd.displayName="MarkdownH6";var Fd=he(({children:e,className:t,node:n,...r})=>{let{controls:i}=nt(tt),a=ba(i,"table");return b(p6,{className:t,showControls:a,...r,children:e})},(e,t)=>ye(e,t));Fd.displayName="MarkdownTable";var Hd=he(({children:e,className:t,node:n,...r})=>b("thead",{className:K("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e}),(e,t)=>ye(e,t));Hd.displayName="MarkdownThead";var Ud=he(({children:e,className:t,node:n,...r})=>b("tbody",{className:K("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...r,children:e}),(e,t)=>ye(e,t));Ud.displayName="MarkdownTbody";var zd=he(({children:e,className:t,node:n,...r})=>b("tr",{className:K("border-border border-b",t),"data-streamdown":"table-row",...r,children:e}),(e,t)=>ye(e,t));zd.displayName="MarkdownTr";var $d=he(({children:e,className:t,node:n,...r})=>b("th",{className:K("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e}),(e,t)=>ye(e,t));$d.displayName="MarkdownTh";var Yd=he(({children:e,className:t,node:n,...r})=>b("td",{className:K("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e}),(e,t)=>ye(e,t));Yd.displayName="MarkdownTd";var jd=he(({children:e,className:t,node:n,...r})=>b("blockquote",{className:K("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e}),(e,t)=>ye(e,t));jd.displayName="MarkdownBlockquote";var qd=he(({children:e,className:t,node:n,...r})=>b("sup",{className:K("text-sm",t),"data-streamdown":"superscript",...r,children:e}),(e,t)=>ye(e,t));qd.displayName="MarkdownSup";var Vd=he(({children:e,className:t,node:n,...r})=>b("sub",{className:K("text-sm",t),"data-streamdown":"subscript",...r,children:e}),(e,t)=>ye(e,t));Vd.displayName="MarkdownSub";var Wd=he(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let i=s=>{var u,o;if(!rn(s))return!1;let l=Array.isArray(s.props.children)?s.props.children:[s.props.children],f=!1,d=!1;for(let p of l)if(p){if(typeof p=="string")p.trim()!==""&&(f=!0);else if(rn(p))if(((u=p.props)==null?void 0:u["data-footnote-backref"])!==void 0)d=!0;else{let h=Array.isArray(p.props.children)?p.props.children:[p.props.children];for(let m of h){if(typeof m=="string"&&m.trim()!==""){f=!0;break}if(rn(m)&&((o=m.props)==null?void 0:o["data-footnote-backref"])===void 0){f=!0;break}}}}return d&&!f},a=Array.isArray(e)?e.map(s=>{if(!rn(s))return s;if(s.type===cs){let u=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(o=>!i(o));return u.length===0?null:{...s,props:{...s.props,children:u}}}return s}):e;return(Array.isArray(a)?a.some(s=>s!==null):a!==null)?b("section",{className:t,...r,children:a}):null}return b("section",{className:t,...r,children:e})},(e,t)=>ye(e,t));Wd.displayName="MarkdownSection";var T6=({node:e,className:t,children:n,...r})=>{var i,a,s;let u=((i=e==null?void 0:e.position)==null?void 0:i.start.line)===((a=e==null?void 0:e.position)==null?void 0:a.end.line),{mermaid:o,controls:l}=nt(tt),f=ls();if(u)return b("code",{className:K("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let d=t==null?void 0:t.match(b6),p=(s=d==null?void 0:d.at(1))!=null?s:"",h="";if(rn(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?h=n.props.children:typeof n=="string"&&(h=n),p==="mermaid"&&f){let T=ba(l,"mermaid"),C=_r(l,"download"),y=_r(l,"copy"),I=_r(l,"fullscreen"),w=_r(l,"panZoom"),D=T&&(C||y||I);return b(Bn,{fallback:b(To,{}),children:b("div",{className:K("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[D?b("div",{className:"flex items-center justify-end gap-2",children:[C?b(s6,{chart:h,config:o==null?void 0:o.config}):null,y?b(bo,{code:h}):null,I?b(l6,{chart:h,config:o==null?void 0:o.config}):null]}):null,b(g6,{chart:h,config:o==null?void 0:o.config,showControls:w})]})})}let m=ba(l,"code");return b(Bn,{fallback:b(To,{}),children:b(m6,{className:K("overflow-x-auto border-border border-t",t),code:h,language:p,children:m?b($e,{children:[b(Zk,{code:h,language:p}),b(bo,{})]}):null})})},Gd=he(T6,(e,t)=>e.className===t.className&&pi(e.node,t.node));Gd.displayName="MarkdownCode";var Qd=he(e6,(e,t)=>e.className===t.className&&pi(e.node,t.node));Qd.displayName="MarkdownImg";var Kd=he(({children:e,className:t,node:n,...r})=>{var i,a;let s=(Array.isArray(e)?e:[e]).filter(u=>u!=null&&u!=="");if(s.length===1&&rn(s[0])){let u=s[0].props.node,o=u==null?void 0:u.tagName;if(o==="img")return b($e,{children:e});if(o==="code"&&((i=u==null?void 0:u.position)==null?void 0:i.start.line)!==((a=u==null?void 0:u.position)==null?void 0:a.end.line))return b($e,{children:e})}return b("p",{className:t,...r,children:e})},(e,t)=>ye(e,t));Kd.displayName="MarkdownParagraph";var _6={ol:cs,li:wd,ul:Id,hr:Nd,strong:Ld,a:vd,h1:Rd,h2:Od,h3:Dd,h4:Pd,h5:Md,h6:Bd,table:Fd,thead:Hd,tbody:Ud,tr:zd,th:$d,td:Yd,blockquote:jd,code:Gd,img:Qd,pre:({children:e})=>e,sup:qd,sub:Vd,p:Kd,section:Wd},_o=[],ko={allowDangerousHtml:!0},kr=new WeakMap,k6=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let f="default";return this.keyCache.set(e,f),f}let a=f=>{if(!f||f.length===0)return"";let d="";for(let p=0;p<f.length;p+=1){let h=f[p];if(p>0&&(d+=","),Array.isArray(h)){let[m,T]=h;if(typeof m=="function"){let C=kr.get(m);C||(C=m.name,kr.set(m,C)),d+=C}else d+=String(m);d+=":",d+=JSON.stringify(T)}else if(typeof h=="function"){let m=kr.get(h);m||(m=h.name,kr.set(h,m)),d+=m}else d+=String(h)}return d},s=a(n),u=a(r),o=i?JSON.stringify(i):"",l=`${u}::${s}::${o}`;return this.keyCache.set(e,l),l}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let r=this.cache.keys().next().value;r&&this.cache.delete(r)}this.cache.set(n,t)}clear(){this.cache.clear()}},xo=new k6,Xd=e=>{let t=x6(e),n=e.children||"";return A6(t.runSync(t.parse(n),n),e)},x6=e=>{let t=xo.get(e);if(t)return t;let n=y6(e);return xo.set(e,n),n},y6=e=>{let t=e.rehypePlugins||_o,n=e.remarkPlugins||_o,r=e.remarkRehypeOptions?{...ko,...e.remarkRehypeOptions}:ko;return nk().use(n_).use(n).use(F_,r).use(t)},A6=(e,t)=>cT(e,{Fragment:$e,components:t.components,ignoreInvalidStyle:!0,jsx:b,jsxs:b,passKeys:!0,passNode:!0}),C6=/\[\^[^\]\s]{1,200}\](?!:)/,S6=/\[\^[^\]\s]{1,200}\]:/,w6=/<\/(\w+)>/,I6=/<(\w+)[\s>]/,zi=e=>{let t=0;for(;t<e.length&&(e[t]===" "||e[t]===" "||e[t]===`
|
|
112
112
|
`||e[t]==="\r");)t+=1;return t+1<e.length&&e[t]==="$"&&e[t+1]==="$"},N6=e=>{let t=e.length-1;for(;t>=0&&(e[t]===" "||e[t]===" "||e[t]===`
|
|
113
113
|
`||e[t]==="\r");)t-=1;return t>=1&&e[t]==="$"&&e[t-1]==="$"},$i=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},L6=e=>{let t=C6.test(e),n=S6.test(e);if(t||n)return[e];let r=at.lex(e,{gfm:!0}),i=[],a=[];for(let s of r){let u=s.raw,o=i.length;if(a.length>0){if(i[o-1]+=u,s.type==="html"){let l=u.match(w6);if(l){let f=l[1];a.at(-1)===f&&a.pop()}}continue}if(s.type==="html"&&s.block){let l=u.match(I6);if(l){let f=l[1];u.includes(`</${f}>`)||a.push(f)}}if(u.trim()==="$$"&&o>0){let l=i[o-1],f=zi(l),d=$i(l);if(f&&d%2===1){i[o-1]=l+u;continue}}if(o>0&&N6(u)){let l=i[o-1],f=zi(l),d=$i(l),p=$i(u);if(f&&d%2===1&&!zi(u)&&p===1){i[o-1]=l+u;continue}}i.push(u)}return i},v6={raw:j1,sanitize:[em,{}],harden:[gf,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},R6={gfm:[D2,{}]},O6=Object.values(v6),D6=Object.values(R6),P6={block:" ▋",circle:" ●"},M6={shikiTheme:["github-light","github-dark"],controls:!0,isAnimating:!1,mode:"streaming",mermaid:void 0,linkSafety:{enabled:!0}},tt=_a(M6),Zd=he(({content:e,shouldParseIncompleteMarkdown:t,index:n,...r})=>b(Xd,{...r,children:e}),(e,t)=>{if(e.content!==t.content||e.index!==t.index)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(i=>{var a,s;return((a=e.components)==null?void 0:a[i])!==((s=t.components)==null?void 0:s[i])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins)});Zd.displayName="Block";var B6=["github-light","github-dark"],Jd=he(({children:e,mode:t="streaming",parseIncompleteMarkdown:n=!0,components:r,rehypePlugins:i=O6,remarkPlugins:a=D6,className:s,shikiTheme:u=B6,mermaid:o,controls:l=!0,isAnimating:f=!1,BlockComponent:d=Zd,parseMarkdownIntoBlocksFn:p=L6,caret:h,plugins:m,remend:T,linkSafety:C={enabled:!0},...y})=>{let I=T0(),[w,D]=lf(),R=Le(()=>typeof e!="string"?"":t==="streaming"&&n?FE(e,T):e,[e,t,n,T]),A=Le(()=>p(R),[R,p]),[H,B]=le(A);Se(()=>{t==="streaming"?D(()=>{B(A)}):B(A)},[A,t]);let U=t==="streaming"?H:A,N=Le(()=>U.map((Z,J)=>`${I}-${J}`),[U.length,I]),Y=Le(()=>{var Z,J;return{shikiTheme:(J=(Z=m==null?void 0:m.code)==null?void 0:Z.getThemes())!=null?J:u,controls:l,isAnimating:f,mode:t,mermaid:o,linkSafety:C}},[u,l,f,t,o,C,m==null?void 0:m.code]),M=Le(()=>({..._6,...r}),[r]),Q=Le(()=>{let Z=[];return m!=null&&m.cjk&&(Z=[...Z,...m.cjk.remarkPluginsBefore]),Z=[...Z,...a],m!=null&&m.cjk&&(Z=[...Z,...m.cjk.remarkPluginsAfter]),m!=null&&m.math&&(Z=[...Z,m.math.remarkPlugin]),Z},[a,m==null?void 0:m.math,m==null?void 0:m.cjk]),ie=Le(()=>m!=null&&m.math?[...i,m.math.rehypePlugin]:i,[i,m==null?void 0:m.math]),X=Le(()=>h&&f?{"--streamdown-caret":`"${P6[h]}"`}:void 0,[h,f]);return t==="static"?b(ga.Provider,{value:m??null,children:b(tt.Provider,{value:Y,children:b("div",{className:K("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",s),children:b(Xd,{components:M,rehypePlugins:ie,remarkPlugins:Q,...y,children:e})})})}):b(ga.Provider,{value:m??null,children:b(tt.Provider,{value:Y,children:b("div",{className:K("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",h?"*:last:after:inline *:last:after:align-baseline *:last:after:content-(--streamdown-caret)":null,s),style:X,children:[U.length===0&&h&&f&&b("span",{}),U.map((Z,J)=>b(d,{components:M,content:Z,index:J,rehypePlugins:ie,remarkPlugins:Q,shouldParseIncompleteMarkdown:n,...y},N[J]))]})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety);Jd.displayName="Streamdown";var F6=({children:e,className:t,minZoom:n=.5,maxZoom:r=3,zoomStep:i=.1,showControls:a=!0,initialZoom:s=1,fullscreen:u=!1})=>{let o=ve(null),l=ve(null),[f,d]=le(s),[p,h]=le({x:0,y:0}),[m,T]=le(!1),[C,y]=le({x:0,y:0}),[I,w]=le({x:0,y:0}),D=De(M=>{d(Q=>Math.max(n,Math.min(r,Q+M)))},[n,r]),R=De(()=>{D(i)},[D,i]),A=De(()=>{D(-i)},[D,i]),H=De(()=>{d(s),h({x:0,y:0})},[s]),B=De(M=>{M.preventDefault();let Q=M.deltaY>0?-i:i;D(Q)},[D,i]),U=De(M=>{if(M.button!==0||M.isPrimary===!1)return;T(!0),y({x:M.clientX,y:M.clientY}),w(p);let Q=M.currentTarget;Q instanceof HTMLElement&&Q.setPointerCapture(M.pointerId)},[p]),N=De(M=>{if(!m)return;M.preventDefault();let Q=M.clientX-C.x,ie=M.clientY-C.y;h({x:I.x+Q,y:I.y+ie})},[m,C,I]),Y=De(M=>{T(!1);let Q=M.currentTarget;Q instanceof HTMLElement&&Q.releasePointerCapture(M.pointerId)},[]);return Se(()=>{let M=o.current;if(M)return M.addEventListener("wheel",B,{passive:!1}),()=>{M.removeEventListener("wheel",B)}},[B]),Se(()=>{let M=l.current;if(M&&m)return document.body.style.userSelect="none",M.addEventListener("pointermove",N,{passive:!1}),M.addEventListener("pointerup",Y),M.addEventListener("pointercancel",Y),()=>{document.body.style.userSelect="",M.removeEventListener("pointermove",N),M.removeEventListener("pointerup",Y),M.removeEventListener("pointercancel",Y)}},[m,N,Y]),b("div",{className:K("relative flex flex-col",u?"h-full w-full":"min-h-28 w-full",t),ref:o,style:{cursor:m?"grabbing":"grab"},children:[a?b("div",{className:K("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm backdrop-blur-sm",u?"bottom-4 left-4":"bottom-2 left-2"),children:[b("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:f>=r,onClick:R,title:"Zoom in",type:"button",children:b(Kk,{size:16})}),b("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:f<=n,onClick:A,title:"Zoom out",type:"button",children:b(Xk,{size:16})}),b("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:H,title:"Reset zoom and pan",type:"button",children:b(Qk,{size:16})})]}):null,b("div",{className:K("flex-1 origin-center transition-transform duration-150 ease-out",u?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:U,ref:l,role:"application",style:{transform:`translate(${p.x}px, ${p.y}px) scale(${f})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},e0=({chart:e,className:t,config:n,fullscreen:r=!1,showControls:i=!0})=>{let[a,s]=le(null),[u,o]=le(!1),[l,f]=le(""),[d,p]=le(""),[h,m]=le(0),{mermaid:T}=nt(tt),C=ls(),y=T==null?void 0:T.errorComponent,{shouldRender:I,containerRef:w}=Vk({immediate:r});if(Se(()=>{if(I){if(!C){s("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{s(null),o(!0);let R=C.getMermaid(n),A=e.split("").reduce((U,N)=>(U<<5)-U+N.charCodeAt(0)|0,0),H=`mermaid-${Math.abs(A)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:B}=await R.render(H,e);f(B),p(B)}catch(R){if(!(d||l)){let A=R instanceof Error?R.message:"Failed to render Mermaid chart";s(A)}}finally{o(!1)}})()}},[e,n,h,I,C]),!(I||l||d))return b("div",{className:K("my-4 min-h-[200px]",t),ref:w});if(u&&!l&&!d)return b("div",{className:K("my-4 flex justify-center p-4",t),ref:w,children:b("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[b("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),b("span",{className:"text-sm",children:"Loading diagram..."})]})});if(a&&!l&&!d)return y?b("div",{ref:w,children:b(y,{chart:e,error:a,retry:()=>m(A=>A+1)})}):b("div",{className:K("rounded-lg border border-red-200 bg-red-50 p-4",t),ref:w,children:[b("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",a]}),b("details",{className:"mt-2",children:[b("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),b("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]});let D=l||d;return b("div",{className:K("size-full",t),"data-streamdown":"mermaid",ref:w,children:b(F6,{className:K(r?"size-full overflow-hidden":"my-4 overflow-hidden",t),fullscreen:r,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:b("div",{"aria-label":"Mermaid chart",className:K("flex justify-center",r?"size-full items-center":null),dangerouslySetInnerHTML:{__html:D},role:"img"})})})};function H6({href:e,children:t}){return b("a",{href:e,target:"_blank",rel:"noopener noreferrer",class:"kin-link",children:t})}const U6={a:H6};function z6({content:e,isStreaming:t=!1}){return e?b("div",{class:"kin-markdown",children:b(Jd,{isAnimating:t,mode:t?"streaming":"static",components:U6,children:e})}):null}function $6(){const e=Ti(()=>$.messages.value),t=Ti(()=>$.isStreaming.value),n=Ti(()=>$.connectionState.value),r=ve(null),i=()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)};if(Se(()=>{requestAnimationFrame(i)},[]),Se(()=>{i()},[e.value,t.value]),n.value==="connecting"&&e.value.length===0)return b("div",{class:"kin-messages kin-messages-empty",role:"log","aria-label":"Chat messages","aria-live":"polite",children:b("div",{class:"kin-empty-state",children:b("div",{class:"kin-loading-dots","aria-label":"Loading conversation",children:[b("span",{}),b("span",{}),b("span",{})]})})});if(e.value.length===0&&!t.value)return b("div",{class:"kin-messages kin-messages-empty",role:"log","aria-label":"Chat messages","aria-live":"polite",children:b("div",{class:"kin-empty-state",children:[b("div",{class:"kin-empty-icon","aria-hidden":"true",children:b(qo,{})}),b("p",{class:"kin-empty-text",children:"Hi there, you're speaking with Kin AI Agent."}),b("p",{class:"kin-empty-subtext",children:"How can I help you today?"})]})});const s=e.value[e.value.length-1],u=t.value&&(s==null?void 0:s.role)==="assistant"&&!s.content.trim();return b("div",{class:"kin-messages",ref:r,role:"log","aria-label":"Chat messages","aria-live":"polite","aria-relevant":"additions",children:[b("div",{class:"kin-divider",role:"separator","aria-hidden":"true",children:b("span",{children:"New"})}),e.value.map((o,l)=>{if(o.role==="assistant"&&!o.content.trim())return null;const f=l===e.value.length-1,d=t.value&&f&&o.role==="assistant";return b(j6,{message:o,isStreaming:d},o.id)}),u&&b(Y6,{})]})}function Y6(){return b("div",{class:"kin-typing-container",role:"status","aria-label":"Kin is typing",children:[b("div",{class:"kin-typing","aria-hidden":"true",children:[b("span",{}),b("span",{}),b("span",{})]}),b("div",{class:"kin-message-footer","aria-hidden":"true",children:[b("span",{children:"Kin"}),b("span",{children:"•"}),b("span",{children:"AI Agent"}),b("span",{children:"•"}),b("span",{children:"typing..."})]}),b("span",{class:"kin-sr-only",children:"Kin AI Agent is typing a response"})]})}function j6({message:e,isStreaming:t=!1}){const n=e.role==="user",r=e.role==="system",i=n?"You":r?"System":"Kin AI Agent";return r?b("div",{class:"kin-system-message",role:"status","aria-label":"System notification",children:b("span",{children:e.content})}):b("article",{class:`kin-message ${n?"kin-message-user":"kin-message-assistant"}`,"aria-label":`Message from ${i}`,children:[b("div",{class:"kin-bubble",children:n?b("p",{children:e.content}):b(z6,{content:e.content,isStreaming:t})}),!n&&b("div",{class:"kin-message-footer","aria-hidden":"true",children:[b("span",{children:"Kin"}),b("span",{children:"•"}),b("span",{children:"AI Agent"}),b("span",{children:"•"}),b("span",{children:t?"typing...":q6(e.timestamp)})]})]})}function q6(e){const n=new Date().getTime()-e.getTime();return n<6e4?"Just now":n<36e5?`${Math.floor(n/6e4)}m ago`:e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function V6({onClose:e,onClearData:t,onSkipToInput:n}){const[r,i]=le(!1),a=u=>{u.key==="Escape"&&(u.preventDefault(),r?i(!1):e())},s=()=>{r?(t(),i(!1)):i(!0)};return b("div",{class:"kin-panel",role:"dialog","aria-modal":"true","aria-labelledby":"kin-panel-title",onKeyDown:a,children:[b("button",{type:"button",class:"kin-skip-link",onClick:n,children:"Skip to chat input"}),b("header",{class:"kin-header",children:[b("h2",{id:"kin-panel-title",class:"kin-header-title",children:"Kin Assistant"}),b("div",{class:"kin-header-actions",children:[b("button",{class:`kin-icon-btn kin-clear-btn ${r?"kin-clear-confirm":""}`,"aria-label":r?"Confirm clear data":"Clear my data",title:r?"Click again to confirm":"Clear my data",type:"button",onClick:s,onBlur:()=>i(!1),children:r?"✓":b(V0,{})}),b("button",{class:"kin-icon-btn","aria-label":"Close chat",type:"button",onClick:e,children:b(q0,{})})]})]}),b($6,{})]})}function W6({starterPrompts:e,onSendMessage:t,onOpen:n,onClose:r,onConnect:i,onClearData:a,onUploadFile:s,embedded:u=!1}){const[o,l]=le(u||$.isOpen.value),f=ve(null),d=ve(null),p=ve(null);Se(()=>tr(()=>{l(u||$.isOpen.value)}),[u]),Se(()=>{u&&!$.isOpen.value&&n()},[u,n]);const h=De(()=>{d.current=document.activeElement,n()},[n]),m=De(()=>{var C;r(),(C=d.current)==null||C.focus()},[r]),T=De(()=>{var C;(C=p.current)==null||C.focus()},[]);return Se(()=>{if(!o)return;const C=()=>{var w;let I=document.activeElement;for(;(w=I==null?void 0:I.shadowRoot)!=null&&w.activeElement;)I=I.shadowRoot.activeElement;return I},y=I=>{if(I.key!=="Tab")return;const w=f.current;if(!w)return;const D=w.querySelectorAll('button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex="-1"])');if(D.length===0)return;const R=D[0],A=D[D.length-1];if(!R||!A)return;const H=C();I.shiftKey&&H===R?(I.preventDefault(),A.focus()):!I.shiftKey&&H===A&&(I.preventDefault(),R.focus())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[o]),b("div",{ref:f,class:"kin-widget",role:"region","aria-label":"Kin AI Chat",children:[b("div",{class:"kin-sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:o?"Chat panel opened":""}),o&&b(V6,{onClose:m,onClearData:a,onSkipToInput:T}),b(Q0,{isOpen:o,starterPrompts:e,onOpen:h,onClose:m,onSendMessage:t,onConnect:i,onUploadFile:s,inputRef:p})]})}const t0=["gray","mauve","slate","sage","olive","sand","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","brown","orange","sky","mint","lime","yellow","amber","bronze","gold"],n0={gray:[[.178,0,null],[.213,0,null],[.254,0,null],[.283,0,null],[.313,0,null],[.349,0,null],[.402,0,null],[.488,0,null],[.538,0,null],[.584,0,null],[.77,0,null],[.949,0,null]],mauve:[[.18,.004,307.8],[.215,.004,307.8],[.255,.006,306.5],[.284,.008,307.8],[.314,.009,306.9],[.35,.01,304],[.402,.012,304.4],[.492,.016,300.7],[.54,.017,294],[.586,.017,295.4],[.77,.014,296.6],[.949,.003,286.3]],slate:[[.179,.004,286],[.213,.004,264.4],[.253,.006,261.2],[.283,.007,259.5],[.311,.008,259.7],[.346,.01,256.5],[.398,.012,253.8],[.49,.016,247.6],[.537,.015,261.1],[.583,.014,263.3],[.768,.01,261.3],[.949,.003,264.6]],sage:[[.179,.004,167.4],[.211,.004,160.2],[.251,.004,164.2],[.281,.005,164.9],[.311,.005,167.4],[.347,.006,167.4],[.399,.008,167.4],[.488,.009,169.8],[.533,.018,170.8],[.579,.016,170.5],[.766,.01,167.5],[.947,.002,167.7]],olive:[[.18,.004,128.3],[.212,.004,128.3],[.252,.005,129],[.281,.006,131.4],[.31,.007,131.4],[.346,.008,134.4],[.399,.01,136],[.488,.012,140.8],[.535,.018,139.6],[.581,.016,140.1],[.766,.013,139.5],[.947,.003,144.8]],sand:[[.178,.002,106.6],[.213,.002,106.6],[.253,.003,106.6],[.283,.004,99],[.312,.004,100.7],[.349,.006,102.2],[.401,.007,96.1],[.49,.01,91.7],[.535,.011,94.1],[.581,.011,94],[.767,.009,97.4],[.948,.003,106.4]],tomato:[[.187,.012,19.6],[.208,.017,32],[.254,.054,26.9],[.291,.087,28.2],[.331,.097,28.7],[.38,.099,30],[.447,.107,31.5],[.538,.13,32.9],[.627,.194,33.3],[.665,.179,34.1],[.784,.164,36],[.899,.047,31.1]],red:[[.188,.013,19.4],[.205,.022,14.7],[.25,.064,13.1],[.289,.096,14.3],[.332,.107,15.5],[.383,.111,16.9],[.451,.121,18.9],[.544,.147,21.4],[.625,.193,23],[.665,.177,23.1],[.784,.162,22.3],[.902,.053,6.14]],ruby:[[.189,.014,2.9],[.208,.016,5.29],[.254,.06,6.54],[.292,.089,5.5],[.333,.1,6.4],[.382,.105,7.59],[.448,.117,9.02],[.544,.145,11.1],[.628,.195,13.2],[.664,.179,13.7],[.786,.161,17],[.905,.053,355.8]],crimson:[[.189,.014,354.2],[.207,.022,352.9],[.256,.059,353.9],[.293,.094,354.1],[.333,.104,354.7],[.382,.109,355.5],[.45,.12,356.7],[.542,.148,358.3],[.634,.213,1.3],[.664,.197,1.95],[.787,.167,6.72],[.909,.054,346.7]],pink:[[.191,.017,334.9],[.207,.031,338.2],[.261,.061,337.5],[.299,.098,340.1],[.338,.104,340.6],[.389,.107,341.6],[.459,.119,342.6],[.545,.145,344.1],[.617,.208,346.1],[.65,.197,346.2],[.789,.19,350.7],[.905,.059,343.2]],plum:[[.19,.017,327],[.21,.031,327.7],[.266,.062,326.7],[.307,.088,325.3],[.343,.095,324.6],[.389,.097,324.2],[.456,.106,323.4],[.545,.128,322.2],[.579,.188,322.1],[.616,.182,322.1],[.786,.154,322.1],[.906,.055,325.8]],purple:[[.192,.022,316],[.213,.031,314.3],[.266,.062,312],[.308,.083,310.7],[.344,.091,310.1],[.388,.097,309.7],[.45,.108,308.7],[.541,.133,307.1],[.555,.183,305.9],[.596,.177,306.3],[.785,.156,307.9],[.911,.049,310.9]],violet:[[.191,.026,290.5],[.211,.032,299.5],[.271,.066,293.9],[.312,.093,291.7],[.348,.099,291.4],[.39,.102,291.8],[.445,.111,291.6],[.516,.131,290.2],[.542,.179,288.1],[.588,.17,289.7],[.778,.137,293.6],[.912,.045,292.6]],iris:[[.193,.022,284.2],[.209,.029,286.5],[.273,.069,278.6],[.319,.102,276.1],[.358,.109,277.4],[.399,.112,279.6],[.448,.12,280.8],[.507,.138,281.1],[.54,.184,278.3],[.587,.172,281.2],[.776,.131,286.6],[.914,.042,287]],indigo:[[.191,.025,276.7],[.209,.03,276],[.272,.069,267.8],[.319,.093,267],[.362,.105,267.5],[.404,.111,268.3],[.45,.12,268.8],[.503,.137,268.4],[.544,.191,267.1],[.59,.176,269.2],[.777,.123,273.3],[.911,.043,270]],blue:[[.193,.026,256.8],[.213,.03,258.8],[.274,.067,254],[.317,.1,248.3],[.365,.108,249.7],[.416,.112,251.7],[.475,.121,252.8],[.541,.14,253.2],[.649,.193,251.8],[.689,.17,251.5],[.768,.135,248.8],[.907,.051,238.3]],cyan:[[.191,.017,219.9],[.214,.018,225.4],[.272,.044,222.5],[.315,.063,222.1],[.362,.07,221.5],[.414,.075,221.7],[.478,.083,221.4],[.558,.098,220.7],[.661,.122,221.5],[.698,.12,219.1],[.786,.115,213.4],[.909,.057,211.7]],teal:[[.189,.012,184.5],[.217,.017,189.3],[.274,.038,186.3],[.317,.055,187],[.363,.06,186.5],[.414,.065,185.4],[.473,.074,184.5],[.539,.087,183.5],[.649,.113,182],[.687,.123,180.3],[.789,.147,175.7],[.905,.072,175.3]],jade:[[.188,.014,166.3],[.216,.018,166.1],[.272,.042,166.8],[.316,.057,168],[.362,.064,168.5],[.411,.068,169.7],[.468,.075,170.6],[.537,.088,171.8],[.642,.115,170.8],[.678,.125,169.9],[.785,.156,167.1],[.903,.078,167]],green:[[.189,.013,163.3],[.213,.016,162.2],[.271,.039,162.7],[.318,.057,161.5],[.365,.066,161.1],[.413,.073,160.7],[.467,.083,159.9],[.527,.096,159.2],[.64,.133,157.8],[.676,.141,157.6],[.78,.166,157.2],[.905,.083,158.3]],grass:[[.188,.014,155.8],[.211,.014,151.5],[.267,.03,150.7],[.319,.052,150.4],[.367,.062,149.9],[.416,.072,149.3],[.468,.084,148.9],[.524,.097,148.2],[.652,.147,147.4],[.69,.145,147.6],[.78,.142,148.5],[.911,.078,144.9]],brown:[[.178,.005,81.5],[.213,.007,51.6],[.254,.013,53.5],[.288,.018,55.4],[.325,.024,55.9],[.37,.032,57.7],[.429,.041,59.8],[.509,.053,62.2],[.633,.078,60.8],[.674,.075,61.5],[.798,.063,62.5],[.918,.036,75.7]],bronze:[[.181,.005,41.6],[.215,.005,41.5],[.255,.008,42.7],[.291,.01,45.5],[.329,.013,43.3],[.374,.016,44.3],[.43,.02,44.8],[.499,.024,45.2],[.627,.046,44.3],[.669,.045,44.3],[.792,.043,44.5],[.915,.017,50.3]],gold:[[.182,.002,106.6],[.216,.006,92.5],[.255,.008,88.3],[.291,.01,86.8],[.329,.011,83.7],[.374,.014,82.4],[.429,.016,80.9],[.498,.02,79.5],[.621,.049,78.1],[.662,.047,77.2],[.794,.041,77.2],[.915,.014,77.4]],sky:[[.19,.024,257.1],[.216,.029,258.5],[.271,.054,251.9],[.322,.07,247.8],[.372,.079,245.8],[.427,.087,243.6],[.488,.098,240.7],[.557,.114,237.2],[.861,.103,217.8],[.908,.073,214.9],[.793,.099,231.7],[.934,.053,214.4]],mint:[[.188,.012,192.3],[.21,.017,196.6],[.269,.039,192.5],[.313,.058,191.6],[.359,.063,188.9],[.41,.067,186.3],[.471,.073,183.4],[.54,.085,179.6],[.87,.1,178],[.916,.08,179.4],[.795,.118,176.4],[.93,.057,168.5]],lime:[[.18,.014,120.3],[.208,.019,129],[.266,.034,132.2],[.317,.047,131.8],[.363,.058,131.6],[.412,.069,131.4],[.464,.08,131.2],[.524,.095,130.9],[.888,.175,126.1],[.942,.175,123.7],[.868,.156,124.8],[.946,.082,122.6]],yellow:[[.181,.013,86],[.209,.017,92.1],[.259,.047,90.3],[.293,.069,94.2],[.333,.079,94.6],[.384,.077,93.3],[.452,.081,91.5],[.535,.095,89.9],[.927,.209,102.1],[.971,.182,109.4],[.9,.166,101.6],[.941,.075,101]],amber:[[.184,.013,77.3],[.212,.018,78.7],[.258,.044,74.6],[.296,.071,76.2],[.337,.081,76.4],[.387,.078,75.1],[.453,.082,74.5],[.536,.096,73.6],[.856,.178,81.4],[.902,.206,97],[.871,.175,85.1],[.935,.072,86]],orange:[[.186,.012,53.7],[.209,.019,67.4],[.257,.045,59.5],[.293,.08,58.6],[.335,.087,58.1],[.386,.087,55.2],[.453,.095,53.1],[.541,.116,49.7],[.689,.191,44.8],[.741,.199,46.3],[.799,.163,50.8],[.925,.052,66.2]]},r0={gray:[[.991,0,null],[.981,0,null],[.953,0,null],[.93,0,null],[.908,0,null],[.884,0,null],[.851,0,null],[.791,0,null],[.643,0,null],[.609,0,null],[.503,0,null],[.243,0,null]],mauve:[[.992,.002,321.1],[.983,.003,311.2],[.956,.006,314.2],[.932,.008,310],[.909,.01,306.6],[.886,.012,304],[.854,.014,300.6],[.794,.019,293.5],[.646,.019,292.6],[.611,.018,293.1],[.505,.016,296.1],[.245,.013,298]],slate:[[.991,.001,286.4],[.982,.003,286.3],[.956,.004,281.9],[.931,.006,283],[.91,.008,283.6],[.888,.009,281.8],[.853,.012,280.8],[.794,.016,278.1],[.646,.016,277.8],[.61,.016,273.2],[.503,.014,263.4],[.241,.01,249.5]],sage:[[.992,.003,160.4],[.981,.003,171.2],[.955,.003,170.4],[.931,.003,170.4],[.909,.004,167.7],[.885,.004,167.7],[.851,.004,169.9],[.792,.005,169.5],[.639,.01,172.4],[.605,.01,172.8],[.501,.008,175.9],[.24,.012,166.8]],olive:[[.993,.002,149.1],[.983,.003,144.8],[.956,.004,141.1],[.932,.004,142.1],[.909,.005,139.3],[.886,.006,141.1],[.852,.006,141.1],[.792,.007,140.6],[.64,.011,136.5],[.605,.012,136.5],[.5,.011,139.9],[.242,.011,138.2]],sand:[[.994,.001,106.4],[.982,.001,106.4],[.956,.002,97.6],[.932,.003,100.6],[.91,.004,95.9],[.886,.005,98.3],[.853,.006,96.6],[.792,.008,96.5],[.641,.01,106.7],[.606,.01,106.7],[.498,.008,106.7],[.243,.008,96.3]],tomato:[[.994,.003,22.8],[.984,.007,31],[.954,.022,30.9],[.926,.047,31.8],[.892,.063,31.5],[.852,.077,32],[.803,.094,32.2],[.741,.118,32.1],[.627,.194,33.3],[.604,.195,33.3],[.567,.198,32.8],[.346,.08,30.5]],red:[[.994,.003,22.8],[.983,.008,16],[.956,.021,16.2],[.928,.047,16.7],[.896,.062,17.3],[.857,.075,17.9],[.807,.089,18.4],[.745,.113,19.1],[.625,.193,23],[.6,.195,23.9],[.557,.198,25.1],[.339,.109,16.7]],ruby:[[.994,.003,356.3],[.983,.008,8.41],[.954,.022,8.56],[.928,.042,8.46],[.896,.055,8.16],[.858,.066,7.84],[.81,.08,7.49],[.749,.101,6.86],[.628,.195,13.2],[.601,.196,13.4],[.549,.199,13.9],[.341,.11,10]],crimson:[[.994,.003,356.3],[.982,.008,357.2],[.954,.026,356.3],[.925,.041,356.3],[.893,.054,355.8],[.855,.065,355.6],[.808,.078,354.8],[.75,.099,354.1],[.634,.213,1.3],[.608,.211,2.36],[.552,.207,4.49],[.341,.113,356.8]],pink:[[.994,.004,336.3],[.983,.009,340],[.954,.027,340.6],[.925,.042,340.7],[.893,.054,340.9],[.855,.067,340.9],[.809,.083,341.2],[.752,.107,341.6],[.617,.208,346.1],[.596,.207,346.5],[.557,.206,347.3],[.35,.129,345.5]],plum:[[.993,.005,316.9],[.983,.009,326],[.957,.027,325.5],[.929,.044,324.9],[.898,.057,324.4],[.86,.072,323.9],[.809,.091,323.1],[.742,.12,321.9],[.579,.188,322.1],[.553,.181,322.1],[.521,.173,322],[.338,.125,321.4]],purple:[[.993,.004,325.4],[.982,.009,313.1],[.959,.024,313.3],[.933,.039,312.1],[.901,.054,311.6],[.86,.071,311],[.804,.093,309.9],[.733,.123,308],[.555,.183,305.9],[.524,.176,305.7],[.516,.174,305.7],[.322,.11,303.8]],violet:[[.992,.003,308],[.983,.009,295],[.963,.019,296.6],[.934,.039,295.4],[.904,.057,294.1],[.864,.072,293.9],[.806,.09,293.5],[.729,.119,292.4],[.542,.179,288.1],[.511,.177,287.6],[.508,.159,288.6],[.313,.098,286.8]],iris:[[.994,.003,286.4],[.981,.009,284.1],[.961,.018,283.8],[.935,.035,283.4],[.904,.053,283.8],[.865,.07,283.1],[.808,.088,282.9],[.729,.118,281.5],[.54,.184,278.3],[.509,.186,277.5],[.51,.173,279.7],[.315,.099,277.4]],indigo:[[.994,.001,286.4],[.983,.008,271.4],[.961,.017,268.5],[.935,.034,268.5],[.903,.051,270],[.863,.071,271.5],[.807,.087,271.4],[.73,.113,270.5],[.544,.191,267.1],[.511,.195,266.5],[.51,.173,267.1],[.313,.086,268.6]],blue:[[.993,.003,247.6],[.982,.01,243.3],[.96,.02,236.7],[.937,.037,239],[.906,.053,242.8],[.864,.069,243.2],[.809,.088,243.3],[.735,.121,243],[.649,.193,251.8],[.621,.184,251.9],[.558,.189,253],[.324,.097,259]],cyan:[[.992,.004,219.2],[.98,.009,202.9],[.958,.026,203.6],[.932,.041,204.7],[.9,.054,206.5],[.859,.066,207.7],[.805,.082,209.6],[.727,.11,211.7],[.661,.122,221.5],[.627,.114,221.3],[.54,.127,223.7],[.332,.053,218.6]],teal:[[.994,.005,177.5],[.981,.009,179],[.961,.027,180.3],[.935,.042,180.2],[.9,.054,180.5],[.856,.064,181.4],[.797,.076,182.2],[.721,.097,183.5],[.649,.113,182],[.619,.11,181.2],[.53,.124,179],[.327,.05,185]],jade:[[.995,.004,172.6],[.982,.009,160.3],[.96,.022,161.9],[.934,.034,163.5],[.902,.046,164.8],[.859,.059,166.9],[.8,.077,169.5],[.721,.103,173.4],[.642,.115,170.8],[.613,.11,170.6],[.529,.127,167.2],[.326,.041,169.8]],green:[[.994,.004,159.1],[.982,.009,155.3],[.959,.023,156.4],[.933,.036,156.6],[.9,.05,157.2],[.857,.065,157.9],[.798,.084,159],[.714,.112,160.6],[.64,.133,157.8],[.611,.126,158.3],[.529,.133,158.3],[.322,.047,164.6]],grass:[[.994,.005,146.4],[.982,.009,145.9],[.961,.023,145.3],[.934,.037,146.2],[.901,.053,146.4],[.858,.071,146.8],[.798,.095,147.5],[.716,.13,148.3],[.652,.147,147.4],[.614,.142,147.3],[.527,.13,147.2],[.327,.053,148.6]],brown:[[.994,.002,63.2],[.983,.006,65.7],[.954,.013,67.8],[.926,.02,66.9],[.897,.029,65.8],[.862,.039,65.5],[.815,.053,64.2],[.747,.072,62.4],[.633,.078,60.8],[.597,.072,59.3],[.512,.058,55.5],[.332,.018,47]],bronze:[[.992,.001,15.9],[.981,.007,43],[.953,.01,44.3],[.925,.014,43.6],[.895,.018,42.6],[.86,.023,43.4],[.811,.03,41.9],[.742,.039,41.2],[.627,.046,44.3],[.588,.045,42.4],[.51,.044,38.4],[.329,.029,35.2]],gold:[[.994,.001,106.4],[.981,.009,97.3],[.953,.012,94.7],[.926,.015,93.2],[.896,.019,90.7],[.86,.025,88.4],[.81,.032,83.4],[.739,.042,78.2],[.621,.049,78.1],[.588,.047,77.4],[.504,.039,78.1],[.332,.019,81.7]],sky:[[.993,.005,211.9],[.98,.01,217.7],[.961,.024,219.6],[.936,.036,220.4],[.903,.047,221.4],[.861,.058,222.9],[.806,.072,225.7],[.729,.096,228],[.861,.103,217.8],[.838,.104,219.6],[.526,.108,232.5],[.351,.057,241.6]],mint:[[.993,.005,183.7],[.982,.01,178.7],[.96,.03,179.6],[.933,.047,179],[.899,.061,178.7],[.856,.072,178.7],[.798,.085,178.2],[.722,.107,177.7],[.87,.1,178],[.841,.1,177.8],[.512,.095,176],[.35,.051,181.4]],lime:[[.992,.004,120.7],[.982,.01,116.7],[.959,.043,119.1],[.932,.069,120.4],[.897,.087,121.8],[.853,.099,123.4],[.795,.111,125.3],[.724,.135,128.1],[.888,.175,126.1],[.859,.188,126.7],[.544,.111,128.6],[.354,.057,121.2]],yellow:[[.993,.005,106.5],[.988,.025,102.9],[.974,.084,104.4],[.953,.117,101.7],[.925,.141,98.2],[.881,.134,95.4],[.836,.12,92.8],[.766,.137,89.8],[.927,.209,102.1],[.897,.185,97.5],[.574,.136,81.7],[.358,.046,86.6]],amber:[[.994,.003,84.6],[.986,.024,100.3],[.969,.069,100.4],[.945,.104,98.2],[.918,.133,98.4],[.881,.124,93.2],[.827,.122,86.2],[.758,.14,76.7],[.856,.178,81.4],[.831,.168,80.9],[.569,.144,67.3],[.352,.049,53.7]],orange:[[.992,.003,40.7],[.979,.015,70.8],[.958,.037,78.1],[.92,.081,74.2],[.89,.107,70.8],[.857,.11,64.4],[.805,.113,59.9],[.745,.132,54.8],[.689,.191,44.8],[.662,.194,43.5],[.592,.186,47],[.35,.069,40.8]]},Yi=e=>(e/=255,e<=.04045?e/12.92:((e+.055)/1.055)**2.4),G6=(e,t,n)=>{const r=.4122214708*e+.5363325363*t+.0514459929*n,i=.2119034982*e+.6806995451*t+.1073969566*n,a=.0883024619*e+.2817188376*t+.6299787005*n,s=Math.cbrt(r),u=Math.cbrt(i),o=Math.cbrt(a),l=.2104542553*s+.793617785*u-.0040720468*o,f=1.9779984951*s-2.428592205*u+.4505937099*o,d=.0259040371*s+.7827717662*u-.808675766*o;return[l,f,d]},Q6=([e,t,n])=>{const r=Math.sqrt(t*t+n*n),i=Math.atan2(n,t)*180/Math.PI;return[e,r,(i+360)%360]},K6=e=>{const t=e.replace("#",""),n=parseInt(t.length===3?t.replace(/./g,s=>s+s):t,16),r=Yi(n>>16&255),i=Yi(n>>8&255),a=Yi(n&255);return Q6(G6(r,i,a))},i0=["gray","mauve","slate","sage","olive","sand"];function mi(e,t){return Object.fromEntries(t.map(n=>[n,e[n]]))}mi(r0,t0);mi(n0,t0);mi(r0,i0);mi(n0,i0);const X6={light:{1:[98.8,.015],2:[97.8,.018],3:[95.8,.025],4:[92,.04],5:[89,.05],6:[85,.07],7:[80.5,.08],8:[74,.11],9:[60,.22],10:[56,.23],11:[50,.19],12:[25,.18]},dark:{1:[19,.015],2:[21,.018],3:[25.5,.055],4:[29.3,.084],5:[33.5,.098],6:[39.05,.107],7:[45,.11],8:[55,.13],9:[60,.22],10:[67,.18],11:[79.3,.12],12:[95,.04]}},Z6={light:{1:[99,.005],2:[97.5,.005],3:[95,.006],4:[92,.006],5:[88,.005],6:[83,.004],7:[76,.003],8:[65,.003],9:[55,.004],10:[45,.005],11:[35,.006],12:[20,.008]},dark:{1:[14,.008],2:[17,.008],3:[21,.01],4:[25,.01],5:[30,.008],6:[36,.006],7:[44,.005],8:[54,.004],9:[66,.003],10:[76,.004],11:[87,.005],12:[96,.006]}};function J6(e){const[t,n,r]=K6(e);return{l:t*100,c:n,h:r??0}}const wt=(e,t,n)=>`oklch(${e}% ${t} ${n})`;function ex(e){var m,T,C,y,I,w,D,R;const{accentColor:t,mode:n}=e,r=J6(t),i=X6[n],a=Z6[n],s=30,u=r.c/.22,o=A=>{const H=i[A];if(!H)return wt(60,.22,r.h);const[B,U]=H;return A==="9"?wt(r.l,r.c,r.h):wt(B,U*u,r.h)},l=A=>{const H=a[A];if(!H)return wt(50,.005,s);const[B,U]=H;return wt(B,U,s)},f=wt(r.l,r.c,r.h),d=wt(r.l*.9,r.c*.9,(r.h+20)%360),p=wt(r.l*.8,r.c*.8,(r.h+40)%360),h=n==="light"?{"--kin-bg-base":l("1"),"--kin-bg-elevated":l("2"),"--kin-bg-surface":l("3"),"--kin-bg-muted":l("4"),"--kin-border":`oklch(${((m=a[6])==null?void 0:m[0])??83}% ${((T=a[6])==null?void 0:T[1])??.004} ${s} / 0.4)`,"--kin-border-subtle":`oklch(${((C=a[5])==null?void 0:C[0])??88}% ${((y=a[5])==null?void 0:y[1])??.005} ${s} / 0.25)`,"--kin-text":l("12"),"--kin-text-secondary":l("10"),"--kin-text-muted":l("8"),"--kin-accent":o("9"),"--kin-bubble-user":o("9"),"--kin-bubble-user-text":"oklch(100% 0 0)","--kin-bubble-assistant":l("2"),"--kin-bubble-assistant-text":l("12"),"--kin-glow-1":f,"--kin-glow-2":d,"--kin-glow-3":p}:{"--kin-bg-base":l("1"),"--kin-bg-elevated":l("2"),"--kin-bg-surface":l("3"),"--kin-bg-muted":l("4"),"--kin-border":`oklch(${((I=a[6])==null?void 0:I[0])??83}% ${((w=a[6])==null?void 0:w[1])??.004} ${s} / 0.4)`,"--kin-border-subtle":`oklch(${((D=a[5])==null?void 0:D[0])??88}% ${((R=a[5])==null?void 0:R[1])??.005} ${s} / 0.25)`,"--kin-text":l("12"),"--kin-text-secondary":l("11"),"--kin-text-muted":l("9"),"--kin-accent":o("9"),"--kin-bubble-user":l("12"),"--kin-bubble-user-text":l("1"),"--kin-bubble-assistant":l("3"),"--kin-bubble-assistant-text":l("12"),"--kin-glow-1":f,"--kin-glow-2":d,"--kin-glow-3":p};return Object.entries(h).map(([A,H])=>`${A}: ${H};`).join(`
|
|
114
114
|
`)}const tx={accentColor:"#FF4D00",mode:"light"},nx={inploi:{accentColor:"#FF4D00",mode:"light"},boots:{accentColor:"#05054b",mode:"light"},wagamama:{accentColor:"#df3228",mode:"dark"},gails:{accentColor:"#cf2030",mode:"light"}},rx=`:host{--kin-bg-base: #0a0a0a;--kin-bg-elevated: #141414;--kin-bg-surface: #1a1a1a;--kin-bg-muted: #262626;--kin-border: rgba(255, 255, 255, .08);--kin-border-subtle: rgba(255, 255, 255, .05);--kin-text: #ffffff;--kin-text-secondary: #a1a1a1;--kin-text-muted: #8a8a8a;--kin-accent: #635bff;--kin-bubble-user: #f5f5f5;--kin-bubble-user-text: #171717;--kin-bubble-assistant: #1a1a1a;--kin-bubble-assistant-text: #ffffff;--kin-glow-1: #ff6b6b;--kin-glow-2: #c850c0;--kin-glow-3: #635bff;--kin-focus-ring: var(--kin-accent);--kin-focus-ring-offset: 2px;--kin-radius: 16px;--kin-radius-sm: 8px;--kin-panel-width: 450px;--kin-panel-height: min(640px, calc(100svh - 16px));--kin-launcher-width: 380px;--kin-launcher-width-expanded: 450px;--kin-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--kin-font-size: 14px;--kin-line-height: 1.5;--kin-transition: .2s ease;--kin-open-duration: .35s;--kin-open-easing: cubic-bezier(.32, .72, 0, 1)}.kin-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.kin-skip-link{position:absolute;top:-100%;left:50%;transform:translate(-50%);z-index:1000000;padding:8px 16px;background:var(--kin-bg-elevated);color:var(--kin-text);border-radius:var(--kin-radius-sm);text-decoration:none;font-weight:500}.kin-skip-link:focus{top:8px;outline:2px solid var(--kin-focus-ring);outline-offset:2px}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.kin-widget{position:fixed;bottom:24px;left:50%;transform:translate(-50%);z-index:999999;font-family:var(--kin-font);font-size:var(--kin-font-size);line-height:var(--kin-line-height);display:flex;flex-direction:column;align-items:center;gap:16px}.kin-launcher{width:var(--kin-launcher-width);max-width:calc(100vw - 48px);transition:width var(--kin-open-duration) var(--kin-open-easing)}.kin-launcher:has(:focus-within){width:var(--kin-launcher-width-expanded)}.kin-launcher.is-open{width:var(--kin-panel-width)}.kin-launcher-form{position:relative}.kin-launcher-input-wrapper{position:relative;display:flex;align-items:center;background:var(--kin-bg-elevated);border-radius:24px;padding:4px 6px 4px 16px;gap:12px;box-shadow:0 0 0 1px var(--kin-border),0 4px 16px #0000004d}.kin-launcher-input-wrapper:focus-within{box-shadow:0 0 0 1px var(--kin-border),0 4px 16px #0000004d}.kin-launcher-input-wrapper:before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:25px;padding:2px;background:linear-gradient(90deg,var(--kin-glow-1),var(--kin-glow-2),var(--kin-glow-3),var(--kin-glow-2),var(--kin-glow-1));background-size:300% 100%;animation:kin-gradient 4s ease infinite;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.85;transition:opacity var(--kin-transition);pointer-events:none}.kin-launcher-input-wrapper:after{content:"";position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;border-radius:26px;background:linear-gradient(90deg,var(--kin-glow-1),var(--kin-glow-2),var(--kin-glow-3),var(--kin-glow-2),var(--kin-glow-1));background-size:300% 100%;animation:kin-gradient 4s ease infinite;filter:blur(6px);opacity:.35;transition:opacity var(--kin-transition);pointer-events:none;z-index:-1}.kin-launcher-input-wrapper:focus-within:before{opacity:1}.kin-launcher-input-wrapper:focus-within:after{opacity:.5}@keyframes kin-gradient{0%,to{background-position:0% 50%}50%{background-position:100% 50%}}.kin-launcher-icon{width:20px;height:20px;color:var(--kin-text-muted);flex-shrink:0}.kin-launcher-icon-wrapper{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0}.kin-notification-badge{position:absolute;top:-4px;right:-4px;width:10px;height:10px;background:var(--kin-accent);border-radius:50%;border:2px solid var(--kin-bg-surface);animation:kin-pulse 2s ease-in-out infinite}@keyframes kin-pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.8}}@media (prefers-reduced-motion: reduce){.kin-notification-badge{animation:none}}.kin-launcher-input{flex:1;background:transparent;border:none;outline:none;color:var(--kin-text);font-size:var(--kin-font-size);font-family:var(--kin-font);padding:12px 0;min-width:0}.kin-launcher-input::placeholder{color:var(--kin-text-muted)}.kin-launcher-send{width:36px;height:36px;border-radius:50%;border:none;background:var(--kin-bg-muted);color:var(--kin-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--kin-transition);flex-shrink:0}.kin-launcher-send:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:var(--kin-focus-ring-offset)}.kin-launcher-send:not(:disabled){background:var(--kin-text);color:var(--kin-bg-base)}.kin-launcher-send:not(:disabled):hover{transform:scale(1.05)}.kin-launcher-send:disabled{cursor:not-allowed;opacity:.5}.kin-launcher-send svg{width:18px;height:18px}.kin-launcher-attach{width:36px;height:36px;border-radius:50%;border:none;background:transparent;color:var(--kin-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--kin-transition);flex-shrink:0;margin-right:-8px}.kin-launcher-attach:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:var(--kin-focus-ring-offset)}.kin-launcher-attach:not(:disabled):hover{background:var(--kin-bg-muted);color:var(--kin-text)}.kin-launcher-attach:disabled{cursor:not-allowed;opacity:.5}.kin-launcher-attach svg{width:18px;height:18px}.kin-launcher-attach.is-uploading svg{animation:kin-spin 1s linear infinite}@keyframes kin-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.kin-upload-error{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px;padding:8px 12px;background:#dc2626;color:#fff;font-size:12px;border-radius:var(--kin-radius-sm);white-space:nowrap;max-width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;animation:kin-error-in .2s ease}@keyframes kin-error-in{0%{opacity:0;transform:translate(-50%) translateY(4px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.kin-char-limit-error{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px;padding:8px 12px;background:#dc2626;color:#fff;font-size:12px;border-radius:var(--kin-radius-sm);white-space:nowrap;animation:kin-error-in .2s ease}.kin-panel{width:var(--kin-panel-width);max-width:calc(100vw - 32px);height:var(--kin-panel-height);max-height:calc(100svh - 120px);background:var(--kin-bg-base);border-radius:var(--kin-radius);border:1px solid var(--kin-border);box-shadow:0 8px 32px #00000080,0 0 0 1px var(--kin-border);display:flex;flex-direction:column;overflow:hidden;animation:kin-panel-in var(--kin-open-duration) var(--kin-open-easing);transform-origin:bottom center}@keyframes kin-panel-in{0%{opacity:0;transform:translateY(16px) scale(.96)}40%{opacity:1}to{opacity:1;transform:translateY(0) scale(1)}}.kin-header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid var(--kin-border);background:var(--kin-bg-elevated)}.kin-header-title{font-size:14px;font-weight:500;color:var(--kin-text);margin:0}.kin-header-actions{display:flex;align-items:center;gap:4px}.kin-icon-btn{width:32px;height:32px;border-radius:var(--kin-radius-sm);border:none;background:transparent;color:var(--kin-text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--kin-transition)}.kin-icon-btn:hover{background:var(--kin-bg-muted);color:var(--kin-text)}.kin-icon-btn:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:var(--kin-focus-ring-offset);background:var(--kin-bg-muted);color:var(--kin-text)}.kin-icon-btn svg{width:18px;height:18px}.kin-clear-btn{font-size:14px;transition:all var(--kin-transition);color:var(--kin-accent)}.kin-clear-btn:hover{background:var(--kin-bg-muted);color:var(--kin-accent)}.kin-clear-confirm{background:var(--kin-accent);color:#fff}.kin-clear-confirm:hover{background:var(--kin-accent);opacity:.9;color:#fff}.kin-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:16px}.kin-messages-empty{justify-content:center;align-items:center}.kin-empty-state{text-align:center;padding:24px}.kin-empty-icon{width:48px;height:48px;margin:0 auto 16px;color:var(--kin-text-muted);opacity:.5}.kin-empty-icon svg{width:100%;height:100%}.kin-empty-text{color:var(--kin-text);font-size:15px;margin:0 0 8px}.kin-empty-subtext{color:var(--kin-text-muted);font-size:13px;margin:0}.kin-starter-prompts{display:flex;flex-direction:column-reverse;align-items:flex-start;gap:8px;padding:0 0 12px;margin-left:0}.kin-starter-btn{display:inline-block;padding:10px 16px;background:var(--kin-bg-elevated);border:1px solid var(--kin-border);border-radius:20px;color:var(--kin-text);font-size:13px;font-family:inherit;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,transform .1s ease;text-align:left;white-space:nowrap;opacity:0;animation:kin-starter-fade-in .3s ease-out forwards}.kin-starter-btn:nth-child(1){animation-delay:.05s}.kin-starter-btn:nth-child(2){animation-delay:.1s}.kin-starter-btn:nth-child(3){animation-delay:.15s}.kin-starter-btn:nth-child(4){animation-delay:.2s}.kin-starter-btn:nth-child(5){animation-delay:.25s}@keyframes kin-starter-fade-in{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.kin-starter-btn:hover{background:var(--kin-bg-surface);border-color:var(--kin-text-muted)}.kin-starter-btn:focus{outline:none;box-shadow:0 0 0 2px var(--kin-focus-ring)}.kin-starter-btn:active{transform:scale(.98)}@media (prefers-reduced-motion: reduce){.kin-starter-prompts,.kin-starter-btn{animation:none;opacity:1;transform:none}}.kin-divider{display:flex;align-items:center;gap:12px;color:var(--kin-glow-1);font-size:11px;text-transform:uppercase;letter-spacing:.5px;font-weight:500}.kin-divider:before,.kin-divider:after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--kin-glow-1),transparent);opacity:.3}.kin-system-message{display:flex;justify-content:center;padding:8px 16px}.kin-system-message span{font-size:12px;color:var(--kin-text-muted);background:var(--kin-bg-surface);padding:6px 12px;border-radius:12px;border:1px solid var(--kin-border)}.kin-message{display:flex;flex-direction:column;max-width:85%}.kin-message-user{align-self:flex-end}.kin-message-assistant{align-self:flex-start}.kin-bubble{padding:12px 16px;border-radius:var(--kin-radius)}.kin-message-user .kin-bubble{background:var(--kin-bubble-user);color:var(--kin-bubble-user-text);border-bottom-right-radius:4px}.kin-message-assistant .kin-bubble{background:var(--kin-bubble-assistant);color:var(--kin-bubble-assistant-text);border:1px solid var(--kin-border);border-bottom-left-radius:4px}.kin-bubble p{margin:0}.kin-message-footer{display:flex;align-items:center;gap:6px;margin-top:6px;padding-left:4px;font-size:11px;color:var(--kin-text-muted)}.kin-loading-dots{display:flex;gap:6px;padding:8px}.kin-loading-dots span{width:8px;height:8px;background:var(--kin-text-muted);border-radius:50%;animation:kin-typing 1.4s ease-in-out infinite}.kin-loading-dots span:nth-child(2){animation-delay:.15s}.kin-loading-dots span:nth-child(3){animation-delay:.3s}.kin-typing-container{display:flex;flex-direction:column;align-items:flex-start;align-self:flex-start;width:fit-content}.kin-typing{display:inline-flex;align-items:center;gap:5px;padding:12px 16px;min-height:44px;box-sizing:border-box;background:var(--kin-bubble-assistant);border:1px solid var(--kin-border);border-radius:var(--kin-radius);border-bottom-left-radius:4px}.kin-typing span{width:8px;height:8px;background:var(--kin-text-muted);border-radius:50%;animation:kin-typing 1.4s ease-in-out infinite}.kin-typing span:nth-child(2){animation-delay:.15s}.kin-typing span:nth-child(3){animation-delay:.3s}@keyframes kin-typing{0%,to{opacity:.3;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}.kin-markdown{line-height:1.65;font-size:14px;color:var(--kin-bubble-assistant-text)}.kin-markdown p{margin:0 0 1em}.kin-markdown p:last-child{margin-bottom:0}.kin-markdown strong,.kin-markdown b{font-weight:600}.kin-markdown em,.kin-markdown i{font-style:italic}.kin-markdown a{color:var(--kin-accent);text-decoration:underline;text-underline-offset:2px;transition:color var(--kin-transition)}.kin-markdown a:hover{text-decoration-thickness:2px}.kin-markdown a:focus-visible{outline:2px solid var(--kin-focus-ring);outline-offset:2px;border-radius:2px}.kin-markdown code{background:rgba(255,255,255,.1);padding:.15em .4em;border-radius:4px;font-family:SF Mono,Monaco,Consolas,monospace;font-size:.875em}.kin-markdown pre{background:rgba(0,0,0,.4);padding:14px 16px;border-radius:var(--kin-radius-sm);overflow-x:auto;margin:1em 0;border:1px solid var(--kin-border)}.kin-markdown pre code{background:none;padding:0;font-size:.85em;line-height:1.5}.kin-markdown ul{margin:.75em 0;padding-left:1.5em;list-style-type:disc}.kin-markdown ol{margin:.75em 0;padding-left:1.5em;list-style-type:decimal}.kin-markdown li{margin:.35em 0}.kin-markdown li::marker{color:var(--kin-text-muted)}.kin-markdown ul ul,.kin-markdown ol ol,.kin-markdown ul ol,.kin-markdown ol ul{margin:.25em 0}.kin-markdown blockquote{border-left:3px solid var(--kin-accent);margin:1em 0;padding:.5em 0 .5em 1em;color:var(--kin-text-secondary);font-style:italic}.kin-markdown h1,.kin-markdown h2,.kin-markdown h3,.kin-markdown h4{font-weight:600;margin:1.25em 0 .5em;line-height:1.3}.kin-markdown h1:first-child,.kin-markdown h2:first-child,.kin-markdown h3:first-child{margin-top:0}.kin-markdown h1{font-size:1.4em}.kin-markdown h2{font-size:1.25em}.kin-markdown h3{font-size:1.1em}.kin-markdown h4{font-size:1em}.kin-markdown table{width:100%;border-collapse:collapse;margin:1em 0;font-size:.9em}.kin-markdown th,.kin-markdown td{padding:.5em .75em;border:1px solid var(--kin-border);text-align:left}.kin-markdown th{background:var(--kin-bg-muted);font-weight:600}.kin-markdown hr{border:none;border-top:1px solid var(--kin-border);margin:1.5em 0}.kin-markdown input[type=checkbox]{margin-right:.5em;accent-color:var(--kin-accent)}.kin-markdown .streamdown-caret{display:inline-block;width:2px;height:1em;background:var(--kin-accent);margin-left:2px;animation:kin-caret 1s ease-in-out infinite;vertical-align:text-bottom}@keyframes kin-caret{0%,to{opacity:1}50%{opacity:0}}.kin-messages::-webkit-scrollbar{width:6px}.kin-messages::-webkit-scrollbar-track{background:transparent}.kin-messages::-webkit-scrollbar-thumb{background:var(--kin-bg-muted);border-radius:3px}.kin-messages::-webkit-scrollbar-thumb:hover{background:var(--kin-text-muted)}@media (forced-colors: active){.kin-launcher-input-wrapper,.kin-panel,.kin-bubble{border:2px solid CanvasText}.kin-launcher-send,.kin-icon-btn{border:1px solid ButtonText}.kin-launcher-input-wrapper:before{display:none}}@media (min-resolution: 1dppx){.kin-widget{font-size:max(14px,1rem)}.kin-panel{min-height:auto}.kin-messages{word-wrap:break-word;overflow-wrap:break-word}}
|
|
115
|
-
`,ix=({serviceUrl:e,
|
|
115
|
+
`,ix="wss://agents.inploi.com",ax=({serviceUrl:e=ix,theme:t=tx,starterPrompts:n=[],mode:r="floating",container:i})=>gi.createPlugin(({logger:a,publishableKey:s})=>{if(!s)throw new Error("Kin plugin requires a publishableKey. Pass it to initialiseSdk().");let u=!1,o=null,l=t,f=null,d=!1,p=null,h=null,m=!1;const T=r==="embedded",C=()=>{if(i)if(typeof i=="string"){const H=document.querySelector(i);if(H instanceof HTMLElement)return h=H,m=!1,H}else return h=i,m=!1,i;const R=document.getElementById("inploi-kin-root");if(R)return h=R,m=!1,R;const A=document.createElement("div");return A.id="inploi-kin-root",T&&(A.className="kin-embedded"),document.body.appendChild(A),h=A,m=!0,A},y=R=>{const A=ex(R);let H=`${rx}
|
|
116
116
|
|
|
117
117
|
/* Theme overrides */
|
|
118
118
|
:host {
|
|
@@ -143,4 +143,4 @@ ${A}
|
|
|
143
143
|
transform: none !important;
|
|
144
144
|
animation: none !important;
|
|
145
145
|
}
|
|
146
|
-
`),H},I=()=>{if(typeof window>"u")return;const R=C(),A=R.shadowRoot||R.attachShadow({mode:"open"});Ts(Ot($e,{},[Ot("style",{id:"kin-styles"},y(l)),Ot(W6,{starterPrompts:
|
|
146
|
+
`),H},I=()=>{if(typeof window>"u")return;const R=C(),A=R.shadowRoot||R.attachShadow({mode:"open"});Ts(Ot($e,{},[Ot("style",{id:"kin-styles"},y(l)),Ot(W6,{starterPrompts:n,embedded:T,onSendMessage:H=>{o&&o.sendMessage(H)},onOpen:()=>{w(),$.isOpen.value=!0,$.clearUnreadMessages()},onClose:()=>{T||($.isOpen.value=!1)},onConnect:()=>{w()},onClearData:()=>{o&&o.clearData()},onUploadFile:async(H,B)=>{if(!o){$.setUploadState("error",H.name,"Not connected");return}$.setUploadState("uploading",H.name);const U=await o.uploadFile(H,B);U.success||$.setUploadState("error",H.name,U.error)}})]),A)},w=()=>{if(o)return;$.connectionState.value="connecting",f||(f=gi.getOrCreateAnonymousId());const R=`${e}/agent/candidate/${f}?key=${s}`;o=$0({url:R,onMessage:A=>{switch(A.type){case"authenticated":a.info(`Authenticated with ${A.company}`),$.connectionState.value="connected";break;case"history":A.messages&&A.messages.length>0&&(a.info(`Loaded ${A.messages.length} messages from server`),$.setMessages(A.messages));break;case"response_start":$.isStreaming.value=!0,$.addMessage({role:"assistant",content:""});break;case"response_chunk":$.appendToLastMessage(A.content||"");break;case"response_end":$.isStreaming.value=!1,$.syncToOtherTabs(),$.isOpen.value||$.setHasUnreadMessages(!0);break;case"data_cleared":a.info("User data cleared"),$.clearMessages(),$.addMessage({role:"system",content:"Your conversation data has been cleared."});break;case"guardrail_block":$.isStreaming.value=!1,a.warn("Content blocked by safety policy"),$.addMessage({role:"system",content:A.content||"I'm not able to help with that request."}),$.syncToOtherTabs();break;case"upload_received":a.info(`File upload received: ${A.fileName}`),$.setUploadState("processing",A.fileName);break;case"file_processing":a.info(`Processing file: ${A.fileName}`),$.setUploadState("processing",A.fileName);break;case"file_processed":A.status==="success"?(a.info(`File processed successfully: ${A.fileName}`),$.setUploadState("success",A.fileName),setTimeout(()=>$.resetUploadState(),2e3)):(a.error(`File processing failed: ${A.error}`),$.setUploadState("error",A.fileName,A.error));break;case"error":$.isStreaming.value=!1,$.uploadState.value!=="idle"&&$.setUploadState("error",void 0,A.content),a.error("Kin error:",A.content),$.addMessage({role:"assistant",content:A.content||"An error occurred"});break}},onOpen:()=>{a.info("WebSocket opened, awaiting authentication...")},onClose:()=>{a.info("Disconnected from Kin service"),$.connectionState.value="disconnected",$.isStreaming.value=!1;const A=d;o=null,d=!1,!A&&$.isOpen.value&&(a.info("Attempting to reconnect..."),p=setTimeout(()=>{p=null,w()},1e3))},onError:A=>{a.error("Kin connection error:",A),$.connectionState.value="error",$.isStreaming.value=!1}})},D=()=>{p&&(clearTimeout(p),p=null),o&&(d=!0,o.disconnect(),o=null)};return{prepare:()=>{typeof window>"u"||u||(f=gi.getOrCreateAnonymousId(),I(),u=!0,w(),a.info("Kin plugin prepared"))},open:()=>{typeof window>"u"||(u||(I(),u=!0),w(),$.isOpen.value=!0,$.clearUnreadMessages(),a.info("Kin opened"))},close:()=>{typeof window>"u"||($.isOpen.value=!1,a.info("Kin closed"))},toggle:()=>{typeof window>"u"||($.isOpen.value?$.isOpen.value=!1:(u||(I(),u=!0),w(),$.isOpen.value=!0,$.clearUnreadMessages()))},setTheme:R=>{var A;if(l=R,u&&h){const H=(A=h.shadowRoot)==null?void 0:A.getElementById("kin-styles");H&&(H.textContent=y(l))}a.info("Kin theme updated:",R)},destroy:()=>{typeof window>"u"||(D(),h&&(h.shadowRoot&&Ts(null,h.shadowRoot),m&&h.remove()),$.isOpen.value=!1,$.isStreaming.value=!1,$.connectionState.value="idle",$.clearMessages(),$.resetUploadState(),$.clearUnreadMessages(),u=!1,h=null,m=!1,a.info("Kin plugin destroyed"))}}});exports.BRAND_THEMES=nx;exports.F=Le;exports.N=tt;exports.ao=xd;exports.b=K;exports.cr=i6;exports.h=le;exports.kinPlugin=ax;exports.o=b;exports.p=Se;exports.q=nt;exports.tt=e0;exports.x=he;
|
package/dist/kin.d.ts
CHANGED
|
@@ -10,10 +10,8 @@ export type StarterPrompt = {
|
|
|
10
10
|
message: string;
|
|
11
11
|
};
|
|
12
12
|
export type KinPluginParams = {
|
|
13
|
-
/**
|
|
14
|
-
serviceUrl
|
|
15
|
-
/** Publishable key for authentication */
|
|
16
|
-
publishableKey: string;
|
|
13
|
+
/** Override the agents service URL. Defaults to production (wss://agents.inploi.com). Only needed for local development. */
|
|
14
|
+
serviceUrl?: string;
|
|
17
15
|
/** Theme configuration */
|
|
18
16
|
theme?: KinTheme;
|
|
19
17
|
/** Starter prompts shown in empty state to help users begin */
|
|
@@ -35,11 +33,12 @@ export type Kin = ReturnType<ReturnType<KinPlugin>>;
|
|
|
35
33
|
/**
|
|
36
34
|
* Creates the Kin plugin
|
|
37
35
|
*/
|
|
38
|
-
export declare const kinPlugin: ({ serviceUrl,
|
|
36
|
+
export declare const kinPlugin: ({ serviceUrl, theme, starterPrompts, mode, container: containerOption, }: KinPluginParams) => ({ logger, publishableKey }: {
|
|
39
37
|
apiClient: import('@inploi/sdk').ApiClient;
|
|
40
38
|
rpcClient: import('@inploi/sdk').InploiRpcClient;
|
|
41
39
|
logger: import('@inploi/sdk').Logger;
|
|
42
40
|
analytics: import('@inploi/sdk').AnalyticsService;
|
|
41
|
+
publishableKey?: string;
|
|
43
42
|
}) => {
|
|
44
43
|
prepare: () => void;
|
|
45
44
|
open: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-70a5a203.cjs");require("@inploi/sdk");exports.Mermaid=e.tt;
|
package/dist/plugin-kin.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-70a5a203.cjs");require("@inploi/sdk");exports.BRAND_THEMES=e.BRAND_THEMES;exports.kinPlugin=e.kinPlugin;
|
package/dist/plugin-kin.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inploi/plugin-kin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Kin - A unified Talent Agent interface for hiring. One system, many roles.",
|
|
6
6
|
"main": "dist/plugin-kin.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@inploi/sdk": ">=1.
|
|
23
|
+
"@inploi/sdk": ">=1.17.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@preact/preset-vite": "2.5.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"vite": "^4.4.5",
|
|
32
32
|
"vite-plugin-dts": "^3.7.0",
|
|
33
33
|
"vite-tsconfig-paths": "^4.2.1",
|
|
34
|
-
"@inploi/sdk": "1.
|
|
34
|
+
"@inploi/sdk": "1.17.0",
|
|
35
35
|
"tsconfig": "0.1.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|