Publish the prerendered static export (index.html, 404.html, cinema/,
c/, about/, for-cinemas/, for-film-lovers/, assets/, images/, og/,
sitemap.xml, robots.txt) as the site root and remove the React Router
+ Nitro source tree from this branch. Source remains available in
history at 0548772.
Note: public/sw.js here reports VERSION v2.0.5 while the removed source
tree (v2.1.0) was newer, and .gitignore was not carried over.
342 lines
287 KiB
JavaScript
342 lines
287 KiB
JavaScript
import{i as e,t}from"./react-B8IZ02wI.js";import{C as n,S as r,h as i,m as a,n as o,p as s,s as c,u as l,w as u}from"./api-path-DiLUeLL2.js";import{t as d}from"./react-dom-0ZK-Lw7i.js";import{N as f,a as p,c as m,g as h,l as g,t as _,v}from"./components-LggAOTeO.js";import{a as y,n as b,r as x}from"./components-BPFOGuol.js";import{i as S,n as C,s as w,t as T}from"./IconCheck-B3jDJthn.js";import{t as E}from"./jsx-runtime-fBfwind-.js";import{m as D,p as O,r as k}from"./analytics-hbCOwHmS.js";import{r as A,t as j}from"./share-origin-COlEIvGo.js";import{n as M,t as N}from"./app-config-4aQIl_Vd.js";import{t as P}from"./motion-DOH2EXPt.js";import{a as ee,i as F,n as te,o as ne,r as re}from"./use-session-DJs-YY25.js";import{t as ie}from"./createReactComponent-C-DRqPhY.js";var I=`original`,L=`data-theme-family`,ae=`data-theme-family-status`,oe=`theme-family`;function R(e){if(e===void 0)return`${oe}:__no_app_id__`;let t=e.trim().toLowerCase();if(!t)throw TypeError(`Theme family settings require a non-empty appId.`);return`${oe}:${encodeURIComponent(t)}`}function se(e){return R(e)}function ce(e){let t=se(e??void 0);return`(function(){var root=document.documentElement;var fallback=${JSON.stringify(I)};try{var value=window.localStorage.getItem(${JSON.stringify(t)});if(value===null){root.setAttribute(${JSON.stringify(L)},fallback);root.setAttribute(${JSON.stringify(ae)},'awaiting-app-setting');return}if(value==='agent-native'||value==='original'){root.setAttribute(${JSON.stringify(L)},value);root.removeAttribute(${JSON.stringify(ae)});return}root.setAttribute(${JSON.stringify(L)},fallback);root.setAttribute(${JSON.stringify(ae)},'invalid')}catch(e){root.setAttribute(${JSON.stringify(L)},fallback);root.setAttribute(${JSON.stringify(ae)},'unreadable')}})();`}function le(){return`
|
||
(function() {
|
||
try {
|
||
var params = new URLSearchParams(window.location.search || "");
|
||
var embedded = params.get(${JSON.stringify(r)});
|
||
if (params.has(${JSON.stringify(n)}) || embedded === "1" || embedded === "true") return;
|
||
} catch (e) {}
|
||
|
||
var INSTALL_KEY = "__agentNativeViteDevRecoveryInstalled";
|
||
if (window[INSTALL_KEY]) return;
|
||
window[INSTALL_KEY] = true;
|
||
|
||
var RELOAD_KEY = "__an_optimize_reload";
|
||
var RELOAD_HISTORY_PARAM = "__an_vite_dev_recovery";
|
||
var routeWarmupAttribute = ${JSON.stringify(i)};
|
||
var MAX_RELOADS = 3;
|
||
var MIN_RELOAD_INTERVAL_MS = 2000;
|
||
var RESET_AFTER_MS = 8000;
|
||
|
||
var reloadTimer = null;
|
||
var overlayShown = false;
|
||
|
||
// Track recent reloads in sessionStorage. If we reload too many times
|
||
// in a short window, stop and show a manual-refresh message instead of
|
||
// looping forever.
|
||
function readReloadHistory() {
|
||
var cutoff = Date.now() - 30000;
|
||
var history = [];
|
||
try {
|
||
var raw = sessionStorage.getItem(RELOAD_KEY);
|
||
var arr = raw ? JSON.parse(raw) : [];
|
||
if (Array.isArray(arr)) {
|
||
history = arr.filter(function(t) {
|
||
return typeof t === "number" && Number.isFinite(t) && t > cutoff;
|
||
});
|
||
}
|
||
} catch (e) {
|
||
// coercion-ok: blocked or corrupt storage falls back to the URL history marker.
|
||
}
|
||
var params = new URLSearchParams(window.location.search || "");
|
||
var encoded = params.get(RELOAD_HISTORY_PARAM);
|
||
if (encoded) {
|
||
encoded.split(".").forEach(function(value) {
|
||
var timestamp = Number.parseInt(value, 36);
|
||
if (Number.isSafeInteger(timestamp) && timestamp > cutoff) {
|
||
history.push(timestamp);
|
||
}
|
||
});
|
||
}
|
||
return history.filter(function(timestamp, index, values) {
|
||
return values.indexOf(timestamp) === index;
|
||
}).sort(function(a, b) { return a - b; });
|
||
}
|
||
function writeReloadHistory(history) {
|
||
var savedInSession = false;
|
||
try {
|
||
sessionStorage.setItem(RELOAD_KEY, JSON.stringify(history));
|
||
savedInSession = true;
|
||
} catch (e) {
|
||
// coercion-ok: blocked storage falls back to the URL history marker.
|
||
}
|
||
try {
|
||
var url = new URL(window.location.href);
|
||
if (history.length) {
|
||
url.searchParams.set(RELOAD_HISTORY_PARAM, history.map(function(timestamp) {
|
||
return timestamp.toString(36);
|
||
}).join("."));
|
||
} else {
|
||
url.searchParams.delete(RELOAD_HISTORY_PARAM);
|
||
}
|
||
window.history.replaceState(
|
||
window.history.state,
|
||
"",
|
||
url.pathname + url.search + url.hash,
|
||
);
|
||
return true;
|
||
} catch (error) {
|
||
console.warn("[agent-native] Could not persist Vite recovery history.", error);
|
||
return savedInSession;
|
||
}
|
||
}
|
||
function recordReload() {
|
||
var history = readReloadHistory();
|
||
history.push(Date.now());
|
||
return writeReloadHistory(history);
|
||
}
|
||
// Reset the counter after a stable period (page didn't fail again).
|
||
setTimeout(function() {
|
||
try { sessionStorage.removeItem(RELOAD_KEY); } catch (e) {}
|
||
writeReloadHistory([]);
|
||
}, RESET_AFTER_MS);
|
||
|
||
function showOverlay(title, subtitle) {
|
||
if (overlayShown) return;
|
||
overlayShown = true;
|
||
var mount = function() {
|
||
if (!document.body) { setTimeout(mount, 16); return; }
|
||
var el = document.createElement("div");
|
||
el.id = "__an-reload-overlay";
|
||
el.style.cssText = [
|
||
"position:fixed","inset:0","z-index:2147483647",
|
||
"display:flex","align-items:center","justify-content:center",
|
||
"background:rgba(0,0,0,0.6)","backdrop-filter:blur(8px)",
|
||
"-webkit-backdrop-filter:blur(8px)",
|
||
"font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif",
|
||
"color:#fff","font-size:14px"
|
||
].join(";");
|
||
el.innerHTML =
|
||
'<div style="background:#171717;padding:20px 24px;border-radius:12px;' +
|
||
'border:1px solid rgba(255,255,255,0.1);max-width:340px;text-align:center;' +
|
||
'box-shadow:0 20px 60px rgba(0,0,0,0.5)">' +
|
||
'<div style="font-weight:600;margin-bottom:6px">' + title + '</div>' +
|
||
'<div style="font-size:12px;opacity:0.7">' + subtitle + '</div>' +
|
||
'</div>';
|
||
document.body.appendChild(el);
|
||
};
|
||
mount();
|
||
}
|
||
|
||
function scheduleReload(reason) {
|
||
if (reloadTimer) return;
|
||
var history = readReloadHistory();
|
||
if (history.length >= MAX_RELOADS) {
|
||
console.warn("[agent-native] Dev server keeps re-bundling. Manual refresh needed.", reason);
|
||
showOverlay(
|
||
"Dev server out of sync",
|
||
"Auto-reload gave up after " + MAX_RELOADS + " tries. Refresh the page (\\u2318R / Ctrl R)."
|
||
);
|
||
return;
|
||
}
|
||
console.log("[agent-native] Vite re-bundled deps (" + reason + "), reloading\\u2026");
|
||
if (!recordReload()) {
|
||
showOverlay(
|
||
"Dev server out of sync",
|
||
"Auto-reload could not track attempts. Refresh the page manually.",
|
||
);
|
||
return;
|
||
}
|
||
// First reload is silent. One refresh almost always fixes it and the
|
||
// overlay flash is more disruptive than the reload itself. Only show
|
||
// the overlay starting on the second attempt, when something is clearly
|
||
// taking longer than expected.
|
||
if (history.length >= 1) {
|
||
showOverlay("Updating dev server\\u2026", "Reloading the page");
|
||
}
|
||
var lastReloadAt = history.length ? history[history.length - 1] : 0;
|
||
var delay = Math.max(
|
||
300,
|
||
MIN_RELOAD_INTERVAL_MS - Math.max(0, Date.now() - lastReloadAt),
|
||
);
|
||
reloadTimer = setTimeout(function() { window.location.reload(); }, delay);
|
||
}
|
||
|
||
window.addEventListener("vite:beforeFullReload", function() {
|
||
if (reloadTimer) {
|
||
clearTimeout(reloadTimer);
|
||
reloadTimer = null;
|
||
}
|
||
});
|
||
|
||
function looksLikeViteFailureMessage(message) {
|
||
if (!message) return false;
|
||
var optimizerUrl = message.indexOf("/node_modules/.vite/deps/") !== -1
|
||
|| message.indexOf("/@id/") !== -1
|
||
|| message.indexOf("/@fs/") !== -1;
|
||
return message.indexOf("Outdated Optimize Dep") !== -1
|
||
|| message.indexOf("Optimize Deps Processing Error") !== -1
|
||
|| ((message.indexOf("Failed to fetch dynamically imported module") !== -1
|
||
|| message.indexOf("error loading dynamically imported module") !== -1
|
||
|| message.indexOf("Importing a module script failed") !== -1)
|
||
&& optimizerUrl)
|
||
|| (message.indexOf("504") !== -1 && (
|
||
message.indexOf(".vite/deps") !== -1 ||
|
||
message.indexOf("/node_modules/.vite/deps/") !== -1
|
||
));
|
||
}
|
||
|
||
// Vite's preload event is already scoped to a failed module preload, so it
|
||
// carries stronger evidence than a generic rejection. Route modules do not
|
||
// live under the optimizer URL prefix, but they still need Vite's bounded
|
||
// recovery before React Router logs and natively reloads the document.
|
||
function looksLikeVitePreloadFailureMessage(message) {
|
||
if (!message) return false;
|
||
return message.indexOf("Failed to fetch dynamically imported module") !== -1
|
||
|| message.indexOf("error loading dynamically imported module") !== -1
|
||
|| message.indexOf("Importing a module script failed") !== -1
|
||
|| message.indexOf("Outdated Optimize Dep") !== -1
|
||
|| message.indexOf("Optimize Deps Processing Error") !== -1
|
||
|| (message.indexOf("504") !== -1 && (
|
||
message.indexOf(".vite/deps") !== -1 ||
|
||
message.indexOf("/node_modules/.vite/deps/") !== -1
|
||
));
|
||
}
|
||
|
||
function looksLikeViteDep(url) {
|
||
if (!url) return false;
|
||
// Generic resource errors are ambiguous for app route modules; only Vite's
|
||
// transformed module URLs are safe evidence of an optimizer failure.
|
||
try {
|
||
var u = new URL(url, window.location.href);
|
||
if (u.origin !== window.location.origin) return false;
|
||
} catch (e) { return false; }
|
||
return url.indexOf("/node_modules/.vite/deps/") !== -1
|
||
|| url.indexOf("/@fs/") !== -1
|
||
|| url.indexOf("/@id/") !== -1;
|
||
}
|
||
|
||
function looksLikeLocalViteModule(url, target) {
|
||
if (!url || !target) return false;
|
||
var hostname = window.location.hostname;
|
||
var localDevHost = hostname === "localhost"
|
||
|| hostname.endsWith(".localhost")
|
||
|| /^127(?:\\.\\d{1,3}){3}$/.test(hostname)
|
||
|| hostname === "::1"
|
||
|| hostname === "[::1]";
|
||
if (!localDevHost) return false;
|
||
if (url.indexOf(window.location.origin + "/") !== 0) return false;
|
||
if (target.tagName === "SCRIPT") return String(target.type || "").toLowerCase() === "module";
|
||
return target.tagName === "LINK"
|
||
&& !(target.hasAttribute && target.hasAttribute(routeWarmupAttribute))
|
||
&& /(?:^|\\s)modulepreload(?:\\s|$)/i.test(target.rel || "");
|
||
}
|
||
|
||
// 1) <script type="module"> / <link> 504. These fire on the element, not
|
||
// window, so use capture phase to catch resource load errors.
|
||
window.addEventListener("error", function(e) {
|
||
var t = e.target;
|
||
if (!t || t === window) {
|
||
var message = String(e.message || "");
|
||
if (looksLikeViteFailureMessage(message)) {
|
||
scheduleReload("window error");
|
||
}
|
||
return;
|
||
}
|
||
var tag = t.tagName;
|
||
if (tag !== "SCRIPT" && tag !== "LINK") return;
|
||
var url = t.src || t.href || "";
|
||
if (looksLikeViteDep(url) || looksLikeLocalViteModule(url, t)) {
|
||
var name = url.split("/").pop();
|
||
scheduleReload("script 504: " + name);
|
||
}
|
||
}, true);
|
||
|
||
// Vite's documented hook for failed dynamic-import preloads. This mostly
|
||
// targets production chunk skew, but it also fires for some dev optimizer
|
||
// races, so wire it into the same guarded reload path.
|
||
window.addEventListener("vite:preloadError", function(e) {
|
||
var payload = e && e.payload;
|
||
var msg = String((payload && (payload.message || payload)) || "");
|
||
// A preload event without a concrete error is not enough evidence to
|
||
// reload the document. Vite can emit an empty payload while a route
|
||
// preload is being cancelled; treating that cancellation as an optimizer
|
||
// failure strands the app on its SSR loading fallback.
|
||
if (looksLikeVitePreloadFailureMessage(msg)) {
|
||
if (e.preventDefault) e.preventDefault();
|
||
scheduleReload("preload error");
|
||
}
|
||
});
|
||
|
||
// 2) Dynamic import failures (React Router code splitting, lazy components).
|
||
window.addEventListener("unhandledrejection", function(e) {
|
||
var msg = String((e.reason && (e.reason.message || e.reason)) || "");
|
||
if (looksLikeViteFailureMessage(msg)) {
|
||
scheduleReload("dynamic import");
|
||
}
|
||
});
|
||
|
||
// Static module-graph fetch failures for child imports don't always surface
|
||
// as element errors or rejections. Chrome exposes the HTTP status via
|
||
// Resource Timing; when available, use it as a final safety net.
|
||
var seenResources = {};
|
||
function checkResourceEntry(entry) {
|
||
var url = entry && entry.name;
|
||
if (!url || seenResources[url]) return;
|
||
seenResources[url] = true;
|
||
if (!looksLikeViteDep(url)) return;
|
||
if (entry.responseStatus === 504) {
|
||
var name = url.split("/").pop();
|
||
scheduleReload("resource 504: " + name);
|
||
}
|
||
}
|
||
function checkExistingResources() {
|
||
try {
|
||
var entries = performance.getEntriesByType("resource") || [];
|
||
for (var i = 0; i < entries.length; i++) checkResourceEntry(entries[i]);
|
||
} catch (e) {}
|
||
}
|
||
if (window.PerformanceObserver) {
|
||
try {
|
||
var observer = new PerformanceObserver(function(list) {
|
||
var entries = list.getEntries();
|
||
for (var i = 0; i < entries.length; i++) checkResourceEntry(entries[i]);
|
||
});
|
||
observer.observe({ type: "resource", buffered: true });
|
||
} catch (e) {
|
||
setTimeout(checkExistingResources, 0);
|
||
}
|
||
} else {
|
||
setTimeout(checkExistingResources, 0);
|
||
}
|
||
})();`}function ue(){let e={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1};return typeof process<`u`||e?.PROD===!0?!1:(e?.DEV,!0)}function de(e){return e===`light`||e===`dark`||e===`system`?e:`system`}function fe(e=`system`,t=!0,n){let r=de(e),i=t?`true`:`false`,a=`${ce(n??u()??void 0)}\n(function(){function m(){var d={};return{get length(){return Object.keys(d).length},key:function(i){return Object.keys(d)[i]||null},getItem:function(k){k=String(k);return Object.prototype.hasOwnProperty.call(d,k)?d[k]:null},setItem:function(k,v){d[String(k)]=String(v)},removeItem:function(k){delete d[k]},clear:function(){d={}}}}function s(n){try{var x=window[n],p='__an_storage_probe__';x.setItem(p,'1');x.removeItem(p)}catch(e){try{Object.defineProperty(window,n,{configurable:true,value:m()})}catch(_){}}}s('localStorage');s('sessionStorage');try{var defaultTheme=${JSON.stringify(r)};var enableSystem=${i};var stored=window.localStorage.getItem('theme');var valid=stored==='light'||stored==='dark'||stored==='system'||stored==='auto';var mode=valid?stored:defaultTheme;if(mode==='auto')mode='system';if(!enableSystem&&mode==='system')mode=defaultTheme==='system'?'light':defaultTheme;if(!valid){window.localStorage.removeItem('theme')}else if(stored!==mode){window.localStorage.setItem('theme',mode)}var prefersDark=enableSystem&&mode==='system'&&window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches;var resolved=mode==='system'?(prefersDark?'dark':'light'):mode;var root=document.documentElement;root.classList.remove('light','dark');root.classList.add(resolved);root.setAttribute('data-theme',resolved);root.style.colorScheme=resolved;var appearance=window.localStorage.getItem('appearance');var appearanceValid=appearance==='warm'||appearance==='ocean'||appearance==='forest'||appearance==='rose'||appearance==='slate';if(appearanceValid){root.setAttribute('data-appearance',appearance)}else{root.removeAttribute('data-appearance');if(appearance!==null)window.localStorage.removeItem('appearance')}}catch(e){document.documentElement.setAttribute('data-theme-status','unreadable')}})();`;return ue()?`${a}\n${le()}`:a}fe();var z=E(),B=e(t(),1),pe=({children:e})=>(0,z.jsx)(z.Fragment,{children:e});function me({children:e}){return(0,z.jsx)(pe,{children:(0,z.jsx)(`div`,{className:`flex h-screen w-full flex-col overflow-hidden bg-background text-foreground`,children:(0,z.jsx)(`main`,{className:`agent-native-app-main min-w-0 flex-1 overflow-y-auto overscroll-contain`,children:e})})})}var he=(0,B.createContext)({}),ge=(0,B.createContext)(!1);function _e(){return(0,B.useContext)(he).definition}var ve=(0,B.createContext)({});function ye({children:e,components:t,designSystem:n}){let r=(0,B.useContext)(ve),i=(0,B.useContext)(he),a=(0,B.useMemo)(()=>({...r,...t}),[r,t]),o=(0,B.useMemo)(()=>n?{...i.definition,...n,components:{...i.definition?.components,...n.components}}:i.definition,[n,i.definition]),s=(0,B.useMemo)(()=>{if(!a.Button)return i.legacyActionButton;let e=a.Button;return function({children:t,intent:n,emphasis:r,inset:i,size:a,pending:o,leadingIcon:s,trailingIcon:c,onPress:l,onClick:u,elementRef:d,...f}){let p=i&&r===`ghost`?`ghost-inset`:r===`ghost`?`ghost`:r===`outline`?`outline`:n===`danger`?`destructive`:n===`primary`?`default`:`secondary`,m=a===`compact`?`sm`:a===`large`?`lg`:`default`;return(0,z.jsx)(ge.Provider,{value:!0,children:(0,z.jsxs)(e,{...f,ref:d,variant:p,size:m,disabled:f.disabled||o,"aria-busy":o||void 0,onClick:e=>{l?.(e),u?.(e)},children:[s,t,c]})})}},[i.legacyActionButton,a.Button]),c=(0,B.useMemo)(()=>({definition:o,legacyActionButton:s}),[s,o]);return(0,B.useEffect)(()=>{!o?.components?.ActionButton||a.Button},[o?.components?.ActionButton,a.Button]),(0,z.jsx)(he.Provider,{value:c,children:(0,z.jsx)(ve.Provider,{value:a,children:e})})}function be(){return(0,B.useContext)(ve)}function xe(e){return be()[e]}function Se(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Ce(...e){return t=>{let n=!1,r=e.map(e=>{let r=Se(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Se(e[t],null)}}}}function V(...e){return B.useCallback(Ce(...e),e)}function we(e){let t=B.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Ne(r)&&typeof Le==`function`&&(r=Le(r._payload)),B.Children.forEach(r,e=>{if(je(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Ne(n)&&typeof Le==`function`&&(n=Le(n._payload)),a=Oe(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=B.cloneElement(a,void 0,s):!o&&B.Children.count(r)===1&&B.isValidElement(r)&&(a=r);let c=a?Ae(a):void 0,l=V(n,c);if(!a){if(r||r===0)throw Error(o?Ie(e):Fe(e));return r}let u=ke(i,a.props??{});return a.type!==B.Fragment&&(u.ref=n?l:c),B.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}var Te=we(`Slot`),Ee=Symbol.for(`radix.slottable`);function De(e){let t=e=>`child`in e?e.children(e.child):e.children;return t.displayName=`${e}.Slottable`,t.__radixId=Ee,t}var Oe=(e,t)=>{if(`child`in e.props){let t=e.props.child;return B.isValidElement(t)?B.cloneElement(t,void 0,e.props.children(t.props.children)):null}return B.isValidElement(t)?t:null};function ke(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Ae(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function je(e){return B.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Ee}var Me=Symbol.for(`react.lazy`);function Ne(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Me&&`_payload`in e&&Pe(e._payload)}function Pe(e){return typeof e==`object`&&!!e&&`then`in e}var Fe=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Ie=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Le=B.use;function Re(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Re(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function ze(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Re(e))&&(r&&(r+=` `),r+=t);return r}var Be=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Ve=ze,He=(e,t)=>n=>{if(t?.variants==null)return Ve(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Be(t)||Be(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Ve(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Ue=class extends B.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e,t){console.error(`[agent-native] Custom design-system component ${this.props.component} failed; rendering the default adapter for this control.`,e,t)}render(){return this.state.failed?this.props.fallback:this.props.children}},We=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Ge=(e,t)=>({classGroupId:e,validator:t}),Ke=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),qe=`-`,Je=[],Ye=`arbitrary..`,Xe=e=>{let t=$e(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Qe(e);let n=e.split(qe);return Ze(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?We(i,t):t:i||Je}return n[e]||Je}}},Ze=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ze(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(qe):e.slice(t).join(qe),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Qe=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Ye+r:void 0})(),$e=e=>{let{theme:t,classGroups:n}=e;return et(n,t)},et=(e,t)=>{let n=Ke();for(let r in e){let i=e[r];tt(i,n,r,t)}return n},tt=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];nt(i,t,n,r)}},nt=(e,t,n,r)=>{if(typeof e==`string`){rt(e,t,n);return}if(typeof e==`function`){it(e,t,n,r);return}at(e,t,n,r)},rt=(e,t,n)=>{let r=e===``?t:ot(t,e);r.classGroupId=n},it=(e,t,n,r)=>{if(st(e)){tt(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ge(n,e))},at=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];tt(o,ot(t,a),n,r)}},ot=(e,t)=>{let n=e,r=t.split(qe),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Ke(),n.nextPart.set(t,i)),n=i}return n},st=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ct=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},lt=`!`,ut=`:`,dt=[],ft=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),pt=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===ut){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(lt)?(c=s.slice(0,-1),l=!0):s.startsWith(lt)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return ft(t,l,c,u)};if(t){let e=t+ut,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):ft(dt,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},mt=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},ht=e=>({cache:ct(e.cacheSize),parseClassName:pt(e),sortModifiers:mt(e),postfixLookupClassGroupIds:gt(e),...Xe(e)}),gt=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},_t=/\s+/,vt=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(_t),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+lt:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},yt=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=bt(n))&&(i&&(i+=` `),i+=r);return i},bt=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=bt(e[r]))&&(n&&(n+=` `),n+=t);return n},xt=(e,...t)=>{let n,r,i,a,o=o=>(n=ht(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=vt(e,n);return i(e,a),a};return a=o,(...e)=>a(yt(...e))},St=[],H=e=>{let t=t=>t[e]||St;return t.isThemeGetter=!0,t},Ct=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,wt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Tt=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Et=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ot=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,At=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jt=e=>Tt.test(e),U=e=>!!e&&!Number.isNaN(Number(e)),Mt=e=>!!e&&Number.isInteger(Number(e)),Nt=e=>e.endsWith(`%`)&&U(e.slice(0,-1)),Pt=e=>Et.test(e),Ft=()=>!0,It=e=>Dt.test(e)&&!Ot.test(e),Lt=()=>!1,Rt=e=>kt.test(e),zt=e=>At.test(e),Bt=e=>!W(e)&&!G(e),Vt=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Ht=e=>rn(e,cn,Lt),W=e=>Ct.test(e),Ut=e=>rn(e,ln,It),Wt=e=>rn(e,un,U),Gt=e=>rn(e,fn,Ft),Kt=e=>rn(e,dn,Lt),qt=e=>rn(e,on,Lt),Jt=e=>rn(e,sn,zt),Yt=e=>rn(e,pn,Rt),G=e=>wt.test(e),Xt=e=>an(e,ln),Zt=e=>an(e,dn),Qt=e=>an(e,on),$t=e=>an(e,cn),en=e=>an(e,sn),tn=e=>an(e,pn,!0),nn=e=>an(e,fn,!0),rn=(e,t,n)=>{let r=Ct.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},an=(e,t,n=!1)=>{let r=wt.exec(e);return r?r[1]?t(r[1]):n:!1},on=e=>e===`position`||e===`percentage`,sn=e=>e===`image`||e===`url`,cn=e=>e===`length`||e===`size`||e===`bg-size`,ln=e=>e===`length`,un=e=>e===`number`,dn=e=>e===`family-name`,fn=e=>e===`number`||e===`weight`,pn=e=>e===`shadow`,mn=xt(()=>{let e=H(`color`),t=H(`font`),n=H(`text`),r=H(`font-weight`),i=H(`tracking`),a=H(`leading`),o=H(`breakpoint`),s=H(`container`),c=H(`spacing`),l=H(`radius`),u=H(`shadow`),d=H(`inset-shadow`),f=H(`text-shadow`),p=H(`drop-shadow`),m=H(`blur`),h=H(`perspective`),g=H(`aspect`),_=H(`ease`),v=H(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),G,W],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[G,W,c],T=()=>[jt,`full`,`auto`,...w()],E=()=>[Mt,`none`,`subgrid`,G,W],D=()=>[`auto`,{span:[`full`,Mt,G,W]},Mt,G,W],O=()=>[Mt,`auto`,G,W],k=()=>[`auto`,`min`,`max`,`fr`,G,W],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[jt,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[jt,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ee=()=>[jt,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,G,W],te=()=>[...b(),Qt,qt,{position:[G,W]}],ne=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],re=()=>[`auto`,`cover`,`contain`,$t,Ht,{size:[G,W]}],ie=()=>[Nt,Xt,Ut],I=()=>[``,`none`,`full`,l,G,W],L=()=>[``,U,Xt,Ut],ae=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],R=()=>[U,Nt,Qt,qt],se=()=>[``,`none`,m,G,W],ce=()=>[`none`,U,G,W],le=()=>[`none`,U,G,W],ue=()=>[U,G,W],de=()=>[jt,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Pt],breakpoint:[Pt],color:[Ft],container:[Pt],"drop-shadow":[Pt],ease:[`in`,`out`,`in-out`],font:[Bt],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Pt],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Pt],shadow:[Pt],spacing:[`px`,U],text:[Pt],"text-shadow":[Pt],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,jt,W,G,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,G,W]}],"container-named":[Vt],columns:[{columns:[U,W,G,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Mt,`auto`,G,W]}],basis:[{basis:[jt,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[U,jt,`auto`,`initial`,`none`,W]}],grow:[{grow:[``,U,G,W]}],shrink:[{shrink:[``,U,G,W]}],order:[{order:[Mt,`first`,`last`,`none`,G,W]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...ee()]}],"min-block-size":[{"min-block":[`auto`,...ee()]}],"max-block-size":[{"max-block":[`none`,...ee()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,Xt,Ut]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,nn,Gt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Nt,W]}],"font-family":[{font:[Zt,Kt,t]}],"font-features":[{"font-features":[W]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,G,W]}],"line-clamp":[{"line-clamp":[U,`none`,G,Wt]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,G,W]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,G,W]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ae(),`wavy`]}],"text-decoration-thickness":[{decoration:[U,`from-font`,`auto`,G,Ut]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[U,`auto`,G,W]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Mt,G,W]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,G,W]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,G,W]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:re()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Mt,G,W],radial:[``,G,W],conic:[Mt,G,W]},en,Jt]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":L()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ae(),`hidden`,`none`]}],"divide-style":[{divide:[...ae(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ae(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[U,G,W]}],"outline-w":[{outline:[``,U,Xt,Ut]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`none`,u,tn,Yt]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,tn,Yt]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:L()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[U,Ut]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,tn,Yt]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[U,G,W]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[U]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[G,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[U]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,G,W]}],filter:[{filter:[``,`none`,G,W]}],blur:[{blur:se()}],brightness:[{brightness:[U,G,W]}],contrast:[{contrast:[U,G,W]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,tn,Yt]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,U,G,W]}],"hue-rotate":[{"hue-rotate":[U,G,W]}],invert:[{invert:[``,U,G,W]}],saturate:[{saturate:[U,G,W]}],sepia:[{sepia:[``,U,G,W]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,G,W]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[U,G,W]}],"backdrop-contrast":[{"backdrop-contrast":[U,G,W]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,U,G,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[U,G,W]}],"backdrop-invert":[{"backdrop-invert":[``,U,G,W]}],"backdrop-opacity":[{"backdrop-opacity":[U,G,W]}],"backdrop-saturate":[{"backdrop-saturate":[U,G,W]}],"backdrop-sepia":[{"backdrop-sepia":[``,U,G,W]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,G,W]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[U,`initial`,G,W]}],ease:[{ease:[`linear`,`initial`,_,G,W]}],delay:[{delay:[U,G,W]}],animate:[{animate:[`none`,v,G,W]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,G,W]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":[`scale-3d`],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[G,W,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":[`translate-none`],zoom:[{zoom:[Mt,G,W]}],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,G,W]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,G,W]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[U,Xt,Ut,Wt]}],stroke:[{stroke:[`none`,...F()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function hn(...e){return mn(ze(e))}var gn=He(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-[color,background-color,border-color,box-shadow,transform,scale] duration-150 active:scale-[0.98] motion-reduce:active:scale-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground hover:bg-destructive/90`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,"outline-destructive":`border bg-background text-destructive shadow-xs hover:bg-destructive/10 dark:border-input dark:bg-input/30 dark:hover:bg-destructive/20`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,"ghost-inset":`text-muted-foreground hover:bg-accent/40 hover:text-foreground focus-visible:ring-inset focus-visible:ring-offset-0`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,xs:`h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg]:size-3`,sm:`h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`,"icon-xs":`size-6 rounded-md [&_svg]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}}),_n=B.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,intent:i,emphasis:a,...o},s)=>(0,z.jsx)(r?Te:`button`,{"data-slot":`button`,className:hn(gn({variant:t,size:n,className:e})),ref:s,...o}));_n.displayName=`ButtonBase`;var vn=B.createContext(!1),yn=B.forwardRef(({variant:e,size:t,asChild:n=!1,intent:r,emphasis:i,...a},o)=>{let s=_e()?.components?.ActionButton,c=xe(`Button`),l=B.useContext(vn),u=B.useContext(ge),d=(0,z.jsx)(_n,{ref:o,variant:e,size:t,asChild:n,...a});if(s&&!n&&!u){let n=r??(e===`destructive`||e===`outline-destructive`?`danger`:e==="default"?`primary`:`neutral`),c=i===`ghost-inset`?`ghost`:i??(e===`outline`||e===`outline-destructive`?`outline`:e===`ghost-inset`||e===`ghost`||e===`link`?`ghost`:`solid`),l=c===`ghost`&&(i===`ghost-inset`||!i&&e===`ghost-inset`),u=t===`sm`||t===`xs`||t===`icon-sm`||t===`icon-xs`?`compact`:t===`lg`||t===`icon-lg`?`large`:`default`;return(0,z.jsx)(Ue,{component:`ActionButton`,fallback:d,children:(0,z.jsx)(s,{className:a.className,style:a.style,id:a.id,"aria-label":a[`aria-label`],"aria-labelledby":a[`aria-labelledby`],"aria-describedby":a[`aria-describedby`],"aria-controls":a[`aria-controls`],elementRef:o,type:a.type,disabled:a.disabled,intent:n,emphasis:c,inset:l||void 0,size:u,onPress:e=>a.onClick?.(e),children:a.children})})}if(c&&c!==yn&&!l){let s=c;return(0,z.jsx)(Ue,{component:`ActionButton`,fallback:d,children:(0,z.jsx)(vn.Provider,{value:!0,children:(0,z.jsx)(s,{ref:o,variant:e,size:t,asChild:n,intent:r,emphasis:i,...a})})})}return d});yn.displayName=`Button`;function bn(e){return e}var xn=bn({}),Sn={Button:yn};function Cn({children:e}){return(0,z.jsx)(ye,{components:Sn,designSystem:xn,children:e})}function wn(){if(typeof navigator>`u`||!(`serviceWorker`in navigator))return;let e=()=>{navigator.serviceWorker.register(`/sw.js`,{scope:`/`,updateViaCache:`none`}).then(e=>{e.update().catch(()=>void 0);let t=e=>{e&&e.addEventListener(`statechange`,()=>{e.state===`installed`&&navigator.serviceWorker.controller&&e.postMessage(`SKIP_WAITING`)})};e.addEventListener(`updatefound`,()=>{t(e.installing)}),e.waiting&&e.waiting.postMessage(`SKIP_WAITING`)}).catch(()=>{})};document.readyState===`complete`?e():window.addEventListener(`load`,e,{once:!0})}var Tn=`/assets/global-DjioL_Jq.css`;function En(){if(typeof window>`u`)return`web`;let e=window;if(e.__TAURI_INTERNALS__||e.__TAURI__)return`tauri`;let t=typeof navigator<`u`&&navigator.userAgent||``;return/\b(?:AgentNativeDesktop|ChatGPT|Claude|Codex)\b/i.test(t)||e.agentNativeDesktop?`electron`:`web`}var Dn=`agent-chat-active-thread`,On=5;function kn(e,t){if(e.endsWith(`:seen`))return!1;if(t){let n=`${Dn}:${t}`;return e===n||e.startsWith(`${n}:scope:`)}return e===Dn||e.startsWith(`${Dn}:scope:`)}function An(e){try{let t=localStorage.getItem(`${e}:seen`),n=t?Number.parseInt(t,10):NaN;return Number.isFinite(n)?n:0}catch{return 0}}function jn(e,t){if(typeof t!=`string`)return;let n=t.trim();n&&e.add(n)}function Mn(e){if(typeof window>`u`)return[];try{let t=[];for(let n=0;n<localStorage.length;n+=1){let r=localStorage.key(n);if(!r||!kn(r,e))continue;let i=localStorage.getItem(r)?.trim();i&&t.push({id:i,seenAt:An(r)})}return t.sort((e,t)=>t.seenAt-e.seenAt),t.map(e=>e.id)}catch{return[]}}function Nn(e={}){let t=new Set;jn(t,e.chatSessionId);let n=typeof window<`u`?D():null;jn(t,n?.threadId);for(let n of Mn(e.storageKey))if(jn(t,n),t.size>=On)break;let r={chatSessionIds:[...t].slice(0,On)},i=e.activeRunId===void 0?n?.runId:e.activeRunId;return i&&(r.activeRunId=i),typeof window<`u`&&(r.pageUrl=l(window.location.href),r.clientSurface=En()),r}var Pn=`https://github.com/BuilderIO/agent-native/issues/new`;function Fn(e){return e==null?null:String(e).trim()||null}function In(e){return e.feedbackContext??Nn(e.contextOptions)}function Ln(e){let t=In(e),n=[],r=Fn(e.appName),i=Fn(e.title),a=Fn(e.details),o=Fn(e.status);r&&n.push(`App: ${r}`),o&&n.push(`Status: ${o}`),i&&n.push(`Screen: ${i}`),a&&a!==i&&n.push(`Error: ${a}`),t.pageUrl&&n.push(`Page: ${t.pageUrl}`),t.clientSurface&&n.push(`Source: ${t.clientSurface}`),t.activeRunId&&n.push(`Run: ${t.activeRunId}`),t.chatSessionIds.length===1?n.push(`Chat session: ${t.chatSessionIds[0]}`):t.chatSessionIds.length>1&&n.push(`Chat sessions: ${t.chatSessionIds.join(`, `)}`);let s=t.chatSessionIds[0],c=O({...s?{threadId:s}:{}});s&&c.threadUrl&&n.push(`Thread: ${c.threadUrl}`),c.release&&n.push(`Build: ${c.release}`),c.occurredAt&&n.push(`Time: ${c.occurredAt}`);for(let t of e.extraDebug??[]){let e=Fn(t.value);e&&n.push(`${t.label}: ${e}`)}return n}function Rn(e){let t=Ln(e);return[e.prompt??`Describe what happened here:`,``,``,`---`,`Debug info:`,...t.length?t:[`No client debug info available.`]].join(`
|
||
`)}function zn(e){let t=Fn(e.issueTitle)??[Fn(e.appName)??`Agent-Native`,Fn(e.title)??`Error screen`].join(`: `),n=new URL(Pn);return n.searchParams.set(`title`,t.slice(0,180)),n.searchParams.set(`body`,Rn({...e,prompt:e.prompt??`Describe your issue here:`})),n.toString()}var Bn=ie(`outline`,`message-circle`,`MessageCircle`,[[`path`,{d:`M3 20l1.3 -3.9c-2.324 -3.437 -1.426 -7.872 2.1 -10.374c3.526 -2.501 8.59 -2.296 11.845 .48c3.255 2.777 3.695 7.266 1.029 10.501c-2.666 3.235 -7.615 4.215 -11.574 2.293l-4.7 1`,key:`svg-0`}]]),Vn=ie(`outline`,`brand-github`,`BrandGithub`,[[`path`,{d:`M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5`,key:`svg-0`}]]),K=e=>typeof e==`string`,Hn=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Un=e=>e==null?``:String(e),Wn=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Gn=/###/g,Kn=e=>e&&e.includes(`###`)?e.replace(Gn,`.`):e,qn=e=>!e||K(e),Jn=(e,t,n)=>{let r=K(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(qn(e))return{};let t=Kn(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return qn(e)?{}:{obj:e,k:Kn(r[i])}},Yn=(e,t,n)=>{let{obj:r,k:i}=Jn(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Jn(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Jn(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Xn=(e,t,n,r)=>{let{obj:i,k:a}=Jn(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Zn=(e,t)=>{let{obj:n,k:r}=Jn(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Qn=(e,t,n)=>{let r=Zn(e,n);return r===void 0?Zn(t,n):r},$n=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?K(e[r])||e[r]instanceof String||K(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):$n(e[r],t[r],n):e[r]=t[r]);return e},er=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),tr={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},nr=e=>K(e)?e.replace(/[&<>"'\/]/g,e=>tr[e]):e,rr=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},ir=[` `,`,`,`?`,`!`,`;`],ar=new rr(20),or=(e,t,n)=>{t||=``,n||=``;let r=ir.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=ar.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},sr=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},cr=e=>e?.replace(/_/g,`-`),lr={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},ur=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||lr,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>K(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),K(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},dr=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},fr=class extends dr{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):K(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Zn(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!K(n)?s:sr(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),Yn(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(K(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Zn(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?$n(s,n,i):s={...s,...n},Yn(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},pr={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},mr=Symbol(`i18next/PATH_KEY`);function hr(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===mr?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function gr(e,t){let{[mr]:n}=e(hr()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`,a=t?.enableSelector===`strict`;if(n.length>1&&i){let e=t?.ns,o=a?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var _r=e=>!K(e)&&typeof e!=`boolean`&&typeof e!=`number`,vr=class e extends dr{constructor(e,t={}){super(),Wn([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=ur.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=_r(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!or(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:K(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:K(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=gr(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?gr(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!K(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=_r(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&!_.includes(O)&&!(K(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:_r(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&K(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=K(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!K(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=K(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=pr.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return K(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?gr(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!K(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(K(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!K(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},yr=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ur.create(`languageUtils`)}getScriptPartFromCode(e){if(e=cr(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=cr(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(K(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),K(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return K(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):K(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||i(this.formatLanguageCode(e))}),r}},br={zero:0,one:1,two:2,few:3,many:4,other:5},xr={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},Sr=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=ur.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=cr(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),xr;if(!e.match(/-|_/))return xr;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>br[e]-br[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},Cr=(e,t,n,r=`.`,i=!0)=>{let a=Qn(e,t,n);return!a&&i&&K(n)&&(a=sr(e,n,r),a===void 0&&(a=sr(t,n,r))),a},wr=e=>e.replace(/\$/g,`$$$$`),Tr=class{constructor(e={}){this.logger=ur.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?nr:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?er(i):a||`{{`,this.suffix=o?er(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?er(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?er(l):``,this.nestingPrefix=d?er(d):f||er(`$t(`),this.nestingSuffix=p?er(p):m||er(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=Cr(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(Cr(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>wr(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?wr(this.escape(e)):wr(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=K(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!K(a)&&!this.useRawValueToEscape&&(a=Un(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${er(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!K(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!K(i))return i;K(i)||(i=Un(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},Er=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Dr=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(cr(r),i),t[o]=s),s(n)}},Or=e=>(t,n,r)=>e(cr(n),r)(t),kr=class{constructor(e={}){this.logger=ur.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Dr:Or;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Dr(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&!i[0].includes(`)`)&&i.find(e=>e.includes(`)`))){let e=i.findIndex(e=>e.includes(`)`));i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=Er(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},Ar=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},jr=class extends dr{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=ur.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{Xn(n.loaded,[i],a),Ar(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();K(e)&&(e=this.languageUtils.toResolveHierarchy(e)),K(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},Mr=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),K(e[1])&&(t.defaultValue=e[1]),K(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Nr=e=>(K(e.ns)&&(e.ns=[e.ns]),K(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),K(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),Pr=()=>{},Fr=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},q=class e extends dr{constructor(e={},t){if(super(),this.options=Nr(e),this.services={},this.logger=ur,this.modules={external:[]},Fr(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(K(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=Mr();this.options={...n,...this.options,...Nr(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?ur.init(r(this.modules.logger),this.options):ur.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:kr;let t=new yr(this.options);this.store=new fr(this.options.resources,this.options);let n=this.services;n.logger=ur,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new Sr(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new Tr(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new jr(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new vr(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=Pr,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=Hn(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=Pr){let n=t,r=K(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=Hn();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=Pr,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&pr.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&![`cimode`,`dev`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=Hn();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=K(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(K(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r?.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c={...this.options,...o};Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=gr(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=gr(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=gr(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return K(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=Hn();return this.options.ns?(K(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=Hn();K(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new yr(Mr());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=Pr){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new fr(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...Mr().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new Tr(n)}return a.translator=new vr(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();q.createInstance,q.dir,q.init,q.loadResources,q.reloadResources,q.use,q.changeLanguage,q.getFixedT,q.t,q.exists,q.setDefaultNamespace,q.hasLoadedNamespace,q.loadNamespaces,q.loadLanguages;var Ir={iconPicker:{"en-US":{allCategories:`All categories`,loadError:`Could not load icons.`,saveError:`Could not save icon.`,uploadFailed:`Could not upload icon image. Try again.`,uploadTooLarge:`Icon image must be 5 MiB or smaller.`,uploadUnsupportedType:`Only PNG, JPEG, WebP, or SVG images can be uploaded.`,retry:`Try again`,uploadHint:`PNG, JPG, WebP, SVG`,colorNames:{gray:`Gray`,brown:`Brown`,orange:`Orange`,yellow:`Yellow`,green:`Green`,blue:`Blue`,purple:`Purple`,pink:`Pink`,red:`Red`},groupNames:{"documents-communication":`Documents & communication`,"people-expression":`People & expression`,"places-nature":`Places & nature`,"media-activities":`Media & activities`,"business-data":`Business & data`,"objects-symbols":`Objects & symbols`,more:`More categories`},categoryNames:{system:`System`,communication:`Communication`,document:`Documents`,media:`Media`,design:`Design`,development:`Development`,devices:`Devices`,computers:`Computers`,database:`Databases`,charts:`Charts`,arrows:`Arrows`,shapes:`Shapes`,symbols:`Symbols`,text:`Text`,letters:`Letters`,numbers:`Numbers`,math:`Math`,logic:`Logic`,"version-control":`Version control`,extensions:`Extensions`,"e-commerce":`E-commerce`,currencies:`Currencies`,buildings:`Buildings`,map:`Maps`,vehicles:`Vehicles`,nature:`Nature`,animals:`Animals`,weather:`Weather`,food:`Food`,health:`Health`,sport:`Sports`,games:`Games`,photography:`Photography`,mood:`Mood`,gestures:`Gestures`,gender:`Gender`,badges:`Badges`,electrical:`Electrical`,laundry:`Laundry`,zodiac:`Zodiac`,brand:`Brands`,"smileys-emotion":`Smileys & emotion`,"people-body":`People & body`,"animals-nature":`Animals & nature`,"food-drink":`Food & drink`,"travel-places":`Travel & places`,activities:`Activities`,objects:`Objects`,flags:`Flags`}},"es-ES":{allCategories:`Todas las categorías`,loadError:`No se pudieron cargar los iconos.`,saveError:`No se pudo guardar el icono.`,uploadFailed:`No se pudo subir la imagen del icono. Inténtalo de nuevo.`,uploadTooLarge:`La imagen del icono debe ser de 5 MiB o menos.`,uploadUnsupportedType:`Solo se pueden subir imágenes PNG, JPEG, WebP o SVG.`,retry:`Reintentar`,uploadHint:`PNG, JPG, WebP, SVG`,colorNames:{gray:`Gris`,brown:`Marrón`,orange:`Naranja`,yellow:`Amarillo`,green:`Verde`,blue:`Azul`,purple:`Morado`,pink:`Rosa`,red:`Rojo`},groupNames:{"documents-communication":`Documentos y comunicación`,"people-expression":`Personas y expresión`,"places-nature":`Lugares y naturaleza`,"media-activities":`Medios y actividades`,"business-data":`Negocios y datos`,"objects-symbols":`Objetos y símbolos`,more:`Más categorías`},categoryNames:{system:`Sistema`,communication:`Comunicación`,document:`Documentos`,media:`Multimedia`,design:`Diseño`,development:`Desarrollo`,devices:`Dispositivos`,computers:`Ordenadores`,database:`Bases de datos`,charts:`Gráficos`,arrows:`Flechas`,shapes:`Formas`,symbols:`Símbolos`,text:`Texto`,letters:`Letras`,numbers:`Números`,math:`Matemáticas`,logic:`Lógica`,"version-control":`Control de versiones`,extensions:`Extensiones`,"e-commerce":`Comercio electrónico`,currencies:`Divisas`,buildings:`Edificios`,map:`Mapas`,vehicles:`Vehículos`,nature:`Naturaleza`,animals:`Animales`,weather:`Tiempo`,food:`Comida`,health:`Salud`,sport:`Deportes`,games:`Juegos`,photography:`Fotografía`,mood:`Estado de ánimo`,gestures:`Gestos`,gender:`Género`,badges:`Insignias`,electrical:`Electricidad`,laundry:`Lavandería`,zodiac:`Zodiaco`,brand:`Marcas`,"smileys-emotion":`Caras y emociones`,"people-body":`Personas y cuerpo`,"animals-nature":`Animales y naturaleza`,"food-drink":`Comida y bebida`,"travel-places":`Viajes y lugares`,activities:`Actividades`,objects:`Objetos`,flags:`Banderas`}},"fr-FR":{allCategories:`Toutes les catégories`,loadError:`Impossible de charger les icônes.`,saveError:`Impossible d’enregistrer l’icône.`,uploadFailed:`Impossible d’importer l’image de l’icône. Réessayez.`,uploadTooLarge:`L’image de l’icône ne doit pas dépasser 5 MiB.`,uploadUnsupportedType:`Seules les images PNG, JPEG, WebP ou SVG peuvent être importées.`,retry:`Réessayer`,uploadHint:`PNG, JPG, WebP, SVG`,colorNames:{gray:`Gris`,brown:`Marron`,orange:`Orange`,yellow:`Jaune`,green:`Vert`,blue:`Bleu`,purple:`Violet`,pink:`Rose`,red:`Rouge`},groupNames:{"documents-communication":`Documents et communication`,"people-expression":`Personnes et expression`,"places-nature":`Lieux et nature`,"media-activities":`Médias et activités`,"business-data":`Entreprise et données`,"objects-symbols":`Objets et symboles`,more:`Autres catégories`},categoryNames:{system:`Système`,communication:`Communication`,document:`Documents`,media:`Médias`,design:`Design`,development:`Développement`,devices:`Appareils`,computers:`Ordinateurs`,database:`Bases de données`,charts:`Graphiques`,arrows:`Flèches`,shapes:`Formes`,symbols:`Symboles`,text:`Texte`,letters:`Lettres`,numbers:`Nombres`,math:`Mathématiques`,logic:`Logique`,"version-control":`Gestion de versions`,extensions:`Extensions`,"e-commerce":`Commerce en ligne`,currencies:`Devises`,buildings:`Bâtiments`,map:`Cartes`,vehicles:`Véhicules`,nature:`Nature`,animals:`Animaux`,weather:`Météo`,food:`Alimentation`,health:`Santé`,sport:`Sports`,games:`Jeux`,photography:`Photographie`,mood:`Humeur`,gestures:`Gestes`,gender:`Genre`,badges:`Insignes`,electrical:`Électricité`,laundry:`Linge`,zodiac:`Zodiaque`,brand:`Marques`,"smileys-emotion":`Visages et émotions`,"people-body":`Personnes et corps`,"animals-nature":`Animaux et nature`,"food-drink":`Aliments et boissons`,"travel-places":`Voyages et lieux`,activities:`Activités`,objects:`Objets`,flags:`Drapeaux`}},"de-DE":{allCategories:`Alle Kategorien`,loadError:`Symbole konnten nicht geladen werden.`,saveError:`Symbol konnte nicht gespeichert werden.`,uploadFailed:`Das Icon-Bild konnte nicht hochgeladen werden. Versuche es erneut.`,uploadTooLarge:`Das Icon-Bild darf höchstens 5 MiB groß sein.`,uploadUnsupportedType:`Nur PNG-, JPEG-, WebP- oder SVG-Bilder können hochgeladen werden.`,retry:`Erneut versuchen`,uploadHint:`PNG, JPG, WebP, SVG`,colorNames:{gray:`Grau`,brown:`Braun`,orange:`Orange`,yellow:`Gelb`,green:`Grün`,blue:`Blau`,purple:`Lila`,pink:`Rosa`,red:`Rot`},groupNames:{"documents-communication":`Dokumente und Kommunikation`,"people-expression":`Menschen und Ausdruck`,"places-nature":`Orte und Natur`,"media-activities":`Medien und Aktivitäten`,"business-data":`Wirtschaft und Daten`,"objects-symbols":`Objekte und Symbole`,more:`Weitere Kategorien`},categoryNames:{system:`System`,communication:`Kommunikation`,document:`Dokumente`,media:`Medien`,design:`Design`,development:`Entwicklung`,devices:`Geräte`,computers:`Computer`,database:`Datenbanken`,charts:`Diagramme`,arrows:`Pfeile`,shapes:`Formen`,symbols:`Symbole`,text:`Text`,letters:`Buchstaben`,numbers:`Zahlen`,math:`Mathematik`,logic:`Logik`,"version-control":`Versionsverwaltung`,extensions:`Erweiterungen`,"e-commerce":`Onlinehandel`,currencies:`Währungen`,buildings:`Gebäude`,map:`Karten`,vehicles:`Fahrzeuge`,nature:`Natur`,animals:`Tiere`,weather:`Wetter`,food:`Essen`,health:`Gesundheit`,sport:`Sport`,games:`Spiele`,photography:`Fotografie`,mood:`Stimmung`,gestures:`Gesten`,gender:`Geschlecht`,badges:`Abzeichen`,electrical:`Elektrik`,laundry:`Wäsche`,zodiac:`Tierkreis`,brand:`Marken`,"smileys-emotion":`Smileys und Emotionen`,"people-body":`Menschen und Körper`,"animals-nature":`Tiere und Natur`,"food-drink":`Essen und Trinken`,"travel-places":`Reisen und Orte`,activities:`Aktivitäten`,objects:`Objekte`,flags:`Flaggen`}},"pt-BR":{allCategories:`Todas as categorias`,loadError:`Não foi possível carregar os ícones.`,saveError:`Não foi possível salvar o ícone.`,uploadFailed:`Não foi possível enviar a imagem do ícone. Tente novamente.`,uploadTooLarge:`A imagem do ícone deve ter no máximo 5 MiB.`,uploadUnsupportedType:`Só é possível enviar imagens PNG, JPEG, WebP ou SVG.`,retry:`Tentar novamente`,uploadHint:`PNG, JPG, WebP, SVG`,colorNames:{gray:`Cinza`,brown:`Marrom`,orange:`Laranja`,yellow:`Amarelo`,green:`Verde`,blue:`Azul`,purple:`Roxo`,pink:`Rosa`,red:`Vermelho`},groupNames:{"documents-communication":`Documentos e comunicação`,"people-expression":`Pessoas e expressão`,"places-nature":`Lugares e natureza`,"media-activities":`Mídia e atividades`,"business-data":`Negócios e dados`,"objects-symbols":`Objetos e símbolos`,more:`Mais categorias`},categoryNames:{system:`Sistema`,communication:`Comunicação`,document:`Documentos`,media:`Mídia`,design:`Design`,development:`Desenvolvimento`,devices:`Dispositivos`,computers:`Computadores`,database:`Bancos de dados`,charts:`Gráficos`,arrows:`Setas`,shapes:`Formas`,symbols:`Símbolos`,text:`Texto`,letters:`Letras`,numbers:`Números`,math:`Matemática`,logic:`Lógica`,"version-control":`Controle de versões`,extensions:`Extensões`,"e-commerce":`Comércio eletrônico`,currencies:`Moedas`,buildings:`Edifícios`,map:`Mapas`,vehicles:`Veículos`,nature:`Natureza`,animals:`Animais`,weather:`Clima`,food:`Comida`,health:`Saúde`,sport:`Esportes`,games:`Jogos`,photography:`Fotografia`,mood:`Humor`,gestures:`Gestos`,gender:`Gênero`,badges:`Emblemas`,electrical:`Eletricidade`,laundry:`Lavanderia`,zodiac:`Zodíaco`,brand:`Marcas`,"smileys-emotion":`Rostos e emoções`,"people-body":`Pessoas e corpo`,"animals-nature":`Animais e natureza`,"food-drink":`Comidas e bebidas`,"travel-places":`Viagens e lugares`,activities:`Atividades`,objects:`Objetos`,flags:`Bandeiras`}},"zh-CN":{allCategories:`所有分类`,loadError:`无法加载图标。`,saveError:`无法保存图标。`,uploadFailed:`无法上传图标图片,请重试。`,uploadTooLarge:`图标图片不能超过 5 MiB。`,uploadUnsupportedType:`只能上传 PNG、JPEG、WebP 或 SVG 图片。`,retry:`重试`,uploadHint:`PNG、JPG、WebP、SVG`,colorNames:{gray:`灰色`,brown:`棕色`,orange:`橙色`,yellow:`黄色`,green:`绿色`,blue:`蓝色`,purple:`紫色`,pink:`粉色`,red:`红色`},groupNames:{"documents-communication":`文档与交流`,"people-expression":`人物与表达`,"places-nature":`地点与自然`,"media-activities":`媒体与活动`,"business-data":`商业与数据`,"objects-symbols":`物品与符号`,more:`更多分类`},categoryNames:{system:`系统`,communication:`通信`,document:`文档`,media:`媒体`,design:`设计`,development:`开发`,devices:`设备`,computers:`计算机`,database:`数据库`,charts:`图表`,arrows:`箭头`,shapes:`形状`,symbols:`符号`,text:`文本`,letters:`字母`,numbers:`数字`,math:`数学`,logic:`逻辑`,"version-control":`版本控制`,extensions:`扩展`,"e-commerce":`电子商务`,currencies:`货币`,buildings:`建筑`,map:`地图`,vehicles:`车辆`,nature:`自然`,animals:`动物`,weather:`天气`,food:`食物`,health:`健康`,sport:`运动`,games:`游戏`,photography:`摄影`,mood:`心情`,gestures:`手势`,gender:`性别`,badges:`徽章`,electrical:`电气`,laundry:`洗衣`,zodiac:`星座`,brand:`品牌`,"smileys-emotion":`笑脸与情感`,"people-body":`人物与身体`,"animals-nature":`动物与自然`,"food-drink":`食物与饮料`,"travel-places":`旅行与地点`,activities:`活动`,objects:`物品`,flags:`旗帜`}},"zh-TW":{allCategories:`所有分類`,loadError:`無法載入圖示。`,saveError:`無法儲存圖示。`,uploadFailed:`無法上傳圖示圖片,請再試一次。`,uploadTooLarge:`圖示圖片不可超過 5 MiB。`,uploadUnsupportedType:`只能上傳 PNG、JPEG、WebP 或 SVG 圖片。`,retry:`重試`,uploadHint:`PNG、JPG、WebP、SVG`,colorNames:{gray:`灰色`,brown:`棕色`,orange:`橘色`,yellow:`黃色`,green:`綠色`,blue:`藍色`,purple:`紫色`,pink:`粉紅色`,red:`紅色`},groupNames:{"documents-communication":`文件與交流`,"people-expression":`人物與表達`,"places-nature":`地點與自然`,"media-activities":`媒體與活動`,"business-data":`商業與資料`,"objects-symbols":`物品與符號`,more:`更多分類`},categoryNames:{system:`系統`,communication:`通訊`,document:`文件`,media:`媒體`,design:`設計`,development:`開發`,devices:`裝置`,computers:`電腦`,database:`資料庫`,charts:`圖表`,arrows:`箭頭`,shapes:`形狀`,symbols:`符號`,text:`文字`,letters:`字母`,numbers:`數字`,math:`數學`,logic:`邏輯`,"version-control":`版本控制`,extensions:`擴充功能`,"e-commerce":`電子商務`,currencies:`貨幣`,buildings:`建築`,map:`地圖`,vehicles:`車輛`,nature:`自然`,animals:`動物`,weather:`天氣`,food:`食物`,health:`健康`,sport:`運動`,games:`遊戲`,photography:`攝影`,mood:`心情`,gestures:`手勢`,gender:`性別`,badges:`徽章`,electrical:`電氣`,laundry:`洗衣`,zodiac:`星座`,brand:`品牌`,"smileys-emotion":`笑臉與情感`,"people-body":`人物與身體`,"animals-nature":`動物與自然`,"food-drink":`食物與飲料`,"travel-places":`旅行與地點`,activities:`活動`,objects:`物品`,flags:`旗幟`}},"ja-JP":{allCategories:`すべてのカテゴリー`,loadError:`アイコンを読み込めませんでした。`,saveError:`アイコンを保存できませんでした。`,uploadFailed:`アイコン画像をアップロードできませんでした。再試行してください。`,uploadTooLarge:`アイコン画像は 5 MiB 以下にしてください。`,uploadUnsupportedType:`PNG、JPEG、WebP、SVG 形式の画像のみアップロードできます。`,retry:`再試行`,uploadHint:`PNG、JPG、WebP、SVG`,colorNames:{gray:`グレー`,brown:`ブラウン`,orange:`オレンジ`,yellow:`イエロー`,green:`グリーン`,blue:`ブルー`,purple:`パープル`,pink:`ピンク`,red:`レッド`},groupNames:{"documents-communication":`文書とコミュニケーション`,"people-expression":`人物と表現`,"places-nature":`場所と自然`,"media-activities":`メディアとアクティビティ`,"business-data":`ビジネスとデータ`,"objects-symbols":`物と記号`,more:`その他のカテゴリー`},categoryNames:{system:`システム`,communication:`コミュニケーション`,document:`ドキュメント`,media:`メディア`,design:`デザイン`,development:`開発`,devices:`デバイス`,computers:`コンピューター`,database:`データベース`,charts:`グラフ`,arrows:`矢印`,shapes:`図形`,symbols:`記号`,text:`テキスト`,letters:`文字`,numbers:`数字`,math:`数学`,logic:`論理`,"version-control":`バージョン管理`,extensions:`拡張機能`,"e-commerce":`電子商取引`,currencies:`通貨`,buildings:`建物`,map:`地図`,vehicles:`乗り物`,nature:`自然`,animals:`動物`,weather:`天気`,food:`食べ物`,health:`健康`,sport:`スポーツ`,games:`ゲーム`,photography:`写真`,mood:`気分`,gestures:`ジェスチャー`,gender:`性別`,badges:`バッジ`,electrical:`電気`,laundry:`洗濯`,zodiac:`星座`,brand:`ブランド`,"smileys-emotion":`顔と感情`,"people-body":`人と身体`,"animals-nature":`動物と自然`,"food-drink":`食べ物と飲み物`,"travel-places":`旅行と場所`,activities:`アクティビティ`,objects:`物`,flags:`旗`}},"ko-KR":{allCategories:`모든 카테고리`,loadError:`아이콘을 불러오지 못했습니다.`,saveError:`아이콘을 저장하지 못했습니다.`,uploadFailed:`아이콘 이미지를 업로드하지 못했습니다. 다시 시도하세요.`,uploadTooLarge:`아이콘 이미지는 5 MiB 이하여야 합니다.`,uploadUnsupportedType:`PNG, JPEG, WebP 또는 SVG 이미지만 업로드할 수 있습니다.`,retry:`다시 시도`,uploadHint:`PNG, JPG, WebP, SVG`,colorNames:{gray:`회색`,brown:`갈색`,orange:`주황색`,yellow:`노란색`,green:`초록색`,blue:`파란색`,purple:`보라색`,pink:`분홍색`,red:`빨간색`},groupNames:{"documents-communication":`문서와 소통`,"people-expression":`사람과 표현`,"places-nature":`장소와 자연`,"media-activities":`미디어와 활동`,"business-data":`비즈니스와 데이터`,"objects-symbols":`사물과 기호`,more:`더 많은 카테고리`},categoryNames:{system:`시스템`,communication:`커뮤니케이션`,document:`문서`,media:`미디어`,design:`디자인`,development:`개발`,devices:`기기`,computers:`컴퓨터`,database:`데이터베이스`,charts:`차트`,arrows:`화살표`,shapes:`도형`,symbols:`기호`,text:`텍스트`,letters:`문자`,numbers:`숫자`,math:`수학`,logic:`논리`,"version-control":`버전 관리`,extensions:`확장 기능`,"e-commerce":`전자 상거래`,currencies:`통화`,buildings:`건물`,map:`지도`,vehicles:`차량`,nature:`자연`,animals:`동물`,weather:`날씨`,food:`음식`,health:`건강`,sport:`스포츠`,games:`게임`,photography:`사진`,mood:`기분`,gestures:`몸짓`,gender:`성별`,badges:`배지`,electrical:`전기`,laundry:`세탁`,zodiac:`별자리`,brand:`브랜드`,"smileys-emotion":`얼굴과 감정`,"people-body":`사람과 신체`,"animals-nature":`동물과 자연`,"food-drink":`음식과 음료`,"travel-places":`여행과 장소`,activities:`활동`,objects:`물건`,flags:`깃발`}},"hi-IN":{allCategories:`सभी श्रेणियाँ`,loadError:`आइकन लोड नहीं हो सके।`,saveError:`आइकन सहेजा नहीं जा सका।`,uploadFailed:`आइकन चित्र अपलोड नहीं हो सका। फिर से प्रयास करें।`,uploadTooLarge:`आइकन छवि 5 MiB या उससे छोटी होनी चाहिए।`,uploadUnsupportedType:`केवल PNG, JPEG, WebP या SVG चित्र अपलोड किए जा सकते हैं।`,retry:`फिर से प्रयास करें`,uploadHint:`PNG, JPG, WebP, SVG`,colorNames:{gray:`धूसर`,brown:`भूरा`,orange:`नारंगी`,yellow:`पीला`,green:`हरा`,blue:`नीला`,purple:`बैंगनी`,pink:`गुलाबी`,red:`लाल`},groupNames:{"documents-communication":`दस्तावेज़ और संचार`,"people-expression":`लोग और अभिव्यक्ति`,"places-nature":`स्थान और प्रकृति`,"media-activities":`मीडिया और गतिविधियाँ`,"business-data":`व्यवसाय और डेटा`,"objects-symbols":`वस्तुएँ और प्रतीक`,more:`अधिक श्रेणियाँ`},categoryNames:{system:`सिस्टम`,communication:`संचार`,document:`दस्तावेज़`,media:`मीडिया`,design:`डिज़ाइन`,development:`विकास`,devices:`उपकरण`,computers:`कंप्यूटर`,database:`डेटाबेस`,charts:`चार्ट`,arrows:`तीर`,shapes:`आकृतियाँ`,symbols:`प्रतीक`,text:`पाठ`,letters:`अक्षर`,numbers:`संख्याएँ`,math:`गणित`,logic:`तर्क`,"version-control":`संस्करण नियंत्रण`,extensions:`एक्सटेंशन`,"e-commerce":`ई-कॉमर्स`,currencies:`मुद्राएँ`,buildings:`इमारतें`,map:`मानचित्र`,vehicles:`वाहन`,nature:`प्रकृति`,animals:`जानवर`,weather:`मौसम`,food:`भोजन`,health:`स्वास्थ्य`,sport:`खेलकूद`,games:`गेम`,photography:`फ़ोटोग्राफ़ी`,mood:`मनोदशा`,gestures:`हावभाव`,gender:`लिंग`,badges:`बैज`,electrical:`विद्युत`,laundry:`कपड़ों की धुलाई`,zodiac:`राशियाँ`,brand:`ब्रांड`,"smileys-emotion":`चेहरे और भावनाएँ`,"people-body":`लोग और शरीर`,"animals-nature":`जानवर और प्रकृति`,"food-drink":`भोजन और पेय`,"travel-places":`यात्रा और स्थान`,activities:`गतिविधियाँ`,objects:`वस्तुएँ`,flags:`झंडे`}},"ar-SA":{allCategories:`جميع الفئات`,loadError:`تعذر تحميل الأيقونات.`,saveError:`تعذر حفظ الأيقونة.`,uploadFailed:`تعذر تحميل صورة الأيقونة. حاول مرة أخرى.`,uploadTooLarge:`يجب ألا يتجاوز حجم صورة الأيقونة 5 MiB.`,uploadUnsupportedType:`يمكن تحميل صور PNG أو JPEG أو WebP أو SVG فقط.`,retry:`إعادة المحاولة`,uploadHint:`PNG, JPG, WebP, SVG`,colorNames:{gray:`رمادي`,brown:`بني`,orange:`برتقالي`,yellow:`أصفر`,green:`أخضر`,blue:`أزرق`,purple:`بنفسجي`,pink:`وردي`,red:`أحمر`},groupNames:{"documents-communication":`المستندات والتواصل`,"people-expression":`الأشخاص والتعبير`,"places-nature":`الأماكن والطبيعة`,"media-activities":`الوسائط والأنشطة`,"business-data":`الأعمال والبيانات`,"objects-symbols":`الأشياء والرموز`,more:`المزيد من الفئات`},categoryNames:{system:`النظام`,communication:`التواصل`,document:`المستندات`,media:`الوسائط`,design:`التصميم`,development:`التطوير`,devices:`الأجهزة`,computers:`الحواسيب`,database:`قواعد البيانات`,charts:`الرسوم البيانية`,arrows:`الأسهم`,shapes:`الأشكال`,symbols:`الرموز`,text:`النص`,letters:`الحروف`,numbers:`الأرقام`,math:`الرياضيات`,logic:`المنطق`,"version-control":`إدارة الإصدارات`,extensions:`الإضافات`,"e-commerce":`التجارة الإلكترونية`,currencies:`العملات`,buildings:`المباني`,map:`الخرائط`,vehicles:`المركبات`,nature:`الطبيعة`,animals:`الحيوانات`,weather:`الطقس`,food:`الطعام`,health:`الصحة`,sport:`الرياضة`,games:`الألعاب`,photography:`التصوير`,mood:`المزاج`,gestures:`الإيماءات`,gender:`الجنس`,badges:`الشارات`,electrical:`الكهرباء`,laundry:`الغسيل`,zodiac:`الأبراج`,brand:`العلامات التجارية`,"smileys-emotion":`الوجوه والمشاعر`,"people-body":`الأشخاص والجسم`,"animals-nature":`الحيوانات والطبيعة`,"food-drink":`الطعام والشراب`,"travel-places":`السفر والأماكن`,activities:`الأنشطة`,objects:`الأشياء`,flags:`الأعلام`}}}[`en-US`],agentChat:{settingsModel:{chatgptAddAccount:`Add another account`,chatgptConnecting:`Connecting…`,chatgptContinue:`Continue with ChatGPT`,chatgptDescription:`Use eligible OpenAI models through your ChatGPT plan.`,chatgptDisconnect:`Disconnect`,chatgptDisconnectDescription:`{{account}} will be signed out of this app and the agent will stop using your ChatGPT plan. You can sign in again anytime.`,chatgptDisconnectTitle:`Disconnect ChatGPT?`,chatgptDisconnecting:`Disconnecting…`,chatgptLocalOnly:`Open-source apps are self-serve when run locally with a loopback callback; no partner application is needed. Hosted apps on *.agent-native.com need operator approval and a hosted callback.`,chatgptPersonalScopeOnly:`Use ChatGPT plan access from a personal account. In local development, set access.autoCreateDefaultOrg to false before signing in.`,chatgptScopeUnresolved:`The app couldn't confirm your account scope. Finish local setup, then reload settings.`,chatgptManageAccess:`Manage in ChatGPT`,chatgptNoDirectUse:`Reconnect and allow direct model access to use this ChatGPT account.`,chatgptReconnect:`Reconnect`,chatgptRemoteRevocationUnconfirmed:`Disconnected here. Access may remain active in ChatGPT.`,chatgptSelectAccount:`ChatGPT account`,chatgptTitle:`ChatGPT plan access`,chatgptUsageLimit:`Your ChatGPT plan usage limit has been reached.`},composer:{chatgptManageUsage:`Manage usage`,chatgptPlanUsing:`Using ChatGPT plan`},error:{chatgptPlanUsageLimit:`Your ChatGPT plan usage limit has been reached.`,chatgptPlanUsageUnavailable:`OpenAI couldn’t check this ChatGPT plan’s usage limit. Check ChatGPT usage or try another model.`}},consentBanner:{"en-US":{label:`Cookie preferences`,message:`We use cookies to measure how this site is used and which ads bring visitors here.`,privacyPolicy:`Privacy policy`,necessary:`Strictly necessary`,performance:`Analytics`,targeting:`Advertising and attribution`,rejectAll:`Reject all`,acceptAll:`Accept all`,save:`Save choices`,manage:`Manage settings`,cookieSettings:`Cookie settings`},"es-ES":{label:`Preferencias de cookies`,message:`Usamos cookies para medir cómo se usa este sitio y qué anuncios traen visitantes.`,privacyPolicy:`Política de privacidad`,necessary:`Estrictamente necesarias`,performance:`Analítica`,targeting:`Publicidad y atribución`,rejectAll:`Rechazar todas`,acceptAll:`Aceptar todas`,save:`Guardar selección`,manage:`Gestionar ajustes`,cookieSettings:`Configuración de cookies`},"fr-FR":{label:`Préférences de cookies`,message:`Nous utilisons des cookies pour mesurer l’utilisation de ce site et savoir quelles publicités amènent des visiteurs.`,privacyPolicy:`Politique de confidentialité`,necessary:`Strictement nécessaires`,performance:`Mesure d’audience`,targeting:`Publicité et attribution`,rejectAll:`Tout refuser`,acceptAll:`Tout accepter`,save:`Enregistrer mes choix`,manage:`Gérer les paramètres`,cookieSettings:`Paramètres des cookies`},"de-DE":{label:`Cookie-Einstellungen`,message:`Wir verwenden Cookies, um zu messen, wie diese Website genutzt wird und welche Anzeigen Besucher hierher bringen.`,privacyPolicy:`Datenschutzerklärung`,necessary:`Unbedingt erforderlich`,performance:`Analyse`,targeting:`Werbung und Attribution`,rejectAll:`Alle ablehnen`,acceptAll:`Alle akzeptieren`,save:`Auswahl speichern`,manage:`Einstellungen verwalten`,cookieSettings:`Cookie-Einstellungen`},"pt-BR":{label:`Preferências de cookies`,message:`Usamos cookies para medir como este site é usado e quais anúncios trazem visitantes.`,privacyPolicy:`Política de privacidade`,necessary:`Estritamente necessários`,performance:`Análise`,targeting:`Publicidade e atribuição`,rejectAll:`Rejeitar todos`,acceptAll:`Aceitar todos`,save:`Salvar escolhas`,manage:`Gerenciar configurações`,cookieSettings:`Configurações de cookies`},"ja-JP":{label:`Cookie の設定`,message:`このサイトの利用状況と、どの広告から訪問者が来ているかを測定するために Cookie を使用しています。`,privacyPolicy:`プライバシーポリシー`,necessary:`必須`,performance:`分析`,targeting:`広告とアトリビューション`,rejectAll:`すべて拒否`,acceptAll:`すべて許可`,save:`選択を保存`,manage:`設定を管理`,cookieSettings:`Cookie の設定`},"ko-KR":{label:`쿠키 환경설정`,message:`이 사이트의 이용 방식과 방문자를 데려오는 광고를 측정하기 위해 쿠키를 사용합니다.`,privacyPolicy:`개인정보 처리방침`,necessary:`필수`,performance:`분석`,targeting:`광고 및 어트리뷰션`,rejectAll:`모두 거부`,acceptAll:`모두 허용`,save:`선택 저장`,manage:`설정 관리`,cookieSettings:`쿠키 설정`},"zh-CN":{label:`Cookie 偏好设置`,message:`我们使用 Cookie 来衡量本网站的使用情况,以及哪些广告带来了访客。`,privacyPolicy:`隐私政策`,necessary:`绝对必要`,performance:`分析`,targeting:`广告与归因`,rejectAll:`全部拒绝`,acceptAll:`全部接受`,save:`保存选择`,manage:`管理设置`,cookieSettings:`Cookie 设置`},"zh-TW":{label:`Cookie 偏好設定`,message:`我們使用 Cookie 來衡量本網站的使用情況,以及哪些廣告帶來了訪客。`,privacyPolicy:`隱私權政策`,necessary:`絕對必要`,performance:`分析`,targeting:`廣告與歸因`,rejectAll:`全部拒絕`,acceptAll:`全部接受`,save:`儲存選擇`,manage:`管理設定`,cookieSettings:`Cookie 設定`},"hi-IN":{label:`कुकी प्राथमिकताएँ`,message:`हम यह मापने के लिए कुकी का उपयोग करते हैं कि यह साइट कैसे उपयोग होती है और कौन-से विज्ञापन विज़िटर लाते हैं।`,privacyPolicy:`गोपनीयता नीति`,necessary:`पूरी तरह आवश्यक`,performance:`एनालिटिक्स`,targeting:`विज्ञापन और एट्रिब्यूशन`,rejectAll:`सभी अस्वीकार करें`,acceptAll:`सभी स्वीकार करें`,save:`विकल्प सहेजें`,manage:`सेटिंग प्रबंधित करें`,cookieSettings:`कुकी सेटिंग`},"ar-SA":{label:`تفضيلات ملفات تعريف الارتباط`,message:`نستخدم ملفات تعريف الارتباط لقياس كيفية استخدام هذا الموقع والإعلانات التي تجلب الزوار إليه.`,privacyPolicy:`سياسة الخصوصية`,necessary:`ضرورية للغاية`,performance:`التحليلات`,targeting:`الإعلانات والإسناد`,rejectAll:`رفض الكل`,acceptAll:`قبول الكل`,save:`حفظ الاختيارات`,manage:`إدارة الإعدادات`,cookieSettings:`إعدادات ملفات تعريف الارتباط`}}[`en-US`],environmentBadge:{betaLabel:`beta`,betaTitle:`You're on Agent-Native {{label}}`,productionTitle:`You're on Agent-Native Production`,activeDevelopment:`Under active development`,feedbackPrompt:`This template is under active development. We'd love your feedback as we build it.`,continuePrompt:`Choose where you want to continue.`,switchToProduction:`Switch to production`,goToBeta:`Go to beta`,hideBadge:`Hide badge`,openSwitcher:`Open {{title}} switcher`,localDevelopment:`Local development environment`,development:`Development environment`},workspaceFile:{download:`Download`},composer:{sendMessage:`Send message`,queueMessage:`Queue message`,connectBuilder:`Use Builder.io`},home:{settingsTitle:`Settings`,settingsDescription:`Language and agent preferences`,title:`Your app is running`,intro:`Start building by editing`,actionCardTitle:`Action-backed data`,loadingAction:`Loading action result...`,docsTitle:`Documentation`,docsDescription:`Learn the framework`,themeTitle:`Theme`,themeDescription:`Toggle dark / light`},common:{cancel:`Cancel`,confirmDisconnect:`Confirm disconnect`,disconnect:`Disconnect`,disconnecting:`Disconnecting…`},routeTitles:{agentObservability:`Agent observability navigation`},onboarding:{back:`Back`,chooseRole:`Choose your role`,customizeRole:`Let’s customize this for you.`,roleQuestion:`What best describes your role?`,roleHelperText:`This helps us personalize your experience`,roleProduct:`Product Manager`,roleDesign:`Designer`,roleDeveloper:`Developer`,roleMarketing:`Marketing`,roleSales:`Sales`,roleOps:`Ops`,roleIndividual:`Individual`,roleOther:`Other`,roleOtherInputLabel:`Describe your role`,skipForNow:`Skip for now`,saveRoleError:`Could not save your role.`,builderReadyWithCodeChanges:`AI credits and cloud code changes are ready to use.`,builderReadyCreditsOnly:`AI credits are ready to use. Cloud code edits require a Builder project in Background Agent settings.`,openBackgroundAgentSettings:`Open Background Agent settings`,fileStorage:{title:`Connect storage to upload files`,description:`Use Builder.io's managed storage (free) or configure your own S3-compatible object storage.`,reconnectBuilder:`Sign in to Builder.io again`,custom:`Use custom keys`,customDescription:`Configure an S3-compatible bucket with a stable public URL.`}},settings:{title:`Settings`,pageTitle:`Settings`,description:`Language and workspace preferences for this app.`,languageTitle:`Language`,languageDescription:`Choose the interface language. This preference is saved for your account.`,languageLabel:`Interface language`,agentTitle:`Manage agent`,agentDescription:`Manage the agent's model, API keys, automations, voice, and other controls.`,openAgentSettings:`Manage agent`,workspaceTitle:`Workspace`,workspaceDescription:`Manage team access and shared workspace resources.`,openTeamSettings:`Open team settings`,openResourceSettings:`Open resource settings`,backHome:`Back to home`,builderConnection:{manage:`Manage Builder.io connection`},mcpConnectionsTitle:`Agent integrations`,mcpConnectionsDescription:`Connect tools and services so the agent can use them.`,openMcpConnections:`Open integrations`,mcpTitle:`MCP`,mcpDescription:`Connect this app to Claude, ChatGPT, Cursor, Codex, or another MCP host.`,mcpUrlLabel:`MCP server URL`,mcpUrlHint:`Copy this URL into the AI host you want to use. The canonical path is /mcp.`,mcpOpenDocs:`Open MCP connection docs`,a2aAgentCard:`A2A agent card`,a2aOpenDocs:`Open A2A documentation`,mcpClientSetup:`Connect an AI host`,mcpClientSetupDescription:`Choose a host for step-by-step setup, or paste the URL into any MCP-compatible client.`,mcpChooseAssistant:`Choose your AI assistant`,mcpCommand:`Command`,mcpConfig:`MCP config`,mcpCopy:`Copy`,mcpCopied:`Copied`,mcpStaticTokenDescription:`Open the full connect page to create a token for clients that cannot complete OAuth.`,mcpOpenConnectPage:`Open full connect page`,mcpIdentityError:`Couldn't load this app's connection details.`,mcpRetry:`Try again`,profileTitle:`Account`,profileDescription:`Your name, profile photo, and signed-in identity.`,profileLoading:`Loading...`,profileSignedOut:`Signed out`,profilePhotoUpdated:`Photo updated`,profilePhotoError:`Could not update photo`,profileUploading:`Uploading...`,profileChangePhoto:`Change photo`,profileNameLabel:`Name`,profileNameEdit:`Edit name`,profileNamePlaceholder:`Your name`,profileNameDescription:`This name is used when referring to you across Agent-Native apps.`,profileSave:`Save changes`,profileSaving:`Saving...`,profileSaved:`Profile updated`,profileSaveError:`Could not update profile`,emailTitle:`Email`,emailChange:`Change email`,emailChanging:`Sending...`,emailChangeSent:`Check your email for instructions to confirm this change.`,emailChangeError:`Could not send confirmation.`,emailNewLabel:`New email`,emailNewPlaceholder:`Enter new email`,passwordTitle:`Password`,passwordDescription:`Add a password for an alternative way to sign in to your account.`,passwordStatusLoading:`Checking password settings...`,passwordAdd:`Add password`,passwordChange:`Change password`,passwordCurrentLabel:`Current password`,passwordNewLabel:`New password`,passwordConfirmLabel:`Confirm new password`,passwordPlaceholder:`Enter password`,passwordMinLength:`Choose a password with at least 12 characters.`,passwordMismatch:`Passwords do not match`,passwordSave:`Save password`,passwordSaving:`Saving...`,passwordSaved:`Password updated`,passwordSaveError:`Could not update password`,twoFactorTitle:`Two-factor authentication`,twoFactorDescription:`Use an authenticator app to add a second sign-in step to your account.`,twoFactorManage:`Manage`,twoFactorEnable:`Set up two-factor`,twoFactorEnabled:`Two-factor authentication is enabled.`,twoFactorSetupTitle:`Scan this QR code with your authenticator app, then enter the code it gives you.`,twoFactorQrLabel:`Two-factor setup QR code`,twoFactorCodeLabel:`Authenticator code`,twoFactorVerify:`Verify and enable`,twoFactorSaved:`Two-factor authentication enabled`,twoFactorBackupCodes:`Save these backup codes somewhere safe. Each one can be used once if you lose access to your authenticator.`,twoFactorDisable:`Turn off two-factor`,twoFactorLoadError:`Could not load two-factor settings`,twoFactorSetupError:`Could not update two-factor settings`,twoFactorDisableError:`Could not turn off two-factor authentication`,twoFactorCodeError:`Enter the six-digit code from your authenticator app.`,privacyTitle:`Privacy & data`,privacyDescription:`Request a copy of your data or ask for your personal data to be deleted.`,privacyManage:`Manage`,privacyRightsTitle:`Your data rights`,privacyRightsDescription:`Requests are recorded for review by a workspace administrator, who will verify your identity and follow up.`,privacyRequestCopy:`Request a copy`,privacyRequestDeletion:`Request deletion`,privacyRequesting:`Recording request...`,privacyRequestRecorded:`Request recorded. An administrator will follow up.`,privacyRequestRecordedShort:`Request recorded`,privacyRequestError:`Could not record your request. Please try again.`,privacyDeletionTitle:`Request deletion of your data?`,privacyDeletionDescription:`This records a deletion request; it does not delete data immediately. An administrator will verify your identity and complete the request under the deployment's retention and legal obligations.`,privacyDocsLink:`Read privacy and data rights`,profileMenuItem:`Profile`,manageAgentMenuItem:`Manage agent`,timezoneLabel:`Timezone`,timezoneSystem:`Follow this browser ({{zone}})`,timezoneHint:`Used for timestamps and scheduled automations.`},secrets:{scopeLabel:`Scope`,scopePersonal:`Personal`,scopeWorkspace:`Workspace`,testStoredValue:`Test`,candidateValueWorking:`New value works`,storedValueWorking:`Working`,invalid:`Invalid`,testFailed:`Test failed`,scopePersonalDescription:`Only your own signed-in sessions use this key. Integration, webhook, scheduled job, automation, and agent-to-agent runs sign in as their owner rather than as you, so they cannot read it.`,scopeWorkspaceDescription:`Everyone in this workspace uses this key, including integration, webhook, scheduled job, automation, and agent-to-agent runs.`,sourceVault:`Vault`,sourceWorkspace:`Workspace`,sourceEnvironment:`Environment`,statusUnavailable:`Unavailable`,managedInVault:`Managed in the workspace Vault. Every app in this workspace uses this value.`,openVault:`Open Vault`,managedByOwner:`Managed in {{owner}}`,removeCredentials:`Remove credentials`,confirmRemove:`Remove`,sharedKeysKept:`Some shared keys were not removed. Only workspace admins can remove them.`,setForWorkspace:`Set for everyone in this workspace.`,fromEnvironment:`Provided by the deployment environment.`,usePersonalKey:`Use a personal key instead`,overridesVault:`This personal key overrides the workspace Vault value. Remove it to use the Vault key.`,overridesWorkspace:`This personal key overrides the workspace value. Remove it to use the shared key.`,newKey:`New`,searchKeys:`Search keys...`,noKeysFound:`No keys found.`,chooseKey:`Choose a key`,required:`Required`,customKey:`Custom key`,customKeyHint:`Add any key by name`,addCustomKeyNamed:`Add “{{name}}” as a custom key`,emptyTitle:`No keys yet.`,emptyHint:`Add a key to use your own accounts.`,emptyMore:`and {{count}} more under New, or add any custom key`},agentResources:{openDocs:`Open {{section}} documentation`,backToResources:`Back to agent resources`,exportPack:`Export pack`,importPack:`Import pack`,exportPackSuccess:`Downloaded resource pack`,exportPackFailed:`Could not export pack`,importPackSuccess:`Imported {{imported}} files, skipped {{skipped}}`,importPackFailed:`Could not import pack`,importPackInvalid:`That file is not a valid resource pack`,createFile:{nameLabel:`File name`,namePlaceholder:`notes/ideas`,menuDescription:`Add a new file by name`},files:{title:`Files`,description:`Files the agent can read and write.`},instructions:{title:`Instructions`,description:`The rules, preferences, and project guidance that steer the agent.`},agents:{title:`Agents`,description:`Reusable profiles for focused sub-agents and delegated work.`},memory:{title:`Memory`,description:`Durable notes the agent can retrieve across conversations.`},skills:{title:`Skills`,description:`Specialized instructions that give the agent repeatable abilities.`},learnings:{title:`Learnings`,description:`Corrections and patterns worth carrying forward for future work.`},remoteAgents:{title:`Remote agents`,description:`Other agents this agent can call through A2A.`}},featureFlags:{title:`Feature flags`,description:`Control staged capabilities without changing a deployment.`,enableForMe:`Enable for me`,enabledForMe:`Enabled for you`,youHaveAccess:`You have access`,youDoNotHaveAccess:`You don't have access`,currentUserUnknown:`Your access couldn't be evaluated`,moreActions:`More actions for {{name}}`,disableForEveryone:`Disable for everyone`,disableForEveryoneTitle:`Disable {{name}} for everyone?`,disableForEveryoneDescription:`This immediately removes access for every targeted person and organization. You can configure a new rollout later.`,editTargeting:`Edit targeting`,editTargetingFor:`Edit targeting for {{name}}`,targetingTitle:`Edit targeting — {{name}}`,targetingDescription:`Choose who can use this capability. Changes apply immediately.`,noFlags:`No feature flags are registered for this app.`,defaultOn:`Code fallback: on`,defaultOff:`Code fallback: off`,enabledFor:`Enabled for`,modeLabel:`Availability`,emailsLabel:`People`,orgIdsLabel:`Organization IDs`,percentageLabel:`Percentage of users`,targetingRuleHelp:`A person gets access if they match any email, organization, or percentage rule.`,targetingSummary:`Currently enabled for: {{audience}}.`,saveRules:`Save changes`,cancel:`Cancel`,inherited:`No matching targets`,off:`Off`,targeted:`Targeted`,everyone:`Everyone`,everyoneAudience:`everyone`,emailCount_one:`{{count}} email`,emailCount_other:`{{count}} emails`,organizationCount_one:`{{count}} organization`,organizationCount_other:`{{count}} organizations`,percentageRollout:`{{count}}% rollout`,lastChanged:`Last changed: {{metadata}}`,mutationUnverified:`We couldn't verify the change to {{name}}. Reload flags before trying again.`,mutationUnverifiedGeneric:`We couldn't verify this feature flag change. Reload flags before trying again.`},dispatch:{nav:{chat:`Chat`,overview:`Overview`,apps:`Apps`,metrics:`Metrics`,vault:`Vault`,integrations:`Integrations`,agents:`Agents`,resources:`Resources`,messaging:`Messaging`,destinations:`Destinations`,transactionalEmail:`Transactional email`,identities:`Identities`,approvals:`Approvals`,automations:`Automations`,delivery:`Delivery`,audit:`Audit`,dreams:`Dreams`,threadDebug:`Thread Debug`,settings:`Settings`,team:`Team`,operations:`Operations`,navigation:`Navigation`,navigationDescription:`Workspace navigation links`},sidebar:{workspaceControlPlane:`Workspace control plane`,workspaceSubtitle_one:`Workspace · {{count}} app`,workspaceSubtitle_other:`Workspace · {{count}} apps`,search:`Search`,chats:`Chats`,newChat:`New chat`,newDispatchChat:`New Dispatch chat`,renameChat:`Rename chat`,renameThread:`Rename {{title}}`,chatOptions:`Chat options for {{title}}`,aboutPage:`About {{title}}`,emptyAgentText:`Create apps, manage vault keys, and route work across the workspace.`,suggestionBuildApp:`Build a workspace app for X`,suggestionRouteSlack:`Route Slack mentions to my analytics app`,suggestionGrantKey:`Grant my OpenAI key to this app`},transactionalEmail:{title:`Transactional email`,description:`Every transactional email each app in this workspace can send, with its trigger, recipients, and delivery metrics.`,retentionTitle:`Activity feed retention is short`,retentionNote:`The email provider's activity feed only retains recent messages, so an empty activity list does not mean nothing was sent.`,openRatesUnavailable:`Open rates unavailable`,sharedProviderMetricsUnavailable:`Provider metrics vary by sending app. Expand an app to see its provider data.`,catalogFanoutFailed:`Could not load app email catalogs`,retry:`Retry`,noApps:`No ready apps reported a transactional email catalog.`,catalogUnreadable:`This app's email catalog could not be read`,countsUnreadable:`Send counts could not be read`,appSendsNoEmail:`This app sends no transactional email of its own.`,emailNotFound:`Email not found`,emailNotFoundDescription:`This email is not in the app's catalog.`,sharedTitle:`Shared system email`,sharedSubtitle:`sent by every app`,email:`Email`,trigger:`Trigger`,sends:`Sends`,openRate:`Open rate`,lastSent:`Last sent`,sendLogUnread:`The send log could not be read, so the number of sends is unknown.`,failedCount:`{{count}} failed`,failuresUnknown:`failures unknown`,noProviderRecord:`The provider reported no record for this email in the window.`,noDeliveredMail:`No delivered mail yet`,neverSent:`Never sent`,lastSentUnknown:`The send log could not be read, so the last send time is unknown.`,preview:`Preview`,previewDescription:`Rendered with dummy data. Scripts are disabled in this preview.`,previewFailed:`Preview could not be rendered`,previewFrameTitle:`Preview of {{name}}`,subject:`Subject`,activityLink:`Activity log`,activityTitle:`Activity for {{name}}`,activityUnavailable:`Activity feed unavailable`,activityEmpty:`No recent activity in the provider's retention window.`,recipient:`Recipient`,sender:`Sender`,status:`Status`,opens:`Opens`,lastEvent:`Last event`,app:`App`,sendLogTitle:`Send log`,sendLogTemplate:`Template`,sendLogProvider:`Provider`,sendLogResponseStatus:`Response status`,sendLogError:`Error`,sendLogTo:`To`,sendLogFrom:`From`,sendLogContainsOperator:`contains`,sendLogExcludeOperator:`exclude`,sendLogContainsPlaceholder:`e.g. [email protected]`,sendLogExcludePlaceholder:`e.g. @builder.io`,sendLogAddressFilterLabel:`{{dimension}} {{operator}}`,sendLogRemoveAddressFilter:`Remove {{filter}}`,sendLogAllTemplates:`All templates`,sendLogSearchTemplates:`Search templates…`,sendLogNoTemplatesFound:`No templates found.`,sendLogAllStatuses:`All statuses`,sendLogSent:`Sent`,sendLogFailed:`Failed`,sendLogAllProviders:`All providers`,sendLogClearFilters:`Clear filters`,sendLogEmpty:`No sends match these filters in this date range.`,sendLogTimestamp:`Timestamp`,sendLogPrevious:`Previous`,sendLogNext:`Next`,sendLogBodyHtml:`HTML`,sendLogBodyText:`Text`,sendLogBodyFrameTitle:`Sent email body`},pages:{appsDescription:`Open workspace apps and start new app creation from Dispatch.`,appsDescriptionWithWorkspace:`Apps in the "{{workspace}}" workspace. Each app gets its own route under this workspace and shares its database, auth, and agent chat.`,appsInWorkspace:`Apps in {{workspace}}`,workspaceApps:`Workspace apps`,otherApps:`Other apps`,otherAppsDescription:`Open other apps available to you.`,availableCount:`{{count}} available`,activeCount:`{{count}} active`,pendingCount:`{{count}} pending`,hiddenCount:`{{count}} hidden`,createApp:`Create app`,templates:`Templates`,checkingTemplates:`Checking available templates`,templatesAvailable:`{{count}} available to scaffold`,hide:`Hide`,show:`Show`,hiddenApps:`Hidden apps`,hiddenAppCount:`{{count}} hidden apps`,pendingApps:`Pending apps`,pendingAppsDescription:`{{count}} pending apps are hidden by default. Show them only when you need to inspect work in progress.`,showPendingApps:`Show pending apps`,hidePendingApps:`Hide pending apps`,noActiveWorkspaceApps:`No active workspace apps yet`,noActiveWorkspaceAppsDescription:`Pending apps are hidden by default. Expand Pending apps below to inspect them.`,appMetadataOwner:`Owner`,appMetadataTeams:`Teams`,workspaceAppFallback:`Workspace App`,workspaceAppDescription:`Open a deployed app or check the status of an app being created.`,pageNotFound:`Page not found`,pageNotFoundDescription:`This route is not in the workspace app list yet.`,browseApps:`Browse apps`,newApp:`New App`,newAppDescription:`Create a workspace app from a prompt and apply the workspace vault policy.`,destinationsDescription:`Saved outbound Slack channels, Telegram chats, and thread targets.`,savedDestinations:`Saved destinations`,addDestination:`Add destination`,quickTestMessage:`Quick test message`,send:`Send`,delete:`Delete`,cancel:`Cancel`,messageSent:`Message sent`,unableToSendMessage:`Unable to send message`,destinationSaved:`Destination saved`,destinationRemoved:`Destination removed`,deleteDestinationTitle:`Delete destination?`,deleteDestinationDescription:`"{{name}}" will be removed. Any saved workflows or jobs that target this destination will start failing on the next send.`,noDestinations:`No destinations saved yet. Add your first Slack channel or Telegram chat on the right.`,dailyDigestChannel:`Daily digest channel`,optionalThreadOrTopicId:`Optional thread or topic id`,destinationNotes:`What should use this destination?`,saveDestination:`Save destination`,noWorkspaceApps:`No workspace apps yet`,noWorkspaceAppsDescription:`Create an app when a workflow needs its own focused place to live.`,appNotFound:`App not found`,building:`Building`,appBuildingPrefix:`This app is being created. It will be available at`,appBuildingSuffix:`after its branch is merged and the workspace deploy finishes.`,branch:`Branch: {{branch}}`,openBuilderBranch:`Open in Builder`,openingApp:`Opening {{name}}`,redirectingTo:`Redirecting to`,openApp:`Open app`,notDispatchOrWorkspaceApp:` a Dispatch tab or a workspace app in this workspace.`,agentsDescription:`Dispatch can delegate to the built-in app suite over A2A by default. Add extra agents here only if you want to route work to apps outside that built-in set.`,simpleAgentsDescription:`Create reusable agents in minutes, or import a setup you already made in Claude or another agent tool.`,mcpAccessUpdated:`Agent integration access updated`,selectAppForMcp:`Select at least one app, or expose all apps.`,mcpUrlCopied:`Agent integration URL copied`,mcpUrlCopyFailed:`Could not copy agent integration URL`,unifiedMcpGateway:`Unified agent integration gateway`,unifiedMcpGatewayDescription:`Connect external agents to Dispatch once, then route to granted workspace apps through`,allApps:`All apps`,selectedApps:`Selected apps`,loading:`Loading`,grantedCount:`{{count}} granted`,exposeAllAppsMcp:`Expose all apps through Dispatch`,copyUrl:`Copy URL`,metricsUnavailable:`Metrics unavailable`,unableToLoadUsage:`Unable to load usage.`,metricsDescriptionBuilder:`Workspace-wide Builder.io credit spend, chat volume, user activity, and app access.`,metricsDescriptionLlm:`Workspace-wide LLM spend, chat volume, user activity, and app access.`,appAdoption:`App adoption`,appAdoptionFor:`{{name}} adoption`,yourAppActivity:`Your app activity`,appAdoptionDefinition:`Active means a tracked action. App opens and views are not included.`,ownerUnavailable:`Owner unavailable`,dailyActiveUsers:`Daily active`,weeklyActiveUsers:`Weekly active`,trackedActions:`Tracked actions`,trackedActionBreakdown:`Tracked action breakdown`,noTrackedActions:`No tracked actions in this window.`,viewAppMetrics:`View app metrics`,llmCalls:`LLM calls`,activeUsers:`Active users`,workspaceAppsStat:`Workspace apps`,chatThreads:`Chat threads`,also:`Also`,workspaceShortcutsAria:`Workspace shortcuts`,deliveryQueue:`Delivery queue`,failedLastHour:`{{count}} failed in the last hour`,processingCount:`{{count}} processing`,queued:`Queued`,active:`Active`,done1h:`Done 1h`,failed1h:`Failed 1h`,oldestQueued:`Oldest queued: {{age}}`,queueAgeNone:`none`,queueFailureHint:`Check credentials, destinations, and recent queue errors.`,unknownPlatform:`unknown`,attemptsCount:`{{count}} attempts`,noErrorMessage:`(no error message)`,threadDebugInspectFailure:`Inspect failed run`,threadDebugFailureCode:`Failure code`,threadDebugTerminalReason:`Terminal reason`,threadDebugDispatchMode:`Dispatch mode`,threadDebugLastStage:`Last stage`,threadDebugDuration:`Duration`,threadDebugLastProgress:`Last progress`,threadDebugTitle:`Thread Debug`,threadDebugDescription:`Inspect failed agent runs, persisted threads, run events, and AI internals.`,threadDebugFailedRuns:`Failed runs`,threadDebugThreads:`Threads`,threadDebugSource:`Source`,threadDebugAllSources:`All sources`,threadDebugOwner:`Owner email`,threadDebugStatus:`Status`,threadDebugAllStatuses:`All statuses`,threadDebugErrored:`Errored`,threadDebugAborted:`Aborted`,threadDebugTruncated:`Truncated`,threadDebugRange:`Time range`,threadDebugRange24h:`Last 24 hours`,threadDebugRange7d:`Last 7 days`,threadDebugRange30d:`Last 30 days`,threadDebugFailureResults:`failed runs`,threadDebugCurrentScope:`current scope`,threadDebugPartialResults:`Partial results`,threadDebugUnavailableSources:`Unavailable sources:`,threadDebugDisconnected:`disconnected`,threadDebugUnsupported:`unsupported`,threadDebugUnavailable:`unavailable`,threadDebugRefreshFailures:`Refresh failed runs`,threadDebugNoFailures:`No failed runs found.`,threadDebugCurrentDatabase:`Current Dispatch DB`,threadDebugSearchPlaceholder:`Search threads or email`,threadDebugSearch:`Search`,threadDebugLookupPlaceholder:`Paste thread or request/run ID`,threadDebugInspect:`Inspect`,threadDebugAdminScope:`admin scope`,threadDebugOwnScope:`own scope`,threadDebugResults:`results`,threadDebugRefreshThreads:`Refresh threads`,threadDebugNoThreads:`No threads found.`,threadDebugSelectPrompt:`Select a failed run or thread to inspect.`,browserChatUnavailableTitle:`Browser chat session unavailable`,browserChatUnavailableDescription:`Reconnect from the Agent-Native browser extension.`,browserChatPlaceholder:`Ask about this page…`,browserChatAttachedPlaceholder:`Ask about {{page}}…`,browserConnectTitle:`Connect browser chat`,browserConnectDescription:`Allow the Agent-Native Chrome extension to open this Dispatch chat session. The connection uses a one-time, short-lived ticket.`,browserConnectInvalid:`This connection request is invalid. Start again from the extension.`,browserConnectConnected:`Browser chat connected. You can close this tab.`,browserConnectConnecting:`Connecting…`,browserConnectButton:`Connect`,browserConnectOpenFromExtension:`Open this page from the Agent-Native Chrome extension.`,browserConnectFailed:`The browser extension did not connect.`}},settingsShortcut:{command:`Settings`},agentPanel:{uiError:{title:`Agent panel hit a glitch`,description:`The app's still usable. Reset to reload the chat.`,reset:`Reset agent panel`,reloading:`Reloading chat…`},useBuilder:`Use Builder`,openDesktopToEditCode:`Open Desktop to edit code`,codeUnavailableDescription:`Source-code changes and CLI access are available in the Agent-Native Desktop app.`,downloadDesktop:`Download Desktop`,chatMode:`Chat mode`,chat:`Chat`,mode:`Mode`,uiMode:`UI`,cliTerminalMode:`CLI terminal mode`,cli:`CLI`,workspaceMode:`Files, agents, skills, and tasks`,workspace:`Resources`,newChat:`New chat`,newTerminal:`New terminal`,loadingTerminal:`Loading terminal...`,panelOptions:`Agent panel options`,integrations:`Integrations`,collapseSidebar:`Collapse sidebar`,widenChat:`Widen chat`,returnChatToLayout:`Return chat to layout`,expandSidebar:`Expand sidebar`,hideChats:`Hide chats`,allChats:`All chats`,settings:`Settings`,feedback:`Feedback`,exitFullscreen:`Exit fullscreen`,fullscreen:`Fullscreen`,closeTab:`Close tab`,closeOtherTabs:`Close other tabs`,closeAllTabs:`Close all tabs`,clearChat:`Clear chat`,cliRequiresDevMode:`CLI requires dev mode`,cliRequiresDevModeDescription:`Run this app locally with pnpm dev or use Builder.io to access the CLI terminal.`,toggleAgent:`Toggle agent`,openFullView:`Open full view`,askAgent:`Ask the agent`,askAgentTitle:`Ask the agent`,askAgentPlaceholder:`Tell the agent what you want to do…`,connectAi:`Connect AI`,builderOrOwnKeys:`Use Builder.io or custom keys.`,connectBuilderIo:`Use Builder.io`,connectingBuilder:`Setting up Builder.io…`,builderModelCredits:`Free credits for Claude, OpenAI & Gemini`,addOwnKeys:`Custom keys`,configureProviderKeys:`Choose a provider.`,chooseProvider:`Choose a provider`,searchProviders:`Search providers...`,noProvidersFound:`No providers found.`,availableProviders:`Available providers`,configured:`Configured`,apiKey:`API key`,localRuntime:`Local`,keyScope:`Key scope`,personalKeyScope:`Personal`,organizationKeyScope:`Organization`,personalKeyInEffect:`Your personal key is in effect.`,organizationKeyInEffect:`Organization key is in effect.`,sharedKeyInEffect:`A shared key is in effect.`,useOrganizationKey:`Use organization key`,keyStatusUnavailable:`Key status is unavailable.`,saveScopeRoleUnavailable:`Couldn't load your organization role, so keys can't be saved yet.`,chatgptSubscriptionPopupBlocked:`Allow pop-ups for this site, then try again.`,chatgptSubscriptionTitle:`ChatGPT subscription`,chatgptSubscriptionDescription:`Experimental Codex access through your ChatGPT subscription.`,chatgptSubscriptionInUse:`In use`,chatgptSubscriptionConnected:`Connected`,chatgptSubscriptionConnecting:`Connecting…`,chatgptSubscriptionReconnect:`Reconnect`,chatgptSubscriptionConnect:`Connect ChatGPT`,chatgptSubscriptionUse:`Use in chat`,chatgptSubscriptionDisconnect:`Disconnect`,enterApiKey:`Enter your {{provider}} API key.`,providerSetupFailed:`Could not configure this provider.`,noApiKeyNeeded:`No API key required.`,modelId:`Model ID`,endpointUrl:`Endpoint URL`,optional:`Optional`,compatibleEndpointHint:`Use this for LiteLLM or another OpenAI-compatible gateway.`,findModels:`Find models`,ollamaModelsChecking:`Checking installed models…`,ollamaModelsFound_one:`Found {{count}} installed model.`,ollamaModelsFound_other:`Found {{count}} installed models.`,ollamaModelsNone:"Connected, but no models are pulled yet — run `ollama pull llama3.1`.",ollamaModelsError:`{{error}} Showing example model names below.`,ollamaModelsPrompt:`Click "Find models" above to list what your Ollama server actually has installed.`,savingProvider:`Saving...`,providerSaved:`Connected`,useProvider:`Use {{provider}}`,saveAndUseProvider:`Save and use {{provider}}`,getApiKey:`Get an API key`,delegatedAgent:{asking:`Asking {{name}}...`,asked:`Asked {{name}}`,error:`Error asking {{name}}`,elapsed:`{{duration}} elapsed`},voiceMode:{entryButtonLabel:`Use microphone`,promptTitle:`Use your voice`,promptDescription:`Voice mode keeps listening while the agent navigates and takes actions.`,setupTitle:`Set up voice mode`,setupDescription:`Use Builder.io for managed voice with free credits, or add your own keys.`,connectBuilder:`Use Builder.io`,useOpenAiKey:`Custom keys`,startWithOpenAiKey:`Start with OpenAI key`,start:`Start voice chat`,keepDictating:`Dictate a message`,rememberPreference:`Remember my preference`,showChat:`Show chat`,hideChat:`Hide chat`,end:`End voice mode`,voiceSettings:`Voice settings`,settings:{microphone:`Microphone`,defaultMicrophone:`System default`,microphoneSwitchFailed:`Could not switch microphones. Your current microphone is still active.`,language:`Language`,autoLanguage:`Auto`,languages:{en:`English`,es:`Spanish`,fr:`French`,de:`German`,it:`Italian`,pt:`Portuguese`,ja:`Japanese`,ko:`Korean`,zh:`Chinese`},intelligence:`Intelligence`,intelligenceLevels:{instant:`Instant`,balanced:`Balanced`,deep:`Deep`},voiceStyle:`Voice style`,voiceChangePending:`Your new voice will apply next time you start voice mode.`,voiceDescriptions:{marin:`Warm and natural`,cedar:`Clear and grounded`,coral:`Friendly and bright`,sage:`Calm and thoughtful`,verse:`Expressive and versatile`,alloy:`Balanced and neutral`,ash:`Smooth and confident`,ballad:`Warm and expressive`,echo:`Clear and direct`,shimmer:`Light and upbeat`}},status:{connecting:`Connecting`,listening:`Listening`,speaking:`Speaking`,working:`Working`,error:`Voice mode needs attention`,ending:`Ending voice mode`},errors:{unsupported:`This browser does not support realtime voice conversations.`,responseFailed:`OpenAI could not complete the voice response.`,sessionFailed:`The realtime voice session encountered an error.`,channelDisconnected:`The realtime voice control channel disconnected.`,connectionTimedOut:`The realtime voice connection timed out. Try again after the app finishes loading.`,connectionFailed:`The realtime voice connection failed.`,offerFailed:`The browser did not create an audio offer.`}}},contextXray:{provenance:{frameworkCore:`Framework`,actionsPrompt:`Actions`,template:`Template`,enterpriseWorkspaceCore:`Enterprise workspace core`,sqlWorkspace:`Workspace`,legacyAppDefault:`App defaults`,organization:`Organization`,personal:`Personal`,memory:`Memory`,dbSchema:`SQL schema`,tools:`Tools`,modelOverlay:`Model overlay`,runtimeContext:`Runtime context`},governance:{required:`Required`,inherited:`Inherited`,user:`Your context`},system:`System`,conversation:`Conversation`,free:`free`,noSystemContext:`No system context is available for this scope yet.`,panelTitle:`Context X-Ray`,snapshotsTitle:`Snapshots`,agent:`Agent`,headerDescription:`See the system instructions and conversation tokens that shape the agent.`,whatAgentKnows:`What the agent knows`,orderedSystemDescription:`Ordered system context is grouped by where it comes from. System sections are visible here but cannot be evicted from a thread.`,list:`List`,treemap:`Treemap`,loadingPreview:`Loading context preview…`,previewUnavailable:`Context preview is not available yet.`,noPreview:`No context preview is available for this scope yet.`,liveThread:`Live thread`,liveThreadDescription:`The latest thread snapshot, when one exists. This is a single current snapshot, not an append-only history.`,latestThread:`Latest thread`,noLiveThread:`No live thread snapshot is available yet.`,orderedTokensTitle:`Context is ordered tokens, not weighted tokens.`,orderedTokensDescription:`Required framework and enterprise policy come first, followed by inherited template, workspace, and organization instructions. Personal instructions and memory arrive later and can narrow or override earlier guidance where the prompt permits. These system sections are not evictable; only run-local conversation segments support pin, evict, and restore.`,systemOrdered:`System · ordered, not evictable`},jobs:{timezone:`Timezone`,pageTitle:`Automations`,pageDescription:`Manage agent tasks that run on a schedule, in response to events, or from webhooks.`,personalDescription:`Scheduled, event-triggered, and webhook-triggered automations that run for you.`,organizationDescription:`Scheduled, event-triggered, and webhook-triggered automations shared with this organization.`,organizationMemberNote:`You can manage automations you created.`,loading:`Loading…`,loadError:`Could not load all automations.`,organizationEmptyTitle:`No organization automations yet`,organizationEmptyDescription:`Describe a scheduled, event-triggered, or webhook-triggered automation for this organization.`,organizationPrompt:`Create a shared organization automation that does this: `,enabled:`Enabled`,paused:`Paused`,nextRun:`Next run`,lastRun:`Last run`,lastChecked:`Last checked`,lastStatus:`Last status`,neverRan:`Never`,notSet:`—`,status:`Status`,trigger:`Trigger`,scope:`Scope`,createdBy:`Created by`,model:`Model`,blockedTitle:`This automation is not running`,pastRuns:`Past runs`,runsLoadError:`Could not load run history.`,noRuns:`This automation has not executed yet. Only real executions are recorded here.`,edit:`Edit`,editScheduleTitle:`Edit schedule — {{name}}`,editScheduleDescription:`The clock time below is read in the timezone you pick, so 8:00 means 8:00 there.`,repeat:`Repeat`,repeatEvery:`Repeat every`,scheduleUnit:`Unit`,hours:`hour(s)`,days:`day(s)`,day:`day`,weeks:`week(s)`,months:`month(s)`,atMinute:`At minute`,onDay:`On`,dayOfMonth:`Day of month`,atTime:`At`,weeklyIntervalAdvanced:`Every few weeks needs the Advanced cron editor below.`,dailyIntervalAdvanced:`Every few days needs the Advanced cron editor below.`,schedulePreview:`Runs {{time}}.`,advancedSchedule:`Advanced - cron expression`,show:`Show`,hide:`Hide`,cronExpression:`Cron expression`,cronFormatHint:`minute hour day-of-month month day-of-week`,cronFieldCount:`A cron expression needs exactly 5 fields.`,cronInvalid:`Enter a valid cron expression.`,scheduleFrequency:`Frequency`,scheduleFrequencyHourly:`Hourly`,scheduleFrequencyDaily:`Daily`,scheduleFrequencyWeekdays:`Weekdays`,scheduleFrequencyWeekly:`Weekly`,scheduleFrequencyMonthly:`Monthly`,scheduleMinute:`Minute`,scheduleTime:`Time`,scheduleWeekday:`Day`,scheduleMonthDay:`Day of month`,scheduleAdvancedDetected:`This schedule uses a custom cron pattern. Edit it in Advanced mode.`,scheduleSummaryLabel:`Runs`,scheduleAdvanced:`Advanced`,scheduleSummaryHourly:`hourly at minute {{minute}} ({{timezone}})`,scheduleSummaryWeekly:`every {{weekday}} at {{time}} ({{timezone}})`,scheduleSummaryMonthly:`monthly on day {{day}} at {{time}} ({{timezone}})`,scheduleSummaryTimed:`{{frequency}} at {{time}} ({{timezone}})`,weekdaySunday:`Sunday`,weekdayMonday:`Monday`,weekdayTuesday:`Tuesday`,weekdayWednesday:`Wednesday`,weekdayThursday:`Thursday`,weekdayFriday:`Friday`,weekdaySaturday:`Saturday`,saveSchedule:`Save schedule`,details:`Details`,viewDetails:`View details`,pause:`Pause`,resume:`Resume`,delete:`Delete`,deleting:`Deleting…`,running:`Running…`,updateError:`Could not update automation.`,automationsEmptyTitle:`No automations yet`,automationsEmptyDescription:`Describe what should happen and when.`,automationsCreateTitle:`Create an automation`,newAutomation:`New automation`,automationPrompt:`Create an automation that does this: `,cancel:`Cancel`,instructions:`Instructions`,mcpTools:`Connected agent tools`,automationEventTrigger:`On {{event}}`,webhook:`Webhook`,automationWebhookDetails:`Runs when a webhook is received.`,automationWebhookTrigger:`On webhook`,schedulePreset:{hourly:`Every hour`,dailyMidnight:`Every day at midnight`,dailyNoon:`Every day at noon`,weekdays:`Every weekday`,weekly:`Every week`,custom:`Custom`,customDetail:`Set your own repeat pattern`},scheduledTrigger:`Scheduled`,eventTrigger:`Event-triggered`,manualTrigger:`On demand`,emailTrigger:`Email received`,automationManualDetails:`Runs only when started on demand.`,automationEmailDetails:`Runs when an email is received.`,unknownEvent:`an app event fires`,webhookTrigger:`Webhook-triggered`,webhookUrl:`Webhook URL`,webhookUrlHint:`Paste this URL into a service that sends HTTP POST webhooks.`,deleteAutomationTitle:`Delete automation?`,deleteAutomationDescription:`This permanently removes the automation and cannot be undone.`,runNow:`Run now`,runNowTitle:`Run automation now?`,runNowDescription:`This runs the automation's real actions immediately. It may send messages or change data, and it will not change the next scheduled run.`,automationDetails:`Automation details`,automationEventDetails:`Runs when {{event}}.`,condition:`Condition`,personal:`Personal`,organization:`Organization`,editorEditTitle:`Edit automation`,editorCreateTitle:`Create an automation`,editorScopeDescription:`This automation is fixed to the {{scope}} scope.`,editorScopeOrganization:`organization`,editorScopePersonal:`personal`,editorNameLabel:`Name`,editorNamePlaceholder:`Weekly customer summary`,editorNameImmutable:`The name cannot be changed after creation.`,editorNameRequired:`Enter a name.`,editorTriggerLabel:`Trigger`,triggerScheduleTitle:`Schedule`,triggerScheduleDescription:`Run at a recurring time you choose.`,triggerAppEventTitle:`App event`,triggerAppEventDescription:`Run when a registered event happens.`,triggerManualTitle:`On demand`,triggerManualDescription:`Run only when someone starts it.`,triggerEmailTitle:`Email received`,triggerEmailDescription:`Run when an incoming email matches your filters.`,triggerEmailUnavailableDescription:`Connect Mail to use email-triggered automations.`,editorEmailSetupHelp:`Email received becomes available after a Mail connection registers its event.`,editorOpenConnections:`Open connections`,editorEventLabel:`App event`,editorEventPlaceholder:`Select an event`,editorEventSearch:`Search events…`,editorEventsLoading:`Loading events…`,editorEventsEmpty:`No matching events.`,editorEventRequired:`Select an app event.`,editorConditionLabel:`Condition (optional)`,editorConditionPlaceholder:`For example, only high-priority items`,editorEmailFrom:`From`,editorEmailTo:`To`,editorEmailSubject:`Subject`,editorAdditionalCondition:`Additional condition (optional)`,editorAdditionalConditionPlaceholder:`For example, only messages with attachments`,editorInstructionsLabel:`Instructions`,editorInstructionsPlaceholder:`Describe what the agent should do…`,editorInstructionsRequired:`Enter instructions for the automation.`,editorReviewLabel:`Review`,editorReviewSchedule:`Runs on {{schedule}} in {{timezone}}.`,editorReviewManual:`Runs only when someone starts it on demand.`,editorReviewEmailFromFilter:`from contains “{{value}}”`,editorReviewEmailToFilter:`to contains “{{value}}”`,editorReviewEmailSubjectFilter:`subject contains “{{value}}”`,editorReviewEmailFiltered:`Runs when an email is received and {{condition}}.`,editorReviewEmail:`Runs whenever an email is received.`,editorReviewConditionalEvent:`Runs when {{event}} occurs and {{condition}}.`,editorReviewEvent:`Runs when {{event}} occurs.`,editorReviewEventPending:`Choose the app event that starts this automation.`,editorSave:`Save changes`,editorCreate:`Create automation`,settingsSummary:`Manage on-demand, scheduled, event-triggered, and webhook-triggered agent tasks together from the Automations page.`,openAutomations:`Open Automations`,manage:`Manage`,sharingLabel:`Sharing`,sharingPersonal:`Personal`,sharingPersonalDescription:`Only you can access this automation.`,sharingOrganization:`Organization`,sharingOrganizationDescription:`Every current member of {{organization}} gets View access.`,sharingOrganizationUnavailable:`Join an organization to share with members.`,sharingSpecific:`Specific people`,sharingSpecificDescription:`Choose existing accounts and give each View or Collaborate access.`,sharingSpecificCount:`Shared with {{count}} people`,sharingSearchPlaceholder:`Search by name or email…`,sharingOutsideOrganization:`Outside organization`,sharingNoGrants:`No one has been added yet.`,sharingRoleView:`View`,sharingRoleCollaborate:`Collaborate`,sharingRemove:`Remove`,sharingAcknowledgement:`I understand outside-organization collaborators can edit, pause/resume, and run this automation now. It will always execute using the creator's identity.`,sharingOwnerOnly:`Only the owner can change sharing.`,sharingBadgeSharedView:`Shared with you · View`,sharingBadgeSharedCollaborate:`Shared with you · Collaborate`,nextRunNeverScheduler:`Never — no scheduler in this deploy`,nextRunSchedulerUnknown:`{{date}} — unconfirmed, the scheduler check failed`,nextRunSchedulerUnknownNoDate:`Unknown — the scheduler check failed`,scheduleUnknownTitle:`Couldn't check whether schedules run here`,scheduleUnknownDetail:`The scheduler status check failed, so the next run times below are unconfirmed. Reload to check again.`,scheduleUnavailableTitle:`Schedules won't run in this deploy`,scheduleUnavailableLocalTitle:`Schedules don't run in local development`,scheduleUnavailableDisabled:`This app was built with recurring jobs turned off, so no scheduled automation will fire. Webhook-triggered automations and Run now still work.`,scheduleUnavailableNoScheduler:`This deploy has no scheduler, so scheduled automations won't fire, event-triggered automations stay queued, and crashed runs aren't recovered. Webhook-triggered automations and Run now still work.`,scheduleUnavailableMissingSecret:`This deploy has a scheduler, but {{secret}} isn't set, so every scheduler request is rejected. Scheduled automations won't fire, event-triggered automations stay queued, and crashed runs aren't recovered. Webhook-triggered automations and Run now still work.`,scheduleUnavailableLocal:`Schedules stay off on a dev machine unless you opt in. Event- and webhook-triggered automations and Run now still work.`,scheduleUnavailableDisabledFix:`To enable recurring jobs, set AGENT_NATIVE_DISABLE_RECURRING_JOBS=false in the build environment.`,scheduleUnavailableLocalFix:`Set AGENT_NATIVE_ENABLE_LOCAL_RECURRING_JOBS=true to run schedules on this machine.`,scheduleUnavailableMissingSecretFix:`Set {{secret}} in this deployment's environment variables, then redeploy.`,scheduleUnavailableFixLabel:`Show more`,scheduleUnavailableFixLabelOpen:`Show less`},share:{titleWithResource:`Share "{{title}}"`,titleWithType:`Share {{type}}`,owner:`Owner: {{name}}`,close:`Close`,shareOptions:`Share options`,people:`People`,agents:`Agents`,link:`Link`,invite:`Invite`,embed:`Embed`,done:`Done`,generalAccess:`General access`,shareLink:`Share link`,addPeopleByEmail:`Add people by email`,notifyPeople:`Notify people`,message:`Message`,addMessage:`Add a message`,hideMessage:`Hide message`,messagePlaceholder:`Add a short note (optional)`,peopleWithAccess:`People with access`,ownerRole:`Owner`,remove:`Remove`,noAccess:`No one has access yet.`,embedUrl:`Embed URL`,embedCode:`Embed code`,copy:`Copy`,copied:`Copied`,role:`Role`,private:`Private`,privateDescription:`Only people with access can view`,organization:`Organization`,organizationDescription:`Anyone in your organization can view`,public:`Public`,publicDescription:`Anyone signed in with the link can view`,viewer:`Viewer`,viewerDescription:`Can view`,commenter:`Commenter`,commenterDescription:`Can view and add comments`,editor:`Editor`,editorDescription:`Can edit`,admin:`Admin`,adminDescription:`Can edit and manage access`},runsTray:{runs:`Runs`,agentRuns:`Agent runs`,activeRun_one:`{{count}} active run`,activeRun_other:`{{count}} active runs`,failedRun_one:`{{count}} failed run`,failedRun_other:`{{count}} failed runs`,recentRuns:`Recent runs`,noRecentRuns:`No recent runs`,ariaAgentRuns:`Agent runs, {{label}}`,summaryRunning:`{{activeCount}} running`,summaryRunningRecent:`{{activeCount}} running · {{terminalCount}} recent`,summaryRecent_one:`{{count}} recent run`,summaryRecent_other:`{{count}} recent runs`,noTrackedWorkYet:`No tracked work yet`,emptyDescription:`Background agent work will appear here while it runs and after it finishes.`,open:`Open`,stopRun:`Stop {{title}}`,hideRun:`Hide {{title}}`,statusRunning:`Running`,statusDone:`Done`,statusFailed:`Failed`,statusStopped:`Stopped`,statusNeedsApproval:`Needs approval`,statusNeedsInput:`Needs input`,statusPaused:`Paused`,updatedJustNow:`Updated just now`,finishedJustNow:`Finished just now`,updatedMinutes:`Updated {{count}}m ago`,finishedMinutes:`Finished {{count}}m ago`,updatedHours:`Updated {{count}}h ago`,finishedHours:`Finished {{count}}h ago`,updatedDate:`Updated {{date}}`,finishedDate:`Finished {{date}}`},agentTask:{spawnedAgent:`Spawned agent`,stop:`Stop spawned agent`,openThread:`Open task thread`},codeRequired:{fallbackDetail:`Edit locally or use Builder.io to edit this code in the cloud and continue customizing the app any way you like.`,defaultFeature:`Make the requested code changes to this app`,branchError:`Failed to create branch`,title:`Code changes required`,subtitleWithFeature:`"{{feature}}" creates or modifies source code, which needs Desktop or Builder from this surface.`,subtitle:`This action creates or modifies source code, which needs Desktop or Builder from this surface.`,desktopTitle:`Use Agent-Native Desktop`,desktopDescription:`Open the project in the desktop app to enable source edits and CLI access.`,builderAgentTitle:`Use Builder.io Agent`,builderAgentDescription:`Let our cloud agent make the changes for you. You'll get a link to preview and deploy.`,codeChangeTitle:`This requires a code change`,codeChangeBadge:`Code change`,connectBuilderTitle:`Use Builder.io`,connectBuilderDescription:`Use Builder.io (free tier available) to enable cloud-based code changes from this app.`,setupRequired:`Setup required`,branchCreated:`Branch created`,close:`Close`},extensions:{createPrompt:`Create an extension: {{prompt}}`,createWidgetPrompt:`Create a new widget that fits in slot "{{slotId}}". I'll describe what it should do next.`,whatShouldItDo:`What should it do?`,createPlaceholder:`A todo list, API dashboard, calculator...`,title:`Extensions`,hiddenShown:`Hiding shown`,showHidden:`Show hidden`,newExtension:`New Extension`,newExtensionTitle:`New extension`,buildPlaceholder:`Describe what you'd like to build...`,namePlaceholder:`My Extension`,descriptionPlaceholder:`What does this extension do?`,contentPlaceholder:`<html>...</html>`,emptyTitle:`Create your first extension`,emptyDescription:`Describe a small app and the agent will build it.`,hiddenFromEveryone:`Hidden from everyone`,localFile:`Local file`,optionsFor:`Options for {{name}}`,unhideEveryone:`Unhide for everyone`,hideEveryone:`Hide from everyone`,localFileDescription:`This extension is backed by {{entryPath}}. Edit or remove it from the workspace.`,deleteQuestion:`Archive {{name}}?`,removeQuestion:`Remove {{name}}?`,hideForYouDescription:`This hides it from your Extensions list without deleting it for anyone else.`,removeEverywhereDescription:`This archives it everywhere it is shared.`,cancel:`Cancel`,remove:`Remove`,removing:`Removing...`,delete:`Archive`,deleting:`Archiving...`,openFullView:`Open full view`,removeFromWidgetArea:`Remove from this widget area`,customBlockSandboxed:`Custom block · sandboxed`,sandboxedCustomBlock:`Sandboxed SQL custom block`,sandboxedCustomBlockCreatedBy:`Sandboxed SQL custom block created by {{email}}`,promoteToAppCode:`Promote to app code`,historyShowsSourceVersions:`History shows source versions`,createdByHistoryShowsSourceVersions:`Created by {{email}}. History shows source versions.`,createdByHistoryShowsSourceVersionsCompact:`Created by {{email}} · History shows source versions`,deleteExtensionEllipsis:`Archive extension...`,removeFromMyListEllipsis:`Remove from my list...`,removeFromWidgetAreaForMe:`Remove from this widget area (for me)`,deleteEverywhereConfirmation:`This archives the extension everywhere, for everyone it's shared with.`,addWidget:`Add widget`,loading:`Loading...`,noWidgetsAvailable:`No widgets available for this slot yet.`,buildNewWidget:`Build a new widget`,contactSidebarWidget:`Contact sidebar widget`,contactSidebarDescription:`Appears beside the current conversation with contact and thread context.`,eventDetailWidget:`Event detail widget`,eventDetailDescription:`Appears below the open calendar event with event and attendee context.`,addWidgetHere:`Add widget here`,back:`Back`,editExtension:`Edit Extension`,saving:`Saving...`,save:`Save`,create:`Create`,moreOptions:`More options`,appearsIn:`Appears in`,noWidgetAreas:`Not installed in any widget areas. Ask the agent to add it somewhere.`,widgetAreaCount_one:`This extension can render in {{count}} widget area.`,widgetAreaCount_other:`This extension can render in {{count}} widget areas.`,nameLabel:`Name`,descriptionLabel:`Description`,contentLabel:`Content`,previewTitle:`Extension preview`,previewEmpty:`Preview will appear here`,loadError:`Couldn't load extensions.`,widgetsLoadError:`Couldn't load widgets.`,widgetAreasLoadError:`Couldn't load widget areas.`,historyLoadError:`Couldn't load extension history.`,versionLoadError:`Couldn't load this extension version.`,retry:`Retry`},org:{askAdminTitle:`Ask your administrator`,askAdminDescription:`Ask an administrator for an invitation to join this workspace.`,appPermissions:`App permissions`,applications:`Applications`,applicationsEmpty:`No workspace applications are registered yet.`,applicationsLoadFailed:`Couldn't load workspace applications.`,applicationAccess:`Access for {{name}}`,applicationAccessAll:`All members`,applicationAccessRestricted:`Restricted`,applicationAccessDisabled:`Disabled`,appRolesOptional:`App roles`,noAppRolesFound:`No roles found.`,notAssigned:`Not assigned`,resetToDefaults:`Reset to defaults`,createTitle:`Create your organization`,createDescription:`This app organizes your content by team. Create an organization to continue - you can invite teammates afterward.`,loadErrorTitle:`Couldn't load organization`,loadErrorFallback:`Couldn't load organization.`,tryAgain:`Try again`,sendFeedback:`Send feedback`,feedbackPlaceholder:`Describe what happened before this organization error appeared.`,openGitHubIssue:`Open GitHub issue`,yourOrganization:`Your organization`,joinYourTeam:`Join your team`,openToDomainEmails:`Open to @{{domain}} emails`,enableDomainJoin:`Enable for @{{domain}}`,joinOrg:`Join {{name}}`,pendingInvitations:`Pending invitations`,invitedBy:`from {{name}}`,accept:`Accept`,createSeparate:`or create a separate organization`,organizationName:`Organization name`,workspaceIcon:`Workspace icon`,icons:`Icons`,emoji:`Emoji`,upload:`Upload`,searchIcons:`Search icons`,noIconsFound:`No icons found`,recentIcons:`Recent icons`,iconColors:`Colors`,defaultColor:`Default`,removeIcon:`Remove icon`,uploadIcon:`Upload icon`,uploadingIcon:`Uploading…`,workspaceIconSyncPending:`Saved here. Other apps may take longer to update.`,organizationPlaceholder:`Acme Inc.`,createOrganization:`Create organization`,create:`Create`,creating:`Creating...`,team:`Team`,createOrgCardTitle:`Create an Organization`,createOrgCardDescription:`Set up a team to collaborate with your colleagues.`,createOrgVaultNotice:`Vault keys aren't shared between organizations. A new organization starts with an empty vault, so you'll need to add its own API keys and credentials before connected apps work.`,acceptInvitationOrgSwitchNotice:`Joining makes {{name}} your active organization. Connected apps will switch to {{name}}'s vault keys, so anything using keys saved in your current organization may stop working until {{name}} has its own.`,joinDomainOne:`An organization matching your email domain already exists. Join it to collaborate with your teammates.`,joinDomainMany:`Organizations matching your email domain already exist. Join one to collaborate with your teammates.`,join:`Join`,invitedByLabel:`Invited by {{name}}`,you:`You`,owner:`Owner`,admin:`Admin`,member:`Member`,workspaceAppsDefaultPrivacy:`New app privacy`,workspaceAppsDefaultPrivacyDescription:`Choose whether new workspace apps start private to their creator or visible to the organization.`,workspaceAppsOrganization:`Organization`,workspaceAppsCreatorOnly:`Creator only`,members:`Members`,inviteMembers:`Invite members`,invited:`Invited`,role:`Role`,status:`Status`,actions:`Actions`,noMembers:`No members yet.`,memberCount_one:`{{count}} member`,memberCount_other:`{{count}} members`,memberPagination:`Member list pagination`,previousMemberPage:`Go to previous member page`,nextMemberPage:`Go to next member page`,memberPageStatus:`Page {{page}} of {{totalPages}}`,youAreRole:`You are {{role}}`,editGroup:`Edit group`,createGroup:`Create group`,groupName:`Group name`,groupMembers:`People`,searchPeople:`Search people`,loadingPeople:`Loading people…`,noPeopleFound:`No people found`,loadMorePeople:`Load more`,saveGroup:`Save group`,groups:`Groups`,newGroup:`New group`,editGroupAria:`Edit group {{name}}`,deleteGroupAria:`Delete group {{name}}`,deleteGroup:`Delete group?`,deleteGroupConfirm:`Type {{name}} to confirm.`,deleting:`Deleting…`,delete:`Delete`,noGroups:`No groups yet`,selectPage:`Select page`,selectedMembers:`Selected members ({{count}})`,selectMembers:`Select members`,addToGroup:`Add to group`,removeFromGroup:`Remove from group`,clearSelection:`Clear`,createGroupForBulk:`Create group`,changeRole:`Change role`,removeMember:`Remove member`,transferTo:`Transfer ownership to`,cancel:`Cancel`,remove:`Remove`,save:`Save`,loading:`Loading...`,dangerZone:`Danger zone`,deleteOrg:`Delete organization`,deleteOrgDescription:`Permanently deletes this organization, its members, and its pending invitations. Data owned by the organization becomes inaccessible. This cannot be undone.`,deleteOrgConfirmPrompt:`Type {{name}} to confirm.`,deleteOrgConfirmPlaceholder:`Organization name`,deleteOrgConfirmCta:`Delete organization`,deleteOrgPending:`Deleting…`,sso:{signIn:`Organization sign-in`,signInHelp:`Choose the sign-in provider members must use.`,requiredProvider:`Required sign-in provider`,optional:`Optional`,google:`Google`,title:`Single sign-on`,description:`Connect an OIDC or SAML identity provider.`,verified:`Verified`,verifyRequired:`Verification required`,verify:`Verify`,remove:`Remove`,type:`Identity provider type`,providerId:`Provider ID`,issuer:`Issuer URL`,domain:`Organization domain`,noDomain:`No domain configured`,clientId:`Client ID`,clientSecret:`Client secret`,discoveryEndpoint:`Discovery endpoint (optional)`,entryPoint:`SAML entry point URL`,entityId:`IdP entity ID`,metadata:`Paste IdP metadata XML`,certificate:`Signing certificate (optional)`,domainHelp:`The domain must match the organization's verified domain. Submitted secrets and metadata are cleared from this form.`,saveProvider:`Save provider`,cancel:`Cancel`,addProvider:`Add provider`},scim:{title:`Directory provisioning`,description:`Manage SCIM connections for this organization.`,revoke:`Revoke`,copyTokenOnce:`Copy this token now. It will not be shown again.`,dismissToken:`Dismiss token`,createConnection:`Create SCIM connection`},ssoSetup:{idpSetup:`Identity provider setup`,redirectUri:`Redirect URI`,spMetadataUrl:`Service provider metadata URL`,dnsRecordName:`DNS TXT record name`,dnsRecordValue:`DNS TXT record value`,dnsPropagation:`Allow DNS changes to propagate before verifying.`},ssoConfirm:{title:`Require this sign-in provider?`,description:`Members will need to use this provider the next time they sign in. Current sessions may be revoked.`,confirm:`Require provider`}},integrations:{subtitle:`Connect the tools your agent can use.`,recommended:`Recommended`,manage:`Manage`,connectedSection:`Connected`,availableSection:`Available integrations`,webhookUrl:`Webhook URL`,copyWebhookUrl:`Copy webhook URL`,webhookUrlLocalOnly:`{{platform}} can't call {{url}} — that address only exists on this machine. Deploy the app, or expose this server through an HTTPS tunnel, then open this page from the public address to get a webhook URL you can paste.`,notConfigured:`Not configured. Set the required secrets to enable this integration.`,enable:`Enable`,disable:`Disable`,toggling:`...`,networkError:`Network error reaching the server`,back:`Back`,agentEngineRequired:`Agent engine required`,agentEngineDescription:`Use Builder.io (free tier available) or an LLM key before {{platform}} can answer.`,openLlm:`Open LLM`,setup:`Setup`,shareDocumentsWith:`Share documents with`,copyServiceAccountEmail:`Copy service account email`,requiredSecrets:`Required secrets`,envHelp:`Set these in your .env file or environment to connect.`,copy:`Copy`,documentation:`Documentation`,clientAvailable:`This agent's A2A endpoint is automatically available. No configuration needed.`,addChatIntegration:`Add a chat integration`,chatIntegrations:`Chat Integrations`,chatIntegrationsDescription:`Talk to this agent from other platforms`,addIntegration:`Add integration`,dispatchEntrypoint:`For a central Slack or Telegram entrypoint that can route work across multiple apps, use the`,sharedMessaging:`Need one shared messaging surface for your workspace? Connect Slack or Telegram to a dispatch app and let it delegate to other agents over A2A.`,lookingForApiKeys:`Looking for an API key instead?`,goToApiKeys:`Go to API keys`,lookingForProviders:`Looking for OAuth or MCP providers?`,goToIntegrations:`Go to Integrations`},mcpIntegrations:{menuLabel:`Integrations`,menuDescription:`Connect tools and services to the agent`,title:`Connect integrations`,description:`Browse {{count}} agent integrations or add a custom one.`,searchPlaceholder:`Search integrations`,addYourOwn:`Add your own`,noMatches:`No integrations match that search.`,connected:`Connected`,connectionError:`Connection error`,connectionErrorReason:`Reason: {{reason}}`,reconnect:`Reconnect`,reconnecting:`Reconnecting…`,reconnectFailed:`Reconnect failed: {{error}}`,configure:`Configure`,connect:`Connect`,connectWithOAuth:`Connect`,connecting:`Connecting…`,useApiToken:`Use API token`,customOAuthDefault:`Sign in with OAuth`,customHeadersMode:`Use an API key`,useApiKeyInstead:`Use an API key instead`,useOAuthInstead:`Use OAuth instead`,connectSuggestion:`Connect {{name}} to use it in chat`,connectSuggestionWithApiToken:`Connect {{name}} with an API token to use it in chat`,dismissSuggestion:`Dismiss integration suggestion`,backToIntegrations:`Back to integrations`,customTitle:`Add custom agent integration`,configureTitle:`Configure {{name}}`,presetNoAuthDescription:`Preset values are filled in. Test the endpoint or connect it now.`,presetAuthDescription:`Preset values are filled in. Add any required authorization details before connecting.`,customDescription:`Paste a Streamable HTTP or SSE endpoint and optional headers.`,oauthNotice:`This provider usually requires an OAuth setup. Follow the provider docs, or add an Authorization header if your endpoint supports token-based access.`,providerSetupRequired:`Provider setup required`,providerSetupDescription:`Complete the required setup in {{name}} first. Then return here to connect your account.`,providerSetupFormDescription:`Complete provider setup before connecting your account.`,continueToConnect:`Connect my account`,setupTitle:`Connect {{name}}`,hubspot:{setupTitle:`Set up HubSpot MCP`,dialogDescription:`A workspace owner configures HubSpot MCP once. Each member then connects their own account.`,workspaceSetupStatus:`Workspace setup required`,setupChecking:`Checking workspace setup…`,setupUnavailable:`Setup status unavailable`,setupUnavailableDescription:`Couldn't check the workspace OAuth settings. Try again.`,ownerSetupDescription:`Create a HubSpot MCP Auth App, then add its client ID and secret in Agent-Native settings → API keys.`,memberSetupDescription:`Ask a workspace owner to create a HubSpot MCP Auth App and add its client ID and secret in Agent-Native settings → API keys. You can connect your own HubSpot account after setup.`,noWorkspaceDescription:`Join a workspace before connecting HubSpot MCP.`,configureWorkspaceCredentials:`Add workspace credentials`,refreshSetupStatus:`Check again`,retrySetupStatus:`Retry`},personal:`Personal`,personalConnection:`Personal connection`,organization:`Organization`,scopeQuestion:`Who should be able to use this connection?`,scopeChoiceTitle:`Who should use this?`,scopeChoiceDescription:`Choose where this connection is available.`,connectForMe:`Connect for me`,setUpForWorkspace:`Set up for workspace`,workspaceAdminRequired:`Workspace owner or admin required.`,workspaceJoinRequired:`Join a workspace first.`,personalOnlyDescription:`Only personal connections are supported for this integration.`,workspaceOnlyDescription:`This integration connects once for the whole workspace, so it cannot be connected to just your account. A workspace owner or admin can set it up.`,loadingScopeMetadata:`Loading connection scope…`,retry:`Retry`,retrying:`Retrying…`,personalDescription:`Only you can use this connection.`,sharedWithWorkspace:`Shared with workspace`,organizationDescription:`Permitted workspace members can use this connection. Provider permissions still apply.`,serverNameRequired:`Enter an integration name before connecting with OAuth.`,serverName:`Integration name`,url:`URL`,fieldDescription:`Description`,headers:`Headers`,serverNamePlaceholder:`Integration name`,urlPlaceholder:`https://example.com/agent-integration`,descriptionPlaceholder:`Description (optional)`,headersPlaceholder:`Authorization: Bearer <token>`,openSetupDocs:`Open setup docs`,viewSetup:`Open setup guide`,test:`Test`,testing:`Testing…`,toolsAvailable_one:`{{count}} tool available`,toolsAvailable_other:`{{count}} tools available`,failed:`Failed`,docsLabel:`View {{name}} docs`,catalog:{context7:{description:`Fetch current library docs in agent chats.`,useCase:`Documentation, technical reference, API docs, framework guides`},sentry:{description:`Inspect issues, events, and debugging data.`,useCase:`Error monitoring, debugging, performance, crash reports`},fullstory:{description:`Read behavioral analytics and inspect session replays.`,useCase:`Product analytics, session replay, qualitative behavior, user research`,setupNote:`FullStory MCP is currently beta and requires StoryAI features plus the Model Context Protocol toggle to be enabled by a FullStory organization admin.`},amplitude:{description:`Read and work with Amplitude product analytics.`,useCase:`Product analytics, charts, dashboards, cohorts, experiments`,setupNote:`Amplitude MCP uses OAuth over streaming HTTP. The default endpoint is for US data residency; use Amplitude's EU endpoint when the account requires EU residency.`},sigma:{description:`Search, explore, and analyze Sigma workbooks and dashboards.`,useCase:`Analytics, dashboards, workbooks, data exploration, business intelligence`,setupNote:`Sigma's MCP URL is organization-specific. In Sigma, open Profile > Integrations > Connect Sigma to AI tools, copy the URL, and paste it here. Sigma MCP currently supports search, metadata exploration, and analysis; dashboard or workbook creation and import are not exposed by this connection.`},notion:{description:`Search pages and team knowledge.`,useCase:`Documentation, knowledge management, notes, content creation`,setupNote:`The Notion integration uses user OAuth. Enterprise workspaces can audit integration usage and allow or block clients; reconnect after admin policy changes.`},granola:{description:`Search meeting notes, transcripts, and action items.`,useCase:`Meeting notes, recordings, transcripts, action items, follow-ups`,setupNote:`The Granola integration uses browser OAuth. Authorize the signed-in Granola account and review which meeting notes and transcripts the agent can access.`},gong:{description:`Search Gong calls and generate account and deal insights.`,useCase:`Sales calls, transcripts, deal insights, account summaries`,setupNote:"A Gong tech admin must create an MCP integration with personal or shared authorization. For Manual registration, save the generated client ID and secret as workspace secrets `GONG_MCP_CLIENT_ID` and `GONG_MCP_CLIENT_SECRET`; Automatic registration needs no client credentials."},semgrep:{description:`Scan code for security findings.`,useCase:`Security scanning, vulnerability detection, code analysis`},linear:{description:`Read and write Linear issues.`,useCase:`Project management, issue tracking, planning, bug reports`},apollo:{description:`Search, enrich, and manage Apollo GTM data.`,useCase:`Prospecting, enrichment, contacts, sequences, account research`,setupNote:`Apollo MCP uses user OAuth and does not require an Apollo API key. Apollo plan permissions, credits, and the provider's model-training restrictions still apply.`},commonRoom:{description:`Research buyer signals, contacts, and organizations.`,useCase:`Buyer intelligence, product signals, intent, contact enrichment`,setupNote:`Common Room MCP uses per-user OAuth and respects the authorized user's workspace role. An administrator may need to enable the MCP connection for the instance.`},exa:{description:`Search the web and fetch pages with Exa.`,useCase:`Web search, research, code search, page fetching`,setupNote:`Exa's remote MCP endpoint supports basic free usage without a key. Add an Exa API key through the provider's header configuration when higher limits or additional tools are needed.`},supabase:{description:`Manage data, auth, and backend services.`,useCase:`Database, authentication, storage, edge functions`},neon:{description:`Work with serverless Postgres projects.`,useCase:`Database management, serverless Postgres, data storage`},stripe:{description:`Manage payments, subscriptions, and customers.`,useCase:`Payments, subscriptions, invoicing, customer management`},atlassian:{description:`Read and write Jira issues and Confluence content.`,useCase:`Project management, issue tracking, documentation, team collaboration`,setupNote:`Ask your Atlassian admin to allow the Clips app domain and enable Rovo/MCP with Read, Write, and Search permissions for your Jira site.`},cloudflare:{description:`Search and operate Cloudflare services through its integration.`,useCase:`DNS, Workers, domains, security, observability, platform APIs`,setupNote:`Cloudflare's managed integration directory contains product-specific integrations as well as the broad API integration. Review the scopes and choose the narrowest endpoint that fits your workflow.`},grafana:{description:`Query Grafana Cloud metrics, logs, and observability data.`,useCase:`Observability, metrics, logs, traces, dashboards`,setupNote:`Grafana Cloud MCP is in public preview and requires Grafana Cloud Assistant MCP access. It is hosted Grafana Cloud only; self-hosted Grafana needs the local MCP server.`},gitlab:{description:`Read and manage GitLab projects, issues, and merge requests.`,useCase:`Repositories, issues, merge requests, CI/CD, code analytics`,setupNote:`The GitLab integration is currently beta. On GitLab.com, a top-level group admin must allow integration access before OAuth can complete; self-managed instances have an equivalent instance setting.`},figma:{description:`Bring Figma design context and canvas actions into an agent.`,useCase:`Design files, components, variables, design systems, canvas`,setupNote:`The Figma integration only allows clients listed in Figma's integration catalog, so this remote endpoint cannot connect from Agent-Native yet. Use the Figma REST API fallback with a personal access token for reading file and node context; canvas actions remain unavailable until Figma approves Agent-Native.`},canva:{description:`Search, create, and update Canva designs and assets.`,useCase:`Designs, templates, assets, brand kits, exports, collaboration`,setupNote:`The Canva integration uses per-user OAuth and requires clients to allow Canva's canva.com and canva.ai domains. Confirm the current redirect and client setup in Canva's integration documentation before connecting.`},vercel:{description:`Search Vercel docs and inspect projects, deployments, and logs.`,useCase:`Deployments, projects, logs, domains, hosting, documentation`,setupNote:`The Vercel integration only accepts reviewed and approved AI clients. Agent-Native must be added to Vercel's supported-client list before a generic framework connection will work.`},github:{description:`Read repositories, issues, pull requests, and code context.`,useCase:`Repositories, issues, pull requests, code, engineering analytics`,setupNote:`GitHub's sign-in provider does not let apps register themselves, so the Connect button cannot complete OAuth. Connect with a GitHub personal access token instead, and note that organizations may enforce OAuth App Access Policies.`},slack:{description:`Search Slack conversations and take workspace actions through its integration.`,useCase:`Messages, channels, people, company memory, workflows`,setupNote:`The Slack integration requires a registered Slack app with a fixed app ID. Dynamic client registration is not supported, and only Slack Marketplace or internal apps may connect. Use Slack's managed messaging OAuth flow for Agent-Native workflows.`},asana:{description:`Search and manage Asana tasks, projects, and work graph data.`,useCase:`Tasks, projects, portfolios, planning, workload`,setupNote:`Asana's agent integration requires a pre-registered OAuth app and does not support dynamic client registration. Configure an Asana app client before connecting.`},hubspot:{description:`Search and update HubSpot CRM records through its integration.`,useCase:`CRM, contacts, companies, deals, tickets, customer analytics`,setupNote:`Each person connects their own HubSpot account after a workspace owner configures the HubSpot MCP Auth App.`},pylon:{description:`Search and update Pylon support data.`,useCase:`Customer support, issues, accounts, contacts, conversations`,setupNote:`Enable Pylon MCP access for the relevant users and turn on the MCP server in Pylon before connecting. Pylon requires a Member or Admin seat and uses user OAuth only.`},intercom:{description:`Search conversations and customer support knowledge.`,useCase:`Customer support, conversations, contacts, help center content`,setupNote:`The Intercom integration uses OAuth and is available for US-hosted workspaces. Confirm the workspace region and requested scopes during authorization.`},monday:{description:`Work with boards, items, and team workflows.`,useCase:`Work management, boards, projects, tasks, team operations`,setupNote:`The monday.com integration uses OAuth over Streamable HTTP. Choose the workspace and permissions to share during authorization.`},webflow:{description:`Read and update Webflow sites and content.`,useCase:`Websites, CMS, site content, publishing, design workflows`,setupNote:`The Webflow integration uses OAuth. Designer capabilities may install Webflow's Bridge App during authorization; Data API access is available separately.`},paypal:{description:`Work with PayPal payments, invoices, and commerce data.`,useCase:`Payments, invoices, transactions, merchant operations`,setupNote:`PayPal exposes OAuth discovery and login for its remote agent integration. Agent-Native uses the currently live /sse endpoint; review the merchant permissions before authorizing.`},box:{description:`Search and manage files and folders in Box.`,useCase:`Files, folders, enterprise content, search, collaboration`,setupNote:`The Box integration is beta and requires an administrator to enable it. Custom clients also need Box Integration Credentials, a redirect URI, and approved scopes.`},builder:{description:`Search Builder Publish and Hybrid Space content.`,useCase:`Content models, pages, entries, Publish and Hybrid Spaces`,setupNote:`Builder CMS MCP uses OAuth with dynamic client registration. It only connects to Publish or Hybrid Spaces, and the authorization flow asks you to select the Space.`},netlify:{description:`Inspect and operate Netlify sites and deployments.`,useCase:`Sites, deployments, builds, domains, hosting operations`,setupNote:`Netlify documents a remote integration setup for supported clients. Review the site and team permissions before completing OAuth.`},zapier:{description:`Connect tools to thousands of app actions.`,useCase:`Automation, workflows, app actions, cross-service operations`,setupNote:`Zapier's agent integration uses a user-created connection and token for unlisted clients. Create the connection in Zapier, then paste its generated bearer token into the header field.`}},auth:{none:`No auth`,headers:`Header`,oauth:`OAuth`},status:{beta:`Beta`,setupRequired:`Provider setup`,clientRestricted:`Approved clients only`,verified:`Verified`,preflightOnly:`Preflight only`,restricted:`Restricted`}},observability:{noData:`No data available`,noConversations:`No conversations recorded yet`,noEvals:`No eval results recorded yet`,noExperiments:`No experiments created yet`,totalRuns:`Total runs`,totalCost:`Total cost`,avgLatency:`Avg latency`,toolSuccess:`Tool success`,thumbsUp:`Thumbs up`,avgEvalScore:`Avg eval score`,run:`Run`,model:`Model`,duration:`Duration`,cost:`Cost`,tools:`Tools`,time:`Time`,failedCount:`({{count}} failed)`,backToList:`Back to list`,promoteMustContain:`Reply must contain…`,promoteMustContainOptional:`Optional text to check for in the reply…`,promoteMustContainLabel:`Text to check for in the promoted eval reply`,promoteReviewedPromptLabel:`Manually reviewed prompt (never copied from production)`,promoteNeedsContains:`This run has no successful tool call. Enter text the reply must contain before promoting.`,input:`Input`,output:`Output`,error:`Error`,metadata:`Metadata`,notCaptured:`Not captured`,openFullConversation:`Open full conversation`,learnAboutTab:`Learn about this tab`,promoteToEval:`Promote to eval`,promotingToEval:`Promoting…`,promotedEval:`Eval dataset {{id}}`,promotedEvalHint:`agent-native eval promote {{runId}} --write evals/from-trace.eval.ts`,promoteEvalFailed:`Could not promote this run`,spans:`Spans`,type:`Type`,name:`Name`,tokens:`Tokens`,status:`Status`,totalEvals:`Total evals`,avgScore:`Avg score`,scoresByCriteria:`Scores by criteria`,overview:`Overview`,conversations:`Conversations`,evals:`Evals`,experiments:`Experiments`,feedback:`Feedback`,variants:`Variants`,created:`Created`,backToExperiments:`Back to experiments`,metrics:`Metrics`,level:`Level`,results:`Results`,variant:`Variant`,metric:`Metric`,value:`Value`,totalFeedback:`Total feedback`,thumbsDown:`Thumbs down`,frustration:`Frustration`,thumbsUpRate:`Thumbs up rate`,categories:`Categories`,review:`Human review`,reviewDescription:`Review the ask and answer, record feedback, and draft an instruction update.`,ask:`What was asked`,answer:`What the agent answered`,reviewFeedback:`Feedback`,reviewOutput:`Review output`,reviewPreview:`Preview output`,reviewPreviewUnavailable:`Preview unavailable`,closePreview:`Hide preview`,addFeedback:`Add feedback`,draftInstruction:`Draft instruction`,closeReview:`Close`,notReviewed:`Not reviewed`,noteSaved:`Note saved`,looksGood:`Looks good`,needsChange:`Needs change`,feedbackNote:`Feedback note`,feedbackPlaceholder:`What should change or stay the same?`,saveFeedback:`Save feedback`,updateInstructions:`Update instructions`,draftNotice:`Draft only - nothing changes automatically.`,instructionTarget:`Instruction target`,agentTarget:`Agent`,developerTarget:`Developer`,skillTarget:`Skill`,instructionPlaceholder:`Write the instruction change for a human to review.`,saveUpdate:`Save draft update`,draftSaved:`Draft saved`,noReviews:`No agent outputs to review yet`,summarizeWithAgent:`Summarize with agent`,regenerateSummary:`Regenerate summary`,summarizeWithAgentHelp:`Ask the agent to read this thread, summarize the ask and outcome, and link only verified artifacts.`,regenerateSummaryHelp:`Ask the agent to refresh this summary from the latest thread and verified artifacts.`,searchReviews:`Search prompts, outcomes, people, or artifacts`,allArtifactTypes:`All types`,summarySending:`Sending request to agent…`,summaryQueued:`Request queued. The summary will appear here after the agent saves it.`,summaryFailed:`Could not send the request. Try again.`,summaryExpired:`No summary has appeared yet. You can retry, but the agent may still be working.`,readOnlyTenant:`Cross-organization review is read-only.`,showReviewDetails:`Show review details`,hideReviewDetails:`Hide review details`},error:{genericTitle:`Something went wrong`,genericDetails:`An unexpected error occurred.`,notFoundTitle:`Page not found`,notFoundDetails:`This page doesn't exist. It may have been moved or deleted.`,statusTitle:`{{status}} Error`,goHome:`Go home`},runtimeConfig:{issue_one:`{{count}} issue`,issue_other:`{{count}} issues`,errorTitle:`Configuration error`,warningTitle:`Configuration warning`,showDetails:`Show details`,hideDetails:`Hide details`,copyPrompt:`Copy prompt`,copied:`Copied`,copyFailed:`Copy failed`}},Lr=globalThis.__AGENT_NATIVE_LOCALE_CONTEXT__??(globalThis.__AGENT_NATIVE_LOCALE_CONTEXT__=(0,B.createContext)(null));function Rr(){return(0,B.useContext)(Lr)}function zr(e,t=``,n={}){if(!e||typeof e!=`object`||Array.isArray(e))return n;for(let[r,i]of Object.entries(e)){let e=t?`${t}.${r}`:r;typeof i==`string`?n[e]=i:zr(i,e,n)}return n}zr(Ir),typeof window<`u`&&window.document&&window.document.createElement;function J(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)}}function Br(e,t=[]){let n=[];function r(t,r){let i=B.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=B.useMemo(()=>o,Object.values(o));return(0,z.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=B.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>B.createContext(e));return function(n){let r=n?.[e]||t;return B.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Vr(i,...t)]}function Vr(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return B.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Hr=e(d(),1),Y=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=we(`Primitive.${t}`),r=B.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,z.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ur(e,t){e&&Hr.flushSync(()=>e.dispatchEvent(t))}function Wr(e){let t=B.useRef(e);return B.useEffect(()=>{t.current=e}),B.useMemo(()=>((...e)=>t.current?.(...e)),[])}var Gr=`DismissableLayer`,Kr=`dismissableLayer.update`,qr=`dismissableLayer.pointerDownOutside`,Jr=`dismissableLayer.focusOutside`,Yr,Xr=B.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Zr=B.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=B.useContext(Xr),[d,f]=B.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=B.useState({}),h=V(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=B.useRef(!1),C=ti(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:B.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),w=ni(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),T=d?y===g.length-1:!1,E=Wr(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return B.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T,E]),B.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Yr=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ri(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=Yr))}},[d,p,n,u]),B.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ri())},[d,u]),B.useEffect(()=>{let e=()=>m({});return document.addEventListener(Kr,e),()=>document.removeEventListener(Kr,e)},[]),(0,z.jsx)(Y.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:J(e.onFocusCapture,w.onFocusCapture),onBlurCapture:J(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,C.onPointerDownCapture)})});Zr.displayName=Gr;var Qr=`DismissableLayerBranch`,$r=B.forwardRef((e,t)=>{let n=B.useContext(Xr),r=B.useRef(null),i=V(t,r);return B.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,z.jsx)(Y.div,{...e,ref:i})});$r.displayName=Qr;var ei=()=>!0;function ti(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=ei}=t,s=Wr(e),c=B.useRef(!1),l=B.useRef(!1),u=B.useRef(new Map),d=B.useRef(()=>{});return B.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}function t(){return Array.from(u.current.values()).some(Boolean)}function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}function p(e){l.current&&u.current.set(e.type,!1)}let m=a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||ii(qr,s,p,{discrete:!0})};if(!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:()=>c.current=!0}}function ni(e,t=globalThis?.document){let n=Wr(e),r=B.useRef(!1);return B.useEffect(()=>{let e=e=>{e.target&&!r.current&&ii(Jr,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ri(){let e=new CustomEvent(Kr);document.dispatchEvent(e)}function ii(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Ur(i,a):i.dispatchEvent(a)}var ai=0,oi=null;function si(){B.useEffect(()=>{oi||={start:ci(),end:ci()};let{start:e,end:t}=oi;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),ai++,()=>{ai===1&&(oi?.start.remove(),oi?.end.remove(),oi=null),ai=Math.max(0,ai-1)}},[])}function ci(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var li=`focusScope.autoFocusOnMount`,ui=`focusScope.autoFocusOnUnmount`,di={bubbles:!1,cancelable:!0},fi=`FocusScope`,pi=B.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=B.useState(null),l=Wr(i),u=Wr(a),d=B.useRef(null),f=V(t,c),p=B.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;B.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:bi(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||bi(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&bi(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),B.useEffect(()=>{if(s){xi.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(li,di);s.addEventListener(li,l),s.dispatchEvent(t),t.defaultPrevented||(mi(wi(gi(s)),{select:!0}),document.activeElement===e&&bi(s))}return()=>{s.removeEventListener(li,l),setTimeout(()=>{let t=new CustomEvent(ui,di);s.addEventListener(ui,u),s.dispatchEvent(t),t.defaultPrevented||bi(e??document.body,{select:!0}),s.removeEventListener(ui,u),xi.remove(p)},0)}}},[s,l,u,p]);let m=B.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=hi(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&bi(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&bi(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,z.jsx)(Y.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});pi.displayName=fi;function mi(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(bi(r,{select:t}),document.activeElement!==n)return}function hi(e){let t=gi(e);return[_i(t,e),_i(t.reverse(),e)]}function gi(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function _i(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):vi(r,{upTo:t})))return r}function vi(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function yi(e){return e instanceof HTMLInputElement&&`select`in e}function bi(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&yi(e)&&t&&e.select()}}var xi=Si();function Si(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Ci(e,t),e.unshift(t)},remove(t){e=Ci(e,t),e[0]?.resume()}}}function Ci(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function wi(e){return e.filter(e=>e.tagName!==`A`)}var Ti=globalThis?.document?B.useLayoutEffect:()=>{},Ei=B.useId||(()=>void 0),Di=0;function Oi(e){let[t,n]=B.useState(Ei());return Ti(()=>{e||n(e=>e??String(Di++))},[e]),e||(t?`radix-${t}`:``)}var ki=[`top`,`right`,`bottom`,`left`],Ai=Math.min,X=Math.max,ji=Math.round,Mi=Math.floor,Ni=e=>({x:e,y:e}),Pi={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Fi(e,t,n){return X(e,Ai(t,n))}function Ii(e,t){return typeof e==`function`?e(t):e}function Li(e){return e.split(`-`)[0]}function Ri(e){return e.split(`-`)[1]}function zi(e){return e===`x`?`y`:`x`}function Bi(e){return e===`y`?`height`:`width`}function Vi(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Hi(e){return zi(Vi(e))}function Ui(e,t,n){n===void 0&&(n=!1);let r=Ri(e),i=Hi(e),a=Bi(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Qi(o)),[o,Qi(o)]}function Wi(e){let t=Qi(e);return[Gi(e),t,Gi(t)]}function Gi(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ki=[`left`,`right`],qi=[`right`,`left`],Ji=[`top`,`bottom`],Yi=[`bottom`,`top`];function Xi(e,t,n){switch(e){case`top`:case`bottom`:return n?t?qi:Ki:t?Ki:qi;case`left`:case`right`:return t?Ji:Yi;default:return[]}}function Zi(e,t,n,r){let i=Ri(e),a=Xi(Li(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Gi)))),a}function Qi(e){let t=Li(e);return Pi[t]+e.slice(t.length)}function $i(e){return{top:0,right:0,bottom:0,left:0,...e}}function ea(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:$i(e)}function ta(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function na(e,t,n){let{reference:r,floating:i}=e,a=Vi(t),o=Hi(t),s=Bi(o),c=Li(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Ri(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function ra(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Ii(t,e),p=ea(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ta(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ta(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var ia=50,aa=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ra},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=na(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<ia&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=na(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},oa=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Ii(e,t)||{};if(l==null)return{};let d=ea(u),f={x:n,y:r},p=Hi(i),m=Bi(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Ai(d[_],T),D=Ai(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=Fi(O,A,k),M=!c.arrow&&Ri(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,N=M?A<O?A-O:A-k:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),sa=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Ii(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Li(r),_=Vi(o),v=Li(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Qi(o)]:Wi(o)),x=p!==`none`;!d&&x&&b.push(...Zi(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Ui(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Vi(t))||T.every(e=>Vi(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Vi(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function ca(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function la(e){return ki.some(t=>e[t]>=0)}var ua=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Ii(e,t);switch(i){case`referenceHidden`:{let e=ca(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:la(e)}}}case`escaped`:{let e=ca(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:la(e)}}}default:return{}}}}},da=new Set([`left`,`top`]);async function fa(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Li(n),s=Ri(n),c=Vi(n)===`y`,l=da.has(o)?-1:1,u=a&&c?-1:1,d=Ii(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var pa=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await fa(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ma=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ii(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Vi(Li(i)),p=zi(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Fi(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Fi(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},ha=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Ii(e,t),u={x:n,y:r},d=Vi(i),f=zi(d),p=u[f],m=u[d],h=Ii(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=da.has(Li(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ga=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Ii(e,t),u=await o.detectOverflow(t,l),d=Li(i),f=Ri(i),p=Vi(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Ai(h-u[g],v),x=Ai(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=X(u.left,0),t=X(u.right,0),n=X(u.top,0),r=X(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:X(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:X(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function _a(){return typeof window<`u`}function va(e){return ba(e)?(e.nodeName||``).toLowerCase():`#document`}function Z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ya(e){return((ba(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function ba(e){return _a()?e instanceof Node||e instanceof Z(e).Node:!1}function Q(e){return _a()?e instanceof Element||e instanceof Z(e).Element:!1}function xa(e){return _a()?e instanceof HTMLElement||e instanceof Z(e).HTMLElement:!1}function Sa(e){return!_a()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot}function Ca(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function wa(e){return/^(table|td|th)$/.test(va(e))}function Ta(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ea=/transform|translate|scale|rotate|perspective|filter/,Da=/paint|layout|strict|content/,Oa=e=>!!e&&e!==`none`,ka;function Aa(e){let t=Q(e)?$(e):e;return Oa(t.transform)||Oa(t.translate)||Oa(t.scale)||Oa(t.rotate)||Oa(t.perspective)||!Ma()&&(Oa(t.backdropFilter)||Oa(t.filter))||Ea.test(t.willChange||``)||Da.test(t.contain||``)}function ja(e){let t=Fa(e);for(;xa(t)&&!Na(t);){if(Aa(t))return t;if(Ta(t))return null;t=Fa(t)}return null}function Ma(){return ka??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ka}function Na(e){return/^(html|body|#document)$/.test(va(e))}function $(e){return Z(e).getComputedStyle(e)}function Pa(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fa(e){if(va(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Sa(e)&&e.host||ya(e);return Sa(t)?t.host:t}function Ia(e){let t=Fa(e);return Na(t)?e.ownerDocument?e.ownerDocument.body:e.body:xa(t)&&Ca(t)?t:Ia(t)}function La(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ia(e),i=r===e.ownerDocument?.body,a=Z(r);if(i){let e=Ra(a);return t.concat(a,a.visualViewport||[],Ca(r)?r:[],e&&n?La(e):[])}else return t.concat(r,La(r,[],n))}function Ra(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function za(e){let t=$(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=xa(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ji(n)!==a||ji(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Ba(e){return Q(e)?e:e.contextElement}function Va(e){let t=Ba(e);if(!xa(t))return Ni(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=za(t),o=(a?ji(n.width):n.width)/r,s=(a?ji(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ha=Ni(0);function Ua(e){let t=Z(e);return!Ma()||!t.visualViewport?Ha:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Wa(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Z(e)?!1:t}function Ga(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ba(e),o=Ni(1);t&&(r?Q(r)&&(o=Va(r)):o=Va(e));let s=Wa(a,n,r)?Ua(a):Ni(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Z(a),t=r&&Q(r)?Z(r):r,n=e,i=Ra(n);for(;i&&r&&t!==n;){let e=Va(i),t=i.getBoundingClientRect(),r=$(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Z(i),i=Ra(n)}}return ta({width:u,height:d,x:c,y:l})}function Ka(e,t){let n=Pa(e).scrollLeft;return t?t.left+n:Ga(ya(e)).left+n}function qa(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ka(e,n),y:n.top+t.scrollTop}}function Ja(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=ya(r),s=t?Ta(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ni(1),u=Ni(0),d=xa(r);if((d||!d&&!a)&&((va(r)!==`body`||Ca(o))&&(c=Pa(r)),d)){let e=Ga(r);l=Va(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?qa(o,c):Ni(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ya(e){return Array.from(e.getClientRects())}function Xa(e){let t=ya(e),n=Pa(e),r=e.ownerDocument.body,i=X(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=X(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ka(e),s=-n.scrollTop;return $(r).direction===`rtl`&&(o+=X(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Za=25;function Qa(e,t){let n=Z(e),r=ya(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Ma();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Ka(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Za&&(a-=o)}else l<=Za&&(a+=l);return{width:a,height:o,x:s,y:c}}function $a(e,t){let n=Ga(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=xa(e)?Va(e):Ni(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function eo(e,t,n){let r;if(t===`viewport`)r=Qa(e,n);else if(t===`document`)r=Xa(ya(e));else if(Q(t))r=$a(t,n);else{let n=Ua(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ta(r)}function to(e,t){let n=Fa(e);return n===t||!Q(n)||Na(n)?!1:$(n).position===`fixed`||to(n,t)}function no(e,t){let n=t.get(e);if(n)return n;let r=La(e,[],!1).filter(e=>Q(e)&&va(e)!==`body`),i=null,a=$(e).position===`fixed`,o=a?Fa(e):e;for(;Q(o)&&!Na(o);){let t=$(o),n=Aa(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Ca(o)&&!n&&to(e,o))?r=r.filter(e=>e!==o):i=t,o=Fa(o)}return t.set(e,r),r}function ro(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ta(t)?[]:no(t,this._c):[].concat(n),r],o=eo(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=eo(t,a[e],i);s=X(n.top,s),c=Ai(n.right,c),l=Ai(n.bottom,l),u=X(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function io(e){let{width:t,height:n}=za(e);return{width:t,height:n}}function ao(e,t,n){let r=xa(t),i=ya(t),a=n===`fixed`,o=Ga(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Ni(0);function l(){c.x=Ka(i)}if(r||!r&&!a)if((va(t)!==`body`||Ca(i))&&(s=Pa(t)),r){let e=Ga(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?qa(i,s):Ni(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function oo(e){return $(e).position===`static`}function so(e,t){if(!xa(e)||$(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return ya(e)===n&&(n=n.ownerDocument.body),n}function co(e,t){let n=Z(e);if(Ta(e))return n;if(!xa(e)){let t=Fa(e);for(;t&&!Na(t);){if(Q(t)&&!oo(t))return t;t=Fa(t)}return n}let r=so(e,t);for(;r&&wa(r)&&oo(r);)r=so(r,t);return r&&Na(r)&&oo(r)&&!Aa(r)?n:r||ja(e)||n}var lo=async function(e){let t=this.getOffsetParent||co,n=this.getDimensions,r=await n(e.floating);return{reference:ao(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function uo(e){return $(e).direction===`rtl`}var fo={convertOffsetParentRelativeRectToViewportRelativeRect:Ja,getDocumentElement:ya,getClippingRect:ro,getOffsetParent:co,getElementRects:lo,getClientRects:Ya,getDimensions:io,getScale:Va,isElement:Q,isRTL:uo};function po(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mo(e,t){let n=null,r,i=ya(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Mi(d),h=Mi(i.clientWidth-(u+f)),g=Mi(i.clientHeight-(d+p)),_=Mi(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:X(0,Ai(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!po(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function ho(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Ba(e),u=i||a?[...l?La(l):[],...t?La(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?mo(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Ga(e):null;c&&g();function g(){let t=Ga(e);h&&!po(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var go=pa,_o=ma,vo=sa,yo=ga,bo=ua,xo=oa,So=ha,Co=(e,t,n)=>{let r=new Map,i={platform:fo,...n},a={...i.platform,_c:r};return aa(e,t,{...i,platform:a})},wo=typeof document<`u`?B.useLayoutEffect:function(){};function To(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!To(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!To(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Eo(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Do(e,t){let n=Eo(e);return Math.round(t*n)/n}function Oo(e){let t=B.useRef(e);return wo(()=>{t.current=e}),t}function ko(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=B.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=B.useState(r);To(f,r)||p(r);let[m,h]=B.useState(null),[g,_]=B.useState(null),v=B.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=B.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=B.useRef(null),C=B.useRef(null),w=B.useRef(u),T=c!=null,E=Oo(c),D=Oo(i),O=Oo(l),k=B.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Co(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!To(w.current,t)&&(w.current=t,Hr.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);wo(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=B.useRef(!1);wo(()=>(A.current=!0,()=>{A.current=!1}),[]),wo(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=B.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=B.useMemo(()=>({reference:b,floating:x}),[b,x]),N=B.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Do(M.floating,u.x),r=Do(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Eo(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return B.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var Ao=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:xo({element:r.current,padding:i}).fn(n):r?xo({element:r,padding:i}).fn(n):{}}}},jo=(e,t)=>{let n=go(e);return{name:n.name,fn:n.fn,options:[e,t]}},Mo=(e,t)=>{let n=_o(e);return{name:n.name,fn:n.fn,options:[e,t]}},No=(e,t)=>({fn:So(e).fn,options:[e,t]}),Po=(e,t)=>{let n=vo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Fo=(e,t)=>{let n=yo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Io=(e,t)=>{let n=bo(e);return{name:n.name,fn:n.fn,options:[e,t]}},Lo=(e,t)=>{let n=Ao(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ro=`Arrow`,zo=B.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,z.jsx)(Y.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,z.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});zo.displayName=Ro;var Bo=zo;function Vo(e){let[t,n]=B.useState(void 0);return Ti(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var Ho=`Popper`,[Uo,Wo]=Br(Ho),[Go,Ko]=Uo(Ho),qo=e=>{let{__scopePopper:t,children:n}=e,[r,i]=B.useState(null),[a,o]=B.useState(void 0);return(0,z.jsx)(Go,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})};qo.displayName=Ho;var Jo=`PopperAnchor`,Yo=B.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=Ko(Jo,n),o=B.useRef(null),s=a.onAnchorChange,c=V(t,B.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=B.useRef(null);B.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&as(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,z.jsx)(Y.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})});Yo.displayName=Jo;var Xo=`PopperContent`,[Zo,Qo]=Uo(Xo),$o=B.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=Ko(Xo,n),[_,v]=B.useState(null),y=V(t,v),[b,x]=B.useState(null),S=Vo(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(l)?l:[l],O=D.length>0,k={padding:E,boundary:D.filter(rs),altBoundary:O},{refs:A,floatingStyles:j,placement:M,isPositioned:N,middlewareData:P}=ko({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>ho(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[jo({mainAxis:i+w,alignmentAxis:o}),c&&Mo({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?No():void 0,...k}),c&&Po({...k}),Fo({...k,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),b&&Lo({element:b,padding:s}),is({arrowWidth:C,arrowHeight:w}),f&&Io({strategy:`referenceHidden`,...k,boundary:O?k.boundary:void 0})]}),ee=g.setPlacementState;Ti(()=>(ee(M),()=>{ee(void 0)}),[M,ee]);let[F,te]=as(M),ne=Wr(m);Ti(()=>{N&&ne?.()},[N,ne]);let re=P.arrow?.x,ie=P.arrow?.y,I=P.arrow?.centerOffset!==0,[L,ae]=B.useState();return Ti(()=>{_&&ae(window.getComputedStyle(_).zIndex)},[_]),(0,z.jsx)(`div`,{ref:A.setFloating,"data-radix-popper-content-wrapper":``,style:{...j,transform:N?j.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:L,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(` `),...P.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,z.jsx)(Zo,{scope:n,placedSide:F,placedAlign:te,onArrowChange:x,arrowX:re,arrowY:ie,shouldHideArrow:I,children:(0,z.jsx)(Y.div,{"data-side":F,"data-align":te,...h,ref:y,style:{...h.style,animation:N?void 0:`none`}})})})});$o.displayName=Xo;var es=`PopperArrow`,ts={top:`bottom`,right:`left`,bottom:`top`,left:`right`},ns=B.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Qo(es,n),a=ts[i.placedSide];return(0,z.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,z.jsx)(Bo,{...r,ref:t,style:{...r.style,display:`block`}})})});ns.displayName=es;function rs(e){return e!==null}var is=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=as(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function as(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var os=qo,ss=Yo,cs=$o,ls=ns,us=`Portal`,ds=B.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=B.useState(!1);Ti(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Hr.createPortal((0,z.jsx)(Y.div,{...r,ref:t}),o):null});ds.displayName=us;function fs(e,t){return B.useReducer((e,n)=>t[e][n]??e,e)}var ps=e=>{let{present:t,children:n}=e,r=ms(t),i=typeof n==`function`?n({present:r.isPresent}):B.Children.only(n),a=gs(r.ref,vs(i));return typeof n==`function`||r.isPresent?B.cloneElement(i,{ref:a}):null};ps.displayName=`Presence`;function ms(e){let[t,n]=B.useState(),r=B.useRef(null),i=B.useRef(e),a=B.useRef(`none`),o=B.useRef(void 0),[s,c]=fs(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return B.useEffect(()=>{s===`mounted`?(a.current=o.current??_s(r.current),o.current=void 0):a.current=`none`},[s]),Ti(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=_s(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),Ti(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=_s(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},s=e=>{e.target===t&&(a.current=_s(r.current))};return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:B.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=_s(t)}else r.current=null;n(e)},[])}}function hs(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function gs(...e){let t=B.useRef(e);return t.current=e,B.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=hs(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():hs(n[e],null)}}},[])}function _s(e){return e?.animationName||`none`}function vs(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ys=B.useInsertionEffect||Ti;function bs({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=xs({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=B.useRef(e!==void 0);B.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,B.useCallback(t=>{if(s){let n=Ss(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function xs({defaultProp:e,onChange:t}){let[n,r]=B.useState(e),i=B.useRef(n),a=B.useRef(t);return ys(()=>{a.current=t},[t]),B.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function Ss(e){return typeof e==`function`}var Cs=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},ws=new WeakMap,Ts=new WeakMap,Es={},Ds=0,Os=function(e){return e&&(e.host||Os(e.parentNode))},ks=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Os(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},As=function(e,t,n,r){var i=ks(t,Array.isArray(e)?e:[e]);Es[n]||(Es[n]=new WeakMap);var a=Es[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(ws.get(e)||0)+1,l=(a.get(e)||0)+1;ws.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ts.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Ds++,function(){o.forEach(function(e){var t=ws.get(e)-1,i=a.get(e)-1;ws.set(e,t),a.set(e,i),t||(Ts.has(e)||e.removeAttribute(r),Ts.delete(e)),i||e.removeAttribute(n)}),Ds--,Ds||(ws=new WeakMap,ws=new WeakMap,Ts=new WeakMap,Es={})}},js=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Cs(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),As(r,i,n,`aria-hidden`)):function(){return null}},Ms=function(){return Ms=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ms.apply(this,arguments)};function Ns(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ps(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Fs=`right-scroll-bar-position`,Is=`width-before-scroll-bar`,Ls=`with-scroll-bars-hidden`,Rs=`--removed-body-scroll-bar-size`;function zs(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Bs(e,t){var n=(0,B.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Vs=typeof window<`u`?B.useLayoutEffect:B.useEffect,Hs=new WeakMap;function Us(e,t){var n=Bs(t||null,function(t){return e.forEach(function(e){return zs(e,t)})});return Vs(function(){var t=Hs.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||zs(e,null)}),i.forEach(function(e){r.has(e)||zs(e,a)})}Hs.set(n,e)},[e]),n}function Ws(e){return e}function Gs(e,t){t===void 0&&(t=Ws);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Ks(e){e===void 0&&(e={});var t=Gs(null);return t.options=Ms({async:!0,ssr:!1},e),t}var qs=function(e){var t=e.sideCar,n=Ns(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return B.createElement(r,Ms({},n))};qs.isSideCarExport=!0;function Js(e,t){return e.useMedium(t),qs}var Ys=Ks(),Xs=function(){},Zs=B.forwardRef(function(e,t){var n=B.useRef(null),r=B.useState({onScrollCapture:Xs,onWheelCapture:Xs,onTouchMoveCapture:Xs}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Ns(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=Us([n,t]),C=Ms(Ms({},b),i);return B.createElement(B.Fragment,null,u&&B.createElement(x,{sideCar:Ys,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?B.cloneElement(B.Children.only(s),Ms(Ms({},C),{ref:S})):B.createElement(v,Ms({},C,{className:c,ref:S}),s))});Zs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Zs.classNames={fullWidth:Is,zeroRight:Fs};var Qs,$s=function(){if(Qs)return Qs;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function ec(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=$s();return t&&e.setAttribute(`nonce`,t),e}function tc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function nc(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var rc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ec())&&(tc(t,n),nc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ic=function(){var e=rc();return function(t,n){B.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ac=function(){var e=ic();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},oc={left:0,top:0,right:0,gap:0},sc=function(e){return parseInt(e||``,10)||0},cc=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[sc(n),sc(r),sc(i)]},lc=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return oc;var t=cc(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},uc=ac(),dc=`data-scroll-locked`,fc=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
||
.${Ls} {
|
||
overflow: hidden ${r};
|
||
padding-right: ${s}px ${r};
|
||
}
|
||
body[${dc}] {
|
||
overflow: hidden ${r};
|
||
overscroll-behavior: contain;
|
||
${[t&&`position: relative ${r};`,n===`margin`&&`
|
||
padding-left: ${i}px;
|
||
padding-top: ${a}px;
|
||
padding-right: ${o}px;
|
||
margin-left:0;
|
||
margin-top:0;
|
||
margin-right: ${s}px ${r};
|
||
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
||
}
|
||
|
||
.${Fs} {
|
||
right: ${s}px ${r};
|
||
}
|
||
|
||
.${Is} {
|
||
margin-right: ${s}px ${r};
|
||
}
|
||
|
||
.${Fs} .${Fs} {
|
||
right: 0 ${r};
|
||
}
|
||
|
||
.${Is} .${Is} {
|
||
margin-right: 0 ${r};
|
||
}
|
||
|
||
body[${dc}] {
|
||
${Rs}: ${s}px;
|
||
}
|
||
`},pc=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},mc=function(){B.useEffect(function(){return document.body.setAttribute(dc,(pc()+1).toString()),function(){var e=pc()-1;e<=0?document.body.removeAttribute(dc):document.body.setAttribute(dc,e.toString())}},[])},hc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;mc();var a=B.useMemo(function(){return lc(i)},[i]);return B.createElement(uc,{styles:fc(a,!t,i,n?``:`!important`)})},gc=!1;if(typeof window<`u`)try{var _c=Object.defineProperty({},"passive",{get:function(){return gc=!0,!0}});window.addEventListener(`test`,_c,_c),window.removeEventListener(`test`,_c,_c)}catch{gc=!1}var vc=gc?{passive:!1}:!1,yc=function(e){return e.tagName===`TEXTAREA`},bc=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!yc(e)&&n[t]===`visible`)},xc=function(e){return bc(e,`overflowY`)},Sc=function(e){return bc(e,`overflowX`)},Cc=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Ec(e,r)){var i=Dc(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},wc=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Tc=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Ec=function(e,t){return e===`v`?xc(t):Sc(t)},Dc=function(e,t){return e===`v`?wc(t):Tc(t)},Oc=function(e,t){return e===`h`&&t===`rtl`?-1:1},kc=function(e,t,n,r,i){var a=Oc(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Dc(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Ec(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Ac=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jc=function(e){return[e.deltaX,e.deltaY]},Mc=function(e){return e&&`current`in e?e.current:e},Nc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Pc=function(e){return`
|
||
.block-interactivity-${e} {pointer-events: none;}
|
||
.allow-interactivity-${e} {pointer-events: all;}
|
||
`},Fc=0,Ic=[];function Lc(e){var t=B.useRef([]),n=B.useRef([0,0]),r=B.useRef(),i=B.useState(Fc++)[0],a=B.useState(ac)[0],o=B.useRef(e);B.useEffect(function(){o.current=e},[e]),B.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Ps([e.lockRef.current],(e.shards||[]).map(Mc),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=B.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Ac(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Cc(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Cc(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return kc(h,t,e,h===`h`?s:c,!0)},[]),c=B.useCallback(function(e){var n=e;if(!(!Ic.length||Ic[Ic.length-1]!==a)){var r=`deltaY`in n?jc(n):Ac(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Nc(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Mc).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=B.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Rc(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=B.useCallback(function(e){n.current=Ac(e),r.current=void 0},[]),d=B.useCallback(function(t){l(t.type,jc(t),t.target,s(t,e.lockRef.current))},[]),f=B.useCallback(function(t){l(t.type,Ac(t),t.target,s(t,e.lockRef.current))},[]);B.useEffect(function(){return Ic.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,vc),document.addEventListener(`touchmove`,c,vc),document.addEventListener(`touchstart`,u,vc),function(){Ic=Ic.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,vc),document.removeEventListener(`touchmove`,c,vc),document.removeEventListener(`touchstart`,u,vc)}},[]);var p=e.removeScrollBar,m=e.inert;return B.createElement(B.Fragment,null,m?B.createElement(a,{styles:Pc(i)}):null,p?B.createElement(hc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Rc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var zc=Js(Ys,Lc),Bc=B.forwardRef(function(e,t){return B.createElement(Zs,Ms({},e,{ref:t,sideCar:zc}))});Bc.classNames=Zs.classNames;var Vc=`Popover`,[Hc,Uc]=Br(Vc,[Wo]),Wc=Wo(),[Gc,Kc]=Hc(Vc),qc=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=Wc(t),c=B.useRef(null),[l,u]=B.useState(!1),[d,f]=bs({prop:r,defaultProp:i??!1,onChange:a,caller:Vc});return(0,z.jsx)(os,{...s,children:(0,z.jsx)(Gc,{scope:t,contentId:Oi(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:B.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:B.useCallback(()=>u(!0),[]),onCustomAnchorRemove:B.useCallback(()=>u(!1),[]),modal:o,children:n})})};qc.displayName=Vc;var Jc=`PopoverAnchor`,Yc=B.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Kc(Jc,n),a=Wc(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return B.useEffect(()=>(o(),()=>s()),[o,s]),(0,z.jsx)(ss,{...a,...r,ref:t})});Yc.displayName=Jc;var Xc=`PopoverTrigger`,Zc=B.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Kc(Xc,n),a=Wc(n),o=V(t,i.triggerRef),s=(0,z.jsx)(Y.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":fl(i.open),...r,ref:o,onClick:J(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,z.jsx)(ss,{asChild:!0,...a,children:s})});Zc.displayName=Xc;var Qc=`PopoverPortal`,[$c,el]=Hc(Qc,{forceMount:void 0}),tl=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=Kc(Qc,t);return(0,z.jsx)($c,{scope:t,forceMount:n,children:(0,z.jsx)(ps,{present:n||a.open,children:(0,z.jsx)(ds,{asChild:!0,container:i,children:r})})})};tl.displayName=Qc;var nl=`PopoverContent`,rl=B.forwardRef((e,t)=>{let n=el(nl,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=Kc(nl,e.__scopePopover);return(0,z.jsx)(ps,{present:r||a.open,children:a.modal?(0,z.jsx)(al,{...i,ref:t}):(0,z.jsx)(ol,{...i,ref:t})})});rl.displayName=nl;var il=we(`PopoverContent.RemoveScroll`),al=B.forwardRef((e,t)=>{let n=Kc(nl,e.__scopePopover),r=B.useRef(null),i=V(t,r),a=B.useRef(!1);return B.useEffect(()=>{let e=r.current;if(e)return js(e)},[]),(0,z.jsx)(Bc,{as:il,allowPinchZoom:!0,children:(0,z.jsx)(sl,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:J(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:J(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:J(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),ol=B.forwardRef((e,t)=>{let n=Kc(nl,e.__scopePopover),r=B.useRef(!1),i=B.useRef(!1);return(0,z.jsx)(sl,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),sl=B.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=Kc(nl,n),p=Wc(n);return si(),(0,z.jsx)(pi,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,z.jsx)(Zr,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,z.jsx)(cs,{"data-state":fl(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),cl=`PopoverClose`,ll=B.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Kc(cl,n);return(0,z.jsx)(Y.button,{type:`button`,...r,ref:t,onClick:J(e.onClick,()=>i.onOpenChange(!1))})});ll.displayName=cl;var ul=`PopoverArrow`,dl=B.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Wc(n);return(0,z.jsx)(ls,{...i,...r,ref:t})});dl.displayName=ul;function fl(e){return e?`open`:`closed`}var pl=qc,ml=Zc,hl=tl,gl=rl,_l=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),vl=`VisuallyHidden`,yl=B.forwardRef((e,t)=>(0,z.jsx)(Y.span,{...e,ref:t,style:{..._l,...e.style}}));yl.displayName=vl;var bl=yl,[xl,Sl]=Br(`Tooltip`,[Wo]),Cl=Wo(),wl=`TooltipProvider`,Tl=700,El=`tooltip.open`,[Dl,Ol]=xl(wl),kl=e=>{let{__scopeTooltip:t,delayDuration:n=Tl,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=B.useRef(!0),s=B.useRef(!1),c=B.useRef(0);return B.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,z.jsx)(Dl,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:B.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:B.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:B.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};kl.displayName=wl;var Al=`Tooltip`,[jl,Ml]=xl(Al),Nl=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=Ol(Al,e.__scopeTooltip),l=Cl(t),[u,d]=B.useState(null),f=Oi(),p=B.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=B.useRef(!1),[_,v]=bs({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(El))):c.onClose(),a?.(e)},caller:Al}),y=B.useMemo(()=>_?g.current?`delayed-open`:`instant-open`:`closed`,[_]),b=B.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,v(!0)},[v]),x=B.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v(!1)},[v]),S=B.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,v(!0),p.current=0},h)},[h,v]);return B.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,z.jsx)(os,{...l,children:(0,z.jsx)(jl,{scope:t,contentId:f,open:_,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:B.useCallback(()=>{c.isOpenDelayedRef.current?S():b()},[c.isOpenDelayedRef,S,b]),onTriggerLeave:B.useCallback(()=>{m?x():(window.clearTimeout(p.current),p.current=0)},[x,m]),onOpen:b,onClose:x,disableHoverableContent:m,children:n})})};Nl.displayName=Al;var Pl=`TooltipTrigger`,Fl=B.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Ml(Pl,n),a=Ol(Pl,n),o=Cl(n),s=V(t,B.useRef(null),i.onTriggerChange),c=B.useRef(!1),l=B.useRef(!1),u=B.useCallback(()=>c.current=!1,[]);return B.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,z.jsx)(ss,{asChild:!0,...o,children:(0,z.jsx)(Y.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:J(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:J(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:J(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:J(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:J(e.onBlur,i.onClose),onClick:J(e.onClick,i.onClose)})})});Fl.displayName=Pl;var Il=`TooltipPortal`,[Ll,Rl]=xl(Il,{forceMount:void 0}),zl=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=Ml(Il,t);return(0,z.jsx)(Ll,{scope:t,forceMount:n,children:(0,z.jsx)(ps,{present:n||a.open,children:(0,z.jsx)(ds,{asChild:!0,container:i,children:r})})})};zl.displayName=Il;var Bl=`TooltipContent`,Vl=B.forwardRef((e,t)=>{let n=Rl(Bl,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=Ml(Bl,e.__scopeTooltip);return(0,z.jsx)(ps,{present:r||o.open,children:o.disableHoverableContent?(0,z.jsx)(Kl,{side:i,...a,ref:t}):(0,z.jsx)(Hl,{side:i,...a,ref:t})})}),Hl=B.forwardRef((e,t)=>{let n=Ml(Bl,e.__scopeTooltip),r=Ol(Bl,e.__scopeTooltip),i=B.useRef(null),a=V(t,i),[o,s]=B.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=B.useCallback(()=>{s(null),d(!1)},[d]),p=B.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Xl(r,Yl(r,n.getBoundingClientRect())),a=Zl(t.getBoundingClientRect()),o=$l([...i,...a]);s(o),d(!0)},[d]);return B.useEffect(()=>()=>f(),[f]),B.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),B.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Ql(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,z.jsx)(Kl,{...e,ref:a})}),[Ul,Wl]=xl(Al,{isInside:!1}),Gl=De(`TooltipContent`),Kl=B.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=Ml(Bl,n),l=Cl(n),{onClose:u}=c;return B.useEffect(()=>(document.addEventListener(El,u),()=>document.removeEventListener(El,u)),[u]),B.useEffect(()=>{if(c.trigger){let e=e=>{e.target instanceof Node&&e.target.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,z.jsx)(Zr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,z.jsxs)(cs,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,z.jsx)(Gl,{children:r}),(0,z.jsx)(Ul,{scope:n,isInside:!0,children:(0,z.jsx)(bl,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});Vl.displayName=Bl;var ql=`TooltipArrow`,Jl=B.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Cl(n);return Wl(ql,n).isInside?null:(0,z.jsx)(ls,{...i,...r,ref:t})});Jl.displayName=ql;function Yl(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function Xl(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Zl(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Ql(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function $l(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),eu(t)}function eu(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var tu=kl,nu=Nl,ru=Fl,iu=zl,au=Vl,ou=`https://forms.agent-native.com/f/agent-native-feedback/_16ewV`,su=`agent-native.com`;function cu(e){return/^anon-[^\s@]+@agent-native\.com$/i.test(e??``)}var lu={"en-US":{label:`Send feedback`,placeholder:`What's working, what's broken, or what would you change?`,submit:`Send feedback`,submitting:`Sending...`,success:`Thanks for the feedback!`,loadError:`Couldn't load feedback form`,invalidUrl:`Invalid feedback URL`,emptyError:`Please write something first`,sendError:`Couldn't send feedback`,keyboardHint:`{{shortcut}} Enter to send`},"zh-CN":{label:`反馈`,placeholder:`哪些地方好用、哪里坏了,或你想改什么?`,submit:`发送反馈`,submitting:`正在发送...`,success:`感谢你的反馈!`,loadError:`无法加载反馈表单`,invalidUrl:`反馈 URL 无效`,emptyError:`请先写点内容`,sendError:`无法发送反馈`,keyboardHint:`{{shortcut}} Enter 发送`},"zh-TW":{label:`意見回饋`,placeholder:`哪些地方好用、哪裡壞了,或你想改什麼?`,submit:`送出意見回饋`,submitting:`正在送出...`,success:`感謝你的意見回饋。`,loadError:`無法載入意見回饋表單`,invalidUrl:`意見回饋 URL 無效`,emptyError:`請先輸入內容`,sendError:`無法送出意見回饋`,keyboardHint:`{{shortcut}} Enter 送出`},"es-ES":{label:`Comentarios`,placeholder:`¿Qué funciona, qué falla o qué cambiarías?`,submit:`Enviar comentarios`,submitting:`Enviando...`,success:`Gracias por tus comentarios.`,loadError:`No se pudo cargar el formulario`,invalidUrl:`URL de comentarios no válida`,emptyError:`Escribe algo primero`,sendError:`No se pudieron enviar los comentarios`,keyboardHint:`{{shortcut}} Enter para enviar`},"fr-FR":{label:`Retour`,placeholder:`Qu'est-ce qui marche, casse ou devrait changer ?`,submit:`Envoyer`,submitting:`Envoi...`,success:`Merci pour votre retour.`,loadError:`Impossible de charger le formulaire`,invalidUrl:`URL de retour invalide`,emptyError:`Écrivez quelque chose d'abord`,sendError:`Impossible d'envoyer le retour`,keyboardHint:`{{shortcut}} Entrée pour envoyer`},"de-DE":{label:`Feedback`,placeholder:`Was funktioniert, was ist kaputt, was würdest du ändern?`,submit:`Feedback senden`,submitting:`Wird gesendet...`,success:`Danke für dein Feedback!`,loadError:`Feedback-Formular konnte nicht geladen werden`,invalidUrl:`Ungültige Feedback-URL`,emptyError:`Bitte zuerst etwas schreiben`,sendError:`Feedback konnte nicht gesendet werden`,keyboardHint:`{{shortcut}} Enter zum Senden`},"ja-JP":{label:`フィードバック`,placeholder:`良い点、問題点、変更したい点を教えてください。`,submit:`送信`,submitting:`送信中...`,success:`フィードバックありがとうございます。`,loadError:`フォームを読み込めませんでした`,invalidUrl:`フィードバック URL が無効です`,emptyError:`先に内容を入力してください`,sendError:`送信できませんでした`,keyboardHint:`{{shortcut}} Enter で送信`},"ko-KR":{label:`피드백`,placeholder:`잘 되는 점, 깨진 점, 바꾸고 싶은 점을 알려주세요.`,submit:`피드백 보내기`,submitting:`보내는 중...`,success:`피드백 감사합니다.`,loadError:`피드백 양식을 불러올 수 없습니다`,invalidUrl:`피드백 URL이 올바르지 않습니다`,emptyError:`먼저 내용을 입력해 주세요`,sendError:`피드백을 보낼 수 없습니다`,keyboardHint:`{{shortcut}} Enter로 보내기`},"pt-BR":{label:`Feedback`,placeholder:`O que funciona, quebrou ou você mudaria?`,submit:`Enviar feedback`,submitting:`Enviando...`,success:`Obrigado pelo feedback!`,loadError:`Não foi possível carregar o formulário`,invalidUrl:`URL de feedback inválida`,emptyError:`Escreva algo primeiro`,sendError:`Não foi possível enviar o feedback`,keyboardHint:`{{shortcut}} Enter para enviar`},"hi-IN":{label:`फ़ीडबैक`,placeholder:`क्या काम कर रहा है, क्या टूटा है, या आप क्या बदलना चाहेंगे?`,submit:`फ़ीडबैक भेजें`,submitting:`भेजा जा रहा है...`,success:`फ़ीडबैक के लिए धन्यवाद!`,loadError:`फ़ीडबैक फ़ॉर्म लोड नहीं हुआ`,invalidUrl:`फ़ीडबैक URL अमान्य है`,emptyError:`पहले कुछ लिखें`,sendError:`फ़ीडबैक भेजा नहीं जा सका`,keyboardHint:`भेजने के लिए {{shortcut}} Enter`},"ar-SA":{label:`ملاحظات`,placeholder:`ما الذي يعمل، وما المعطل، وما الذي تريد تغييره؟`,submit:`إرسال الملاحظات`,submitting:`جار الإرسال...`,success:`شكرا لملاحظاتك!`,loadError:`تعذر تحميل نموذج الملاحظات`,invalidUrl:`رابط الملاحظات غير صالح`,emptyError:`اكتب شيئا أولا`,sendError:`تعذر إرسال الملاحظات`,keyboardHint:`{{shortcut}} Enter للإرسال`}};function uu(e){try{let t=new URL(e),n=t.pathname.indexOf(`/f/`);if(n===-1)return null;let r=t.pathname.slice(n+3).replace(/\/$/,``);return r?{endpoint:t.origin,slug:r}:null}catch{return null}}var du=new Map;async function fu(e){let t=`${e.endpoint}|${e.slug}`,n=du.get(t);return n||(n=(async()=>{let t=await fetch(`${e.endpoint}/api/forms/public/${encodeURIComponent(e.slug)}`,{headers:{Accept:`application/json`}});if(!t.ok)throw Error(`form fetch ${t.status}`);let n=await t.json(),r=n.fields.find(e=>e.type===`textarea`)??n.fields.find(e=>e.type===`text`)??n.fields[0];if(!r)throw Error(`form has no fields`);return{formId:n.id,fieldId:r.id}})(),n.catch(()=>du.delete(t)),du.set(t,n),n)}async function pu(e){let t=xu(e.url),n=t?uu(t):null;if(!n)return`unconfigured`;let r=e.value.trim();if(!r)throw Error(`Feedback is empty`);let i=await fu(n),a=cu(e.submitterEmail)?null:e.submitterEmail,o=Nn({chatSessionId:e.chatSessionId,storageKey:e.chatStorageKey,activeRunId:e.activeRunId}),s=await fetch(`${n.endpoint}/api/submit/${encodeURIComponent(i.formId)}`,{method:`POST`,headers:{"Content-Type":`application/json`,...e.idempotencyKey?{"Idempotency-Key":e.idempotencyKey}:{}},body:JSON.stringify({data:{[i.fieldId]:r},_t:e.openedAt??Date.now(),_hp:e.honeypot??``,_meta:{...a?{submitterEmail:a}:{},...o}})});if(!s.ok){let e=await s.text(),t;try{let n=JSON.parse(e);typeof n==`object`&&n&&`error`in n&&typeof n.error==`string`&&(t=n.error.trim()||void 0)}catch{throw Error(`submit failed (${s.status})`)}throw Error(t||`submit failed (${s.status})`)}return`submitted`}var mu={width:`min(380px, calc(100vw - 32px))`},hu={position:`absolute`,left:`-10000px`,top:`auto`,width:`1px`,height:`1px`,overflow:`hidden`};function gu(){let e={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1},t={};return e&&t?{...t,...e}:e??t}function _u(){return globalThis.location?.hostname}function vu(e){let t=e?.trim().toLowerCase().split(`:`)[0];return t===su||t?.endsWith(`.${su}`)===!0||t?.endsWith(`.netlify.app`)===!0||t?.endsWith(`.builder.io`)===!0}function yu(e){let t=e?.trim().toLowerCase().split(`:`)[0];return t===`localhost`||t===`127.0.0.1`||t===`[::1]`||t===`0.0.0.0`||t?.endsWith(`.local`)===!0}function bu(e,t){let n=/^[a-z][a-z\d+.-]*:/i.test(e)||!t?void 0:`https://${t}`;if(!URL.canParse(e,n))return null;let r=new URL(e,n);return r.pathname===`/feedback`&&vu(r.hostname)}function xu(e,t=_u()){let n=e===void 0?gu()?.VITE_AGENT_NATIVE_FEEDBACK_URL:e;if(typeof n==`string`&&n.trim()){let e=n.trim();return bu(e,t)===!0?ou:uu(e)?e:null}return e===void 0&&(vu(t)||yu(t))?ou:null}function Su(e){let[t,n]=(0,B.useState)(!1);(0,B.useEffect)(()=>n(!0),[]);let r=xu(e.url,t?void 0:null);return r?(0,z.jsx)(Cu,{...e,url:r}):null}function Cu({variant:e=`sidebar`,label:t,url:n,className:r,side:i,align:a=`end`,placeholder:o,initialValue:s,chatSessionId:c,chatStorageKey:l,open:u,onOpenChange:d,trigger:f}){let p=uu(n),{session:m}=te(),h=lu[Rr()?.locale??`en-US`]??lu[`en-US`],g=t??h.label,[_,v]=(0,B.useState)(!1),y=u??_,b=(0,B.useCallback)(e=>{u===void 0&&v(e),d?.(e)},[u,d]),[x,S]=(0,B.useState)(``),[C,w]=(0,B.useState)(``),[E,D]=(0,B.useState)(!1),[O,k]=(0,B.useState)(!1),[A,j]=(0,B.useState)(null),M=(0,B.useRef)(0),N=(0,B.useRef)(null),P=(0,B.useRef)(null);(0,B.useEffect)(()=>{if(!y)return;M.current=Date.now(),S(s??``),w(``),D(!1),k(!1),j(null),p?fu(p).catch(e=>{console.error(`[FeedbackButton] schema load failed`,e),j(h.loadError)}):j(h.invalidUrl);let e=setTimeout(()=>P.current?.focus(),30);return()=>{clearTimeout(e),N.current&&=(clearTimeout(N.current),null)}},[h.invalidUrl,h.loadError,s,y,n]);let ee=(0,B.useCallback)(async e=>{if(e?.preventDefault(),!(!p||E)){if(!x.trim()){j(h.emptyError);return}D(!0),j(null);try{let e=cu(m?.email)?null:m?.email;await pu({url:n,value:x,openedAt:M.current,honeypot:C,submitterEmail:e,chatSessionId:c,chatStorageKey:l}),k(!0),N.current=setTimeout(()=>b(!1),1400)}catch(e){D(!1),j(e instanceof Error?e.message:h.sendError)}}},[p,x,C,E,m?.email,c,l,b,h.emptyError,h.sendError]),F;F=f?(0,z.jsx)(ml,{asChild:!0,children:f}):e===`icon`?(0,z.jsx)(tu,{delayDuration:200,children:(0,z.jsxs)(nu,{children:[(0,z.jsx)(ru,{asChild:!0,children:(0,z.jsx)(ml,{asChild:!0,children:(0,z.jsx)(`button`,{type:`button`,"aria-label":g,className:hn(`flex size-9 items-center justify-center rounded-md bg-transparent text-primary hover:bg-accent/60 hover:text-primary`,r),children:(0,z.jsx)(Bn,{className:`size-4 shrink-0 text-primary`})})})}),(0,z.jsx)(iu,{children:(0,z.jsx)(au,{side:i??`right`,sideOffset:6,className:`z-[100040] overflow-hidden rounded-md border border-border bg-popover px-2 py-1 text-[11px] text-foreground shadow-md animate-in fade-in-0 zoom-in-95 origin-[var(--radix-tooltip-content-transform-origin)]`,children:g})})]})}):e===`outlined`?(0,z.jsx)(ml,{asChild:!0,children:(0,z.jsxs)(`button`,{type:`button`,"aria-label":g,className:hn(`flex h-8 items-center gap-2 rounded-md border border-border bg-transparent px-3 text-sm text-muted-foreground transition hover:border-foreground/40 hover:text-foreground`,r),children:[(0,z.jsx)(Bn,{size:14,stroke:1.5}),(0,z.jsx)(`span`,{children:g})]})}):(0,z.jsx)(ml,{asChild:!0,children:(0,z.jsxs)(`button`,{type:`button`,className:hn(`flex h-auto w-full items-center justify-start gap-2 rounded bg-transparent px-2 py-1.5 text-xs font-normal text-primary hover:bg-accent/60 hover:text-primary`,r),children:[(0,z.jsx)(Bn,{className:`size-4 shrink-0 text-primary`}),(0,z.jsx)(`span`,{children:g})]})});let ne=i??(e===`sidebar`?`top`:`bottom`),re=o??h.placeholder;return(0,z.jsxs)(pl,{open:y,onOpenChange:b,children:[F,(0,z.jsx)(hl,{children:(0,z.jsx)(gl,{side:ne,align:a,sideOffset:8,collisionPadding:16,className:`z-[100040] overflow-hidden rounded-lg border border-border bg-popover shadow-xl outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[var(--radix-popover-content-transform-origin)]`,style:mu,children:O?(0,z.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-3 px-6 py-10 text-center`,children:[(0,z.jsx)(`div`,{className:`flex h-10 w-10 items-center justify-center rounded-full bg-emerald-500/10 text-emerald-500`,children:(0,z.jsx)(T,{size:20,stroke:2.5})}),(0,z.jsx)(`div`,{className:`text-sm font-medium text-foreground`,children:h.success})]}):(0,z.jsxs)(`form`,{onSubmit:ee,className:`flex flex-col gap-3 p-3`,children:[(0,z.jsx)(`textarea`,{ref:P,value:x,onChange:e=>S(e.target.value),onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&e.key===`Enter`&&ee()},placeholder:re,rows:5,maxLength:1e4,className:`w-full resize-none rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring`}),(0,z.jsx)(`input`,{type:`text`,tabIndex:-1,autoComplete:`off`,"aria-hidden":`true`,value:C,onChange:e=>w(e.target.value),style:hu}),(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,z.jsx)(`div`,{className:hn(`text-[11px]`,A?`text-destructive`:`text-muted-foreground/75`),children:A??h.keyboardHint.replace(`{{shortcut}}`,/Mac|iPhone|iPad/.test(navigator.userAgent)?`Cmd`:`Ctrl`)}),(0,z.jsx)(`button`,{type:`submit`,disabled:E||!x.trim(),className:`inline-flex h-8 items-center justify-center rounded-md bg-primary px-3 text-xs font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50`,children:E?h.submitting:h.submit})]})]})})})]})}function wu({feedbackLabel:e=`Send feedback`,feedbackPlaceholder:t=`Describe what happened before this error appeared.`,githubLabel:n=`Open GitHub issue`,className:r,feedbackClassName:i,githubClassName:a,side:o=`top`,align:s=`center`,...c}){let l=Rn({...c,prompt:c.prompt??t}),u=zn(c);return(0,z.jsxs)(`div`,{className:hn(`flex flex-col items-center gap-2`,r),children:[(0,z.jsx)(Su,{variant:`outlined`,label:e,placeholder:t,initialValue:l,side:o,align:s,className:hn(`h-8 text-xs`,i)}),(0,z.jsxs)(`a`,{href:u,target:`_blank`,rel:`noreferrer`,className:hn(`inline-flex h-8 items-center gap-1.5 rounded-md px-2 text-xs text-muted-foreground underline-offset-4 hover:bg-muted/60 hover:text-foreground hover:underline`,a),children:[(0,z.jsx)(Vn,{className:`size-3.5`}),n]})]})}var Tu=`inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-4 text-sm font-medium text-primary-foreground shadow-sm hover:bg-primary/90 cursor-pointer`,Eu={"en-US":{loadingLatest:`Loading the latest version...`,genericTitle:`Something went wrong`,genericDetails:`An unexpected error occurred.`,notFoundTitle:`Page not found`,notFoundDetails:`We couldn't find this page.`,statusTitle:e=>`${e} Error`,goHome:`Go home`,sendFeedback:`Send feedback`,feedbackPlaceholder:`Describe what happened before this error appeared.`,openGitHubIssue:`Open GitHub issue`},"zh-CN":{loadingLatest:`正在加载最新版本...`,genericTitle:`出错了`,genericDetails:`发生了意外错误。`,notFoundTitle:`页面未找到`,notFoundDetails:`我们找不到这个页面。`,statusTitle:e=>`${e} 错误`,goHome:`回到首页`,sendFeedback:`发送反馈`,feedbackPlaceholder:`描述此错误出现前发生了什么。`,openGitHubIssue:`打开 GitHub issue`},"zh-TW":{loadingLatest:`正在載入最新版本...`,genericTitle:`發生錯誤`,genericDetails:`發生未預期的錯誤。`,notFoundTitle:`找不到頁面`,notFoundDetails:`找不到這個頁面。`,statusTitle:e=>`${e} 錯誤`,goHome:`回首頁`,sendFeedback:`傳送意見回饋`,feedbackPlaceholder:`描述此錯誤出現前發生了什麼。`,openGitHubIssue:`開啟 GitHub issue`},"es-ES":{loadingLatest:`Cargando la versión más reciente...`,genericTitle:`Algo salió mal`,genericDetails:`Se produjo un error inesperado.`,notFoundTitle:`Página no encontrada`,notFoundDetails:`No pudimos encontrar esta página.`,statusTitle:e=>`Error ${e}`,goHome:`Ir al inicio`,sendFeedback:`Enviar comentarios`,feedbackPlaceholder:`Describe qué pasó antes de que apareciera este error.`,openGitHubIssue:`Abrir issue en GitHub`},"fr-FR":{loadingLatest:`Chargement de la dernière version...`,genericTitle:`Un problème est survenu`,genericDetails:`Une erreur inattendue s'est produite.`,notFoundTitle:`Page introuvable`,notFoundDetails:`Nous n'avons pas trouvé cette page.`,statusTitle:e=>`Erreur ${e}`,goHome:`Accueil`,sendFeedback:`Envoyer un retour`,feedbackPlaceholder:`Décrivez ce qui s'est passé avant cette erreur.`,openGitHubIssue:`Ouvrir une issue GitHub`},"de-DE":{loadingLatest:`Neueste Version wird geladen...`,genericTitle:`Etwas ist schiefgelaufen`,genericDetails:`Ein unerwarteter Fehler ist aufgetreten.`,notFoundTitle:`Seite nicht gefunden`,notFoundDetails:`Wir konnten diese Seite nicht finden.`,statusTitle:e=>`Fehler ${e}`,goHome:`Zur Startseite`,sendFeedback:`Feedback senden`,feedbackPlaceholder:`Beschreiben Sie, was vor diesem Fehler passiert ist.`,openGitHubIssue:`GitHub-Issue öffnen`},"ja-JP":{loadingLatest:`最新バージョンを読み込み中...`,genericTitle:`問題が発生しました`,genericDetails:`予期しないエラーが発生しました。`,notFoundTitle:`ページが見つかりません`,notFoundDetails:`このページは見つかりませんでした。`,statusTitle:e=>`${e} エラー`,goHome:`ホームへ`,sendFeedback:`フィードバックを送信`,feedbackPlaceholder:`このエラーの直前に起きたことを説明してください。`,openGitHubIssue:`GitHub issue を開く`},"ko-KR":{loadingLatest:`최신 버전을 불러오는 중...`,genericTitle:`문제가 발생했습니다`,genericDetails:`예기치 않은 오류가 발생했습니다.`,notFoundTitle:`페이지를 찾을 수 없음`,notFoundDetails:`이 페이지를 찾을 수 없습니다.`,statusTitle:e=>`${e} 오류`,goHome:`홈으로 이동`,sendFeedback:`피드백 보내기`,feedbackPlaceholder:`이 오류가 나타나기 전에 무슨 일이 있었는지 적어 주세요.`,openGitHubIssue:`GitHub issue 열기`},"pt-BR":{loadingLatest:`Carregando a versão mais recente...`,genericTitle:`Algo deu errado`,genericDetails:`Ocorreu um erro inesperado.`,notFoundTitle:`Página não encontrada`,notFoundDetails:`Não encontramos esta página.`,statusTitle:e=>`Erro ${e}`,goHome:`Ir para início`,sendFeedback:`Enviar feedback`,feedbackPlaceholder:`Descreva o que aconteceu antes deste erro aparecer.`,openGitHubIssue:`Abrir issue no GitHub`},"hi-IN":{loadingLatest:`नवीनतम संस्करण लोड हो रहा है...`,genericTitle:`कुछ गलत हो गया`,genericDetails:`एक अनपेक्षित त्रुटि हुई।`,notFoundTitle:`पेज नहीं मिला`,notFoundDetails:`हमें यह पेज नहीं मिला।`,statusTitle:e=>`${e} त्रुटि`,goHome:`होम पर जाएं`,sendFeedback:`फ़ीडबैक भेजें`,feedbackPlaceholder:`इस त्रुटि से पहले क्या हुआ, उसका वर्णन करें।`,openGitHubIssue:`GitHub issue खोलें`},"ar-SA":{loadingLatest:`جار تحميل أحدث إصدار...`,genericTitle:`حدث خطأ ما`,genericDetails:`حدث خطأ غير متوقع.`,notFoundTitle:`الصفحة غير موجودة`,notFoundDetails:`تعذر العثور على هذه الصفحة.`,statusTitle:e=>`خطأ ${e}`,goHome:`العودة للرئيسية`,sendFeedback:`إرسال الملاحظات`,feedbackPlaceholder:`صف ما حدث قبل ظهور هذا الخطأ.`,openGitHubIssue:`فتح مشكلة في GitHub`}};function Du(){if(typeof window>`u`)return re;let e=window[F]?.locale,t=window.localStorage?.getItem(ee);return ne(e)??ne(t)??`en-US`}function Ou(){let[e,t]=(0,B.useState)(Du);return(0,B.useEffect)(()=>{t(Du())},[]),Eu[e]??Eu[`en-US`]}function ku(){(0,B.useEffect)(()=>{let e=document.documentElement,t=!1,n=Au(e,()=>{try{return localStorage.getItem(`theme`)}catch{return t=!0,null}},()=>window.matchMedia?.(`(prefers-color-scheme: dark)`).matches??!1);t?e.setAttribute(`data-theme-status`,`unreadable`):e.removeAttribute(`data-theme-status`),n&&e.classList.add(n)},[])}function Au(e,t,n){if(e.classList.contains(`dark`)||e.classList.contains(`light`))return;let r=e.getAttribute(`data-theme`);if(r===`dark`||r===`light`)return r;let i=t();return i===`dark`||i===`light`?i:n()?`dark`:void 0}function ju(e){return e instanceof Error?e.message:typeof e==`string`?e:``}function Mu(e){return f(e)&&e.status===404}function Nu(e){let[t,n]=(0,B.useState)(()=>s(ju(e)));return(0,B.useEffect)(()=>{if(!s(ju(e))){n(!1);return}a(e)||n(!1)},[e]),t}function Pu(){return(0,z.jsx)(`main`,{className:`flex items-center justify-center min-h-screen p-4 bg-background text-foreground`,children:(0,z.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:Ou().loadingLatest})})}function Fu({error:e}){let t=Ou(),n=Nu(e),r=(0,B.useRef)(null);if((0,B.useEffect)(()=>{!e||n||Mu(e)||r.current===e||(r.current=e,c(e,{tags:{boundary:`react-router-error-screen`},extra:{path:typeof window>`u`?void 0:window.location.pathname}}))},[e,n]),n)return(0,z.jsx)(Pu,{});let i=null,a=t.genericTitle,s=t.genericDetails;f(e)?(i=e.status,Mu(e)?(a=t.notFoundTitle,s=t.notFoundDetails):(a=t.statusTitle(e.status),s=e.statusText||s)):e instanceof Error?e.message&&(s=e.message):typeof e==`string`&&e&&(s=e),typeof console<`u`&&e&&console.error(`[ErrorBoundary]`,e);let l=Mu(e);return(0,z.jsx)(`main`,{className:`flex items-center justify-center min-h-screen p-4 bg-background text-foreground`,children:(0,z.jsxs)(`div`,{className:`flex flex-col items-center text-center max-w-md`,children:[i&&(0,z.jsx)(`span`,{className:`text-7xl font-bold tracking-tight text-muted-foreground/40`,children:i}),(0,z.jsx)(`h1`,{className:`mt-3 text-2xl font-semibold`,children:a}),(0,z.jsx)(`p`,{className:`mt-2 text-muted-foreground text-sm`,children:s}),(0,z.jsxs)(`div`,{className:`mt-6 flex flex-col items-center gap-2`,children:[(0,z.jsx)(`a`,{href:o(`/`),className:Tu,children:t.goHome}),!l&&(0,z.jsx)(wu,{appName:`Agent-Native`,title:a,details:s,status:i,issueTitle:`Error screen: ${a}`,feedbackLabel:t.sendFeedback,feedbackPlaceholder:t.feedbackPlaceholder,githubLabel:t.openGitHubIssue,feedbackClassName:`h-9`,githubClassName:`h-9`})]}),void 0]})})}function Iu(){return(0,z.jsx)(Fu,{error:h()})}function Lu(){return ku(),m()?(0,z.jsx)(Iu,{}):(0,z.jsx)(Fu,{error:void 0})}k({getDefaultProps:(e,t)=>({...t,app:N})});var Ru=()=>[{rel:`stylesheet`,href:Tn}],zu=fe();function Bu({children:e}){return(0,z.jsxs)(`html`,{lang:v(`root`)?.localeFromUrl===`en`?`en`:`th`,suppressHydrationWarning:!0,children:[(0,z.jsxs)(`head`,{children:[(0,z.jsx)(`meta`,{charSet:`utf-8`}),(0,z.jsx)(`meta`,{name:`viewport`,content:`width=device-width, initial-scale=1`}),(0,z.jsx)(`script`,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:zu}}),(0,z.jsx)(`script`,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:P}}),(0,z.jsx)(`meta`,{name:`theme-color`,content:`#0D0D0D`}),(0,z.jsx)(`meta`,{name:`mobile-web-app-capable`,content:`yes`}),(0,z.jsx)(`meta`,{name:`apple-mobile-web-app-status-bar-style`,content:`black-translucent`}),(0,z.jsx)(`meta`,{name:`apple-mobile-web-app-title`,content:M}),(0,z.jsx)(`link`,{rel:`icon`,type:`image/svg+xml`,href:o(`/favicon.svg`)}),(0,z.jsx)(`link`,{rel:`manifest`,href:o(`/manifest.json`)}),(0,z.jsx)(`link`,{rel:`apple-touch-icon`,sizes:`180x180`,href:o(`/icon-180.png`)}),(0,z.jsx)(x,{}),(0,z.jsx)(b,{})]}),(0,z.jsxs)(`body`,{children:[e,(0,z.jsx)(w,{}),(0,z.jsx)(y,{})]})]})}function Vu(){return(0,B.useEffect)(()=>{wn()},[]),null}function Hu(){return(0,B.useEffect)(()=>{let e=window.matchMedia(`(prefers-reduced-motion: reduce)`),t=()=>{document.documentElement.classList.toggle(`fx-motion`,!e.matches)};return t(),e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),null}var Uu=p(function(){let{content:e,localeFromUrl:t,shareOrigin:n}=g();return(0,z.jsx)(j,{origin:n,children:(0,z.jsx)(S,{content:e,children:(0,z.jsx)(C,{initialLocale:t===`en`?`en`:`th`,localeFromUrl:t,terms:e.site.terms,children:(0,z.jsx)(A,{cinemas:e.cinemas,children:(0,z.jsxs)(Cn,{children:[(0,z.jsx)(Vu,{}),(0,z.jsx)(Hu,{}),(0,z.jsx)(me,{children:(0,z.jsx)(_,{})})]})})})})})});export{Lu as ErrorBoundary,Bu as Layout,Uu as default,Ru as links}; |