@codexhost/cli-darwin-arm64 0.18.0-beta.3 → 0.18.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/app/codexhost-distribution.json +1 -1
- package/app/console-server.mjs +9 -4
- package/app/console-web.js +9 -4
- package/app/desktop-controller.mjs +9 -4
- package/app/host-runtime.mjs +4751 -2746
- package/app/plugins/antigravity/plugin.mjs +9 -4
- package/app/plugins/claude-code/plugin.mjs +129 -58
- package/app/plugins/codebuddy/plugin.mjs +9 -4
- package/app/plugins/codex-usage/plugin.mjs +9 -4
- package/app/plugins/copilot/plugin.mjs +9 -4
- package/app/plugins/cursor-cli/plugin.mjs +9 -4
- package/app/plugins/deepseek-harness/plugin.mjs +9 -4
- package/app/plugins/devin/plugin.mjs +9 -4
- package/app/plugins/grok/plugin.mjs +9 -4
- package/app/plugins/hermes/plugin.mjs +9 -4
- package/app/plugins/kimi-code/plugin.mjs +9 -4
- package/app/plugins/kiro-cli/plugin.mjs +9 -4
- package/app/plugins/omp/plugin.mjs +9 -4
- package/app/plugins/opencode/plugin.mjs +9 -4
- package/app/plugins/pi/plugin.mjs +9 -4
- package/app/plugins/qoder/plugin.mjs +9 -4
- package/app/plugins/qoder-cn/plugin.mjs +9 -4
- package/app/plugins/qwen-code/plugin.mjs +9 -4
- package/app/plugins/workbuddy/plugin.mjs +9 -4
- package/app/plugins/zcode/plugin.mjs +9 -4
- package/app/renderer-extension.js +9 -4
- package/app/web/assets/{index-aKvkfNJN.js → index-D1dOzBMI.js} +2 -2
- package/app/web/codexhost-settings.js +9 -4
- package/app/web/index.html +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-gateway/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-remotes/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-api-session-controller/client.js +3 -3
- package/app/web/plugins/deepseek-ai__dsh-client-connection/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +63 -63
- package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +8 -8
- package/app/web/plugins/deepseek-ai__dsh-client-ui-layout/client.js +2 -2
- package/app/web/plugins/deepseek-ai__dsh-client-ui-settings/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-settings-general/client.js +2 -2
- package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar/client.js +2 -2
- package/app/web/plugins/deepseek-ai__dsh-client-ui-tool/client.js +1 -1
- package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +8 -12
- package/app/web/plugins.json +4 -0
- package/app/web-modules/server.mjs +374 -154
- package/bin/codexhost +0 -0
- package/libexec/codexhost-shim +0 -0
- package/libexec/codexhost-updater +0 -0
- package/package.json +1 -1
|
@@ -65,7 +65,7 @@ Error generating stack: `+g.message+`
|
|
|
65
65
|
* https://github.com/bowser-js/bowser
|
|
66
66
|
* MIT License | (c) Dustin Diaz 2012-2015
|
|
67
67
|
* MIT License | (c) Denis Demchenko 2015-2026
|
|
68
|
-
*/function bC(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,SC(o.key),o)}}function kC(e,t,n){return n&&bC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function SC(e){var t=jC(e,"string");return typeof t=="symbol"?t:t+""}function jC(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var B0=(function(){function e(){}return e.getParser=function(n,o,s){if(o===void 0&&(o=!1),s===void 0&&(s=null),typeof n!="string")throw new Error("UserAgent should be a string");return new W4(n,o,s)},e.parse=function(n,o){return o===void 0&&(o=null),new W4(n,o).getResult()},kC(e,null,[{key:"BROWSER_MAP",get:function(){return K8}},{key:"ENGINE_MAP",get:function(){return lr}},{key:"OS_MAP",get:function(){return Nt}},{key:"PLATFORMS_MAP",get:function(){return Pe}}])})();B0.parse;B0.getParser;const Eu=new WeakMap,EC=new Set(["Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"]);function Y8(){const e=B0.parse(navigator.userAgent).platform.type,t=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1;return e==="mobile"||e==="tablet"||t}function MC(){return!Y8()}function di(e,t){Eu.get(e)?.();const n=()=>{e.removeAttribute("data-dsh-automatic-focus"),e.removeEventListener("blur",n),e.removeEventListener("keydown",o,!0),Eu.delete(e)},o=s=>{!s.isComposing&&!s.ctrlKey&&!s.altKey&&!s.metaKey&&EC.has(s.key)&&n()};Eu.set(e,n),e.setAttribute("data-dsh-automatic-focus",""),e.addEventListener("blur",n),e.addEventListener("keydown",o,!0),e.focus(t),e.matches(":focus")||n()}const Z0='[role="dialog"][aria-modal="true"], [role="menu"]',_s=new WeakMap;function IC(e){const t=_s.get(e)?.at(-1);if(t===void 0)return;[...e.querySelectorAll(Z0)].at(-1)===t.element&&t.close()}function J8(e){if(e===null)return!1;const t=_s.get(e.ownerDocument)?.at(-1);return t!==void 0&&!t.element.contains(e)}const U4='button:not(:disabled), input:not(:disabled), textarea:not(:disabled), select:not(:disabled), a[href], [tabindex="0"]';function W0(e,t,n){const o=S.useRef(n);o.current=n,S.useLayoutEffect(()=>{const s=e.current;if(!t||s===null)return;const l=s.ownerDocument,u=nl(l),f=l.activeElement,p=_s.get(l)??[];_s.set(l,p);const m={element:s,close:()=>{o.current()}};p.push(m);const v=s.querySelector("[data-modal-autofocus]")??s.querySelector(U4)??s;s.contains(l.activeElement)||di(v);const w=y=>{const _=u.guards(y);if(p.at(-1)!==m||y.defaultPrevented||_||y.ctrlKey||y.altKey||y.metaKey||(y.key==="Escape"&&!y.shiftKey&&(y.preventDefault(),y.repeat||o.current()),y.key!=="Tab")||l.activeElement?.closest('[role="menu"]'))return;const C=[...s.querySelectorAll(U4)].filter(L=>!L.closest("[inert], [hidden]")),I=C[0]??s,M=C.at(-1)??s,N=y.shiftKey?l.activeElement===I:l.activeElement===M;(l.activeElement===s||!s.contains(l.activeElement)||N)&&(y.preventDefault(),(y.shiftKey?M:I).focus())};return l.addEventListener("keydown",w),()=>{u.dispose();const y=p.at(-1)===m;if(p.splice(p.indexOf(m),1),l.removeEventListener("keydown",w),p.length===0&&_s.delete(l),y){const _=f instanceof HTMLElement&&f.isConnected?f:p.at(-1)?.element;_!==void 0&&di(_)}}},[e,t])}const OC="_keys_1p14q_1",LC="_key_1p14q_1",TC="_tooltip_1p14q_20",zC="_separator_1p14q_35",PC="_joined_1p14q_39",us={keys:OC,key:LC,tooltip:TC,separator:zC,joined:PC},NC="_view_1ufe2_1",RC="_withFooter_1ufe2_24",AC="_content_1ufe2_31",FC="_header_1ufe2_39",DC="_footer_1ufe2_44",$C="_footerBack_1ufe2_49",HC="_back_1ufe2_93",oo={view:NC,withFooter:RC,content:AC,header:FC,footer:DC,footerBack:$C,back:HC},Q8=S.createContext(null);function VC({target:e,backLabel:t,open:n,enterView:o,children:s}){const l=S.useRef(null),u=S.useMemo(()=>e===null?null:{target:e,backLabel:t,open:n,enterView:o,returnFocus:l},[e,t,n,o]);return c.jsx(Q8.Provider,{value:u,children:s})}function gi(){return S.useContext(Q8)}function X8({title:e,onBack:t,footerBackLabel:n,children:o,className:s,onKeyDownCapture:l}){const u=gi(),f=S.useRef(null),p=u?.target,m=u?.enterView,v=u?.returnFocus;S.useLayoutEffect(()=>m?.(),[m]),S.useLayoutEffect(()=>{const C=document.activeElement,I=C instanceof HTMLElement&&C!==document.body?C:null,M=p?.parentElement?.querySelector("[data-phone-sidebar-content]");return I&&M?.contains(I)&&v&&(v.current=I),M&&(M.inert=!0),()=>{queueMicrotask(()=>{M&&(M.inert=p?.querySelector("[data-phone-sidebar-view]")!==null);const N=document.activeElement;if(!p?.closest("[data-phone-drawer][data-open]")||N!==document.body&&N?.isConnected&&!N.matches("[data-phone-drawer]")&&M?.contains(N)!==!0)return;const L=p?.closest("[data-phone-drawer]")?.querySelector("[data-phone-sidebar-return]");(I?.isConnected&&I.getClientRects().length>0?I:v?.current?.isConnected&&v.current.getClientRects().length>0?v.current:L)?.focus({preventScroll:!0})})}},[p,v]),W0(f,u?.open===!0,t);const w=S.useRef(t);w.current=t;const y=S.useRef(u?.open===!0);if(S.useEffect(()=>{const C=y.current&&u?.open===!1;y.current=u?.open===!0,C&&w.current()},[u?.open]),u?.target==null)return null;const _=c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:oo.header,children:[c.jsx("button",{type:"button",className:oo.back,"aria-label":u.backLabel,onClick:t,children:c.jsx(cf,{})}),c.jsx("h2",{children:e})]}),o]});return zn.createPortal(c.jsx("div",{ref:f,className:pe(s,oo.view,n!==void 0&&oo.withFooter),"data-phone-sidebar-view":!0,role:"dialog","aria-modal":"true","aria-label":e,tabIndex:-1,onKeyDownCapture:l,onClick:C=>C.stopPropagation(),children:n===void 0?_:c.jsxs(c.Fragment,{children:[c.jsx("div",{className:oo.content,children:_}),c.jsx("div",{className:oo.footer,children:c.jsx("button",{type:"button",className:oo.footerBack,onClick:t,children:n})})]})}),u.target)}function zs({keys:e,variant:t="plain",className:n}){return gi()!==null?null:c.jsx("span",{className:pe(us.keys,t==="tooltip"&&us.tooltip,t==="tooltip"&&e.includes("+")&&us.joined,n),children:e.map((s,l)=>c.jsx("kbd",{className:s==="+"?us.separator:us.key,children:s},l))})}const BC="_surface_1ucg6_1",ZC="_backing_1ucg6_2",WC="_compact_1ucg6_6",UC="_material_1ucg6_21",ds={surface:BC,backing:ZC,compact:WC,material:UC},Ia=S.forwardRef(function({compact:t=!1,className:n,style:o,children:s,...l},u){const f=S.useId(),p=S.useRef(null);S.useLayoutEffect(()=>{document.body.appendChild(p.current)},[]);const m={"--dsh-menu-anchor":`--dsh-menu-${f.replaceAll(":","")}`};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{...l,ref:u,"data-menu-material":"translucent",className:pe(ds.surface,t&&ds.compact,n),style:{...o,...m},children:[c.jsx("div",{"aria-hidden":"true",className:ds.material}),s]}),zn.createPortal(c.jsx("div",{ref:p,"aria-hidden":"true","data-menu-backing":"",className:pe(ds.backing,t&&ds.compact),style:{...m,visibility:o?.visibility}}),document.body)]})}),qC="_root_15q5x_1",GC="_list_15q5x_7",KC="_submenu_15q5x_8",YC="_portal_15q5x_41",JC="_sideTop_15q5x_49",QC="_alignEnd_15q5x_54",XC="_scrollable_15q5x_19",eb="_viewport_15q5x_19",tb="_footer_15q5x_62",nb="_itemWrap_15q5x_90",rb="_item_15q5x_90",ob="_denseList_15q5x_124",ib="_label_15q5x_129",sb="_compactList_15q5x_133",ab="_itemIcon_15q5x_148",lb="_separator_15q5x_80",cb="_check_15q5x_179",ub="_itemLabel_15q5x_190",db="_shortcut_15q5x_198",fb="_shortcutKeys_15q5x_203",hb="_selected_15q5x_216",pb="_selectedFill_15q5x_221",mb="_danger_15q5x_226",gb="_phoneList_15q5x_288",$e={root:qC,list:GC,submenu:KC,portal:YC,sideTop:JC,alignEnd:QC,scrollable:XC,viewport:eb,footer:tb,itemWrap:nb,item:rb,denseList:ob,label:ib,compactList:sb,itemIcon:ab,separator:lb,check:cb,itemLabel:ub,shortcut:db,shortcutKeys:fb,selected:hb,selectedFill:pb,danger:mb,phoneList:gb};function vb({children:e,shortcut:t,icon:n,disabled:o=!1,danger:s=!1,separatorBefore:l=!1,onSelect:u}){return c.jsxs("div",{className:$e.itemWrap,children:[l&&c.jsx("div",{className:$e.separator,role:"separator"}),c.jsxs("button",{type:"button",role:"menuitem",className:pe($e.item,s&&$e.danger),disabled:o,"aria-keyshortcuts":t?.aria,onClick:u,children:[n!==void 0&&c.jsx("span",{className:$e.itemIcon,children:n}),c.jsx("span",{className:$e.itemLabel,children:e}),t!==void 0&&c.jsx("span",{"aria-hidden":"true",className:$e.shortcut,children:c.jsx(zs,{keys:t.keys,className:$e.shortcutKeys})})]})]})}function q4(e){return"type"in e&&e.type==="separator"}function G4(e){return"type"in e&&e.type==="label"}const wb={visibility:"hidden",left:0,top:0};function e7({open:e,anchor:t,items:n=[],children:o,selectedId:s,selectedIds:l,onSelect:u,onClose:f,align:p="start",side:m="bottom",portal:v=!1,closeOnPointerLeave:w=!1,dense:y=!1,compact:_=!1,autoFocus:C=!1,selection:I="check",getAnchorRect:M,footer:N,className:L,listClassName:$,phoneSidebarTitle:A,phoneSidebarDetails:W,phoneSidebarFooterBackLabel:B}){const H=gi()!==null&&A!==void 0,ee=v&&!H,Z=S.useRef(null),he=S.useRef(null),me=S.useRef(null),ne=S.useRef(null),se=S.useRef(!1),Ie=(G=!1)=>{const ve=ne.current,Be=ve!==null&&document.contains(ve)&&!ve.disabled?ve:Z.current?.querySelector("button:not(:disabled)");Be!=null&&(G?Be.focus():di(Be))},xe=()=>{const G=se.current;queueMicrotask(()=>{if(Ne.current)return;const ve=document.activeElement;(ve===null||ve===document.body||he.current?.contains(ve)===!0)&&Ie(G)})},Ne=S.useRef(e);Ne.current=e;const[ie,le]=S.useState(null),[ae,T]=S.useState(null),{arm:D,cancel:X}=G8(f);S.useLayoutEffect(()=>{if(!e||!ee){T(null);return}const G=()=>{let Ye;if(M!==void 0?Ye=M():Ye=Z.current?.getBoundingClientRect()??null,Ye===null)return;const Qe=12,vt=window.innerWidth,Ae=window.innerHeight,Ct=he.current,Kn=Ct?.offsetWidth??0,cn=Ct?.offsetHeight??0;let Xt,wt;m==="right"?(Xt=Ye.right+4,wt=Ye.top):p==="start"?(Xt=Ye.left,wt=m==="bottom"?Ye.bottom+4:Ye.top-cn-4):(Xt=Ye.right-Kn,wt=m==="bottom"?Ye.bottom+4:Ye.top-cn-4),Kn>0&&(Xt=Math.min(Math.max(Xt,Qe),vt-Kn-Qe)),cn>0&&(wt=Math.min(Math.max(wt,Ts(Qe)),Ae-cn-Qe)),T(un=>un?.left===Xt&&un.top===wt?un:{left:Xt,top:wt})};G();const ve=()=>{G(),Be=requestAnimationFrame(ve)};let Be=requestAnimationFrame(ve);return window.addEventListener("scroll",G,!0),window.addEventListener("resize",G),()=>{cancelAnimationFrame(Be),window.removeEventListener("scroll",G,!0),window.removeEventListener("resize",G)}},[e,ee,p,m,M]),S.useEffect(()=>{if(!e){ne.current=null;return}const G=document.activeElement;ne.current=G instanceof HTMLElement&&Z.current?.contains(G)===!0?G:null},[e]),S.useEffect(()=>{if(!e||!C)return;const G=he.current?.querySelector("button:not(:disabled)");me.current=G==null?null:0,G!=null&&di(G)},[e,C]),S.useEffect(()=>{if(!e){le(null),me.current=null;return}const G=nl(document),ve=Ae=>{H||!(Ae.target instanceof Node)||Z.current?.contains(Ae.target)!==!0&&he.current?.contains(Ae.target)!==!0&&f()},Be=Ae=>{if(G.guards(Ae)||J8(H?he.current:Z.current)||Ae.defaultPrevented||Ae.ctrlKey||Ae.altKey||Ae.metaKey)return;const Ct=document.activeElement,Kn=he.current?.contains(Ct)===!0,cn=Z.current?.contains(Ct)===!0||Kn;if(Ae.key==="Escape"&&!Ae.shiftKey){if(Ae.preventDefault(),Ae.repeat)return;f(),(cn||C)&&Ie()}if(Ae.key==="Tab"){const Ci=he.current;if(Ci===null||!cn)return;if(Ae.shiftKey){Ae.preventDefault(),f(),Ie(!0);return}if(Kn){if(Ct instanceof Element&&Ct.getAttribute("role")==="menuitem"){Ae.preventDefault(),se.current=!0;try{Ct.click()}finally{se.current=!1}}return}const bi=Ci.querySelector("button:not(:disabled)");if(bi===null)return;Ae.preventDefault(),bi.focus(),me.current=0;return}if(!["ArrowDown","ArrowUp","Home","End"].includes(Ae.key))return;const Xt=he.current;if(Xt===null||!cn)return;const wt=Array.from(Xt.querySelectorAll("button:not(:disabled)"));if(wt.length===0)return;const un=wt.indexOf(Ct),Yn=un>=0?un:me.current,Co=Ae.key==="Home"?0:Ae.key==="End"?wt.length-1:Yn===null?Ae.key==="ArrowDown"?0:wt.length-1:(Yn+(Ae.key==="ArrowDown"?1:-1)+wt.length)%wt.length;Ae.preventDefault(),me.current=Co,wt[Co]?.focus()},Ye=()=>{document.activeElement instanceof HTMLIFrameElement&&f()};document.addEventListener("pointerdown",ve);const Qe=Ae=>{Ae.key==="Escape"&&Be(Ae)},vt=Ae=>{Ae.key!=="Escape"&&Be(Ae)};return document.addEventListener("keydown",vt),document.addEventListener("keydown",Qe,!0),window.addEventListener("blur",Ye),()=>{G.dispose(),document.removeEventListener("pointerdown",ve),document.removeEventListener("keydown",vt),document.removeEventListener("keydown",Qe,!0),window.removeEventListener("blur",Ye)}},[e,f,C,H]),S.useEffect(()=>{e||X()},[e,X]);const ce=!n.some(G=>!q4(G)&&!G4(G)&&G.submenu!==void 0&&G.submenu.length>0),Me=G=>{if(q4(G))return c.jsx("div",{className:$e.separator,role:"separator"},G.id);if(G4(G))return c.jsx("div",{className:$e.label,role:"presentation",children:G.text},G.id);const ve=G.submenu!==void 0&&G.submenu.length>0,Be=ve&&ie===G.id,Ye=G.id===s||l?.includes(G.id)===!0;return c.jsxs("div",{className:$e.itemWrap,onMouseEnter:ve?()=>{le(G.id)}:void 0,onMouseLeave:()=>{le(null)},children:[c.jsxs("button",{type:"button",role:"menuitem",className:pe($e.item,Ye&&(I==="fill"?$e.selectedFill:$e.selected),G.danger===!0&&$e.danger),disabled:G.disabled,"aria-keyshortcuts":G.shortcut?.aria,"aria-haspopup":ve?"menu":void 0,"aria-expanded":ve?Be:void 0,onFocus:ve?()=>{le(G.id)}:void 0,onClick:()=>{if(ve){le(G.id);return}u?.(G.id)},children:[G.icon!==void 0&&c.jsx("span",{className:$e.itemIcon,children:G.icon}),c.jsx("span",{className:$e.itemLabel,children:G.label}),G.shortcut!==void 0&&c.jsx("span",{"aria-hidden":"true",className:$e.shortcut,children:c.jsx(zs,{keys:G.shortcut.keys,className:$e.shortcutKeys})}),Ye&&I==="check"&&c.jsx(mi,{className:$e.check})]}),Be&&G.submenu!==void 0&&c.jsx(Ia,{compact:_,className:pe($e.submenu,_&&$e.compactList),role:"menu",children:G.submenu.map(Qe=>c.jsxs("button",{type:"button",role:"menuitem",className:$e.item,disabled:Qe.disabled,"aria-keyshortcuts":Qe.shortcut?.aria,onClick:()=>{u?.(Qe.id),xe()},children:[Qe.icon!==void 0&&c.jsx("span",{className:$e.itemIcon,children:Qe.icon}),c.jsx("span",{className:$e.itemLabel,children:Qe.label}),Qe.shortcut!==void 0&&c.jsx("span",{"aria-hidden":"true",className:$e.shortcut,children:c.jsx(zs,{keys:Qe.shortcut.keys,className:$e.shortcutKeys})})]},Qe.id))})]},G.id)},Te=G=>{const ve=G.target instanceof Element?G.target.closest('button[role="menuitem"]'):null;ve===null||ve.getAttribute("aria-haspopup")==="menu"||ve.closest('[role="menu"]')===G.currentTarget&&le(null)},He=e&&c.jsxs(Ia,{compact:_,ref:he,className:pe($e.list,$,y&&$e.denseList,_&&$e.compactList,ce&&$e.scrollable,ee&&$e.portal,m==="top"&&!v&&$e.sideTop,p==="end"&&!v&&$e.alignEnd,H&&$e.phoneList),style:ee?ae??wb:void 0,role:"menu",onClick:G=>{G.stopPropagation();const ve=G.target instanceof Element?G.target.closest('button[role="menuitem"]'):null;ve!==null&&ve.getAttribute("aria-haspopup")!=="menu"&&xe()},onMouseOver:Te,onFocus:Te,children:[c.jsxs("div",{className:$e.viewport,role:"presentation",children:[H&&W,n.map(Me),o]}),N!==void 0&&N.length>0&&c.jsx("div",{className:$e.footer,role:"presentation",children:N.map(Me)})]});return c.jsxs("span",{ref:Z,className:pe($e.root,L),onPointerEnter:w?X:void 0,onPointerLeave:w?()=>{e&&D()}:void 0,children:[t,H?e&&c.jsx(X8,{title:A,onBack:f,footerBackLabel:B,children:He}):v?He!==!1&&zn.createPortal(He,document.body):He]})}const yb="_group_i2pru_1",xb="_start_i2pru_5",_b="_heading_i2pru_19",Mu={group:yb,start:xb,heading:_b};function Cb({label:e,children:t}){const n=S.useId();return c.jsxs("section",{role:"group","aria-labelledby":n,"data-menu-group":"",className:Mu.group,children:[c.jsx("span",{"aria-hidden":"true","data-menu-group-start":"",className:Mu.start}),c.jsx("div",{id:n,"data-menu-group-heading":"",className:Mu.heading,children:e}),t]})}function bb(e){const t=[...e.querySelectorAll(":scope > [data-menu-group]")].flatMap(v=>{const w=v.querySelector(":scope > [data-menu-group-heading]"),y=v.querySelector(":scope > [data-menu-group-start]");return w===null||y===null?[]:[{section:v,heading:w,start:y,atTop:!1,above:!1,topTime:-1/0,aboveTime:-1/0}]});if(t.length===0||typeof IntersectionObserver>"u"||typeof ResizeObserver>"u")return()=>{};const n=new Map(t.map(v=>[v.section,v])),o=new Map(t.map(v=>[v.start,v]));let s=!1,l,u;const f=v=>{const w=v.atTop&&v.above;v.heading.hasAttribute("data-stuck")!==w&&v.heading.toggleAttribute("data-stuck",w)},p=new IntersectionObserver(v=>{if(!s)for(const w of v){const y=o.get(w.target);!y||w.rootBounds===null||w.time<y.aboveTime||(y.above=w.boundingClientRect.top<w.rootBounds.top,y.aboveTime=w.time,f(y))}},{root:e,threshold:[0,1]});for(const{start:v}of t)p.observe(v);const m=new ResizeObserver(v=>{if(!s)for(const w of v){if(w.target!==e||w.contentRect.height===u)continue;u=w.contentRect.height,l?.disconnect();const y=new IntersectionObserver(_=>{if(!(s||l!==y))for(const C of _){const I=n.get(C.target);if(!I||C.rootBounds===null)continue;const M=C.rootBounds.top;C.time>=I.topTime&&(I.atTop=C.isIntersecting&&C.boundingClientRect.bottom>M,I.topTime=C.time),C.time>=I.aboveTime&&(I.above=C.boundingClientRect.top<M,I.aboveTime=C.time),f(I)}},{root:e,rootMargin:`0px 0px ${Math.min(1,u)-u}px 0px`,threshold:0});l=y;for(const{section:_}of t)y.observe(_)}});return m.observe(e),()=>{if(!s){s=!0,p.disconnect(),l?.disconnect(),m.disconnect();for(const{heading:v}of t)v.hasAttribute("data-stuck")&&v.removeAttribute("data-stuck")}}}const kb=12;function Sb(e,t,n,o=kb){const[s,l]=S.useState(t);return S.useLayoutEffect(()=>{const u=e.current;if(u===null)return;const f=()=>{l(Math.min(t,Math.max(0,u.getBoundingClientRect().bottom-Ts(o))))};return f(),window.addEventListener("resize",f),window.addEventListener("scroll",f,!0),()=>{window.removeEventListener("resize",f),window.removeEventListener("scroll",f,!0)}},[e,t,n,o]),s}function jb(e){const{open:t,anchorRef:n,panelRef:o,side:s="bottom",align:l="start",gap:u,margin:f}=e,[p,m]=S.useState(null);return S.useLayoutEffect(()=>{if(!t){m(null);return}const v=()=>{const _=n.current?.getBoundingClientRect();if(_===void 0)return;const C=o.current,I=C?.offsetWidth??0,M=C?.offsetHeight??0;let N=l==="end"?_.right-I:_.left,L=s==="top"?_.top-u-M:_.bottom+u;I>0&&(N=Math.min(Math.max(N,f),window.innerWidth-I-f)),M>0&&(L=Math.min(Math.max(L,Ts(f)),window.innerHeight-M-f)),m({left:N,top:L})};v(),window.addEventListener("scroll",v,!0),window.addEventListener("resize",v);const w=o.current;let y=null;return typeof ResizeObserver<"u"&&w!==null&&(y=new ResizeObserver(v),y.observe(w)),()=>{y?.disconnect(),window.removeEventListener("scroll",v,!0),window.removeEventListener("resize",v)}},[t,n,o,s,l,u,f]),p}function t7(e,t,n,o){S.useEffect(()=>{if(!t)return;const s=l=>{l.target instanceof Node&&e.current?.contains(l.target)!==!0&&o?.current?.contains(l.target)!==!0&&n(!1)};return document.addEventListener("pointerdown",s),()=>{document.removeEventListener("pointerdown",s)}},[e,t,n,o])}const Eb="_bubble_dcbfb_1",Mb="_label_dcbfb_31",K4={bubble:Eb,label:Mb},Y4={pointer:"pointer",keyboard:"keyboard"},Ib="data-input-modality",Ob=new Set(["Tab","Home","End","PageUp","PageDown"]);let o0=!1,gs=!1,io;function Iu(){document.documentElement.setAttribute(Ib,gs?Y4.pointer:Y4.keyboard)}function n7(){return o0}typeof window<"u"&&(window.addEventListener("pointerdown",()=>{o0=!0,gs=!0,io=void 0,Iu()},!0),window.addEventListener("keydown",e=>{if(o0=!1,e.isComposing){io=void 0;return}io=e.composedPath()[0],!(!Ob.has(e.key)&&!e.key.startsWith("Arrow"))&&(gs=!1,Iu())},!0),window.addEventListener("focusin",e=>{io===void 0||e.composedPath()[0]===io||(io=void 0,gs&&(gs=!1,Iu()))},!0),window.addEventListener("blur",()=>{io=void 0}));const i0=S.createContext(null);function Fr({label:e,shortcutKeys:t,side:n="right",align:o="center",delayMs:s=0,focusDelayMs:l=0,gap:u=8,disabled:f=!1,portal:p=!1,maxWidth:m,openOnClick:v=!1,children:w}){const y=S.useId(),_=gi()!==null,C=!_&&!!t?.length,[I,M]=S.useState(!1),N=S.useRef(null),L=w.ref,$=S.useCallback(X=>{N.current=X,typeof L=="function"?L(X):L!=null&&(L.current=X)},[L]),[A,W]=S.useState(null),B=S.useRef(null),K=A===null?null:typeof e=="function"?e():e,H=A===null?0:n==="right"?A.top+(A.bottom-A.top)/2:n==="top"?A.top-u:A.bottom+u,ee=S.useRef(null),Z=S.useRef({hover:!1,focus:!1}),he=S.useContext(i0),[me,ne]=S.useState(!1),se=S.useCallback(X=>{he?.(X)},[he]),Ie=A!==null&&!f&&(!_||!!K);S.useEffect(()=>{const X=B.current;if(A===null||!Ie||me||X===null)return;const ce=12;let Me,Te=n;const He=()=>{if(Me===void 0)return;const{inlineSize:ve,blockSize:Be}=Me,Ye=n==="right"?0:o==="end"?ve:ve/2,Qe=Math.max(ce,Math.min(A.x-Ye,window.innerWidth-ce-ve)),vt=A.bottom+u+Be<=window.innerHeight-ce,Ae=A.top-u-Be>=ce;Te==="bottom"&&!vt&&Ae?Te="top":Te==="top"&&!Ae&&vt&&(Te="bottom"),X.style.left=`${Qe+Ye}px`,X.style.top=`${Te==="right"?(A.top+A.bottom)/2:Te==="top"?A.top-u:A.bottom+u}px`,X.dataset.side=Te,X.style.visibility="visible"},G=new ResizeObserver(ve=>{Me=ve[0]?.borderBoxSize[0],He()});return G.observe(X,{box:"border-box"}),window.addEventListener("resize",He),()=>{G.disconnect(),window.removeEventListener("resize",He)}},[o,u,A,n,me,Ie]),S.useEffect(()=>(se(Ie),()=>{se(!1)}),[se,Ie]);const xe=S.useCallback(()=>{ee.current!==null&&(clearTimeout(ee.current),ee.current=null)},[]);S.useEffect(()=>(I&&(f||!v)&&M(!1),f&&(xe(),Z.current={hover:!1,focus:!1},W(null)),xe),[xe,f,v,I]);const Ne=()=>{if(f||_&&!(typeof e=="function"?e():e))return;const X=N.current;if(X===null)return;const ce=X.getBoundingClientRect();W({x:n==="right"?ce.right+10:o==="end"?ce.right:ce.left+ce.width/2,top:ce.top,bottom:ce.bottom}),se(!0)},ie=X=>{if(xe(),X<=0){Ne();return}ee.current=setTimeout(()=>{ee.current=null,Ne()},X)},le=S.useCallback(()=>{M(!1),W(null),se(!1)},[se]),ae=()=>{xe(),!Z.current.hover&&!Z.current.focus&&!I&&le()},T=S.useCallback(()=>{xe(),Z.current={hover:!1,focus:!1},le()},[xe,le]);t7(N,v&&Ie,T,B),S.useEffect(()=>{if(!v||!Ie)return;const X=ce=>{ce.key!=="Escape"&&ce.key!=="Tab"||(ce.key==="Escape"&&(ce.preventDefault(),ce.stopPropagation()),T())};return document.addEventListener("keydown",X,!0),()=>{document.removeEventListener("keydown",X,!0)}},[T,v,Ie]);const D=Ie&&!me&&c.jsxs("span",{ref:B,id:v?y:void 0,className:K4.bubble,"data-side":n,"data-portal":p||void 0,"data-pinned":I||void 0,"data-align":o,"data-has-shortcut":C||void 0,style:{left:A.x,top:H,visibility:"hidden",...m===void 0?{}:{maxWidth:m}},role:"tooltip","aria-label":t?.length?[K,t.join(" ")].filter(Boolean).join(" "):void 0,children:[K&&c.jsx("span",{className:K4.label,children:K}),t!==void 0&&t.length>0&&c.jsx(zs,{keys:t,variant:"tooltip"})]});return c.jsxs(i0.Provider,{value:ne,children:[S.cloneElement(w,{ref:$,"aria-describedby":v&&Ie?[w.props["aria-describedby"],y].filter(Boolean).join(" "):w.props["aria-describedby"],onPointerEnter:X=>{w.props.onPointerEnter?.(X),!(!_||X.pointerType==="touch")&&(Z.current.hover=!0,ie(s))},onPointerLeave:X=>{w.props.onPointerLeave?.(X),_&&(Z.current.hover=!1,xe(),I||le())},onMouseEnter:X=>{w.props.onMouseEnter?.(X),!_&&(Z.current.hover=!0,ie(s))},onMouseLeave:X=>{w.props.onMouseLeave?.(X),Z.current.hover=!1,xe(),I||le()},onClick:X=>{w.props.onClick?.(X),Z.current.focus=!1,xe(),v&&!f&&!I?(M(!0),Ne()):le()},onFocus:X=>{w.props.onFocus?.(X),!(n7()||_&&X.currentTarget.hasAttribute("data-dsh-automatic-focus"))&&(Z.current.focus=!0,ie(l))},onBlur:X=>{w.props.onBlur?.(X),Z.current.focus=!1,ae()}}),p?D!==!1&&zn.createPortal(D,document.body):D]})}const Lb="_root_ghlrl_3",Tb="_card_ghlrl_9",zb="_copyable_ghlrl_21",Pb="_feedback_ghlrl_31",Nb="_copied_ghlrl_37",Rb="_status_ghlrl_44",Ab="_preview_ghlrl_53",Fb="_inline_ghlrl_84",Db="_media_ghlrl_87",ar={root:Lb,card:Tb,copyable:zb,feedback:Pb,copied:Nb,status:Rb,preview:Ab,inline:Fb,media:Db},J4=100,Q4=420,X4=24,$b=300,so=8,Gt=8;function r7({anchor:e,content:t,openDelayMs:n=500,disabled:o=!1,copyText:s,copyLabel:l,copiedLabel:u,variant:f="compact",widthAnchorRef:p,inline:m=!1}){const v=S.useRef(null),w=S.useRef(null),y=S.useRef(null),_=S.useRef(null),C=S.useRef(null),I=S.useRef(0),M=S.useRef(!1),N=S.useRef(!0),[L,$]=S.useState("closed"),A=L!=="closed",W=L==="closing",[B,K]=S.useState(null),H=B!==null,[ee,Z]=S.useState(!1),[he,me]=S.useState(!1),ne=S.useCallback(()=>{_.current!==null&&(clearTimeout(_.current),_.current=null),C.current=null,Z(!1)},[]),se=S.useCallback(()=>{I.current+=1,ne(),$(D=>f==="preview"&&D!=="closed"?"closing":"closed")},[ne,f]),{arm:Ie,cancel:xe}=G8(se),Ne=()=>{y.current!==null&&(clearTimeout(y.current),y.current=null)};S.useEffect(()=>{if(!W)return;const D=setTimeout(()=>{$("closed")},J4);return()=>{clearTimeout(D)}},[W]),S.useEffect(()=>{o&&(Ne(),xe(),se())},[o,xe,se]),S.useEffect(()=>(N.current=!0,()=>{N.current=!1,I.current+=1,Ne(),_.current!==null&&(clearTimeout(_.current),_.current=null)}),[]),S.useEffect(()=>{if(!A||f!=="preview"&&!m)return;const D=X=>{X.key==="Escape"&&(m&&X.stopPropagation(),Ne(),xe(),se())};return window.addEventListener("keydown",D,m),()=>{window.removeEventListener("keydown",D,m)}},[A,f,m,xe,se]),S.useLayoutEffect(()=>{if(!A){K(null);return}const D=()=>{const ce=v.current;if(ce===null)return;const Me=ce.getBoundingClientRect(),Te=w.current?.offsetHeight??0;if(f==="preview"){const G=p?.current?.getBoundingClientRect()??Me,ve=Math.max(0,Math.min(G.width-X4*2,window.innerWidth-Gt*2)),Be=Ts(Gt),Ye=Math.max(Be,Me.bottom+so),Qe=Math.max(0,Me.top-so-Be),vt=Math.max(0,window.innerHeight-Ye-Gt),Ae=Qe>=Math.min(Q4,vt),Ct=Math.min(Q4,Ae?Qe:vt);K({left:Math.max(Gt,Math.min(G.left+X4,window.innerWidth-ve-Gt)),top:Ae?Math.max(Be,Me.top-Math.min(Te,Ct)-so):Ye,width:ve,maxHeight:Ct});return}if(m){const G=Math.max(Te,w.current?.scrollHeight??0),ve=Math.max(0,Math.min($b,window.innerWidth-Gt*2)),Be=Ts(Gt),Ye=Math.max(Be,Me.bottom+so),Qe=Math.max(0,Me.top-so-Be),vt=Math.max(0,window.innerHeight-Ye-Gt),Ae=G>vt&&Qe>vt,Ct=Ae?Qe:vt;K({left:Math.max(Gt,Math.min(Me.left,window.innerWidth-ve-Gt)),top:Ae?Me.top-so-Math.min(G,Ct):Ye,width:ve,maxHeight:Ct});return}const He=Me.top+Te>window.innerHeight-Gt?window.innerHeight-Te-Gt:Me.top;K({left:Me.right+so,top:He})};D();const X=(f==="preview"||m)&&typeof ResizeObserver<"u"?new ResizeObserver(D):null;for(const ce of[w.current,v.current,p?.current])ce!=null&&X?.observe(ce);return window.addEventListener("scroll",D,!0),window.addEventListener("resize",D),()=>{X?.disconnect(),window.removeEventListener("scroll",D,!0),window.removeEventListener("resize",D)}},[A,f,p,H,m]),S.useLayoutEffect(()=>{if(!A||B===null||f==="preview"||m||he)return;const D=w.current?.offsetHeight??0;B.top+D>window.innerHeight-Gt&&K({left:B.left,top:window.innerHeight-D-Gt})},[A,B,f,m,he]);const ie=async D=>{if(ee||M.current)return;M.current=!0;const X=I.current,ce=await Xa(D);M.current=!1;const Me=w.current;if(!ce||!N.current||X!==I.current||Me===null)return;const Te=Me.offsetHeight;C.current=Te>0?Te:null,Z(!0),_.current=setTimeout(ne,1e3)},le=s!==void 0,ae=D=>{w.current?.contains(D.target)||(Ne(),xe(),se())},T=A&&B!==null&&!he&&c.jsx("div",{ref:w,className:pe(ar.card,f==="preview"&&ar.preview,m&&ar.media,le&&ar.copyable,ee&&ar.feedback),"data-closing":W||void 0,style:{...B,minHeight:ee&&C.current!==null?C.current:void 0,"--dsh-hover-preview-fade":`${J4}ms`},role:le?"button":void 0,tabIndex:le?0:void 0,"aria-label":le?`${l}: ${s}`:void 0,onClick:le?D=>{const X=window.getSelection();if(X!==null&&!X.isCollapsed){for(let ce=0;ce<X.rangeCount;ce+=1)if(X.getRangeAt(ce).intersectsNode(D.currentTarget))return}ie(s)}:void 0,onKeyDown:le?D=>{D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),ie(s))}:void 0,children:ee?c.jsx("span",{className:ar.copied,"aria-hidden":"true",children:u}):t});return c.jsxs("span",{ref:v,className:pe(ar.root,m&&ar.inline),onFocus:m?D=>{!o&&D.target.matches(":focus-visible")&&(xe(),$("open"))}:void 0,onBlur:m?D=>{D.currentTarget.contains(D.relatedTarget)||(Ne(),xe(),se())}:void 0,onPointerEnter:D=>{if(!(o||m&&D.pointerType==="touch")){if(xe(),A){$("open");return}Ne(),y.current=setTimeout(()=>{$("open")},n)}},onPointerLeave:()=>{Ne(),A&&Ie()},onPointerDownCapture:ae,onClickCapture:ae,children:[c.jsx(i0.Provider,{value:me,children:e}),A&&!he&&le&&c.jsx("span",{className:ar.status,role:"status",children:ee?u:""}),T!==!1&&zn.createPortal(T,document.body)]})}const Hb="_root_7mu1n_6",Vb="_mask_7mu1n_18",Bb="_dialog_7mu1n_33",Zb="_content_7mu1n_70",Wb="_header_7mu1n_78",Ub="_title_7mu1n_86",qb="_close_7mu1n_94",Gb="_description_7mu1n_113",Kb="_body_7mu1n_122",Yb="_footer_7mu1n_130",Kt={root:Hb,mask:Vb,dialog:Bb,content:Zb,header:Wb,title:Ub,close:qb,description:Gb,body:Kb,footer:Yb};function o7({open:e,onClose:t,title:n,closeLabel:o,description:s,children:l,footer:u,className:f,contentClassName:p,onKeyDownCapture:m,headless:v=!1,backdropBlur:w=!0,shortcutModal:y,phoneSidebar:_=!1,phoneSidebarOrigin:C=!1}){const I=gi(),M=S.useRef(!1),N=S.useRef(!1);e&&!N.current&&(M.current=_&&(I?.open===!0||C)),N.current=e;const L=M.current&&I!==null,$=S.useRef(null);return W0($,e&&!L,t),e?L?c.jsxs(X8,{title:n,onBack:t,className:f,onKeyDownCapture:m,children:[v?l:c.jsxs("div",{className:pe(Kt.content,p),children:[s&&c.jsx("p",{className:Kt.description,children:s}),l!==void 0&&c.jsx("div",{className:Kt.body,children:l})]}),u!==void 0&&c.jsx("div",{className:Kt.footer,children:u})]}):zn.createPortal(c.jsxs("div",{className:Kt.root,role:"presentation",onKeyDownCapture:m,children:[c.jsx("div",{className:Kt.mask,style:w?void 0:{backdropFilter:"none"},"aria-hidden":"true",onClick:t}),c.jsx("div",{ref:$,tabIndex:-1,"data-shortcut-modal":y,className:pe(Kt.dialog,f),role:"dialog","aria-modal":"true","aria-label":n,children:v?l:c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:pe(Kt.content,p),children:[c.jsxs("div",{className:Kt.header,children:[c.jsx("h2",{className:Kt.title,children:n}),c.jsx("button",{type:"button",className:Kt.close,"aria-label":o,onClick:t,children:c.jsx(tl,{size:14})})]}),s!==void 0&&s!==""&&c.jsx("p",{className:Kt.description,children:s}),l!==void 0&&c.jsx("div",{className:Kt.body,children:l})]}),u!==void 0&&c.jsx("div",{className:Kt.footer,children:u})]})})]}),document.body):null}const Jb="_confirmation_1oi73_1",Qb="_confirmationContent_1oi73_7",Xb="_warning_1oi73_19",ek="_warningIcon_1oi73_32",tk="_acknowledgement_1oi73_38",nk="_modalAction_1oi73_68",rk="_confirmAction_1oi73_72",ao={confirmation:Jb,confirmationContent:Qb,warning:Xb,warningIcon:ek,acknowledgement:tk,modalAction:nk,confirmAction:rk};function ok({open:e,title:t,description:n,acknowledgeLabel:o,cancelLabel:s,closeLabel:l,confirmLabel:u,acknowledged:f,disabled:p=!1,onAcknowledgedChange:m,onCancel:v,onConfirm:w}){return c.jsxs(o7,{open:e,onClose:v,title:t,closeLabel:l,className:ao.confirmation,contentClassName:ao.confirmationContent,footer:c.jsxs(c.Fragment,{children:[c.jsx(r0,{variant:"outline",className:ao.modalAction,onClick:v,children:s}),c.jsx(r0,{variant:"primary",className:ao.confirmAction,disabled:p||!f,onClick:w,children:u})]}),children:[c.jsxs("div",{className:ao.warning,children:[c.jsx(Rf,{size:18,className:ao.warningIcon}),c.jsx("p",{children:n})]}),c.jsxs("label",{className:ao.acknowledgement,children:[c.jsx("input",{type:"checkbox",checked:f,disabled:p,"data-modal-autofocus":!0,onChange:y=>{m(y.currentTarget.checked)}}),c.jsx("span",{children:o})]})]})}const ik="_indicator_9rbf2_1",sk="_leaving_9rbf2_25",ak="_warning_9rbf2_35",lk="_success_9rbf2_64",ck="_icon_9rbf2_70",uk="_label_9rbf2_81",dk="_dots_9rbf2_85",fk="_secondDot_9rbf2_91",hk="_thirdDot_9rbf2_95",vn={indicator:ik,leaving:sk,warning:ak,success:lk,icon:ck,label:uk,dots:dk,secondDot:fk,thirdDot:hk},pk=150;function mk({state:e,disconnectedLabel:t,connectingLabel:n,recoveredLabel:o,reconnectActionLabel:s,restartActionLabel:l,onReconnect:u}){const[f,p]=S.useState(e),m=e===void 0&&f!==void 0;if(S.useEffect(()=>{if(e!==void 0){p(e);return}if(f===void 0)return;const y=window.setTimeout(()=>{p(void 0)},pk);return()=>{window.clearTimeout(y)}},[e,f]),f===void 0)return null;const v=m?` ${vn.leaving}`:"";if(f==="recovered")return c.jsxs("div",{className:`${vn.indicator} ${vn.success}${v}`,role:"status","aria-label":o,children:[c.jsx("span",{className:vn.icon,"aria-hidden":"true",children:c.jsx(mi,{size:14})}),c.jsx("span",{className:vn.label,children:o})]});const w=f==="connecting";return c.jsxs("button",{type:"button",className:`${vn.indicator} ${vn.warning}${v}`,"data-phase":f,"aria-label":w?l:s,onClick:u,children:[c.jsx("span",{className:vn.icon,"aria-hidden":"true",children:w?c.jsx($0,{state:"ongoing"}):c.jsx(xf,{size:14})}),c.jsx("span",{className:vn.label,children:w?c.jsxs(c.Fragment,{children:[n,c.jsxs("span",{className:vn.dots,"aria-hidden":"true",children:[c.jsx("span",{children:"."}),c.jsx("span",{className:vn.secondDot,children:"."}),c.jsx("span",{className:vn.thirdDot,children:"."})]})]}):t})]})}const vs={width:23.16,height:17.04},i7="M22.9168 1.43018C22.6713 1.31018 22.5658 1.53918 22.4223 1.65519C22.3733 1.69269 22.3318 1.74169 22.2903 1.78669C21.9317 2.1697 21.5127 2.42121 20.9657 2.39121C20.1657 2.34621 19.4827 2.59771 18.8787 3.20973C18.7502 2.45521 18.3236 2.0047 17.6746 1.71569C17.3351 1.56568 16.9916 1.41518 16.7536 1.08867C16.5876 0.856163 16.5421 0.597155 16.4591 0.341647C16.4061 0.187643 16.3536 0.0301382 16.1761 0.00363739C15.9836 -0.0263635 15.9081 0.135141 15.8326 0.270145C15.5306 0.822162 15.4136 1.43018 15.4251 2.0462C15.4516 3.43174 16.0366 4.53527 17.1991 5.3203C17.3311 5.4103 17.3651 5.5003 17.3236 5.63181C17.2441 5.90231 17.1501 6.16482 17.0671 6.43533C17.0141 6.60784 16.9351 6.64584 16.7501 6.57033C16.1121 6.30383 15.5611 5.90931 15.074 5.4328C14.2475 4.63328 13.5 3.75075 12.568 3.05973C12.349 2.89822 12.13 2.74822 11.9034 2.60522C10.9524 1.68169 12.028 0.923165 12.277 0.833162C12.5375 0.739159 12.3675 0.41615 11.5259 0.42015C10.6844 0.42365 9.91439 0.705658 8.93286 1.08117C8.78935 1.13767 8.63835 1.17867 8.48384 1.21267C7.59332 1.04367 6.66829 1.00617 5.70226 1.11517C3.88321 1.31768 2.43016 2.1777 1.36213 3.64575C0.0790928 5.4103 -0.222916 7.41536 0.146595 9.50642C0.535106 11.7105 1.66014 13.535 3.38869 14.9616C5.18125 16.4406 7.24581 17.1657 9.60138 17.0266C11.0319 16.9441 12.6245 16.7526 14.421 15.2321C14.874 15.4576 15.3496 15.5476 16.1381 15.6151C16.7456 15.6716 17.3306 15.5851 17.7836 15.4911C18.4931 15.3411 18.4441 14.6841 18.1876 14.5636C16.1081 13.595 16.5646 13.9891 16.1496 13.67C17.2061 12.42 18.8202 10.1979 19.3182 7.17235C19.3672 6.83834 19.4297 6.36783 19.4222 6.09732C19.4182 5.93231 19.4562 5.86831 19.6447 5.84931C20.1657 5.78931 20.6712 5.64681 21.1357 5.3913C22.4833 4.65528 23.0268 3.44624 23.1548 1.9972C23.1738 1.77569 23.1508 1.54668 22.9168 1.43018ZM11.1749 14.4736C9.15936 12.889 8.18184 12.3675 7.77832 12.39C7.40081 12.4125 7.46881 12.8445 7.55182 13.126C7.63882 13.404 7.75182 13.5955 7.91033 13.8396C8.01983 14.0011 8.09533 14.2411 7.80083 14.4216C7.15181 14.8231 6.02327 14.2866 5.97027 14.2601C4.65673 13.4865 3.5587 12.4655 2.78467 11.069C2.03715 9.72493 1.60314 8.28289 1.53164 6.74384C1.51264 6.37233 1.62214 6.24082 1.99215 6.17332C2.47916 6.08332 2.98118 6.06432 3.46769 6.13582C5.52476 6.43633 7.27581 7.35586 8.74385 8.8129C9.58188 9.64243 10.2159 10.634 10.8689 11.6025C11.5634 12.631 12.3105 13.611 13.262 14.4146C13.598 14.6961 13.866 14.9101 14.1225 15.0681C13.349 15.1546 12.058 15.1731 11.1749 14.4746L11.1749 14.4736ZM12.141 8.25988C12.141 8.09488 12.273 7.96338 12.439 7.96338C12.4765 7.96338 12.5105 7.97088 12.541 7.98188C12.5825 7.99688 12.6205 8.01938 12.6505 8.05338C12.7035 8.10588 12.7335 8.18088 12.7335 8.25988C12.7335 8.42489 12.6015 8.55639 12.4355 8.55639C12.2695 8.55639 12.141 8.42489 12.141 8.25988ZM15.1415 9.79893C14.949 9.87793 14.7565 9.94544 14.5715 9.95294C14.2845 9.96794 13.9715 9.85143 13.8015 9.70893C13.5375 9.48742 13.3485 9.36342 13.2695 8.97691C13.2355 8.8119 13.2545 8.55639 13.2845 8.40989C13.3525 8.09438 13.277 7.89187 13.0545 7.70787C12.8735 7.55786 12.643 7.51636 12.39 7.51636C12.2955 7.51636 12.209 7.47486 12.1445 7.44136C12.039 7.38886 11.9519 7.25735 12.035 7.09585C12.0615 7.04335 12.19 6.91584 12.22 6.89334C12.5635 6.69784 12.9595 6.76184 13.326 6.90834C13.6655 7.04735 13.9225 7.30236 14.292 7.66287C14.6695 8.09838 14.7375 8.21838 14.9525 8.54539C15.1225 8.8009 15.277 9.06341 15.3831 9.36392C15.4471 9.55142 15.3641 9.70493 15.1415 9.79893Z";function gk({size:e=24,className:t}){return c.jsx("svg",{width:e,height:e*vs.height/vs.width,className:t,viewBox:`0 0 ${vs.width} ${vs.height}`,fill:"none","aria-hidden":"true",children:c.jsx("path",{d:i7,fill:"currentColor"})})}function vk({size:e=24,className:t,includeMark:n=!0}){const o=n?182:156;return c.jsxs("svg",{width:e*o/24,height:e,className:t,viewBox:n?"0 0 182 24":"26 0 156 24",fill:"none","aria-hidden":"true",children:[c.jsx("path",{d:"M68.416 18.2447H67.0501V16.1272H68.416C69.2619 16.1272 70.1166 15.9163 70.6671 15.3304C71.2181 14.7444 71.426 13.8455 71.426 12.9471C71.426 12.0487 71.2268 11.1498 70.6671 10.5643C70.1083 9.97831 69.2619 9.76744 68.416 9.76744C67.5701 9.76744 66.7154 9.97831 66.1639 10.5643C65.6129 11.1503 65.4049 12.0487 65.4049 12.9471V21.6435H63.009V7.6582H65.4049V8.54883H65.8442C65.8918 8.49393 65.9394 8.44728 65.9875 8.40064C66.5871 7.85353 67.5049 7.6582 68.4072 7.6582C69.8212 7.6582 71.2341 8.00998 72.1607 8.98662C73.0868 9.96325 73.4143 11.4632 73.4143 12.9558C73.4143 14.4485 73.0785 15.9406 72.1607 16.925C71.2424 17.9094 69.8212 18.2457 68.416 18.2457V18.2447Z",fill:"currentColor"}),c.jsx("path",{d:"M31.9551 8.03497H33.3204V10.1525H31.9551C31.1087 10.1525 30.2545 10.3633 29.7035 10.9493C29.1525 11.5353 28.945 12.4342 28.945 13.3326C28.945 14.231 29.1447 15.1294 29.7035 15.7154C30.2623 16.3014 31.1087 16.5122 31.9551 16.5122C32.8015 16.5122 33.6562 16.3014 34.2072 15.7154C34.7582 15.1294 34.9657 14.231 34.9657 13.3326V4.62842H37.3611V18.6219H34.9657V17.7313H34.5264C34.4783 17.7857 34.4307 17.8329 34.3826 17.8795C33.7835 18.4261 32.8652 18.6219 31.9629 18.6219C30.5494 18.6219 29.136 18.2707 28.2099 17.294C27.2838 16.3174 26.9563 14.817 26.9563 13.3248C26.9563 11.8327 27.2916 10.34 28.2099 9.35561C29.136 8.37898 30.5494 8.03497 31.9551 8.03497Z",fill:"currentColor"}),c.jsx("path",{d:"M49.3786 13.1431V13.9948H42.9984V12.2996H47.2305C47.1348 11.6825 46.9113 11.1043 46.5119 10.682C45.9371 10.0727 45.0503 9.85409 44.1723 9.85409C43.2943 9.85409 42.4076 10.0727 41.8328 10.682C41.258 11.2913 41.05 12.2213 41.05 13.1435C41.05 14.0658 41.2575 15.003 41.8328 15.6046C42.4076 16.2061 43.2939 16.433 44.1723 16.433C45.0508 16.433 45.9371 16.2143 46.5119 15.6046C46.5916 15.5186 46.6635 15.4248 46.7354 15.331H49.0992C48.8918 16.0657 48.5643 16.7299 48.0691 17.2454C47.111 18.2531 45.6339 18.6205 44.1723 18.6205C42.7108 18.6205 41.2337 18.2609 40.2755 17.2454C39.3174 16.2299 38.9661 14.6828 38.9661 13.1435C38.9661 11.6043 39.3096 10.0494 40.2755 9.04168C41.242 8.03396 42.7108 7.66663 44.1723 7.66663C45.6339 7.66663 47.111 8.02618 48.0691 9.04168C49.0351 10.0572 49.3786 11.6043 49.3786 13.1435V13.1431Z",fill:"currentColor"}),c.jsx("path",{d:"M61.4045 13.1431V13.9948H55.0243V12.2996H59.2564C59.1602 11.6825 58.9372 11.1043 58.5378 10.682C57.963 10.0727 57.0762 9.85409 56.1982 9.85409C55.3202 9.85409 54.4335 10.0727 53.8587 10.682C53.2839 11.2913 53.0759 12.2213 53.0759 13.1435C53.0759 14.0658 53.2834 15.003 53.8587 15.6046C54.4335 16.2061 55.3202 16.433 56.1982 16.433C57.0762 16.433 57.963 16.2143 58.5378 15.6046C58.6179 15.5186 58.6894 15.4248 58.7608 15.331H61.1251C60.9171 16.0657 60.5897 16.7299 60.0945 17.2454C59.1364 18.2531 57.6593 18.6205 56.1982 18.6205C54.7372 18.6205 53.2596 18.2609 52.3014 17.2454C51.3432 16.2299 50.9919 14.6828 50.9919 13.1435C50.9919 11.6043 51.3355 10.0494 52.3014 9.04168C53.2678 8.03396 54.7367 7.66663 56.1982 7.66663C57.6598 7.66663 59.1364 8.02618 60.0945 9.04168C61.061 10.0572 61.4045 11.6043 61.4045 13.1435V13.1431Z",fill:"currentColor"}),c.jsx("path",{d:"M80.242 18.6214C81.7035 18.6214 83.1801 18.4105 84.1383 17.809C85.0965 17.2075 85.4482 16.2931 85.4482 15.3869C85.4482 14.4807 85.1042 13.5585 84.1383 12.9647C83.1801 12.371 81.703 12.1518 80.242 12.1518C79.6186 12.1518 79.0438 12.0658 78.6366 11.8394C78.2294 11.6047 78.0778 11.2534 78.0778 10.9017C78.0778 10.5499 78.2216 10.1908 78.6366 9.9639C79.0438 9.72921 79.6749 9.65147 80.2973 9.65147C80.9198 9.65147 81.5509 9.73747 81.9591 9.9639C82.3663 10.1986 82.5179 10.5499 82.5179 10.9017H84.9531C84.9531 9.99499 84.6421 9.07327 83.7719 8.47951C82.9017 7.88576 81.5679 7.66663 80.2424 7.66663C78.9169 7.66663 77.5837 7.8775 76.713 8.47951C75.8427 9.08104 75.5308 9.99499 75.5308 10.9017C75.5308 11.8083 75.8423 12.73 76.713 13.3238C77.5832 13.9176 78.9165 14.1367 80.2424 14.1367C80.929 14.1367 81.688 14.2227 82.1428 14.4491C82.5985 14.676 82.7579 15.0351 82.7579 15.3869C82.7579 15.7387 82.5985 16.0977 82.1428 16.3246C81.688 16.5511 80.9931 16.6371 80.3066 16.6371C79.62 16.6371 78.9169 16.5511 78.4694 16.3246C78.0224 16.0982 77.8543 15.7387 77.8543 15.3869H75.0435C75.0435 16.2935 75.3865 17.2153 76.3534 17.809C77.3194 18.4028 78.7809 18.6214 80.2424 18.6214H80.242Z",fill:"currentColor"}),c.jsx("path",{d:"M97.4733 13.1431V13.9948H91.0932V12.2996H95.3252C95.23 11.6825 95.006 11.1043 94.6071 10.682C94.0313 10.0727 93.1456 9.85409 92.2666 9.85409C91.3876 9.85409 90.5018 10.0727 89.927 10.682C89.3522 11.2913 89.1452 12.2213 89.1452 13.1435C89.1452 14.0658 89.3522 15.003 89.927 15.6046C90.5018 16.2061 91.3886 16.433 92.2666 16.433C93.1446 16.433 94.0313 16.2143 94.6071 15.6046C94.6863 15.5186 94.7587 15.4248 94.8301 15.331H97.1935C96.9855 16.0657 96.6585 16.7299 96.1639 17.2454C95.2057 18.2531 93.7281 18.6205 92.2666 18.6205C90.805 18.6205 89.3284 18.2609 88.3703 17.2454C87.4121 16.2299 87.0613 14.6828 87.0613 13.1435C87.0613 11.6043 87.4043 10.0494 88.3703 9.04168C89.3367 8.03396 90.806 7.66663 92.2666 7.66663C93.7272 7.66663 95.2057 8.02618 96.1639 9.04168C97.1298 10.0572 97.4729 11.6043 97.4729 13.1435L97.4733 13.1431Z",fill:"currentColor"}),c.jsx("path",{d:"M109.499 13.1431V13.9948H103.119V12.2996H107.351C107.256 11.6825 107.032 11.1043 106.632 10.682C106.057 10.0727 105.172 9.85409 104.293 9.85409C103.414 9.85409 102.528 10.0727 101.953 10.682C101.378 11.2913 101.17 12.2213 101.17 13.1435C101.17 14.0658 101.378 15.003 101.953 15.6046C102.528 16.2061 103.415 16.433 104.293 16.433C105.171 16.433 106.057 16.2143 106.632 15.6046C106.712 15.5186 106.784 15.4248 106.856 15.331H109.22C109.012 16.0657 108.685 16.7299 108.19 17.2454C107.231 18.2531 105.754 18.6205 104.293 18.6205C102.831 18.6205 101.355 18.2609 100.396 17.2454C99.4382 16.2299 99.0864 14.6828 99.0864 13.1435C99.0864 11.6043 99.4295 10.0494 100.396 9.04168C101.362 8.03396 102.832 7.66663 104.293 7.66663C105.754 7.66663 107.231 8.02618 108.19 9.04168C109.156 10.0572 109.499 11.6043 109.499 13.1435V13.1431Z",fill:"currentColor"}),c.jsx("path",{d:"M113.5 4.62817H111.104V18.6217H113.5V4.62817Z",fill:"currentColor"}),c.jsx("path",{d:"M117.589 12.8154L121.517 18.6208H118.554L114.625 12.8154L118.554 8.15088H121.517L117.589 12.8154Z",fill:"currentColor"}),c.jsx("g",{clipPath:"url(#dsh-wordmark-whale-clip)",children:c.jsx("path",{d:"M23.0584 4.95203C22.8129 4.83203 22.7074 5.06103 22.5639 5.17704C22.5149 5.21454 22.4734 5.26354 22.4319 5.30854C22.0734 5.69155 21.6543 5.94306 21.1073 5.91306C20.3073 5.86806 19.6243 6.11957 19.0203 6.73158C18.8918 5.97706 18.4652 5.52655 17.8162 5.23754C17.4767 5.08753 17.1332 4.93703 16.8952 4.61052C16.7292 4.37801 16.6837 4.11901 16.6007 3.8635C16.5477 3.70949 16.4952 3.55199 16.3177 3.52549C16.1252 3.49549 16.0497 3.65699 15.9742 3.792C15.6722 4.34401 15.5552 4.95203 15.5667 5.56805C15.5932 6.95359 16.1782 8.05712 17.3407 8.84215C17.4727 8.93215 17.5067 9.02215 17.4652 9.15366C17.3857 9.42416 17.2917 9.68667 17.2087 9.95718C17.1557 10.1297 17.0767 10.1677 16.8917 10.0922C16.2537 9.82568 15.7027 9.43117 15.2156 8.95465C14.3891 8.15513 13.6416 7.2726 12.7096 6.58158C12.4906 6.42007 12.2716 6.27007 12.045 6.12707C11.094 5.20354 12.1696 4.44502 12.4186 4.35501C12.6791 4.26101 12.5091 3.938 11.6675 3.942C10.826 3.9455 10.056 4.22751 9.07446 4.60302C8.93096 4.65952 8.77995 4.70052 8.62545 4.73452C7.73492 4.56552 6.80989 4.52802 5.84386 4.63702C4.02481 4.83953 2.57177 5.69955 1.50373 7.1676C0.220694 8.93215 -0.0813148 10.9372 0.288196 13.0283C0.676708 15.2323 1.80174 17.0569 3.53029 18.4834C5.32285 19.9625 7.38741 20.6875 9.74298 20.5485C11.1735 20.466 12.7661 20.2745 14.5626 18.7539C15.0156 18.9795 15.4912 19.0695 16.2797 19.137C16.8872 19.1935 17.4722 19.107 17.9252 19.013C18.6347 18.8629 18.5857 18.2059 18.3292 18.0854C16.2497 17.1169 16.7062 17.5109 16.2912 17.1919C17.3477 15.9419 18.9618 13.7198 19.4598 10.6942C19.5088 10.3602 19.5713 9.88968 19.5638 9.61917C19.5598 9.45417 19.5978 9.39016 19.7863 9.37116C20.3073 9.31116 20.8128 9.16866 21.2773 8.91315C22.6249 8.17713 23.1684 6.96809 23.2964 5.51905C23.3154 5.29754 23.2924 5.06853 23.0584 4.95203ZM11.3165 17.9954C9.30097 16.4109 8.32344 15.8894 7.91992 15.9119C7.54241 15.9344 7.61042 16.3664 7.69342 16.6479C7.78042 16.9259 7.89342 17.1174 8.05193 17.3614C8.16143 17.5229 8.23694 17.7629 7.94243 17.9434C7.29341 18.3449 6.16487 17.8084 6.11187 17.7819C4.79833 17.0084 3.7003 15.9874 2.92628 14.5908C2.17875 13.2468 1.74474 11.8047 1.67324 10.2657C1.65424 9.89418 1.76374 9.76267 2.13375 9.69517C2.62077 9.60517 3.12278 9.58617 3.6093 9.65767C5.66636 9.95818 7.41741 10.8777 8.88545 12.3348C9.72348 13.1643 10.3575 14.1558 11.0105 15.1243C11.705 16.1529 12.4521 17.1329 13.4036 17.9364C13.7396 18.2179 14.0076 18.4319 14.2641 18.5899C13.4906 18.6764 12.1996 18.6949 11.3165 17.9964V17.9954ZM12.2826 11.7817C12.2826 11.6167 12.4146 11.4852 12.5806 11.4852C12.6181 11.4852 12.6521 11.4927 12.6826 11.5037C12.7241 11.5187 12.7621 11.5412 12.7921 11.5752C12.8451 11.6277 12.8751 11.7027 12.8751 11.7817C12.8751 11.9467 12.7431 12.0782 12.5771 12.0782C12.4111 12.0782 12.2826 11.9467 12.2826 11.7817ZM15.2831 13.3208C15.0906 13.3998 14.8981 13.4673 14.7131 13.4748C14.4261 13.4898 14.1131 13.3733 13.9431 13.2308C13.6791 13.0093 13.4901 12.8853 13.4111 12.4988C13.3771 12.3338 13.3961 12.0782 13.4261 11.9317C13.4941 11.6162 13.4186 11.4137 13.1961 11.2297C13.0151 11.0797 12.7846 11.0382 12.5316 11.0382C12.4371 11.0382 12.3506 10.9967 12.2861 10.9632C12.1806 10.9107 12.0936 10.7792 12.1766 10.6177C12.2031 10.5652 12.3316 10.4377 12.3616 10.4152C12.7051 10.2197 13.1011 10.2837 13.4676 10.4302C13.8071 10.5692 14.0641 10.8242 14.4336 11.1847C14.8111 11.6202 14.8791 11.7402 15.0941 12.0672C15.2641 12.3228 15.4186 12.5853 15.5247 12.8858C15.5887 13.0733 15.5057 13.2268 15.2831 13.3208Z",fill:"currentColor"})}),c.jsx("rect",{x:"129.348",y:"5.5",width:"52",height:"14",rx:"2",fill:"currentColor"}),c.jsxs("g",{clipPath:"url(#dsh-wordmark-badge-clip)",children:[c.jsx("path",{d:"M132.848 8.93205H134.08V16.137H132.848V8.93205ZM136.5 8.93205H137.732V16.137H136.5V8.93205ZM133.365 13.024V11.99H137.193V13.024H133.365Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M140.397 14.432L140.672 13.453H143.202L143.532 14.432H140.397ZM140.287 16.137H139.055L141.277 8.93205H142.201L142.146 9.74605L140.947 13.915H140.969L140.287 16.137ZM145.039 16.137H143.741L143.07 13.948L143.081 13.937L141.871 9.74605L141.926 8.93205H142.817L145.039 16.137Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M146.846 8.93205H149.068C149.852 8.93205 150.443 9.11538 150.839 9.48205C151.235 9.84138 151.433 10.3327 151.433 10.956C151.433 11.22 151.396 11.4657 151.323 11.693C151.249 11.9204 151.125 12.1257 150.949 12.309C150.773 12.4924 150.531 12.65 150.223 12.782C149.922 12.9067 149.541 13.0057 149.079 13.079V13.321H146.846V12.639L148.023 12.485C148.631 12.4044 149.09 12.298 149.398 12.166C149.706 12.034 149.915 11.8764 150.025 11.693C150.135 11.5024 150.19 11.2934 150.19 11.066C150.19 10.6994 150.083 10.417 149.871 10.219C149.658 10.021 149.324 9.92205 148.87 9.92205H146.846V8.93205ZM146.395 8.93205H147.627V16.137H146.395V8.93205ZM151.917 16.093V16.137H150.366L149.024 14.322C148.87 14.1094 148.73 13.9407 148.606 13.816C148.481 13.684 148.345 13.5887 148.199 13.53C148.052 13.464 147.872 13.42 147.66 13.398C147.447 13.3687 147.176 13.3504 146.846 13.343V13.145H149.079C149.233 13.211 149.368 13.2844 149.486 13.365C149.61 13.4457 149.735 13.5447 149.86 13.662C149.992 13.7794 150.138 13.937 150.3 14.135L151.917 16.093Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M153.58 9.57005L153.591 8.93205H154.46L157.584 15.51V16.137H156.704L153.58 9.57005ZM158.024 16.137H156.968L156.88 8.93205H158.024V16.137ZM154.24 16.137H153.096V8.93205H154.152L154.24 16.137Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M159.963 8.93205H161.206V16.137H159.963V8.93205ZM160.095 9.96605V8.93205H164.858V9.96605H160.095ZM160.095 16.137V15.103H164.902V16.137H160.095ZM160.095 13.013V11.99H164.374V13.013H160.095Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M169.052 15.257C169.543 15.257 169.895 15.1654 170.108 14.982C170.328 14.7987 170.438 14.5457 170.438 14.223C170.438 14.047 170.405 13.8967 170.339 13.772C170.273 13.6474 170.152 13.5337 169.976 13.431C169.807 13.321 169.558 13.2147 169.228 13.112L168.491 12.881C167.846 12.6757 167.38 12.4044 167.094 12.067C166.808 11.7297 166.665 11.3007 166.665 10.78C166.665 10.428 166.76 10.1017 166.951 9.80105C167.142 9.50038 167.428 9.25838 167.809 9.07505C168.19 8.89172 168.663 8.80005 169.228 8.80005C169.631 8.80005 169.998 8.82938 170.328 8.88805C170.665 8.93938 171.039 9.01638 171.45 9.11905L171.274 10.175C170.834 10.0504 170.442 9.96238 170.097 9.91105C169.76 9.85238 169.463 9.82305 169.206 9.82305C168.737 9.82305 168.403 9.90738 168.205 10.076C168.007 10.2374 167.908 10.439 167.908 10.681C167.908 10.857 167.941 11.0147 168.007 11.154C168.073 11.286 168.19 11.407 168.359 11.517C168.535 11.627 168.784 11.7334 169.107 11.836L169.866 12.078C170.526 12.276 170.995 12.5327 171.274 12.848C171.553 13.156 171.692 13.585 171.692 14.135C171.692 14.5604 171.589 14.9344 171.384 15.257C171.179 15.5797 170.878 15.8327 170.482 16.016C170.093 16.1994 169.609 16.291 169.03 16.291C168.627 16.291 168.212 16.247 167.787 16.159C167.362 16.071 166.9 15.9427 166.401 15.774L166.665 14.718C167.156 14.894 167.6 15.0297 167.996 15.125C168.399 15.213 168.751 15.257 169.052 15.257Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M175.809 15.257C176.3 15.257 176.652 15.1654 176.865 14.982C177.085 14.7987 177.195 14.5457 177.195 14.223C177.195 14.047 177.162 13.8967 177.096 13.772C177.03 13.6474 176.909 13.5337 176.733 13.431C176.564 13.321 176.315 13.2147 175.985 13.112L175.248 12.881C174.603 12.6757 174.137 12.4044 173.851 12.067C173.565 11.7297 173.422 11.3007 173.422 10.78C173.422 10.428 173.517 10.1017 173.708 9.80105C173.899 9.50038 174.185 9.25838 174.566 9.07505C174.947 8.89172 175.42 8.80005 175.985 8.80005C176.388 8.80005 176.755 8.82938 177.085 8.88805C177.422 8.93938 177.796 9.01638 178.207 9.11905L178.031 10.175C177.591 10.0504 177.199 9.96238 176.854 9.91105C176.517 9.85238 176.22 9.82305 175.963 9.82305C175.494 9.82305 175.16 9.90738 174.962 10.076C174.764 10.2374 174.665 10.439 174.665 10.681C174.665 10.857 174.698 11.0147 174.764 11.154C174.83 11.286 174.947 11.407 175.116 11.517C175.292 11.627 175.541 11.7334 175.864 11.836L176.623 12.078C177.283 12.276 177.752 12.5327 178.031 12.848C178.31 13.156 178.449 13.585 178.449 14.135C178.449 14.5604 178.346 14.9344 178.141 15.257C177.936 15.5797 177.635 15.8327 177.239 16.016C176.85 16.1994 176.366 16.291 175.787 16.291C175.384 16.291 174.969 16.247 174.544 16.159C174.119 16.071 173.657 15.9427 173.158 15.774L173.422 14.718C173.913 14.894 174.357 15.0297 174.753 15.125C175.156 15.213 175.508 15.257 175.809 15.257Z",fill:"var(--dsw-alias-label-primary-inverted)"})]}),c.jsxs("defs",{children:[c.jsx("clipPath",{id:"dsh-wordmark-whale-clip",children:c.jsx("rect",{width:"23.16",height:"17.0435",fill:"white",transform:"translate(0.141602 3.52185)"})}),c.jsx("clipPath",{id:"dsh-wordmark-badge-clip",children:c.jsx("rect",{width:"46",height:"14",fill:"white",transform:"translate(132.348 5.5)"})})]})]})}function s7({size:e=16,className:t,strokeWidth:n}){return c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,children:[c.jsx("path",{d:"M5.08545 8.13775L7.18455 10.2368C7.26636 10.3187 7.4003 10.3142 7.47649 10.2271L11.5148 5.61194",stroke:"currentColor"}),c.jsx("path",{d:"M6.59624 2.14853C7.50155 1.80917 8.49914 1.80919 9.40444 2.14859L13.9245 3.84317V7.11961C13.9245 11.6089 10.5565 13.5975 8.00035 14.5779C5.44423 13.5975 2.07544 11.6089 2.07544 7.11961V3.84317L6.59624 2.14853Z",stroke:"currentColor",strokeLinejoin:"round"})]})}function a7({size:e=16,className:t,strokeWidth:n}){return c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,children:[c.jsx("path",{d:"M6.4209 1.68067C7.43922 1.299 8.56177 1.29898 9.58008 1.68067L14.0996 3.375C14.2946 3.44811 14.4236 3.63455 14.4238 3.84278V6.89063C14.1115 6.71853 13.7761 6.58312 13.4238 6.48926V4.18946L9.22852 2.61621C8.43657 2.31947 7.56341 2.31939 6.77148 2.61621L2.5752 4.18946V7.11914C2.5752 11.1796 5.52369 13.056 8 14.0391C8.27653 13.9293 8.55827 13.8067 8.8418 13.6729C9.07101 13.9468 9.33228 14.1929 9.62012 14.4053C9.12409 14.6579 8.63578 14.8696 8.17871 15.0449C8.0637 15.0889 7.93628 15.0889 7.82129 15.0449C5.22011 14.0472 1.5752 11.9381 1.5752 7.11914V3.84278C1.57541 3.63469 1.70463 3.44821 1.89941 3.375L6.4209 1.68067Z",fill:"currentColor"}),c.jsx("path",{d:"M5.26392 6.60339H10.7361",stroke:"currentColor"}),c.jsx("path",{d:"M5.26392 9.86902H8.32833",stroke:"currentColor"}),c.jsx("path",{d:"M10.0317 13.2229C10.263 13.3929 10.4943 13.563 10.7256 13.733C10.7932 13.6482 10.8608 13.5634 10.9284 13.4786C12.1455 11.9522 13.3626 10.4258 14.5798 8.89935C14.6474 8.81455 14.715 8.72975 14.7826 8.64495C14.4143 8.37419 14.046 8.10344 13.6777 7.83268C13.6169 7.92252 13.5562 8.01236 13.4954 8.10219C12.4016 9.71926 11.3078 11.3363 10.214 12.9534C10.1532 13.0432 10.0924 13.1331 10.0317 13.2229Z",fill:"currentColor"}),c.jsx("path",{d:"M12.6516 12.6696C12.6516 12.925 12.6516 13.1804 12.6516 13.4359C12.6952 13.4378 12.7387 13.4398 12.7823 13.4417C13.5663 13.4768 14.3504 13.5118 15.1345 13.5469C15.178 13.5488 15.2216 13.5508 15.2651 13.5527C15.2651 13.2194 15.2651 12.8861 15.2651 12.5527C15.2216 12.5547 15.178 12.5566 15.1345 12.5586C14.3504 12.5936 13.5663 12.6287 12.7823 12.6637C12.7387 12.6657 12.6952 12.6676 12.6516 12.6696Z",fill:"currentColor"})]})}function l7({size:e=16,className:t,strokeWidth:n}){return c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,children:[c.jsx("path",{d:"M6.59624 2.14853C7.50155 1.80917 8.49914 1.80919 9.40444 2.14859L13.9245 3.84317V7.11961C13.9245 11.6089 10.5565 13.5975 8.00035 14.5779C5.44423 13.5975 2.07544 11.6089 2.07544 7.11961V3.84317L6.59624 2.14853Z",stroke:"currentColor",strokeLinejoin:"round"}),c.jsx("path",{d:"M8 4.39209V9.89209",stroke:"currentColor"}),c.jsx("path",{d:"M8 10.8081V11.8081",stroke:"currentColor"})]})}function wk(e){return c.jsx(s7,{...e,strokeWidth:Y})}function yk(e){return c.jsx(s7,{...e,strokeWidth:J})}function xk(e){return c.jsx(a7,{...e,strokeWidth:Y})}function _k(e){return c.jsx(a7,{...e,strokeWidth:J})}function Ck(e){return c.jsx(l7,{...e,strokeWidth:Y})}function bk(e){return c.jsx(l7,{...e,strokeWidth:J})}var e5;const kk=Object.freeze({status:"aborted"});function V(e,t,n){function o(f,p){if(f._zod||Object.defineProperty(f,"_zod",{value:{def:p,constr:u,traits:new Set},enumerable:!1}),f._zod.traits.has(e))return;f._zod.traits.add(e),t(f,p);const m=u.prototype,v=Object.keys(m);for(let w=0;w<v.length;w++){const y=v[w];y in f||(f[y]=m[y].bind(f))}}const s=n?.Parent??Object;class l extends s{}Object.defineProperty(l,"name",{value:e});function u(f){var p;const m=n?.Parent?new l:this;o(m,f),(p=m._zod).deferred??(p.deferred=[]);for(const v of m._zod.deferred)v();return m}return Object.defineProperty(u,"init",{value:o}),Object.defineProperty(u,Symbol.hasInstance,{value:f=>n?.Parent&&f instanceof n.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class ai extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class c7 extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(e5=globalThis).__zod_globalConfig??(e5.__zod_globalConfig={});const U0=globalThis.__zod_globalConfig;function fr(e){return U0}function u7(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,s])=>t.indexOf(+o)===-1).map(([o,s])=>s)}function s0(e,t){return typeof t=="bigint"?t.toString():t}function rl(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function q0(e){return e==null}function G0(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Sk(e,t){const n=e/t,o=Math.round(n),s=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<s?0:n-o}const t5=Symbol("evaluating");function Ze(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==t5)return o===void 0&&(o=t5,o=n()),o},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function xo(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Hr(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function n5(e){return JSON.stringify(e)}function jk(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const d7="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ps(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Ek=rl(()=>{if(U0.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function fi(e){if(Ps(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Ps(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function f7(e){return fi(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Mk=new Set(["string","number","symbol"]);function hi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Vr(e,t,n){const o=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(o._zod.parent=e),o}function be(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Ik(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Ok={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Lk(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const l=Hr(e._zod.def,{get shape(){const u={};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&(u[f]=n.shape[f])}return xo(this,"shape",u),u},checks:[]});return Vr(e,l)}function Tk(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const l=Hr(e._zod.def,{get shape(){const u={...e._zod.def.shape};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&delete u[f]}return xo(this,"shape",u),u},checks:[]});return Vr(e,l)}function zk(e,t){if(!fi(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const l=e._zod.def.shape;for(const u in t)if(Object.getOwnPropertyDescriptor(l,u)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const s=Hr(e._zod.def,{get shape(){const l={...e._zod.def.shape,...t};return xo(this,"shape",l),l}});return Vr(e,s)}function Pk(e,t){if(!fi(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Hr(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return xo(this,"shape",o),o}});return Vr(e,n)}function Nk(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=Hr(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t._zod.def.shape};return xo(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Vr(e,n)}function Rk(e,t,n){const s=t._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const u=Hr(t._zod.def,{get shape(){const f=t._zod.def.shape,p={...f};if(n)for(const m in n){if(!(m in f))throw new Error(`Unrecognized key: "${m}"`);n[m]&&(p[m]=e?new e({type:"optional",innerType:f[m]}):f[m])}else for(const m in f)p[m]=e?new e({type:"optional",innerType:f[m]}):f[m];return xo(this,"shape",p),p},checks:[]});return Vr(t,u)}function Ak(e,t,n){const o=Hr(t._zod.def,{get shape(){const s=t._zod.def.shape,l={...s};if(n)for(const u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(l[u]=new e({type:"nonoptional",innerType:s[u]}))}else for(const u in s)l[u]=new e({type:"nonoptional",innerType:s[u]});return xo(this,"shape",l),l}});return Vr(t,o)}function ni(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Fk(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Ar(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function aa(e){return typeof e=="string"?e:e?.message}function hr(e,t,n){const o=e.message?e.message:aa(e.inst?._zod.def?.error?.(e))??aa(t?.error?.(e))??aa(n.customError?.(e))??aa(n.localeError?.(e))??"Invalid input",{inst:s,continue:l,input:u,...f}=e;return f.path??(f.path=[]),f.message=o,t?.reportInput&&(f.input=u),f}function K0(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ns(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}const h7=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,s0,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},p7=V("$ZodError",h7),m7=V("$ZodError",h7,{Parent:Error});function Dk(e,t=n=>n.message){const n={},o=[];for(const s of e.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):o.push(t(s));return{formErrors:o,fieldErrors:n}}function $k(e,t=n=>n.message){const n={_errors:[]},o=(s,l=[])=>{for(const u of s.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(f=>o({issues:f},[...l,...u.path]));else if(u.code==="invalid_key")o({issues:u.issues},[...l,...u.path]);else if(u.code==="invalid_element")o({issues:u.issues},[...l,...u.path]);else{const f=[...l,...u.path];if(f.length===0)n._errors.push(t(u));else{let p=n,m=0;for(;m<f.length;){const v=f[m];m===f.length-1?(p[v]=p[v]||{_errors:[]},p[v]._errors.push(t(u))):p[v]=p[v]||{_errors:[]},p=p[v],m++}}}};return o(e),n}const Y0=e=>(t,n,o,s)=>{const l=o?{...o,async:!1}:{async:!1},u=t._zod.run({value:n,issues:[]},l);if(u instanceof Promise)throw new ai;if(u.issues.length){const f=new(s?.Err??e)(u.issues.map(p=>hr(p,l,fr())));throw d7(f,s?.callee),f}return u.value},J0=e=>async(t,n,o,s)=>{const l=o?{...o,async:!0}:{async:!0};let u=t._zod.run({value:n,issues:[]},l);if(u instanceof Promise&&(u=await u),u.issues.length){const f=new(s?.Err??e)(u.issues.map(p=>hr(p,l,fr())));throw d7(f,s?.callee),f}return u.value},ol=e=>(t,n,o)=>{const s=o?{...o,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new ai;return l.issues.length?{success:!1,error:new(e??p7)(l.issues.map(u=>hr(u,s,fr())))}:{success:!0,data:l.value}},Hk=ol(m7),il=e=>async(t,n,o)=>{const s=o?{...o,async:!0}:{async:!0};let l=t._zod.run({value:n,issues:[]},s);return l instanceof Promise&&(l=await l),l.issues.length?{success:!1,error:new e(l.issues.map(u=>hr(u,s,fr())))}:{success:!0,data:l.value}},Vk=il(m7),Bk=e=>(t,n,o)=>{const s=o?{...o,direction:"backward"}:{direction:"backward"};return Y0(e)(t,n,s)},Zk=e=>(t,n,o)=>Y0(e)(t,n,o),Wk=e=>async(t,n,o)=>{const s=o?{...o,direction:"backward"}:{direction:"backward"};return J0(e)(t,n,s)},Uk=e=>async(t,n,o)=>J0(e)(t,n,o),qk=e=>(t,n,o)=>{const s=o?{...o,direction:"backward"}:{direction:"backward"};return ol(e)(t,n,s)},Gk=e=>(t,n,o)=>ol(e)(t,n,o),Kk=e=>async(t,n,o)=>{const s=o?{...o,direction:"backward"}:{direction:"backward"};return il(e)(t,n,s)},Yk=e=>async(t,n,o)=>il(e)(t,n,o),Jk=/^[cC][0-9a-z]{6,}$/,Qk=/^[0-9a-z]+$/,Xk=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,eS=/^[0-9a-vA-V]{20}$/,tS=/^[A-Za-z0-9]{27}$/,nS=/^[a-zA-Z0-9_-]{21}$/,rS=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,oS=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,r5=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,iS=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,sS="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function aS(){return new RegExp(sS,"u")}const lS=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,cS=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,uS=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,dS=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,fS=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,g7=/^[A-Za-z0-9_-]*$/,hS=/^https?$/,pS=/^\+[1-9]\d{6,14}$/,v7="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",mS=new RegExp(`^${v7}$`);function w7(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function gS(e){return new RegExp(`^${w7(e)}$`)}function vS(e){const t=w7({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${t}(?:${n.join("|")})`;return new RegExp(`^${v7}T(?:${o})$`)}const wS=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},yS=/^-?\d+$/,y7=/^-?\d+(?:\.\d+)?$/,xS=/^(?:true|false)$/i,_S=/^null$/i,CS=/^[^A-Z]*$/,bS=/^[^a-z]*$/,Jt=V("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),x7={number:"number",bigint:"bigint",object:"date"},_7=V("$ZodCheckLessThan",(e,t)=>{Jt.init(e,t);const n=x7[typeof t.value];e._zod.onattach.push(o=>{const s=o._zod.bag,l=(t.inclusive?s.maximum:s.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<l&&(t.inclusive?s.maximum=t.value:s.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),C7=V("$ZodCheckGreaterThan",(e,t)=>{Jt.init(e,t);const n=x7[typeof t.value];e._zod.onattach.push(o=>{const s=o._zod.bag,l=(t.inclusive?s.minimum:s.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>l&&(t.inclusive?s.minimum=t.value:s.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),kS=V("$ZodCheckMultipleOf",(e,t)=>{Jt.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Sk(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),SS=V("$ZodCheckNumberFormat",(e,t)=>{Jt.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),o=n?"int":"number",[s,l]=Ok[t.format];e._zod.onattach.push(u=>{const f=u._zod.bag;f.format=t.format,f.minimum=s,f.maximum=l,n&&(f.pattern=yS)}),e._zod.check=u=>{const f=u.value;if(n){if(!Number.isInteger(f)){u.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){f>0?u.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):u.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}f<s&&u.issues.push({origin:"number",input:f,code:"too_small",minimum:s,inclusive:!0,inst:e,continue:!t.abort}),f>l&&u.issues.push({origin:"number",input:f,code:"too_big",maximum:l,inclusive:!0,inst:e,continue:!t.abort})}}),jS=V("$ZodCheckMaxLength",(e,t)=>{var n;Jt.init(e,t),(n=e._zod.def).when??(n.when=o=>{const s=o.value;return!q0(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const s=o.value;if(s.length<=t.maximum)return;const u=K0(s);o.issues.push({origin:u,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),ES=V("$ZodCheckMinLength",(e,t)=>{var n;Jt.init(e,t),(n=e._zod.def).when??(n.when=o=>{const s=o.value;return!q0(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const s=o.value;if(s.length>=t.minimum)return;const u=K0(s);o.issues.push({origin:u,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),MS=V("$ZodCheckLengthEquals",(e,t)=>{var n;Jt.init(e,t),(n=e._zod.def).when??(n.when=o=>{const s=o.value;return!q0(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=o=>{const s=o.value,l=s.length;if(l===t.length)return;const u=K0(s),f=l>t.length;o.issues.push({origin:u,...f?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),sl=V("$ZodCheckStringFormat",(e,t)=>{var n,o;Jt.init(e,t),e._zod.onattach.push(s=>{const l=s._zod.bag;l.format=t.format,t.pattern&&(l.patterns??(l.patterns=new Set),l.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=s=>{t.pattern.lastIndex=0,!t.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),IS=V("$ZodCheckRegex",(e,t)=>{sl.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),OS=V("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=CS),sl.init(e,t)}),LS=V("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=bS),sl.init(e,t)}),TS=V("$ZodCheckIncludes",(e,t)=>{Jt.init(e,t);const n=hi(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(s=>{const l=s._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(o)}),e._zod.check=s=>{s.value.includes(t.includes,t.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:s.value,inst:e,continue:!t.abort})}}),zS=V("$ZodCheckStartsWith",(e,t)=>{Jt.init(e,t);const n=new RegExp(`^${hi(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),PS=V("$ZodCheckEndsWith",(e,t)=>{Jt.init(e,t);const n=new RegExp(`.*${hi(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),NS=V("$ZodCheckOverwrite",(e,t)=>{Jt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class RS{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const o=t.split(`
|
|
68
|
+
*/function bC(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,SC(o.key),o)}}function kC(e,t,n){return n&&bC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function SC(e){var t=jC(e,"string");return typeof t=="symbol"?t:t+""}function jC(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var B0=(function(){function e(){}return e.getParser=function(n,o,s){if(o===void 0&&(o=!1),s===void 0&&(s=null),typeof n!="string")throw new Error("UserAgent should be a string");return new W4(n,o,s)},e.parse=function(n,o){return o===void 0&&(o=null),new W4(n,o).getResult()},kC(e,null,[{key:"BROWSER_MAP",get:function(){return K8}},{key:"ENGINE_MAP",get:function(){return lr}},{key:"OS_MAP",get:function(){return Nt}},{key:"PLATFORMS_MAP",get:function(){return Pe}}])})();B0.parse;B0.getParser;const Eu=new WeakMap,EC=new Set(["Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"]);function Y8(){const e=B0.parse(navigator.userAgent).platform.type,t=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1;return e==="mobile"||e==="tablet"||t}function MC(){return Y8()?!1:!window.matchMedia?.("(width < 640px) and (pointer: coarse) and (hover: none)").matches}function di(e,t){Eu.get(e)?.();const n=()=>{e.removeAttribute("data-dsh-automatic-focus"),e.removeEventListener("blur",n),e.removeEventListener("keydown",o,!0),Eu.delete(e)},o=s=>{!s.isComposing&&!s.ctrlKey&&!s.altKey&&!s.metaKey&&EC.has(s.key)&&n()};Eu.set(e,n),e.setAttribute("data-dsh-automatic-focus",""),e.addEventListener("blur",n),e.addEventListener("keydown",o,!0),e.focus(t),e.matches(":focus")||n()}const Z0='[role="dialog"][aria-modal="true"], [role="menu"]',_s=new WeakMap;function IC(e){const t=_s.get(e)?.at(-1);if(t===void 0)return;[...e.querySelectorAll(Z0)].at(-1)===t.element&&t.close()}function J8(e){if(e===null)return!1;const t=_s.get(e.ownerDocument)?.at(-1);return t!==void 0&&!t.element.contains(e)}const U4='button:not(:disabled), input:not(:disabled), textarea:not(:disabled), select:not(:disabled), a[href], [tabindex="0"]';function W0(e,t,n){const o=S.useRef(n);o.current=n,S.useLayoutEffect(()=>{const s=e.current;if(!t||s===null)return;const l=s.ownerDocument,u=nl(l),f=l.activeElement,p=_s.get(l)??[];_s.set(l,p);const m={element:s,close:()=>{o.current()}};p.push(m);const v=s.querySelector("[data-modal-autofocus]")??s.querySelector(U4)??s;s.contains(l.activeElement)||di(v);const w=y=>{const _=u.guards(y);if(p.at(-1)!==m||y.defaultPrevented||_||y.ctrlKey||y.altKey||y.metaKey||(y.key==="Escape"&&!y.shiftKey&&(y.preventDefault(),y.repeat||o.current()),y.key!=="Tab")||l.activeElement?.closest('[role="menu"]'))return;const C=[...s.querySelectorAll(U4)].filter(L=>!L.closest("[inert], [hidden]")),I=C[0]??s,M=C.at(-1)??s,N=y.shiftKey?l.activeElement===I:l.activeElement===M;(l.activeElement===s||!s.contains(l.activeElement)||N)&&(y.preventDefault(),(y.shiftKey?M:I).focus())};return l.addEventListener("keydown",w),()=>{u.dispose();const y=p.at(-1)===m;if(p.splice(p.indexOf(m),1),l.removeEventListener("keydown",w),p.length===0&&_s.delete(l),y){const _=f instanceof HTMLElement&&f.isConnected?f:p.at(-1)?.element;_!==void 0&&di(_)}}},[e,t])}const OC="_keys_1p14q_1",LC="_key_1p14q_1",TC="_tooltip_1p14q_20",zC="_separator_1p14q_35",PC="_joined_1p14q_39",us={keys:OC,key:LC,tooltip:TC,separator:zC,joined:PC},NC="_view_1ufe2_1",RC="_withFooter_1ufe2_24",AC="_content_1ufe2_31",FC="_header_1ufe2_39",DC="_footer_1ufe2_44",$C="_footerBack_1ufe2_49",HC="_back_1ufe2_93",oo={view:NC,withFooter:RC,content:AC,header:FC,footer:DC,footerBack:$C,back:HC},Q8=S.createContext(null);function VC({target:e,backLabel:t,open:n,close:o,enterView:s,children:l}){const u=S.useRef(null),f=S.useMemo(()=>e===null?null:{target:e,backLabel:t,open:n,close:o,enterView:s,returnFocus:u},[e,t,n,o,s]);return c.jsx(Q8.Provider,{value:f,children:l})}function gi(){return S.useContext(Q8)}function X8({title:e,onBack:t,footerBackLabel:n,children:o,className:s,onKeyDownCapture:l}){const u=gi(),f=S.useRef(null),p=u?.target,m=u?.enterView,v=u?.returnFocus;S.useLayoutEffect(()=>m?.(),[m]),S.useLayoutEffect(()=>{const C=document.activeElement,I=C instanceof HTMLElement&&C!==document.body?C:null,M=p?.parentElement?.querySelector("[data-phone-sidebar-content]");return I&&M?.contains(I)&&v&&(v.current=I),M&&(M.inert=!0),()=>{queueMicrotask(()=>{M&&(M.inert=p?.querySelector("[data-phone-sidebar-view]")!==null);const N=document.activeElement;if(!p?.closest("[data-phone-drawer][data-open]")||N!==document.body&&N?.isConnected&&!N.matches("[data-phone-drawer]")&&M?.contains(N)!==!0)return;const L=p?.closest("[data-phone-drawer]")?.querySelector("[data-phone-sidebar-return]");(I?.isConnected&&I.getClientRects().length>0?I:v?.current?.isConnected&&v.current.getClientRects().length>0?v.current:L)?.focus({preventScroll:!0})})}},[p,v]),W0(f,u?.open===!0,t);const w=S.useRef(t);w.current=t;const y=S.useRef(u?.open===!0);if(S.useEffect(()=>{const C=y.current&&u?.open===!1;y.current=u?.open===!0,C&&w.current()},[u?.open]),u?.target==null)return null;const _=c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:oo.header,children:[c.jsx("button",{type:"button",className:oo.back,"aria-label":u.backLabel,onClick:t,children:c.jsx(cf,{})}),c.jsx("h2",{children:e})]}),o]});return zn.createPortal(c.jsx("div",{ref:f,className:pe(s,oo.view,n!==void 0&&oo.withFooter),"data-phone-sidebar-view":!0,role:"dialog","aria-modal":"true","aria-label":e,tabIndex:-1,onKeyDownCapture:l,onClick:C=>C.stopPropagation(),children:n===void 0?_:c.jsxs(c.Fragment,{children:[c.jsx("div",{className:oo.content,children:_}),c.jsx("div",{className:oo.footer,children:c.jsx("button",{type:"button",className:oo.footerBack,onClick:t,children:n})})]})}),u.target)}function zs({keys:e,variant:t="plain",className:n}){return gi()!==null?null:c.jsx("span",{className:pe(us.keys,t==="tooltip"&&us.tooltip,t==="tooltip"&&e.includes("+")&&us.joined,n),children:e.map((s,l)=>c.jsx("kbd",{className:s==="+"?us.separator:us.key,children:s},l))})}const BC="_surface_1ucg6_1",ZC="_backing_1ucg6_2",WC="_compact_1ucg6_6",UC="_material_1ucg6_21",ds={surface:BC,backing:ZC,compact:WC,material:UC},Ia=S.forwardRef(function({compact:t=!1,className:n,style:o,children:s,...l},u){const f=S.useId(),p=S.useRef(null);S.useLayoutEffect(()=>{document.body.appendChild(p.current)},[]);const m={"--dsh-menu-anchor":`--dsh-menu-${f.replaceAll(":","")}`};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{...l,ref:u,"data-menu-material":"translucent",className:pe(ds.surface,t&&ds.compact,n),style:{...o,...m},children:[c.jsx("div",{"aria-hidden":"true",className:ds.material}),s]}),zn.createPortal(c.jsx("div",{ref:p,"aria-hidden":"true","data-menu-backing":"",className:pe(ds.backing,t&&ds.compact),style:{...m,visibility:o?.visibility}}),document.body)]})}),qC="_root_15q5x_1",GC="_list_15q5x_7",KC="_submenu_15q5x_8",YC="_portal_15q5x_41",JC="_sideTop_15q5x_49",QC="_alignEnd_15q5x_54",XC="_scrollable_15q5x_19",eb="_viewport_15q5x_19",tb="_footer_15q5x_62",nb="_itemWrap_15q5x_90",rb="_item_15q5x_90",ob="_denseList_15q5x_124",ib="_label_15q5x_129",sb="_compactList_15q5x_133",ab="_itemIcon_15q5x_148",lb="_separator_15q5x_80",cb="_check_15q5x_179",ub="_itemLabel_15q5x_190",db="_shortcut_15q5x_198",fb="_shortcutKeys_15q5x_203",hb="_selected_15q5x_216",pb="_selectedFill_15q5x_221",mb="_danger_15q5x_226",gb="_phoneList_15q5x_288",$e={root:qC,list:GC,submenu:KC,portal:YC,sideTop:JC,alignEnd:QC,scrollable:XC,viewport:eb,footer:tb,itemWrap:nb,item:rb,denseList:ob,label:ib,compactList:sb,itemIcon:ab,separator:lb,check:cb,itemLabel:ub,shortcut:db,shortcutKeys:fb,selected:hb,selectedFill:pb,danger:mb,phoneList:gb};function vb({children:e,shortcut:t,icon:n,disabled:o=!1,danger:s=!1,separatorBefore:l=!1,onSelect:u}){return c.jsxs("div",{className:$e.itemWrap,children:[l&&c.jsx("div",{className:$e.separator,role:"separator"}),c.jsxs("button",{type:"button",role:"menuitem",className:pe($e.item,s&&$e.danger),disabled:o,"aria-keyshortcuts":t?.aria,onClick:u,children:[n!==void 0&&c.jsx("span",{className:$e.itemIcon,children:n}),c.jsx("span",{className:$e.itemLabel,children:e}),t!==void 0&&c.jsx("span",{"aria-hidden":"true",className:$e.shortcut,children:c.jsx(zs,{keys:t.keys,className:$e.shortcutKeys})})]})]})}function q4(e){return"type"in e&&e.type==="separator"}function G4(e){return"type"in e&&e.type==="label"}const wb={visibility:"hidden",left:0,top:0};function e7({open:e,anchor:t,items:n=[],children:o,selectedId:s,selectedIds:l,onSelect:u,onClose:f,align:p="start",side:m="bottom",portal:v=!1,closeOnPointerLeave:w=!1,dense:y=!1,compact:_=!1,autoFocus:C=!1,selection:I="check",getAnchorRect:M,footer:N,className:L,listClassName:$,phoneSidebarTitle:A,phoneSidebarDetails:W,phoneSidebarFooterBackLabel:B}){const H=gi()!==null&&A!==void 0,ee=v&&!H,Z=S.useRef(null),he=S.useRef(null),me=S.useRef(null),ne=S.useRef(null),se=S.useRef(!1),Ie=(G=!1)=>{const ve=ne.current,Be=ve!==null&&document.contains(ve)&&!ve.disabled?ve:Z.current?.querySelector("button:not(:disabled)");Be!=null&&(G?Be.focus():di(Be))},xe=()=>{const G=se.current;queueMicrotask(()=>{if(Ne.current)return;const ve=document.activeElement;(ve===null||ve===document.body||he.current?.contains(ve)===!0)&&Ie(G)})},Ne=S.useRef(e);Ne.current=e;const[ie,le]=S.useState(null),[ae,T]=S.useState(null),{arm:D,cancel:X}=G8(f);S.useLayoutEffect(()=>{if(!e||!ee){T(null);return}const G=()=>{let Ye;if(M!==void 0?Ye=M():Ye=Z.current?.getBoundingClientRect()??null,Ye===null)return;const Qe=12,vt=window.innerWidth,Ae=window.innerHeight,Ct=he.current,Kn=Ct?.offsetWidth??0,cn=Ct?.offsetHeight??0;let Xt,wt;m==="right"?(Xt=Ye.right+4,wt=Ye.top):p==="start"?(Xt=Ye.left,wt=m==="bottom"?Ye.bottom+4:Ye.top-cn-4):(Xt=Ye.right-Kn,wt=m==="bottom"?Ye.bottom+4:Ye.top-cn-4),Kn>0&&(Xt=Math.min(Math.max(Xt,Qe),vt-Kn-Qe)),cn>0&&(wt=Math.min(Math.max(wt,Ts(Qe)),Ae-cn-Qe)),T(un=>un?.left===Xt&&un.top===wt?un:{left:Xt,top:wt})};G();const ve=()=>{G(),Be=requestAnimationFrame(ve)};let Be=requestAnimationFrame(ve);return window.addEventListener("scroll",G,!0),window.addEventListener("resize",G),()=>{cancelAnimationFrame(Be),window.removeEventListener("scroll",G,!0),window.removeEventListener("resize",G)}},[e,ee,p,m,M]),S.useEffect(()=>{if(!e){ne.current=null;return}const G=document.activeElement;ne.current=G instanceof HTMLElement&&Z.current?.contains(G)===!0?G:null},[e]),S.useEffect(()=>{if(!e||!C)return;const G=he.current?.querySelector("button:not(:disabled)");me.current=G==null?null:0,G!=null&&di(G)},[e,C]),S.useEffect(()=>{if(!e){le(null),me.current=null;return}const G=nl(document),ve=Ae=>{H||!(Ae.target instanceof Node)||Z.current?.contains(Ae.target)!==!0&&he.current?.contains(Ae.target)!==!0&&f()},Be=Ae=>{if(G.guards(Ae)||J8(H?he.current:Z.current)||Ae.defaultPrevented||Ae.ctrlKey||Ae.altKey||Ae.metaKey)return;const Ct=document.activeElement,Kn=he.current?.contains(Ct)===!0,cn=Z.current?.contains(Ct)===!0||Kn;if(Ae.key==="Escape"&&!Ae.shiftKey){if(Ae.preventDefault(),Ae.repeat)return;f(),(cn||C)&&Ie()}if(Ae.key==="Tab"){const Ci=he.current;if(Ci===null||!cn)return;if(Ae.shiftKey){Ae.preventDefault(),f(),Ie(!0);return}if(Kn){if(Ct instanceof Element&&Ct.getAttribute("role")==="menuitem"){Ae.preventDefault(),se.current=!0;try{Ct.click()}finally{se.current=!1}}return}const bi=Ci.querySelector("button:not(:disabled)");if(bi===null)return;Ae.preventDefault(),bi.focus(),me.current=0;return}if(!["ArrowDown","ArrowUp","Home","End"].includes(Ae.key))return;const Xt=he.current;if(Xt===null||!cn)return;const wt=Array.from(Xt.querySelectorAll("button:not(:disabled)"));if(wt.length===0)return;const un=wt.indexOf(Ct),Yn=un>=0?un:me.current,Co=Ae.key==="Home"?0:Ae.key==="End"?wt.length-1:Yn===null?Ae.key==="ArrowDown"?0:wt.length-1:(Yn+(Ae.key==="ArrowDown"?1:-1)+wt.length)%wt.length;Ae.preventDefault(),me.current=Co,wt[Co]?.focus()},Ye=()=>{document.activeElement instanceof HTMLIFrameElement&&f()};document.addEventListener("pointerdown",ve);const Qe=Ae=>{Ae.key==="Escape"&&Be(Ae)},vt=Ae=>{Ae.key!=="Escape"&&Be(Ae)};return document.addEventListener("keydown",vt),document.addEventListener("keydown",Qe,!0),window.addEventListener("blur",Ye),()=>{G.dispose(),document.removeEventListener("pointerdown",ve),document.removeEventListener("keydown",vt),document.removeEventListener("keydown",Qe,!0),window.removeEventListener("blur",Ye)}},[e,f,C,H]),S.useEffect(()=>{e||X()},[e,X]);const ce=!n.some(G=>!q4(G)&&!G4(G)&&G.submenu!==void 0&&G.submenu.length>0),Me=G=>{if(q4(G))return c.jsx("div",{className:$e.separator,role:"separator"},G.id);if(G4(G))return c.jsx("div",{className:$e.label,role:"presentation",children:G.text},G.id);const ve=G.submenu!==void 0&&G.submenu.length>0,Be=ve&&ie===G.id,Ye=G.id===s||l?.includes(G.id)===!0;return c.jsxs("div",{className:$e.itemWrap,onMouseEnter:ve?()=>{le(G.id)}:void 0,onMouseLeave:()=>{le(null)},children:[c.jsxs("button",{type:"button",role:"menuitem",className:pe($e.item,Ye&&(I==="fill"?$e.selectedFill:$e.selected),G.danger===!0&&$e.danger),disabled:G.disabled,"aria-keyshortcuts":G.shortcut?.aria,"aria-haspopup":ve?"menu":void 0,"aria-expanded":ve?Be:void 0,onFocus:ve?()=>{le(G.id)}:void 0,onClick:()=>{if(ve){le(G.id);return}u?.(G.id)},children:[G.icon!==void 0&&c.jsx("span",{className:$e.itemIcon,children:G.icon}),c.jsx("span",{className:$e.itemLabel,children:G.label}),G.shortcut!==void 0&&c.jsx("span",{"aria-hidden":"true",className:$e.shortcut,children:c.jsx(zs,{keys:G.shortcut.keys,className:$e.shortcutKeys})}),Ye&&I==="check"&&c.jsx(mi,{className:$e.check})]}),Be&&G.submenu!==void 0&&c.jsx(Ia,{compact:_,className:pe($e.submenu,_&&$e.compactList),role:"menu",children:G.submenu.map(Qe=>c.jsxs("button",{type:"button",role:"menuitem",className:$e.item,disabled:Qe.disabled,"aria-keyshortcuts":Qe.shortcut?.aria,onClick:()=>{u?.(Qe.id),xe()},children:[Qe.icon!==void 0&&c.jsx("span",{className:$e.itemIcon,children:Qe.icon}),c.jsx("span",{className:$e.itemLabel,children:Qe.label}),Qe.shortcut!==void 0&&c.jsx("span",{"aria-hidden":"true",className:$e.shortcut,children:c.jsx(zs,{keys:Qe.shortcut.keys,className:$e.shortcutKeys})})]},Qe.id))})]},G.id)},Te=G=>{const ve=G.target instanceof Element?G.target.closest('button[role="menuitem"]'):null;ve===null||ve.getAttribute("aria-haspopup")==="menu"||ve.closest('[role="menu"]')===G.currentTarget&&le(null)},He=e&&c.jsxs(Ia,{compact:_,ref:he,className:pe($e.list,$,y&&$e.denseList,_&&$e.compactList,ce&&$e.scrollable,ee&&$e.portal,m==="top"&&!v&&$e.sideTop,p==="end"&&!v&&$e.alignEnd,H&&$e.phoneList),style:ee?ae??wb:void 0,role:"menu",onClick:G=>{G.stopPropagation();const ve=G.target instanceof Element?G.target.closest('button[role="menuitem"]'):null;ve!==null&&ve.getAttribute("aria-haspopup")!=="menu"&&xe()},onMouseOver:Te,onFocus:Te,children:[c.jsxs("div",{className:$e.viewport,role:"presentation",children:[H&&W,n.map(Me),o]}),N!==void 0&&N.length>0&&c.jsx("div",{className:$e.footer,role:"presentation",children:N.map(Me)})]});return c.jsxs("span",{ref:Z,className:pe($e.root,L),onPointerEnter:w?X:void 0,onPointerLeave:w?()=>{e&&D()}:void 0,children:[t,H?e&&c.jsx(X8,{title:A,onBack:f,footerBackLabel:B,children:He}):v?He!==!1&&zn.createPortal(He,document.body):He]})}const yb="_group_i2pru_1",xb="_start_i2pru_5",_b="_heading_i2pru_19",Mu={group:yb,start:xb,heading:_b};function Cb({label:e,children:t}){const n=S.useId();return c.jsxs("section",{role:"group","aria-labelledby":n,"data-menu-group":"",className:Mu.group,children:[c.jsx("span",{"aria-hidden":"true","data-menu-group-start":"",className:Mu.start}),c.jsx("div",{id:n,"data-menu-group-heading":"",className:Mu.heading,children:e}),t]})}function bb(e){const t=[...e.querySelectorAll(":scope > [data-menu-group]")].flatMap(v=>{const w=v.querySelector(":scope > [data-menu-group-heading]"),y=v.querySelector(":scope > [data-menu-group-start]");return w===null||y===null?[]:[{section:v,heading:w,start:y,atTop:!1,above:!1,topTime:-1/0,aboveTime:-1/0}]});if(t.length===0||typeof IntersectionObserver>"u"||typeof ResizeObserver>"u")return()=>{};const n=new Map(t.map(v=>[v.section,v])),o=new Map(t.map(v=>[v.start,v]));let s=!1,l,u;const f=v=>{const w=v.atTop&&v.above;v.heading.hasAttribute("data-stuck")!==w&&v.heading.toggleAttribute("data-stuck",w)},p=new IntersectionObserver(v=>{if(!s)for(const w of v){const y=o.get(w.target);!y||w.rootBounds===null||w.time<y.aboveTime||(y.above=w.boundingClientRect.top<w.rootBounds.top,y.aboveTime=w.time,f(y))}},{root:e,threshold:[0,1]});for(const{start:v}of t)p.observe(v);const m=new ResizeObserver(v=>{if(!s)for(const w of v){if(w.target!==e||w.contentRect.height===u)continue;u=w.contentRect.height,l?.disconnect();const y=new IntersectionObserver(_=>{if(!(s||l!==y))for(const C of _){const I=n.get(C.target);if(!I||C.rootBounds===null)continue;const M=C.rootBounds.top;C.time>=I.topTime&&(I.atTop=C.isIntersecting&&C.boundingClientRect.bottom>M,I.topTime=C.time),C.time>=I.aboveTime&&(I.above=C.boundingClientRect.top<M,I.aboveTime=C.time),f(I)}},{root:e,rootMargin:`0px 0px ${Math.min(1,u)-u}px 0px`,threshold:0});l=y;for(const{section:_}of t)y.observe(_)}});return m.observe(e),()=>{if(!s){s=!0,p.disconnect(),l?.disconnect(),m.disconnect();for(const{heading:v}of t)v.hasAttribute("data-stuck")&&v.removeAttribute("data-stuck")}}}const kb=12;function Sb(e,t,n,o=kb){const[s,l]=S.useState(t);return S.useLayoutEffect(()=>{const u=e.current;if(u===null)return;const f=()=>{l(Math.min(t,Math.max(0,u.getBoundingClientRect().bottom-Ts(o))))};return f(),window.addEventListener("resize",f),window.addEventListener("scroll",f,!0),()=>{window.removeEventListener("resize",f),window.removeEventListener("scroll",f,!0)}},[e,t,n,o]),s}function jb(e){const{open:t,anchorRef:n,panelRef:o,side:s="bottom",align:l="start",gap:u,margin:f}=e,[p,m]=S.useState(null);return S.useLayoutEffect(()=>{if(!t){m(null);return}const v=()=>{const _=n.current?.getBoundingClientRect();if(_===void 0)return;const C=o.current,I=C?.offsetWidth??0,M=C?.offsetHeight??0;let N=l==="end"?_.right-I:_.left,L=s==="top"?_.top-u-M:_.bottom+u;I>0&&(N=Math.min(Math.max(N,f),window.innerWidth-I-f)),M>0&&(L=Math.min(Math.max(L,Ts(f)),window.innerHeight-M-f)),m({left:N,top:L})};v(),window.addEventListener("scroll",v,!0),window.addEventListener("resize",v);const w=o.current;let y=null;return typeof ResizeObserver<"u"&&w!==null&&(y=new ResizeObserver(v),y.observe(w)),()=>{y?.disconnect(),window.removeEventListener("scroll",v,!0),window.removeEventListener("resize",v)}},[t,n,o,s,l,u,f]),p}function t7(e,t,n,o){S.useEffect(()=>{if(!t)return;const s=l=>{l.target instanceof Node&&e.current?.contains(l.target)!==!0&&o?.current?.contains(l.target)!==!0&&n(!1)};return document.addEventListener("pointerdown",s),()=>{document.removeEventListener("pointerdown",s)}},[e,t,n,o])}const Eb="_bubble_dcbfb_1",Mb="_label_dcbfb_31",K4={bubble:Eb,label:Mb},Y4={pointer:"pointer",keyboard:"keyboard"},Ib="data-input-modality",Ob=new Set(["Tab","Home","End","PageUp","PageDown"]);let o0=!1,gs=!1,io;function Iu(){document.documentElement.setAttribute(Ib,gs?Y4.pointer:Y4.keyboard)}function n7(){return o0}typeof window<"u"&&(window.addEventListener("pointerdown",()=>{o0=!0,gs=!0,io=void 0,Iu()},!0),window.addEventListener("keydown",e=>{if(o0=!1,e.isComposing){io=void 0;return}io=e.composedPath()[0],!(!Ob.has(e.key)&&!e.key.startsWith("Arrow"))&&(gs=!1,Iu())},!0),window.addEventListener("focusin",e=>{io===void 0||e.composedPath()[0]===io||(io=void 0,gs&&(gs=!1,Iu()))},!0),window.addEventListener("blur",()=>{io=void 0}));const i0=S.createContext(null);function Fr({label:e,shortcutKeys:t,side:n="right",align:o="center",delayMs:s=0,focusDelayMs:l=0,gap:u=8,disabled:f=!1,portal:p=!1,maxWidth:m,openOnClick:v=!1,children:w}){const y=S.useId(),_=gi()!==null,C=!_&&!!t?.length,[I,M]=S.useState(!1),N=S.useRef(null),L=w.ref,$=S.useCallback(X=>{N.current=X,typeof L=="function"?L(X):L!=null&&(L.current=X)},[L]),[A,W]=S.useState(null),B=S.useRef(null),K=A===null?null:typeof e=="function"?e():e,H=A===null?0:n==="right"?A.top+(A.bottom-A.top)/2:n==="top"?A.top-u:A.bottom+u,ee=S.useRef(null),Z=S.useRef({hover:!1,focus:!1}),he=S.useContext(i0),[me,ne]=S.useState(!1),se=S.useCallback(X=>{he?.(X)},[he]),Ie=A!==null&&!f&&(!_||!!K);S.useEffect(()=>{const X=B.current;if(A===null||!Ie||me||X===null)return;const ce=12;let Me,Te=n;const He=()=>{if(Me===void 0)return;const{inlineSize:ve,blockSize:Be}=Me,Ye=n==="right"?0:o==="end"?ve:ve/2,Qe=Math.max(ce,Math.min(A.x-Ye,window.innerWidth-ce-ve)),vt=A.bottom+u+Be<=window.innerHeight-ce,Ae=A.top-u-Be>=ce;Te==="bottom"&&!vt&&Ae?Te="top":Te==="top"&&!Ae&&vt&&(Te="bottom"),X.style.left=`${Qe+Ye}px`,X.style.top=`${Te==="right"?(A.top+A.bottom)/2:Te==="top"?A.top-u:A.bottom+u}px`,X.dataset.side=Te,X.style.visibility="visible"},G=new ResizeObserver(ve=>{Me=ve[0]?.borderBoxSize[0],He()});return G.observe(X,{box:"border-box"}),window.addEventListener("resize",He),()=>{G.disconnect(),window.removeEventListener("resize",He)}},[o,u,A,n,me,Ie]),S.useEffect(()=>(se(Ie),()=>{se(!1)}),[se,Ie]);const xe=S.useCallback(()=>{ee.current!==null&&(clearTimeout(ee.current),ee.current=null)},[]);S.useEffect(()=>(I&&(f||!v)&&M(!1),f&&(xe(),Z.current={hover:!1,focus:!1},W(null)),xe),[xe,f,v,I]);const Ne=()=>{if(f||_&&!(typeof e=="function"?e():e))return;const X=N.current;if(X===null)return;const ce=X.getBoundingClientRect();W({x:n==="right"?ce.right+10:o==="end"?ce.right:ce.left+ce.width/2,top:ce.top,bottom:ce.bottom}),se(!0)},ie=X=>{if(xe(),X<=0){Ne();return}ee.current=setTimeout(()=>{ee.current=null,Ne()},X)},le=S.useCallback(()=>{M(!1),W(null),se(!1)},[se]),ae=()=>{xe(),!Z.current.hover&&!Z.current.focus&&!I&&le()},T=S.useCallback(()=>{xe(),Z.current={hover:!1,focus:!1},le()},[xe,le]);t7(N,v&&Ie,T,B),S.useEffect(()=>{if(!v||!Ie)return;const X=ce=>{ce.key!=="Escape"&&ce.key!=="Tab"||(ce.key==="Escape"&&(ce.preventDefault(),ce.stopPropagation()),T())};return document.addEventListener("keydown",X,!0),()=>{document.removeEventListener("keydown",X,!0)}},[T,v,Ie]);const D=Ie&&!me&&c.jsxs("span",{ref:B,id:v?y:void 0,className:K4.bubble,"data-side":n,"data-portal":p||void 0,"data-pinned":I||void 0,"data-align":o,"data-has-shortcut":C||void 0,style:{left:A.x,top:H,visibility:"hidden",...m===void 0?{}:{maxWidth:m}},role:"tooltip","aria-label":t?.length?[K,t.join(" ")].filter(Boolean).join(" "):void 0,children:[K&&c.jsx("span",{className:K4.label,children:K}),t!==void 0&&t.length>0&&c.jsx(zs,{keys:t,variant:"tooltip"})]});return c.jsxs(i0.Provider,{value:ne,children:[S.cloneElement(w,{ref:$,"aria-describedby":v&&Ie?[w.props["aria-describedby"],y].filter(Boolean).join(" "):w.props["aria-describedby"],onPointerEnter:X=>{w.props.onPointerEnter?.(X),!(!_||X.pointerType==="touch")&&(Z.current.hover=!0,ie(s))},onPointerLeave:X=>{w.props.onPointerLeave?.(X),_&&(Z.current.hover=!1,xe(),I||le())},onMouseEnter:X=>{w.props.onMouseEnter?.(X),!_&&(Z.current.hover=!0,ie(s))},onMouseLeave:X=>{w.props.onMouseLeave?.(X),Z.current.hover=!1,xe(),I||le()},onClick:X=>{w.props.onClick?.(X),Z.current.focus=!1,xe(),v&&!f&&!I?(M(!0),Ne()):le()},onFocus:X=>{w.props.onFocus?.(X),!(n7()||_&&X.currentTarget.hasAttribute("data-dsh-automatic-focus"))&&(Z.current.focus=!0,ie(l))},onBlur:X=>{w.props.onBlur?.(X),Z.current.focus=!1,ae()}}),p?D!==!1&&zn.createPortal(D,document.body):D]})}const Lb="_root_ghlrl_3",Tb="_card_ghlrl_9",zb="_copyable_ghlrl_21",Pb="_feedback_ghlrl_31",Nb="_copied_ghlrl_37",Rb="_status_ghlrl_44",Ab="_preview_ghlrl_53",Fb="_inline_ghlrl_84",Db="_media_ghlrl_87",ar={root:Lb,card:Tb,copyable:zb,feedback:Pb,copied:Nb,status:Rb,preview:Ab,inline:Fb,media:Db},J4=100,Q4=420,X4=24,$b=300,so=8,Gt=8;function r7({anchor:e,content:t,openDelayMs:n=500,disabled:o=!1,copyText:s,copyLabel:l,copiedLabel:u,variant:f="compact",widthAnchorRef:p,inline:m=!1}){const v=S.useRef(null),w=S.useRef(null),y=S.useRef(null),_=S.useRef(null),C=S.useRef(null),I=S.useRef(0),M=S.useRef(!1),N=S.useRef(!0),[L,$]=S.useState("closed"),A=L!=="closed",W=L==="closing",[B,K]=S.useState(null),H=B!==null,[ee,Z]=S.useState(!1),[he,me]=S.useState(!1),ne=S.useCallback(()=>{_.current!==null&&(clearTimeout(_.current),_.current=null),C.current=null,Z(!1)},[]),se=S.useCallback(()=>{I.current+=1,ne(),$(D=>f==="preview"&&D!=="closed"?"closing":"closed")},[ne,f]),{arm:Ie,cancel:xe}=G8(se),Ne=()=>{y.current!==null&&(clearTimeout(y.current),y.current=null)};S.useEffect(()=>{if(!W)return;const D=setTimeout(()=>{$("closed")},J4);return()=>{clearTimeout(D)}},[W]),S.useEffect(()=>{o&&(Ne(),xe(),se())},[o,xe,se]),S.useEffect(()=>(N.current=!0,()=>{N.current=!1,I.current+=1,Ne(),_.current!==null&&(clearTimeout(_.current),_.current=null)}),[]),S.useEffect(()=>{if(!A||f!=="preview"&&!m)return;const D=X=>{X.key==="Escape"&&(m&&X.stopPropagation(),Ne(),xe(),se())};return window.addEventListener("keydown",D,m),()=>{window.removeEventListener("keydown",D,m)}},[A,f,m,xe,se]),S.useLayoutEffect(()=>{if(!A){K(null);return}const D=()=>{const ce=v.current;if(ce===null)return;const Me=ce.getBoundingClientRect(),Te=w.current?.offsetHeight??0;if(f==="preview"){const G=p?.current?.getBoundingClientRect()??Me,ve=Math.max(0,Math.min(G.width-X4*2,window.innerWidth-Gt*2)),Be=Ts(Gt),Ye=Math.max(Be,Me.bottom+so),Qe=Math.max(0,Me.top-so-Be),vt=Math.max(0,window.innerHeight-Ye-Gt),Ae=Qe>=Math.min(Q4,vt),Ct=Math.min(Q4,Ae?Qe:vt);K({left:Math.max(Gt,Math.min(G.left+X4,window.innerWidth-ve-Gt)),top:Ae?Math.max(Be,Me.top-Math.min(Te,Ct)-so):Ye,width:ve,maxHeight:Ct});return}if(m){const G=Math.max(Te,w.current?.scrollHeight??0),ve=Math.max(0,Math.min($b,window.innerWidth-Gt*2)),Be=Ts(Gt),Ye=Math.max(Be,Me.bottom+so),Qe=Math.max(0,Me.top-so-Be),vt=Math.max(0,window.innerHeight-Ye-Gt),Ae=G>vt&&Qe>vt,Ct=Ae?Qe:vt;K({left:Math.max(Gt,Math.min(Me.left,window.innerWidth-ve-Gt)),top:Ae?Me.top-so-Math.min(G,Ct):Ye,width:ve,maxHeight:Ct});return}const He=Me.top+Te>window.innerHeight-Gt?window.innerHeight-Te-Gt:Me.top;K({left:Me.right+so,top:He})};D();const X=(f==="preview"||m)&&typeof ResizeObserver<"u"?new ResizeObserver(D):null;for(const ce of[w.current,v.current,p?.current])ce!=null&&X?.observe(ce);return window.addEventListener("scroll",D,!0),window.addEventListener("resize",D),()=>{X?.disconnect(),window.removeEventListener("scroll",D,!0),window.removeEventListener("resize",D)}},[A,f,p,H,m]),S.useLayoutEffect(()=>{if(!A||B===null||f==="preview"||m||he)return;const D=w.current?.offsetHeight??0;B.top+D>window.innerHeight-Gt&&K({left:B.left,top:window.innerHeight-D-Gt})},[A,B,f,m,he]);const ie=async D=>{if(ee||M.current)return;M.current=!0;const X=I.current,ce=await Xa(D);M.current=!1;const Me=w.current;if(!ce||!N.current||X!==I.current||Me===null)return;const Te=Me.offsetHeight;C.current=Te>0?Te:null,Z(!0),_.current=setTimeout(ne,1e3)},le=s!==void 0,ae=D=>{w.current?.contains(D.target)||(Ne(),xe(),se())},T=A&&B!==null&&!he&&c.jsx("div",{ref:w,className:pe(ar.card,f==="preview"&&ar.preview,m&&ar.media,le&&ar.copyable,ee&&ar.feedback),"data-closing":W||void 0,style:{...B,minHeight:ee&&C.current!==null?C.current:void 0,"--dsh-hover-preview-fade":`${J4}ms`},role:le?"button":void 0,tabIndex:le?0:void 0,"aria-label":le?`${l}: ${s}`:void 0,onClick:le?D=>{const X=window.getSelection();if(X!==null&&!X.isCollapsed){for(let ce=0;ce<X.rangeCount;ce+=1)if(X.getRangeAt(ce).intersectsNode(D.currentTarget))return}ie(s)}:void 0,onKeyDown:le?D=>{D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),ie(s))}:void 0,children:ee?c.jsx("span",{className:ar.copied,"aria-hidden":"true",children:u}):t});return c.jsxs("span",{ref:v,className:pe(ar.root,m&&ar.inline),onFocus:m?D=>{!o&&D.target.matches(":focus-visible")&&(xe(),$("open"))}:void 0,onBlur:m?D=>{D.currentTarget.contains(D.relatedTarget)||(Ne(),xe(),se())}:void 0,onPointerEnter:D=>{if(!(o||m&&D.pointerType==="touch")){if(xe(),A){$("open");return}Ne(),y.current=setTimeout(()=>{$("open")},n)}},onPointerLeave:()=>{Ne(),A&&Ie()},onPointerDownCapture:ae,onClickCapture:ae,children:[c.jsx(i0.Provider,{value:me,children:e}),A&&!he&&le&&c.jsx("span",{className:ar.status,role:"status",children:ee?u:""}),T!==!1&&zn.createPortal(T,document.body)]})}const Hb="_root_7mu1n_6",Vb="_mask_7mu1n_18",Bb="_dialog_7mu1n_33",Zb="_content_7mu1n_70",Wb="_header_7mu1n_78",Ub="_title_7mu1n_86",qb="_close_7mu1n_94",Gb="_description_7mu1n_113",Kb="_body_7mu1n_122",Yb="_footer_7mu1n_130",Kt={root:Hb,mask:Vb,dialog:Bb,content:Zb,header:Wb,title:Ub,close:qb,description:Gb,body:Kb,footer:Yb};function o7({open:e,onClose:t,title:n,closeLabel:o,description:s,children:l,footer:u,className:f,contentClassName:p,onKeyDownCapture:m,headless:v=!1,backdropBlur:w=!0,shortcutModal:y,phoneSidebar:_=!1,phoneSidebarOrigin:C=!1}){const I=gi(),M=S.useRef(!1),N=S.useRef(!1);e&&!N.current&&(M.current=_&&(I?.open===!0||C)),N.current=e;const L=M.current&&I!==null,$=S.useRef(null);return W0($,e&&!L,t),e?L?c.jsxs(X8,{title:n,onBack:t,className:f,onKeyDownCapture:m,children:[v?l:c.jsxs("div",{className:pe(Kt.content,p),children:[s&&c.jsx("p",{className:Kt.description,children:s}),l!==void 0&&c.jsx("div",{className:Kt.body,children:l})]}),u!==void 0&&c.jsx("div",{className:Kt.footer,children:u})]}):zn.createPortal(c.jsxs("div",{className:Kt.root,role:"presentation",onKeyDownCapture:m,children:[c.jsx("div",{className:Kt.mask,style:w?void 0:{backdropFilter:"none"},"aria-hidden":"true",onClick:t}),c.jsx("div",{ref:$,tabIndex:-1,"data-shortcut-modal":y,className:pe(Kt.dialog,f),role:"dialog","aria-modal":"true","aria-label":n,children:v?l:c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:pe(Kt.content,p),children:[c.jsxs("div",{className:Kt.header,children:[c.jsx("h2",{className:Kt.title,children:n}),c.jsx("button",{type:"button",className:Kt.close,"aria-label":o,onClick:t,children:c.jsx(tl,{size:14})})]}),s!==void 0&&s!==""&&c.jsx("p",{className:Kt.description,children:s}),l!==void 0&&c.jsx("div",{className:Kt.body,children:l})]}),u!==void 0&&c.jsx("div",{className:Kt.footer,children:u})]})})]}),document.body):null}const Jb="_confirmation_1oi73_1",Qb="_confirmationContent_1oi73_7",Xb="_warning_1oi73_19",ek="_warningIcon_1oi73_32",tk="_acknowledgement_1oi73_38",nk="_modalAction_1oi73_68",rk="_confirmAction_1oi73_72",ao={confirmation:Jb,confirmationContent:Qb,warning:Xb,warningIcon:ek,acknowledgement:tk,modalAction:nk,confirmAction:rk};function ok({open:e,title:t,description:n,acknowledgeLabel:o,cancelLabel:s,closeLabel:l,confirmLabel:u,acknowledged:f,disabled:p=!1,onAcknowledgedChange:m,onCancel:v,onConfirm:w}){return c.jsxs(o7,{open:e,onClose:v,title:t,closeLabel:l,className:ao.confirmation,contentClassName:ao.confirmationContent,footer:c.jsxs(c.Fragment,{children:[c.jsx(r0,{variant:"outline",className:ao.modalAction,onClick:v,children:s}),c.jsx(r0,{variant:"primary",className:ao.confirmAction,disabled:p||!f,onClick:w,children:u})]}),children:[c.jsxs("div",{className:ao.warning,children:[c.jsx(Rf,{size:18,className:ao.warningIcon}),c.jsx("p",{children:n})]}),c.jsxs("label",{className:ao.acknowledgement,children:[c.jsx("input",{type:"checkbox",checked:f,disabled:p,"data-modal-autofocus":!0,onChange:y=>{m(y.currentTarget.checked)}}),c.jsx("span",{children:o})]})]})}const ik="_indicator_9rbf2_1",sk="_leaving_9rbf2_25",ak="_warning_9rbf2_35",lk="_success_9rbf2_64",ck="_icon_9rbf2_70",uk="_label_9rbf2_81",dk="_dots_9rbf2_85",fk="_secondDot_9rbf2_91",hk="_thirdDot_9rbf2_95",vn={indicator:ik,leaving:sk,warning:ak,success:lk,icon:ck,label:uk,dots:dk,secondDot:fk,thirdDot:hk},pk=150;function mk({state:e,disconnectedLabel:t,connectingLabel:n,recoveredLabel:o,reconnectActionLabel:s,restartActionLabel:l,onReconnect:u}){const[f,p]=S.useState(e),m=e===void 0&&f!==void 0;if(S.useEffect(()=>{if(e!==void 0){p(e);return}if(f===void 0)return;const y=window.setTimeout(()=>{p(void 0)},pk);return()=>{window.clearTimeout(y)}},[e,f]),f===void 0)return null;const v=m?` ${vn.leaving}`:"";if(f==="recovered")return c.jsxs("div",{className:`${vn.indicator} ${vn.success}${v}`,role:"status","aria-label":o,children:[c.jsx("span",{className:vn.icon,"aria-hidden":"true",children:c.jsx(mi,{size:14})}),c.jsx("span",{className:vn.label,children:o})]});const w=f==="connecting";return c.jsxs("button",{type:"button",className:`${vn.indicator} ${vn.warning}${v}`,"data-phase":f,"aria-label":w?l:s,onClick:u,children:[c.jsx("span",{className:vn.icon,"aria-hidden":"true",children:w?c.jsx($0,{state:"ongoing"}):c.jsx(xf,{size:14})}),c.jsx("span",{className:vn.label,children:w?c.jsxs(c.Fragment,{children:[n,c.jsxs("span",{className:vn.dots,"aria-hidden":"true",children:[c.jsx("span",{children:"."}),c.jsx("span",{className:vn.secondDot,children:"."}),c.jsx("span",{className:vn.thirdDot,children:"."})]})]}):t})]})}const vs={width:23.16,height:17.04},i7="M22.9168 1.43018C22.6713 1.31018 22.5658 1.53918 22.4223 1.65519C22.3733 1.69269 22.3318 1.74169 22.2903 1.78669C21.9317 2.1697 21.5127 2.42121 20.9657 2.39121C20.1657 2.34621 19.4827 2.59771 18.8787 3.20973C18.7502 2.45521 18.3236 2.0047 17.6746 1.71569C17.3351 1.56568 16.9916 1.41518 16.7536 1.08867C16.5876 0.856163 16.5421 0.597155 16.4591 0.341647C16.4061 0.187643 16.3536 0.0301382 16.1761 0.00363739C15.9836 -0.0263635 15.9081 0.135141 15.8326 0.270145C15.5306 0.822162 15.4136 1.43018 15.4251 2.0462C15.4516 3.43174 16.0366 4.53527 17.1991 5.3203C17.3311 5.4103 17.3651 5.5003 17.3236 5.63181C17.2441 5.90231 17.1501 6.16482 17.0671 6.43533C17.0141 6.60784 16.9351 6.64584 16.7501 6.57033C16.1121 6.30383 15.5611 5.90931 15.074 5.4328C14.2475 4.63328 13.5 3.75075 12.568 3.05973C12.349 2.89822 12.13 2.74822 11.9034 2.60522C10.9524 1.68169 12.028 0.923165 12.277 0.833162C12.5375 0.739159 12.3675 0.41615 11.5259 0.42015C10.6844 0.42365 9.91439 0.705658 8.93286 1.08117C8.78935 1.13767 8.63835 1.17867 8.48384 1.21267C7.59332 1.04367 6.66829 1.00617 5.70226 1.11517C3.88321 1.31768 2.43016 2.1777 1.36213 3.64575C0.0790928 5.4103 -0.222916 7.41536 0.146595 9.50642C0.535106 11.7105 1.66014 13.535 3.38869 14.9616C5.18125 16.4406 7.24581 17.1657 9.60138 17.0266C11.0319 16.9441 12.6245 16.7526 14.421 15.2321C14.874 15.4576 15.3496 15.5476 16.1381 15.6151C16.7456 15.6716 17.3306 15.5851 17.7836 15.4911C18.4931 15.3411 18.4441 14.6841 18.1876 14.5636C16.1081 13.595 16.5646 13.9891 16.1496 13.67C17.2061 12.42 18.8202 10.1979 19.3182 7.17235C19.3672 6.83834 19.4297 6.36783 19.4222 6.09732C19.4182 5.93231 19.4562 5.86831 19.6447 5.84931C20.1657 5.78931 20.6712 5.64681 21.1357 5.3913C22.4833 4.65528 23.0268 3.44624 23.1548 1.9972C23.1738 1.77569 23.1508 1.54668 22.9168 1.43018ZM11.1749 14.4736C9.15936 12.889 8.18184 12.3675 7.77832 12.39C7.40081 12.4125 7.46881 12.8445 7.55182 13.126C7.63882 13.404 7.75182 13.5955 7.91033 13.8396C8.01983 14.0011 8.09533 14.2411 7.80083 14.4216C7.15181 14.8231 6.02327 14.2866 5.97027 14.2601C4.65673 13.4865 3.5587 12.4655 2.78467 11.069C2.03715 9.72493 1.60314 8.28289 1.53164 6.74384C1.51264 6.37233 1.62214 6.24082 1.99215 6.17332C2.47916 6.08332 2.98118 6.06432 3.46769 6.13582C5.52476 6.43633 7.27581 7.35586 8.74385 8.8129C9.58188 9.64243 10.2159 10.634 10.8689 11.6025C11.5634 12.631 12.3105 13.611 13.262 14.4146C13.598 14.6961 13.866 14.9101 14.1225 15.0681C13.349 15.1546 12.058 15.1731 11.1749 14.4746L11.1749 14.4736ZM12.141 8.25988C12.141 8.09488 12.273 7.96338 12.439 7.96338C12.4765 7.96338 12.5105 7.97088 12.541 7.98188C12.5825 7.99688 12.6205 8.01938 12.6505 8.05338C12.7035 8.10588 12.7335 8.18088 12.7335 8.25988C12.7335 8.42489 12.6015 8.55639 12.4355 8.55639C12.2695 8.55639 12.141 8.42489 12.141 8.25988ZM15.1415 9.79893C14.949 9.87793 14.7565 9.94544 14.5715 9.95294C14.2845 9.96794 13.9715 9.85143 13.8015 9.70893C13.5375 9.48742 13.3485 9.36342 13.2695 8.97691C13.2355 8.8119 13.2545 8.55639 13.2845 8.40989C13.3525 8.09438 13.277 7.89187 13.0545 7.70787C12.8735 7.55786 12.643 7.51636 12.39 7.51636C12.2955 7.51636 12.209 7.47486 12.1445 7.44136C12.039 7.38886 11.9519 7.25735 12.035 7.09585C12.0615 7.04335 12.19 6.91584 12.22 6.89334C12.5635 6.69784 12.9595 6.76184 13.326 6.90834C13.6655 7.04735 13.9225 7.30236 14.292 7.66287C14.6695 8.09838 14.7375 8.21838 14.9525 8.54539C15.1225 8.8009 15.277 9.06341 15.3831 9.36392C15.4471 9.55142 15.3641 9.70493 15.1415 9.79893Z";function gk({size:e=24,className:t}){return c.jsx("svg",{width:e,height:e*vs.height/vs.width,className:t,viewBox:`0 0 ${vs.width} ${vs.height}`,fill:"none","aria-hidden":"true",children:c.jsx("path",{d:i7,fill:"currentColor"})})}function vk({size:e=24,className:t,includeMark:n=!0}){const o=n?182:156;return c.jsxs("svg",{width:e*o/24,height:e,className:t,viewBox:n?"0 0 182 24":"26 0 156 24",fill:"none","aria-hidden":"true",children:[c.jsx("path",{d:"M68.416 18.2447H67.0501V16.1272H68.416C69.2619 16.1272 70.1166 15.9163 70.6671 15.3304C71.2181 14.7444 71.426 13.8455 71.426 12.9471C71.426 12.0487 71.2268 11.1498 70.6671 10.5643C70.1083 9.97831 69.2619 9.76744 68.416 9.76744C67.5701 9.76744 66.7154 9.97831 66.1639 10.5643C65.6129 11.1503 65.4049 12.0487 65.4049 12.9471V21.6435H63.009V7.6582H65.4049V8.54883H65.8442C65.8918 8.49393 65.9394 8.44728 65.9875 8.40064C66.5871 7.85353 67.5049 7.6582 68.4072 7.6582C69.8212 7.6582 71.2341 8.00998 72.1607 8.98662C73.0868 9.96325 73.4143 11.4632 73.4143 12.9558C73.4143 14.4485 73.0785 15.9406 72.1607 16.925C71.2424 17.9094 69.8212 18.2457 68.416 18.2457V18.2447Z",fill:"currentColor"}),c.jsx("path",{d:"M31.9551 8.03497H33.3204V10.1525H31.9551C31.1087 10.1525 30.2545 10.3633 29.7035 10.9493C29.1525 11.5353 28.945 12.4342 28.945 13.3326C28.945 14.231 29.1447 15.1294 29.7035 15.7154C30.2623 16.3014 31.1087 16.5122 31.9551 16.5122C32.8015 16.5122 33.6562 16.3014 34.2072 15.7154C34.7582 15.1294 34.9657 14.231 34.9657 13.3326V4.62842H37.3611V18.6219H34.9657V17.7313H34.5264C34.4783 17.7857 34.4307 17.8329 34.3826 17.8795C33.7835 18.4261 32.8652 18.6219 31.9629 18.6219C30.5494 18.6219 29.136 18.2707 28.2099 17.294C27.2838 16.3174 26.9563 14.817 26.9563 13.3248C26.9563 11.8327 27.2916 10.34 28.2099 9.35561C29.136 8.37898 30.5494 8.03497 31.9551 8.03497Z",fill:"currentColor"}),c.jsx("path",{d:"M49.3786 13.1431V13.9948H42.9984V12.2996H47.2305C47.1348 11.6825 46.9113 11.1043 46.5119 10.682C45.9371 10.0727 45.0503 9.85409 44.1723 9.85409C43.2943 9.85409 42.4076 10.0727 41.8328 10.682C41.258 11.2913 41.05 12.2213 41.05 13.1435C41.05 14.0658 41.2575 15.003 41.8328 15.6046C42.4076 16.2061 43.2939 16.433 44.1723 16.433C45.0508 16.433 45.9371 16.2143 46.5119 15.6046C46.5916 15.5186 46.6635 15.4248 46.7354 15.331H49.0992C48.8918 16.0657 48.5643 16.7299 48.0691 17.2454C47.111 18.2531 45.6339 18.6205 44.1723 18.6205C42.7108 18.6205 41.2337 18.2609 40.2755 17.2454C39.3174 16.2299 38.9661 14.6828 38.9661 13.1435C38.9661 11.6043 39.3096 10.0494 40.2755 9.04168C41.242 8.03396 42.7108 7.66663 44.1723 7.66663C45.6339 7.66663 47.111 8.02618 48.0691 9.04168C49.0351 10.0572 49.3786 11.6043 49.3786 13.1435V13.1431Z",fill:"currentColor"}),c.jsx("path",{d:"M61.4045 13.1431V13.9948H55.0243V12.2996H59.2564C59.1602 11.6825 58.9372 11.1043 58.5378 10.682C57.963 10.0727 57.0762 9.85409 56.1982 9.85409C55.3202 9.85409 54.4335 10.0727 53.8587 10.682C53.2839 11.2913 53.0759 12.2213 53.0759 13.1435C53.0759 14.0658 53.2834 15.003 53.8587 15.6046C54.4335 16.2061 55.3202 16.433 56.1982 16.433C57.0762 16.433 57.963 16.2143 58.5378 15.6046C58.6179 15.5186 58.6894 15.4248 58.7608 15.331H61.1251C60.9171 16.0657 60.5897 16.7299 60.0945 17.2454C59.1364 18.2531 57.6593 18.6205 56.1982 18.6205C54.7372 18.6205 53.2596 18.2609 52.3014 17.2454C51.3432 16.2299 50.9919 14.6828 50.9919 13.1435C50.9919 11.6043 51.3355 10.0494 52.3014 9.04168C53.2678 8.03396 54.7367 7.66663 56.1982 7.66663C57.6598 7.66663 59.1364 8.02618 60.0945 9.04168C61.061 10.0572 61.4045 11.6043 61.4045 13.1435V13.1431Z",fill:"currentColor"}),c.jsx("path",{d:"M80.242 18.6214C81.7035 18.6214 83.1801 18.4105 84.1383 17.809C85.0965 17.2075 85.4482 16.2931 85.4482 15.3869C85.4482 14.4807 85.1042 13.5585 84.1383 12.9647C83.1801 12.371 81.703 12.1518 80.242 12.1518C79.6186 12.1518 79.0438 12.0658 78.6366 11.8394C78.2294 11.6047 78.0778 11.2534 78.0778 10.9017C78.0778 10.5499 78.2216 10.1908 78.6366 9.9639C79.0438 9.72921 79.6749 9.65147 80.2973 9.65147C80.9198 9.65147 81.5509 9.73747 81.9591 9.9639C82.3663 10.1986 82.5179 10.5499 82.5179 10.9017H84.9531C84.9531 9.99499 84.6421 9.07327 83.7719 8.47951C82.9017 7.88576 81.5679 7.66663 80.2424 7.66663C78.9169 7.66663 77.5837 7.8775 76.713 8.47951C75.8427 9.08104 75.5308 9.99499 75.5308 10.9017C75.5308 11.8083 75.8423 12.73 76.713 13.3238C77.5832 13.9176 78.9165 14.1367 80.2424 14.1367C80.929 14.1367 81.688 14.2227 82.1428 14.4491C82.5985 14.676 82.7579 15.0351 82.7579 15.3869C82.7579 15.7387 82.5985 16.0977 82.1428 16.3246C81.688 16.5511 80.9931 16.6371 80.3066 16.6371C79.62 16.6371 78.9169 16.5511 78.4694 16.3246C78.0224 16.0982 77.8543 15.7387 77.8543 15.3869H75.0435C75.0435 16.2935 75.3865 17.2153 76.3534 17.809C77.3194 18.4028 78.7809 18.6214 80.2424 18.6214H80.242Z",fill:"currentColor"}),c.jsx("path",{d:"M97.4733 13.1431V13.9948H91.0932V12.2996H95.3252C95.23 11.6825 95.006 11.1043 94.6071 10.682C94.0313 10.0727 93.1456 9.85409 92.2666 9.85409C91.3876 9.85409 90.5018 10.0727 89.927 10.682C89.3522 11.2913 89.1452 12.2213 89.1452 13.1435C89.1452 14.0658 89.3522 15.003 89.927 15.6046C90.5018 16.2061 91.3886 16.433 92.2666 16.433C93.1446 16.433 94.0313 16.2143 94.6071 15.6046C94.6863 15.5186 94.7587 15.4248 94.8301 15.331H97.1935C96.9855 16.0657 96.6585 16.7299 96.1639 17.2454C95.2057 18.2531 93.7281 18.6205 92.2666 18.6205C90.805 18.6205 89.3284 18.2609 88.3703 17.2454C87.4121 16.2299 87.0613 14.6828 87.0613 13.1435C87.0613 11.6043 87.4043 10.0494 88.3703 9.04168C89.3367 8.03396 90.806 7.66663 92.2666 7.66663C93.7272 7.66663 95.2057 8.02618 96.1639 9.04168C97.1298 10.0572 97.4729 11.6043 97.4729 13.1435L97.4733 13.1431Z",fill:"currentColor"}),c.jsx("path",{d:"M109.499 13.1431V13.9948H103.119V12.2996H107.351C107.256 11.6825 107.032 11.1043 106.632 10.682C106.057 10.0727 105.172 9.85409 104.293 9.85409C103.414 9.85409 102.528 10.0727 101.953 10.682C101.378 11.2913 101.17 12.2213 101.17 13.1435C101.17 14.0658 101.378 15.003 101.953 15.6046C102.528 16.2061 103.415 16.433 104.293 16.433C105.171 16.433 106.057 16.2143 106.632 15.6046C106.712 15.5186 106.784 15.4248 106.856 15.331H109.22C109.012 16.0657 108.685 16.7299 108.19 17.2454C107.231 18.2531 105.754 18.6205 104.293 18.6205C102.831 18.6205 101.355 18.2609 100.396 17.2454C99.4382 16.2299 99.0864 14.6828 99.0864 13.1435C99.0864 11.6043 99.4295 10.0494 100.396 9.04168C101.362 8.03396 102.832 7.66663 104.293 7.66663C105.754 7.66663 107.231 8.02618 108.19 9.04168C109.156 10.0572 109.499 11.6043 109.499 13.1435V13.1431Z",fill:"currentColor"}),c.jsx("path",{d:"M113.5 4.62817H111.104V18.6217H113.5V4.62817Z",fill:"currentColor"}),c.jsx("path",{d:"M117.589 12.8154L121.517 18.6208H118.554L114.625 12.8154L118.554 8.15088H121.517L117.589 12.8154Z",fill:"currentColor"}),c.jsx("g",{clipPath:"url(#dsh-wordmark-whale-clip)",children:c.jsx("path",{d:"M23.0584 4.95203C22.8129 4.83203 22.7074 5.06103 22.5639 5.17704C22.5149 5.21454 22.4734 5.26354 22.4319 5.30854C22.0734 5.69155 21.6543 5.94306 21.1073 5.91306C20.3073 5.86806 19.6243 6.11957 19.0203 6.73158C18.8918 5.97706 18.4652 5.52655 17.8162 5.23754C17.4767 5.08753 17.1332 4.93703 16.8952 4.61052C16.7292 4.37801 16.6837 4.11901 16.6007 3.8635C16.5477 3.70949 16.4952 3.55199 16.3177 3.52549C16.1252 3.49549 16.0497 3.65699 15.9742 3.792C15.6722 4.34401 15.5552 4.95203 15.5667 5.56805C15.5932 6.95359 16.1782 8.05712 17.3407 8.84215C17.4727 8.93215 17.5067 9.02215 17.4652 9.15366C17.3857 9.42416 17.2917 9.68667 17.2087 9.95718C17.1557 10.1297 17.0767 10.1677 16.8917 10.0922C16.2537 9.82568 15.7027 9.43117 15.2156 8.95465C14.3891 8.15513 13.6416 7.2726 12.7096 6.58158C12.4906 6.42007 12.2716 6.27007 12.045 6.12707C11.094 5.20354 12.1696 4.44502 12.4186 4.35501C12.6791 4.26101 12.5091 3.938 11.6675 3.942C10.826 3.9455 10.056 4.22751 9.07446 4.60302C8.93096 4.65952 8.77995 4.70052 8.62545 4.73452C7.73492 4.56552 6.80989 4.52802 5.84386 4.63702C4.02481 4.83953 2.57177 5.69955 1.50373 7.1676C0.220694 8.93215 -0.0813148 10.9372 0.288196 13.0283C0.676708 15.2323 1.80174 17.0569 3.53029 18.4834C5.32285 19.9625 7.38741 20.6875 9.74298 20.5485C11.1735 20.466 12.7661 20.2745 14.5626 18.7539C15.0156 18.9795 15.4912 19.0695 16.2797 19.137C16.8872 19.1935 17.4722 19.107 17.9252 19.013C18.6347 18.8629 18.5857 18.2059 18.3292 18.0854C16.2497 17.1169 16.7062 17.5109 16.2912 17.1919C17.3477 15.9419 18.9618 13.7198 19.4598 10.6942C19.5088 10.3602 19.5713 9.88968 19.5638 9.61917C19.5598 9.45417 19.5978 9.39016 19.7863 9.37116C20.3073 9.31116 20.8128 9.16866 21.2773 8.91315C22.6249 8.17713 23.1684 6.96809 23.2964 5.51905C23.3154 5.29754 23.2924 5.06853 23.0584 4.95203ZM11.3165 17.9954C9.30097 16.4109 8.32344 15.8894 7.91992 15.9119C7.54241 15.9344 7.61042 16.3664 7.69342 16.6479C7.78042 16.9259 7.89342 17.1174 8.05193 17.3614C8.16143 17.5229 8.23694 17.7629 7.94243 17.9434C7.29341 18.3449 6.16487 17.8084 6.11187 17.7819C4.79833 17.0084 3.7003 15.9874 2.92628 14.5908C2.17875 13.2468 1.74474 11.8047 1.67324 10.2657C1.65424 9.89418 1.76374 9.76267 2.13375 9.69517C2.62077 9.60517 3.12278 9.58617 3.6093 9.65767C5.66636 9.95818 7.41741 10.8777 8.88545 12.3348C9.72348 13.1643 10.3575 14.1558 11.0105 15.1243C11.705 16.1529 12.4521 17.1329 13.4036 17.9364C13.7396 18.2179 14.0076 18.4319 14.2641 18.5899C13.4906 18.6764 12.1996 18.6949 11.3165 17.9964V17.9954ZM12.2826 11.7817C12.2826 11.6167 12.4146 11.4852 12.5806 11.4852C12.6181 11.4852 12.6521 11.4927 12.6826 11.5037C12.7241 11.5187 12.7621 11.5412 12.7921 11.5752C12.8451 11.6277 12.8751 11.7027 12.8751 11.7817C12.8751 11.9467 12.7431 12.0782 12.5771 12.0782C12.4111 12.0782 12.2826 11.9467 12.2826 11.7817ZM15.2831 13.3208C15.0906 13.3998 14.8981 13.4673 14.7131 13.4748C14.4261 13.4898 14.1131 13.3733 13.9431 13.2308C13.6791 13.0093 13.4901 12.8853 13.4111 12.4988C13.3771 12.3338 13.3961 12.0782 13.4261 11.9317C13.4941 11.6162 13.4186 11.4137 13.1961 11.2297C13.0151 11.0797 12.7846 11.0382 12.5316 11.0382C12.4371 11.0382 12.3506 10.9967 12.2861 10.9632C12.1806 10.9107 12.0936 10.7792 12.1766 10.6177C12.2031 10.5652 12.3316 10.4377 12.3616 10.4152C12.7051 10.2197 13.1011 10.2837 13.4676 10.4302C13.8071 10.5692 14.0641 10.8242 14.4336 11.1847C14.8111 11.6202 14.8791 11.7402 15.0941 12.0672C15.2641 12.3228 15.4186 12.5853 15.5247 12.8858C15.5887 13.0733 15.5057 13.2268 15.2831 13.3208Z",fill:"currentColor"})}),c.jsx("rect",{x:"129.348",y:"5.5",width:"52",height:"14",rx:"2",fill:"currentColor"}),c.jsxs("g",{clipPath:"url(#dsh-wordmark-badge-clip)",children:[c.jsx("path",{d:"M132.848 8.93205H134.08V16.137H132.848V8.93205ZM136.5 8.93205H137.732V16.137H136.5V8.93205ZM133.365 13.024V11.99H137.193V13.024H133.365Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M140.397 14.432L140.672 13.453H143.202L143.532 14.432H140.397ZM140.287 16.137H139.055L141.277 8.93205H142.201L142.146 9.74605L140.947 13.915H140.969L140.287 16.137ZM145.039 16.137H143.741L143.07 13.948L143.081 13.937L141.871 9.74605L141.926 8.93205H142.817L145.039 16.137Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M146.846 8.93205H149.068C149.852 8.93205 150.443 9.11538 150.839 9.48205C151.235 9.84138 151.433 10.3327 151.433 10.956C151.433 11.22 151.396 11.4657 151.323 11.693C151.249 11.9204 151.125 12.1257 150.949 12.309C150.773 12.4924 150.531 12.65 150.223 12.782C149.922 12.9067 149.541 13.0057 149.079 13.079V13.321H146.846V12.639L148.023 12.485C148.631 12.4044 149.09 12.298 149.398 12.166C149.706 12.034 149.915 11.8764 150.025 11.693C150.135 11.5024 150.19 11.2934 150.19 11.066C150.19 10.6994 150.083 10.417 149.871 10.219C149.658 10.021 149.324 9.92205 148.87 9.92205H146.846V8.93205ZM146.395 8.93205H147.627V16.137H146.395V8.93205ZM151.917 16.093V16.137H150.366L149.024 14.322C148.87 14.1094 148.73 13.9407 148.606 13.816C148.481 13.684 148.345 13.5887 148.199 13.53C148.052 13.464 147.872 13.42 147.66 13.398C147.447 13.3687 147.176 13.3504 146.846 13.343V13.145H149.079C149.233 13.211 149.368 13.2844 149.486 13.365C149.61 13.4457 149.735 13.5447 149.86 13.662C149.992 13.7794 150.138 13.937 150.3 14.135L151.917 16.093Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M153.58 9.57005L153.591 8.93205H154.46L157.584 15.51V16.137H156.704L153.58 9.57005ZM158.024 16.137H156.968L156.88 8.93205H158.024V16.137ZM154.24 16.137H153.096V8.93205H154.152L154.24 16.137Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M159.963 8.93205H161.206V16.137H159.963V8.93205ZM160.095 9.96605V8.93205H164.858V9.96605H160.095ZM160.095 16.137V15.103H164.902V16.137H160.095ZM160.095 13.013V11.99H164.374V13.013H160.095Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M169.052 15.257C169.543 15.257 169.895 15.1654 170.108 14.982C170.328 14.7987 170.438 14.5457 170.438 14.223C170.438 14.047 170.405 13.8967 170.339 13.772C170.273 13.6474 170.152 13.5337 169.976 13.431C169.807 13.321 169.558 13.2147 169.228 13.112L168.491 12.881C167.846 12.6757 167.38 12.4044 167.094 12.067C166.808 11.7297 166.665 11.3007 166.665 10.78C166.665 10.428 166.76 10.1017 166.951 9.80105C167.142 9.50038 167.428 9.25838 167.809 9.07505C168.19 8.89172 168.663 8.80005 169.228 8.80005C169.631 8.80005 169.998 8.82938 170.328 8.88805C170.665 8.93938 171.039 9.01638 171.45 9.11905L171.274 10.175C170.834 10.0504 170.442 9.96238 170.097 9.91105C169.76 9.85238 169.463 9.82305 169.206 9.82305C168.737 9.82305 168.403 9.90738 168.205 10.076C168.007 10.2374 167.908 10.439 167.908 10.681C167.908 10.857 167.941 11.0147 168.007 11.154C168.073 11.286 168.19 11.407 168.359 11.517C168.535 11.627 168.784 11.7334 169.107 11.836L169.866 12.078C170.526 12.276 170.995 12.5327 171.274 12.848C171.553 13.156 171.692 13.585 171.692 14.135C171.692 14.5604 171.589 14.9344 171.384 15.257C171.179 15.5797 170.878 15.8327 170.482 16.016C170.093 16.1994 169.609 16.291 169.03 16.291C168.627 16.291 168.212 16.247 167.787 16.159C167.362 16.071 166.9 15.9427 166.401 15.774L166.665 14.718C167.156 14.894 167.6 15.0297 167.996 15.125C168.399 15.213 168.751 15.257 169.052 15.257Z",fill:"var(--dsw-alias-label-primary-inverted)"}),c.jsx("path",{d:"M175.809 15.257C176.3 15.257 176.652 15.1654 176.865 14.982C177.085 14.7987 177.195 14.5457 177.195 14.223C177.195 14.047 177.162 13.8967 177.096 13.772C177.03 13.6474 176.909 13.5337 176.733 13.431C176.564 13.321 176.315 13.2147 175.985 13.112L175.248 12.881C174.603 12.6757 174.137 12.4044 173.851 12.067C173.565 11.7297 173.422 11.3007 173.422 10.78C173.422 10.428 173.517 10.1017 173.708 9.80105C173.899 9.50038 174.185 9.25838 174.566 9.07505C174.947 8.89172 175.42 8.80005 175.985 8.80005C176.388 8.80005 176.755 8.82938 177.085 8.88805C177.422 8.93938 177.796 9.01638 178.207 9.11905L178.031 10.175C177.591 10.0504 177.199 9.96238 176.854 9.91105C176.517 9.85238 176.22 9.82305 175.963 9.82305C175.494 9.82305 175.16 9.90738 174.962 10.076C174.764 10.2374 174.665 10.439 174.665 10.681C174.665 10.857 174.698 11.0147 174.764 11.154C174.83 11.286 174.947 11.407 175.116 11.517C175.292 11.627 175.541 11.7334 175.864 11.836L176.623 12.078C177.283 12.276 177.752 12.5327 178.031 12.848C178.31 13.156 178.449 13.585 178.449 14.135C178.449 14.5604 178.346 14.9344 178.141 15.257C177.936 15.5797 177.635 15.8327 177.239 16.016C176.85 16.1994 176.366 16.291 175.787 16.291C175.384 16.291 174.969 16.247 174.544 16.159C174.119 16.071 173.657 15.9427 173.158 15.774L173.422 14.718C173.913 14.894 174.357 15.0297 174.753 15.125C175.156 15.213 175.508 15.257 175.809 15.257Z",fill:"var(--dsw-alias-label-primary-inverted)"})]}),c.jsxs("defs",{children:[c.jsx("clipPath",{id:"dsh-wordmark-whale-clip",children:c.jsx("rect",{width:"23.16",height:"17.0435",fill:"white",transform:"translate(0.141602 3.52185)"})}),c.jsx("clipPath",{id:"dsh-wordmark-badge-clip",children:c.jsx("rect",{width:"46",height:"14",fill:"white",transform:"translate(132.348 5.5)"})})]})]})}function s7({size:e=16,className:t,strokeWidth:n}){return c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,children:[c.jsx("path",{d:"M5.08545 8.13775L7.18455 10.2368C7.26636 10.3187 7.4003 10.3142 7.47649 10.2271L11.5148 5.61194",stroke:"currentColor"}),c.jsx("path",{d:"M6.59624 2.14853C7.50155 1.80917 8.49914 1.80919 9.40444 2.14859L13.9245 3.84317V7.11961C13.9245 11.6089 10.5565 13.5975 8.00035 14.5779C5.44423 13.5975 2.07544 11.6089 2.07544 7.11961V3.84317L6.59624 2.14853Z",stroke:"currentColor",strokeLinejoin:"round"})]})}function a7({size:e=16,className:t,strokeWidth:n}){return c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,children:[c.jsx("path",{d:"M6.4209 1.68067C7.43922 1.299 8.56177 1.29898 9.58008 1.68067L14.0996 3.375C14.2946 3.44811 14.4236 3.63455 14.4238 3.84278V6.89063C14.1115 6.71853 13.7761 6.58312 13.4238 6.48926V4.18946L9.22852 2.61621C8.43657 2.31947 7.56341 2.31939 6.77148 2.61621L2.5752 4.18946V7.11914C2.5752 11.1796 5.52369 13.056 8 14.0391C8.27653 13.9293 8.55827 13.8067 8.8418 13.6729C9.07101 13.9468 9.33228 14.1929 9.62012 14.4053C9.12409 14.6579 8.63578 14.8696 8.17871 15.0449C8.0637 15.0889 7.93628 15.0889 7.82129 15.0449C5.22011 14.0472 1.5752 11.9381 1.5752 7.11914V3.84278C1.57541 3.63469 1.70463 3.44821 1.89941 3.375L6.4209 1.68067Z",fill:"currentColor"}),c.jsx("path",{d:"M5.26392 6.60339H10.7361",stroke:"currentColor"}),c.jsx("path",{d:"M5.26392 9.86902H8.32833",stroke:"currentColor"}),c.jsx("path",{d:"M10.0317 13.2229C10.263 13.3929 10.4943 13.563 10.7256 13.733C10.7932 13.6482 10.8608 13.5634 10.9284 13.4786C12.1455 11.9522 13.3626 10.4258 14.5798 8.89935C14.6474 8.81455 14.715 8.72975 14.7826 8.64495C14.4143 8.37419 14.046 8.10344 13.6777 7.83268C13.6169 7.92252 13.5562 8.01236 13.4954 8.10219C12.4016 9.71926 11.3078 11.3363 10.214 12.9534C10.1532 13.0432 10.0924 13.1331 10.0317 13.2229Z",fill:"currentColor"}),c.jsx("path",{d:"M12.6516 12.6696C12.6516 12.925 12.6516 13.1804 12.6516 13.4359C12.6952 13.4378 12.7387 13.4398 12.7823 13.4417C13.5663 13.4768 14.3504 13.5118 15.1345 13.5469C15.178 13.5488 15.2216 13.5508 15.2651 13.5527C15.2651 13.2194 15.2651 12.8861 15.2651 12.5527C15.2216 12.5547 15.178 12.5566 15.1345 12.5586C14.3504 12.5936 13.5663 12.6287 12.7823 12.6637C12.7387 12.6657 12.6952 12.6676 12.6516 12.6696Z",fill:"currentColor"})]})}function l7({size:e=16,className:t,strokeWidth:n}){return c.jsxs("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",strokeWidth:n,children:[c.jsx("path",{d:"M6.59624 2.14853C7.50155 1.80917 8.49914 1.80919 9.40444 2.14859L13.9245 3.84317V7.11961C13.9245 11.6089 10.5565 13.5975 8.00035 14.5779C5.44423 13.5975 2.07544 11.6089 2.07544 7.11961V3.84317L6.59624 2.14853Z",stroke:"currentColor",strokeLinejoin:"round"}),c.jsx("path",{d:"M8 4.39209V9.89209",stroke:"currentColor"}),c.jsx("path",{d:"M8 10.8081V11.8081",stroke:"currentColor"})]})}function wk(e){return c.jsx(s7,{...e,strokeWidth:Y})}function yk(e){return c.jsx(s7,{...e,strokeWidth:J})}function xk(e){return c.jsx(a7,{...e,strokeWidth:Y})}function _k(e){return c.jsx(a7,{...e,strokeWidth:J})}function Ck(e){return c.jsx(l7,{...e,strokeWidth:Y})}function bk(e){return c.jsx(l7,{...e,strokeWidth:J})}var e5;const kk=Object.freeze({status:"aborted"});function V(e,t,n){function o(f,p){if(f._zod||Object.defineProperty(f,"_zod",{value:{def:p,constr:u,traits:new Set},enumerable:!1}),f._zod.traits.has(e))return;f._zod.traits.add(e),t(f,p);const m=u.prototype,v=Object.keys(m);for(let w=0;w<v.length;w++){const y=v[w];y in f||(f[y]=m[y].bind(f))}}const s=n?.Parent??Object;class l extends s{}Object.defineProperty(l,"name",{value:e});function u(f){var p;const m=n?.Parent?new l:this;o(m,f),(p=m._zod).deferred??(p.deferred=[]);for(const v of m._zod.deferred)v();return m}return Object.defineProperty(u,"init",{value:o}),Object.defineProperty(u,Symbol.hasInstance,{value:f=>n?.Parent&&f instanceof n.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class ai extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class c7 extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(e5=globalThis).__zod_globalConfig??(e5.__zod_globalConfig={});const U0=globalThis.__zod_globalConfig;function fr(e){return U0}function u7(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,s])=>t.indexOf(+o)===-1).map(([o,s])=>s)}function s0(e,t){return typeof t=="bigint"?t.toString():t}function rl(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function q0(e){return e==null}function G0(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Sk(e,t){const n=e/t,o=Math.round(n),s=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<s?0:n-o}const t5=Symbol("evaluating");function Ze(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==t5)return o===void 0&&(o=t5,o=n()),o},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function xo(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Hr(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function n5(e){return JSON.stringify(e)}function jk(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const d7="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ps(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Ek=rl(()=>{if(U0.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function fi(e){if(Ps(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Ps(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function f7(e){return fi(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Mk=new Set(["string","number","symbol"]);function hi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Vr(e,t,n){const o=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(o._zod.parent=e),o}function be(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Ik(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Ok={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Lk(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const l=Hr(e._zod.def,{get shape(){const u={};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&(u[f]=n.shape[f])}return xo(this,"shape",u),u},checks:[]});return Vr(e,l)}function Tk(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const l=Hr(e._zod.def,{get shape(){const u={...e._zod.def.shape};for(const f in t){if(!(f in n.shape))throw new Error(`Unrecognized key: "${f}"`);t[f]&&delete u[f]}return xo(this,"shape",u),u},checks:[]});return Vr(e,l)}function zk(e,t){if(!fi(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const l=e._zod.def.shape;for(const u in t)if(Object.getOwnPropertyDescriptor(l,u)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const s=Hr(e._zod.def,{get shape(){const l={...e._zod.def.shape,...t};return xo(this,"shape",l),l}});return Vr(e,s)}function Pk(e,t){if(!fi(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Hr(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return xo(this,"shape",o),o}});return Vr(e,n)}function Nk(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=Hr(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t._zod.def.shape};return xo(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Vr(e,n)}function Rk(e,t,n){const s=t._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const u=Hr(t._zod.def,{get shape(){const f=t._zod.def.shape,p={...f};if(n)for(const m in n){if(!(m in f))throw new Error(`Unrecognized key: "${m}"`);n[m]&&(p[m]=e?new e({type:"optional",innerType:f[m]}):f[m])}else for(const m in f)p[m]=e?new e({type:"optional",innerType:f[m]}):f[m];return xo(this,"shape",p),p},checks:[]});return Vr(t,u)}function Ak(e,t,n){const o=Hr(t._zod.def,{get shape(){const s=t._zod.def.shape,l={...s};if(n)for(const u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(l[u]=new e({type:"nonoptional",innerType:s[u]}))}else for(const u in s)l[u]=new e({type:"nonoptional",innerType:s[u]});return xo(this,"shape",l),l}});return Vr(t,o)}function ni(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Fk(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Ar(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function aa(e){return typeof e=="string"?e:e?.message}function hr(e,t,n){const o=e.message?e.message:aa(e.inst?._zod.def?.error?.(e))??aa(t?.error?.(e))??aa(n.customError?.(e))??aa(n.localeError?.(e))??"Invalid input",{inst:s,continue:l,input:u,...f}=e;return f.path??(f.path=[]),f.message=o,t?.reportInput&&(f.input=u),f}function K0(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ns(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}const h7=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,s0,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},p7=V("$ZodError",h7),m7=V("$ZodError",h7,{Parent:Error});function Dk(e,t=n=>n.message){const n={},o=[];for(const s of e.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):o.push(t(s));return{formErrors:o,fieldErrors:n}}function $k(e,t=n=>n.message){const n={_errors:[]},o=(s,l=[])=>{for(const u of s.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(f=>o({issues:f},[...l,...u.path]));else if(u.code==="invalid_key")o({issues:u.issues},[...l,...u.path]);else if(u.code==="invalid_element")o({issues:u.issues},[...l,...u.path]);else{const f=[...l,...u.path];if(f.length===0)n._errors.push(t(u));else{let p=n,m=0;for(;m<f.length;){const v=f[m];m===f.length-1?(p[v]=p[v]||{_errors:[]},p[v]._errors.push(t(u))):p[v]=p[v]||{_errors:[]},p=p[v],m++}}}};return o(e),n}const Y0=e=>(t,n,o,s)=>{const l=o?{...o,async:!1}:{async:!1},u=t._zod.run({value:n,issues:[]},l);if(u instanceof Promise)throw new ai;if(u.issues.length){const f=new(s?.Err??e)(u.issues.map(p=>hr(p,l,fr())));throw d7(f,s?.callee),f}return u.value},J0=e=>async(t,n,o,s)=>{const l=o?{...o,async:!0}:{async:!0};let u=t._zod.run({value:n,issues:[]},l);if(u instanceof Promise&&(u=await u),u.issues.length){const f=new(s?.Err??e)(u.issues.map(p=>hr(p,l,fr())));throw d7(f,s?.callee),f}return u.value},ol=e=>(t,n,o)=>{const s=o?{...o,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new ai;return l.issues.length?{success:!1,error:new(e??p7)(l.issues.map(u=>hr(u,s,fr())))}:{success:!0,data:l.value}},Hk=ol(m7),il=e=>async(t,n,o)=>{const s=o?{...o,async:!0}:{async:!0};let l=t._zod.run({value:n,issues:[]},s);return l instanceof Promise&&(l=await l),l.issues.length?{success:!1,error:new e(l.issues.map(u=>hr(u,s,fr())))}:{success:!0,data:l.value}},Vk=il(m7),Bk=e=>(t,n,o)=>{const s=o?{...o,direction:"backward"}:{direction:"backward"};return Y0(e)(t,n,s)},Zk=e=>(t,n,o)=>Y0(e)(t,n,o),Wk=e=>async(t,n,o)=>{const s=o?{...o,direction:"backward"}:{direction:"backward"};return J0(e)(t,n,s)},Uk=e=>async(t,n,o)=>J0(e)(t,n,o),qk=e=>(t,n,o)=>{const s=o?{...o,direction:"backward"}:{direction:"backward"};return ol(e)(t,n,s)},Gk=e=>(t,n,o)=>ol(e)(t,n,o),Kk=e=>async(t,n,o)=>{const s=o?{...o,direction:"backward"}:{direction:"backward"};return il(e)(t,n,s)},Yk=e=>async(t,n,o)=>il(e)(t,n,o),Jk=/^[cC][0-9a-z]{6,}$/,Qk=/^[0-9a-z]+$/,Xk=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,eS=/^[0-9a-vA-V]{20}$/,tS=/^[A-Za-z0-9]{27}$/,nS=/^[a-zA-Z0-9_-]{21}$/,rS=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,oS=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,r5=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,iS=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,sS="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function aS(){return new RegExp(sS,"u")}const lS=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,cS=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,uS=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,dS=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,fS=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,g7=/^[A-Za-z0-9_-]*$/,hS=/^https?$/,pS=/^\+[1-9]\d{6,14}$/,v7="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",mS=new RegExp(`^${v7}$`);function w7(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function gS(e){return new RegExp(`^${w7(e)}$`)}function vS(e){const t=w7({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${t}(?:${n.join("|")})`;return new RegExp(`^${v7}T(?:${o})$`)}const wS=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},yS=/^-?\d+$/,y7=/^-?\d+(?:\.\d+)?$/,xS=/^(?:true|false)$/i,_S=/^null$/i,CS=/^[^A-Z]*$/,bS=/^[^a-z]*$/,Jt=V("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),x7={number:"number",bigint:"bigint",object:"date"},_7=V("$ZodCheckLessThan",(e,t)=>{Jt.init(e,t);const n=x7[typeof t.value];e._zod.onattach.push(o=>{const s=o._zod.bag,l=(t.inclusive?s.maximum:s.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<l&&(t.inclusive?s.maximum=t.value:s.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),C7=V("$ZodCheckGreaterThan",(e,t)=>{Jt.init(e,t);const n=x7[typeof t.value];e._zod.onattach.push(o=>{const s=o._zod.bag,l=(t.inclusive?s.minimum:s.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>l&&(t.inclusive?s.minimum=t.value:s.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),kS=V("$ZodCheckMultipleOf",(e,t)=>{Jt.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Sk(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),SS=V("$ZodCheckNumberFormat",(e,t)=>{Jt.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),o=n?"int":"number",[s,l]=Ok[t.format];e._zod.onattach.push(u=>{const f=u._zod.bag;f.format=t.format,f.minimum=s,f.maximum=l,n&&(f.pattern=yS)}),e._zod.check=u=>{const f=u.value;if(n){if(!Number.isInteger(f)){u.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:f,inst:e});return}if(!Number.isSafeInteger(f)){f>0?u.issues.push({input:f,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):u.issues.push({input:f,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}f<s&&u.issues.push({origin:"number",input:f,code:"too_small",minimum:s,inclusive:!0,inst:e,continue:!t.abort}),f>l&&u.issues.push({origin:"number",input:f,code:"too_big",maximum:l,inclusive:!0,inst:e,continue:!t.abort})}}),jS=V("$ZodCheckMaxLength",(e,t)=>{var n;Jt.init(e,t),(n=e._zod.def).when??(n.when=o=>{const s=o.value;return!q0(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const s=o.value;if(s.length<=t.maximum)return;const u=K0(s);o.issues.push({origin:u,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),ES=V("$ZodCheckMinLength",(e,t)=>{var n;Jt.init(e,t),(n=e._zod.def).when??(n.when=o=>{const s=o.value;return!q0(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const s=o.value;if(s.length>=t.minimum)return;const u=K0(s);o.issues.push({origin:u,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),MS=V("$ZodCheckLengthEquals",(e,t)=>{var n;Jt.init(e,t),(n=e._zod.def).when??(n.when=o=>{const s=o.value;return!q0(s)&&s.length!==void 0}),e._zod.onattach.push(o=>{const s=o._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=o=>{const s=o.value,l=s.length;if(l===t.length)return;const u=K0(s),f=l>t.length;o.issues.push({origin:u,...f?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),sl=V("$ZodCheckStringFormat",(e,t)=>{var n,o;Jt.init(e,t),e._zod.onattach.push(s=>{const l=s._zod.bag;l.format=t.format,t.pattern&&(l.patterns??(l.patterns=new Set),l.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=s=>{t.pattern.lastIndex=0,!t.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:t.format,input:s.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),IS=V("$ZodCheckRegex",(e,t)=>{sl.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),OS=V("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=CS),sl.init(e,t)}),LS=V("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=bS),sl.init(e,t)}),TS=V("$ZodCheckIncludes",(e,t)=>{Jt.init(e,t);const n=hi(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(s=>{const l=s._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(o)}),e._zod.check=s=>{s.value.includes(t.includes,t.position)||s.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:s.value,inst:e,continue:!t.abort})}}),zS=V("$ZodCheckStartsWith",(e,t)=>{Jt.init(e,t);const n=new RegExp(`^${hi(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),PS=V("$ZodCheckEndsWith",(e,t)=>{Jt.init(e,t);const n=new RegExp(`.*${hi(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),NS=V("$ZodCheckOverwrite",(e,t)=>{Jt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class RS{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const o=t.split(`
|
|
69
69
|
`).filter(u=>u),s=Math.min(...o.map(u=>u.length-u.trimStart().length)),l=o.map(u=>u.slice(s)).map(u=>" ".repeat(this.indent*2)+u);for(const u of l)this.content.push(u)}compile(){const t=Function,n=this?.args,s=[...(this?.content??[""]).map(l=>` ${l}`)];return new t(...n,s.join(`
|
|
70
70
|
`))}}const AS={major:4,minor:4,patch:3},et=V("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=AS;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const s of o)for(const l of s._zod.onattach)l(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const s=(u,f,p)=>{let m=ni(u),v;for(const w of f){if(w._zod.def.when){if(Fk(u)||!w._zod.def.when(u))continue}else if(m)continue;const y=u.issues.length,_=w._zod.check(u);if(_ instanceof Promise&&p?.async===!1)throw new ai;if(v||_ instanceof Promise)v=(v??Promise.resolve()).then(async()=>{await _,u.issues.length!==y&&(m||(m=ni(u,y)))});else{if(u.issues.length===y)continue;m||(m=ni(u,y))}}return v?v.then(()=>u):u},l=(u,f,p)=>{if(ni(u))return u.aborted=!0,u;const m=s(f,o,p);if(m instanceof Promise){if(p.async===!1)throw new ai;return m.then(v=>e._zod.parse(v,p))}return e._zod.parse(m,p)};e._zod.run=(u,f)=>{if(f.skipChecks)return e._zod.parse(u,f);if(f.direction==="backward"){const m=e._zod.parse({value:u.value,issues:[]},{...f,skipChecks:!0});return m instanceof Promise?m.then(v=>l(v,u,f)):l(m,u,f)}const p=e._zod.parse(u,f);if(p instanceof Promise){if(f.async===!1)throw new ai;return p.then(m=>s(m,o,f))}return s(p,o,f)}}Ze(e,"~standard",()=>({validate:s=>{try{const l=Hk(e,s);return l.success?{value:l.data}:{issues:l.error?.issues}}catch{return Vk(e,s).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}))}),Q0=V("$ZodString",(e,t)=>{et.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??wS(e._zod.bag),e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),at=V("$ZodStringFormat",(e,t)=>{sl.init(e,t),Q0.init(e,t)}),FS=V("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=oS),at.init(e,t)}),DS=V("$ZodUUID",(e,t)=>{if(t.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=r5(o))}else t.pattern??(t.pattern=r5());at.init(e,t)}),$S=V("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=iS),at.init(e,t)}),HS=V("$ZodURL",(e,t)=>{at.init(e,t),e._zod.check=n=>{try{const o=n.value.trim();if(!t.normalize&&t.protocol?.source===hS.source&&!/^https?:\/\//i.test(o)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const s=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(s.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=s.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),VS=V("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=aS()),at.init(e,t)}),BS=V("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=nS),at.init(e,t)}),ZS=V("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Jk),at.init(e,t)}),WS=V("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Qk),at.init(e,t)}),US=V("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Xk),at.init(e,t)}),qS=V("$ZodXID",(e,t)=>{t.pattern??(t.pattern=eS),at.init(e,t)}),GS=V("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=tS),at.init(e,t)}),KS=V("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=vS(t)),at.init(e,t)}),YS=V("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=mS),at.init(e,t)}),JS=V("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=gS(t)),at.init(e,t)}),QS=V("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=rS),at.init(e,t)}),XS=V("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=lS),at.init(e,t),e._zod.bag.format="ipv4"}),ej=V("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=cS),at.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),tj=V("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=uS),at.init(e,t)}),nj=V("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=dS),at.init(e,t),e._zod.check=n=>{const o=n.value.split("/");try{if(o.length!==2)throw new Error;const[s,l]=o;if(!l)throw new Error;const u=Number(l);if(`${u}`!==l)throw new Error;if(u<0||u>128)throw new Error;new URL(`http://[${s}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function b7(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const rj=V("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=fS),at.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{b7(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function oj(e){if(!g7.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return b7(n)}const ij=V("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=g7),at.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{oj(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),sj=V("$ZodE164",(e,t)=>{t.pattern??(t.pattern=pS),at.init(e,t)});function aj(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const s=JSON.parse(atob(o));return!("typ"in s&&s?.typ!=="JWT"||!s.alg||t&&(!("alg"in s)||s.alg!==t))}catch{return!1}}const lj=V("$ZodJWT",(e,t)=>{at.init(e,t),e._zod.check=n=>{aj(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),k7=V("$ZodNumber",(e,t)=>{et.init(e,t),e._zod.pattern=e._zod.bag.pattern??y7,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const s=n.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return n;const l=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:s,inst:e,...l?{received:l}:{}}),n}}),cj=V("$ZodNumberFormat",(e,t)=>{SS.init(e,t),k7.init(e,t)}),uj=V("$ZodBoolean",(e,t)=>{et.init(e,t),e._zod.pattern=xS,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}const s=n.value;return typeof s=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:s,inst:e}),n}}),dj=V("$ZodNull",(e,t)=>{et.init(e,t),e._zod.pattern=_S,e._zod.values=new Set([null]),e._zod.parse=(n,o)=>{const s=n.value;return s===null||n.issues.push({expected:"null",code:"invalid_type",input:s,inst:e}),n}}),fj=V("$ZodUnknown",(e,t)=>{et.init(e,t),e._zod.parse=n=>n}),hj=V("$ZodNever",(e,t)=>{et.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function o5(e,t,n){e.issues.length&&t.issues.push(...Ar(n,e.issues)),t.value[n]=e.value}const pj=V("$ZodArray",(e,t)=>{et.init(e,t),e._zod.parse=(n,o)=>{const s=n.value;if(!Array.isArray(s))return n.issues.push({expected:"array",code:"invalid_type",input:s,inst:e}),n;n.value=Array(s.length);const l=[];for(let u=0;u<s.length;u++){const f=s[u],p=t.element._zod.run({value:f,issues:[]},o);p instanceof Promise?l.push(p.then(m=>o5(m,n,u))):o5(p,n,u)}return l.length?Promise.all(l).then(()=>n):n}});function Oa(e,t,n,o,s,l){const u=n in o;if(e.issues.length){if(s&&l&&!u)return;t.issues.push(...Ar(n,e.issues))}if(!u&&!s){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?u&&(t.value[n]=void 0):t.value[n]=e.value}function S7(e){const t=Object.keys(e.shape);for(const o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);const n=Ik(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function j7(e,t,n,o,s,l){const u=[],f=s.keySet,p=s.catchall._zod,m=p.def.type,v=p.optin==="optional",w=p.optout==="optional";for(const y in t){if(y==="__proto__"||f.has(y))continue;if(m==="never"){u.push(y);continue}const _=p.run({value:t[y],issues:[]},o);_ instanceof Promise?e.push(_.then(C=>Oa(C,n,y,t,v,w))):Oa(_,n,y,t,v,w)}return u.length&&n.issues.push({code:"unrecognized_keys",keys:u,input:t,inst:l}),e.length?Promise.all(e).then(()=>n):n}const mj=V("$ZodObject",(e,t)=>{if(et.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const f=t.shape;Object.defineProperty(t,"shape",{get:()=>{const p={...f};return Object.defineProperty(t,"shape",{value:p}),p}})}const o=rl(()=>S7(t));Ze(e._zod,"propValues",()=>{const f=t.shape,p={};for(const m in f){const v=f[m]._zod;if(v.values){p[m]??(p[m]=new Set);for(const w of v.values)p[m].add(w)}}return p});const s=Ps,l=t.catchall;let u;e._zod.parse=(f,p)=>{u??(u=o.value);const m=f.value;if(!s(m))return f.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),f;f.value={};const v=[],w=u.shape;for(const y of u.keys){const _=w[y],C=_._zod.optin==="optional",I=_._zod.optout==="optional",M=_._zod.run({value:m[y],issues:[]},p);M instanceof Promise?v.push(M.then(N=>Oa(N,f,y,m,C,I))):Oa(M,f,y,m,C,I)}return l?j7(v,m,f,p,o.value,e):v.length?Promise.all(v).then(()=>f):f}}),gj=V("$ZodObjectJIT",(e,t)=>{mj.init(e,t);const n=e._zod.parse,o=rl(()=>S7(t)),s=y=>{const _=new RS(["shape","payload","ctx"]),C=o.value,I=$=>{const A=n5($);return`shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`};_.write("const input = payload.value;");const M=Object.create(null);let N=0;for(const $ of C.keys)M[$]=`key_${N++}`;_.write("const newResult = {};");for(const $ of C.keys){const A=M[$],W=n5($),B=y[$],K=B?._zod?.optin==="optional",H=B?._zod?.optout==="optional";_.write(`const ${A} = ${I($)};`),K&&H?_.write(`
|
|
71
71
|
if (${A}.issues.length) {
|
|
@@ -128,7 +128,7 @@ Error generating stack: `+g.message+`
|
|
|
128
128
|
|
|
129
129
|
`)}_.write("payload.value = newResult;"),_.write("return payload;");const L=_.compile();return($,A)=>L(y,$,A)};let l;const u=Ps,f=!U0.jitless,m=f&&Ek.value,v=t.catchall;let w;e._zod.parse=(y,_)=>{w??(w=o.value);const C=y.value;return u(C)?f&&m&&_?.async===!1&&_.jitless!==!0?(l||(l=s(t.shape)),y=l(y,_),v?j7([],C,y,_,w,e):y):n(y,_):(y.issues.push({expected:"object",code:"invalid_type",input:C,inst:e}),y)}});function i5(e,t,n,o){for(const l of e)if(l.issues.length===0)return t.value=l.value,t;const s=e.filter(l=>!ni(l));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(l=>l.issues.map(u=>hr(u,o,fr())))}),t)}const E7=V("$ZodUnion",(e,t)=>{et.init(e,t),Ze(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Ze(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Ze(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Ze(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>G0(s.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,s)=>{if(n)return n(o,s);let l=!1;const u=[];for(const f of t.options){const p=f._zod.run({value:o.value,issues:[]},s);if(p instanceof Promise)u.push(p),l=!0;else{if(p.issues.length===0)return p;u.push(p)}}return l?Promise.all(u).then(f=>i5(f,o,e,s)):i5(u,o,e,s)}}),vj=V("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,E7.init(e,t);const n=e._zod.parse;Ze(e._zod,"propValues",()=>{const s={};for(const l of t.options){const u=l._zod.propValues;if(!u||Object.keys(u).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const[f,p]of Object.entries(u)){s[f]||(s[f]=new Set);for(const m of p)s[f].add(m)}}return s});const o=rl(()=>{const s=t.options,l=new Map;for(const u of s){const f=u._zod.propValues?.[t.discriminator];if(!f||f.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(u)}"`);for(const p of f){if(l.has(p))throw new Error(`Duplicate discriminator value "${String(p)}"`);l.set(p,u)}}return l});e._zod.parse=(s,l)=>{const u=s.value;if(!Ps(u))return s.issues.push({code:"invalid_type",expected:"object",input:u,inst:e}),s;const f=o.value.get(u?.[t.discriminator]);return f?f._zod.run(s,l):t.unionFallback||l.direction==="backward"?n(s,l):(s.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:u,path:[t.discriminator],inst:e}),s)}}),wj=V("$ZodIntersection",(e,t)=>{et.init(e,t),e._zod.parse=(n,o)=>{const s=n.value,l=t.left._zod.run({value:s,issues:[]},o),u=t.right._zod.run({value:s,issues:[]},o);return l instanceof Promise||u instanceof Promise?Promise.all([l,u]).then(([p,m])=>s5(n,p,m)):s5(n,l,u)}});function a0(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(fi(e)&&fi(t)){const n=Object.keys(t),o=Object.keys(e).filter(l=>n.indexOf(l)!==-1),s={...e,...t};for(const l of o){const u=a0(e[l],t[l]);if(!u.valid)return{valid:!1,mergeErrorPath:[l,...u.mergeErrorPath]};s[l]=u.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const s=e[o],l=t[o],u=a0(s,l);if(!u.valid)return{valid:!1,mergeErrorPath:[o,...u.mergeErrorPath]};n.push(u.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function s5(e,t,n){const o=new Map;let s;for(const f of t.issues)if(f.code==="unrecognized_keys"){s??(s=f);for(const p of f.keys)o.has(p)||o.set(p,{}),o.get(p).l=!0}else e.issues.push(f);for(const f of n.issues)if(f.code==="unrecognized_keys")for(const p of f.keys)o.has(p)||o.set(p,{}),o.get(p).r=!0;else e.issues.push(f);const l=[...o].filter(([,f])=>f.l&&f.r).map(([f])=>f);if(l.length&&s&&e.issues.push({...s,keys:l}),ni(e))return e;const u=a0(t.value,n.value);if(!u.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`);return e.value=u.data,e}const yj=V("$ZodTuple",(e,t)=>{et.init(e,t);const n=t.items;e._zod.parse=(o,s)=>{const l=o.value;if(!Array.isArray(l))return o.issues.push({input:l,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];const u=[],f=a5(n,"optin"),p=a5(n,"optout");if(!t.rest){if(l.length<f)return o.issues.push({code:"too_small",minimum:f,inclusive:!0,input:l,inst:e,origin:"array"}),o;l.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:l,inst:e,origin:"array"})}const m=new Array(n.length);for(let v=0;v<n.length;v++){const w=n[v]._zod.run({value:l[v],issues:[]},s);w instanceof Promise?u.push(w.then(y=>{m[v]=y})):m[v]=w}if(t.rest){let v=n.length-1;const w=l.slice(n.length);for(const y of w){v++;const _=t.rest._zod.run({value:y,issues:[]},s);_ instanceof Promise?u.push(_.then(C=>l5(C,o,v))):l5(_,o,v)}}return u.length?Promise.all(u).then(()=>c5(m,o,n,l,p)):c5(m,o,n,l,p)}});function a5(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function l5(e,t,n){e.issues.length&&t.issues.push(...Ar(n,e.issues)),t.value[n]=e.value}function c5(e,t,n,o,s){for(let l=0;l<n.length;l++){const u=e[l],f=l<o.length;if(u.issues.length){if(!f&&l>=s){t.value.length=l;break}t.issues.push(...Ar(l,u.issues))}t.value[l]=u.value}for(let l=t.value.length-1;l>=o.length&&(n[l]._zod.optout==="optional"&&t.value[l]===void 0);l--)t.value.length=l;return t}const xj=V("$ZodRecord",(e,t)=>{et.init(e,t),e._zod.parse=(n,o)=>{const s=n.value;if(!fi(s))return n.issues.push({expected:"record",code:"invalid_type",input:s,inst:e}),n;const l=[],u=t.keyType._zod.values;if(u){n.value={};const f=new Set;for(const m of u)if(typeof m=="string"||typeof m=="number"||typeof m=="symbol"){f.add(typeof m=="number"?m.toString():m);const v=t.keyType._zod.run({value:m,issues:[]},o);if(v instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(v.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:v.issues.map(_=>hr(_,o,fr())),input:m,path:[m],inst:e});continue}const w=v.value,y=t.valueType._zod.run({value:s[m],issues:[]},o);y instanceof Promise?l.push(y.then(_=>{_.issues.length&&n.issues.push(...Ar(m,_.issues)),n.value[w]=_.value})):(y.issues.length&&n.issues.push(...Ar(m,y.issues)),n.value[w]=y.value)}let p;for(const m in s)f.has(m)||(p=p??[],p.push(m));p&&p.length>0&&n.issues.push({code:"unrecognized_keys",input:s,inst:e,keys:p})}else{n.value={};for(const f of Reflect.ownKeys(s)){if(f==="__proto__"||!Object.prototype.propertyIsEnumerable.call(s,f))continue;let p=t.keyType._zod.run({value:f,issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof f=="string"&&y7.test(f)&&p.issues.length){const w=t.keyType._zod.run({value:Number(f),issues:[]},o);if(w instanceof Promise)throw new Error("Async schemas not supported in object keys currently");w.issues.length===0&&(p=w)}if(p.issues.length){t.mode==="loose"?n.value[f]=s[f]:n.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(w=>hr(w,o,fr())),input:f,path:[f],inst:e});continue}const v=t.valueType._zod.run({value:s[f],issues:[]},o);v instanceof Promise?l.push(v.then(w=>{w.issues.length&&n.issues.push(...Ar(f,w.issues)),n.value[p.value]=w.value})):(v.issues.length&&n.issues.push(...Ar(f,v.issues)),n.value[p.value]=v.value)}}return l.length?Promise.all(l).then(()=>n):n}}),_j=V("$ZodEnum",(e,t)=>{et.init(e,t);const n=u7(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(s=>Mk.has(typeof s)).map(s=>typeof s=="string"?hi(s):s.toString()).join("|")})$`),e._zod.parse=(s,l)=>{const u=s.value;return o.has(u)||s.issues.push({code:"invalid_value",values:n,input:u,inst:e}),s}}),Cj=V("$ZodLiteral",(e,t)=>{if(et.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?hi(o):o?hi(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,s)=>{const l=o.value;return n.has(l)||o.issues.push({code:"invalid_value",values:t.values,input:l,inst:e}),o}}),bj=V("$ZodTransform",(e,t)=>{et.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new c7(e.constructor.name);const s=t.transform(n.value,n);if(o.async)return(s instanceof Promise?s:Promise.resolve(s)).then(u=>(n.value=u,n.fallback=!0,n));if(s instanceof Promise)throw new ai;return n.value=s,n.fallback=!0,n}});function u5(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const M7=V("$ZodOptional",(e,t)=>{et.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ze(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ze(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${G0(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){const s=n.value,l=t.innerType._zod.run(n,o);return l instanceof Promise?l.then(u=>u5(u,s)):u5(l,s)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),kj=V("$ZodExactOptional",(e,t)=>{M7.init(e,t),Ze(e._zod,"values",()=>t.innerType._zod.values),Ze(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),Sj=V("$ZodNullable",(e,t)=>{et.init(e,t),Ze(e._zod,"optin",()=>t.innerType._zod.optin),Ze(e._zod,"optout",()=>t.innerType._zod.optout),Ze(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${G0(n.source)}|null)$`):void 0}),Ze(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),jj=V("$ZodDefault",(e,t)=>{et.init(e,t),e._zod.optin="optional",Ze(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;const s=t.innerType._zod.run(n,o);return s instanceof Promise?s.then(l=>d5(l,t)):d5(s,t)}});function d5(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Ej=V("$ZodPrefault",(e,t)=>{et.init(e,t),e._zod.optin="optional",Ze(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),Mj=V("$ZodNonOptional",(e,t)=>{et.init(e,t),Ze(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{const s=t.innerType._zod.run(n,o);return s instanceof Promise?s.then(l=>f5(l,e)):f5(s,e)}});function f5(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Ij=V("$ZodCatch",(e,t)=>{et.init(e,t),e._zod.optin="optional",Ze(e._zod,"optout",()=>t.innerType._zod.optout),Ze(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const s=t.innerType._zod.run(n,o);return s instanceof Promise?s.then(l=>(n.value=l.value,l.issues.length&&(n.value=t.catchValue({...n,error:{issues:l.issues.map(u=>hr(u,o,fr()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(l=>hr(l,o,fr()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Oj=V("$ZodPipe",(e,t)=>{et.init(e,t),Ze(e._zod,"values",()=>t.in._zod.values),Ze(e._zod,"optin",()=>t.in._zod.optin),Ze(e._zod,"optout",()=>t.out._zod.optout),Ze(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){const l=t.out._zod.run(n,o);return l instanceof Promise?l.then(u=>la(u,t.in,o)):la(l,t.in,o)}const s=t.in._zod.run(n,o);return s instanceof Promise?s.then(l=>la(l,t.out,o)):la(s,t.out,o)}});function la(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const Lj=V("$ZodReadonly",(e,t)=>{et.init(e,t),Ze(e._zod,"propValues",()=>t.innerType._zod.propValues),Ze(e._zod,"values",()=>t.innerType._zod.values),Ze(e._zod,"optin",()=>t.innerType?._zod?.optin),Ze(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const s=t.innerType._zod.run(n,o);return s instanceof Promise?s.then(h5):h5(s)}});function h5(e){return e.value=Object.freeze(e.value),e}const Tj=V("$ZodLazy",(e,t)=>{et.init(e,t),Ze(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),Ze(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Ze(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Ze(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Ze(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),zj=V("$ZodCustom",(e,t)=>{Jt.init(e,t),et.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,s=t.fn(o);if(s instanceof Promise)return s.then(l=>p5(l,n,o,e));p5(s,n,o,e)}});function p5(e,t,n,o){if(!e){const s={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(s.params=o._zod.def.params),t.issues.push(Ns(s))}}var m5;class Pj{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const o={...this.get(n)??{}};delete o.id;const s={...o,...this._map.get(t)};return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Nj(){return new Pj}(m5=globalThis).__zod_globalRegistry??(m5.__zod_globalRegistry=Nj());const ws=globalThis.__zod_globalRegistry;function Rj(e,t){return new e({type:"string",...be(t)})}function Aj(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...be(t)})}function g5(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...be(t)})}function Fj(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...be(t)})}function Dj(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...be(t)})}function $j(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...be(t)})}function Hj(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...be(t)})}function I7(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...be(t)})}function Vj(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...be(t)})}function Bj(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...be(t)})}function Zj(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...be(t)})}function Wj(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...be(t)})}function Uj(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...be(t)})}function qj(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...be(t)})}function Gj(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...be(t)})}function Kj(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...be(t)})}function Yj(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...be(t)})}function Jj(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...be(t)})}function Qj(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...be(t)})}function Xj(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...be(t)})}function eE(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...be(t)})}function tE(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...be(t)})}function nE(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...be(t)})}function rE(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...be(t)})}function oE(e,t){return new e({type:"string",format:"date",check:"string_format",...be(t)})}function iE(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...be(t)})}function sE(e,t){return new e({type:"string",format:"duration",check:"string_format",...be(t)})}function aE(e,t){return new e({type:"number",checks:[],...be(t)})}function lE(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...be(t)})}function cE(e,t){return new e({type:"boolean",...be(t)})}function uE(e,t){return new e({type:"null",...be(t)})}function dE(e){return new e({type:"unknown"})}function fE(e,t){return new e({type:"never",...be(t)})}function v5(e,t){return new _7({check:"less_than",...be(t),value:e,inclusive:!1})}function Ou(e,t){return new _7({check:"less_than",...be(t),value:e,inclusive:!0})}function w5(e,t){return new C7({check:"greater_than",...be(t),value:e,inclusive:!1})}function Lu(e,t){return new C7({check:"greater_than",...be(t),value:e,inclusive:!0})}function y5(e,t){return new kS({check:"multiple_of",...be(t),value:e})}function O7(e,t){return new jS({check:"max_length",...be(t),maximum:e})}function La(e,t){return new ES({check:"min_length",...be(t),minimum:e})}function L7(e,t){return new MS({check:"length_equals",...be(t),length:e})}function hE(e,t){return new IS({check:"string_format",format:"regex",...be(t),pattern:e})}function pE(e){return new OS({check:"string_format",format:"lowercase",...be(e)})}function mE(e){return new LS({check:"string_format",format:"uppercase",...be(e)})}function gE(e,t){return new TS({check:"string_format",format:"includes",...be(t),includes:e})}function vE(e,t){return new zS({check:"string_format",format:"starts_with",...be(t),prefix:e})}function wE(e,t){return new PS({check:"string_format",format:"ends_with",...be(t),suffix:e})}function vi(e){return new NS({check:"overwrite",tx:e})}function yE(e){return vi(t=>t.normalize(e))}function xE(){return vi(e=>e.trim())}function _E(){return vi(e=>e.toLowerCase())}function CE(){return vi(e=>e.toUpperCase())}function bE(){return vi(e=>jk(e))}function kE(e,t,n){return new e({type:"array",element:t,...be(n)})}function SE(e,t,n){const o=be(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function jE(e,t,n){return new e({type:"custom",check:"custom",fn:t,...be(n)})}function EE(e,t){const n=ME(o=>(o.addIssue=s=>{if(typeof s=="string")o.issues.push(Ns(s,o.value,n._zod.def));else{const l=s;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=o.value),l.inst??(l.inst=n),l.continue??(l.continue=!n._zod.def.abort),o.issues.push(Ns(l))}},e(o.value,o)),t);return n}function ME(e,t){const n=new Jt({check:"custom",...be(t)});return n._zod.check=e,n}function T7(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??ws,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function ut(e,t,n={path:[],schemaPath:[]}){var o;const s=e._zod.def,l=t.seen.get(e);if(l)return l.count++,n.schemaPath.includes(e)&&(l.cycle=n.path),l.schema;const u={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,u);const f=e._zod.toJSONSchema?.();if(f)u.schema=f;else{const v={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,u.schema,v);else{const y=u.schema,_=t.processors[s.type];if(!_)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);_(e,t,y,v)}const w=e._zod.parent;w&&(u.ref||(u.ref=w),ut(w,t,v),t.seen.get(w).isParent=!0)}const p=t.metadataRegistry.get(e);return p&&Object.assign(u.schema,p),t.io==="input"&&Ht(e)&&(delete u.schema.examples,delete u.schema.default),t.io==="input"&&"_prefault"in u.schema&&((o=u.schema).default??(o.default=u.schema._prefault)),delete u.schema._prefault,t.seen.get(e).schema}function z7(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const u of e.seen.entries()){const f=e.metadataRegistry.get(u[0])?.id;if(f){const p=o.get(f);if(p&&p!==u[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(f,u[0])}}const s=u=>{const f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const w=e.external.registry.get(u[0])?.id,y=e.external.uri??(C=>C);if(w)return{ref:y(w)};const _=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=_,{defId:_,ref:`${y("__shared")}#/${f}/${_}`}}if(u[1]===n)return{ref:"#"};const m=`#/${f}/`,v=u[1].schema.id??`__schema${e.counter++}`;return{defId:v,ref:m+v}},l=u=>{if(u[1].schema.$ref)return;const f=u[1],{ref:p,defId:m}=s(u);f.def={...f.schema},m&&(f.defId=m);const v=f.schema;for(const w in v)delete v[w];v.$ref=p};if(e.cycles==="throw")for(const u of e.seen.entries()){const f=u[1];if(f.cycle)throw new Error(`Cycle detected: #/${f.cycle?.join("/")}/<root>
|
|
130
130
|
|
|
131
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const f=u[1];if(t===u[0]){l(u);continue}if(e.external){const m=e.external.registry.get(u[0])?.id;if(t!==u[0]&&m){l(u);continue}}if(e.metadataRegistry.get(u[0])?.id){l(u);continue}if(f.cycle){l(u);continue}if(f.count>1&&e.reused==="ref"){l(u);continue}}}function P7(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=f=>{const p=e.seen.get(f);if(p.ref===null)return;const m=p.def??p.schema,v={...m},w=p.ref;if(p.ref=null,w){o(w);const _=e.seen.get(w),C=_.schema;if(C.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(m.allOf=m.allOf??[],m.allOf.push(C)):Object.assign(m,C),Object.assign(m,v),f._zod.parent===w)for(const M in m)M==="$ref"||M==="allOf"||M in v||delete m[M];if(C.$ref&&_.def)for(const M in m)M==="$ref"||M==="allOf"||M in _.def&&JSON.stringify(m[M])===JSON.stringify(_.def[M])&&delete m[M]}const y=f._zod.parent;if(y&&y!==w){o(y);const _=e.seen.get(y);if(_?.schema.$ref&&(m.$ref=_.schema.$ref,_.def))for(const C in m)C==="$ref"||C==="allOf"||C in _.def&&JSON.stringify(m[C])===JSON.stringify(_.def[C])&&delete m[C]}e.override({zodSchema:f,jsonSchema:m,path:p.path??[]})};for(const f of[...e.seen.entries()].reverse())o(f[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const f=e.external.registry.get(t)?.id;if(!f)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(f)}Object.assign(s,n.def??n.schema);const l=e.metadataRegistry.get(t)?.id;l!==void 0&&s.id===l&&delete s.id;const u=e.external?.defs??{};for(const f of e.seen.entries()){const p=f[1];p.def&&p.defId&&(p.def.id===p.defId&&delete p.def.id,u[p.defId]=p.def)}e.external||Object.keys(u).length>0&&(e.target==="draft-2020-12"?s.$defs=u:s.definitions=u);try{const f=JSON.parse(JSON.stringify(s));return Object.defineProperty(f,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ta(t,"input",e.processors),output:Ta(t,"output",e.processors)}},enumerable:!1,writable:!1}),f}catch{throw new Error("Error converting schema to JSON.")}}function Ht(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Ht(o.element,n);if(o.type==="set")return Ht(o.valueType,n);if(o.type==="lazy")return Ht(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Ht(o.innerType,n);if(o.type==="intersection")return Ht(o.left,n)||Ht(o.right,n);if(o.type==="record"||o.type==="map")return Ht(o.keyType,n)||Ht(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Ht(o.in,n)||Ht(o.out,n);if(o.type==="object"){for(const s in o.shape)if(Ht(o.shape[s],n))return!0;return!1}if(o.type==="union"){for(const s of o.options)if(Ht(s,n))return!0;return!1}if(o.type==="tuple"){for(const s of o.items)if(Ht(s,n))return!0;return!!(o.rest&&Ht(o.rest,n))}return!1}const IE=(e,t={})=>n=>{const o=T7({...n,processors:t});return ut(e,o),z7(o,e),P7(o,e)},Ta=(e,t,n={})=>o=>{const{libraryOptions:s,target:l}=o??{},u=T7({...s??{},target:l,io:t,processors:n});return ut(e,u),z7(u,e),P7(u,e)},OE={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},LE=(e,t,n,o)=>{const s=n;s.type="string";const{minimum:l,maximum:u,format:f,patterns:p,contentEncoding:m}=e._zod.bag;if(typeof l=="number"&&(s.minLength=l),typeof u=="number"&&(s.maxLength=u),f&&(s.format=OE[f]??f,s.format===""&&delete s.format,f==="time"&&delete s.format),m&&(s.contentEncoding=m),p&&p.size>0){const v=[...p];v.length===1?s.pattern=v[0].source:v.length>1&&(s.allOf=[...v.map(w=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:w.source}))])}},TE=(e,t,n,o)=>{const s=n,{minimum:l,maximum:u,format:f,multipleOf:p,exclusiveMaximum:m,exclusiveMinimum:v}=e._zod.bag;typeof f=="string"&&f.includes("int")?s.type="integer":s.type="number";const w=typeof v=="number"&&v>=(l??Number.NEGATIVE_INFINITY),y=typeof m=="number"&&m<=(u??Number.POSITIVE_INFINITY),_=t.target==="draft-04"||t.target==="openapi-3.0";w?_?(s.minimum=v,s.exclusiveMinimum=!0):s.exclusiveMinimum=v:typeof l=="number"&&(s.minimum=l),y?_?(s.maximum=m,s.exclusiveMaximum=!0):s.exclusiveMaximum=m:typeof u=="number"&&(s.maximum=u),typeof p=="number"&&(s.multipleOf=p)},zE=(e,t,n,o)=>{n.type="boolean"},PE=(e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},NE=(e,t,n,o)=>{n.not={}},RE=(e,t,n,o)=>{},AE=(e,t,n,o)=>{const s=e._zod.def,l=u7(s.entries);l.every(u=>typeof u=="number")&&(n.type="number"),l.every(u=>typeof u=="string")&&(n.type="string"),n.enum=l},FE=(e,t,n,o)=>{const s=e._zod.def,l=[];for(const u of s.values)if(u===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof u=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");l.push(Number(u))}else l.push(u);if(l.length!==0)if(l.length===1){const u=l[0];n.type=u===null?"null":typeof u,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[u]:n.const=u}else l.every(u=>typeof u=="number")&&(n.type="number"),l.every(u=>typeof u=="string")&&(n.type="string"),l.every(u=>typeof u=="boolean")&&(n.type="boolean"),l.every(u=>u===null)&&(n.type="null"),n.enum=l},DE=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},$E=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},HE=(e,t,n,o)=>{const s=n,l=e._zod.def,{minimum:u,maximum:f}=e._zod.bag;typeof u=="number"&&(s.minItems=u),typeof f=="number"&&(s.maxItems=f),s.type="array",s.items=ut(l.element,t,{...o,path:[...o.path,"items"]})},VE=(e,t,n,o)=>{const s=n,l=e._zod.def;s.type="object",s.properties={};const u=l.shape;for(const m in u)s.properties[m]=ut(u[m],t,{...o,path:[...o.path,"properties",m]});const f=new Set(Object.keys(u)),p=new Set([...f].filter(m=>{const v=l.shape[m]._zod;return t.io==="input"?v.optin===void 0:v.optout===void 0}));p.size>0&&(s.required=Array.from(p)),l.catchall?._zod.def.type==="never"?s.additionalProperties=!1:l.catchall?l.catchall&&(s.additionalProperties=ut(l.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(s.additionalProperties=!1)},BE=(e,t,n,o)=>{const s=e._zod.def,l=s.inclusive===!1,u=s.options.map((f,p)=>ut(f,t,{...o,path:[...o.path,l?"oneOf":"anyOf",p]}));l?n.oneOf=u:n.anyOf=u},ZE=(e,t,n,o)=>{const s=e._zod.def,l=ut(s.left,t,{...o,path:[...o.path,"allOf",0]}),u=ut(s.right,t,{...o,path:[...o.path,"allOf",1]}),f=m=>"allOf"in m&&Object.keys(m).length===1,p=[...f(l)?l.allOf:[l],...f(u)?u.allOf:[u]];n.allOf=p},WE=(e,t,n,o)=>{const s=n,l=e._zod.def;s.type="array";const u=t.target==="draft-2020-12"?"prefixItems":"items",f=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",p=l.items.map((y,_)=>ut(y,t,{...o,path:[...o.path,u,_]})),m=l.rest?ut(l.rest,t,{...o,path:[...o.path,f,...t.target==="openapi-3.0"?[l.items.length]:[]]}):null;t.target==="draft-2020-12"?(s.prefixItems=p,m&&(s.items=m)):t.target==="openapi-3.0"?(s.items={anyOf:p},m&&s.items.anyOf.push(m),s.minItems=p.length,m||(s.maxItems=p.length)):(s.items=p,m&&(s.additionalItems=m));const{minimum:v,maximum:w}=e._zod.bag;typeof v=="number"&&(s.minItems=v),typeof w=="number"&&(s.maxItems=w)},UE=(e,t,n,o)=>{const s=n,l=e._zod.def;s.type="object";const u=l.keyType,p=u._zod.bag?.patterns;if(l.mode==="loose"&&p&&p.size>0){const v=ut(l.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});s.patternProperties={};for(const w of p)s.patternProperties[w.source]=v}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(s.propertyNames=ut(l.keyType,t,{...o,path:[...o.path,"propertyNames"]})),s.additionalProperties=ut(l.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const m=u._zod.values;if(m){const v=[...m].filter(w=>typeof w=="string"||typeof w=="number");v.length>0&&(s.required=v)}},qE=(e,t,n,o)=>{const s=e._zod.def,l=ut(s.innerType,t,o),u=t.seen.get(e);t.target==="openapi-3.0"?(u.ref=s.innerType,n.nullable=!0):n.anyOf=[l,{type:"null"}]},GE=(e,t,n,o)=>{const s=e._zod.def;ut(s.innerType,t,o);const l=t.seen.get(e);l.ref=s.innerType},KE=(e,t,n,o)=>{const s=e._zod.def;ut(s.innerType,t,o);const l=t.seen.get(e);l.ref=s.innerType,n.default=JSON.parse(JSON.stringify(s.defaultValue))},YE=(e,t,n,o)=>{const s=e._zod.def;ut(s.innerType,t,o);const l=t.seen.get(e);l.ref=s.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},JE=(e,t,n,o)=>{const s=e._zod.def;ut(s.innerType,t,o);const l=t.seen.get(e);l.ref=s.innerType;let u;try{u=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=u},QE=(e,t,n,o)=>{const s=e._zod.def,l=s.in._zod.traits.has("$ZodTransform"),u=t.io==="input"?l?s.out:s.in:s.out;ut(u,t,o);const f=t.seen.get(e);f.ref=u},XE=(e,t,n,o)=>{const s=e._zod.def;ut(s.innerType,t,o);const l=t.seen.get(e);l.ref=s.innerType,n.readOnly=!0},N7=(e,t,n,o)=>{const s=e._zod.def;ut(s.innerType,t,o);const l=t.seen.get(e);l.ref=s.innerType},eM=(e,t,n,o)=>{const s=e._zod.innerType;ut(s,t,o);const l=t.seen.get(e);l.ref=s},tM=V("ZodISODateTime",(e,t)=>{KS.init(e,t),dt.init(e,t)});function nM(e){return rE(tM,e)}const rM=V("ZodISODate",(e,t)=>{YS.init(e,t),dt.init(e,t)});function oM(e){return oE(rM,e)}const iM=V("ZodISOTime",(e,t)=>{JS.init(e,t),dt.init(e,t)});function sM(e){return iE(iM,e)}const aM=V("ZodISODuration",(e,t)=>{QS.init(e,t),dt.init(e,t)});function lM(e){return sE(aM,e)}const cM=(e,t)=>{p7.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>$k(e,n)},flatten:{value:n=>Dk(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,s0,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,s0,2)}},isEmpty:{get(){return e.issues.length===0}}})},xn=V("ZodError",cM,{Parent:Error}),uM=Y0(xn),dM=J0(xn),fM=ol(xn),hM=il(xn),pM=Bk(xn),mM=Zk(xn),gM=Wk(xn),vM=Uk(xn),wM=qk(xn),yM=Gk(xn),xM=Kk(xn),_M=Yk(xn),x5=new WeakMap;function Bs(e,t,n){const o=Object.getPrototypeOf(e);let s=x5.get(o);if(s||(s=new Set,x5.set(o,s)),!s.has(t)){s.add(t);for(const l in n){const u=n[l];Object.defineProperty(o,l,{configurable:!0,enumerable:!1,get(){const f=u.bind(this);return Object.defineProperty(this,l,{configurable:!0,writable:!0,enumerable:!0,value:f}),f},set(f){Object.defineProperty(this,l,{configurable:!0,writable:!0,enumerable:!0,value:f})}})}}}const rt=V("ZodType",(e,t)=>(et.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ta(e,"input"),output:Ta(e,"output")}}),e.toJSONSchema=IE(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>uM(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>fM(e,n,o),e.parseAsync=async(n,o)=>dM(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>hM(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>pM(e,n,o),e.decode=(n,o)=>mM(e,n,o),e.encodeAsync=async(n,o)=>gM(e,n,o),e.decodeAsync=async(n,o)=>vM(e,n,o),e.safeEncode=(n,o)=>wM(e,n,o),e.safeDecode=(n,o)=>yM(e,n,o),e.safeEncodeAsync=async(n,o)=>xM(e,n,o),e.safeDecodeAsync=async(n,o)=>_M(e,n,o),Bs(e,"ZodType",{check(...n){const o=this.def;return this.clone(Hr(o,{checks:[...o.checks??[],...n.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return Vr(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(gI(n,o))},superRefine(n,o){return this.check(vI(n,o))},overwrite(n){return this.check(vi(n))},optional(){return k5(this)},exactOptional(){return tI(this)},nullable(){return S5(this)},nullish(){return k5(S5(this))},nonoptional(n){return aI(this,n)},array(){return re(this)},or(n){return Pn([this,n])},and(n){return GM(this,n)},transform(n){return j5(this,XM(n))},default(n){return oI(this,n)},prefault(n){return sI(this,n)},catch(n){return cI(this,n)},pipe(n){return j5(this,n)},readonly(){return fI(this)},describe(n){const o=this.clone();return ws.add(o,{description:n}),o},meta(...n){if(n.length===0)return ws.get(this);const o=this.clone();return ws.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return ws.get(e)?.description},configurable:!0}),e)),R7=V("_ZodString",(e,t)=>{Q0.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(o,s,l)=>LE(e,o,s);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Bs(e,"_ZodString",{regex(...o){return this.check(hE(...o))},includes(...o){return this.check(gE(...o))},startsWith(...o){return this.check(vE(...o))},endsWith(...o){return this.check(wE(...o))},min(...o){return this.check(La(...o))},max(...o){return this.check(O7(...o))},length(...o){return this.check(L7(...o))},nonempty(...o){return this.check(La(1,...o))},lowercase(o){return this.check(pE(o))},uppercase(o){return this.check(mE(o))},trim(){return this.check(xE())},normalize(...o){return this.check(yE(...o))},toLowerCase(){return this.check(_E())},toUpperCase(){return this.check(CE())},slugify(){return this.check(bE())}})}),CM=V("ZodString",(e,t)=>{Q0.init(e,t),R7.init(e,t),e.email=n=>e.check(Aj(bM,n)),e.url=n=>e.check(I7(A7,n)),e.jwt=n=>e.check(nE(FM,n)),e.emoji=n=>e.check(Vj(kM,n)),e.guid=n=>e.check(g5(_5,n)),e.uuid=n=>e.check(Fj(ca,n)),e.uuidv4=n=>e.check(Dj(ca,n)),e.uuidv6=n=>e.check($j(ca,n)),e.uuidv7=n=>e.check(Hj(ca,n)),e.nanoid=n=>e.check(Bj(SM,n)),e.guid=n=>e.check(g5(_5,n)),e.cuid=n=>e.check(Zj(jM,n)),e.cuid2=n=>e.check(Wj(EM,n)),e.ulid=n=>e.check(Uj(MM,n)),e.base64=n=>e.check(Xj(NM,n)),e.base64url=n=>e.check(eE(RM,n)),e.xid=n=>e.check(qj(IM,n)),e.ksuid=n=>e.check(Gj(OM,n)),e.ipv4=n=>e.check(Kj(LM,n)),e.ipv6=n=>e.check(Yj(TM,n)),e.cidrv4=n=>e.check(Jj(zM,n)),e.cidrv6=n=>e.check(Qj(PM,n)),e.e164=n=>e.check(tE(AM,n)),e.datetime=n=>e.check(nM(n)),e.date=n=>e.check(oM(n)),e.time=n=>e.check(sM(n)),e.duration=n=>e.check(lM(n))});function b(e){return Rj(CM,e)}const dt=V("ZodStringFormat",(e,t)=>{at.init(e,t),R7.init(e,t)}),bM=V("ZodEmail",(e,t)=>{$S.init(e,t),dt.init(e,t)}),_5=V("ZodGUID",(e,t)=>{FS.init(e,t),dt.init(e,t)}),ca=V("ZodUUID",(e,t)=>{DS.init(e,t),dt.init(e,t)}),A7=V("ZodURL",(e,t)=>{HS.init(e,t),dt.init(e,t)});function F7(e){return I7(A7,e)}const kM=V("ZodEmoji",(e,t)=>{VS.init(e,t),dt.init(e,t)}),SM=V("ZodNanoID",(e,t)=>{BS.init(e,t),dt.init(e,t)}),jM=V("ZodCUID",(e,t)=>{ZS.init(e,t),dt.init(e,t)}),EM=V("ZodCUID2",(e,t)=>{WS.init(e,t),dt.init(e,t)}),MM=V("ZodULID",(e,t)=>{US.init(e,t),dt.init(e,t)}),IM=V("ZodXID",(e,t)=>{qS.init(e,t),dt.init(e,t)}),OM=V("ZodKSUID",(e,t)=>{GS.init(e,t),dt.init(e,t)}),LM=V("ZodIPv4",(e,t)=>{XS.init(e,t),dt.init(e,t)}),TM=V("ZodIPv6",(e,t)=>{ej.init(e,t),dt.init(e,t)}),zM=V("ZodCIDRv4",(e,t)=>{tj.init(e,t),dt.init(e,t)}),PM=V("ZodCIDRv6",(e,t)=>{nj.init(e,t),dt.init(e,t)}),NM=V("ZodBase64",(e,t)=>{rj.init(e,t),dt.init(e,t)}),RM=V("ZodBase64URL",(e,t)=>{ij.init(e,t),dt.init(e,t)}),AM=V("ZodE164",(e,t)=>{sj.init(e,t),dt.init(e,t)}),FM=V("ZodJWT",(e,t)=>{lj.init(e,t),dt.init(e,t)}),D7=V("ZodNumber",(e,t)=>{k7.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(o,s,l)=>TE(e,o,s),Bs(e,"ZodNumber",{gt(o,s){return this.check(w5(o,s))},gte(o,s){return this.check(Lu(o,s))},min(o,s){return this.check(Lu(o,s))},lt(o,s){return this.check(v5(o,s))},lte(o,s){return this.check(Ou(o,s))},max(o,s){return this.check(Ou(o,s))},int(o){return this.check(C5(o))},safe(o){return this.check(C5(o))},positive(o){return this.check(w5(0,o))},nonnegative(o){return this.check(Lu(0,o))},negative(o){return this.check(v5(0,o))},nonpositive(o){return this.check(Ou(0,o))},multipleOf(o,s){return this.check(y5(o,s))},step(o,s){return this.check(y5(o,s))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Se(e){return aE(D7,e)}const DM=V("ZodNumberFormat",(e,t)=>{cj.init(e,t),D7.init(e,t)});function C5(e){return lE(DM,e)}const $M=V("ZodBoolean",(e,t)=>{uj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>zE(e,n,o)});function ye(e){return cE($M,e)}const HM=V("ZodNull",(e,t)=>{dj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>PE(e,n,o)});function VM(e){return uE(HM,e)}const BM=V("ZodUnknown",(e,t)=>{fj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>RE()});function za(){return dE(BM)}const ZM=V("ZodNever",(e,t)=>{hj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>NE(e,n,o)});function X0(e){return fE(ZM,e)}const WM=V("ZodArray",(e,t)=>{pj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>HE(e,n,o,s),e.element=t.element,Bs(e,"ZodArray",{min(n,o){return this.check(La(n,o))},nonempty(n){return this.check(La(1,n))},max(n,o){return this.check(O7(n,o))},length(n,o){return this.check(L7(n,o))},unwrap(){return this.element}})});function re(e,t){return kE(WM,e,t)}const $7=V("ZodObject",(e,t)=>{gj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>VE(e,n,o,s),Ze(e,"shape",()=>t.shape),Bs(e,"ZodObject",{keyof(){return Fe(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:za()})},loose(){return this.clone({...this._zod.def,catchall:za()})},strict(){return this.clone({...this._zod.def,catchall:X0()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return zk(this,n)},safeExtend(n){return Pk(this,n)},merge(n){return Nk(this,n)},pick(n){return Lk(this,n)},omit(n){return Tk(this,n)},partial(...n){return Rk(V7,this,n[0])},required(...n){return Ak(B7,this,n[0])}})});function j(e,t){const n={type:"object",shape:e??{},...be(t)};return new $7(n)}function fe(e,t){return new $7({type:"object",shape:e,catchall:X0(),...be(t)})}const H7=V("ZodUnion",(e,t)=>{E7.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>BE(e,n,o,s),e.options=t.options});function Pn(e,t){return new H7({type:"union",options:e,...be(t)})}const UM=V("ZodDiscriminatedUnion",(e,t)=>{H7.init(e,t),vj.init(e,t)});function Qt(e,t,n){return new UM({type:"union",options:t,discriminator:e,...be(n)})}const qM=V("ZodIntersection",(e,t)=>{wj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>ZE(e,n,o,s)});function GM(e,t){return new qM({type:"intersection",left:e,right:t})}const KM=V("ZodTuple",(e,t)=>{yj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>WE(e,n,o,s),e.rest=n=>e.clone({...e._zod.def,rest:n})});function YM(e,t,n){const o=t instanceof et,s=o?n:t,l=o?t:null;return new KM({type:"tuple",items:e,rest:l,...be(s)})}const b5=V("ZodRecord",(e,t)=>{xj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>UE(e,n,o,s),e.keyType=t.keyType,e.valueType=t.valueType});function qn(e,t,n){return!t||!t._zod?new b5({type:"record",keyType:b(),valueType:e,...be(t)}):new b5({type:"record",keyType:e,valueType:t,...be(n)})}const l0=V("ZodEnum",(e,t)=>{_j.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(o,s,l)=>AE(e,o,s),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(o,s)=>{const l={};for(const u of o)if(n.has(u))l[u]=t.entries[u];else throw new Error(`Key ${u} not found in enum`);return new l0({...t,checks:[],...be(s),entries:l})},e.exclude=(o,s)=>{const l={...t.entries};for(const u of o)if(n.has(u))delete l[u];else throw new Error(`Key ${u} not found in enum`);return new l0({...t,checks:[],...be(s),entries:l})}});function Fe(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new l0({type:"enum",entries:n,...be(t)})}const JM=V("ZodLiteral",(e,t)=>{Cj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>FE(e,n,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function oe(e,t){return new JM({type:"literal",values:Array.isArray(e)?e:[e],...be(t)})}const QM=V("ZodTransform",(e,t)=>{bj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>$E(e,n),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new c7(e.constructor.name);n.addIssue=l=>{if(typeof l=="string")n.issues.push(Ns(l,n.value,t));else{const u=l;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=n.value),u.inst??(u.inst=e),n.issues.push(Ns(u))}};const s=t.transform(n.value,n);return s instanceof Promise?s.then(l=>(n.value=l,n.fallback=!0,n)):(n.value=s,n.fallback=!0,n)}});function XM(e){return new QM({type:"transform",transform:e})}const V7=V("ZodOptional",(e,t)=>{M7.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>N7(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function k5(e){return new V7({type:"optional",innerType:e})}const eI=V("ZodExactOptional",(e,t)=>{kj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>N7(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function tI(e){return new eI({type:"optional",innerType:e})}const nI=V("ZodNullable",(e,t)=>{Sj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>qE(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function S5(e){return new nI({type:"nullable",innerType:e})}const rI=V("ZodDefault",(e,t)=>{jj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>KE(e,n,o,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function oI(e,t){return new rI({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():f7(t)}})}const iI=V("ZodPrefault",(e,t)=>{Ej.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>YE(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function sI(e,t){return new iI({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():f7(t)}})}const B7=V("ZodNonOptional",(e,t)=>{Mj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>GE(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function aI(e,t){return new B7({type:"nonoptional",innerType:e,...be(t)})}const lI=V("ZodCatch",(e,t)=>{Ij.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>JE(e,n,o,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function cI(e,t){return new lI({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const uI=V("ZodPipe",(e,t)=>{Oj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>QE(e,n,o,s),e.in=t.in,e.out=t.out});function j5(e,t){return new uI({type:"pipe",in:e,out:t})}const dI=V("ZodReadonly",(e,t)=>{Lj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>XE(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function fI(e){return new dI({type:"readonly",innerType:e})}const hI=V("ZodLazy",(e,t)=>{Tj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>eM(e,n,o,s),e.unwrap=()=>e._zod.def.getter()});function pI(e){return new hI({type:"lazy",getter:e})}const Z7=V("ZodCustom",(e,t)=>{zj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>DE(e,n)});function mI(e,t){return SE(Z7,e??(()=>!0),t)}function gI(e,t={}){return jE(Z7,e,t)}function vI(e,t){return EE(e,t)}function Br(e){return(t,n)=>{for(const o of e)Object.hasOwn(t,o)&&t[o]===void 0&&n.addIssue({code:"custom",path:[o],message:"Explicit undefined is not valid JSON"})}}const wI=Pn([b(),Se(),ye(),VM()]);function yI(e){const t=new WeakSet,n=[{value:e,leaving:!1}];try{for(;n.length>0;){const o=n.pop();if(!o)break;if(o.leaving){t.delete(o.value);continue}if(!(typeof o.value!="object"||o.value===null)){if(t.has(o.value))return!1;t.add(o.value),n.push({value:o.value,leaving:!0});for(const s of Object.values(o.value))n.push({value:s,leaving:!1})}}}catch{return!1}return!0}const e2=mI(yI,{message:"JSON value must not contain circular references"}),Rs=pI(()=>Pn([wI,re(Rs),qn(b(),Rs)])),yn=e2.pipe(Rs);e2.pipe(re(Rs));const W7=e2.pipe(qn(b(),Rs)),xI=fe({code:b().min(1),message:b().min(1),retryable:ye(),diagnostic:b().min(1).optional(),stage:b().min(1).optional(),durationMs:Se().int().nonnegative().optional(),stderrTail:b().min(1).optional()}).superRefine(Br(["diagnostic","stage","durationMs","stderrTail"])),U7=b().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u),c0=e=>b().min(1).max(e).refine(t=>t.trim().length>0),Zs=qn(U7,j({label:c0(256).optional(),description:c0(1024).optional()}).strict()).refine(e=>Object.keys(e).length<=16,"Too many locales"),q7=qn(U7,c0(4096)).refine(e=>typeof e.en=="string","English fallback is required").refine(e=>Object.keys(e).length<=16,"Too many locales"),Ws=b().refine(e=>e.trim().length>0,{message:"Identifier must not be empty or whitespace"}),Ot=Ws.brand(),_t=Ws.brand(),Us=Ws.brand();Ws.brand();Ws.brand();const _I=128,CI=256,bI=1024,kI=32,u0=b().refine(e=>e.trim().length>0,{message:"Value must not be empty or whitespace"}),mr=u0.max(_I).regex(/^[A-Za-z0-9._~:-]+$/u,"Permission Mode ID must use transport-safe characters").brand(),SI=j({id:mr,label:u0.max(CI),description:u0.max(bI).optional(),dangerous:ye().optional(),localizations:Zs.optional()}).strict(),jI=j({modes:re(SI).min(1).max(kI),defaultModeId:mr}).strict().superRefine((e,t)=>{const n=new Set;for(const[o,s]of e.modes.entries())n.has(s.id)&&t.addIssue({code:"custom",message:"Permission Mode IDs must be unique",path:["modes",o,"id"]}),n.add(s.id);n.has(e.defaultModeId)||t.addIssue({code:"custom",message:"Default Permission Mode must exist in the catalog",path:["defaultModeId"]})});j({threadId:_t,permissionModeId:mr}).strict();const Yt=Se().int().safe().nonnegative(),Jo=Se().finite().nonnegative(),ua=Se().finite().min(0).max(100),E5=j({value:Jo,turnId:b().min(1).max(1024),at:Yt}).strict();j({outputTokensPerSecond:E5.optional(),timeToFirstOutputMs:E5.extend({value:Yt}).optional()}).strict();const M5=e=>q7.refine(t=>Object.values(t).every(n=>n.length<=e)),EI=re(j({kind:oe("countdown"),id:b().min(1).max(64),expiresAtUnix:Yt,label:M5(256).optional(),tooltip:M5(1024).optional()}).strict()).max(2).refine(e=>new Set(e.map(({id:t})=>t)).size===e.length,{message:"Composer indicator IDs must be unique"}),t2=j({composerIndicators:EI.optional(),inputTokens:Yt.optional(),cachedInputTokens:Yt.optional(),cacheWriteInputTokens:Yt.optional(),outputTokens:Yt.optional(),outputTokensPerSecond:Jo.optional(),apiOutputTokensPerSecond:Jo.optional(),reasoningOutputTokens:Yt.optional(),totalTokens:Yt.optional(),totalCostUsd:Jo.optional(),totalCredits:Jo.optional(),contextUsagePercent:Jo.optional(),cacheHitRatePercent:ua.optional(),contextWindowTokens:Yt.optional(),contextUsedTokens:Yt.optional(),planFiveHourUsedPercent:ua.optional(),planFiveHourResetsAtUnix:Yt.optional(),planSevenDayUsedPercent:ua.optional(),planSevenDayResetsAtUnix:Yt.optional(),sessionCacheHitRatePercent:ua.optional(),timeToFirstOutputMs:Yt.optional(),costSource:Fe(["publicPrice","native"]).optional(),unpricedModels:re(b().min(1)).min(1).optional()}).strict().superRefine((e,t)=>{Object.keys(e).length===0&&t.addIssue({code:"custom",message:"Thread Usage must contain a reliable field"});const n=e.contextUsedTokens!==void 0,o=e.contextWindowTokens!==void 0;n!==o&&t.addIssue({code:"custom",message:"Thread Usage context fields must be provided together",path:[n?"contextWindowTokens":"contextUsedTokens"]}),e.contextWindowTokens===0&&t.addIssue({code:"custom",message:"Thread Usage contextWindowTokens must be greater than zero",path:["contextWindowTokens"]}),e.costSource!==void 0&&e.totalCostUsd===void 0&&t.addIssue({code:"custom",message:"Thread Usage costSource must be provided with totalCostUsd",path:["costSource"]}),e.unpricedModels!==void 0&&e.costSource!=="publicPrice"&&t.addIssue({code:"custom",message:"Thread Usage unpricedModels must be provided with a publicPrice cost",path:["unpricedModels"]}),e.planFiveHourResetsAtUnix!==void 0&&e.planFiveHourUsedPercent===void 0&&t.addIssue({code:"custom",message:"Thread Usage planFiveHourResetsAtUnix must be provided with planFiveHourUsedPercent",path:["planFiveHourResetsAtUnix"]}),e.planSevenDayResetsAtUnix!==void 0&&e.planSevenDayUsedPercent===void 0&&t.addIssue({code:"custom",message:"Thread Usage planSevenDayResetsAtUnix must be provided with planSevenDayUsedPercent",path:["planSevenDayResetsAtUnix"]})}),G7=Se().finite().min(0).max(100),K7=Fe(["weekly","monthly","five_hour","seven_day","unknown"]),Y7=j({id:b().min(1).max(256),label:b().min(1).max(256),localizations:Zs.optional()}).strict(),MI=j({product:b().min(1),periodType:K7.optional(),scope:Y7.optional(),localizations:Zs.optional(),used:Se().finite().nonnegative().optional(),limit:Se().finite().nonnegative().optional(),unit:b().min(1).max(32).optional(),usagePercent:G7,resetsAt:b().min(1).optional()}).strict(),II=j({availableCount:Se().int().safe().positive(),nextExpiresAt:b().min(1).optional(),expiresAt:re(b().min(1)).min(1).max(32).optional()}).strict(),n2=j({used:Se().finite().nonnegative().optional(),limit:Se().finite().nonnegative().optional(),unit:b().min(1).max(32).optional(),label:b().min(1).optional(),scope:Y7.optional(),localizations:Zs.optional(),usedPercent:G7,resetsAt:b().min(1).optional(),periodType:K7,productUsage:re(MI).min(1).optional(),resetCredits:II.optional()}).strict();j({threadId:_t,refresh:oe("exact").optional()}).strict();j({threadId:_t,usage:t2.nullable(),accountCredits:n2.optional(),accountCreditsSupported:ye().optional()}).strict();const OI=512,r2=256,LI=128,J7=100,Dr=b().refine(e=>e.trim().length>0,{message:"Value must not be empty or whitespace"}),TI=Dr.max(OI).regex(/^[A-Za-z0-9._~-]+$/u,"Model Ref must use transport-safe opaque characters").brand(),Un=j({id:TI}).strict(),Gn=Dr.max(LI).regex(/^[A-Za-z0-9._~-]+$/u,"Thinking option ID must use transport-safe characters").brand(),al=Dr.max(r2),zI=j({id:Gn,label:Dr.max(r2)}).strict(),PI=j({ref:Un,label:Dr.max(r2),resolvedModelLabel:al.optional(),fastModel:Un.optional(),supportedThinkingOptionIds:re(Gn).optional()}).strict(),o2=re(zI).superRefine((e,t)=>{const n=new Set;for(const[o,s]of e.entries())n.has(s.id)&&t.addIssue({code:"custom",message:"Thinking option IDs must be unique",path:[o,"id"]}),n.add(s.id)}),NI=j({models:re(PI),defaultModel:Un.optional(),thinkingOptions:o2,defaultThinkingOptionId:Gn.optional()}).strict().superRefine((e,t)=>{const n=new Set,o=new Set(e.thinkingOptions.map(({id:s})=>s));for(const[s,l]of e.models.entries()){n.has(l.ref.id)&&t.addIssue({code:"custom",message:"Model Catalog refs must be unique",path:["models",s,"ref","id"]}),n.add(l.ref.id),l.fastModel&&((n.has(l.fastModel.id)||e.models.some(f=>f.ref.id===l.fastModel?.id))&&t.addIssue({code:"custom",message:"Fast Model refs must be distinct and unique",path:["models",s,"fastModel"]}),n.add(l.fastModel.id));const u=new Set;for(const[f,p]of(l.supportedThinkingOptionIds??[]).entries())u.has(p)&&t.addIssue({code:"custom",message:"Supported Thinking option IDs must be unique per Model",path:["models",s,"supportedThinkingOptionIds",f]}),u.add(p),o.has(p)||t.addIssue({code:"custom",message:"Supported Thinking option must exist in the catalog",path:["models",s,"supportedThinkingOptionIds",f]})}e.defaultModel&&!n.has(e.defaultModel.id)&&t.addIssue({code:"custom",message:"Default Model must exist in the Model Catalog",path:["defaultModel","id"]}),e.defaultThinkingOptionId&&!o.has(e.defaultThinkingOptionId)&&t.addIssue({code:"custom",message:"Default Thinking option must exist in the catalog",path:["defaultThinkingOptionId"]})}),i2=j({fork:ye(),forkAcrossCwd:ye(),rollbackLastTurn:ye()}).strict().refine(e=>e.fork||!e.forkAcrossCwd,{path:["forkAcrossCwd"],message:"Cross-cwd Fork requires exact history Fork support"}),RI=Fe(["live","atCreate"]),AI=j({configuration:j({selectModel:ye(),selectThinkingOption:ye(),selectPermissionMode:ye(),permissionModeScope:RI.default("live")}).strict(),history:i2,subagents:j({observe:ye(),readTranscript:ye()}).strict().optional(),autonomousTurns:j({observe:ye()}).strict().optional(),steer:ye().optional()}).strict();j({effectiveModel:Un.optional(),resolvedModelLabel:al.optional(),effectiveThinkingOptionId:Gn.optional(),availableThinkingOptions:o2.optional(),effectivePermissionModeId:mr.optional()}).strict().superRefine((e,t)=>{e.effectiveThinkingOptionId&&e.availableThinkingOptions&&!e.availableThinkingOptions.some(({id:n})=>n===e.effectiveThinkingOptionId)&&t.addIssue({code:"custom",message:"Effective Thinking option must be currently available",path:["effectiveThinkingOptionId"]})});const FI=j({open:oe(!0)}).strict(),DI=j({status:oe("ready"),catalog:NI,permissionModes:jI.optional(),capabilities:AI,webUi:FI.optional()}).strict().superRefine((e,t)=>{const n=e.capabilities.configuration.selectPermissionMode;n!==!!e.permissionModes&&t.addIssue({code:"custom",message:"Permission Mode catalog and capability must agree",path:n?["permissionModes"]:["capabilities","configuration","selectPermissionMode"]})}),$I=j({status:Fe(["notInstalled","unavailable","error"]),error:xI}).strict();Pn([DI,$I]);j({harnessId:Ot,cwd:Dr.max(16384).optional(),refresh:ye().optional(),purpose:oe("availability").optional()}).strict();j({harnessId:Ot}).strict();j({}).strict();j({threadId:_t,model:Un}).strict();j({threadId:_t,thinkingOptionId:Gn}).strict();j({threadId:_t,includeReferenceCapability:ye().optional()}).strict();const HI=j({owner:oe("codex"),locked:ye(),effectiveModel:Un.optional(),resolvedModelLabel:al.optional(),effectiveThinkingOptionId:Gn.optional(),effectivePermissionModeId:mr.optional(),history:i2.optional(),supportsThreadReferences:oe(!0).optional()}).strict(),VI=j({owner:oe("external"),harnessId:Dr.max(256),transportModelId:Dr.max(1024),effectiveModel:Un.optional(),resolvedModelLabel:al.optional(),effectiveThinkingOptionId:Gn.optional(),availableThinkingOptions:o2.optional(),effectivePermissionModeId:mr.optional(),history:i2,usage:t2.optional(),locked:oe(!0)}).strict();Qt("owner",[HI,VI]);j({threadIds:re(_t).min(1).max(J7)}).strict().superRefine(({threadIds:e},t)=>{const n=new Set;for(const[o,s]of e.entries())n.has(s)&&t.addIssue({code:"custom",message:"Thread ownership-list IDs must be unique",path:["threadIds",o]}),n.add(s)});const BI=j({threadId:_t,owner:oe("codex")}).strict(),ZI=j({threadId:_t,owner:oe("external"),harnessId:b().max(256).pipe(Ot)}).strict(),Q7=Qt("owner",[BI,ZI]);j({threads:re(Q7).min(1).max(J7)}).strict().superRefine(({threads:e},t)=>{const n=new Set;for(const[o,s]of e.entries())n.has(s.threadId)&&t.addIssue({code:"custom",message:"Thread ownership-list results must be unique",path:["threads",o,"threadId"]}),n.add(s.threadId)});j({threadId:_t,text:b().optional()}).strict();j({kind:oe("application"),value:b().transform((e,t)=>{try{return JSON.parse(e)}catch{return t.addIssue({code:"custom",message:"Invalid steering context JSON"}),kk}}).pipe(j({expectedTurnId:Us,clientUserMessageId:b().min(1),delivery:Fe(["newTurn","activeTurn"])}).strict())}).strict().transform(e=>e.value);Fe(["activeTurn","newTurn"]);j({delivery:Fe(["official","activeTurn","newTurn"])}).strict();const WI=1;j({threadIds:re(b().min(1))}).strict();j({threadId:b().min(1).max(1024),pinned:ye()}).strict();j({prompt:b().max(16384).optional()}).strict();j({projects:re(j({id:b(),name:b(),rootPaths:re(b())})),assignments:qn(b(),b()),projectless:re(b()),pinned:re(b())});const Pa=qn(b(),za()),ys=j({epoch:b().uuid(),sequence:Se().int().nonnegative()});Qt("type",[j({type:oe("display-settings-changed"),cursor:ys}),j({type:oe("preferences-changed"),cursor:ys,revision:Se().int().nonnegative()}),j({type:oe("hello"),version:oe(1),cursor:ys,reset:ye()}),j({type:oe("changed"),cursor:ys,threadId:b().min(1),method:b().min(1)})]);const UI=Qt("type",[j({type:oe("text"),id:b(),prompt:b(),secret:ye().optional(),optional:ye().optional()}),j({type:oe("choice"),id:b(),prompt:b(),multiple:ye(),allowOther:ye(),optional:ye().optional(),options:re(j({value:b(),label:b(),description:b().optional()}))})]),qI=Qt("type",[j({type:oe("approval"),title:b(),description:b().optional(),subject:za().optional(),actions:re(j({id:b(),label:b(),effect:b()}))}),j({type:oe("question"),title:b().optional(),questions:re(UI)})]),GI=j({requestId:Pn([b(),Se().int()]),threadId:b(),kind:Fe(["approval","question"]),interaction:qI,request:Pa}),KI=j({id:b().min(1),clientUserMessageId:b().min(1),input:re(Pa),presentationInput:re(Pa).nullable().optional()}).passthrough(),YI=re(Pn([b(),Se().int().nonnegative()]));j({fields:re(j({path:YI,originalLength:Se().int().nonnegative()}))});const Tu=j({id:b().min(1),status:b().min(1),items:re(j({id:b().min(1),type:b().min(1)}).passthrough()),codexhostFileOperations:re(j({beforeItemId:b().nullable(),item:j({id:b().min(1),type:b().min(1)}).passthrough()})).optional(),error:j({message:b().optional()}).passthrough().nullable().optional(),fingerprint:b().min(1).optional(),unchanged:oe(!0).optional()}).passthrough(),JI=j({id:b().min(1).max(512),fingerprint:b().min(1).max(128)});j({threadId:b().min(1),knownTurns:re(JI).max(64).optional(),truncateToolOutput:ye().optional()});const QI=j({harnessId:b().min(1),nativeSessionId:b().min(1)});j({cursor:ys,activeTurnId:b().min(1).nullable().optional(),command:j({name:b().min(1),turn:Tu}).optional(),thread:j({id:b().min(1),cwd:b(),modelProvider:b().min(1),createdAt:Se(),updatedAt:Se(),status:j({type:b()}).passthrough(),name:b().nullable().optional(),preview:b().optional(),codexhostImportSource:QI.optional(),turns:re(Tu).length(0)}).passthrough(),turnsPage:j({data:re(Tu).max(5),nextCursor:b().nullable()}),configuration:j({native:j({model:b().min(1).max(1024).optional(),reasoningEffort:b().min(1).max(128).optional()}).optional(),effectiveModel:Un.optional(),effectiveThinkingOptionId:Gn.optional(),effectivePermissionModeId:mr.optional()}),queue:j({items:re(KI),pausedReason:Fe(["interrupted","outcome-unknown","failed"]).nullable()}).optional(),interactions:re(GI)});j({version:oe(WI),owner:oe("service").optional(),pid:Se().int().positive(),port:Se().int().min(1).max(65535),token:b().regex(/^[0-9a-f]{64}$/u),startedAt:Se(),epoch:b().uuid()});j({epoch:b().uuid(),threadId:b().min(1),requestId:Pn([b(),Se().int()]),result:Pa});j({includeArchived:ye().optional()}).strict();j({threads:re(W7),ownership:re(Q7),archivedThreadIds:re(_t)}).strict();const XI=b().regex(/^audio\/[a-z0-9.+-]+(?:\s*;[^\r\n]*)?$/i);j({available:ye()}).strict();j({path:b().min(1),mimeType:XI}).strict();const eO=Fe(["credentials-unavailable","login-expired","rate-limited","service-rejected","host-incompatible","network","timeout","audio-empty","audio-too-large","audio-format","audio-invalid"]);Qt("ok",[j({ok:oe(!0),text:b()}).strict(),j({ok:oe(!1),error:j({code:eO}).strict()}).strict()]);const I5=j({kind:Fe(["public","relay","tailscale-funnel","tailscale-https","tailscale","lan","virtual"]),url:b().min(1)}).strict(),X7=Qt("status",[j({status:oe("not-installed")}),j({status:oe("not-running")}),j({status:oe("not-logged-in")}),j({status:oe("https-disabled")}),j({status:oe("not-serving"),command:b()}),j({status:oe("occupied"),target:b()}),j({status:oe("serving"),url:b(),funnel:ye()}),j({status:oe("error"),message:b()})]);j({state:X7,error:b().optional()}).strict();const tO=Qt("status",[j({status:oe("on")}),j({status:oe("off")}),j({status:oe("invalid"),reason:b()})]),nO=j({lan:ye(),autostart:tO}).strict(),O5=j({expiresAt:b().optional(),issuing:ye(),failure:j({detail:b().optional(),retryAt:b(),paused:ye()}).optional()}),rO=Qt("status",[j({status:oe("off"),reason:Fe(["invite","name-taken","banned"]).optional()}),j({status:oe("connecting"),reason:Fe(["full","unreachable"]).optional()}),j({status:oe("connected"),url:b(),certificate:O5}),j({status:oe("missing-certificate"),url:b(),certificate:O5}),j({status:oe("stopped"),reason:Fe(["replaced","rejected","unsupported-version"])})]);b().max(253).regex(/^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?$/i).transform(e=>e.toLowerCase());b().regex(/^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)?$/);const oO=Fe(["official","self-hosted"]);j({secret:b().min(1),lastUsedAt:Se().nullable(),networkUrls:re(I5),directCandidates:re(I5).optional(),tailscale:X7,background:nO.optional(),relay:j({state:rO,enabled:ye(),kind:oO,officialHost:b(),customHost:b().optional(),officialHostname:b().optional(),customHostname:b().optional(),quotaUntil:b().optional()}).strict().optional()}).strict();j({url:b()}).strict();const iO=fe({threadId:b().min(1).max(1024),view:Fe(["result","messages"]),cursor:b().min(1).max(8192).optional(),limit:Se().int().min(1).max(100).optional()}),eh=j({id:b().min(1).max(256),harnessId:b().min(1),label:b().min(1).max(512),provider:Fe(["openai-codex","xai"])}).strict(),va=b().regex(/^[a-z][a-z0-9-]{0,47}$/),sO=j({name:va,source:eh,importedAt:b()}).strict(),aO=Qt("action",[j({action:oe("list")}).strict(),j({action:oe("import"),sourceId:b().min(1).max(256),name:va,confirmed:oe(!0)}).strict(),j({action:oe("reimport"),sourceId:b().min(1).max(256),name:va,confirmed:oe(!0)}).strict(),j({action:oe("remove"),name:va,confirmed:oe(!0)}).strict()]),lO=j({provider:b().min(1).max(128),type:Fe(["oauth","api_key","unknown"]),label:b().min(1).max(512).optional(),vendor:Fe(["openai-codex","xai"]).optional()}).strict();j({sources:re(eh),targets:re(j({harnessId:b(),providers:re(Fe(["openai-codex","xai"])),imports:re(sO),others:re(lO).default([])}).strict())}).strict();j({targetHarnessId:b().min(1).max(128).optional(),request:aO}).strict();j({events:ye()});const th=re(fe({agent:b().min(1).max(128),section:Fe(["main","more","auto"])})).max(256).refine(e=>new Set(e.map(t=>t.agent)).size===e.length,"Duplicate Harness IDs");fe({entries:th.nullable()});fe({});fe({entries:th,initializeOnly:ye().optional()});const cO=5,uO=1440,nh=fe({enabled:ye(),timeoutMinutes:Se().int().min(cO).max(uO)}),ll=b().regex(/^external$/u),rh=Ot.transform(e=>String(e)),oh=fe({model:Un.optional(),thinkingOptionId:Gn.optional(),permissionModeId:mr.optional()}).refine(e=>!!(e.model||e.thinkingOptionId||e.permissionModeId),"A default configuration must contain a preference"),dO=fe({lastHarness:Ot.optional(),byHarness:qn(rh,oh)}),d0=b().min(1).max(1024),ih=fe({idleRelease:nh.optional(),favorites:qn(rh,re(d0).max(2048)).default({}),newThread:dO.optional()});fe({scope:ll,revision:Se().int().nonnegative(),values:ih});fe({scope:ll.default("external")});const fO=Qt("kind",[fe({kind:oe("idleRelease"),value:nh}),fe({kind:oe("favorite"),harnessId:Ot,modelId:d0,enabled:ye()}),fe({kind:oe("favorites"),harnessId:Ot,modelIds:re(d0).max(2048)}),fe({kind:oe("newThread"),lastHarness:Ot.optional(),harnessId:Ot.optional(),configuration:oh.optional()})]);fe({scope:ll.default("external"),operations:re(fO).min(1).max(256),initializeOnly:ye().optional(),expectedRevision:Se().int().nonnegative().optional()}).superRefine((e,t)=>{for(const n of e.operations)n.kind==="newThread"&&(!n.lastHarness&&!n.configuration||!!n.harnessId!=!!n.configuration)&&t.addIssue({code:"custom",message:"A default Harness or complete configuration is required"})});fe({version:oe(1),revision:Se().int().nonnegative(),scopes:qn(ll,ih)});const fs=Se().finite().nonnegative(),cl=fe({input:fs,output:fs,cacheRead:fs.optional(),cacheWrite:fs.optional(),cacheWrite1h:fs.optional()}),f0=b().max(512).refine(e=>e.trim()===e&&e.length>0,"Model ID is required");fe({path:b(),entries:re(fe({key:b(),price:cl})),error:b().nullable()});fe({});fe({key:f0,price:cl.nullable(),previousKey:f0.optional()});fe({model:f0});const hO=fe({official:ye().optional(),canonicalModelId:b().min(1).optional(),provider:b().min(1).max(512),model:b().min(1).max(512),price:cl});fe({price:cl.nullable(),suggestions:re(hO).max(6).optional()});const sh=["today","7d","30d","90d","all"],jt=Se().int().min(0).max(Number.MAX_SAFE_INTEGER),xs=b().regex(/^\d{4}-\d{2}-\d{2}$/u),cr=b().min(1).max(128),Nr=b().min(1).max(512),Cs=b().min(1).max(4096);fe({range:Fe(sh),timeZone:b().min(1).max(128).refine(e=>{try{return new Intl.DateTimeFormat("en",{timeZone:e}),!0}catch{return!1}},"Unsupported usage statistics timezone").optional(),harness:cr.optional(),model:Nr.nullable().optional(),project:Cs.nullable().optional(),date:xs.optional()});const ah=fe({requests:jt,inputTokens:jt,cachedInputTokens:jt,cacheWriteInputTokens:jt,cacheKnownInputTokens:jt,cacheHitCachedInputTokens:jt,cacheHitInputTokens:jt,outputTokens:jt,reasoningOutputTokens:jt,costUsd:Se().finite().min(0),unpricedRequests:jt,unmeteredRequests:jt}),Qo=ah.shape,L5=fe({harness:cr,sessionId:b().min(1).max(512),project:Cs.nullable(),title:b().min(1).max(200).optional(),models:re(Nr).max(16),firstAtMs:jt,lastAtMs:jt,...Qo});fe({range:Fe(sh),from:xs.nullable(),to:xs,filters:fe({harness:cr.nullable(),model:Nr.nullable(),unknownModel:ye(),project:Cs.nullable(),unknownProject:ye(),date:xs.nullable()}),reading:fe({complete:ye(),sources:jt,read:jt}),failures:re(fe({harness:cr,message:b().max(2048)})).max(256),options:fe({harnesses:re(cr).max(256),models:re(Nr.nullable()).max(4096),projects:re(Cs.nullable()).max(4096)}),modelLabels:re(fe({harness:cr,model:Nr,label:Nr})).max(4096).optional(),credits:re(fe({harness:cr,model:Nr.nullable(),credits:Se().finite().min(0),reportedRequests:jt,requests:jt})).max(4096).optional(),totals:ah,daily:re(fe({date:xs,harness:cr,...Qo})).max(2e5),hourly:re(fe({weekday:Se().int().min(0).max(6),hour:Se().int().min(0).max(23),...Qo})).max(168),byHarness:re(fe({harness:cr,...Qo})).max(256),byModel:re(fe({model:Nr.nullable(),...Qo,harnessPricedRequests:jt})).max(4096),byProject:re(fe({project:Cs.nullable(),...Qo})).max(4096),sessions:re(L5).max(100),recentSessions:re(L5).max(100).optional()});j({threadId:_t});j({discarded:ye()});const pO=Qt("type",[j({id:b().min(1),type:oe("choice"),prompt:b(),options:re(j({value:b().min(1),label:b(),description:b().optional()})).min(1),multiple:ye(),allowOther:ye(),optional:ye()}),j({id:b().min(1),type:oe("text"),prompt:b(),multiline:ye(),secret:oe(!1),optional:ye(),placeholder:b().optional(),prefill:b().optional()})]),mO=j({interactionId:b().min(1),turnId:b().min(1),title:b().optional(),questions:re(pO).min(1)}).refine(({questions:e})=>e.some(t=>t.type==="choice"&&t.multiple),{message:"Shared cards require at least one multi-select question"});fe({threadId:b().min(1)});j({questions:re(mO)});fe({threadId:b().min(1),turnId:b().min(1),interactionId:b().min(1),answers:qn(b(),re(b())),cancelled:ye().default(!1)});j({accepted:oe(!0)});const gO=j({path:b(),oldText:b().nullable(),newText:b()});j({sessionId:b().min(1),turn:Se().int().nonnegative(),path:b().min(1).optional()});j({diffs:re(gO)});fe({});fe({});const vO=j({sessionId:b().min(1),epoch:b().min(1),turn:Se().int().nonnegative(),seq:Se().int().nonnegative(),callId:b().min(1),part:Se().int().nonnegative(),version:b().min(1)});j({reference:vO,length:Se().int().nonnegative(),bytes:Se().int().nonnegative()});fe({title:b().trim().min(1).max(200),type:Fe(["info","warning","danger"]),body:b().trim().min(1).max(16*1024)});fe({});fe({url:b().max(2048).regex(/^http:\/\/(?:127\.0\.0\.1|localhost):\d{1,5}\/(?:\?.*)?$/u)});const wO=1,yO=Fe(["idle","running","busy","closing","failed","blocked"]),xO=Fe(["none","disabled","timeout","operation","background","identity","persistence","closeFailed"]);re(fe({threadId:b(),title:b(),harnessId:b(),state:yO,reason:xO,inactiveMs:Se().nonnegative()}));fe({threadId:_t,turnId:Us});const _O=j({amount:Se().finite().nonnegative(),currency:b().trim().min(1).max(8),label:b().trim().min(1).max(128).optional()}).strict(),lh=j({email:b().trim().min(1).max(320).optional(),label:b().trim().min(1).max(256).optional(),plan:b().trim().min(1).max(128).optional(),credits:n2.optional(),balance:_O.optional()}).strict();function ch(e){return e.refine(t=>{const n=t;return n.credits!==void 0||n.balance!==void 0},{message:"Account must report either credits or a balance"})}const T5=ch(lh),s2={harnessId:Ot,harnessName:b().trim().min(1).max(128)},CO=j(s2).strict();j({}).strict();j({sources:re(CO).max(128)}).strict();j({harnessId:Ot,refresh:ye().optional()}).strict();j({...s2,account:T5.nullable(),accounts:re(T5).max(8).optional()}).strict();j({refresh:ye().optional()}).strict();j({accounts:re(ch(lh.extend(s2))).max(128)}).strict();const bO=128*1024,uh=128,a2=b().min(1).max(128).regex(/^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/u).pipe(Ot),wi=a2.refine(e=>e!=="codex","The official Codex identity is reserved"),z5=b().min(1).max(512).refine(e=>!/[\\\u0000:#?]/u.test(e)&&!e.startsWith("/")&&!e.split("/").some(t=>t===".."||t===""),"Plugin resources must be relative paths inside the plugin"),wa=F7().refine(e=>/^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(e),"Plugin documentation links must be credential-free HTTPS URLs"),h0=j({en:b().max(4096),"zh-CN":b().max(4096).optional()}).strict(),kO=j({commands:re(j({terminal:b().max(256),command:b().max(4096)}).strict()).max(8),before:h0.optional(),after:h0.optional(),downloads:re(j({label:b().max(128),url:wa}).strict()).max(8).optional()}).strict(),dh={id:a2,name:b().trim().min(1).max(128),version:b().min(1).max(128),kind:oe("usage").optional(),iconStyle:j({vector:j({viewBox:b().max(128).regex(/^-?\d+(?:\.\d+)?(?: +-?\d+(?:\.\d+)?){3}$/u),color:b().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu),paths:re(j({d:b().min(1).max(32768).regex(/^[MmLlHhVvCcSsQqTtAaZz\d.,+eE\s-]+$/u),fillRule:Fe(["evenodd","nonzero"]).optional(),fill:b().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu).optional()}).strict()).min(1).max(32)}).strict().optional(),background:b().regex(/^#[a-f0-9]{6}$/iu).optional(),borderRadius:Se().min(0).max(50).optional(),paddingRatio:Se().min(0).max(.25).optional()}).strict().optional(),installation:kO.optional(),notice:h0.optional(),launchCommand:oe(!0).optional(),links:j({website:wa.optional(),documentation:wa.optional(),installation:wa.optional()}).strict().optional()};j({manifestVersion:oe(1),...dh,adapterApiVersion:Se().int().positive(),entry:z5,icon:z5.optional()}).strict();const SO=b().max(Math.ceil(bO/3)*4+64).regex(/^data:image\/(?:png|jpeg|webp|svg\+xml);base64,[A-Za-z0-9+/]+={0,2}$/u),jO=j({...dh,icon:SO.optional()}).strict();j({}).strict();j({plugins:re(jO.extend({id:wi})).max(uh)}).strict();j({version:oe(1),enabled:re(a2).max(uh)}).strict().refine(e=>new Set(e.enabled).size===e.enabled.length,{message:"Enabled plugin IDs must be unique",path:["enabled"]});j({harnessId:wi,model:Un.optional(),thinkingOptionId:Gn.optional(),permissionModeId:mr.optional(),prewarm:oe(!0).optional()}).strict();const fh=b().trim().min(1).max(4096).refine(e=>!/[\u0000\r\n]/u.test(e),"Invalid entrypoint path"),EO=j({harnessId:wi}).strict();EO.extend({path:fh.nullable()});j({path:fh.nullable(),restartRequired:ye()}).strict();j({harnessId:Ot,action:Fe(["check","update","install"])}).strict();const MO=j({currentVersion:b().min(1).max(128),latestVersion:b().min(1).max(128),updateAvailable:ye(),canUpdate:ye(),versionKind:Fe(["cli","application"]).optional(),manualUpdateUrl:F7().max(2048).refine(e=>/^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(e),"Manual updates require a credential-free HTTPS URL").optional(),message:b().max(2048).optional(),messageCode:b().min(1).max(128).optional(),notice:q7.optional(),latestVersionKind:Fe(["unknown","tracking-branch"]).optional()}).strict();j({taskId:b().uuid()}).strict();Qt("status",[j({taskId:b().uuid(),status:oe("running")}).strict(),j({taskId:b().uuid(),status:oe("succeeded"),result:MO}).strict(),j({taskId:b().uuid(),status:oe("failed"),error:j({code:Se().int(),message:b().min(1).max(2048)}).strict()}).strict()]);const ul=b().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u),hh=b().trim().min(1),IO=Fe(["free","go","plus","pro","prolite","team","self_serve_business_prolite","self_serve_business_usage_based","business","ent26","enterprise_cbp_automation","enterprise_cbp_usage_based","enterprise","edu","edu_plus","edu_pro","unknown"]),OO=j({accountId:ul,label:hh.max(256),email:b().email().max(320).optional(),planType:IO.optional()}).strict(),LO=Fe(["ready","unavailable"]);j({version:oe(2),currentAccountId:ul.nullable(),phase:LO,revision:Se().int().nonnegative(),instanceId:hh.max(1024).optional(),accounts:re(OO).max(1)}).strict();j({accountId:ul,refresh:ye().optional()}).strict();j({accountId:ul,usage:t2.nullable(),accountCredits:n2.optional(),freshness:Fe(["live","cached"]),observedAt:b().datetime().nullable()}).strict();const TO=1024,zO=16384,PO=4096,l2=1e3,NO=864e13,As=b().refine(e=>e.trim().length>0,"Value must not be empty or whitespace").refine(e=>!e.includes("\0"),"Value must not contain NUL"),c2=As.max(TO),ph=j({nativeSessionId:c2,title:As.max(PO).nullable(),updatedAt:Se().int().nonnegative().max(NO),cwd:As.max(zO),running:ye().nullable()}).strict();j({}).strict();j({harnesses:re(j({harnessId:wi,name:As.max(128)}).strict()).max(128)}).strict();j({harnessId:wi,query:b().trim().max(4096).refine(e=>!e.includes("\0")).optional(),offset:Se().int().nonnegative().safe().optional(),limit:Se().int().min(1).max(l2).optional()}).strict();j({candidates:re(ph).max(l2),total:Se().int().nonnegative().safe()}).strict();j({harnessId:wi,nativeSessionId:c2}).strict();j({threadId:As.max(1024).pipe(_t)}).strict();const RO=l2,AO=1024,FO=b().refine(e=>e.trim().length>0,"Value must not be empty or whitespace").refine(e=>!e.includes("\0"),"Value must not contain NUL"),DO=c2,$O=ph;j({}).strict();j({candidates:re($O).max(RO)}).strict();j({nativeSessionId:DO}).strict();j({threadId:FO.max(AO).pipe(_t)}).strict();j({threadId:_t,lastTurnId:Us}).strict();j({threadId:_t}).strict();const mh=b().trim().min(1).max(128).regex(/^[A-Za-z0-9._:-]+$/u).brand(),HO=b().min(1).max(128),VO=b().trim().min(1).max(128),BO=b().trim().min(1).max(512),ZO=j({id:mh,invocation:HO,label:VO,description:BO.optional(),localizations:Zs.optional(),argumentMode:Fe(["none","text"]),kind:Fe(["command","skill"]).optional()}).strict();j({commands:re(ZO),warnings:re(b().min(1)).optional(),source:Fe(["live","static"]).optional()}).strict().superRefine((e,t)=>{const n=new Set;for(const[o,s]of e.commands.entries())n.has(s.id)&&t.addIssue({code:"custom",message:"Harness command IDs must be unique",path:["commands",o,"id"]}),n.add(s.id)});j({harnessId:Ot,cwd:b().min(1).optional()}).strict();j({threadId:_t}).strict();j({threadId:_t,commandId:mh,turnId:Us.optional(),arguments:W7.optional()}).strict();j({accepted:oe(!0),turnId:Us.optional()}).strict();const dl=oe("2.0").optional(),Ln=X0().optional(),gh=b().min(1),u2=Pn([b(),Se().int()]),WO=j({code:Se().int(),message:b(),data:yn.optional()}).catchall(yn).superRefine(Br(["data"])),UO=j({jsonrpc:dl,id:u2,method:gh,params:yn.optional(),result:Ln,error:Ln}).catchall(yn).superRefine(Br(["jsonrpc","params","result","error"])),qO=j({jsonrpc:dl,id:Ln,method:gh,params:yn.optional(),result:Ln,error:Ln}).catchall(yn).superRefine(Br(["jsonrpc","id","params","result","error"])),GO=j({jsonrpc:dl,id:u2,method:Ln,params:Ln,result:yn,error:Ln}).catchall(yn).superRefine(Br(["jsonrpc","method","params","error"])),KO=j({jsonrpc:dl,id:u2,method:Ln,params:Ln,result:Ln,error:WO}).catchall(yn).superRefine(Br(["jsonrpc","method","params","result"]));Pn([UO,qO,GO,KO]);const Fs=b().refine(e=>e.trim().length>0,{message:"Native identifier must not be empty or whitespace"});fe({harnessId:Ot,nativeSessionId:Fs,locator:yn.optional(),formatVersion:oe(1)}).superRefine(Br(["locator"]));fe({harnessId:Ot,nativeSessionId:Fs,nativeTurnKey:Fs,formatVersion:oe(1)});fe({harnessId:Ot,nativeSessionId:Fs,checkpointId:Fs,locator:yn.optional(),formatVersion:oe(1)}).superRefine(Br(["locator"]));const vh=500,YO=/^\d+\.\d+\.\d+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/u,p0=b().regex(YO),wh=Fe(["npm","windows-installer","macos-dmg"]),JO=Fe(["prepared","downloading","waiting-for-exit","installing","restarting","succeeded","failed"]),d2=fe({version:p0,installation:wh,phase:JO,updatedAt:Se().int().nonnegative(),downloadedBytes:Se().int().nonnegative().optional(),totalBytes:Se().int().positive().optional(),error:b().min(1).max(vh).nullable(),serviceStopOutput:b().optional()}).superRefine((e,t)=>{e.downloadedBytes!==void 0&&e.totalBytes!==void 0&&e.downloadedBytes>e.totalBytes&&t.addIssue({code:"custom",path:["downloadedBytes"],message:"downloadedBytes must not exceed totalBytes"})});fe({});const QO=b().max(300).regex(/^https:\/\/github\.com\/BytePioneer-AI\/codex-host\/releases\/tag\/v[0-9A-Za-z.+-]+$/u,"release notes URL must identify a codexhost GitHub Release");fe({currentVersion:p0,installation:wh.nullable(),latestVersion:p0.nullable(),updateAvailable:ye(),installationAvailable:ye(),releaseNotes:b().min(1).max(2e4).nullable(),releaseNotesUrl:QO.nullable(),status:d2.nullable(),error:b().min(1).max(vh).nullable()});fe({status:d2});fe({status:d2.nullable()});const XO=/\[@([^\]\n]+)\]\(<?subagent:\/\/codexhost\.([a-z0-9][a-z0-9-]*)>?\)/gu;function eL(e){const t=[],n=new Set;return{text:e.replace(XO,(s,l,u)=>{const f=l.trim();return n.has(u)||(n.add(u),t.push({harnessId:u,label:f})),`@${f}`}),mentions:t}}const tL=Fe(["idle","installing","restarting","succeeded","failed"]);j({runningVersion:b().nullable(),installedVersion:b().nullable(),restartRequired:ye(),remote:ye(),updateSupported:ye(),update:j({phase:tL,targetVersion:b().nullable(),error:b().nullable()})});const nL=j({version:b().regex(/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/u)}).strict();j({hostname:b().min(1).max(1024).refine(e=>!e.startsWith("-")&&!/\s/u.test(e)),port:Se().int().min(1).max(65535).nullable(),identity:b().max(4096).nullable(),action:Fe(["inspect","install","update","repair","uninstall"]),uninstallPackage:ye().optional(),version:b().regex(/^\d+\.\d+\.\d+$/u).nullable()}).strict();j({state:Fe(["installed","not-installed"])}).strict();const Xo=b().min(1).max(1024),P5=j({hostId:Xo,displayName:b().min(1).max(1024),source:Fe(["codex-managed","discovered"]),sshAlias:b().max(1024).nullable(),sshHost:b().min(1).max(1024),sshPort:Se().int().min(1).max(65535).nullable(),identity:b().max(4096).nullable(),autoConnect:ye(),connectionAnalyticsId:b().max(1024).optional()}),rL=fe({displayName:b().min(1).max(1024),hostname:b().min(1).max(1024),sshPort:Se().int().min(1).max(65535).nullable(),identity:b().max(4096).nullable()});Qt("action",[fe({action:oe("list")}),fe({action:oe("read-thread"),hostId:Xo.refine(e=>e!=="local"),input:iO}),fe({action:oe("save"),draft:rL,previous:P5.nullable()}),fe({action:oe("remove"),previous:P5}),fe({action:oe("connect"),hostId:Xo,enabled:ye()}),fe({action:oe("state"),hostId:Xo}),fe({action:oe("runtime"),hostId:Xo}),fe({action:oe("update"),hostId:Xo.refine(e=>e!=="local"),version:nL.shape.version})]);Pn([fe({result:yn}),fe({error:fe({code:Se().int(),message:b()})})]);const fl=b().max(214).regex(/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/u),N5=Pn([b(),j({en:b()}).catchall(b())]),oL=j({title:N5.optional(),description:N5.optional(),icon:b().max(Math.ceil(256*1024/3)*4+64).regex(/^data:image\/(?:svg\+xml|png|jpeg|webp);base64,[A-Za-z0-9+/]*={0,2}$/u).optional(),error:b().optional()}),iL=j({id:fl,name:b().min(1).max(214),version:b().min(1).max(128),format:oe("dsh"),supportedTargets:YM([oe("web")]),enabledTargets:re(oe("web")).max(1),source:b().min(1).max(4096),projectUrl:b().max(4096).url({protocol:/^https?$/u}).optional(),installedAt:b(),meta:oL.optional(),loadError:b().optional()});j({extensions:re(iL),loadedIds:re(fl),safeMode:ye(),storeError:b().optional()});const sL=b().trim().max(2048).url({protocol:/^https?$/u,normalize:!0}).refine(e=>!/[\s\\?#]/u.test(e)&&!e.split("/")[2]?.includes("@"),"Use an HTTP(S) registry URL without credentials, a query, or a fragment.").transform(e=>e.endsWith("/")?e:`${e}/`);j({spec:b().trim().min(1).max(4096),registry:sL.optional()}).strict();j({id:fl,enabled:ye()}).strict();j({id:fl}).strict();oe(wO);function yh({kind:e,size:t=16,className:n,strokeWidth:o,reference:s}){if(e==="session"&&s!==void 0){const{text:l,mentions:u}=eL(s),f=u[0];if(f&&u.length===1&&l===`@${f.label}`)return c.jsx(q8,{id:f.harnessId,src:`/harness-icons/${encodeURIComponent(f.harnessId)}`,presentationUrl:"/harness-icons/presentation.json",size:t,className:n,fallback:c.jsx(l8,{size:t,className:n})})}switch(e){case"session":return c.jsx(G6,{size:t,className:n,strokeWidth:o});case"file":return c.jsx(A0,{size:t,className:n,strokeWidth:o});case"folder":return c.jsx(el,{size:t,className:n,strokeWidth:o})}}function xh(e){return c.jsx(yh,{...e,strokeWidth:Y})}function aL(e){return c.jsx(yh,{...e,strokeWidth:J})}const lL="__DSH_CODE_ICON_INSTANCE__",cL=Object.freeze({angular:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F8ECEF" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#DD0031" d="M16.712 17.711H7.288l-1.204 2.916L12 24l5.916-3.373-1.204-2.916ZM14.692 0l7.832 16.855.814-12.856L14.692 0ZM9.308 0 .662 3.999l.814 12.856L9.308 0Zm-.405 13.93h6.198L12 6.396 8.903 13.93Z"/></g>',c:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF4F8" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#659AD2" d="M16.5921 9.1962s-.354-3.298-3.627-3.39c-3.2741-.09-4.9552 2.474-4.9552 6.14 0 3.6651 1.858 6.5972 5.0451 6.5972 3.184 0 3.5381-3.665 3.5381-3.665l6.1041.365s.36 3.31-2.196 5.836c-2.552 2.5241-5.6901 2.9371-7.8762 2.9201-2.19-.017-5.2261.034-8.1602-2.97-2.938-3.0101-3.436-5.9302-3.436-8.8002 0-2.8701.556-6.6702 4.047-9.5502C7.444.72 9.849 0 12.254 0c10.0422 0 10.7172 9.2602 10.7172 9.2602z"/></g>',clojure:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F1F7EC" stroke="#DCEAD2" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><g fill="none"><path d="M64 0C28.712 0 0 28.6 0 63.751c0 35.155 28.712 63.753 64 63.753s64-28.598 64-63.753C128 28.6 99.288 0 64 0" fill="#FFF"/><path d="M61.659 64.898a265.825 265.825 0 00-1.867 4.12c-2.322 5.241-4.894 11.62-5.834 15.706-.337 1.455-.546 3.258-.542 5.258 0 .79.043 1.622.11 2.469a30.74 30.74 0 0010.533 1.87 30.796 30.796 0 009.642-1.566 18.09 18.09 0 01-2.011-2.12c-4.11-5.221-6.403-12.872-10.031-25.737M46.485 38.96c-7.85 5.51-12.986 14.6-13.005 24.9.019 10.145 5.001 19.116 12.653 24.65 1.877-7.789 6.582-14.92 13.637-29.214a114.691 114.691 0 00-1.43-3.72c-1.955-4.884-4.776-10.556-7.294-13.124-1.283-1.342-2.84-2.502-4.561-3.492" fill="#91DC47"/><path d="M90.697 98.798c-4.05-.506-7.392-1.116-10.317-2.144a36.708 36.708 0 01-16.32 3.807c-20.293 0-36.742-16.383-36.745-36.602 0-10.97 4.852-20.805 12.528-27.512-2.053-.495-4.194-.783-6.38-.779-10.782.101-22.162 6.044-26.9 22.095-.443 2.337-.337 4.103-.337 6.197 0 31.818 25.895 57.613 57.835 57.613 19.561 0 36.841-9.682 47.305-24.489-5.66 1.405-11.103 2.077-15.763 2.091-1.747 0-3.387-.093-4.906-.277" fill="#63B132"/><path d="M79.829 87.634c.357.176 1.167.464 2.293.783 7.579-5.542 12.504-14.469 12.523-24.558h-.003c-.028-16.82-13.693-30.43-30.582-30.462a30.765 30.765 0 00-9.602 1.554c6.21 7.05 9.196 17.127 12.084 28.148l.005.013c.005.009.924 3.06 2.501 7.11 1.566 4.042 3.797 9.048 6.23 12.696 1.597 2.444 3.354 4.2 4.551 4.716" fill="#90B4FE"/><path d="M17.057 30.311c5.463-3.408 11.04-4.637 15.908-4.593 6.722.02 12.008 2.096 14.544 3.516.612.352 1.194.73 1.764 1.12a36.714 36.714 0 0114.786-3.096c20.295.003 36.747 16.386 36.75 36.601-.003 10.192-4.188 19.408-10.934 26.044a45.3 45.3 0 005.225.29c6.406.004 13.329-1.404 18.52-5.753 3.384-2.84 6.22-6.998 7.792-13.233.307-2.408.484-4.856.484-7.347 0-31.817-25.892-57.614-57.835-57.614-19.372 0-36.508 9.5-47.004 24.065z" fill="#5881D8"/></g></svg>',cmake:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F2F5F7" stroke="#D9E1E7" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#064F8C" d="M62.8.4L.3 123.8l68.1-57.9z"/><path fill="#249847" d="M123.8 127.7l-84-33.9L0 127.7z"/><path fill="#BE2128" d="M128 126.6L65.6 2.5l9.2 102.6z"/><path fill="#CDCDCE" d="M71.9 104l-3.1-34.9L42 92z"/></svg>',cpp:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E8F2F8" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#00599C" d="M22.394 6c-.167-.29-.398-.543-.652-.69L12.926.22c-.509-.294-1.34-.294-1.848 0L2.26 5.31c-.508.293-.923 1.013-.923 1.6v10.18c0 .294.104.62.271.91.167.29.398.543.652.69l8.816 5.09c.508.293 1.34.293 1.848 0l8.816-5.09c.254-.147.485-.4.652-.69.167-.29.27-.616.27-.91V6.91c.003-.294-.1-.62-.268-.91zM12 19.11c-3.92 0-7.109-3.19-7.109-7.11 0-3.92 3.19-7.11 7.11-7.11a7.133 7.133 0 016.156 3.553l-3.076 1.78a3.567 3.567 0 00-3.08-1.78A3.56 3.56 0 008.444 12 3.56 3.56 0 0012 15.555a3.57 3.57 0 003.08-1.778l3.078 1.78A7.135 7.135 0 0112 19.11zm7.11-6.715h-.79v.79h-.79v-.79h-.79v-.79h.79v-.79h.79v.79h.79zm2.962 0h-.79v.79h-.79v-.79h-.79v-.79h.79v-.79h.79v.79h.79z"/></g>',csharp:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3EEF7" stroke="#E2D7EA" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#9B4F96" d="M115.4 30.7L67.1 2.9c-.8-.5-1.9-.7-3.1-.7-1.2 0-2.3.3-3.1.7l-48 27.9c-1.7 1-2.9 3.5-2.9 5.4v55.7c0 1.1.2 2.4 1 3.5l106.8-62c-.6-1.2-1.5-2.1-2.4-2.7z"/><path fill="#68217A" d="M10.7 95.3c.5.8 1.2 1.5 1.9 1.9l48.2 27.9c.8.5 1.9.7 3.1.7 1.2 0 2.3-.3 3.1-.7l48-27.9c1.7-1 2.9-3.5 2.9-5.4V36.1c0-.9-.1-1.9-.6-2.8l-106.6 62z"/><path fill="#fff" d="M85.3 76.1C81.1 83.5 73.1 88.5 64 88.5c-13.5 0-24.5-11-24.5-24.5s11-24.5 24.5-24.5c9.1 0 17.1 5 21.3 12.5l13-7.5c-6.8-11.9-19.6-20-34.3-20-21.8 0-39.5 17.7-39.5 39.5s17.7 39.5 39.5 39.5c14.6 0 27.4-8 34.2-19.8l-12.9-7.6zM97 66.2l.9-4.3h-4.2v-4.7h5.1L100 51h4.9l-1.2 6.1h3.8l1.2-6.1h4.8l-1.2 6.1h2.4v4.7h-3.3l-.9 4.3h4.2v4.7h-5.1l-1.2 6h-4.9l1.2-6h-3.8l-1.2 6h-4.8l1.2-6h-2.4v-4.7H97zm4.8 0h3.8l.9-4.3h-3.8l-.9 4.3z"/></svg>',css:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#1572B6"/><text x="10" y="12.8" text-anchor="middle" font-family="Arial,sans-serif" font-size="6.2" font-weight="900" fill="#fff">CSS</text>',dart:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECF7FA" stroke="#D5EAF0" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#00c4b3" d="M35.2 34.9l-8.3-8.3v59.7l.1 2.8c0 1.3.2 2.8.7 4.3l65.6 23.1 16.3-7.2-74.4-74.4z"/><path d="M27.7 93.4zm81.9 15.9l-16.3 7.2-65.4-23.1c1.3 4.8 4 10.1 7 13.2l21.3 21.2 47.6.1 5.8-18.6z" fill="#22d3c5"/><path fill="#0075c9" d="M1.7 65.1C-.4 67.3.7 72 4 75.5l14.7 14.8 9.2 3.3c-.3-1.5-.7-3-.7-4.3l-.1-2.8-.2-59.8m82.7 82.6l7.2-16.4-23-65.6c-1.5-.3-3-.6-4.3-.7l-2.9-.1-59.6.1"/><path d="M93.6 27.3c.2 0 .2 0 0 0 .2 0 .2 0 0 0zm16 82l17.7-5.8V54.8l-20.4-20.5c-3-3-8.3-5.8-13.2-7l23.1 65.6" fill="#00a8e1"/><path fill="#00c4b3" d="M90.5 18.2L75.7 3.5c-3.4-3.4-8-4.4-10.4-2.3L26.9 26.6h59.5l2.9.1c1.3 0 2.8.2 4.3.7l-3.1-9.2z"/></svg>',docker:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E8F4FC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#2496ED" d="M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z"/></g>',elixir:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3EEF6" stroke="#E3D9E8" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-a" gradientUnits="userSpaceOnUse" x1="835.592" y1="-36.546" x2="821.211" y2="553.414" gradientTransform="matrix(.1297 0 0 .2 -46.03 17.198)"><stop offset="0" stop-color="#d9d8dc"/><stop offset="1" stop-color="#fff" stop-opacity=".385"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-a)" d="M64.4.5C36.7 13.9 1.9 83.4 30.9 113.9c26.8 33.5 85.4 1.3 68.4-40.5-21.5-36-35-37.9-34.9-72.9z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-b" gradientUnits="userSpaceOnUse" x1="942.357" y1="-40.593" x2="824.692" y2="472.243" gradientTransform="matrix(.1142 0 0 .2271 -47.053 17.229)"><stop offset="0" stop-color="#8d67af" stop-opacity=".672"/><stop offset="1" stop-color="#9f8daf"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-b)" d="M64.4.2C36.8 13.6 1.9 82.9 31 113.5c10.7 12.4 28 16.5 37.7 9.1 26.4-18.8 7.4-53.1 10.4-78.5C68.1 33.9 64.2 11.3 64.4.2z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-c" gradientUnits="userSpaceOnUse" x1="924.646" y1="120.513" x2="924.646" y2="505.851" gradientTransform="matrix(.1227 0 0 .2115 -46.493 17.206)"><stop offset="0" stop-color="#26053d" stop-opacity=".762"/><stop offset="1" stop-color="#b7b4b4" stop-opacity=".278"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-c)" d="M56.7 4.3c-22.3 15.9-28.2 75-24.1 94.2 8.2 48.1 75.2 28.3 69.6-16.5-6-29.2-48.8-39.2-45.5-77.7z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-d" gradientUnits="userSpaceOnUse" x1="428.034" y1="198.448" x2="607.325" y2="559.255" gradientTransform="matrix(.1848 0 0 .1404 -42.394 17.138)"><stop offset="0" stop-color="#91739f" stop-opacity=".46"/><stop offset="1" stop-color="#32054f" stop-opacity=".54"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-d)" d="M78.8 49.8c10.4 13.4 12.7 22.6 6.8 27.9-27.7 19.4-61.3 7.4-54-37.3C22.1 63 4.5 96.8 43.3 101.6c20.8 3.6 54 2 58.9-16.1-.2-15.9-10.8-22.9-23.4-35.7z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-e" gradientUnits="userSpaceOnUse" x1="907.895" y1="540.636" x2="590.242" y2="201.281" gradientTransform="matrix(.1418 0 0 .1829 -45.23 17.18)"><stop offset="0" stop-color="#463d49" stop-opacity=".331"/><stop offset="1" stop-color="#340a50" stop-opacity=".821"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-e)" d="M38.1 36.4c-2.9 21.2 35.1 77.9 58.3 71-17.7 35.6-56.9-21.2-64-41.7 1.5-11 2.2-16.4 5.7-29.3z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-f" gradientUnits="userSpaceOnUse" x1="1102.297" y1="100.542" x2="1008.071" y2="431.648" gradientTransform="matrix(.106 0 0 .2448 -47.595 17.242)"><stop offset="0" stop-color="#715383" stop-opacity=".145"/><stop offset="1" stop-color="#f4f4f4" stop-opacity=".234"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-f)" d="M60.4 49.7c.8 7.9 3.9 20.5 0 28.8S38.7 102 43.6 115.3c11.4 24.8 37.1-4.4 36.9-19 1.1-11.8-6.6-38.7-1.8-52.5L76.5 41l-13.6-4c-2.2 3.2-3 7.5-2.5 12.7z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-g" gradientUnits="userSpaceOnUse" x1="1354.664" y1="140.06" x2="1059.233" y2="84.466" gradientTransform="matrix(.09173 0 0 .2828 -48.536 17.28)"><stop offset="0" stop-color="#a5a1a8" stop-opacity=".356"/><stop offset="1" stop-color="#370c50" stop-opacity=".582"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-g)" d="M65.3 10.8C36 27.4 48 53.4 49.3 81.6l19.1-55.4c-1.4-5.7-2.3-9.5-3.1-15.4z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#330A4C" fill-opacity=".316" d="M68.3 26.1c-14.8 11.7-14.1 31.3-18.6 54 8.1-21.3 4.1-38.2 18.6-54z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#FFF" d="M45.8 119.7c8 1.1 12.1 2.2 12.5 3 .3 4.2-11.1 1.2-12.5-3z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#EDEDED" fill-opacity=".603" d="M49.8 10.8c-6.9 7.7-14.4 21.8-18.2 29.7-1 6.5-.5 15.7.6 23.5.9-18.2 7.5-39.2 17.6-53.2z"/></svg>',env:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECD53F"/><text x="10" y="12.9" text-anchor="middle" font-family="Arial,sans-serif" font-size="5.7" font-weight="900" fill="#24292F">.ENV</text>',erlang:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FAEDF1" stroke="#EED6DE" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path d="M20.7 103.9C11 93.5 5.2 79.2 5.3 62.1 5.2 47 10 34 18.2 24.1H1v79.7l19.7.1zm90.4 0c4.2-4.5 8-9.8 11.4-15.9l-19-9.5c-6.7 10.8-16.4 20.8-29.9 20.9-19.6-.1-27.3-16.9-27.3-38.5h73.3c.1-2.4.1-3.6 0-4.7.5-12.9-2.9-23.7-9.1-32.1H127v79.7l-15.9.1zM47.5 42.4c.8-9.8 8.5-16.3 17.6-16.4 9.1 0 15.7 6.6 15.9 16.4H47.5z" fill="#A90533"/></svg>',flutter:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF7FD" stroke="#D7EAF6" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><g fill="#3FB6D3"><path d="M12.3 64.2L76.3 0h39.4L32.1 83.6zM76.3 128h39.4L81.6 93.9l34.1-34.8H76.3L42.2 93.5z"/></g><path fill="#27AACD" d="M81.6 93.9l-20-20-19.4 19.6 19.4 19.6z"/><path fill="#19599A" d="M115.7 128L81.6 93.9l-20 19.2L76.3 128z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__flutter-original-a" gradientUnits="userSpaceOnUse" x1="59.365" y1="116.36" x2="86.825" y2="99.399"><stop offset="0" stop-color="#1b4e94"/><stop offset=".63" stop-color="#1a5497"/><stop offset="1" stop-color="#195a9b"/></linearGradient><path fill="url(#__DSH_CODE_ICON_INSTANCE__flutter-original-a)" d="M61.6 113.1l30.8-8.4-10.8-10.8z"/></svg>',git:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF0EC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#F05032" d="M13.09 23.549a1.54 1.54 0 0 1-2.18 0L.451 13.089a1.54 1.54 0 0 1 0-2.179l7.191-7.19 2.733 2.733a1.85 1.85 0 0 0 .964 2.326v6.66a1.849 1.849 0 1 0 1.54 0V8.957l2.508 2.508a1.85 1.85 0 1 0 1.09-1.09l-2.634-2.634a1.85 1.85 0 0 0-2.378-2.377L8.73 2.63 10.91.451a1.54 1.54 0 0 1 2.179 0l10.459 10.46a1.54 1.54 0 0 1 0 2.179z"/></g>',go:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E7F9FC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#00ADD8" d="M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z"/></g>',graphql:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEAF6" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#E10098" d="M12.002 0a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.54 4.931a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm0 9.862a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm-8.54 4.931a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.276zm-8.542-4.93a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.277zm0-9.863a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.542-3.378L2.953 6.777v10.448l9.049 5.224 9.047-5.224V6.777zm0 1.601 7.66 13.27H4.34zm-1.387.371L3.97 15.037V7.363zm2.774 0 6.646 3.838v7.674zM5.355 17.44h13.293l-6.646 3.836z"/></g>',haskell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3F0F7" stroke="#E1D9EA" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#463B63" d="M0 110.2L30.1 65 0 19.9h22.6L52.7 65l-30.1 45.1H0z"/><path fill="#5E5187" d="M30.1 110.2L60.2 65 30.1 19.9h22.6l60.2 90.3H90.4L71.5 81.9l-18.8 28.2H30.1z"/><path fill="#904F8C" d="M102.9 83.8l-10-15.1H128v15.1h-25.1zM87.8 61.3l-10-15.1H128v15.1H87.8z"/></svg>',ini:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#6E7781"/><text x="10" y="13.2" text-anchor="middle" font-family="Arial,sans-serif" font-size="7.2" font-weight="800" fill="#fff">INI</text>',java:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F4F7FA" stroke="#D9E2E8" stroke-width=".5"/><svg x="2.5" y="2.5" width="15" height="15" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#0074BD" d="M47.617 98.12s-4.767 2.774 3.397 3.71c9.892 1.13 14.947.968 25.845-1.092 0 0 2.871 1.795 6.873 3.351-24.439 10.47-55.308-.607-36.115-5.969zm-2.988-13.665s-5.348 3.959 2.823 4.805c10.567 1.091 18.91 1.18 33.354-1.6 0 0 1.993 2.025 5.132 3.131-29.542 8.64-62.446.68-41.309-6.336z"/><path fill="#EA2D2E" d="M69.802 61.271c6.025 6.935-1.58 13.17-1.58 13.17s15.289-7.891 8.269-17.777c-6.559-9.215-11.587-13.792 15.635-29.58 0 .001-42.731 10.67-22.324 34.187z"/><path fill="#0074BD" d="M102.123 108.229s3.529 2.91-3.888 5.159c-14.102 4.272-58.706 5.56-71.094.171-4.451-1.938 3.899-4.625 6.526-5.192 2.739-.593 4.303-.485 4.303-.485-4.953-3.487-32.013 6.85-13.743 9.815 49.821 8.076 90.817-3.637 77.896-9.468zM49.912 70.294s-22.686 5.389-8.033 7.348c6.188.828 18.518.638 30.011-.326 9.39-.789 18.813-2.474 18.813-2.474s-3.308 1.419-5.704 3.053c-23.042 6.061-67.544 3.238-54.731-2.958 10.832-5.239 19.644-4.643 19.644-4.643zm40.697 22.747c23.421-12.167 12.591-23.86 5.032-22.285-1.848.385-2.677.72-2.677.72s.688-1.079 2-1.543c14.953-5.255 26.451 15.503-4.823 23.725 0-.002.359-.327.468-.617z"/><path fill="#EA2D2E" d="M76.491 1.587S89.459 14.563 64.188 34.51c-20.266 16.006-4.621 25.13-.007 35.559-11.831-10.673-20.509-20.07-14.688-28.815C58.041 28.42 81.722 22.195 76.491 1.587z"/><path fill="#0074BD" d="M52.214 126.021c22.476 1.437 57-.8 57.817-11.436 0 0-1.571 4.032-18.577 7.231-19.186 3.612-42.854 3.191-56.887.874 0 .001 2.875 2.381 17.647 3.331z"/></svg>',javascript:'<defs><clipPath id="__DSH_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__DSH_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#F0DB4F" d="M1.408 1.408h125.184v125.185H1.408z"/><path fill="#323330" d="M116.347 96.736c-.917-5.711-4.641-10.508-15.672-14.981-3.832-1.761-8.104-3.022-9.377-5.926-.452-1.69-.512-2.642-.226-3.665.821-3.32 4.784-4.355 7.925-3.403 2.023.678 3.938 2.237 5.093 4.724 5.402-3.498 5.391-3.475 9.163-5.879-1.381-2.141-2.118-3.129-3.022-4.045-3.249-3.629-7.676-5.498-14.756-5.355l-3.688.477c-3.534.893-6.902 2.748-8.877 5.235-5.926 6.724-4.236 18.492 2.975 23.335 7.104 5.332 17.54 6.545 18.873 11.531 1.297 6.104-4.486 8.08-10.234 7.378-4.236-.881-6.592-3.034-9.139-6.949-4.688 2.713-4.688 2.713-9.508 5.485 1.143 2.499 2.344 3.63 4.26 5.795 9.068 9.198 31.76 8.746 35.83-5.176.165-.478 1.261-3.666.38-8.581zM69.462 58.943H57.753l-.048 30.272c0 6.438.333 12.34-.714 14.149-1.713 3.558-6.152 3.117-8.175 2.427-2.059-1.012-3.106-2.451-4.319-4.485-.333-.584-.583-1.036-.667-1.071l-9.52 5.83c1.583 3.249 3.915 6.069 6.902 7.901 4.462 2.678 10.459 3.499 16.731 2.059 4.082-1.189 7.604-3.652 9.448-7.401 2.666-4.915 2.094-10.864 2.07-17.444.06-10.735.001-21.468.001-32.237z"/></svg></g>',json:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F4F4F4" stroke="#DDDDDD" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><linearGradient id="__DSH_CODE_ICON_INSTANCE__a" x1="-670.564" x2="-583.105" y1="-280.831" y2="-368.306" gradientTransform="matrix(.9988 0 0 -.9987 689.011 -259.008)" gradientUnits="userSpaceOnUse"><stop offset="0"/><stop offset="1" stop-color="#fff"/></linearGradient><path fill="url(#__DSH_CODE_ICON_INSTANCE__a)" fill-rule="evenodd" d="M63.895 94.303c27.433 37.398 54.281-10.438 54.241-39.205-.046-34.012-34.518-53.021-54.263-53.021C32.182 2.077 2 28.269 2 64.105 2 103.937 36.596 126 63.873 126c-6.172-.889-26.742-5.296-27.019-52.674-.186-32.044 10.453-44.846 26.974-39.214.37.137 18.223 7.18 18.223 30.187 0 22.908-18.156 30.004-18.156 30.004z" clip-rule="evenodd"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__b" x1="-579.148" x2="-666.607" y1="-364.34" y2="-276.873" gradientTransform="matrix(.9988 0 0 -.9987 689.011 -259.008)" gradientUnits="userSpaceOnUse"><stop offset="0"/><stop offset="1" stop-color="#fff"/></linearGradient><path fill="url(#__DSH_CODE_ICON_INSTANCE__b)" fill-rule="evenodd" d="M63.863 34.086C45.736 27.838 23.53 42.778 23.53 72.703 23.53 121.565 59.739 126 64.128 126 95.818 126 126 99.808 126 63.972 126 24.14 91.404 2.077 64.127 2.077c7.555-1.046 40.719 8.176 40.719 53.504 0 29.559-24.764 45.651-40.87 38.776-.37-.137-18.223-7.18-18.223-30.187 0-22.91 18.11-30.085 18.11-30.084z" clip-rule="evenodd"/></svg>',kotlin:'<defs><linearGradient id="__DSH_CODE_ICON_INSTANCE__k" x1="1" y1="19" x2="19" y2="1"><stop stop-color="#0095D5"/><stop offset=".5" stop-color="#7F52FF"/><stop offset="1" stop-color="#F88909"/></linearGradient></defs><rect x="1" y="1" width="18" height="18" rx="4" fill="url(#__DSH_CODE_ICON_INSTANCE__k)"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#FFFFFF" d="M24 24H0V0h24L12 12Z"/></g>',lua:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECECF7" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#000080" d="M.38 10.377l-.272-.037c-.048.344-.082.695-.101 1.041l.275.016c.018-.34.051-.682.098-1.02zM4.136 3.289l-.184-.205c-.258.232-.509.48-.746.734l.202.188c.231-.248.476-.49.728-.717zM5.769 2.059l-.146-.235c-.296.186-.586.385-.863.594l.166.219c.27-.203.554-.399.843-.578zM1.824 18.369c.185.297.384.586.593.863l.22-.164c-.205-.271-.399-.555-.58-.844l-.233.145zM1.127 16.402l-.255.104c.129.318.274.635.431.943l.005.01.245-.125-.005-.01c-.153-.301-.295-.611-.421-.922zM.298 9.309l.269.063c.076-.332.168-.664.272-.986l-.261-.087c-.108.332-.202.672-.28 1.01zM.274 12.42l-.275.01c.012.348.04.699.083 1.043l.273-.033c-.042-.336-.069-.68-.081-1.02zM.256 14.506c.073.34.162.682.264 1.014l.263-.08c-.1-.326-.187-.658-.258-.99l-.269.056zM11.573.275L11.563 0c-.348.012-.699.039-1.044.082l.034.273c.338-.041.68-.068 1.02-.08zM23.221 8.566c.1.326.186.66.256.992l.27-.059c-.072-.34-.16-.682-.262-1.014l-.264.081zM17.621 1.389c-.309-.164-.627-.314-.947-.449l-.107.252c.314.133.625.281.926.439l.128-.242zM15.693.572c-.332-.105-.67-.199-1.01-.277l-.063.268c.332.076.664.168.988.273l.085-.264zM6.674 1.545c.298-.15.606-.291.916-.418L7.486.873c-.317.127-.632.272-.937.428l-.015.008.125.244.015-.008zM23.727 11.588l.275-.01a11.797 11.797 0 0 0-.082-1.045l-.273.033c.041.338.068.682.08 1.022zM13.654.105c-.346-.047-.696-.08-1.043-.098l-.014.273c.339.018.683.051 1.019.098l.038-.273zM9.544.527l-.058-.27c-.34.072-.681.16-1.014.264l.081.262c.325-.099.659-.185.991-.256zM1.921 5.469l.231.15c.185-.285.384-.566.592-.834l-.217-.17c-.213.276-.417.563-.606.854zM.943 7.318l.253.107c.132-.313.28-.625.439-.924l-.243-.128c-.163.307-.314.625-.449.945zM18.223 21.943l.145.234c.295-.186.586-.385.863-.594l-.164-.219c-.272.204-.557.4-.844.579zM21.248 19.219l.217.17c.215-.273.418-.561.607-.854l-.23-.148c-.186.285-.385.564-.594.832zM19.855 20.715l.184.203c.258-.23.51-.479.746-.732l-.201-.188c-.23.248-.477.488-.729.717zM22.359 17.504l.244.129c.162-.307.314-.625.449-.945l-.254-.107a11.27 11.27 0 0 1-.439.923zM23.617 13.629l.273.039c.049-.346.082-.695.102-1.043l-.275-.014c-.018.338-.051.682-.1 1.018zM23.156 15.621l.264.086c.107-.332.201-.67.279-1.01l-.268-.063c-.077.333-.169.665-.275.987zM22.453 6.672c.154.303.297.617.424.932l.256-.104c-.131-.322-.277-.643-.436-.953l-.244.125zM8.296 23.418c.331.107.67.201 1.009.279l.062-.268c-.331-.076-.663-.168-.986-.273l-.085.262zM10.335 23.889c.345.049.696.082 1.043.102l.014-.275c-.339-.018-.682-.051-1.019-.098l-.038.271zM17.326 22.449c-.303.154-.613.297-.926.424l.104.256c.318-.131.639-.275.947-.434l.004-.002-.123-.246-.006.002zM4.613 21.467c.274.213.562.418.854.605l.149-.23c-.285-.184-.565-.385-.833-.592l-.17.217zM12.417 23.725l.009.275c.348-.014.699-.041 1.045-.084l-.035-.271c-.336.041-.68.068-1.019.08zM6.37 22.604c.307.162.625.314.946.449l.107-.254c-.313-.133-.624-.279-.924-.439l-.129.244zM3.083 20.041c.233.258.48.51.734.746l.188-.201c-.249-.23-.49-.477-.717-.729l-.205.184zM14.445 23.475l.059.27c.34-.074.68-.162 1.014-.266l-.082-.262c-.325.099-.659.185-.991.258zM21.18.129A2.689 2.689 0 1 0 21.18 5.507 2.689 2.689 0 1 0 21.18.129zM15.324 15.447c0 .471.314.66.852.66.67 0 1.297-.396 1.297-1.016v-.645c-.23.107-.379.141-1.107.24-.735.109-1.042.306-1.042.761zM12 2.818c-5.07 0-9.18 4.109-9.18 9.18 0 5.068 4.11 9.18 9.18 9.18 5.07 0 9.18-4.111 9.18-9.18 0-5.07-4.11-9.18-9.18-9.18zm-2.487 13.77H5.771v-6.023h.769v5.346h2.974v.677zm4.13 0h-.619v-.67c-.405.57-.811.793-1.446.793-.843 0-1.38-.463-1.38-1.182v-3.271h.686v3c0 .52.347.85.893.85.719 0 1.181-.578 1.181-1.461v-2.389h.686v4.33zm-.53-8.393c0-1.484 1.205-2.689 2.689-2.689s2.688 1.205 2.688 2.689-1.203 2.688-2.688 2.688-2.689-1.203-2.689-2.688zm5.567 7.856v.52c-.223.059-.33.074-.471.074-.34 0-.637-.238-.711-.57-.381.406-.918.637-1.471.637-.877 0-1.422-.463-1.422-1.248 0-.527.256-.916.76-1.123.266-.107.414-.141 1.389-.264.545-.066.719-.191.719-.48v-.182c0-.412-.348-.645-.967-.645-.645 0-.957.24-1.016.77h-.693c.041-1 .686-1.404 1.734-1.404 1.066 0 1.627.412 1.627 1.182v2.412c0 .215.133.338.373.338.041-.002.074-.002.149-.017z"/></g>',makefile:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#427819"/><path fill="#fff" d="m5 4.5 2.3 2.3 2.3-2.3L11 5.9 8.7 8.2l2.4 2.4L9.7 12l-2.4-2.4L5 11.9 3.6 10.5l2.3-2.3-2.3-2.3zm7 6.5h4v1.5h-4zm0 2.8h4v1.5h-4z"/>',node:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EDF7EA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#539E43" d="M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z"/></g>',"objective-c":'<rect x="1" y="1" width="18" height="18" rx="4" fill="#438EFF"/><text x="10" y="13.2" text-anchor="middle" font-family="Arial,sans-serif" font-size="7.2" font-weight="800" fill="#fff">OC</text>',perl:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EAF2F7" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#0073A1" d="M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0m.157 1.103a10.91 10.91 0 0 1 9.214 5.404c-1.962.152-3.156 1.698-5.132 3.553-2.81 2.637-4.562.582-5.288-.898-.447-1.004-.847-2.117-1.544-2.769A.4.4 0 0 1 9.3 6.02l.08-.37a.083.083 0 0 0-.074-.1c-.33-.022-.601.093-.84.368a2.5 2.5 0 0 0-.375-.064c-.863-.093-1.036.345-1.873.345H5.81c-.758 0-1.391.361-1.7.892-.248.424-.257.884.15.93-.126.445.292.62 1.224.192 0 0 .733.421 1.749.421.549 0 .712.087.914.967.486 2.138 2.404 5.655 6.282 5.655l.118.166c.659.934.86 2.113.48 3.184-.307.867-.697 1.531-.697 1.531q.01.178.01.349c0 .81-.175 1.553-.387 2.23a10.91 10.91 0 0 1-11.989-6.342A10.91 10.91 0 0 1 7.608 2.01a10.9 10.9 0 0 1 4.55-.907M7.524 6.47c.288 0 .575.231.477.272a.4.4 0 0 1-.1.02.38.38 0 0 1-.375.327.384.384 0 0 1-.378-.326.4.4 0 0 1-.101-.02c-.098-.042.19-.273.477-.273m10.193 10.49q.05 0 .101.007.326.054.694.096.135.01.269.026a13.4 13.4 0 0 0 2.846-.007 10.9 10.9 0 0 1-2.007 2.705c-.11-.23-.547-1.19-.573-2.196q-.156-.01-.313-.026-.13-.014-.256-.022a18 18 0 0 1-.735-.102h-.003c-.032 0-.06.01-.074.035l-.003.012q-.081.265-.182.544c.428 1.084.652 2.078.652 2.078.14.22.258.432.363.64a11 11 0 0 1-2.168 1.264 11 11 0 0 1-1.205.426 13.3 13.3 0 0 1 1.055-2.531s.678-1.445 1.027-2.564v-.004a.55.55 0 0 1 .512-.38"/></g>',php:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F0EFF8" stroke="#DDDCEB" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#777BB4" d="M7.01 10.207h-.944l-.515 2.648h.838c.556 0 .97-.105 1.242-.314.272-.21.455-.559.55-1.049.092-.47.05-.802-.124-.995-.175-.193-.523-.29-1.047-.29zM12 5.688C5.373 5.688 0 8.514 0 12s5.373 6.313 12 6.313S24 15.486 24 12c0-3.486-5.373-6.312-12-6.312zm-3.26 7.451c-.261.25-.575.438-.917.551-.336.108-.765.164-1.285.164H5.357l-.327 1.681H3.652l1.23-6.326h2.65c.797 0 1.378.209 1.744.628.366.418.476 1.002.33 1.752a2.836 2.836 0 0 1-.305.847c-.143.255-.33.49-.561.703zm4.024.715l.543-2.799c.063-.318.039-.536-.068-.651-.107-.116-.336-.174-.687-.174H11.46l-.704 3.625H9.388l1.23-6.327h1.367l-.327 1.682h1.218c.767 0 1.295.134 1.586.401s.378.7.263 1.299l-.572 2.944h-1.389zm7.597-2.265a2.782 2.782 0 0 1-.305.847c-.143.255-.33.49-.561.703a2.44 2.44 0 0 1-.917.551c-.336.108-.765.164-1.286.164h-1.18l-.327 1.682h-1.378l1.23-6.326h2.649c.797 0 1.378.209 1.744.628.366.417.477 1.001.331 1.751zM17.766 10.207h-.943l-.516 2.648h.838c.557 0 .971-.105 1.242-.314.272-.21.455-.559.551-1.049.092-.47.049-.802-.125-.995s-.524-.29-1.047-.29z"/></g>',powershell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#2671BE"/><path fill="#fff" fill-opacity=".16" d="M5.5 4h11l-3.5 12H2z"/><path d="m6.5 6.5 3 3-4.2 3.2m4 1h4" fill="none" stroke="#fff" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>',protobuf:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#4285F4"/><path fill="none" stroke="#fff" stroke-width="1.2" stroke-linejoin="round" d="m10 3.5 6 3.3v6.4l-6 3.3-6-3.3V6.8z"/><path fill="#fff" d="M6.5 6.5h4.4c2.3 0 3.6 1.2 3.6 3.1s-1.3 3.1-3.6 3.1H9v2H6.5zM9 8.4v2.4h1.6c.8 0 1.2-.4 1.2-1.2s-.4-1.2-1.2-1.2z"/>',python:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F2F4F7" stroke="#D5DBE5" stroke-width=".5"/><g transform="matrix(.126 0 0 .126 2.30 2.24)"><path fill="#3776AB" d="M 60.510156,6.3979729 C 55.926503,6.4192712 51.549217,6.8101906 47.697656,7.4917229 C 36.35144,9.4962267 34.291407,13.691825 34.291406,21.429223 L 34.291406,31.647973 L 61.103906,31.647973 L 61.103906,35.054223 L 34.291406,35.054223 L 24.228906,35.054223 C 16.436447,35.054223 9.6131468,39.73794 7.4789058,48.647973 C 5.0170858,58.860939 4.9078907,65.233996 7.4789058,75.897973 C 9.3848341,83.835825 13.936449,89.491721 21.728906,89.491723 L 30.947656,89.491723 L 30.947656,77.241723 C 30.947656,68.391821 38.6048,60.585475 47.697656,60.585473 L 74.478906,60.585473 C 81.933857,60.585473 87.885159,54.447309 87.885156,46.960473 L 87.885156,21.429223 C 87.885156,14.162884 81.755176,8.7044455 74.478906,7.4917229 C 69.872919,6.7249976 65.093809,6.3766746 60.510156,6.3979729 z M 46.010156,14.616723 C 48.779703,14.616723 51.041406,16.915369 51.041406,19.741723 C 51.041404,22.558059 48.779703,24.835473 46.010156,24.835473 C 43.23068,24.835472 40.978906,22.558058 40.978906,19.741723 C 40.978905,16.91537 43.23068,14.616723 46.010156,14.616723 z "/><path fill="#FFD43B" d="M 91.228906,35.054223 L 91.228906,46.960473 C 91.228906,56.191228 83.403011,63.960472 74.478906,63.960473 L 47.697656,63.960473 C 40.361823,63.960473 34.291407,70.238956 34.291406,77.585473 L 34.291406,103.11672 C 34.291406,110.38306 40.609994,114.65704 47.697656,116.74172 C 56.184987,119.23733 64.323893,119.68835 74.478906,116.74172 C 81.229061,114.78733 87.885159,110.85411 87.885156,103.11672 L 87.885156,92.897973 L 61.103906,92.897973 L 61.103906,89.491723 L 87.885156,89.491723 L 101.29141,89.491723 C 109.08387,89.491723 111.98766,84.056315 114.69765,75.897973 C 117.49698,67.499087 117.37787,59.422197 114.69765,48.647973 C 112.77187,40.890532 109.09378,35.054223 101.29141,35.054223 L 91.228906,35.054223 z M 76.166406,99.710473 C 78.945884,99.710476 81.197656,101.98789 81.197656,104.80422 C 81.197654,107.63057 78.945881,109.92922 76.166406,109.92922 C 73.396856,109.92922 71.135156,107.63057 71.135156,104.80422 C 71.135158,101.98789 73.396853,99.710473 76.166406,99.710473 z "/></g>',r:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF2F6" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#276DC3" d="M12 2.746c-6.627 0-12 3.599-12 8.037 0 3.897 4.144 7.144 9.64 7.88V16.26c-2.924-.915-4.925-2.755-4.925-4.877 0-3.035 4.084-5.494 9.12-5.494 5.038 0 8.757 1.683 8.757 5.494 0 1.976-.999 3.379-2.662 4.272.09.066.174.128.258.216.169.149.25.363.372.544 2.128-1.45 3.44-3.437 3.44-5.631 0-4.44-5.373-8.038-12-8.038zm-2.111 4.99v13.516l4.093-.002-.002-5.291h1.1c.225 0 .321.066.549.25.272.22.715.982.715.982l2.164 4.063 4.627-.002-2.864-4.826s-.086-.193-.265-.383a2.22 2.22 0 00-.582-.416c-.422-.214-1.149-.434-1.149-.434s3.578-.264 3.578-3.826c0-3.562-3.744-3.63-3.744-3.63zm4.127 2.93l2.478.002s1.149-.062 1.149 1.127c0 1.165-1.149 1.17-1.149 1.17h-2.478zm1.754 6.119c-.494.049-1.012.079-1.54.088v1.807a16.622 16.622 0 002.37-.473l-.471-.891s-.108-.183-.248-.394c-.039-.054-.08-.098-.111-.137z"/></g>',react:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#20232A"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#61DAFB" d="M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"/></g>',ruby:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEDEC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#CC342D" d="M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073l-.003.01zM0 19.089zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75l.003-.003z"/></g>',rust:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3E6DD" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#2B2B2B" d="M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z"/></g>',scala:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCECEB" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#DC322F" d="M4.589 24c4.537 0 13.81-1.516 14.821-3v-5.729c-.957 1.408-10.284 2.912-14.821 2.912V24zM4.589 16.365c4.537 0 13.81-1.516 14.821-3V7.636c-.957 1.408-10.284 2.912-14.821 2.912v5.817zM4.589 8.729c4.537 0 13.81-1.516 14.821-3V0C18.453 1.408 9.126 2.912 4.589 2.912v5.817z"/></g>',shell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#303642"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#7EE787" d="M21.038,4.9l-7.577-4.498C13.009,0.134,12.505,0,12,0c-0.505,0-1.009,0.134-1.462,0.403L2.961,4.9 C2.057,5.437,1.5,6.429,1.5,7.503v8.995c0,1.073,0.557,2.066,1.462,2.603l7.577,4.497C10.991,23.866,11.495,24,12,24 c0.505,0,1.009-0.134,1.461-0.402l7.577-4.497c0.904-0.537,1.462-1.529,1.462-2.603V7.503C22.5,6.429,21.943,5.437,21.038,4.9z M15.17,18.946l0.013,0.646c0.001,0.078-0.05,0.167-0.111,0.198l-0.383,0.22c-0.061,0.031-0.111-0.007-0.112-0.085L14.57,19.29 c-0.328,0.136-0.66,0.169-0.872,0.084c-0.04-0.016-0.057-0.075-0.041-0.142l0.139-0.584c0.011-0.046,0.036-0.092,0.069-0.121 c0.012-0.011,0.024-0.02,0.036-0.026c0.022-0.011,0.043-0.014,0.062-0.006c0.229,0.077,0.521,0.041,0.802-0.101 c0.357-0.181,0.596-0.545,0.592-0.907c-0.003-0.328-0.181-0.465-0.613-0.468c-0.55,0.001-1.064-0.107-1.072-0.917 c-0.007-0.667,0.34-1.361,0.889-1.8l-0.007-0.652c-0.001-0.08,0.048-0.168,0.111-0.2l0.37-0.236 c0.061-0.031,0.111,0.007,0.112,0.087l0.006,0.653c0.273-0.109,0.511-0.138,0.726-0.088c0.047,0.012,0.067,0.076,0.048,0.151 l-0.144,0.578c-0.011,0.044-0.036,0.088-0.065,0.116c-0.012,0.012-0.025,0.021-0.038,0.028c-0.019,0.01-0.038,0.013-0.057,0.009 c-0.098-0.022-0.332-0.073-0.699,0.113c-0.385,0.195-0.52,0.53-0.517,0.778c0.003,0.297,0.155,0.387,0.681,0.396 c0.7,0.012,1.003,0.318,1.01,1.023C16.105,17.747,15.736,18.491,15.17,18.946z M19.143,17.859c0,0.06-0.008,0.116-0.058,0.145 l-1.916,1.164c-0.05,0.029-0.09,0.004-0.09-0.056v-0.494c0-0.06,0.037-0.093,0.087-0.122l1.887-1.129 c0.05-0.029,0.09-0.004,0.09,0.056V17.859z M20.459,6.797l-7.168,4.427c-0.894,0.523-1.553,1.109-1.553,2.187v8.833 c0,0.645,0.26,1.063,0.66,1.184c-0.131,0.023-0.264,0.039-0.398,0.039c-0.42,0-0.833-0.114-1.197-0.33L3.226,18.64 c-0.741-0.44-1.201-1.261-1.201-2.142V7.503c0-0.881,0.46-1.702,1.201-2.142l7.577-4.498c0.363-0.216,0.777-0.33,1.197-0.33 c0.419,0,0.833,0.114,1.197,0.33l7.577,4.498c0.624,0.371,1.046,1.013,1.164,1.732C21.686,6.557,21.12,6.411,20.459,6.797z"/></g>',solidity:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F0F0F0" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#363636" d="M4.409 6.608L7.981.255l3.572 6.353H4.409zM8.411 0l3.569 6.348L15.552 0H8.411zm4.036 17.392l3.572 6.354 3.575-6.354h-7.147zm-.608-10.284h-7.43l3.715 6.605 3.715-6.605zm.428-.25h7.428L15.982.255l-3.715 6.603zM15.589 24l-3.569-6.349L8.448 24h7.141zm-3.856-6.858H4.306l3.712 6.603 3.715-6.603zm.428-.25h7.433l-3.718-6.605-3.715 6.605z"/></g>',sql:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#336791"/><ellipse cx="10" cy="5.5" rx="5.8" ry="2.1" fill="#fff"/><path fill="#fff" fill-opacity=".88" d="M4.2 5.5v8.9c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1V5.5c0 1.2-2.6 2.1-5.8 2.1s-5.8-.9-5.8-2.1z"/><path d="M4.2 9.2c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1M4.2 12.9c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1" fill="none" stroke="#336791" stroke-opacity=".7" stroke-width=".7"/>',svelte:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF0EB" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#FF3E00" d="M10.354 21.125a4.44 4.44 0 0 1-4.765-1.767 4.109 4.109 0 0 1-.703-3.107 3.898 3.898 0 0 1 .134-.522l.105-.321.287.21a7.21 7.21 0 0 0 2.186 1.092l.208.063-.02.208a1.253 1.253 0 0 0 .226.83 1.337 1.337 0 0 0 1.435.533 1.231 1.231 0 0 0 .343-.15l5.59-3.562a1.164 1.164 0 0 0 .524-.778 1.242 1.242 0 0 0-.211-.937 1.338 1.338 0 0 0-1.435-.533 1.23 1.23 0 0 0-.343.15l-2.133 1.36a4.078 4.078 0 0 1-1.135.499 4.44 4.44 0 0 1-4.765-1.766 4.108 4.108 0 0 1-.702-3.108 3.855 3.855 0 0 1 1.742-2.582l5.589-3.563a4.072 4.072 0 0 1 1.135-.499 4.44 4.44 0 0 1 4.765 1.767 4.109 4.109 0 0 1 .703 3.107 3.943 3.943 0 0 1-.134.522l-.105.321-.286-.21a7.204 7.204 0 0 0-2.187-1.093l-.208-.063.02-.207a1.255 1.255 0 0 0-.226-.831 1.337 1.337 0 0 0-1.435-.532 1.231 1.231 0 0 0-.343.15L8.62 9.368a1.162 1.162 0 0 0-.524.778 1.24 1.24 0 0 0 .211.937 1.338 1.338 0 0 0 1.435.533 1.235 1.235 0 0 0 .344-.151l2.132-1.36a4.067 4.067 0 0 1 1.135-.498 4.44 4.44 0 0 1 4.765 1.766 4.108 4.108 0 0 1 .702 3.108 3.857 3.857 0 0 1-1.742 2.583l-5.589 3.562a4.072 4.072 0 0 1-1.135.499m10.358-17.95C18.484-.015 14.082-.96 10.9 1.068L5.31 4.63a6.412 6.412 0 0 0-2.896 4.295 6.753 6.753 0 0 0 .666 4.336 6.43 6.43 0 0 0-.96 2.396 6.833 6.833 0 0 0 1.168 5.167c2.229 3.19 6.63 4.135 9.812 2.108l5.59-3.562a6.41 6.41 0 0 0 2.896-4.295 6.756 6.756 0 0 0-.665-4.336 6.429 6.429 0 0 0 .958-2.396 6.831 6.831 0 0 0-1.167-5.168Z"/></g>',swift:'<defs><clipPath id="__DSH_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__DSH_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#f05138" d="M126.33 34.06a39.32 39.32 0 00-.79-7.83 28.78 28.78 0 00-2.65-7.58 28.84 28.84 0 00-4.76-6.32 23.42 23.42 0 00-6.62-4.55 27.27 27.27 0 00-7.68-2.53c-2.65-.51-5.56-.51-8.21-.76H30.25a45.46 45.46 0 00-6.09.51 21.82 21.82 0 00-5.82 1.52c-.53.25-1.32.51-1.85.76a33.82 33.82 0 00-5 3.28c-.53.51-1.06.76-1.59 1.26a22.41 22.41 0 00-4.76 6.32 23.61 23.61 0 00-2.65 7.58 78.5 78.5 0 00-.79 7.83v60.39a39.32 39.32 0 00.79 7.83 28.78 28.78 0 002.65 7.58 28.84 28.84 0 004.76 6.32 23.42 23.42 0 006.62 4.55 27.27 27.27 0 007.68 2.53c2.65.51 5.56.51 8.21.76h63.22a45.08 45.08 0 008.21-.76 27.27 27.27 0 007.68-2.53 30.13 30.13 0 006.62-4.55 22.41 22.41 0 004.76-6.32 23.61 23.61 0 002.65-7.58 78.49 78.49 0 00.79-7.83V34.06z"/><path fill="#fefefe" d="M85 96.5c-11.11 6.13-26.38 6.76-41.75.47A64.53 64.53 0 0113.84 73a50 50 0 0010.85 6.32c15.87 7.1 31.73 6.61 42.9 0-15.9-11.66-29.4-26.82-39.46-39.2a43.47 43.47 0 01-5.29-6.82c12.16 10.61 31.5 24 38.38 27.79a271.77 271.77 0 01-27-32.34 266.8 266.8 0 0044.47 34.87c.71.38 1.26.7 1.7 1a32.7 32.7 0 001.21-3.51c3.71-12.89-.53-27.54-9.79-39.67C93.25 33.81 106 57.05 100.66 76.51c-.14.53-.29 1-.45 1.55l.19.22c10.59 12.63 7.68 26 6.35 23.5C101 91 90.37 94.33 85 96.5z"/></svg></g>',toml:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F6EEEA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#9C4121" d="M.014 0h5.34v2.652H2.888v18.681h2.468V24H.015V0Zm17.622 5.049v2.78h-4.274v12.935h-3.008V7.83H6.059V5.05h11.577ZM23.986 24h-5.34v-2.652h2.467V2.667h-2.468V0h5.34v24Z"/></g>',typescript:'<defs><clipPath id="__DSH_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__DSH_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#fff" d="M22.67 47h99.67v73.67H22.67z"/><path data-name="original" fill="#007acc" d="M1.5 63.91v62.5h125v-125H1.5zm100.73-5a15.56 15.56 0 017.82 4.5 20.58 20.58 0 013 4c0 .16-5.4 3.81-8.69 5.85-.12.08-.6-.44-1.13-1.23a7.09 7.09 0 00-5.87-3.53c-3.79-.26-6.23 1.73-6.21 5a4.58 4.58 0 00.54 2.34c.83 1.73 2.38 2.76 7.24 4.86 8.95 3.85 12.78 6.39 15.16 10 2.66 4 3.25 10.46 1.45 15.24-2 5.2-6.9 8.73-13.83 9.9a38.32 38.32 0 01-9.52-.1 23 23 0 01-12.72-6.63c-1.15-1.27-3.39-4.58-3.25-4.82a9.34 9.34 0 011.15-.73L82 101l3.59-2.08.75 1.11a16.78 16.78 0 004.74 4.54c4 2.1 9.46 1.81 12.16-.62a5.43 5.43 0 00.69-6.92c-1-1.39-3-2.56-8.59-5-6.45-2.78-9.23-4.5-11.77-7.24a16.48 16.48 0 01-3.43-6.25 25 25 0 01-.22-8c1.33-6.23 6-10.58 12.82-11.87a31.66 31.66 0 019.49.26zm-29.34 5.24v5.12H56.66v46.23H45.15V69.26H28.88v-5a49.19 49.19 0 01.12-5.17C29.08 59 39 59 51 59h21.83z"/></svg></g>',vue:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECF8F3" stroke="#D5EAE0" stroke-width=".5"/><path fill="#41B883" d="M3.5 5h3.2l3.3 5.7L13.3 5h3.2L10 16z"/><path fill="#35495E" d="M6.7 5H9l1 1.8L11 5h2.3L10 10.7z"/>',wasm:'<defs><clipPath id="__DSH_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__DSH_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#654ff0" d="M.223.222v127.555h127.555V.222H78.594c.014.227.036.455.036.686 0 8.08-6.55 14.626-14.63 14.626-8.078 0-14.625-6.546-14.625-14.626 0-.231.022-.459.031-.686zm29.595 68.746h8.445l5.782 30.738h.107l6.968-30.738h7.908l6.265 31.119h.106l6.597-31.119h8.284l-10.765 45.156H61.12l-6.213-30.738H54.8l-6.7 30.738h-8.557zm59.994 0h13.334l13.284 45.156h-8.77l-2.879-10.051H89.59l-2.212 10.05h-8.5ZM94.895 80.1l-3.684 16.57h11.473L98.448 80.1Z"/></svg></g>',xml:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EAF3FA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#005FAD" d="M4.345 7.053c-.495.02-.44.725-.536 1.081-.157.583-.3 1.325-.347 1.926-.046.585-.008 1.127.066 1.719.058.46.191.767.07.89-.108.11-3.216 2.962-3.466 3.123-.26.169-.08.584.069.817.157.246.23.373.557.33.306-.042.405-.409.583-.606.228-.252 2.421-2.401 2.616-2.401.077.544.367 1.064.67 1.513.15.222.314.439.505.629.175.175.4.317.587.45.44.024.795-.301.35-.67-.17-.14-.735-.971-.927-1.43-.18-.43-.574-1.076-.146-1.428 1.494-1.23 3.72-2.262 4.247-2.313-.257 1.024-1.356 3.048-1.757 4.012-.14.333-.231.732-.185 1.094.055.434.383.774.587.806.417-.023.7-.387.946-.645.343-.357.634-.685.974-1.043.339-.356.672-.731.971-1.07.184-.207.674-.713.963-.713-.11.693-.716 1.552-.839 2.254-.125.716.531 1.596 1.217.956.623-.58 1.255-1.129 1.867-1.72.217-.208.175.037.224.242.05.208.176.91.275 1.1.18.346.496.592.897.598.362.006.727-.161.982-.414.19-.187.513-.699.154-.832-.23-.086-.217-.176-.495-.129-.172.029-.362.074-.507.179-.367-.003-.381-.89-.324-1.161.068-.327.207-.659.185-.998-.026-.418-.478-.69-.582-.72-.156-.076-.253.023-.458.212-.173.161-.363.332-.535.495-.34.322-.768.813-.942.813.305-.705.708-2.652-.643-2.48-.563.071-.95.377-1.394.71-.29.28-.683.641-.936.87-.236.216-.371.404-.496.404.132-.747 1.685-3.167.885-3.853-.158-.136-.313-.325-.515-.349a4.637 4.637 0 0 0-.833.19c-.565.18-2.78 1.28-4.19 2.289-.131.094-.214-.085-.231-.29-.087-1.058.199-2.19.496-3.188.208-.696-.557-1.225-.659-1.249zm18.177.874c-.166.364-.2.894-.248 1.319a24.307 24.307 0 0 0-1.246-.115c.238.296.691.588 1.056.724-.048.366-.434.67-.599 1.021.458-.127.676-.47.989-.821.362.22.791.627 1.26.636-.177-.376-.334-.695-.658-.966.269-.175.717-.362.924-.633-.345-.074-.718-.093-1.052-.015-.258-.284-.3-.772-.426-1.15zm-2.92.079c-.23.02-.613.49-.832.773-.807 1.039-1.542 3.15-1.661 3.542-.363 1.195-.502 2.672.28 3.722.456.612 1.258.66 2.041.434.405-.116.812-.406.95-.723.114-.263.174-.753-.404-.38-.224.145-.634.304-1.37.291-.247-.004-.651-.357-.76-.722-.192-.595-.11-1.393-.11-1.393.167-1.028.642-2.146 1.061-3.076.163-.36.658-1.259.842-1.546 0 0 .239-.373.131-.77-.031-.116-.091-.16-.168-.152zm3.072 2.976c-.12.264-.144.648-.18.956-.274-.031-.63-.066-.904-.083.172.215.501.426.766.525-.034.265-.314.486-.434.741.332-.092.49-.34.717-.596.263.16.575.456.914.462-.127-.273-.242-.504-.477-.701.195-.127.52-.262.67-.46a1.77 1.77 0 0 0-.763-.01c-.187-.206-.217-.56-.309-.834zm-1.123 2.422c-.083.183-.1.449-.125.662a12.6 12.6 0 0 0-.624-.058c.119.148.346.295.53.363-.025.184-.219.336-.301.513.23-.064.339-.236.496-.413.181.11.397.316.632.32-.088-.19-.168-.349-.33-.485.135-.087.36-.181.463-.317a1.22 1.22 0 0 0-.527-.008c-.13-.142-.151-.387-.214-.576z"/></g>',yaml:`<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEEEF" stroke="#F0D8DB" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet">
|
|
131
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const f=u[1];if(t===u[0]){l(u);continue}if(e.external){const m=e.external.registry.get(u[0])?.id;if(t!==u[0]&&m){l(u);continue}}if(e.metadataRegistry.get(u[0])?.id){l(u);continue}if(f.cycle){l(u);continue}if(f.count>1&&e.reused==="ref"){l(u);continue}}}function P7(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=f=>{const p=e.seen.get(f);if(p.ref===null)return;const m=p.def??p.schema,v={...m},w=p.ref;if(p.ref=null,w){o(w);const _=e.seen.get(w),C=_.schema;if(C.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(m.allOf=m.allOf??[],m.allOf.push(C)):Object.assign(m,C),Object.assign(m,v),f._zod.parent===w)for(const M in m)M==="$ref"||M==="allOf"||M in v||delete m[M];if(C.$ref&&_.def)for(const M in m)M==="$ref"||M==="allOf"||M in _.def&&JSON.stringify(m[M])===JSON.stringify(_.def[M])&&delete m[M]}const y=f._zod.parent;if(y&&y!==w){o(y);const _=e.seen.get(y);if(_?.schema.$ref&&(m.$ref=_.schema.$ref,_.def))for(const C in m)C==="$ref"||C==="allOf"||C in _.def&&JSON.stringify(m[C])===JSON.stringify(_.def[C])&&delete m[C]}e.override({zodSchema:f,jsonSchema:m,path:p.path??[]})};for(const f of[...e.seen.entries()].reverse())o(f[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const f=e.external.registry.get(t)?.id;if(!f)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(f)}Object.assign(s,n.def??n.schema);const l=e.metadataRegistry.get(t)?.id;l!==void 0&&s.id===l&&delete s.id;const u=e.external?.defs??{};for(const f of e.seen.entries()){const p=f[1];p.def&&p.defId&&(p.def.id===p.defId&&delete p.def.id,u[p.defId]=p.def)}e.external||Object.keys(u).length>0&&(e.target==="draft-2020-12"?s.$defs=u:s.definitions=u);try{const f=JSON.parse(JSON.stringify(s));return Object.defineProperty(f,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ta(t,"input",e.processors),output:Ta(t,"output",e.processors)}},enumerable:!1,writable:!1}),f}catch{throw new Error("Error converting schema to JSON.")}}function Ht(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Ht(o.element,n);if(o.type==="set")return Ht(o.valueType,n);if(o.type==="lazy")return Ht(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Ht(o.innerType,n);if(o.type==="intersection")return Ht(o.left,n)||Ht(o.right,n);if(o.type==="record"||o.type==="map")return Ht(o.keyType,n)||Ht(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Ht(o.in,n)||Ht(o.out,n);if(o.type==="object"){for(const s in o.shape)if(Ht(o.shape[s],n))return!0;return!1}if(o.type==="union"){for(const s of o.options)if(Ht(s,n))return!0;return!1}if(o.type==="tuple"){for(const s of o.items)if(Ht(s,n))return!0;return!!(o.rest&&Ht(o.rest,n))}return!1}const IE=(e,t={})=>n=>{const o=T7({...n,processors:t});return ut(e,o),z7(o,e),P7(o,e)},Ta=(e,t,n={})=>o=>{const{libraryOptions:s,target:l}=o??{},u=T7({...s??{},target:l,io:t,processors:n});return ut(e,u),z7(u,e),P7(u,e)},OE={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},LE=(e,t,n,o)=>{const s=n;s.type="string";const{minimum:l,maximum:u,format:f,patterns:p,contentEncoding:m}=e._zod.bag;if(typeof l=="number"&&(s.minLength=l),typeof u=="number"&&(s.maxLength=u),f&&(s.format=OE[f]??f,s.format===""&&delete s.format,f==="time"&&delete s.format),m&&(s.contentEncoding=m),p&&p.size>0){const v=[...p];v.length===1?s.pattern=v[0].source:v.length>1&&(s.allOf=[...v.map(w=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:w.source}))])}},TE=(e,t,n,o)=>{const s=n,{minimum:l,maximum:u,format:f,multipleOf:p,exclusiveMaximum:m,exclusiveMinimum:v}=e._zod.bag;typeof f=="string"&&f.includes("int")?s.type="integer":s.type="number";const w=typeof v=="number"&&v>=(l??Number.NEGATIVE_INFINITY),y=typeof m=="number"&&m<=(u??Number.POSITIVE_INFINITY),_=t.target==="draft-04"||t.target==="openapi-3.0";w?_?(s.minimum=v,s.exclusiveMinimum=!0):s.exclusiveMinimum=v:typeof l=="number"&&(s.minimum=l),y?_?(s.maximum=m,s.exclusiveMaximum=!0):s.exclusiveMaximum=m:typeof u=="number"&&(s.maximum=u),typeof p=="number"&&(s.multipleOf=p)},zE=(e,t,n,o)=>{n.type="boolean"},PE=(e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},NE=(e,t,n,o)=>{n.not={}},RE=(e,t,n,o)=>{},AE=(e,t,n,o)=>{const s=e._zod.def,l=u7(s.entries);l.every(u=>typeof u=="number")&&(n.type="number"),l.every(u=>typeof u=="string")&&(n.type="string"),n.enum=l},FE=(e,t,n,o)=>{const s=e._zod.def,l=[];for(const u of s.values)if(u===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof u=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");l.push(Number(u))}else l.push(u);if(l.length!==0)if(l.length===1){const u=l[0];n.type=u===null?"null":typeof u,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[u]:n.const=u}else l.every(u=>typeof u=="number")&&(n.type="number"),l.every(u=>typeof u=="string")&&(n.type="string"),l.every(u=>typeof u=="boolean")&&(n.type="boolean"),l.every(u=>u===null)&&(n.type="null"),n.enum=l},DE=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},$E=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},HE=(e,t,n,o)=>{const s=n,l=e._zod.def,{minimum:u,maximum:f}=e._zod.bag;typeof u=="number"&&(s.minItems=u),typeof f=="number"&&(s.maxItems=f),s.type="array",s.items=ut(l.element,t,{...o,path:[...o.path,"items"]})},VE=(e,t,n,o)=>{const s=n,l=e._zod.def;s.type="object",s.properties={};const u=l.shape;for(const m in u)s.properties[m]=ut(u[m],t,{...o,path:[...o.path,"properties",m]});const f=new Set(Object.keys(u)),p=new Set([...f].filter(m=>{const v=l.shape[m]._zod;return t.io==="input"?v.optin===void 0:v.optout===void 0}));p.size>0&&(s.required=Array.from(p)),l.catchall?._zod.def.type==="never"?s.additionalProperties=!1:l.catchall?l.catchall&&(s.additionalProperties=ut(l.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(s.additionalProperties=!1)},BE=(e,t,n,o)=>{const s=e._zod.def,l=s.inclusive===!1,u=s.options.map((f,p)=>ut(f,t,{...o,path:[...o.path,l?"oneOf":"anyOf",p]}));l?n.oneOf=u:n.anyOf=u},ZE=(e,t,n,o)=>{const s=e._zod.def,l=ut(s.left,t,{...o,path:[...o.path,"allOf",0]}),u=ut(s.right,t,{...o,path:[...o.path,"allOf",1]}),f=m=>"allOf"in m&&Object.keys(m).length===1,p=[...f(l)?l.allOf:[l],...f(u)?u.allOf:[u]];n.allOf=p},WE=(e,t,n,o)=>{const s=n,l=e._zod.def;s.type="array";const u=t.target==="draft-2020-12"?"prefixItems":"items",f=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",p=l.items.map((y,_)=>ut(y,t,{...o,path:[...o.path,u,_]})),m=l.rest?ut(l.rest,t,{...o,path:[...o.path,f,...t.target==="openapi-3.0"?[l.items.length]:[]]}):null;t.target==="draft-2020-12"?(s.prefixItems=p,m&&(s.items=m)):t.target==="openapi-3.0"?(s.items={anyOf:p},m&&s.items.anyOf.push(m),s.minItems=p.length,m||(s.maxItems=p.length)):(s.items=p,m&&(s.additionalItems=m));const{minimum:v,maximum:w}=e._zod.bag;typeof v=="number"&&(s.minItems=v),typeof w=="number"&&(s.maxItems=w)},UE=(e,t,n,o)=>{const s=n,l=e._zod.def;s.type="object";const u=l.keyType,p=u._zod.bag?.patterns;if(l.mode==="loose"&&p&&p.size>0){const v=ut(l.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});s.patternProperties={};for(const w of p)s.patternProperties[w.source]=v}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(s.propertyNames=ut(l.keyType,t,{...o,path:[...o.path,"propertyNames"]})),s.additionalProperties=ut(l.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const m=u._zod.values;if(m){const v=[...m].filter(w=>typeof w=="string"||typeof w=="number");v.length>0&&(s.required=v)}},qE=(e,t,n,o)=>{const s=e._zod.def,l=ut(s.innerType,t,o),u=t.seen.get(e);t.target==="openapi-3.0"?(u.ref=s.innerType,n.nullable=!0):n.anyOf=[l,{type:"null"}]},GE=(e,t,n,o)=>{const s=e._zod.def;ut(s.innerType,t,o);const l=t.seen.get(e);l.ref=s.innerType},KE=(e,t,n,o)=>{const s=e._zod.def;ut(s.innerType,t,o);const l=t.seen.get(e);l.ref=s.innerType,n.default=JSON.parse(JSON.stringify(s.defaultValue))},YE=(e,t,n,o)=>{const s=e._zod.def;ut(s.innerType,t,o);const l=t.seen.get(e);l.ref=s.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},JE=(e,t,n,o)=>{const s=e._zod.def;ut(s.innerType,t,o);const l=t.seen.get(e);l.ref=s.innerType;let u;try{u=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=u},QE=(e,t,n,o)=>{const s=e._zod.def,l=s.in._zod.traits.has("$ZodTransform"),u=t.io==="input"?l?s.out:s.in:s.out;ut(u,t,o);const f=t.seen.get(e);f.ref=u},XE=(e,t,n,o)=>{const s=e._zod.def;ut(s.innerType,t,o);const l=t.seen.get(e);l.ref=s.innerType,n.readOnly=!0},N7=(e,t,n,o)=>{const s=e._zod.def;ut(s.innerType,t,o);const l=t.seen.get(e);l.ref=s.innerType},eM=(e,t,n,o)=>{const s=e._zod.innerType;ut(s,t,o);const l=t.seen.get(e);l.ref=s},tM=V("ZodISODateTime",(e,t)=>{KS.init(e,t),dt.init(e,t)});function nM(e){return rE(tM,e)}const rM=V("ZodISODate",(e,t)=>{YS.init(e,t),dt.init(e,t)});function oM(e){return oE(rM,e)}const iM=V("ZodISOTime",(e,t)=>{JS.init(e,t),dt.init(e,t)});function sM(e){return iE(iM,e)}const aM=V("ZodISODuration",(e,t)=>{QS.init(e,t),dt.init(e,t)});function lM(e){return sE(aM,e)}const cM=(e,t)=>{p7.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>$k(e,n)},flatten:{value:n=>Dk(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,s0,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,s0,2)}},isEmpty:{get(){return e.issues.length===0}}})},xn=V("ZodError",cM,{Parent:Error}),uM=Y0(xn),dM=J0(xn),fM=ol(xn),hM=il(xn),pM=Bk(xn),mM=Zk(xn),gM=Wk(xn),vM=Uk(xn),wM=qk(xn),yM=Gk(xn),xM=Kk(xn),_M=Yk(xn),x5=new WeakMap;function Bs(e,t,n){const o=Object.getPrototypeOf(e);let s=x5.get(o);if(s||(s=new Set,x5.set(o,s)),!s.has(t)){s.add(t);for(const l in n){const u=n[l];Object.defineProperty(o,l,{configurable:!0,enumerable:!1,get(){const f=u.bind(this);return Object.defineProperty(this,l,{configurable:!0,writable:!0,enumerable:!0,value:f}),f},set(f){Object.defineProperty(this,l,{configurable:!0,writable:!0,enumerable:!0,value:f})}})}}}const rt=V("ZodType",(e,t)=>(et.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ta(e,"input"),output:Ta(e,"output")}}),e.toJSONSchema=IE(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>uM(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>fM(e,n,o),e.parseAsync=async(n,o)=>dM(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>hM(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>pM(e,n,o),e.decode=(n,o)=>mM(e,n,o),e.encodeAsync=async(n,o)=>gM(e,n,o),e.decodeAsync=async(n,o)=>vM(e,n,o),e.safeEncode=(n,o)=>wM(e,n,o),e.safeDecode=(n,o)=>yM(e,n,o),e.safeEncodeAsync=async(n,o)=>xM(e,n,o),e.safeDecodeAsync=async(n,o)=>_M(e,n,o),Bs(e,"ZodType",{check(...n){const o=this.def;return this.clone(Hr(o,{checks:[...o.checks??[],...n.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return Vr(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(gI(n,o))},superRefine(n,o){return this.check(vI(n,o))},overwrite(n){return this.check(vi(n))},optional(){return k5(this)},exactOptional(){return tI(this)},nullable(){return S5(this)},nullish(){return k5(S5(this))},nonoptional(n){return aI(this,n)},array(){return re(this)},or(n){return Pn([this,n])},and(n){return GM(this,n)},transform(n){return j5(this,XM(n))},default(n){return oI(this,n)},prefault(n){return sI(this,n)},catch(n){return cI(this,n)},pipe(n){return j5(this,n)},readonly(){return fI(this)},describe(n){const o=this.clone();return ws.add(o,{description:n}),o},meta(...n){if(n.length===0)return ws.get(this);const o=this.clone();return ws.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return ws.get(e)?.description},configurable:!0}),e)),R7=V("_ZodString",(e,t)=>{Q0.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(o,s,l)=>LE(e,o,s);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Bs(e,"_ZodString",{regex(...o){return this.check(hE(...o))},includes(...o){return this.check(gE(...o))},startsWith(...o){return this.check(vE(...o))},endsWith(...o){return this.check(wE(...o))},min(...o){return this.check(La(...o))},max(...o){return this.check(O7(...o))},length(...o){return this.check(L7(...o))},nonempty(...o){return this.check(La(1,...o))},lowercase(o){return this.check(pE(o))},uppercase(o){return this.check(mE(o))},trim(){return this.check(xE())},normalize(...o){return this.check(yE(...o))},toLowerCase(){return this.check(_E())},toUpperCase(){return this.check(CE())},slugify(){return this.check(bE())}})}),CM=V("ZodString",(e,t)=>{Q0.init(e,t),R7.init(e,t),e.email=n=>e.check(Aj(bM,n)),e.url=n=>e.check(I7(A7,n)),e.jwt=n=>e.check(nE(FM,n)),e.emoji=n=>e.check(Vj(kM,n)),e.guid=n=>e.check(g5(_5,n)),e.uuid=n=>e.check(Fj(ca,n)),e.uuidv4=n=>e.check(Dj(ca,n)),e.uuidv6=n=>e.check($j(ca,n)),e.uuidv7=n=>e.check(Hj(ca,n)),e.nanoid=n=>e.check(Bj(SM,n)),e.guid=n=>e.check(g5(_5,n)),e.cuid=n=>e.check(Zj(jM,n)),e.cuid2=n=>e.check(Wj(EM,n)),e.ulid=n=>e.check(Uj(MM,n)),e.base64=n=>e.check(Xj(NM,n)),e.base64url=n=>e.check(eE(RM,n)),e.xid=n=>e.check(qj(IM,n)),e.ksuid=n=>e.check(Gj(OM,n)),e.ipv4=n=>e.check(Kj(LM,n)),e.ipv6=n=>e.check(Yj(TM,n)),e.cidrv4=n=>e.check(Jj(zM,n)),e.cidrv6=n=>e.check(Qj(PM,n)),e.e164=n=>e.check(tE(AM,n)),e.datetime=n=>e.check(nM(n)),e.date=n=>e.check(oM(n)),e.time=n=>e.check(sM(n)),e.duration=n=>e.check(lM(n))});function b(e){return Rj(CM,e)}const dt=V("ZodStringFormat",(e,t)=>{at.init(e,t),R7.init(e,t)}),bM=V("ZodEmail",(e,t)=>{$S.init(e,t),dt.init(e,t)}),_5=V("ZodGUID",(e,t)=>{FS.init(e,t),dt.init(e,t)}),ca=V("ZodUUID",(e,t)=>{DS.init(e,t),dt.init(e,t)}),A7=V("ZodURL",(e,t)=>{HS.init(e,t),dt.init(e,t)});function F7(e){return I7(A7,e)}const kM=V("ZodEmoji",(e,t)=>{VS.init(e,t),dt.init(e,t)}),SM=V("ZodNanoID",(e,t)=>{BS.init(e,t),dt.init(e,t)}),jM=V("ZodCUID",(e,t)=>{ZS.init(e,t),dt.init(e,t)}),EM=V("ZodCUID2",(e,t)=>{WS.init(e,t),dt.init(e,t)}),MM=V("ZodULID",(e,t)=>{US.init(e,t),dt.init(e,t)}),IM=V("ZodXID",(e,t)=>{qS.init(e,t),dt.init(e,t)}),OM=V("ZodKSUID",(e,t)=>{GS.init(e,t),dt.init(e,t)}),LM=V("ZodIPv4",(e,t)=>{XS.init(e,t),dt.init(e,t)}),TM=V("ZodIPv6",(e,t)=>{ej.init(e,t),dt.init(e,t)}),zM=V("ZodCIDRv4",(e,t)=>{tj.init(e,t),dt.init(e,t)}),PM=V("ZodCIDRv6",(e,t)=>{nj.init(e,t),dt.init(e,t)}),NM=V("ZodBase64",(e,t)=>{rj.init(e,t),dt.init(e,t)}),RM=V("ZodBase64URL",(e,t)=>{ij.init(e,t),dt.init(e,t)}),AM=V("ZodE164",(e,t)=>{sj.init(e,t),dt.init(e,t)}),FM=V("ZodJWT",(e,t)=>{lj.init(e,t),dt.init(e,t)}),D7=V("ZodNumber",(e,t)=>{k7.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(o,s,l)=>TE(e,o,s),Bs(e,"ZodNumber",{gt(o,s){return this.check(w5(o,s))},gte(o,s){return this.check(Lu(o,s))},min(o,s){return this.check(Lu(o,s))},lt(o,s){return this.check(v5(o,s))},lte(o,s){return this.check(Ou(o,s))},max(o,s){return this.check(Ou(o,s))},int(o){return this.check(C5(o))},safe(o){return this.check(C5(o))},positive(o){return this.check(w5(0,o))},nonnegative(o){return this.check(Lu(0,o))},negative(o){return this.check(v5(0,o))},nonpositive(o){return this.check(Ou(0,o))},multipleOf(o,s){return this.check(y5(o,s))},step(o,s){return this.check(y5(o,s))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Se(e){return aE(D7,e)}const DM=V("ZodNumberFormat",(e,t)=>{cj.init(e,t),D7.init(e,t)});function C5(e){return lE(DM,e)}const $M=V("ZodBoolean",(e,t)=>{uj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>zE(e,n,o)});function ye(e){return cE($M,e)}const HM=V("ZodNull",(e,t)=>{dj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>PE(e,n,o)});function VM(e){return uE(HM,e)}const BM=V("ZodUnknown",(e,t)=>{fj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>RE()});function za(){return dE(BM)}const ZM=V("ZodNever",(e,t)=>{hj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>NE(e,n,o)});function X0(e){return fE(ZM,e)}const WM=V("ZodArray",(e,t)=>{pj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>HE(e,n,o,s),e.element=t.element,Bs(e,"ZodArray",{min(n,o){return this.check(La(n,o))},nonempty(n){return this.check(La(1,n))},max(n,o){return this.check(O7(n,o))},length(n,o){return this.check(L7(n,o))},unwrap(){return this.element}})});function re(e,t){return kE(WM,e,t)}const $7=V("ZodObject",(e,t)=>{gj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>VE(e,n,o,s),Ze(e,"shape",()=>t.shape),Bs(e,"ZodObject",{keyof(){return Fe(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:za()})},loose(){return this.clone({...this._zod.def,catchall:za()})},strict(){return this.clone({...this._zod.def,catchall:X0()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return zk(this,n)},safeExtend(n){return Pk(this,n)},merge(n){return Nk(this,n)},pick(n){return Lk(this,n)},omit(n){return Tk(this,n)},partial(...n){return Rk(V7,this,n[0])},required(...n){return Ak(B7,this,n[0])}})});function j(e,t){const n={type:"object",shape:e??{},...be(t)};return new $7(n)}function fe(e,t){return new $7({type:"object",shape:e,catchall:X0(),...be(t)})}const H7=V("ZodUnion",(e,t)=>{E7.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>BE(e,n,o,s),e.options=t.options});function Pn(e,t){return new H7({type:"union",options:e,...be(t)})}const UM=V("ZodDiscriminatedUnion",(e,t)=>{H7.init(e,t),vj.init(e,t)});function Qt(e,t,n){return new UM({type:"union",options:t,discriminator:e,...be(n)})}const qM=V("ZodIntersection",(e,t)=>{wj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>ZE(e,n,o,s)});function GM(e,t){return new qM({type:"intersection",left:e,right:t})}const KM=V("ZodTuple",(e,t)=>{yj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>WE(e,n,o,s),e.rest=n=>e.clone({...e._zod.def,rest:n})});function YM(e,t,n){const o=t instanceof et,s=o?n:t,l=o?t:null;return new KM({type:"tuple",items:e,rest:l,...be(s)})}const b5=V("ZodRecord",(e,t)=>{xj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>UE(e,n,o,s),e.keyType=t.keyType,e.valueType=t.valueType});function qn(e,t,n){return!t||!t._zod?new b5({type:"record",keyType:b(),valueType:e,...be(t)}):new b5({type:"record",keyType:e,valueType:t,...be(n)})}const l0=V("ZodEnum",(e,t)=>{_j.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(o,s,l)=>AE(e,o,s),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(o,s)=>{const l={};for(const u of o)if(n.has(u))l[u]=t.entries[u];else throw new Error(`Key ${u} not found in enum`);return new l0({...t,checks:[],...be(s),entries:l})},e.exclude=(o,s)=>{const l={...t.entries};for(const u of o)if(n.has(u))delete l[u];else throw new Error(`Key ${u} not found in enum`);return new l0({...t,checks:[],...be(s),entries:l})}});function Fe(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new l0({type:"enum",entries:n,...be(t)})}const JM=V("ZodLiteral",(e,t)=>{Cj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>FE(e,n,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function oe(e,t){return new JM({type:"literal",values:Array.isArray(e)?e:[e],...be(t)})}const QM=V("ZodTransform",(e,t)=>{bj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>$E(e,n),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new c7(e.constructor.name);n.addIssue=l=>{if(typeof l=="string")n.issues.push(Ns(l,n.value,t));else{const u=l;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=n.value),u.inst??(u.inst=e),n.issues.push(Ns(u))}};const s=t.transform(n.value,n);return s instanceof Promise?s.then(l=>(n.value=l,n.fallback=!0,n)):(n.value=s,n.fallback=!0,n)}});function XM(e){return new QM({type:"transform",transform:e})}const V7=V("ZodOptional",(e,t)=>{M7.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>N7(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function k5(e){return new V7({type:"optional",innerType:e})}const eI=V("ZodExactOptional",(e,t)=>{kj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>N7(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function tI(e){return new eI({type:"optional",innerType:e})}const nI=V("ZodNullable",(e,t)=>{Sj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>qE(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function S5(e){return new nI({type:"nullable",innerType:e})}const rI=V("ZodDefault",(e,t)=>{jj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>KE(e,n,o,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function oI(e,t){return new rI({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():f7(t)}})}const iI=V("ZodPrefault",(e,t)=>{Ej.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>YE(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function sI(e,t){return new iI({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():f7(t)}})}const B7=V("ZodNonOptional",(e,t)=>{Mj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>GE(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function aI(e,t){return new B7({type:"nonoptional",innerType:e,...be(t)})}const lI=V("ZodCatch",(e,t)=>{Ij.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>JE(e,n,o,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function cI(e,t){return new lI({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const uI=V("ZodPipe",(e,t)=>{Oj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>QE(e,n,o,s),e.in=t.in,e.out=t.out});function j5(e,t){return new uI({type:"pipe",in:e,out:t})}const dI=V("ZodReadonly",(e,t)=>{Lj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>XE(e,n,o,s),e.unwrap=()=>e._zod.def.innerType});function fI(e){return new dI({type:"readonly",innerType:e})}const hI=V("ZodLazy",(e,t)=>{Tj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>eM(e,n,o,s),e.unwrap=()=>e._zod.def.getter()});function pI(e){return new hI({type:"lazy",getter:e})}const Z7=V("ZodCustom",(e,t)=>{zj.init(e,t),rt.init(e,t),e._zod.processJSONSchema=(n,o,s)=>DE(e,n)});function mI(e,t){return SE(Z7,e??(()=>!0),t)}function gI(e,t={}){return jE(Z7,e,t)}function vI(e,t){return EE(e,t)}function Br(e){return(t,n)=>{for(const o of e)Object.hasOwn(t,o)&&t[o]===void 0&&n.addIssue({code:"custom",path:[o],message:"Explicit undefined is not valid JSON"})}}const wI=Pn([b(),Se(),ye(),VM()]);function yI(e){const t=new WeakSet,n=[{value:e,leaving:!1}];try{for(;n.length>0;){const o=n.pop();if(!o)break;if(o.leaving){t.delete(o.value);continue}if(!(typeof o.value!="object"||o.value===null)){if(t.has(o.value))return!1;t.add(o.value),n.push({value:o.value,leaving:!0});for(const s of Object.values(o.value))n.push({value:s,leaving:!1})}}}catch{return!1}return!0}const e2=mI(yI,{message:"JSON value must not contain circular references"}),Rs=pI(()=>Pn([wI,re(Rs),qn(b(),Rs)])),yn=e2.pipe(Rs);e2.pipe(re(Rs));const W7=e2.pipe(qn(b(),Rs)),xI=fe({code:b().min(1),message:b().min(1),retryable:ye(),diagnostic:b().min(1).optional(),stage:b().min(1).optional(),durationMs:Se().int().nonnegative().optional(),stderrTail:b().min(1).optional()}).superRefine(Br(["diagnostic","stage","durationMs","stderrTail"])),U7=b().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u),c0=e=>b().min(1).max(e).refine(t=>t.trim().length>0),Zs=qn(U7,j({label:c0(256).optional(),description:c0(1024).optional()}).strict()).refine(e=>Object.keys(e).length<=16,"Too many locales"),q7=qn(U7,c0(4096)).refine(e=>typeof e.en=="string","English fallback is required").refine(e=>Object.keys(e).length<=16,"Too many locales"),Ws=b().refine(e=>e.trim().length>0,{message:"Identifier must not be empty or whitespace"}),Ot=Ws.brand(),_t=Ws.brand(),Us=Ws.brand();Ws.brand();Ws.brand();const _I=128,CI=256,bI=1024,kI=32,u0=b().refine(e=>e.trim().length>0,{message:"Value must not be empty or whitespace"}),mr=u0.max(_I).regex(/^[A-Za-z0-9._~:-]+$/u,"Permission Mode ID must use transport-safe characters").brand(),SI=j({id:mr,label:u0.max(CI),description:u0.max(bI).optional(),dangerous:ye().optional(),localizations:Zs.optional()}).strict(),jI=j({modes:re(SI).min(1).max(kI),defaultModeId:mr}).strict().superRefine((e,t)=>{const n=new Set;for(const[o,s]of e.modes.entries())n.has(s.id)&&t.addIssue({code:"custom",message:"Permission Mode IDs must be unique",path:["modes",o,"id"]}),n.add(s.id);n.has(e.defaultModeId)||t.addIssue({code:"custom",message:"Default Permission Mode must exist in the catalog",path:["defaultModeId"]})});j({threadId:_t,permissionModeId:mr}).strict();const Yt=Se().int().safe().nonnegative(),Jo=Se().finite().nonnegative(),ua=Se().finite().min(0).max(100),E5=j({value:Jo,turnId:b().min(1).max(1024),at:Yt}).strict();j({outputTokensPerSecond:E5.optional(),timeToFirstOutputMs:E5.extend({value:Yt}).optional()}).strict();const M5=e=>q7.refine(t=>Object.values(t).every(n=>n.length<=e)),EI=re(j({kind:oe("countdown"),id:b().min(1).max(64),expiresAtUnix:Yt,label:M5(256).optional(),tooltip:M5(1024).optional()}).strict()).max(2).refine(e=>new Set(e.map(({id:t})=>t)).size===e.length,{message:"Composer indicator IDs must be unique"}),t2=j({composerIndicators:EI.optional(),inputTokens:Yt.optional(),cachedInputTokens:Yt.optional(),cacheWriteInputTokens:Yt.optional(),outputTokens:Yt.optional(),outputTokensPerSecond:Jo.optional(),apiOutputTokensPerSecond:Jo.optional(),reasoningOutputTokens:Yt.optional(),totalTokens:Yt.optional(),totalCostUsd:Jo.optional(),totalCredits:Jo.optional(),contextUsagePercent:Jo.optional(),cacheHitRatePercent:ua.optional(),contextWindowTokens:Yt.optional(),contextUsedTokens:Yt.optional(),planFiveHourUsedPercent:ua.optional(),planFiveHourResetsAtUnix:Yt.optional(),planSevenDayUsedPercent:ua.optional(),planSevenDayResetsAtUnix:Yt.optional(),sessionCacheHitRatePercent:ua.optional(),timeToFirstOutputMs:Yt.optional(),costSource:Fe(["publicPrice","native"]).optional(),unpricedModels:re(b().min(1)).min(1).optional()}).strict().superRefine((e,t)=>{Object.keys(e).length===0&&t.addIssue({code:"custom",message:"Thread Usage must contain a reliable field"});const n=e.contextUsedTokens!==void 0,o=e.contextWindowTokens!==void 0;n!==o&&t.addIssue({code:"custom",message:"Thread Usage context fields must be provided together",path:[n?"contextWindowTokens":"contextUsedTokens"]}),e.contextWindowTokens===0&&t.addIssue({code:"custom",message:"Thread Usage contextWindowTokens must be greater than zero",path:["contextWindowTokens"]}),e.costSource!==void 0&&e.totalCostUsd===void 0&&t.addIssue({code:"custom",message:"Thread Usage costSource must be provided with totalCostUsd",path:["costSource"]}),e.unpricedModels!==void 0&&e.costSource!=="publicPrice"&&t.addIssue({code:"custom",message:"Thread Usage unpricedModels must be provided with a publicPrice cost",path:["unpricedModels"]}),e.planFiveHourResetsAtUnix!==void 0&&e.planFiveHourUsedPercent===void 0&&t.addIssue({code:"custom",message:"Thread Usage planFiveHourResetsAtUnix must be provided with planFiveHourUsedPercent",path:["planFiveHourResetsAtUnix"]}),e.planSevenDayResetsAtUnix!==void 0&&e.planSevenDayUsedPercent===void 0&&t.addIssue({code:"custom",message:"Thread Usage planSevenDayResetsAtUnix must be provided with planSevenDayUsedPercent",path:["planSevenDayResetsAtUnix"]})}),G7=Se().finite().min(0).max(100),K7=Fe(["weekly","monthly","five_hour","seven_day","unknown"]),Y7=j({id:b().min(1).max(256),label:b().min(1).max(256),localizations:Zs.optional()}).strict(),MI=j({product:b().min(1),periodType:K7.optional(),scope:Y7.optional(),localizations:Zs.optional(),used:Se().finite().nonnegative().optional(),limit:Se().finite().nonnegative().optional(),unit:b().min(1).max(32).optional(),usagePercent:G7,resetsAt:b().min(1).optional()}).strict(),II=j({availableCount:Se().int().safe().positive(),nextExpiresAt:b().min(1).optional(),expiresAt:re(b().min(1)).min(1).max(32).optional()}).strict(),n2=j({used:Se().finite().nonnegative().optional(),limit:Se().finite().nonnegative().optional(),unit:b().min(1).max(32).optional(),label:b().min(1).optional(),scope:Y7.optional(),localizations:Zs.optional(),usedPercent:G7,resetsAt:b().min(1).optional(),periodType:K7,productUsage:re(MI).min(1).optional(),resetCredits:II.optional()}).strict();j({threadId:_t,refresh:oe("exact").optional()}).strict();j({threadId:_t,usage:t2.nullable(),accountCredits:n2.optional(),accountCreditsSupported:ye().optional()}).strict();const OI=512,r2=256,LI=128,J7=100,Dr=b().refine(e=>e.trim().length>0,{message:"Value must not be empty or whitespace"}),TI=Dr.max(OI).regex(/^[A-Za-z0-9._~-]+$/u,"Model Ref must use transport-safe opaque characters").brand(),Un=j({id:TI}).strict(),Gn=Dr.max(LI).regex(/^[A-Za-z0-9._~-]+$/u,"Thinking option ID must use transport-safe characters").brand(),al=Dr.max(r2),zI=j({id:Gn,label:Dr.max(r2)}).strict(),PI=j({ref:Un,label:Dr.max(r2),resolvedModelLabel:al.optional(),fastModel:Un.optional(),supportedThinkingOptionIds:re(Gn).optional()}).strict(),o2=re(zI).superRefine((e,t)=>{const n=new Set;for(const[o,s]of e.entries())n.has(s.id)&&t.addIssue({code:"custom",message:"Thinking option IDs must be unique",path:[o,"id"]}),n.add(s.id)}),NI=j({models:re(PI),defaultModel:Un.optional(),thinkingOptions:o2,defaultThinkingOptionId:Gn.optional()}).strict().superRefine((e,t)=>{const n=new Set,o=new Set(e.thinkingOptions.map(({id:s})=>s));for(const[s,l]of e.models.entries()){n.has(l.ref.id)&&t.addIssue({code:"custom",message:"Model Catalog refs must be unique",path:["models",s,"ref","id"]}),n.add(l.ref.id),l.fastModel&&((n.has(l.fastModel.id)||e.models.some(f=>f.ref.id===l.fastModel?.id))&&t.addIssue({code:"custom",message:"Fast Model refs must be distinct and unique",path:["models",s,"fastModel"]}),n.add(l.fastModel.id));const u=new Set;for(const[f,p]of(l.supportedThinkingOptionIds??[]).entries())u.has(p)&&t.addIssue({code:"custom",message:"Supported Thinking option IDs must be unique per Model",path:["models",s,"supportedThinkingOptionIds",f]}),u.add(p),o.has(p)||t.addIssue({code:"custom",message:"Supported Thinking option must exist in the catalog",path:["models",s,"supportedThinkingOptionIds",f]})}e.defaultModel&&!n.has(e.defaultModel.id)&&t.addIssue({code:"custom",message:"Default Model must exist in the Model Catalog",path:["defaultModel","id"]}),e.defaultThinkingOptionId&&!o.has(e.defaultThinkingOptionId)&&t.addIssue({code:"custom",message:"Default Thinking option must exist in the catalog",path:["defaultThinkingOptionId"]})}),i2=j({fork:ye(),forkAcrossCwd:ye(),rollbackLastTurn:ye()}).strict().refine(e=>e.fork||!e.forkAcrossCwd,{path:["forkAcrossCwd"],message:"Cross-cwd Fork requires exact history Fork support"}),RI=Fe(["live","atCreate"]),AI=j({configuration:j({selectModel:ye(),selectThinkingOption:ye(),selectPermissionMode:ye(),permissionModeScope:RI.default("live")}).strict(),history:i2,subagents:j({observe:ye(),readTranscript:ye()}).strict().optional(),autonomousTurns:j({observe:ye()}).strict().optional(),steer:ye().optional()}).strict();j({effectiveModel:Un.optional(),resolvedModelLabel:al.optional(),effectiveThinkingOptionId:Gn.optional(),availableThinkingOptions:o2.optional(),effectivePermissionModeId:mr.optional()}).strict().superRefine((e,t)=>{e.effectiveThinkingOptionId&&e.availableThinkingOptions&&!e.availableThinkingOptions.some(({id:n})=>n===e.effectiveThinkingOptionId)&&t.addIssue({code:"custom",message:"Effective Thinking option must be currently available",path:["effectiveThinkingOptionId"]})});const FI=j({open:oe(!0)}).strict(),DI=j({status:oe("ready"),catalog:NI,permissionModes:jI.optional(),capabilities:AI,webUi:FI.optional()}).strict().superRefine((e,t)=>{const n=e.capabilities.configuration.selectPermissionMode;n!==!!e.permissionModes&&t.addIssue({code:"custom",message:"Permission Mode catalog and capability must agree",path:n?["permissionModes"]:["capabilities","configuration","selectPermissionMode"]})}),$I=j({status:Fe(["notInstalled","unavailable","error"]),error:xI}).strict();Pn([DI,$I]);j({harnessId:Ot,cwd:Dr.max(16384).optional(),refresh:ye().optional(),purpose:oe("availability").optional()}).strict();j({harnessId:Ot}).strict();j({}).strict();j({threadId:_t,model:Un}).strict();j({threadId:_t,thinkingOptionId:Gn}).strict();j({threadId:_t,includeReferenceCapability:ye().optional()}).strict();const HI=j({owner:oe("codex"),locked:ye(),effectiveModel:Un.optional(),resolvedModelLabel:al.optional(),effectiveThinkingOptionId:Gn.optional(),effectivePermissionModeId:mr.optional(),history:i2.optional(),supportsThreadReferences:oe(!0).optional()}).strict(),VI=j({owner:oe("external"),harnessId:Dr.max(256),transportModelId:Dr.max(1024),effectiveModel:Un.optional(),resolvedModelLabel:al.optional(),effectiveThinkingOptionId:Gn.optional(),availableThinkingOptions:o2.optional(),effectivePermissionModeId:mr.optional(),history:i2,usage:t2.optional(),locked:oe(!0)}).strict();Qt("owner",[HI,VI]);j({threadIds:re(_t).min(1).max(J7)}).strict().superRefine(({threadIds:e},t)=>{const n=new Set;for(const[o,s]of e.entries())n.has(s)&&t.addIssue({code:"custom",message:"Thread ownership-list IDs must be unique",path:["threadIds",o]}),n.add(s)});const BI=j({threadId:_t,owner:oe("codex")}).strict(),ZI=j({threadId:_t,owner:oe("external"),harnessId:b().max(256).pipe(Ot)}).strict(),Q7=Qt("owner",[BI,ZI]);j({threads:re(Q7).min(1).max(J7)}).strict().superRefine(({threads:e},t)=>{const n=new Set;for(const[o,s]of e.entries())n.has(s.threadId)&&t.addIssue({code:"custom",message:"Thread ownership-list results must be unique",path:["threads",o,"threadId"]}),n.add(s.threadId)});j({threadId:_t,text:b().optional()}).strict();j({kind:oe("application"),value:b().transform((e,t)=>{try{return JSON.parse(e)}catch{return t.addIssue({code:"custom",message:"Invalid steering context JSON"}),kk}}).pipe(j({expectedTurnId:Us,clientUserMessageId:b().min(1),delivery:Fe(["newTurn","activeTurn"])}).strict())}).strict().transform(e=>e.value);Fe(["activeTurn","newTurn"]);j({delivery:Fe(["official","activeTurn","newTurn"])}).strict();const WI=1;j({threadIds:re(b().min(1))}).strict();j({threadId:b().min(1).max(1024),pinned:ye()}).strict();j({prompt:b().max(16384).optional()}).strict();j({projects:re(j({id:b(),name:b(),rootPaths:re(b())})),assignments:qn(b(),b()),projectless:re(b()),pinned:re(b())});const Pa=qn(b(),za()),ys=j({epoch:b().uuid(),sequence:Se().int().nonnegative()});Qt("type",[j({type:oe("display-settings-changed"),cursor:ys}),j({type:oe("preferences-changed"),cursor:ys,revision:Se().int().nonnegative()}),j({type:oe("hello"),version:oe(1),cursor:ys,reset:ye()}),j({type:oe("changed"),cursor:ys,threadId:b().min(1),method:b().min(1)})]);const UI=Qt("type",[j({type:oe("text"),id:b(),prompt:b(),secret:ye().optional(),optional:ye().optional()}),j({type:oe("choice"),id:b(),prompt:b(),multiple:ye(),allowOther:ye(),optional:ye().optional(),options:re(j({value:b(),label:b(),description:b().optional()}))})]),qI=Qt("type",[j({type:oe("approval"),title:b(),description:b().optional(),subject:za().optional(),actions:re(j({id:b(),label:b(),effect:b()}))}),j({type:oe("question"),title:b().optional(),questions:re(UI)})]),GI=j({requestId:Pn([b(),Se().int()]),threadId:b(),kind:Fe(["approval","question"]),interaction:qI,request:Pa}),KI=j({id:b().min(1),clientUserMessageId:b().min(1),input:re(Pa),presentationInput:re(Pa).nullable().optional()}).passthrough(),YI=re(Pn([b(),Se().int().nonnegative()]));j({fields:re(j({path:YI,originalLength:Se().int().nonnegative()}))});const Tu=j({id:b().min(1),status:b().min(1),items:re(j({id:b().min(1),type:b().min(1)}).passthrough()),codexhostFileOperations:re(j({beforeItemId:b().nullable(),item:j({id:b().min(1),type:b().min(1)}).passthrough()})).optional(),error:j({message:b().optional()}).passthrough().nullable().optional(),fingerprint:b().min(1).optional(),unchanged:oe(!0).optional()}).passthrough(),JI=j({id:b().min(1).max(512),fingerprint:b().min(1).max(128)});j({threadId:b().min(1),knownTurns:re(JI).max(64).optional(),truncateToolOutput:ye().optional()});const QI=j({harnessId:b().min(1),nativeSessionId:b().min(1)});j({cursor:ys,activeTurnId:b().min(1).nullable().optional(),command:j({name:b().min(1),turn:Tu}).optional(),thread:j({id:b().min(1),cwd:b(),modelProvider:b().min(1),createdAt:Se(),updatedAt:Se(),status:j({type:b()}).passthrough(),name:b().nullable().optional(),preview:b().optional(),codexhostImportSource:QI.optional(),turns:re(Tu).length(0)}).passthrough(),turnsPage:j({data:re(Tu).max(5),nextCursor:b().nullable()}),configuration:j({native:j({model:b().min(1).max(1024).optional(),reasoningEffort:b().min(1).max(128).optional()}).optional(),effectiveModel:Un.optional(),effectiveThinkingOptionId:Gn.optional(),effectivePermissionModeId:mr.optional()}),queue:j({items:re(KI),pausedReason:Fe(["interrupted","outcome-unknown","failed"]).nullable()}).optional(),interactions:re(GI)});j({version:oe(WI),owner:oe("service").optional(),pid:Se().int().positive(),port:Se().int().min(1).max(65535),token:b().regex(/^[0-9a-f]{64}$/u),startedAt:Se(),epoch:b().uuid()});j({epoch:b().uuid(),threadId:b().min(1),requestId:Pn([b(),Se().int()]),result:Pa});j({includeArchived:ye().optional(),officialCursor:j({live:b().nullable(),archived:b().nullable().optional()}).strict().optional()}).strict();j({threads:re(W7),ownership:re(Q7),archivedThreadIds:re(_t),officialCursor:j({live:b().nullable(),archived:b().nullable().optional()}).strict().optional()}).strict();const XI=b().regex(/^audio\/[a-z0-9.+-]+(?:\s*;[^\r\n]*)?$/i);j({available:ye()}).strict();j({path:b().min(1),mimeType:XI}).strict();const eO=Fe(["credentials-unavailable","login-expired","rate-limited","service-rejected","host-incompatible","network","timeout","audio-empty","audio-too-large","audio-format","audio-invalid"]);Qt("ok",[j({ok:oe(!0),text:b()}).strict(),j({ok:oe(!1),error:j({code:eO}).strict()}).strict()]);const I5=j({kind:Fe(["public","relay","tailscale-funnel","tailscale-https","tailscale","lan","virtual"]),url:b().min(1)}).strict(),X7=Qt("status",[j({status:oe("not-installed")}),j({status:oe("not-running")}),j({status:oe("not-logged-in")}),j({status:oe("https-disabled")}),j({status:oe("not-serving"),command:b()}),j({status:oe("occupied"),target:b()}),j({status:oe("serving"),url:b(),funnel:ye()}),j({status:oe("error"),message:b()})]);j({state:X7,error:b().optional()}).strict();const tO=Qt("status",[j({status:oe("on")}),j({status:oe("off")}),j({status:oe("invalid"),reason:b()})]),nO=j({lan:ye(),autostart:tO}).strict(),O5=j({expiresAt:b().optional(),issuing:ye(),failure:j({detail:b().optional(),retryAt:b(),paused:ye()}).optional()}),rO=Qt("status",[j({status:oe("off"),reason:Fe(["invite","name-taken","banned"]).optional()}),j({status:oe("connecting"),reason:Fe(["full","unreachable"]).optional()}),j({status:oe("connected"),url:b(),certificate:O5}),j({status:oe("missing-certificate"),url:b(),certificate:O5}),j({status:oe("stopped"),reason:Fe(["replaced","rejected","unsupported-version"])})]);b().max(253).regex(/^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?$/i).transform(e=>e.toLowerCase());b().regex(/^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)?$/);const oO=Fe(["official","self-hosted"]);j({secret:b().min(1),lastUsedAt:Se().nullable(),networkUrls:re(I5),directCandidates:re(I5).optional(),tailscale:X7,background:nO.optional(),relay:j({state:rO,enabled:ye(),kind:oO,officialHost:b(),customHost:b().optional(),officialHostname:b().optional(),customHostname:b().optional(),quotaUntil:b().optional()}).strict().optional()}).strict();j({url:b()}).strict();const iO=fe({threadId:b().min(1).max(1024),view:Fe(["result","messages"]),cursor:b().min(1).max(8192).optional(),limit:Se().int().min(1).max(100).optional()}),eh=j({id:b().min(1).max(256),harnessId:b().min(1),label:b().min(1).max(512),provider:Fe(["openai-codex","xai"])}).strict(),va=b().regex(/^[a-z][a-z0-9-]{0,47}$/),sO=j({name:va,source:eh,importedAt:b()}).strict(),aO=Qt("action",[j({action:oe("list")}).strict(),j({action:oe("import"),sourceId:b().min(1).max(256),name:va,confirmed:oe(!0)}).strict(),j({action:oe("reimport"),sourceId:b().min(1).max(256),name:va,confirmed:oe(!0)}).strict(),j({action:oe("remove"),name:va,confirmed:oe(!0)}).strict()]),lO=j({provider:b().min(1).max(128),type:Fe(["oauth","api_key","unknown"]),label:b().min(1).max(512).optional(),vendor:Fe(["openai-codex","xai"]).optional()}).strict();j({sources:re(eh),targets:re(j({harnessId:b(),providers:re(Fe(["openai-codex","xai"])),imports:re(sO),others:re(lO).default([])}).strict())}).strict();j({targetHarnessId:b().min(1).max(128).optional(),request:aO}).strict();j({events:ye()});const th=re(fe({agent:b().min(1).max(128),section:Fe(["main","more","auto"])})).max(256).refine(e=>new Set(e.map(t=>t.agent)).size===e.length,"Duplicate Harness IDs");fe({entries:th.nullable()});fe({});fe({entries:th,initializeOnly:ye().optional()});const cO=5,uO=1440,nh=fe({enabled:ye(),timeoutMinutes:Se().int().min(cO).max(uO)}),ll=b().regex(/^external$/u),rh=Ot.transform(e=>String(e)),oh=fe({model:Un.optional(),thinkingOptionId:Gn.optional(),permissionModeId:mr.optional()}).refine(e=>!!(e.model||e.thinkingOptionId||e.permissionModeId),"A default configuration must contain a preference"),dO=fe({lastHarness:Ot.optional(),byHarness:qn(rh,oh)}),d0=b().min(1).max(1024),ih=fe({idleRelease:nh.optional(),favorites:qn(rh,re(d0).max(2048)).default({}),newThread:dO.optional()});fe({scope:ll,revision:Se().int().nonnegative(),values:ih});fe({scope:ll.default("external")});const fO=Qt("kind",[fe({kind:oe("idleRelease"),value:nh}),fe({kind:oe("favorite"),harnessId:Ot,modelId:d0,enabled:ye()}),fe({kind:oe("favorites"),harnessId:Ot,modelIds:re(d0).max(2048)}),fe({kind:oe("newThread"),lastHarness:Ot.optional(),harnessId:Ot.optional(),configuration:oh.optional()})]);fe({scope:ll.default("external"),operations:re(fO).min(1).max(256),initializeOnly:ye().optional(),expectedRevision:Se().int().nonnegative().optional()}).superRefine((e,t)=>{for(const n of e.operations)n.kind==="newThread"&&(!n.lastHarness&&!n.configuration||!!n.harnessId!=!!n.configuration)&&t.addIssue({code:"custom",message:"A default Harness or complete configuration is required"})});fe({version:oe(1),revision:Se().int().nonnegative(),scopes:qn(ll,ih)});const fs=Se().finite().nonnegative(),cl=fe({input:fs,output:fs,cacheRead:fs.optional(),cacheWrite:fs.optional(),cacheWrite1h:fs.optional()}),f0=b().max(512).refine(e=>e.trim()===e&&e.length>0,"Model ID is required");fe({path:b(),entries:re(fe({key:b(),price:cl})),error:b().nullable()});fe({});fe({key:f0,price:cl.nullable(),previousKey:f0.optional()});fe({model:f0});const hO=fe({official:ye().optional(),canonicalModelId:b().min(1).optional(),provider:b().min(1).max(512),model:b().min(1).max(512),price:cl});fe({price:cl.nullable(),suggestions:re(hO).max(6).optional()});const sh=["today","7d","30d","90d","all"],jt=Se().int().min(0).max(Number.MAX_SAFE_INTEGER),xs=b().regex(/^\d{4}-\d{2}-\d{2}$/u),cr=b().min(1).max(128),Nr=b().min(1).max(512),Cs=b().min(1).max(4096);fe({range:Fe(sh),timeZone:b().min(1).max(128).refine(e=>{try{return new Intl.DateTimeFormat("en",{timeZone:e}),!0}catch{return!1}},"Unsupported usage statistics timezone").optional(),harness:cr.optional(),model:Nr.nullable().optional(),project:Cs.nullable().optional(),date:xs.optional()});const ah=fe({requests:jt,inputTokens:jt,cachedInputTokens:jt,cacheWriteInputTokens:jt,cacheKnownInputTokens:jt,cacheHitCachedInputTokens:jt,cacheHitInputTokens:jt,outputTokens:jt,reasoningOutputTokens:jt,costUsd:Se().finite().min(0),unpricedRequests:jt,unmeteredRequests:jt}),Qo=ah.shape,L5=fe({harness:cr,sessionId:b().min(1).max(512),project:Cs.nullable(),title:b().min(1).max(200).optional(),models:re(Nr).max(16),firstAtMs:jt,lastAtMs:jt,...Qo});fe({range:Fe(sh),from:xs.nullable(),to:xs,filters:fe({harness:cr.nullable(),model:Nr.nullable(),unknownModel:ye(),project:Cs.nullable(),unknownProject:ye(),date:xs.nullable()}),reading:fe({complete:ye(),sources:jt,read:jt}),failures:re(fe({harness:cr,message:b().max(2048)})).max(256),options:fe({harnesses:re(cr).max(256),models:re(Nr.nullable()).max(4096),projects:re(Cs.nullable()).max(4096)}),modelLabels:re(fe({harness:cr,model:Nr,label:Nr})).max(4096).optional(),credits:re(fe({harness:cr,model:Nr.nullable(),credits:Se().finite().min(0),reportedRequests:jt,requests:jt})).max(4096).optional(),totals:ah,daily:re(fe({date:xs,harness:cr,...Qo})).max(2e5),hourly:re(fe({weekday:Se().int().min(0).max(6),hour:Se().int().min(0).max(23),...Qo})).max(168),byHarness:re(fe({harness:cr,...Qo})).max(256),byModel:re(fe({model:Nr.nullable(),...Qo,harnessPricedRequests:jt})).max(4096),byProject:re(fe({project:Cs.nullable(),...Qo})).max(4096),sessions:re(L5).max(100),recentSessions:re(L5).max(100).optional()});j({threadId:_t});j({discarded:ye()});const pO=Qt("type",[j({id:b().min(1),type:oe("choice"),prompt:b(),options:re(j({value:b().min(1),label:b(),description:b().optional()})).min(1),multiple:ye(),allowOther:ye(),optional:ye()}),j({id:b().min(1),type:oe("text"),prompt:b(),multiline:ye(),secret:oe(!1),optional:ye(),placeholder:b().optional(),prefill:b().optional()})]),mO=j({interactionId:b().min(1),turnId:b().min(1),title:b().optional(),questions:re(pO).min(1)}).refine(({questions:e})=>e.some(t=>t.type==="choice"&&t.multiple),{message:"Shared cards require at least one multi-select question"});fe({threadId:b().min(1)});j({questions:re(mO)});fe({threadId:b().min(1),turnId:b().min(1),interactionId:b().min(1),answers:qn(b(),re(b())),cancelled:ye().default(!1)});j({accepted:oe(!0)});const gO=j({path:b(),oldText:b().nullable(),newText:b()});j({sessionId:b().min(1),turn:Se().int().nonnegative(),path:b().min(1).optional()});j({diffs:re(gO)});fe({});fe({});const vO=j({sessionId:b().min(1),epoch:b().min(1),turn:Se().int().nonnegative(),seq:Se().int().nonnegative(),callId:b().min(1),part:Se().int().nonnegative(),version:b().min(1)});j({reference:vO,length:Se().int().nonnegative(),bytes:Se().int().nonnegative()});fe({title:b().trim().min(1).max(200),type:Fe(["info","warning","danger"]),body:b().trim().min(1).max(16*1024)});fe({});fe({url:b().max(2048).regex(/^http:\/\/(?:127\.0\.0\.1|localhost):\d{1,5}\/(?:\?.*)?$/u)});const wO=1,yO=Fe(["idle","running","busy","closing","failed","blocked"]),xO=Fe(["none","disabled","timeout","operation","background","identity","persistence","closeFailed"]);re(fe({threadId:b(),title:b(),harnessId:b(),state:yO,reason:xO,inactiveMs:Se().nonnegative()}));fe({threadId:_t,turnId:Us});const _O=j({amount:Se().finite().nonnegative(),currency:b().trim().min(1).max(8),label:b().trim().min(1).max(128).optional()}).strict(),lh=j({email:b().trim().min(1).max(320).optional(),label:b().trim().min(1).max(256).optional(),plan:b().trim().min(1).max(128).optional(),credits:n2.optional(),balance:_O.optional()}).strict();function ch(e){return e.refine(t=>{const n=t;return n.credits!==void 0||n.balance!==void 0},{message:"Account must report either credits or a balance"})}const T5=ch(lh),s2={harnessId:Ot,harnessName:b().trim().min(1).max(128)},CO=j(s2).strict();j({}).strict();j({sources:re(CO).max(128)}).strict();j({harnessId:Ot,refresh:ye().optional()}).strict();j({...s2,account:T5.nullable(),accounts:re(T5).max(8).optional()}).strict();j({refresh:ye().optional()}).strict();j({accounts:re(ch(lh.extend(s2))).max(128)}).strict();const bO=128*1024,uh=128,a2=b().min(1).max(128).regex(/^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/u).pipe(Ot),wi=a2.refine(e=>e!=="codex","The official Codex identity is reserved"),z5=b().min(1).max(512).refine(e=>!/[\\\u0000:#?]/u.test(e)&&!e.startsWith("/")&&!e.split("/").some(t=>t===".."||t===""),"Plugin resources must be relative paths inside the plugin"),wa=F7().refine(e=>/^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(e),"Plugin documentation links must be credential-free HTTPS URLs"),h0=j({en:b().max(4096),"zh-CN":b().max(4096).optional()}).strict(),kO=j({commands:re(j({terminal:b().max(256),command:b().max(4096)}).strict()).max(8),before:h0.optional(),after:h0.optional(),downloads:re(j({label:b().max(128),url:wa}).strict()).max(8).optional()}).strict(),dh={id:a2,name:b().trim().min(1).max(128),version:b().min(1).max(128),kind:oe("usage").optional(),iconStyle:j({vector:j({viewBox:b().max(128).regex(/^-?\d+(?:\.\d+)?(?: +-?\d+(?:\.\d+)?){3}$/u),color:b().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu),paths:re(j({d:b().min(1).max(32768).regex(/^[MmLlHhVvCcSsQqTtAaZz\d.,+eE\s-]+$/u),fillRule:Fe(["evenodd","nonzero"]).optional(),fill:b().regex(/^(?:currentColor|#[a-f0-9]{6})$/iu).optional()}).strict()).min(1).max(32)}).strict().optional(),background:b().regex(/^#[a-f0-9]{6}$/iu).optional(),borderRadius:Se().min(0).max(50).optional(),paddingRatio:Se().min(0).max(.25).optional()}).strict().optional(),installation:kO.optional(),notice:h0.optional(),launchCommand:oe(!0).optional(),links:j({website:wa.optional(),documentation:wa.optional(),installation:wa.optional()}).strict().optional()};j({manifestVersion:oe(1),...dh,adapterApiVersion:Se().int().positive(),entry:z5,icon:z5.optional()}).strict();const SO=b().max(Math.ceil(bO/3)*4+64).regex(/^data:image\/(?:png|jpeg|webp|svg\+xml);base64,[A-Za-z0-9+/]+={0,2}$/u),jO=j({...dh,icon:SO.optional()}).strict();j({}).strict();j({plugins:re(jO.extend({id:wi})).max(uh)}).strict();j({version:oe(1),enabled:re(a2).max(uh)}).strict().refine(e=>new Set(e.enabled).size===e.enabled.length,{message:"Enabled plugin IDs must be unique",path:["enabled"]});j({harnessId:wi,model:Un.optional(),thinkingOptionId:Gn.optional(),permissionModeId:mr.optional(),prewarm:oe(!0).optional()}).strict();const fh=b().trim().min(1).max(4096).refine(e=>!/[\u0000\r\n]/u.test(e),"Invalid entrypoint path"),EO=j({harnessId:wi}).strict();EO.extend({path:fh.nullable()});j({path:fh.nullable(),restartRequired:ye()}).strict();j({harnessId:Ot,action:Fe(["check","update","install"])}).strict();const MO=j({currentVersion:b().min(1).max(128),latestVersion:b().min(1).max(128),updateAvailable:ye(),canUpdate:ye(),versionKind:Fe(["cli","application"]).optional(),manualUpdateUrl:F7().max(2048).refine(e=>/^https:\/\/[^/?#@]+(?:[/?#]|$)/iu.test(e),"Manual updates require a credential-free HTTPS URL").optional(),message:b().max(2048).optional(),messageCode:b().min(1).max(128).optional(),notice:q7.optional(),latestVersionKind:Fe(["unknown","tracking-branch"]).optional()}).strict();j({taskId:b().uuid()}).strict();Qt("status",[j({taskId:b().uuid(),status:oe("running")}).strict(),j({taskId:b().uuid(),status:oe("succeeded"),result:MO}).strict(),j({taskId:b().uuid(),status:oe("failed"),error:j({code:Se().int(),message:b().min(1).max(2048)}).strict()}).strict()]);const ul=b().min(1).max(256).regex(/^[A-Za-z0-9._~-]+$/u),hh=b().trim().min(1),IO=Fe(["free","go","plus","pro","prolite","team","self_serve_business_prolite","self_serve_business_usage_based","business","ent26","enterprise_cbp_automation","enterprise_cbp_usage_based","enterprise","edu","edu_plus","edu_pro","unknown"]),OO=j({accountId:ul,label:hh.max(256),email:b().email().max(320).optional(),planType:IO.optional()}).strict(),LO=Fe(["ready","unavailable"]);j({version:oe(2),currentAccountId:ul.nullable(),phase:LO,revision:Se().int().nonnegative(),instanceId:hh.max(1024).optional(),accounts:re(OO).max(1)}).strict();j({accountId:ul,refresh:ye().optional()}).strict();j({accountId:ul,usage:t2.nullable(),accountCredits:n2.optional(),freshness:Fe(["live","cached"]),observedAt:b().datetime().nullable()}).strict();const TO=1024,zO=16384,PO=4096,l2=1e3,NO=864e13,As=b().refine(e=>e.trim().length>0,"Value must not be empty or whitespace").refine(e=>!e.includes("\0"),"Value must not contain NUL"),c2=As.max(TO),ph=j({nativeSessionId:c2,title:As.max(PO).nullable(),updatedAt:Se().int().nonnegative().max(NO),cwd:As.max(zO),running:ye().nullable()}).strict();j({}).strict();j({harnesses:re(j({harnessId:wi,name:As.max(128)}).strict()).max(128)}).strict();j({harnessId:wi,query:b().trim().max(4096).refine(e=>!e.includes("\0")).optional(),offset:Se().int().nonnegative().safe().optional(),limit:Se().int().min(1).max(l2).optional()}).strict();j({candidates:re(ph).max(l2),total:Se().int().nonnegative().safe()}).strict();j({harnessId:wi,nativeSessionId:c2}).strict();j({threadId:As.max(1024).pipe(_t)}).strict();const RO=l2,AO=1024,FO=b().refine(e=>e.trim().length>0,"Value must not be empty or whitespace").refine(e=>!e.includes("\0"),"Value must not contain NUL"),DO=c2,$O=ph;j({}).strict();j({candidates:re($O).max(RO)}).strict();j({nativeSessionId:DO}).strict();j({threadId:FO.max(AO).pipe(_t)}).strict();j({threadId:_t,lastTurnId:Us}).strict();j({threadId:_t}).strict();const mh=b().trim().min(1).max(128).regex(/^[A-Za-z0-9._:-]+$/u).brand(),HO=b().min(1).max(128),VO=b().trim().min(1).max(128),BO=b().trim().min(1).max(512),ZO=j({id:mh,invocation:HO,label:VO,description:BO.optional(),localizations:Zs.optional(),argumentMode:Fe(["none","text"]),kind:Fe(["command","skill"]).optional()}).strict();j({commands:re(ZO),warnings:re(b().min(1)).optional(),source:Fe(["live","static"]).optional()}).strict().superRefine((e,t)=>{const n=new Set;for(const[o,s]of e.commands.entries())n.has(s.id)&&t.addIssue({code:"custom",message:"Harness command IDs must be unique",path:["commands",o,"id"]}),n.add(s.id)});j({harnessId:Ot,cwd:b().min(1).optional()}).strict();j({threadId:_t}).strict();j({threadId:_t,commandId:mh,turnId:Us.optional(),arguments:W7.optional()}).strict();j({accepted:oe(!0),turnId:Us.optional()}).strict();const dl=oe("2.0").optional(),Ln=X0().optional(),gh=b().min(1),u2=Pn([b(),Se().int()]),WO=j({code:Se().int(),message:b(),data:yn.optional()}).catchall(yn).superRefine(Br(["data"])),UO=j({jsonrpc:dl,id:u2,method:gh,params:yn.optional(),result:Ln,error:Ln}).catchall(yn).superRefine(Br(["jsonrpc","params","result","error"])),qO=j({jsonrpc:dl,id:Ln,method:gh,params:yn.optional(),result:Ln,error:Ln}).catchall(yn).superRefine(Br(["jsonrpc","id","params","result","error"])),GO=j({jsonrpc:dl,id:u2,method:Ln,params:Ln,result:yn,error:Ln}).catchall(yn).superRefine(Br(["jsonrpc","method","params","error"])),KO=j({jsonrpc:dl,id:u2,method:Ln,params:Ln,result:Ln,error:WO}).catchall(yn).superRefine(Br(["jsonrpc","method","params","result"]));Pn([UO,qO,GO,KO]);const Fs=b().refine(e=>e.trim().length>0,{message:"Native identifier must not be empty or whitespace"});fe({harnessId:Ot,nativeSessionId:Fs,locator:yn.optional(),formatVersion:oe(1)}).superRefine(Br(["locator"]));fe({harnessId:Ot,nativeSessionId:Fs,nativeTurnKey:Fs,formatVersion:oe(1)});fe({harnessId:Ot,nativeSessionId:Fs,checkpointId:Fs,locator:yn.optional(),formatVersion:oe(1)}).superRefine(Br(["locator"]));const vh=500,YO=/^\d+\.\d+\.\d+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/u,p0=b().regex(YO),wh=Fe(["npm","windows-installer","macos-dmg"]),JO=Fe(["prepared","downloading","waiting-for-exit","installing","restarting","succeeded","failed"]),d2=fe({version:p0,installation:wh,phase:JO,updatedAt:Se().int().nonnegative(),downloadedBytes:Se().int().nonnegative().optional(),totalBytes:Se().int().positive().optional(),error:b().min(1).max(vh).nullable(),serviceStopOutput:b().optional()}).superRefine((e,t)=>{e.downloadedBytes!==void 0&&e.totalBytes!==void 0&&e.downloadedBytes>e.totalBytes&&t.addIssue({code:"custom",path:["downloadedBytes"],message:"downloadedBytes must not exceed totalBytes"})});fe({});const QO=b().max(300).regex(/^https:\/\/github\.com\/BytePioneer-AI\/codex-host\/releases\/tag\/v[0-9A-Za-z.+-]+$/u,"release notes URL must identify a codexhost GitHub Release");fe({currentVersion:p0,installation:wh.nullable(),latestVersion:p0.nullable(),updateAvailable:ye(),installationAvailable:ye(),releaseNotes:b().min(1).max(2e4).nullable(),releaseNotesUrl:QO.nullable(),status:d2.nullable(),error:b().min(1).max(vh).nullable()});fe({status:d2});fe({status:d2.nullable()});const XO=/\[@([^\]\n]+)\]\(<?subagent:\/\/codexhost\.([a-z0-9][a-z0-9-]*)>?\)/gu;function eL(e){const t=[],n=new Set;return{text:e.replace(XO,(s,l,u)=>{const f=l.trim();return n.has(u)||(n.add(u),t.push({harnessId:u,label:f})),`@${f}`}),mentions:t}}const tL=Fe(["idle","installing","restarting","succeeded","failed"]);j({runningVersion:b().nullable(),installedVersion:b().nullable(),restartRequired:ye(),remote:ye(),updateSupported:ye(),update:j({phase:tL,targetVersion:b().nullable(),error:b().nullable()})});const nL=j({version:b().regex(/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/u)}).strict();j({hostname:b().min(1).max(1024).refine(e=>!e.startsWith("-")&&!/\s/u.test(e)),port:Se().int().min(1).max(65535).nullable(),identity:b().max(4096).nullable(),action:Fe(["inspect","install","update","repair","uninstall"]),uninstallPackage:ye().optional(),version:b().regex(/^\d+\.\d+\.\d+$/u).nullable()}).strict();j({state:Fe(["installed","not-installed"])}).strict();const Xo=b().min(1).max(1024),P5=j({hostId:Xo,displayName:b().min(1).max(1024),source:Fe(["codex-managed","discovered"]),sshAlias:b().max(1024).nullable(),sshHost:b().min(1).max(1024),sshPort:Se().int().min(1).max(65535).nullable(),identity:b().max(4096).nullable(),autoConnect:ye(),connectionAnalyticsId:b().max(1024).optional()}),rL=fe({displayName:b().min(1).max(1024),hostname:b().min(1).max(1024),sshPort:Se().int().min(1).max(65535).nullable(),identity:b().max(4096).nullable()});Qt("action",[fe({action:oe("list")}),fe({action:oe("read-thread"),hostId:Xo.refine(e=>e!=="local"),input:iO}),fe({action:oe("save"),draft:rL,previous:P5.nullable()}),fe({action:oe("remove"),previous:P5}),fe({action:oe("connect"),hostId:Xo,enabled:ye()}),fe({action:oe("state"),hostId:Xo}),fe({action:oe("runtime"),hostId:Xo}),fe({action:oe("update"),hostId:Xo.refine(e=>e!=="local"),version:nL.shape.version})]);Pn([fe({result:yn}),fe({error:fe({code:Se().int(),message:b()})})]);const fl=b().max(214).regex(/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/u),N5=Pn([b(),j({en:b()}).catchall(b())]),oL=j({title:N5.optional(),description:N5.optional(),icon:b().max(Math.ceil(256*1024/3)*4+64).regex(/^data:image\/(?:svg\+xml|png|jpeg|webp);base64,[A-Za-z0-9+/]*={0,2}$/u).optional(),error:b().optional()}),iL=j({id:fl,name:b().min(1).max(214),version:b().min(1).max(128),format:oe("dsh"),supportedTargets:YM([oe("web")]),enabledTargets:re(oe("web")).max(1),source:b().min(1).max(4096),projectUrl:b().max(4096).url({protocol:/^https?$/u}).optional(),installedAt:b(),meta:oL.optional(),loadError:b().optional()});j({extensions:re(iL),loadedIds:re(fl),safeMode:ye(),storeError:b().optional()});const sL=b().trim().max(2048).url({protocol:/^https?$/u,normalize:!0}).refine(e=>!/[\s\\?#]/u.test(e)&&!e.split("/")[2]?.includes("@"),"Use an HTTP(S) registry URL without credentials, a query, or a fragment.").transform(e=>e.endsWith("/")?e:`${e}/`);j({spec:b().trim().min(1).max(4096),registry:sL.optional()}).strict();j({id:fl,enabled:ye()}).strict();j({id:fl}).strict();oe(wO);function yh({kind:e,size:t=16,className:n,strokeWidth:o,reference:s}){if(e==="session"&&s!==void 0){const{text:l,mentions:u}=eL(s),f=u[0];if(f&&u.length===1&&l===`@${f.label}`)return c.jsx(q8,{id:f.harnessId,src:`/harness-icons/${encodeURIComponent(f.harnessId)}`,presentationUrl:"/harness-icons/presentation.json",size:t,className:n,fallback:c.jsx(l8,{size:t,className:n})})}switch(e){case"session":return c.jsx(G6,{size:t,className:n,strokeWidth:o});case"file":return c.jsx(A0,{size:t,className:n,strokeWidth:o});case"folder":return c.jsx(el,{size:t,className:n,strokeWidth:o})}}function xh(e){return c.jsx(yh,{...e,strokeWidth:Y})}function aL(e){return c.jsx(yh,{...e,strokeWidth:J})}const lL="__DSH_CODE_ICON_INSTANCE__",cL=Object.freeze({angular:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F8ECEF" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#DD0031" d="M16.712 17.711H7.288l-1.204 2.916L12 24l5.916-3.373-1.204-2.916ZM14.692 0l7.832 16.855.814-12.856L14.692 0ZM9.308 0 .662 3.999l.814 12.856L9.308 0Zm-.405 13.93h6.198L12 6.396 8.903 13.93Z"/></g>',c:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF4F8" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#659AD2" d="M16.5921 9.1962s-.354-3.298-3.627-3.39c-3.2741-.09-4.9552 2.474-4.9552 6.14 0 3.6651 1.858 6.5972 5.0451 6.5972 3.184 0 3.5381-3.665 3.5381-3.665l6.1041.365s.36 3.31-2.196 5.836c-2.552 2.5241-5.6901 2.9371-7.8762 2.9201-2.19-.017-5.2261.034-8.1602-2.97-2.938-3.0101-3.436-5.9302-3.436-8.8002 0-2.8701.556-6.6702 4.047-9.5502C7.444.72 9.849 0 12.254 0c10.0422 0 10.7172 9.2602 10.7172 9.2602z"/></g>',clojure:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F1F7EC" stroke="#DCEAD2" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><g fill="none"><path d="M64 0C28.712 0 0 28.6 0 63.751c0 35.155 28.712 63.753 64 63.753s64-28.598 64-63.753C128 28.6 99.288 0 64 0" fill="#FFF"/><path d="M61.659 64.898a265.825 265.825 0 00-1.867 4.12c-2.322 5.241-4.894 11.62-5.834 15.706-.337 1.455-.546 3.258-.542 5.258 0 .79.043 1.622.11 2.469a30.74 30.74 0 0010.533 1.87 30.796 30.796 0 009.642-1.566 18.09 18.09 0 01-2.011-2.12c-4.11-5.221-6.403-12.872-10.031-25.737M46.485 38.96c-7.85 5.51-12.986 14.6-13.005 24.9.019 10.145 5.001 19.116 12.653 24.65 1.877-7.789 6.582-14.92 13.637-29.214a114.691 114.691 0 00-1.43-3.72c-1.955-4.884-4.776-10.556-7.294-13.124-1.283-1.342-2.84-2.502-4.561-3.492" fill="#91DC47"/><path d="M90.697 98.798c-4.05-.506-7.392-1.116-10.317-2.144a36.708 36.708 0 01-16.32 3.807c-20.293 0-36.742-16.383-36.745-36.602 0-10.97 4.852-20.805 12.528-27.512-2.053-.495-4.194-.783-6.38-.779-10.782.101-22.162 6.044-26.9 22.095-.443 2.337-.337 4.103-.337 6.197 0 31.818 25.895 57.613 57.835 57.613 19.561 0 36.841-9.682 47.305-24.489-5.66 1.405-11.103 2.077-15.763 2.091-1.747 0-3.387-.093-4.906-.277" fill="#63B132"/><path d="M79.829 87.634c.357.176 1.167.464 2.293.783 7.579-5.542 12.504-14.469 12.523-24.558h-.003c-.028-16.82-13.693-30.43-30.582-30.462a30.765 30.765 0 00-9.602 1.554c6.21 7.05 9.196 17.127 12.084 28.148l.005.013c.005.009.924 3.06 2.501 7.11 1.566 4.042 3.797 9.048 6.23 12.696 1.597 2.444 3.354 4.2 4.551 4.716" fill="#90B4FE"/><path d="M17.057 30.311c5.463-3.408 11.04-4.637 15.908-4.593 6.722.02 12.008 2.096 14.544 3.516.612.352 1.194.73 1.764 1.12a36.714 36.714 0 0114.786-3.096c20.295.003 36.747 16.386 36.75 36.601-.003 10.192-4.188 19.408-10.934 26.044a45.3 45.3 0 005.225.29c6.406.004 13.329-1.404 18.52-5.753 3.384-2.84 6.22-6.998 7.792-13.233.307-2.408.484-4.856.484-7.347 0-31.817-25.892-57.614-57.835-57.614-19.372 0-36.508 9.5-47.004 24.065z" fill="#5881D8"/></g></svg>',cmake:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F2F5F7" stroke="#D9E1E7" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#064F8C" d="M62.8.4L.3 123.8l68.1-57.9z"/><path fill="#249847" d="M123.8 127.7l-84-33.9L0 127.7z"/><path fill="#BE2128" d="M128 126.6L65.6 2.5l9.2 102.6z"/><path fill="#CDCDCE" d="M71.9 104l-3.1-34.9L42 92z"/></svg>',cpp:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E8F2F8" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#00599C" d="M22.394 6c-.167-.29-.398-.543-.652-.69L12.926.22c-.509-.294-1.34-.294-1.848 0L2.26 5.31c-.508.293-.923 1.013-.923 1.6v10.18c0 .294.104.62.271.91.167.29.398.543.652.69l8.816 5.09c.508.293 1.34.293 1.848 0l8.816-5.09c.254-.147.485-.4.652-.69.167-.29.27-.616.27-.91V6.91c.003-.294-.1-.62-.268-.91zM12 19.11c-3.92 0-7.109-3.19-7.109-7.11 0-3.92 3.19-7.11 7.11-7.11a7.133 7.133 0 016.156 3.553l-3.076 1.78a3.567 3.567 0 00-3.08-1.78A3.56 3.56 0 008.444 12 3.56 3.56 0 0012 15.555a3.57 3.57 0 003.08-1.778l3.078 1.78A7.135 7.135 0 0112 19.11zm7.11-6.715h-.79v.79h-.79v-.79h-.79v-.79h.79v-.79h.79v.79h.79zm2.962 0h-.79v.79h-.79v-.79h-.79v-.79h.79v-.79h.79v.79h.79z"/></g>',csharp:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3EEF7" stroke="#E2D7EA" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#9B4F96" d="M115.4 30.7L67.1 2.9c-.8-.5-1.9-.7-3.1-.7-1.2 0-2.3.3-3.1.7l-48 27.9c-1.7 1-2.9 3.5-2.9 5.4v55.7c0 1.1.2 2.4 1 3.5l106.8-62c-.6-1.2-1.5-2.1-2.4-2.7z"/><path fill="#68217A" d="M10.7 95.3c.5.8 1.2 1.5 1.9 1.9l48.2 27.9c.8.5 1.9.7 3.1.7 1.2 0 2.3-.3 3.1-.7l48-27.9c1.7-1 2.9-3.5 2.9-5.4V36.1c0-.9-.1-1.9-.6-2.8l-106.6 62z"/><path fill="#fff" d="M85.3 76.1C81.1 83.5 73.1 88.5 64 88.5c-13.5 0-24.5-11-24.5-24.5s11-24.5 24.5-24.5c9.1 0 17.1 5 21.3 12.5l13-7.5c-6.8-11.9-19.6-20-34.3-20-21.8 0-39.5 17.7-39.5 39.5s17.7 39.5 39.5 39.5c14.6 0 27.4-8 34.2-19.8l-12.9-7.6zM97 66.2l.9-4.3h-4.2v-4.7h5.1L100 51h4.9l-1.2 6.1h3.8l1.2-6.1h4.8l-1.2 6.1h2.4v4.7h-3.3l-.9 4.3h4.2v4.7h-5.1l-1.2 6h-4.9l1.2-6h-3.8l-1.2 6h-4.8l1.2-6h-2.4v-4.7H97zm4.8 0h3.8l.9-4.3h-3.8l-.9 4.3z"/></svg>',css:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#1572B6"/><text x="10" y="12.8" text-anchor="middle" font-family="Arial,sans-serif" font-size="6.2" font-weight="900" fill="#fff">CSS</text>',dart:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECF7FA" stroke="#D5EAF0" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#00c4b3" d="M35.2 34.9l-8.3-8.3v59.7l.1 2.8c0 1.3.2 2.8.7 4.3l65.6 23.1 16.3-7.2-74.4-74.4z"/><path d="M27.7 93.4zm81.9 15.9l-16.3 7.2-65.4-23.1c1.3 4.8 4 10.1 7 13.2l21.3 21.2 47.6.1 5.8-18.6z" fill="#22d3c5"/><path fill="#0075c9" d="M1.7 65.1C-.4 67.3.7 72 4 75.5l14.7 14.8 9.2 3.3c-.3-1.5-.7-3-.7-4.3l-.1-2.8-.2-59.8m82.7 82.6l7.2-16.4-23-65.6c-1.5-.3-3-.6-4.3-.7l-2.9-.1-59.6.1"/><path d="M93.6 27.3c.2 0 .2 0 0 0 .2 0 .2 0 0 0zm16 82l17.7-5.8V54.8l-20.4-20.5c-3-3-8.3-5.8-13.2-7l23.1 65.6" fill="#00a8e1"/><path fill="#00c4b3" d="M90.5 18.2L75.7 3.5c-3.4-3.4-8-4.4-10.4-2.3L26.9 26.6h59.5l2.9.1c1.3 0 2.8.2 4.3.7l-3.1-9.2z"/></svg>',docker:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E8F4FC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#2496ED" d="M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z"/></g>',elixir:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3EEF6" stroke="#E3D9E8" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-a" gradientUnits="userSpaceOnUse" x1="835.592" y1="-36.546" x2="821.211" y2="553.414" gradientTransform="matrix(.1297 0 0 .2 -46.03 17.198)"><stop offset="0" stop-color="#d9d8dc"/><stop offset="1" stop-color="#fff" stop-opacity=".385"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-a)" d="M64.4.5C36.7 13.9 1.9 83.4 30.9 113.9c26.8 33.5 85.4 1.3 68.4-40.5-21.5-36-35-37.9-34.9-72.9z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-b" gradientUnits="userSpaceOnUse" x1="942.357" y1="-40.593" x2="824.692" y2="472.243" gradientTransform="matrix(.1142 0 0 .2271 -47.053 17.229)"><stop offset="0" stop-color="#8d67af" stop-opacity=".672"/><stop offset="1" stop-color="#9f8daf"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-b)" d="M64.4.2C36.8 13.6 1.9 82.9 31 113.5c10.7 12.4 28 16.5 37.7 9.1 26.4-18.8 7.4-53.1 10.4-78.5C68.1 33.9 64.2 11.3 64.4.2z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-c" gradientUnits="userSpaceOnUse" x1="924.646" y1="120.513" x2="924.646" y2="505.851" gradientTransform="matrix(.1227 0 0 .2115 -46.493 17.206)"><stop offset="0" stop-color="#26053d" stop-opacity=".762"/><stop offset="1" stop-color="#b7b4b4" stop-opacity=".278"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-c)" d="M56.7 4.3c-22.3 15.9-28.2 75-24.1 94.2 8.2 48.1 75.2 28.3 69.6-16.5-6-29.2-48.8-39.2-45.5-77.7z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-d" gradientUnits="userSpaceOnUse" x1="428.034" y1="198.448" x2="607.325" y2="559.255" gradientTransform="matrix(.1848 0 0 .1404 -42.394 17.138)"><stop offset="0" stop-color="#91739f" stop-opacity=".46"/><stop offset="1" stop-color="#32054f" stop-opacity=".54"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-d)" d="M78.8 49.8c10.4 13.4 12.7 22.6 6.8 27.9-27.7 19.4-61.3 7.4-54-37.3C22.1 63 4.5 96.8 43.3 101.6c20.8 3.6 54 2 58.9-16.1-.2-15.9-10.8-22.9-23.4-35.7z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-e" gradientUnits="userSpaceOnUse" x1="907.895" y1="540.636" x2="590.242" y2="201.281" gradientTransform="matrix(.1418 0 0 .1829 -45.23 17.18)"><stop offset="0" stop-color="#463d49" stop-opacity=".331"/><stop offset="1" stop-color="#340a50" stop-opacity=".821"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-e)" d="M38.1 36.4c-2.9 21.2 35.1 77.9 58.3 71-17.7 35.6-56.9-21.2-64-41.7 1.5-11 2.2-16.4 5.7-29.3z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-f" gradientUnits="userSpaceOnUse" x1="1102.297" y1="100.542" x2="1008.071" y2="431.648" gradientTransform="matrix(.106 0 0 .2448 -47.595 17.242)"><stop offset="0" stop-color="#715383" stop-opacity=".145"/><stop offset="1" stop-color="#f4f4f4" stop-opacity=".234"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-f)" d="M60.4 49.7c.8 7.9 3.9 20.5 0 28.8S38.7 102 43.6 115.3c11.4 24.8 37.1-4.4 36.9-19 1.1-11.8-6.6-38.7-1.8-52.5L76.5 41l-13.6-4c-2.2 3.2-3 7.5-2.5 12.7z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__elixir-original-g" gradientUnits="userSpaceOnUse" x1="1354.664" y1="140.06" x2="1059.233" y2="84.466" gradientTransform="matrix(.09173 0 0 .2828 -48.536 17.28)"><stop offset="0" stop-color="#a5a1a8" stop-opacity=".356"/><stop offset="1" stop-color="#370c50" stop-opacity=".582"/></linearGradient><path fill-rule="evenodd" clip-rule="evenodd" fill="url(#__DSH_CODE_ICON_INSTANCE__elixir-original-g)" d="M65.3 10.8C36 27.4 48 53.4 49.3 81.6l19.1-55.4c-1.4-5.7-2.3-9.5-3.1-15.4z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#330A4C" fill-opacity=".316" d="M68.3 26.1c-14.8 11.7-14.1 31.3-18.6 54 8.1-21.3 4.1-38.2 18.6-54z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#FFF" d="M45.8 119.7c8 1.1 12.1 2.2 12.5 3 .3 4.2-11.1 1.2-12.5-3z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#EDEDED" fill-opacity=".603" d="M49.8 10.8c-6.9 7.7-14.4 21.8-18.2 29.7-1 6.5-.5 15.7.6 23.5.9-18.2 7.5-39.2 17.6-53.2z"/></svg>',env:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECD53F"/><text x="10" y="12.9" text-anchor="middle" font-family="Arial,sans-serif" font-size="5.7" font-weight="900" fill="#24292F">.ENV</text>',erlang:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FAEDF1" stroke="#EED6DE" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path d="M20.7 103.9C11 93.5 5.2 79.2 5.3 62.1 5.2 47 10 34 18.2 24.1H1v79.7l19.7.1zm90.4 0c4.2-4.5 8-9.8 11.4-15.9l-19-9.5c-6.7 10.8-16.4 20.8-29.9 20.9-19.6-.1-27.3-16.9-27.3-38.5h73.3c.1-2.4.1-3.6 0-4.7.5-12.9-2.9-23.7-9.1-32.1H127v79.7l-15.9.1zM47.5 42.4c.8-9.8 8.5-16.3 17.6-16.4 9.1 0 15.7 6.6 15.9 16.4H47.5z" fill="#A90533"/></svg>',flutter:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF7FD" stroke="#D7EAF6" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><g fill="#3FB6D3"><path d="M12.3 64.2L76.3 0h39.4L32.1 83.6zM76.3 128h39.4L81.6 93.9l34.1-34.8H76.3L42.2 93.5z"/></g><path fill="#27AACD" d="M81.6 93.9l-20-20-19.4 19.6 19.4 19.6z"/><path fill="#19599A" d="M115.7 128L81.6 93.9l-20 19.2L76.3 128z"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__flutter-original-a" gradientUnits="userSpaceOnUse" x1="59.365" y1="116.36" x2="86.825" y2="99.399"><stop offset="0" stop-color="#1b4e94"/><stop offset=".63" stop-color="#1a5497"/><stop offset="1" stop-color="#195a9b"/></linearGradient><path fill="url(#__DSH_CODE_ICON_INSTANCE__flutter-original-a)" d="M61.6 113.1l30.8-8.4-10.8-10.8z"/></svg>',git:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF0EC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#F05032" d="M13.09 23.549a1.54 1.54 0 0 1-2.18 0L.451 13.089a1.54 1.54 0 0 1 0-2.179l7.191-7.19 2.733 2.733a1.85 1.85 0 0 0 .964 2.326v6.66a1.849 1.849 0 1 0 1.54 0V8.957l2.508 2.508a1.85 1.85 0 1 0 1.09-1.09l-2.634-2.634a1.85 1.85 0 0 0-2.378-2.377L8.73 2.63 10.91.451a1.54 1.54 0 0 1 2.179 0l10.459 10.46a1.54 1.54 0 0 1 0 2.179z"/></g>',go:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#E7F9FC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#00ADD8" d="M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z"/></g>',graphql:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEAF6" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#E10098" d="M12.002 0a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.54 4.931a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm0 9.862a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm-8.54 4.931a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.276zm-8.542-4.93a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.277zm0-9.863a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.542-3.378L2.953 6.777v10.448l9.049 5.224 9.047-5.224V6.777zm0 1.601 7.66 13.27H4.34zm-1.387.371L3.97 15.037V7.363zm2.774 0 6.646 3.838v7.674zM5.355 17.44h13.293l-6.646 3.836z"/></g>',haskell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3F0F7" stroke="#E1D9EA" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#463B63" d="M0 110.2L30.1 65 0 19.9h22.6L52.7 65l-30.1 45.1H0z"/><path fill="#5E5187" d="M30.1 110.2L60.2 65 30.1 19.9h22.6l60.2 90.3H90.4L71.5 81.9l-18.8 28.2H30.1z"/><path fill="#904F8C" d="M102.9 83.8l-10-15.1H128v15.1h-25.1zM87.8 61.3l-10-15.1H128v15.1H87.8z"/></svg>',ini:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#6E7781"/><text x="10" y="13.2" text-anchor="middle" font-family="Arial,sans-serif" font-size="7.2" font-weight="800" fill="#fff">INI</text>',java:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F4F7FA" stroke="#D9E2E8" stroke-width=".5"/><svg x="2.5" y="2.5" width="15" height="15" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#0074BD" d="M47.617 98.12s-4.767 2.774 3.397 3.71c9.892 1.13 14.947.968 25.845-1.092 0 0 2.871 1.795 6.873 3.351-24.439 10.47-55.308-.607-36.115-5.969zm-2.988-13.665s-5.348 3.959 2.823 4.805c10.567 1.091 18.91 1.18 33.354-1.6 0 0 1.993 2.025 5.132 3.131-29.542 8.64-62.446.68-41.309-6.336z"/><path fill="#EA2D2E" d="M69.802 61.271c6.025 6.935-1.58 13.17-1.58 13.17s15.289-7.891 8.269-17.777c-6.559-9.215-11.587-13.792 15.635-29.58 0 .001-42.731 10.67-22.324 34.187z"/><path fill="#0074BD" d="M102.123 108.229s3.529 2.91-3.888 5.159c-14.102 4.272-58.706 5.56-71.094.171-4.451-1.938 3.899-4.625 6.526-5.192 2.739-.593 4.303-.485 4.303-.485-4.953-3.487-32.013 6.85-13.743 9.815 49.821 8.076 90.817-3.637 77.896-9.468zM49.912 70.294s-22.686 5.389-8.033 7.348c6.188.828 18.518.638 30.011-.326 9.39-.789 18.813-2.474 18.813-2.474s-3.308 1.419-5.704 3.053c-23.042 6.061-67.544 3.238-54.731-2.958 10.832-5.239 19.644-4.643 19.644-4.643zm40.697 22.747c23.421-12.167 12.591-23.86 5.032-22.285-1.848.385-2.677.72-2.677.72s.688-1.079 2-1.543c14.953-5.255 26.451 15.503-4.823 23.725 0-.002.359-.327.468-.617z"/><path fill="#EA2D2E" d="M76.491 1.587S89.459 14.563 64.188 34.51c-20.266 16.006-4.621 25.13-.007 35.559-11.831-10.673-20.509-20.07-14.688-28.815C58.041 28.42 81.722 22.195 76.491 1.587z"/><path fill="#0074BD" d="M52.214 126.021c22.476 1.437 57-.8 57.817-11.436 0 0-1.571 4.032-18.577 7.231-19.186 3.612-42.854 3.191-56.887.874 0 .001 2.875 2.381 17.647 3.331z"/></svg>',javascript:'<defs><clipPath id="__DSH_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__DSH_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#F0DB4F" d="M1.408 1.408h125.184v125.185H1.408z"/><path fill="#323330" d="M116.347 96.736c-.917-5.711-4.641-10.508-15.672-14.981-3.832-1.761-8.104-3.022-9.377-5.926-.452-1.69-.512-2.642-.226-3.665.821-3.32 4.784-4.355 7.925-3.403 2.023.678 3.938 2.237 5.093 4.724 5.402-3.498 5.391-3.475 9.163-5.879-1.381-2.141-2.118-3.129-3.022-4.045-3.249-3.629-7.676-5.498-14.756-5.355l-3.688.477c-3.534.893-6.902 2.748-8.877 5.235-5.926 6.724-4.236 18.492 2.975 23.335 7.104 5.332 17.54 6.545 18.873 11.531 1.297 6.104-4.486 8.08-10.234 7.378-4.236-.881-6.592-3.034-9.139-6.949-4.688 2.713-4.688 2.713-9.508 5.485 1.143 2.499 2.344 3.63 4.26 5.795 9.068 9.198 31.76 8.746 35.83-5.176.165-.478 1.261-3.666.38-8.581zM69.462 58.943H57.753l-.048 30.272c0 6.438.333 12.34-.714 14.149-1.713 3.558-6.152 3.117-8.175 2.427-2.059-1.012-3.106-2.451-4.319-4.485-.333-.584-.583-1.036-.667-1.071l-9.52 5.83c1.583 3.249 3.915 6.069 6.902 7.901 4.462 2.678 10.459 3.499 16.731 2.059 4.082-1.189 7.604-3.652 9.448-7.401 2.666-4.915 2.094-10.864 2.07-17.444.06-10.735.001-21.468.001-32.237z"/></svg></g>',json:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F4F4F4" stroke="#DDDDDD" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><linearGradient id="__DSH_CODE_ICON_INSTANCE__a" x1="-670.564" x2="-583.105" y1="-280.831" y2="-368.306" gradientTransform="matrix(.9988 0 0 -.9987 689.011 -259.008)" gradientUnits="userSpaceOnUse"><stop offset="0"/><stop offset="1" stop-color="#fff"/></linearGradient><path fill="url(#__DSH_CODE_ICON_INSTANCE__a)" fill-rule="evenodd" d="M63.895 94.303c27.433 37.398 54.281-10.438 54.241-39.205-.046-34.012-34.518-53.021-54.263-53.021C32.182 2.077 2 28.269 2 64.105 2 103.937 36.596 126 63.873 126c-6.172-.889-26.742-5.296-27.019-52.674-.186-32.044 10.453-44.846 26.974-39.214.37.137 18.223 7.18 18.223 30.187 0 22.908-18.156 30.004-18.156 30.004z" clip-rule="evenodd"/><linearGradient id="__DSH_CODE_ICON_INSTANCE__b" x1="-579.148" x2="-666.607" y1="-364.34" y2="-276.873" gradientTransform="matrix(.9988 0 0 -.9987 689.011 -259.008)" gradientUnits="userSpaceOnUse"><stop offset="0"/><stop offset="1" stop-color="#fff"/></linearGradient><path fill="url(#__DSH_CODE_ICON_INSTANCE__b)" fill-rule="evenodd" d="M63.863 34.086C45.736 27.838 23.53 42.778 23.53 72.703 23.53 121.565 59.739 126 64.128 126 95.818 126 126 99.808 126 63.972 126 24.14 91.404 2.077 64.127 2.077c7.555-1.046 40.719 8.176 40.719 53.504 0 29.559-24.764 45.651-40.87 38.776-.37-.137-18.223-7.18-18.223-30.187 0-22.91 18.11-30.085 18.11-30.084z" clip-rule="evenodd"/></svg>',kotlin:'<defs><linearGradient id="__DSH_CODE_ICON_INSTANCE__k" x1="1" y1="19" x2="19" y2="1"><stop stop-color="#0095D5"/><stop offset=".5" stop-color="#7F52FF"/><stop offset="1" stop-color="#F88909"/></linearGradient></defs><rect x="1" y="1" width="18" height="18" rx="4" fill="url(#__DSH_CODE_ICON_INSTANCE__k)"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#FFFFFF" d="M24 24H0V0h24L12 12Z"/></g>',lua:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECECF7" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#000080" d="M.38 10.377l-.272-.037c-.048.344-.082.695-.101 1.041l.275.016c.018-.34.051-.682.098-1.02zM4.136 3.289l-.184-.205c-.258.232-.509.48-.746.734l.202.188c.231-.248.476-.49.728-.717zM5.769 2.059l-.146-.235c-.296.186-.586.385-.863.594l.166.219c.27-.203.554-.399.843-.578zM1.824 18.369c.185.297.384.586.593.863l.22-.164c-.205-.271-.399-.555-.58-.844l-.233.145zM1.127 16.402l-.255.104c.129.318.274.635.431.943l.005.01.245-.125-.005-.01c-.153-.301-.295-.611-.421-.922zM.298 9.309l.269.063c.076-.332.168-.664.272-.986l-.261-.087c-.108.332-.202.672-.28 1.01zM.274 12.42l-.275.01c.012.348.04.699.083 1.043l.273-.033c-.042-.336-.069-.68-.081-1.02zM.256 14.506c.073.34.162.682.264 1.014l.263-.08c-.1-.326-.187-.658-.258-.99l-.269.056zM11.573.275L11.563 0c-.348.012-.699.039-1.044.082l.034.273c.338-.041.68-.068 1.02-.08zM23.221 8.566c.1.326.186.66.256.992l.27-.059c-.072-.34-.16-.682-.262-1.014l-.264.081zM17.621 1.389c-.309-.164-.627-.314-.947-.449l-.107.252c.314.133.625.281.926.439l.128-.242zM15.693.572c-.332-.105-.67-.199-1.01-.277l-.063.268c.332.076.664.168.988.273l.085-.264zM6.674 1.545c.298-.15.606-.291.916-.418L7.486.873c-.317.127-.632.272-.937.428l-.015.008.125.244.015-.008zM23.727 11.588l.275-.01a11.797 11.797 0 0 0-.082-1.045l-.273.033c.041.338.068.682.08 1.022zM13.654.105c-.346-.047-.696-.08-1.043-.098l-.014.273c.339.018.683.051 1.019.098l.038-.273zM9.544.527l-.058-.27c-.34.072-.681.16-1.014.264l.081.262c.325-.099.659-.185.991-.256zM1.921 5.469l.231.15c.185-.285.384-.566.592-.834l-.217-.17c-.213.276-.417.563-.606.854zM.943 7.318l.253.107c.132-.313.28-.625.439-.924l-.243-.128c-.163.307-.314.625-.449.945zM18.223 21.943l.145.234c.295-.186.586-.385.863-.594l-.164-.219c-.272.204-.557.4-.844.579zM21.248 19.219l.217.17c.215-.273.418-.561.607-.854l-.23-.148c-.186.285-.385.564-.594.832zM19.855 20.715l.184.203c.258-.23.51-.479.746-.732l-.201-.188c-.23.248-.477.488-.729.717zM22.359 17.504l.244.129c.162-.307.314-.625.449-.945l-.254-.107a11.27 11.27 0 0 1-.439.923zM23.617 13.629l.273.039c.049-.346.082-.695.102-1.043l-.275-.014c-.018.338-.051.682-.1 1.018zM23.156 15.621l.264.086c.107-.332.201-.67.279-1.01l-.268-.063c-.077.333-.169.665-.275.987zM22.453 6.672c.154.303.297.617.424.932l.256-.104c-.131-.322-.277-.643-.436-.953l-.244.125zM8.296 23.418c.331.107.67.201 1.009.279l.062-.268c-.331-.076-.663-.168-.986-.273l-.085.262zM10.335 23.889c.345.049.696.082 1.043.102l.014-.275c-.339-.018-.682-.051-1.019-.098l-.038.271zM17.326 22.449c-.303.154-.613.297-.926.424l.104.256c.318-.131.639-.275.947-.434l.004-.002-.123-.246-.006.002zM4.613 21.467c.274.213.562.418.854.605l.149-.23c-.285-.184-.565-.385-.833-.592l-.17.217zM12.417 23.725l.009.275c.348-.014.699-.041 1.045-.084l-.035-.271c-.336.041-.68.068-1.019.08zM6.37 22.604c.307.162.625.314.946.449l.107-.254c-.313-.133-.624-.279-.924-.439l-.129.244zM3.083 20.041c.233.258.48.51.734.746l.188-.201c-.249-.23-.49-.477-.717-.729l-.205.184zM14.445 23.475l.059.27c.34-.074.68-.162 1.014-.266l-.082-.262c-.325.099-.659.185-.991.258zM21.18.129A2.689 2.689 0 1 0 21.18 5.507 2.689 2.689 0 1 0 21.18.129zM15.324 15.447c0 .471.314.66.852.66.67 0 1.297-.396 1.297-1.016v-.645c-.23.107-.379.141-1.107.24-.735.109-1.042.306-1.042.761zM12 2.818c-5.07 0-9.18 4.109-9.18 9.18 0 5.068 4.11 9.18 9.18 9.18 5.07 0 9.18-4.111 9.18-9.18 0-5.07-4.11-9.18-9.18-9.18zm-2.487 13.77H5.771v-6.023h.769v5.346h2.974v.677zm4.13 0h-.619v-.67c-.405.57-.811.793-1.446.793-.843 0-1.38-.463-1.38-1.182v-3.271h.686v3c0 .52.347.85.893.85.719 0 1.181-.578 1.181-1.461v-2.389h.686v4.33zm-.53-8.393c0-1.484 1.205-2.689 2.689-2.689s2.688 1.205 2.688 2.689-1.203 2.688-2.688 2.688-2.689-1.203-2.689-2.688zm5.567 7.856v.52c-.223.059-.33.074-.471.074-.34 0-.637-.238-.711-.57-.381.406-.918.637-1.471.637-.877 0-1.422-.463-1.422-1.248 0-.527.256-.916.76-1.123.266-.107.414-.141 1.389-.264.545-.066.719-.191.719-.48v-.182c0-.412-.348-.645-.967-.645-.645 0-.957.24-1.016.77h-.693c.041-1 .686-1.404 1.734-1.404 1.066 0 1.627.412 1.627 1.182v2.412c0 .215.133.338.373.338.041-.002.074-.002.149-.017z"/></g>',makefile:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#427819"/><path fill="#fff" d="m5 4.5 2.3 2.3 2.3-2.3L11 5.9 8.7 8.2l2.4 2.4L9.7 12l-2.4-2.4L5 11.9 3.6 10.5l2.3-2.3-2.3-2.3zm7 6.5h4v1.5h-4zm0 2.8h4v1.5h-4z"/>',node:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EDF7EA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#539E43" d="M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z"/></g>',"objective-c":'<rect x="1" y="1" width="18" height="18" rx="4" fill="#438EFF"/><text x="10" y="13.2" text-anchor="middle" font-family="Arial,sans-serif" font-size="7.2" font-weight="800" fill="#fff">OC</text>',perl:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EAF2F7" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#0073A1" d="M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0m.157 1.103a10.91 10.91 0 0 1 9.214 5.404c-1.962.152-3.156 1.698-5.132 3.553-2.81 2.637-4.562.582-5.288-.898-.447-1.004-.847-2.117-1.544-2.769A.4.4 0 0 1 9.3 6.02l.08-.37a.083.083 0 0 0-.074-.1c-.33-.022-.601.093-.84.368a2.5 2.5 0 0 0-.375-.064c-.863-.093-1.036.345-1.873.345H5.81c-.758 0-1.391.361-1.7.892-.248.424-.257.884.15.93-.126.445.292.62 1.224.192 0 0 .733.421 1.749.421.549 0 .712.087.914.967.486 2.138 2.404 5.655 6.282 5.655l.118.166c.659.934.86 2.113.48 3.184-.307.867-.697 1.531-.697 1.531q.01.178.01.349c0 .81-.175 1.553-.387 2.23a10.91 10.91 0 0 1-11.989-6.342A10.91 10.91 0 0 1 7.608 2.01a10.9 10.9 0 0 1 4.55-.907M7.524 6.47c.288 0 .575.231.477.272a.4.4 0 0 1-.1.02.38.38 0 0 1-.375.327.384.384 0 0 1-.378-.326.4.4 0 0 1-.101-.02c-.098-.042.19-.273.477-.273m10.193 10.49q.05 0 .101.007.326.054.694.096.135.01.269.026a13.4 13.4 0 0 0 2.846-.007 10.9 10.9 0 0 1-2.007 2.705c-.11-.23-.547-1.19-.573-2.196q-.156-.01-.313-.026-.13-.014-.256-.022a18 18 0 0 1-.735-.102h-.003c-.032 0-.06.01-.074.035l-.003.012q-.081.265-.182.544c.428 1.084.652 2.078.652 2.078.14.22.258.432.363.64a11 11 0 0 1-2.168 1.264 11 11 0 0 1-1.205.426 13.3 13.3 0 0 1 1.055-2.531s.678-1.445 1.027-2.564v-.004a.55.55 0 0 1 .512-.38"/></g>',php:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F0EFF8" stroke="#DDDCEB" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#777BB4" d="M7.01 10.207h-.944l-.515 2.648h.838c.556 0 .97-.105 1.242-.314.272-.21.455-.559.55-1.049.092-.47.05-.802-.124-.995-.175-.193-.523-.29-1.047-.29zM12 5.688C5.373 5.688 0 8.514 0 12s5.373 6.313 12 6.313S24 15.486 24 12c0-3.486-5.373-6.312-12-6.312zm-3.26 7.451c-.261.25-.575.438-.917.551-.336.108-.765.164-1.285.164H5.357l-.327 1.681H3.652l1.23-6.326h2.65c.797 0 1.378.209 1.744.628.366.418.476 1.002.33 1.752a2.836 2.836 0 0 1-.305.847c-.143.255-.33.49-.561.703zm4.024.715l.543-2.799c.063-.318.039-.536-.068-.651-.107-.116-.336-.174-.687-.174H11.46l-.704 3.625H9.388l1.23-6.327h1.367l-.327 1.682h1.218c.767 0 1.295.134 1.586.401s.378.7.263 1.299l-.572 2.944h-1.389zm7.597-2.265a2.782 2.782 0 0 1-.305.847c-.143.255-.33.49-.561.703a2.44 2.44 0 0 1-.917.551c-.336.108-.765.164-1.286.164h-1.18l-.327 1.682h-1.378l1.23-6.326h2.649c.797 0 1.378.209 1.744.628.366.417.477 1.001.331 1.751zM17.766 10.207h-.943l-.516 2.648h.838c.557 0 .971-.105 1.242-.314.272-.21.455-.559.551-1.049.092-.47.049-.802-.125-.995s-.524-.29-1.047-.29z"/></g>',powershell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#2671BE"/><path fill="#fff" fill-opacity=".16" d="M5.5 4h11l-3.5 12H2z"/><path d="m6.5 6.5 3 3-4.2 3.2m4 1h4" fill="none" stroke="#fff" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>',protobuf:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#4285F4"/><path fill="none" stroke="#fff" stroke-width="1.2" stroke-linejoin="round" d="m10 3.5 6 3.3v6.4l-6 3.3-6-3.3V6.8z"/><path fill="#fff" d="M6.5 6.5h4.4c2.3 0 3.6 1.2 3.6 3.1s-1.3 3.1-3.6 3.1H9v2H6.5zM9 8.4v2.4h1.6c.8 0 1.2-.4 1.2-1.2s-.4-1.2-1.2-1.2z"/>',python:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F2F4F7" stroke="#D5DBE5" stroke-width=".5"/><g transform="matrix(.126 0 0 .126 2.30 2.24)"><path fill="#3776AB" d="M 60.510156,6.3979729 C 55.926503,6.4192712 51.549217,6.8101906 47.697656,7.4917229 C 36.35144,9.4962267 34.291407,13.691825 34.291406,21.429223 L 34.291406,31.647973 L 61.103906,31.647973 L 61.103906,35.054223 L 34.291406,35.054223 L 24.228906,35.054223 C 16.436447,35.054223 9.6131468,39.73794 7.4789058,48.647973 C 5.0170858,58.860939 4.9078907,65.233996 7.4789058,75.897973 C 9.3848341,83.835825 13.936449,89.491721 21.728906,89.491723 L 30.947656,89.491723 L 30.947656,77.241723 C 30.947656,68.391821 38.6048,60.585475 47.697656,60.585473 L 74.478906,60.585473 C 81.933857,60.585473 87.885159,54.447309 87.885156,46.960473 L 87.885156,21.429223 C 87.885156,14.162884 81.755176,8.7044455 74.478906,7.4917229 C 69.872919,6.7249976 65.093809,6.3766746 60.510156,6.3979729 z M 46.010156,14.616723 C 48.779703,14.616723 51.041406,16.915369 51.041406,19.741723 C 51.041404,22.558059 48.779703,24.835473 46.010156,24.835473 C 43.23068,24.835472 40.978906,22.558058 40.978906,19.741723 C 40.978905,16.91537 43.23068,14.616723 46.010156,14.616723 z "/><path fill="#FFD43B" d="M 91.228906,35.054223 L 91.228906,46.960473 C 91.228906,56.191228 83.403011,63.960472 74.478906,63.960473 L 47.697656,63.960473 C 40.361823,63.960473 34.291407,70.238956 34.291406,77.585473 L 34.291406,103.11672 C 34.291406,110.38306 40.609994,114.65704 47.697656,116.74172 C 56.184987,119.23733 64.323893,119.68835 74.478906,116.74172 C 81.229061,114.78733 87.885159,110.85411 87.885156,103.11672 L 87.885156,92.897973 L 61.103906,92.897973 L 61.103906,89.491723 L 87.885156,89.491723 L 101.29141,89.491723 C 109.08387,89.491723 111.98766,84.056315 114.69765,75.897973 C 117.49698,67.499087 117.37787,59.422197 114.69765,48.647973 C 112.77187,40.890532 109.09378,35.054223 101.29141,35.054223 L 91.228906,35.054223 z M 76.166406,99.710473 C 78.945884,99.710476 81.197656,101.98789 81.197656,104.80422 C 81.197654,107.63057 78.945881,109.92922 76.166406,109.92922 C 73.396856,109.92922 71.135156,107.63057 71.135156,104.80422 C 71.135158,101.98789 73.396853,99.710473 76.166406,99.710473 z "/></g>',r:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EEF2F6" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#276DC3" d="M12 2.746c-6.627 0-12 3.599-12 8.037 0 3.897 4.144 7.144 9.64 7.88V16.26c-2.924-.915-4.925-2.755-4.925-4.877 0-3.035 4.084-5.494 9.12-5.494 5.038 0 8.757 1.683 8.757 5.494 0 1.976-.999 3.379-2.662 4.272.09.066.174.128.258.216.169.149.25.363.372.544 2.128-1.45 3.44-3.437 3.44-5.631 0-4.44-5.373-8.038-12-8.038zm-2.111 4.99v13.516l4.093-.002-.002-5.291h1.1c.225 0 .321.066.549.25.272.22.715.982.715.982l2.164 4.063 4.627-.002-2.864-4.826s-.086-.193-.265-.383a2.22 2.22 0 00-.582-.416c-.422-.214-1.149-.434-1.149-.434s3.578-.264 3.578-3.826c0-3.562-3.744-3.63-3.744-3.63zm4.127 2.93l2.478.002s1.149-.062 1.149 1.127c0 1.165-1.149 1.17-1.149 1.17h-2.478zm1.754 6.119c-.494.049-1.012.079-1.54.088v1.807a16.622 16.622 0 002.37-.473l-.471-.891s-.108-.183-.248-.394c-.039-.054-.08-.098-.111-.137z"/></g>',react:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#20232A"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#61DAFB" d="M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"/></g>',ruby:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEDEC" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#CC342D" d="M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073l-.003.01zM0 19.089zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75l.003-.003z"/></g>',rust:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F3E6DD" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#2B2B2B" d="M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z"/></g>',scala:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCECEB" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#DC322F" d="M4.589 24c4.537 0 13.81-1.516 14.821-3v-5.729c-.957 1.408-10.284 2.912-14.821 2.912V24zM4.589 16.365c4.537 0 13.81-1.516 14.821-3V7.636c-.957 1.408-10.284 2.912-14.821 2.912v5.817zM4.589 8.729c4.537 0 13.81-1.516 14.821-3V0C18.453 1.408 9.126 2.912 4.589 2.912v5.817z"/></g>',shell:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#303642"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#7EE787" d="M21.038,4.9l-7.577-4.498C13.009,0.134,12.505,0,12,0c-0.505,0-1.009,0.134-1.462,0.403L2.961,4.9 C2.057,5.437,1.5,6.429,1.5,7.503v8.995c0,1.073,0.557,2.066,1.462,2.603l7.577,4.497C10.991,23.866,11.495,24,12,24 c0.505,0,1.009-0.134,1.461-0.402l7.577-4.497c0.904-0.537,1.462-1.529,1.462-2.603V7.503C22.5,6.429,21.943,5.437,21.038,4.9z M15.17,18.946l0.013,0.646c0.001,0.078-0.05,0.167-0.111,0.198l-0.383,0.22c-0.061,0.031-0.111-0.007-0.112-0.085L14.57,19.29 c-0.328,0.136-0.66,0.169-0.872,0.084c-0.04-0.016-0.057-0.075-0.041-0.142l0.139-0.584c0.011-0.046,0.036-0.092,0.069-0.121 c0.012-0.011,0.024-0.02,0.036-0.026c0.022-0.011,0.043-0.014,0.062-0.006c0.229,0.077,0.521,0.041,0.802-0.101 c0.357-0.181,0.596-0.545,0.592-0.907c-0.003-0.328-0.181-0.465-0.613-0.468c-0.55,0.001-1.064-0.107-1.072-0.917 c-0.007-0.667,0.34-1.361,0.889-1.8l-0.007-0.652c-0.001-0.08,0.048-0.168,0.111-0.2l0.37-0.236 c0.061-0.031,0.111,0.007,0.112,0.087l0.006,0.653c0.273-0.109,0.511-0.138,0.726-0.088c0.047,0.012,0.067,0.076,0.048,0.151 l-0.144,0.578c-0.011,0.044-0.036,0.088-0.065,0.116c-0.012,0.012-0.025,0.021-0.038,0.028c-0.019,0.01-0.038,0.013-0.057,0.009 c-0.098-0.022-0.332-0.073-0.699,0.113c-0.385,0.195-0.52,0.53-0.517,0.778c0.003,0.297,0.155,0.387,0.681,0.396 c0.7,0.012,1.003,0.318,1.01,1.023C16.105,17.747,15.736,18.491,15.17,18.946z M19.143,17.859c0,0.06-0.008,0.116-0.058,0.145 l-1.916,1.164c-0.05,0.029-0.09,0.004-0.09-0.056v-0.494c0-0.06,0.037-0.093,0.087-0.122l1.887-1.129 c0.05-0.029,0.09-0.004,0.09,0.056V17.859z M20.459,6.797l-7.168,4.427c-0.894,0.523-1.553,1.109-1.553,2.187v8.833 c0,0.645,0.26,1.063,0.66,1.184c-0.131,0.023-0.264,0.039-0.398,0.039c-0.42,0-0.833-0.114-1.197-0.33L3.226,18.64 c-0.741-0.44-1.201-1.261-1.201-2.142V7.503c0-0.881,0.46-1.702,1.201-2.142l7.577-4.498c0.363-0.216,0.777-0.33,1.197-0.33 c0.419,0,0.833,0.114,1.197,0.33l7.577,4.498c0.624,0.371,1.046,1.013,1.164,1.732C21.686,6.557,21.12,6.411,20.459,6.797z"/></g>',solidity:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F0F0F0" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#363636" d="M4.409 6.608L7.981.255l3.572 6.353H4.409zM8.411 0l3.569 6.348L15.552 0H8.411zm4.036 17.392l3.572 6.354 3.575-6.354h-7.147zm-.608-10.284h-7.43l3.715 6.605 3.715-6.605zm.428-.25h7.428L15.982.255l-3.715 6.603zM15.589 24l-3.569-6.349L8.448 24h7.141zm-3.856-6.858H4.306l3.712 6.603 3.715-6.603zm.428-.25h7.433l-3.718-6.605-3.715 6.605z"/></g>',sql:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#336791"/><ellipse cx="10" cy="5.5" rx="5.8" ry="2.1" fill="#fff"/><path fill="#fff" fill-opacity=".88" d="M4.2 5.5v8.9c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1V5.5c0 1.2-2.6 2.1-5.8 2.1s-5.8-.9-5.8-2.1z"/><path d="M4.2 9.2c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1M4.2 12.9c0 1.2 2.6 2.1 5.8 2.1s5.8-.9 5.8-2.1" fill="none" stroke="#336791" stroke-opacity=".7" stroke-width=".7"/>',svelte:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#FFF0EB" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#FF3E00" d="M10.354 21.125a4.44 4.44 0 0 1-4.765-1.767 4.109 4.109 0 0 1-.703-3.107 3.898 3.898 0 0 1 .134-.522l.105-.321.287.21a7.21 7.21 0 0 0 2.186 1.092l.208.063-.02.208a1.253 1.253 0 0 0 .226.83 1.337 1.337 0 0 0 1.435.533 1.231 1.231 0 0 0 .343-.15l5.59-3.562a1.164 1.164 0 0 0 .524-.778 1.242 1.242 0 0 0-.211-.937 1.338 1.338 0 0 0-1.435-.533 1.23 1.23 0 0 0-.343.15l-2.133 1.36a4.078 4.078 0 0 1-1.135.499 4.44 4.44 0 0 1-4.765-1.766 4.108 4.108 0 0 1-.702-3.108 3.855 3.855 0 0 1 1.742-2.582l5.589-3.563a4.072 4.072 0 0 1 1.135-.499 4.44 4.44 0 0 1 4.765 1.767 4.109 4.109 0 0 1 .703 3.107 3.943 3.943 0 0 1-.134.522l-.105.321-.286-.21a7.204 7.204 0 0 0-2.187-1.093l-.208-.063.02-.207a1.255 1.255 0 0 0-.226-.831 1.337 1.337 0 0 0-1.435-.532 1.231 1.231 0 0 0-.343.15L8.62 9.368a1.162 1.162 0 0 0-.524.778 1.24 1.24 0 0 0 .211.937 1.338 1.338 0 0 0 1.435.533 1.235 1.235 0 0 0 .344-.151l2.132-1.36a4.067 4.067 0 0 1 1.135-.498 4.44 4.44 0 0 1 4.765 1.766 4.108 4.108 0 0 1 .702 3.108 3.857 3.857 0 0 1-1.742 2.583l-5.589 3.562a4.072 4.072 0 0 1-1.135.499m10.358-17.95C18.484-.015 14.082-.96 10.9 1.068L5.31 4.63a6.412 6.412 0 0 0-2.896 4.295 6.753 6.753 0 0 0 .666 4.336 6.43 6.43 0 0 0-.96 2.396 6.833 6.833 0 0 0 1.168 5.167c2.229 3.19 6.63 4.135 9.812 2.108l5.59-3.562a6.41 6.41 0 0 0 2.896-4.295 6.756 6.756 0 0 0-.665-4.336 6.429 6.429 0 0 0 .958-2.396 6.831 6.831 0 0 0-1.167-5.168Z"/></g>',swift:'<defs><clipPath id="__DSH_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__DSH_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#f05138" d="M126.33 34.06a39.32 39.32 0 00-.79-7.83 28.78 28.78 0 00-2.65-7.58 28.84 28.84 0 00-4.76-6.32 23.42 23.42 0 00-6.62-4.55 27.27 27.27 0 00-7.68-2.53c-2.65-.51-5.56-.51-8.21-.76H30.25a45.46 45.46 0 00-6.09.51 21.82 21.82 0 00-5.82 1.52c-.53.25-1.32.51-1.85.76a33.82 33.82 0 00-5 3.28c-.53.51-1.06.76-1.59 1.26a22.41 22.41 0 00-4.76 6.32 23.61 23.61 0 00-2.65 7.58 78.5 78.5 0 00-.79 7.83v60.39a39.32 39.32 0 00.79 7.83 28.78 28.78 0 002.65 7.58 28.84 28.84 0 004.76 6.32 23.42 23.42 0 006.62 4.55 27.27 27.27 0 007.68 2.53c2.65.51 5.56.51 8.21.76h63.22a45.08 45.08 0 008.21-.76 27.27 27.27 0 007.68-2.53 30.13 30.13 0 006.62-4.55 22.41 22.41 0 004.76-6.32 23.61 23.61 0 002.65-7.58 78.49 78.49 0 00.79-7.83V34.06z"/><path fill="#fefefe" d="M85 96.5c-11.11 6.13-26.38 6.76-41.75.47A64.53 64.53 0 0113.84 73a50 50 0 0010.85 6.32c15.87 7.1 31.73 6.61 42.9 0-15.9-11.66-29.4-26.82-39.46-39.2a43.47 43.47 0 01-5.29-6.82c12.16 10.61 31.5 24 38.38 27.79a271.77 271.77 0 01-27-32.34 266.8 266.8 0 0044.47 34.87c.71.38 1.26.7 1.7 1a32.7 32.7 0 001.21-3.51c3.71-12.89-.53-27.54-9.79-39.67C93.25 33.81 106 57.05 100.66 76.51c-.14.53-.29 1-.45 1.55l.19.22c10.59 12.63 7.68 26 6.35 23.5C101 91 90.37 94.33 85 96.5z"/></svg></g>',toml:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#F6EEEA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#9C4121" d="M.014 0h5.34v2.652H2.888v18.681h2.468V24H.015V0Zm17.622 5.049v2.78h-4.274v12.935h-3.008V7.83H6.059V5.05h11.577ZM23.986 24h-5.34v-2.652h2.467V2.667h-2.468V0h5.34v24Z"/></g>',typescript:'<defs><clipPath id="__DSH_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__DSH_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#fff" d="M22.67 47h99.67v73.67H22.67z"/><path data-name="original" fill="#007acc" d="M1.5 63.91v62.5h125v-125H1.5zm100.73-5a15.56 15.56 0 017.82 4.5 20.58 20.58 0 013 4c0 .16-5.4 3.81-8.69 5.85-.12.08-.6-.44-1.13-1.23a7.09 7.09 0 00-5.87-3.53c-3.79-.26-6.23 1.73-6.21 5a4.58 4.58 0 00.54 2.34c.83 1.73 2.38 2.76 7.24 4.86 8.95 3.85 12.78 6.39 15.16 10 2.66 4 3.25 10.46 1.45 15.24-2 5.2-6.9 8.73-13.83 9.9a38.32 38.32 0 01-9.52-.1 23 23 0 01-12.72-6.63c-1.15-1.27-3.39-4.58-3.25-4.82a9.34 9.34 0 011.15-.73L82 101l3.59-2.08.75 1.11a16.78 16.78 0 004.74 4.54c4 2.1 9.46 1.81 12.16-.62a5.43 5.43 0 00.69-6.92c-1-1.39-3-2.56-8.59-5-6.45-2.78-9.23-4.5-11.77-7.24a16.48 16.48 0 01-3.43-6.25 25 25 0 01-.22-8c1.33-6.23 6-10.58 12.82-11.87a31.66 31.66 0 019.49.26zm-29.34 5.24v5.12H56.66v46.23H45.15V69.26H28.88v-5a49.19 49.19 0 01.12-5.17C29.08 59 39 59 51 59h21.83z"/></svg></g>',vue:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#ECF8F3" stroke="#D5EAE0" stroke-width=".5"/><path fill="#41B883" d="M3.5 5h3.2l3.3 5.7L13.3 5h3.2L10 16z"/><path fill="#35495E" d="M6.7 5H9l1 1.8L11 5h2.3L10 10.7z"/>',wasm:'<defs><clipPath id="__DSH_CODE_ICON_INSTANCE__a"><rect x="1" y="1" width="18" height="18" rx="4"/></clipPath></defs><g clip-path="url(#__DSH_CODE_ICON_INSTANCE__a)"><svg x="1" y="1" width="18" height="18" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet"><path fill="#654ff0" d="M.223.222v127.555h127.555V.222H78.594c.014.227.036.455.036.686 0 8.08-6.55 14.626-14.63 14.626-8.078 0-14.625-6.546-14.625-14.626 0-.231.022-.459.031-.686zm29.595 68.746h8.445l5.782 30.738h.107l6.968-30.738h7.908l6.265 31.119h.106l6.597-31.119h8.284l-10.765 45.156H61.12l-6.213-30.738H54.8l-6.7 30.738h-8.557zm59.994 0h13.334l13.284 45.156h-8.77l-2.879-10.051H89.59l-2.212 10.05h-8.5ZM94.895 80.1l-3.684 16.57h11.473L98.448 80.1Z"/></svg></g>',xml:'<rect x="1" y="1" width="18" height="18" rx="4" fill="#EAF3FA" stroke="#DDE2E8" stroke-width=".5"/><g transform="translate(3 3) scale(.5833333333)"><path fill="#005FAD" d="M4.345 7.053c-.495.02-.44.725-.536 1.081-.157.583-.3 1.325-.347 1.926-.046.585-.008 1.127.066 1.719.058.46.191.767.07.89-.108.11-3.216 2.962-3.466 3.123-.26.169-.08.584.069.817.157.246.23.373.557.33.306-.042.405-.409.583-.606.228-.252 2.421-2.401 2.616-2.401.077.544.367 1.064.67 1.513.15.222.314.439.505.629.175.175.4.317.587.45.44.024.795-.301.35-.67-.17-.14-.735-.971-.927-1.43-.18-.43-.574-1.076-.146-1.428 1.494-1.23 3.72-2.262 4.247-2.313-.257 1.024-1.356 3.048-1.757 4.012-.14.333-.231.732-.185 1.094.055.434.383.774.587.806.417-.023.7-.387.946-.645.343-.357.634-.685.974-1.043.339-.356.672-.731.971-1.07.184-.207.674-.713.963-.713-.11.693-.716 1.552-.839 2.254-.125.716.531 1.596 1.217.956.623-.58 1.255-1.129 1.867-1.72.217-.208.175.037.224.242.05.208.176.91.275 1.1.18.346.496.592.897.598.362.006.727-.161.982-.414.19-.187.513-.699.154-.832-.23-.086-.217-.176-.495-.129-.172.029-.362.074-.507.179-.367-.003-.381-.89-.324-1.161.068-.327.207-.659.185-.998-.026-.418-.478-.69-.582-.72-.156-.076-.253.023-.458.212-.173.161-.363.332-.535.495-.34.322-.768.813-.942.813.305-.705.708-2.652-.643-2.48-.563.071-.95.377-1.394.71-.29.28-.683.641-.936.87-.236.216-.371.404-.496.404.132-.747 1.685-3.167.885-3.853-.158-.136-.313-.325-.515-.349a4.637 4.637 0 0 0-.833.19c-.565.18-2.78 1.28-4.19 2.289-.131.094-.214-.085-.231-.29-.087-1.058.199-2.19.496-3.188.208-.696-.557-1.225-.659-1.249zm18.177.874c-.166.364-.2.894-.248 1.319a24.307 24.307 0 0 0-1.246-.115c.238.296.691.588 1.056.724-.048.366-.434.67-.599 1.021.458-.127.676-.47.989-.821.362.22.791.627 1.26.636-.177-.376-.334-.695-.658-.966.269-.175.717-.362.924-.633-.345-.074-.718-.093-1.052-.015-.258-.284-.3-.772-.426-1.15zm-2.92.079c-.23.02-.613.49-.832.773-.807 1.039-1.542 3.15-1.661 3.542-.363 1.195-.502 2.672.28 3.722.456.612 1.258.66 2.041.434.405-.116.812-.406.95-.723.114-.263.174-.753-.404-.38-.224.145-.634.304-1.37.291-.247-.004-.651-.357-.76-.722-.192-.595-.11-1.393-.11-1.393.167-1.028.642-2.146 1.061-3.076.163-.36.658-1.259.842-1.546 0 0 .239-.373.131-.77-.031-.116-.091-.16-.168-.152zm3.072 2.976c-.12.264-.144.648-.18.956-.274-.031-.63-.066-.904-.083.172.215.501.426.766.525-.034.265-.314.486-.434.741.332-.092.49-.34.717-.596.263.16.575.456.914.462-.127-.273-.242-.504-.477-.701.195-.127.52-.262.67-.46a1.77 1.77 0 0 0-.763-.01c-.187-.206-.217-.56-.309-.834zm-1.123 2.422c-.083.183-.1.449-.125.662a12.6 12.6 0 0 0-.624-.058c.119.148.346.295.53.363-.025.184-.219.336-.301.513.23-.064.339-.236.496-.413.181.11.397.316.632.32-.088-.19-.168-.349-.33-.485.135-.087.36-.181.463-.317a1.22 1.22 0 0 0-.527-.008c-.13-.142-.151-.387-.214-.576z"/></g>',yaml:`<rect x="1" y="1" width="18" height="18" rx="4" fill="#FCEEEF" stroke="#F0D8DB" stroke-width=".5"/><svg x="2.75" y="2.75" width="14.5" height="14.5" viewBox="0 0 128 128" preserveAspectRatio="xMidYMid meet">
|
|
132
132
|
<polygon transform="matrix(.24805 0 0 .24805 .5 5.6287)" points="87.702 137.67 0 0 63.25 0 119.02 88.646 175.24 0 235.79 0 143.98 137.67 143.98 224.95 87.702 224.95"/>
|
|
133
133
|
<path d="m82.428 49.149h-25.266l-5.1388 12.408h-11.188l23.659-55.798h11.444l22.699 55.798h-11.956l-4.2525-12.408zm-4.197-11.14-7.7455-20.476-8.6412 20.476z" fill="#cb171e"/>
|
|
134
134
|
<polygon transform="matrix(.24805 0 0 .24805 .5 5.6287)" points="87.701 250.18 87.701 470.65 135 470.65 135 318.57 184.51 420.79 221.74 420.79 272.94 314.98 272.94 470.6 318.32 470.6 318.32 250.18 256.36 250.18 201.38 349.88 149.02 250.18"/>
|