local-operator-ui 0.34.47 → 0.34.49
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/out/main/index.js +2259 -47
- package/out/preload/index.js +1 -0
- package/out/renderer/assets/{_basePickBy-B2JiaFKi.js → _basePickBy-Coq1U1Is.js} +1 -1
- package/out/renderer/assets/{_baseUniq-CfpDxOYw.js → _baseUniq-CN5nbj15.js} +1 -1
- package/out/renderer/assets/agent-details-page-BOHG1UL8.js +6 -0
- package/out/renderer/assets/agent-hub-page-lDe6m3U_.js +11 -0
- package/out/renderer/assets/agents-page-CS2ctxLL.js +7 -0
- package/out/renderer/assets/{arc-K65ZzfoN.js → arc-CyEksofH.js} +1 -1
- package/out/renderer/assets/architectureDiagram-IEHRJDOE-o2ZHU4e3.js +36 -0
- package/out/renderer/assets/{blockDiagram-JOT3LUYC-DpImr7tl.js → blockDiagram-JOT3LUYC-B0Yyp4_C.js} +1 -1
- package/out/renderer/assets/{book-open-BEOtYKZe.js → book-open-CEakesEi.js} +1 -1
- package/out/renderer/assets/browser-page-CjbkyuiR.js +1 -0
- package/out/renderer/assets/browser-webauthn-prompt-Dq82YVua.js +1 -0
- package/out/renderer/assets/{c4Diagram-VJAJSXHY-CD9xVR0f.js → c4Diagram-VJAJSXHY-DLUNsMlf.js} +1 -1
- package/out/renderer/assets/channel-BrqzOdfK.js +1 -0
- package/out/renderer/assets/{chunk-4BMEZGHF-CTvc3b4C.js → chunk-4BMEZGHF-TEJuQZ1Y.js} +1 -1
- package/out/renderer/assets/{chunk-A2AXSNBT-ByqThlbf.js → chunk-A2AXSNBT-B_dFl8CN.js} +1 -1
- package/out/renderer/assets/{chunk-AEK57VVT-DD6OqDr0.js → chunk-AEK57VVT-BZoQ5TO6.js} +1 -1
- package/out/renderer/assets/{chunk-D6G4REZN-DyRn0cWl.js → chunk-D6G4REZN-D1bYNZJL.js} +1 -1
- package/out/renderer/assets/{chunk-RZ5BOZE2-CnZV3WTJ.js → chunk-RZ5BOZE2-DbkFvpUt.js} +1 -1
- package/out/renderer/assets/{chunk-XZIHB7SX-DolFB-S0.js → chunk-XZIHB7SX-C0c85hT-.js} +1 -1
- package/out/renderer/assets/classDiagram-GIVACNV2-C4Q7B2pX.js +1 -0
- package/out/renderer/assets/classDiagram-v2-COTLJTTW-C4Q7B2pX.js +1 -0
- package/out/renderer/assets/clone-T21nSsyt.js +1 -0
- package/out/renderer/assets/{console-mirror-DpL-JwpC.js → console-mirror-DDhXu5hQ.js} +2 -2
- package/out/renderer/assets/consoleCapture-DomsRGWw.js +1 -0
- package/out/renderer/assets/{conversation-input-sync-BX8IVirL.js → conversation-input-sync-B3FVv0Mq.js} +257 -258
- package/out/renderer/assets/dagre-OKDRZEBW-CAb1XIuS.js +4 -0
- package/out/renderer/assets/diagram-SSKATNLV-CAh7vH7L.js +43 -0
- package/out/renderer/assets/diagram-VNBRO52H-CU4FF4Qr.js +24 -0
- package/out/renderer/assets/en-US-CHJkXXr4.js +1 -0
- package/out/renderer/assets/{erDiagram-Q7BY3M3F-CKncNCh2.js → erDiagram-Q7BY3M3F-CbnNz_kj.js} +1 -1
- package/out/renderer/assets/error-boundary-etstfCzN.js +126 -0
- package/out/renderer/assets/{flowDiagram-4HSFHLVR-DxgK_2s-.js → flowDiagram-4HSFHLVR-BB6aJVKV.js} +1 -1
- package/out/renderer/assets/{format-CZUObkkr.js → format-esAOn2VS.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-APWFNJXF-C26kU1-9.js → ganttDiagram-APWFNJXF-CtOJM4d7.js} +1 -1
- package/out/renderer/assets/gitGraphDiagram-7IBYFJ6S-DvrevAjH.js +65 -0
- package/out/renderer/assets/{graph-CnXCW8BP.js → graph-DOR9Sgwh.js} +1 -1
- package/out/renderer/assets/index-5vl5RXGq.js +1 -0
- package/out/renderer/assets/index-9_-S4Njy.js +809 -0
- package/out/renderer/assets/index-CZ5usiad.js +7 -0
- package/out/renderer/assets/index-CftawgM9.js +57 -0
- package/out/renderer/assets/index-VwZaZzVv.css +1 -0
- package/out/renderer/assets/infoDiagram-PH2N3AL5-CTd32x3B.js +2 -0
- package/out/renderer/assets/installer-CjbOLDvI.js +1 -0
- package/out/renderer/assets/{journeyDiagram-U35MCT3I-C-Aue1NR.js → journeyDiagram-U35MCT3I-2BsbTilL.js} +1 -1
- package/out/renderer/assets/{kanban-definition-NDS4AKOZ-DhgXwdEM.js → kanban-definition-NDS4AKOZ-DoYAcNl0.js} +1 -1
- package/out/renderer/assets/{layout-Dw8q0WZh.js → layout-DSk91znb.js} +1 -1
- package/out/renderer/assets/legacy-agents-page-BGSPncrN.js +33 -0
- package/out/renderer/assets/{mermaid.core-CLdsX7Rp.js → mermaid.core-BqK7XNWH.js} +5 -5
- package/out/renderer/assets/mesh-page-BxEA5Aan.js +1 -0
- package/out/renderer/assets/mindmap-definition-ALO5MXBD-HV-ovM7g.js +95 -0
- package/out/renderer/assets/mini-Bco2ITLo.js +1 -0
- package/out/renderer/assets/{notebook-pen-B5Stfimb.js → notebook-pen-DsGb6zKu.js} +1 -1
- package/out/renderer/assets/org-access-B_xqEqnd.js +1 -0
- package/out/renderer/assets/{org-surface-gate-i_SGPHN5.js → org-surface-gate-D4SilXIt.js} +1 -1
- package/out/renderer/assets/{page-header-BR-fmx4f.js → page-header-DZ04Whs5.js} +1 -1
- package/out/renderer/assets/{parseISO-CZfAC2_J.js → parseISO-BHJWTxrA.js} +1 -1
- package/out/renderer/assets/{pieDiagram-IB7DONF6-DjDH1mVr.js → pieDiagram-IB7DONF6-BArx4Jik.js} +1 -1
- package/out/renderer/assets/{projects-page-CGRUr8ls.js → projects-page-DABVK4s_.js} +14 -14
- package/out/renderer/assets/publication-validation-BmkCCv-H.js +1 -0
- package/out/renderer/assets/{quadrantDiagram-7GDLP6J5-Ba5XUz4h.js → quadrantDiagram-7GDLP6J5-Dmmo_urD.js} +1 -1
- package/out/renderer/assets/{radar-MK3ICKWK-eQRm6qEE.js → radar-MK3ICKWK-D8Sc1Ajv.js} +1 -1
- package/out/renderer/assets/radient-auth-buttons-BmQt2D1Y.js +1 -0
- package/out/renderer/assets/{requirementDiagram-KVF5MWMF-BSpyCNos.js → requirementDiagram-KVF5MWMF-BU04-wPA.js} +1 -1
- package/out/renderer/assets/sankeyDiagram-QLVOVGJD-CIQO7kso.js +10 -0
- package/out/renderer/assets/schedules-page-DllGJFS2.js +115 -0
- package/out/renderer/assets/{sequenceDiagram-X6HHIX6F-DdHVib_S.js → sequenceDiagram-X6HHIX6F-BN2soxj_.js} +1 -1
- package/out/renderer/assets/settings-page-DKzDa5P5.js +292 -0
- package/out/renderer/assets/stateDiagram-DGXRK772-bGNaZvy4.js +1 -0
- package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-CNVQhmQM.js +1 -0
- package/out/renderer/assets/{timeline-definition-BDJGKUSR-5dsF-6I0.js → timeline-definition-BDJGKUSR-DmM_eb2d.js} +1 -1
- package/out/renderer/assets/ui-preferences-store-Byw1dJtt.js +1 -0
- package/out/renderer/assets/use-download-agent-mutation-CXv_tRQE.js +61 -0
- package/out/renderer/assets/{use-memberships-query-BMGVy3RO.js → use-memberships-query-C4IVeIBl.js} +1 -1
- package/out/renderer/assets/{use-session-snapshot-D3QghcPD.js → use-session-snapshot-CrOrWGgL.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-VJFVF3MP-DmEwPPnE.js → xychartDiagram-VJFVF3MP-CbbQZrKE.js} +1 -1
- package/out/renderer/console-capture.html +5 -5
- package/out/renderer/index.html +7 -7
- package/out/renderer/installer.html +4 -4
- package/out/renderer/mini.html +7 -7
- package/package.json +3 -5
- package/out/renderer/assets/agent-details-page-C0GdJMfq.js +0 -6
- package/out/renderer/assets/agent-hub-page-C6ze_xjQ.js +0 -11
- package/out/renderer/assets/agents-page-DSNLtN_J.js +0 -7
- package/out/renderer/assets/architectureDiagram-IEHRJDOE-CLJdV8y-.js +0 -36
- package/out/renderer/assets/browser-page-Hj-3V4SP.js +0 -1
- package/out/renderer/assets/browser-webauthn-prompt-4jHz_1RY.js +0 -1
- package/out/renderer/assets/channel-CjH9_X6K.js +0 -1
- package/out/renderer/assets/classDiagram-GIVACNV2-DNFX9Bxc.js +0 -1
- package/out/renderer/assets/classDiagram-v2-COTLJTTW-DNFX9Bxc.js +0 -1
- package/out/renderer/assets/clone-Dh-7KwYI.js +0 -1
- package/out/renderer/assets/consoleCapture-DD1Sq_ph.js +0 -1
- package/out/renderer/assets/dagre-OKDRZEBW-CDaLTqSD.js +0 -4
- package/out/renderer/assets/diagram-SSKATNLV-CT01eufZ.js +0 -43
- package/out/renderer/assets/diagram-VNBRO52H-Dm95zJ6Z.js +0 -24
- package/out/renderer/assets/en-US-BcB1DWxG.js +0 -1
- package/out/renderer/assets/error-boundary-BDLNfQKz.js +0 -126
- package/out/renderer/assets/gitGraphDiagram-7IBYFJ6S-B22ejsPk.js +0 -65
- package/out/renderer/assets/index-Be9pTy7F.js +0 -7
- package/out/renderer/assets/index-CnQsclLj.js +0 -809
- package/out/renderer/assets/index-DF_hRerL.js +0 -55
- package/out/renderer/assets/index-Dk4-Px6P.css +0 -1
- package/out/renderer/assets/index-UE_QEAqr.js +0 -1
- package/out/renderer/assets/infoDiagram-PH2N3AL5-DJZU3P7J.js +0 -2
- package/out/renderer/assets/installer-CIu909RT.js +0 -1
- package/out/renderer/assets/legacy-agents-page-u84wTmRV.js +0 -33
- package/out/renderer/assets/mesh-page-Dys9-2sY.js +0 -1
- package/out/renderer/assets/messages-Yrm2FT2V.js +0 -3
- package/out/renderer/assets/mindmap-definition-ALO5MXBD-BjBiqabY.js +0 -95
- package/out/renderer/assets/mini-BXXRy4rW.js +0 -1
- package/out/renderer/assets/org-access-CyjYN726.js +0 -1
- package/out/renderer/assets/publication-validation-B4k6VAFZ.js +0 -1
- package/out/renderer/assets/radient-auth-buttons-BW_zi2lF.js +0 -1
- package/out/renderer/assets/sankeyDiagram-QLVOVGJD-C-fzkOnd.js +0 -10
- package/out/renderer/assets/schedules-page-CiSL5P8q.js +0 -115
- package/out/renderer/assets/settings-page-C11l7qyA.js +0 -292
- package/out/renderer/assets/stateDiagram-DGXRK772-DEwuWkNd.js +0 -1
- package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-DRPVtafh.js +0 -1
- package/out/renderer/assets/use-download-agent-mutation-DGGt-uXR.js +0 -61
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{b as Yt,D as Ui}from"./index-DF_hRerL.js";var I;(function(e){e.assertEqual=o=>o;function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const a={};for(const r of o)a[r]=r;return a},e.getValidEnumValues=o=>{const a=e.objectKeys(o).filter(l=>typeof o[o[l]]!="number"),r={};for(const l of a)r[l]=o[l];return e.objectValues(r)},e.objectValues=o=>e.objectKeys(o).map(function(a){return o[a]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const a=[];for(const r in o)Object.prototype.hasOwnProperty.call(o,r)&&a.push(r);return a},e.find=(o,a)=>{for(const r of o)if(a(r))return r},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&isFinite(o)&&Math.floor(o)===o;function i(o,a=" | "){return o.map(r=>typeof r=="string"?`'${r}'`:r).join(a)}e.joinValues=i,e.jsonStringifyReplacer=(o,a)=>typeof a=="bigint"?a.toString():a})(I||(I={}));var Et;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Et||(Et={}));const g=I.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),z=e=>{switch(typeof e){case"undefined":return g.undefined;case"string":return g.string;case"number":return isNaN(e)?g.nan:g.number;case"boolean":return g.boolean;case"function":return g.function;case"bigint":return g.bigint;case"symbol":return g.symbol;case"object":return Array.isArray(e)?g.array:e===null?g.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?g.promise:typeof Map<"u"&&e instanceof Map?g.map:typeof Set<"u"&&e instanceof Set?g.set:typeof Date<"u"&&e instanceof Date?g.date:g.object;default:return g.unknown}},h=I.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),$i=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class L extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(a){return a.message},i={_errors:[]},o=a=>{for(const r of a.issues)if(r.code==="invalid_union")r.unionErrors.map(o);else if(r.code==="invalid_return_type")o(r.returnTypeError);else if(r.code==="invalid_arguments")o(r.argumentsError);else if(r.path.length===0)i._errors.push(n(r));else{let l=i,c=0;for(;c<r.path.length;){const u=r.path[c];c===r.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(n(r))):l[u]=l[u]||{_errors:[]},l=l[u],c++}}};return o(this),i}static assert(t){if(!(t instanceof L))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,I.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},i=[];for(const o of this.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):i.push(t(o));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}}L.create=e=>new L(e);const de=(e,t)=>{let n;switch(e.code){case h.invalid_type:e.received===g.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case h.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,I.jsonStringifyReplacer)}`;break;case h.unrecognized_keys:n=`Unrecognized key(s) in object: ${I.joinValues(e.keys,", ")}`;break;case h.invalid_union:n="Invalid input";break;case h.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${I.joinValues(e.options)}`;break;case h.invalid_enum_value:n=`Invalid enum value. Expected ${I.joinValues(e.options)}, received '${e.received}'`;break;case h.invalid_arguments:n="Invalid function arguments";break;case h.invalid_return_type:n="Invalid function return type";break;case h.invalid_date:n="Invalid date";break;case h.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:I.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case h.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case h.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case h.custom:n="Invalid input";break;case h.invalid_intersection_types:n="Intersection results could not be merged";break;case h.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case h.not_finite:n="Number must be finite";break;default:n=t.defaultError,I.assertNever(e)}return{message:n}};let Gn=de;function Fi(e){Gn=e}function Xe(){return Gn}const Ke=e=>{const{data:t,path:n,errorMaps:i,issueData:o}=e,a=[...n,...o.path||[]],r={...o,path:a};if(o.message!==void 0)return{...o,path:a,message:o.message};let l="";const c=i.filter(u=>!!u).slice().reverse();for(const u of c)l=u(r,{data:t,defaultError:l}).message;return{...o,path:a,message:l}},Gi=[];function p(e,t){const n=Xe(),i=Ke({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===de?void 0:de].filter(o=>!!o)});e.common.issues.push(i)}class C{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const i=[];for(const o of n){if(o.status==="aborted")return k;o.status==="dirty"&&t.dirty(),i.push(o.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){const i=[];for(const o of n){const a=await o.key,r=await o.value;i.push({key:a,value:r})}return C.mergeObjectSync(t,i)}static mergeObjectSync(t,n){const i={};for(const o of n){const{key:a,value:r}=o;if(a.status==="aborted"||r.status==="aborted")return k;a.status==="dirty"&&t.dirty(),r.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof r.value<"u"||o.alwaysSet)&&(i[a.value]=r.value)}return{status:t.value,value:i}}}const k=Object.freeze({status:"aborted"}),le=e=>({status:"dirty",value:e}),A=e=>({status:"valid",value:e}),Tt=e=>e.status==="aborted",It=e=>e.status==="dirty",ne=e=>e.status==="valid",ke=e=>typeof Promise<"u"&&e instanceof Promise;function Je(e,t,n,i){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Zn(e,t,n,i,o){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var b;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(b||(b={}));var ve,ye;class U{constructor(t,n,i,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=o}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Xt=(e,t)=>{if(ne(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new L(e.common.issues);return this._error=n,this._error}}};function w(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:o}=e;if(t&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(r,l)=>{var c,u;const{message:d}=e;return r.code==="invalid_enum_value"?{message:d??l.defaultError}:typeof l.data>"u"?{message:(c=d??i)!==null&&c!==void 0?c:l.defaultError}:r.code!=="invalid_type"?{message:l.defaultError}:{message:(u=d??n)!==null&&u!==void 0?u:l.defaultError}},description:o}}class S{get description(){return this._def.description}_getType(t){return z(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:z(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new C,ctx:{common:t.parent.common,data:t.data,parsedType:z(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ke(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){var i;const o={common:{issues:[],async:(i=n?.async)!==null&&i!==void 0?i:!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:z(t)},a=this._parseSync({data:t,path:o.path,parent:o});return Xt(o,a)}"~validate"(t){var n,i;const o={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:z(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:o});return ne(a)?{value:a.value}:{issues:o.common.issues}}catch(a){!((i=(n=a?.message)===null||n===void 0?void 0:n.toLowerCase())===null||i===void 0)&&i.includes("encountered")&&(this["~standard"].async=!0),o.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:o}).then(a=>ne(a)?{value:a.value}:{issues:o.common.issues})}async parseAsync(t,n){const i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){const i={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:z(t)},o=this._parse({data:t,path:i.path,parent:i}),a=await(ke(o)?o:Promise.resolve(o));return Xt(i,a)}refine(t,n){const i=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,a)=>{const r=t(o),l=()=>a.addIssue({code:h.custom,...i(o)});return typeof Promise<"u"&&r instanceof Promise?r.then(c=>c?!0:(l(),!1)):r?!0:(l(),!1)})}refinement(t,n){return this._refinement((i,o)=>t(i)?!0:(o.addIssue(typeof n=="function"?n(i,o):n),!1))}_refinement(t){return new D({schema:this,typeName:_.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return H.create(this,this._def)}nullable(){return Q.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return j.create(this)}promise(){return pe.create(this,this._def)}or(t){return Te.create([this,t],this._def)}and(t){return Ie.create(this,t,this._def)}transform(t){return new D({...w(this._def),schema:this,typeName:_.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Oe({...w(this._def),innerType:this,defaultValue:n,typeName:_.ZodDefault})}brand(){return new Ut({typeName:_.ZodBranded,type:this,...w(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ae({...w(this._def),innerType:this,catchValue:n,typeName:_.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Me.create(this,t)}readonly(){return Ne.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Zi=/^c[^\s-]{8,}$/i,zi=/^[0-9a-z]+$/,Vi=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Wi=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Yi=/^[a-z0-9_-]{21}$/i,Xi=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Ki=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Ji=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Qi="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let dt;const qi=/^(?:(?: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])$/,es=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,ts=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ns=/^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,is=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ss=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,zn="((\\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])))",os=new RegExp(`^${zn}$`);function Vn(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function as(e){return new RegExp(`^${Vn(e)}$`)}function Wn(e){let t=`${zn}T${Vn(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function rs(e,t){return!!((t==="v4"||!t)&&qi.test(e)||(t==="v6"||!t)&&ts.test(e))}function ls(e,t){if(!Xi.test(e))return!1;try{const[n]=e.split("."),i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(i));return!(typeof o!="object"||o===null||!o.typ||!o.alg||t&&o.alg!==t)}catch{return!1}}function cs(e,t){return!!((t==="v4"||!t)&&es.test(e)||(t==="v6"||!t)&&ns.test(e))}class B extends S{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==g.string){const a=this._getOrReturnCtx(t);return p(a,{code:h.invalid_type,expected:g.string,received:a.parsedType}),k}const i=new C;let o;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(o=this._getOrReturnCtx(t,o),p(o,{code:h.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),i.dirty());else if(a.kind==="max")t.data.length>a.value&&(o=this._getOrReturnCtx(t,o),p(o,{code:h.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),i.dirty());else if(a.kind==="length"){const r=t.data.length>a.value,l=t.data.length<a.value;(r||l)&&(o=this._getOrReturnCtx(t,o),r?p(o,{code:h.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):l&&p(o,{code:h.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),i.dirty())}else if(a.kind==="email")Ji.test(t.data)||(o=this._getOrReturnCtx(t,o),p(o,{validation:"email",code:h.invalid_string,message:a.message}),i.dirty());else if(a.kind==="emoji")dt||(dt=new RegExp(Qi,"u")),dt.test(t.data)||(o=this._getOrReturnCtx(t,o),p(o,{validation:"emoji",code:h.invalid_string,message:a.message}),i.dirty());else if(a.kind==="uuid")Wi.test(t.data)||(o=this._getOrReturnCtx(t,o),p(o,{validation:"uuid",code:h.invalid_string,message:a.message}),i.dirty());else if(a.kind==="nanoid")Yi.test(t.data)||(o=this._getOrReturnCtx(t,o),p(o,{validation:"nanoid",code:h.invalid_string,message:a.message}),i.dirty());else if(a.kind==="cuid")Zi.test(t.data)||(o=this._getOrReturnCtx(t,o),p(o,{validation:"cuid",code:h.invalid_string,message:a.message}),i.dirty());else if(a.kind==="cuid2")zi.test(t.data)||(o=this._getOrReturnCtx(t,o),p(o,{validation:"cuid2",code:h.invalid_string,message:a.message}),i.dirty());else if(a.kind==="ulid")Vi.test(t.data)||(o=this._getOrReturnCtx(t,o),p(o,{validation:"ulid",code:h.invalid_string,message:a.message}),i.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),p(o,{validation:"url",code:h.invalid_string,message:a.message}),i.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),p(o,{validation:"regex",code:h.invalid_string,message:a.message}),i.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(o=this._getOrReturnCtx(t,o),p(o,{code:h.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),i.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(o=this._getOrReturnCtx(t,o),p(o,{code:h.invalid_string,validation:{startsWith:a.value},message:a.message}),i.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(o=this._getOrReturnCtx(t,o),p(o,{code:h.invalid_string,validation:{endsWith:a.value},message:a.message}),i.dirty()):a.kind==="datetime"?Wn(a).test(t.data)||(o=this._getOrReturnCtx(t,o),p(o,{code:h.invalid_string,validation:"datetime",message:a.message}),i.dirty()):a.kind==="date"?os.test(t.data)||(o=this._getOrReturnCtx(t,o),p(o,{code:h.invalid_string,validation:"date",message:a.message}),i.dirty()):a.kind==="time"?as(a).test(t.data)||(o=this._getOrReturnCtx(t,o),p(o,{code:h.invalid_string,validation:"time",message:a.message}),i.dirty()):a.kind==="duration"?Ki.test(t.data)||(o=this._getOrReturnCtx(t,o),p(o,{validation:"duration",code:h.invalid_string,message:a.message}),i.dirty()):a.kind==="ip"?rs(t.data,a.version)||(o=this._getOrReturnCtx(t,o),p(o,{validation:"ip",code:h.invalid_string,message:a.message}),i.dirty()):a.kind==="jwt"?ls(t.data,a.alg)||(o=this._getOrReturnCtx(t,o),p(o,{validation:"jwt",code:h.invalid_string,message:a.message}),i.dirty()):a.kind==="cidr"?cs(t.data,a.version)||(o=this._getOrReturnCtx(t,o),p(o,{validation:"cidr",code:h.invalid_string,message:a.message}),i.dirty()):a.kind==="base64"?is.test(t.data)||(o=this._getOrReturnCtx(t,o),p(o,{validation:"base64",code:h.invalid_string,message:a.message}),i.dirty()):a.kind==="base64url"?ss.test(t.data)||(o=this._getOrReturnCtx(t,o),p(o,{validation:"base64url",code:h.invalid_string,message:a.message}),i.dirty()):I.assertNever(a);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(o=>t.test(o),{validation:n,code:h.invalid_string,...b.errToObj(i)})}_addCheck(t){return new B({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...b.errToObj(t)})}url(t){return this._addCheck({kind:"url",...b.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...b.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...b.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...b.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...b.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...b.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...b.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...b.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...b.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...b.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...b.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...b.errToObj(t)})}datetime(t){var n,i;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:(n=t?.offset)!==null&&n!==void 0?n:!1,local:(i=t?.local)!==null&&i!==void 0?i:!1,...b.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...b.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...b.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...b.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...b.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...b.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...b.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...b.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...b.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...b.errToObj(n)})}nonempty(t){return this.min(1,b.errToObj(t))}trim(){return new B({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new B({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new B({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}B.create=e=>{var t;return new B({checks:[],typeName:_.ZodString,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...w(e)})};function us(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,o=n>i?n:i,a=parseInt(e.toFixed(o).replace(".","")),r=parseInt(t.toFixed(o).replace(".",""));return a%r/Math.pow(10,o)}class X extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==g.number){const a=this._getOrReturnCtx(t);return p(a,{code:h.invalid_type,expected:g.number,received:a.parsedType}),k}let i;const o=new C;for(const a of this._def.checks)a.kind==="int"?I.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),p(i,{code:h.invalid_type,expected:"integer",received:"float",message:a.message}),o.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(i=this._getOrReturnCtx(t,i),p(i,{code:h.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(i=this._getOrReturnCtx(t,i),p(i,{code:h.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),o.dirty()):a.kind==="multipleOf"?us(t.data,a.value)!==0&&(i=this._getOrReturnCtx(t,i),p(i,{code:h.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),p(i,{code:h.not_finite,message:a.message}),o.dirty()):I.assertNever(a);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,b.toString(n))}gt(t,n){return this.setLimit("min",t,!1,b.toString(n))}lte(t,n){return this.setLimit("max",t,!0,b.toString(n))}lt(t,n){return this.setLimit("max",t,!1,b.toString(n))}setLimit(t,n,i,o){return new X({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:b.toString(o)}]})}_addCheck(t){return new X({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:b.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:b.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:b.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:b.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:b.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:b.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:b.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:b.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:b.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&I.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}}X.create=e=>new X({checks:[],typeName:_.ZodNumber,coerce:e?.coerce||!1,...w(e)});class K extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==g.bigint)return this._getInvalidInput(t);let i;const o=new C;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(i=this._getOrReturnCtx(t,i),p(i,{code:h.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(i=this._getOrReturnCtx(t,i),p(i,{code:h.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),o.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),p(i,{code:h.not_multiple_of,multipleOf:a.value,message:a.message}),o.dirty()):I.assertNever(a);return{status:o.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return p(n,{code:h.invalid_type,expected:g.bigint,received:n.parsedType}),k}gte(t,n){return this.setLimit("min",t,!0,b.toString(n))}gt(t,n){return this.setLimit("min",t,!1,b.toString(n))}lte(t,n){return this.setLimit("max",t,!0,b.toString(n))}lt(t,n){return this.setLimit("max",t,!1,b.toString(n))}setLimit(t,n,i,o){return new K({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:b.toString(o)}]})}_addCheck(t){return new K({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:b.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:b.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:b.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:b.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:b.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}K.create=e=>{var t;return new K({checks:[],typeName:_.ZodBigInt,coerce:(t=e?.coerce)!==null&&t!==void 0?t:!1,...w(e)})};class we extends S{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==g.boolean){const i=this._getOrReturnCtx(t);return p(i,{code:h.invalid_type,expected:g.boolean,received:i.parsedType}),k}return A(t.data)}}we.create=e=>new we({typeName:_.ZodBoolean,coerce:e?.coerce||!1,...w(e)});class ie extends S{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==g.date){const a=this._getOrReturnCtx(t);return p(a,{code:h.invalid_type,expected:g.date,received:a.parsedType}),k}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return p(a,{code:h.invalid_date}),k}const i=new C;let o;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(o=this._getOrReturnCtx(t,o),p(o,{code:h.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),i.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(o=this._getOrReturnCtx(t,o),p(o,{code:h.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),i.dirty()):I.assertNever(a);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ie({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:b.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:b.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}ie.create=e=>new ie({checks:[],coerce:e?.coerce||!1,typeName:_.ZodDate,...w(e)});class Qe extends S{_parse(t){if(this._getType(t)!==g.symbol){const i=this._getOrReturnCtx(t);return p(i,{code:h.invalid_type,expected:g.symbol,received:i.parsedType}),k}return A(t.data)}}Qe.create=e=>new Qe({typeName:_.ZodSymbol,...w(e)});class Se extends S{_parse(t){if(this._getType(t)!==g.undefined){const i=this._getOrReturnCtx(t);return p(i,{code:h.invalid_type,expected:g.undefined,received:i.parsedType}),k}return A(t.data)}}Se.create=e=>new Se({typeName:_.ZodUndefined,...w(e)});class Ee extends S{_parse(t){if(this._getType(t)!==g.null){const i=this._getOrReturnCtx(t);return p(i,{code:h.invalid_type,expected:g.null,received:i.parsedType}),k}return A(t.data)}}Ee.create=e=>new Ee({typeName:_.ZodNull,...w(e)});class he extends S{constructor(){super(...arguments),this._any=!0}_parse(t){return A(t.data)}}he.create=e=>new he({typeName:_.ZodAny,...w(e)});class te extends S{constructor(){super(...arguments),this._unknown=!0}_parse(t){return A(t.data)}}te.create=e=>new te({typeName:_.ZodUnknown,...w(e)});class V extends S{_parse(t){const n=this._getOrReturnCtx(t);return p(n,{code:h.invalid_type,expected:g.never,received:n.parsedType}),k}}V.create=e=>new V({typeName:_.ZodNever,...w(e)});class qe extends S{_parse(t){if(this._getType(t)!==g.undefined){const i=this._getOrReturnCtx(t);return p(i,{code:h.invalid_type,expected:g.void,received:i.parsedType}),k}return A(t.data)}}qe.create=e=>new qe({typeName:_.ZodVoid,...w(e)});class j extends S{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),o=this._def;if(n.parsedType!==g.array)return p(n,{code:h.invalid_type,expected:g.array,received:n.parsedType}),k;if(o.exactLength!==null){const r=n.data.length>o.exactLength.value,l=n.data.length<o.exactLength.value;(r||l)&&(p(n,{code:r?h.too_big:h.too_small,minimum:l?o.exactLength.value:void 0,maximum:r?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),i.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(p(n,{code:h.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),i.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(p(n,{code:h.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((r,l)=>o.type._parseAsync(new U(n,r,n.path,l)))).then(r=>C.mergeArray(i,r));const a=[...n.data].map((r,l)=>o.type._parseSync(new U(n,r,n.path,l)));return C.mergeArray(i,a)}get element(){return this._def.type}min(t,n){return new j({...this._def,minLength:{value:t,message:b.toString(n)}})}max(t,n){return new j({...this._def,maxLength:{value:t,message:b.toString(n)}})}length(t,n){return new j({...this._def,exactLength:{value:t,message:b.toString(n)}})}nonempty(t){return this.min(1,t)}}j.create=(e,t)=>new j({type:e,minLength:null,maxLength:null,exactLength:null,typeName:_.ZodArray,...w(t)});function re(e){if(e instanceof x){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=H.create(re(i))}return new x({...e._def,shape:()=>t})}else return e instanceof j?new j({...e._def,type:re(e.element)}):e instanceof H?H.create(re(e.unwrap())):e instanceof Q?Q.create(re(e.unwrap())):e instanceof $?$.create(e.items.map(t=>re(t))):e}class x extends S{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=I.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==g.object){const u=this._getOrReturnCtx(t);return p(u,{code:h.invalid_type,expected:g.object,received:u.parsedType}),k}const{status:i,ctx:o}=this._processInputParams(t),{shape:a,keys:r}=this._getCached(),l=[];if(!(this._def.catchall instanceof V&&this._def.unknownKeys==="strip"))for(const u in o.data)r.includes(u)||l.push(u);const c=[];for(const u of r){const d=a[u],f=o.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new U(o,f,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof V){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of l)c.push({key:{status:"valid",value:d},value:{status:"valid",value:o.data[d]}});else if(u==="strict")l.length>0&&(p(o,{code:h.unrecognized_keys,keys:l}),i.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of l){const f=o.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new U(o,f,o.path,d)),alwaysSet:d in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of c){const f=await d.key,m=await d.value;u.push({key:f,value:m,alwaysSet:d.alwaysSet})}return u}).then(u=>C.mergeObjectSync(i,u)):C.mergeObjectSync(i,c)}get shape(){return this._def.shape()}strict(t){return b.errToObj,new x({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,i)=>{var o,a,r,l;const c=(r=(a=(o=this._def).errorMap)===null||a===void 0?void 0:a.call(o,n,i).message)!==null&&r!==void 0?r:i.defaultError;return n.code==="unrecognized_keys"?{message:(l=b.errToObj(t).message)!==null&&l!==void 0?l:c}:{message:c}}}:{}})}strip(){return new x({...this._def,unknownKeys:"strip"})}passthrough(){return new x({...this._def,unknownKeys:"passthrough"})}extend(t){return new x({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new x({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:_.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new x({...this._def,catchall:t})}pick(t){const n={};return I.objectKeys(t).forEach(i=>{t[i]&&this.shape[i]&&(n[i]=this.shape[i])}),new x({...this._def,shape:()=>n})}omit(t){const n={};return I.objectKeys(this.shape).forEach(i=>{t[i]||(n[i]=this.shape[i])}),new x({...this._def,shape:()=>n})}deepPartial(){return re(this)}partial(t){const n={};return I.objectKeys(this.shape).forEach(i=>{const o=this.shape[i];t&&!t[i]?n[i]=o:n[i]=o.optional()}),new x({...this._def,shape:()=>n})}required(t){const n={};return I.objectKeys(this.shape).forEach(i=>{if(t&&!t[i])n[i]=this.shape[i];else{let a=this.shape[i];for(;a instanceof H;)a=a._def.innerType;n[i]=a}}),new x({...this._def,shape:()=>n})}keyof(){return Yn(I.objectKeys(this.shape))}}x.create=(e,t)=>new x({shape:()=>e,unknownKeys:"strip",catchall:V.create(),typeName:_.ZodObject,...w(t)});x.strictCreate=(e,t)=>new x({shape:()=>e,unknownKeys:"strict",catchall:V.create(),typeName:_.ZodObject,...w(t)});x.lazycreate=(e,t)=>new x({shape:e,unknownKeys:"strip",catchall:V.create(),typeName:_.ZodObject,...w(t)});class Te extends S{_parse(t){const{ctx:n}=this._processInputParams(t),i=this._def.options;function o(a){for(const l of a)if(l.result.status==="valid")return l.result;for(const l of a)if(l.result.status==="dirty")return n.common.issues.push(...l.ctx.common.issues),l.result;const r=a.map(l=>new L(l.ctx.common.issues));return p(n,{code:h.invalid_union,unionErrors:r}),k}if(n.common.async)return Promise.all(i.map(async a=>{const r={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:r}),ctx:r}})).then(o);{let a;const r=[];for(const c of i){const u={...n,common:{...n.common,issues:[]},parent:null},d=c._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!a&&(a={result:d,ctx:u}),u.common.issues.length&&r.push(u.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const l=r.map(c=>new L(c));return p(n,{code:h.invalid_union,unionErrors:l}),k}}get options(){return this._def.options}}Te.create=(e,t)=>new Te({options:e,typeName:_.ZodUnion,...w(t)});const G=e=>e instanceof Pe?G(e.schema):e instanceof D?G(e.innerType()):e instanceof xe?[e.value]:e instanceof J?e.options:e instanceof Ce?I.objectValues(e.enum):e instanceof Oe?G(e._def.innerType):e instanceof Se?[void 0]:e instanceof Ee?[null]:e instanceof H?[void 0,...G(e.unwrap())]:e instanceof Q?[null,...G(e.unwrap())]:e instanceof Ut||e instanceof Ne?G(e.unwrap()):e instanceof Ae?G(e._def.innerType):[];class nt extends S{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==g.object)return p(n,{code:h.invalid_type,expected:g.object,received:n.parsedType}),k;const i=this.discriminator,o=n.data[i],a=this.optionsMap.get(o);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(p(n,{code:h.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),k)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,i){const o=new Map;for(const a of n){const r=G(a.shape[t]);if(!r.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const l of r){if(o.has(l))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(l)}`);o.set(l,a)}}return new nt({typeName:_.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...w(i)})}}function Rt(e,t){const n=z(e),i=z(t);if(e===t)return{valid:!0,data:e};if(n===g.object&&i===g.object){const o=I.objectKeys(t),a=I.objectKeys(e).filter(l=>o.indexOf(l)!==-1),r={...e,...t};for(const l of a){const c=Rt(e[l],t[l]);if(!c.valid)return{valid:!1};r[l]=c.data}return{valid:!0,data:r}}else if(n===g.array&&i===g.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let a=0;a<e.length;a++){const r=e[a],l=t[a],c=Rt(r,l);if(!c.valid)return{valid:!1};o.push(c.data)}return{valid:!0,data:o}}else return n===g.date&&i===g.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Ie extends S{_parse(t){const{status:n,ctx:i}=this._processInputParams(t),o=(a,r)=>{if(Tt(a)||Tt(r))return k;const l=Rt(a.value,r.value);return l.valid?((It(a)||It(r))&&n.dirty(),{status:n.value,value:l.data}):(p(i,{code:h.invalid_intersection_types}),k)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([a,r])=>o(a,r)):o(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Ie.create=(e,t,n)=>new Ie({left:e,right:t,typeName:_.ZodIntersection,...w(n)});class $ extends S{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==g.array)return p(i,{code:h.invalid_type,expected:g.array,received:i.parsedType}),k;if(i.data.length<this._def.items.length)return p(i,{code:h.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),k;!this._def.rest&&i.data.length>this._def.items.length&&(p(i,{code:h.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...i.data].map((r,l)=>{const c=this._def.items[l]||this._def.rest;return c?c._parse(new U(i,r,i.path,l)):null}).filter(r=>!!r);return i.common.async?Promise.all(a).then(r=>C.mergeArray(n,r)):C.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new $({...this._def,rest:t})}}$.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new $({items:e,typeName:_.ZodTuple,rest:null,...w(t)})};class Re extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==g.object)return p(i,{code:h.invalid_type,expected:g.object,received:i.parsedType}),k;const o=[],a=this._def.keyType,r=this._def.valueType;for(const l in i.data)o.push({key:a._parse(new U(i,l,i.path,l)),value:r._parse(new U(i,i.data[l],i.path,l)),alwaysSet:l in i.data});return i.common.async?C.mergeObjectAsync(n,o):C.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,i){return n instanceof S?new Re({keyType:t,valueType:n,typeName:_.ZodRecord,...w(i)}):new Re({keyType:B.create(),valueType:t,typeName:_.ZodRecord,...w(n)})}}class et extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==g.map)return p(i,{code:h.invalid_type,expected:g.map,received:i.parsedType}),k;const o=this._def.keyType,a=this._def.valueType,r=[...i.data.entries()].map(([l,c],u)=>({key:o._parse(new U(i,l,i.path,[u,"key"])),value:a._parse(new U(i,c,i.path,[u,"value"]))}));if(i.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const c of r){const u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return k;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),l.set(u.value,d.value)}return{status:n.value,value:l}})}else{const l=new Map;for(const c of r){const u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return k;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),l.set(u.value,d.value)}return{status:n.value,value:l}}}}et.create=(e,t,n)=>new et({valueType:t,keyType:e,typeName:_.ZodMap,...w(n)});class se extends S{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==g.set)return p(i,{code:h.invalid_type,expected:g.set,received:i.parsedType}),k;const o=this._def;o.minSize!==null&&i.data.size<o.minSize.value&&(p(i,{code:h.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&i.data.size>o.maxSize.value&&(p(i,{code:h.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const a=this._def.valueType;function r(c){const u=new Set;for(const d of c){if(d.status==="aborted")return k;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const l=[...i.data.values()].map((c,u)=>a._parse(new U(i,c,i.path,u)));return i.common.async?Promise.all(l).then(c=>r(c)):r(l)}min(t,n){return new se({...this._def,minSize:{value:t,message:b.toString(n)}})}max(t,n){return new se({...this._def,maxSize:{value:t,message:b.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}se.create=(e,t)=>new se({valueType:e,minSize:null,maxSize:null,typeName:_.ZodSet,...w(t)});class ce extends S{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==g.function)return p(n,{code:h.invalid_type,expected:g.function,received:n.parsedType}),k;function i(l,c){return Ke({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Xe(),de].filter(u=>!!u),issueData:{code:h.invalid_arguments,argumentsError:c}})}function o(l,c){return Ke({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Xe(),de].filter(u=>!!u),issueData:{code:h.invalid_return_type,returnTypeError:c}})}const a={errorMap:n.common.contextualErrorMap},r=n.data;if(this._def.returns instanceof pe){const l=this;return A(async function(...c){const u=new L([]),d=await l._def.args.parseAsync(c,a).catch(P=>{throw u.addIssue(i(c,P)),u}),f=await Reflect.apply(r,this,d);return await l._def.returns._def.type.parseAsync(f,a).catch(P=>{throw u.addIssue(o(f,P)),u})})}else{const l=this;return A(function(...c){const u=l._def.args.safeParse(c,a);if(!u.success)throw new L([i(c,u.error)]);const d=Reflect.apply(r,this,u.data),f=l._def.returns.safeParse(d,a);if(!f.success)throw new L([o(d,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ce({...this._def,args:$.create(t).rest(te.create())})}returns(t){return new ce({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,i){return new ce({args:t||$.create([]).rest(te.create()),returns:n||te.create(),typeName:_.ZodFunction,...w(i)})}}class Pe extends S{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Pe.create=(e,t)=>new Pe({getter:e,typeName:_.ZodLazy,...w(t)});class xe extends S{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return p(n,{received:n.data,code:h.invalid_literal,expected:this._def.value}),k}return{status:"valid",value:t.data}}get value(){return this._def.value}}xe.create=(e,t)=>new xe({value:e,typeName:_.ZodLiteral,...w(t)});function Yn(e,t){return new J({values:e,typeName:_.ZodEnum,...w(t)})}class J extends S{constructor(){super(...arguments),ve.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),i=this._def.values;return p(n,{expected:I.joinValues(i),received:n.parsedType,code:h.invalid_type}),k}if(Je(this,ve)||Zn(this,ve,new Set(this._def.values)),!Je(this,ve).has(t.data)){const n=this._getOrReturnCtx(t),i=this._def.values;return p(n,{received:n.data,code:h.invalid_enum_value,options:i}),k}return A(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return J.create(t,{...this._def,...n})}exclude(t,n=this._def){return J.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}}ve=new WeakMap;J.create=Yn;class Ce extends S{constructor(){super(...arguments),ye.set(this,void 0)}_parse(t){const n=I.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==g.string&&i.parsedType!==g.number){const o=I.objectValues(n);return p(i,{expected:I.joinValues(o),received:i.parsedType,code:h.invalid_type}),k}if(Je(this,ye)||Zn(this,ye,new Set(I.getValidEnumValues(this._def.values))),!Je(this,ye).has(t.data)){const o=I.objectValues(n);return p(i,{received:i.data,code:h.invalid_enum_value,options:o}),k}return A(t.data)}get enum(){return this._def.values}}ye=new WeakMap;Ce.create=(e,t)=>new Ce({values:e,typeName:_.ZodNativeEnum,...w(t)});class pe extends S{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==g.promise&&n.common.async===!1)return p(n,{code:h.invalid_type,expected:g.promise,received:n.parsedType}),k;const i=n.parsedType===g.promise?n.data:Promise.resolve(n.data);return A(i.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}pe.create=(e,t)=>new pe({type:e,typeName:_.ZodPromise,...w(t)});class D extends S{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===_.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:i}=this._processInputParams(t),o=this._def.effect||null,a={addIssue:r=>{p(i,r),r.fatal?n.abort():n.dirty()},get path(){return i.path}};if(a.addIssue=a.addIssue.bind(a),o.type==="preprocess"){const r=o.transform(i.data,a);if(i.common.async)return Promise.resolve(r).then(async l=>{if(n.value==="aborted")return k;const c=await this._def.schema._parseAsync({data:l,path:i.path,parent:i});return c.status==="aborted"?k:c.status==="dirty"||n.value==="dirty"?le(c.value):c});{if(n.value==="aborted")return k;const l=this._def.schema._parseSync({data:r,path:i.path,parent:i});return l.status==="aborted"?k:l.status==="dirty"||n.value==="dirty"?le(l.value):l}}if(o.type==="refinement"){const r=l=>{const c=o.refinement(l,a);if(i.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(i.common.async===!1){const l=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return l.status==="aborted"?k:(l.status==="dirty"&&n.dirty(),r(l.value),{status:n.value,value:l.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(l=>l.status==="aborted"?k:(l.status==="dirty"&&n.dirty(),r(l.value).then(()=>({status:n.value,value:l.value}))))}if(o.type==="transform")if(i.common.async===!1){const r=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!ne(r))return r;const l=o.transform(r.value,a);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:l}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(r=>ne(r)?Promise.resolve(o.transform(r.value,a)).then(l=>({status:n.value,value:l})):r);I.assertNever(o)}}D.create=(e,t,n)=>new D({schema:e,typeName:_.ZodEffects,effect:t,...w(n)});D.createWithPreprocess=(e,t,n)=>new D({schema:t,effect:{type:"preprocess",transform:e},typeName:_.ZodEffects,...w(n)});class H extends S{_parse(t){return this._getType(t)===g.undefined?A(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}H.create=(e,t)=>new H({innerType:e,typeName:_.ZodOptional,...w(t)});class Q extends S{_parse(t){return this._getType(t)===g.null?A(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Q.create=(e,t)=>new Q({innerType:e,typeName:_.ZodNullable,...w(t)});class Oe extends S{_parse(t){const{ctx:n}=this._processInputParams(t);let i=n.data;return n.parsedType===g.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Oe.create=(e,t)=>new Oe({innerType:e,typeName:_.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...w(t)});class Ae extends S{_parse(t){const{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return ke(o)?o.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new L(i.common.issues)},input:i.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new L(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Ae.create=(e,t)=>new Ae({innerType:e,typeName:_.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...w(t)});class tt extends S{_parse(t){if(this._getType(t)!==g.nan){const i=this._getOrReturnCtx(t);return p(i,{code:h.invalid_type,expected:g.nan,received:i.parsedType}),k}return{status:"valid",value:t.data}}}tt.create=e=>new tt({typeName:_.ZodNaN,...w(e)});const ds=Symbol("zod_brand");class Ut extends S{_parse(t){const{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}}class Me extends S{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?k:a.status==="dirty"?(n.dirty(),le(a.value)):this._def.out._parseAsync({data:a.value,path:i.path,parent:i})})();{const o=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?k:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:i.path,parent:i})}}static create(t,n){return new Me({in:t,out:n,typeName:_.ZodPipeline})}}class Ne extends S{_parse(t){const n=this._def.innerType._parse(t),i=o=>(ne(o)&&(o.value=Object.freeze(o.value)),o);return ke(n)?n.then(o=>i(o)):i(n)}unwrap(){return this._def.innerType}}Ne.create=(e,t)=>new Ne({innerType:e,typeName:_.ZodReadonly,...w(t)});function Kt(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function Xn(e,t={},n){return e?he.create().superRefine((i,o)=>{var a,r;const l=e(i);if(l instanceof Promise)return l.then(c=>{var u,d;if(!c){const f=Kt(t,i),m=(d=(u=f.fatal)!==null&&u!==void 0?u:n)!==null&&d!==void 0?d:!0;o.addIssue({code:"custom",...f,fatal:m})}});if(!l){const c=Kt(t,i),u=(r=(a=c.fatal)!==null&&a!==void 0?a:n)!==null&&r!==void 0?r:!0;o.addIssue({code:"custom",...c,fatal:u})}}):he.create()}const hs={object:x.lazycreate};var _;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(_||(_={}));const ps=(e,t={message:`Input not instance of ${e.name}`})=>Xn(n=>n instanceof e,t),Kn=B.create,Jn=X.create,ms=tt.create,fs=K.create,Qn=we.create,gs=ie.create,bs=Qe.create,vs=Se.create,ys=Ee.create,_s=he.create,ks=te.create,ws=V.create,Ss=qe.create,Es=j.create,Ts=x.create,Is=x.strictCreate,Rs=Te.create,Ps=nt.create,xs=Ie.create,Cs=$.create,Os=Re.create,As=et.create,Ns=se.create,Ls=ce.create,Ms=Pe.create,Bs=xe.create,js=J.create,Ds=Ce.create,Hs=pe.create,Jt=D.create,Us=H.create,$s=Q.create,Fs=D.createWithPreprocess,Gs=Me.create,Zs=()=>Kn().optional(),zs=()=>Jn().optional(),Vs=()=>Qn().optional(),Ws={string:e=>B.create({...e,coerce:!0}),number:e=>X.create({...e,coerce:!0}),boolean:e=>we.create({...e,coerce:!0}),bigint:e=>K.create({...e,coerce:!0}),date:e=>ie.create({...e,coerce:!0})},Ys=k;var s=Object.freeze({__proto__:null,defaultErrorMap:de,setErrorMap:Fi,getErrorMap:Xe,makeIssue:Ke,EMPTY_PATH:Gi,addIssueToContext:p,ParseStatus:C,INVALID:k,DIRTY:le,OK:A,isAborted:Tt,isDirty:It,isValid:ne,isAsync:ke,get util(){return I},get objectUtil(){return Et},ZodParsedType:g,getParsedType:z,ZodType:S,datetimeRegex:Wn,ZodString:B,ZodNumber:X,ZodBigInt:K,ZodBoolean:we,ZodDate:ie,ZodSymbol:Qe,ZodUndefined:Se,ZodNull:Ee,ZodAny:he,ZodUnknown:te,ZodNever:V,ZodVoid:qe,ZodArray:j,ZodObject:x,ZodUnion:Te,ZodDiscriminatedUnion:nt,ZodIntersection:Ie,ZodTuple:$,ZodRecord:Re,ZodMap:et,ZodSet:se,ZodFunction:ce,ZodLazy:Pe,ZodLiteral:xe,ZodEnum:J,ZodNativeEnum:Ce,ZodPromise:pe,ZodEffects:D,ZodTransformer:D,ZodOptional:H,ZodNullable:Q,ZodDefault:Oe,ZodCatch:Ae,ZodNaN:tt,BRAND:ds,ZodBranded:Ut,ZodPipeline:Me,ZodReadonly:Ne,custom:Xn,Schema:S,ZodSchema:S,late:hs,get ZodFirstPartyTypeKind(){return _},coerce:Ws,any:_s,array:Es,bigint:fs,boolean:Qn,date:gs,discriminatedUnion:Ps,effect:Jt,enum:js,function:Ls,instanceof:ps,intersection:xs,lazy:Ms,literal:Bs,map:As,nan:ms,nativeEnum:Ds,never:ws,null:ys,nullable:$s,number:Jn,object:Ts,oboolean:Vs,onumber:zs,optional:Us,ostring:Zs,pipeline:Gs,preprocess:Fs,promise:Hs,record:Os,set:Ns,strictObject:Is,string:Kn,symbol:bs,transformer:Jt,tuple:Cs,undefined:vs,union:Rs,unknown:ks,void:Ss,NEVER:Ys,ZodIssueCode:h,quotelessJson:$i,ZodError:L});const Xs=6*1024,Ks=512;function Pt(e,t,n){let i=new TextEncoder().encode(`${t}${e.size?`?${e}`:""}`).length;const o=[];for(const a of n){if(o.length===Ks)break;const l=new URLSearchParams({order_ids:a}).toString().length+1;if(i+l>Xs)break;e.append("order_ids",a),o.push(a),i+=l}return o}function Ql(e,t,n){return Pt(new URLSearchParams(n),t,e)}const y=s.string().min(1).max(128).regex(/^[a-zA-Z0-9_-]+$/),He=s.string().min(1).max(256).regex(/^[a-zA-Z0-9_][a-zA-Z0-9_.-]*$/),Ue=s.string().min(1).max(32768),Js=/^[a-f0-9]{12}$/,v=s.string().regex(Js),ht=s.string().regex(/^[a-f0-9]{12}$/),pt=s.string().min(1).max(128),Qs=s.string().min(1).max(4096),mt=s.string().regex(/^[A-Za-z0-9_.:-]{1,100}$/),$e=s.string().regex(/^\$\{[A-Za-z_][A-Za-z0-9_]*\}$/),Qt=s.string().regex(/^[a-f0-9]{32}$/),qs=/^(\/|[A-Za-z]:[\\/])/,ft=s.string().min(1).max(4096).regex(qs),qt=/^[a-f0-9]{32}$/,R=s.string().regex(/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/),en=s.string().min(1).max(512).nullish(),ae=s.string().regex(/^[A-Za-z0-9_-]{1,128}$/),tn=s.string().regex(/^ap_[0-9a-hjkmnp-tv-z]{1,64}$/),nn=s.object({data_b64:s.string().min(1).max(1e6),mime_type:s.enum(["image/png","image/jpeg","image/gif","image/webp"])}).strict(),sn=2e5,on=8,eo=256,to=100,an=16,no=256,io=100,so=200,oo=1e6,O=s.string().min(1).max(128).refine(e=>e!=="."&&e!==".."&&!e.includes("/")&&!e.includes("\\")&&[...e].every(t=>t.charCodeAt(0)>=32&&t.charCodeAt(0)!==127)),Fe=s.object({kind:s.enum(["agent","team"]),name:O}).strict(),gt=s.object({provider:s.string().min(1).max(128),model_id:s.string().min(1).max(512),reasoning_effort:s.string().min(1).max(64).nullable()}).strict(),rn=s.object({kind:s.enum(["role","specialist"]).optional(),description:s.string().max(8e3).optional(),instructions:s.string().max(8e3).optional(),tools:s.array(s.string().min(1).max(128)).max(256).optional(),effort:s.string().max(64).optional(),delegate:s.boolean().optional(),action_class:s.enum(["reactive","proactive"]).optional()}).strict(),ln=s.object({name:s.string().min(1).max(64).optional(),description:s.string().max(8e3).optional(),manager:O.optional(),members:s.array(s.object({role:O,count:s.number().int().min(1).max(16),kind:s.enum(["agent","team"])}).strict()).max(128).optional(),instructions:s.string().max(8e3).optional(),project:s.string().max(8e3).optional()}).strict(),ao=s.record(s.array(s.string().max(1024)).max(100)),cn=s.enum(["minutes","hours","days"]);function ro(e){return!/^\.+$/.test(e)}const ql=e=>Ve.safeParse(e).success,Ve=s.string().min(1).max(128).refine(e=>[...e].every(t=>t.charCodeAt(0)>=32&&t.charCodeAt(0)!==127&&t!=="/"&&t!=="\\")).refine(ro),un=s.enum(["str","int","float","bool","list","dict"]),dn=s.string().max(16384),lo=2e3,hn=s.string().min(1).max(lo),pn=s.string().min(1).max(64),co=s.string().min(1).max(64),uo=s.string().min(1).max(64),mn=s.object({is_active:s.boolean().nullish(),one_time:s.boolean().nullish(),start_time_utc:s.string().max(64).nullish(),end_time_utc:s.string().max(64).nullish()}).strict(),ho=s.object({conversation_length:s.number().int().optional(),detail_length:s.number().int().optional(),max_learnings_history:s.number().int().optional(),hosting:s.string().max(256).optional(),model_name:s.string().max(1024).optional(),auto_save_conversation:s.boolean().optional()}).strict(),xt=128,fn=2e3,gn=8e3,bn=64,vn=64,it=e=>[...e].length,Ct=e=>e>=9&&e<=13||e>=28&&e<=32||e===133||e===160||e===5760||e>=8192&&e<=8202||e===8232||e===8233||e===8239||e===8287||e===12288,po=e=>e===9||e===10||e===11||e===12||e===13||e===133,mo=e=>e<=31||e>=127&&e<=159,fo=e=>new RegExp("\\p{Cf}","u").test(String.fromCodePoint(e)),go=e=>e>=8234&&e<=8238||e>=8294&&e<=8297,Ge=(e,t)=>{for(const n of e)if(t(n.codePointAt(0)??0))return!0;return!1},qn=e=>{const t=[...e];let n=0,i=t.length;for(;n<i&&Ct(t[n].codePointAt(0)??0);)n++;for(;i>n&&Ct(t[i-1].codePointAt(0)??0);)i--;return t.slice(n,i).join("")},bo=e=>{let t="",n=!1;for(const i of e){if(Ct(i.codePointAt(0)??0)){n=t.length>0;continue}n&&(t+=" ",n=!1),t+=i}return t};function vo(e){const t=qn(e);if(!t)return"must not be empty";if(it(t)>xt)return`must be at most ${xt} characters`;if(/[/\\:]/.test(t))return'must not contain "/", "\\" or ":"';if(Ge(t,go))return"must not contain Unicode bidirectional override characters";if(Ge(t,po))return"must not contain whitespace";if(Ge(t,mo))return"must not contain control characters";if(Ge(t,fo))return"must not contain invisible Unicode formatting characters";const n=[...t];return"-.".includes(n[0])||"-.".includes(n[n.length-1])?'must not begin or end with "-" or "."':null}function ec(e){return bo(qn(e).normalize("NFKC").toLowerCase())}function yo(e){return e.trim()?it(e)>fn?`must be at most ${fn} characters`:null:"must not be empty"}function _o(e){return e.trim()?it(e)>gn?`must be at most ${gn} characters`:null:"must not be empty"}function ko(e){if(e.length>vn)return`must hold at most ${vn} items`;for(const t of e)if(!t.trim()||it(t)>bn)return`must hold items of 1 to ${bn} characters`;return null}const wo=e=>vo(e)===null,So=s.string().refine(wo,{message:"That is not a name the hub can publish."}),Eo=s.string().refine(e=>_o(e)===null,{message:"That instruction body cannot be published."}),To=s.string().refine(e=>yo(e)===null,{message:"That description cannot be published."}),Io=s.array(s.string()).refine(e=>ko(e)===null,{message:"That tool list cannot be published."}),bt={requestId:R.optional(),subscribe:s.boolean().optional(),autoPush:s.boolean().optional(),confirmPublicEgress:s.boolean().optional()},yn=s.object({name:So,description:To,instructions:Eo,kind:s.enum(["role","specialist"]),when_to_use:s.string(),tools:Io,effort:s.string(),delegate:s.boolean(),version:s.string(),categories:s.array(s.string()),tags:s.array(s.string())}).partial().strict(),Ro=s.enum(["team","agent"]),Po=s.string().min(1).max(64),xo=s.string().min(1).max(256),ei=/^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/,vt=s.string().regex(ei,{message:"Letters, digits, dot, underscore and dash; no spaces."}),Co=["planning","active","qa","validation","done","paused","archived"],_n=s.enum(Co),Ze=s.string().regex(/^$|^\d{4}-\d{2}-\d{2}$/,"Dates are YYYY-MM-DD, or empty to clear."),kn=s.array(s.string().min(1).max(24)).max(8),W=s.string().min(1).max(64),Oo=1e3,wn=240,Sn=80,Ao=256,No=100,Lo=200,Mo=/^[a-z0-9][a-z0-9_-]{0,23}$/;function tc(e){return e?ei.test(e)?null:"Names start with a letter or digit and may use letters, digits, dot, underscore or dash.":"Give the project a name."}function nc(e){return Mo.test(e)?null:"Tags are 1-24 characters of lowercase letters, digits, underscore or dash."}const ze=s.enum(["agent","team"]),Bo=s.discriminatedUnion("op",[s.object({op:s.literal("capabilities")}).strict(),s.object({op:s.literal("runtimes.list")}).strict(),s.object({op:s.literal("profiles.list")}).strict(),s.object({op:s.literal("profiles.get"),name:O}).strict(),s.object({op:s.literal("profiles.update"),name:O,requestId:R,fields:rn,expectedDefinitionRevision:en.optional()}).strict(),s.object({op:s.literal("profiles.install"),name:O,requestId:R}).strict(),s.object({op:s.literal("profiles.create"),name:O,requestId:R,fields:rn.extend({description:s.string().max(8e3),instructions:s.string().min(1).max(8e3)})}).strict(),s.object({op:s.literal("hub.updates")}).strict(),s.object({op:s.literal("hub.skillPull"),requestId:R,hubId:y,hubSource:s.string().min(1).max(2048),visibility:s.enum(["public","org"]),tenantId:y.nullable(),localAlias:O,subscribe:s.boolean().optional(),autoPush:s.boolean().optional(),confirmPublicEgress:s.boolean().optional()}).strict(),s.object({op:s.literal("hub.skillPublish"),requestId:R,dryRun:s.boolean(),sourceSkill:O,localAlias:O,visibility:s.enum(["public","org"]),tenantId:y.nullable(),subscribe:s.boolean(),autoPush:s.boolean(),confirmPublicEgress:s.boolean(),previewReceipt:s.string().min(1).max(4096).optional(),confirmPublish:s.literal(!0).optional()}).strict(),s.object({op:s.literal("hub.links"),kind:s.enum(["agent","team","skill"]).optional()}).strict(),s.object({op:s.literal("hub.policy"),requestId:R,linkId:s.string().min(1).max(256),expectedPolicyRevision:s.string().min(1).max(256),subscribe:s.boolean().optional(),autoPush:s.boolean().optional(),confirmPublicEgress:s.boolean().optional()}).strict(),s.object({op:s.literal("hub.check"),requestId:R,linkId:s.string().min(1).max(256).optional(),direction:s.enum(["pull","push"]).optional(),kind:ze.optional(),name:O.optional()}).strict(),s.object({op:s.literal("hub.apply"),requestId:R,previewReceipt:s.string().min(1).max(4096).optional(),confirmApply:s.literal(!0).optional(),linkId:s.string().min(1).max(256).optional(),direction:s.literal("pull").optional(),kind:ze.optional(),name:O.optional(),prefer:s.enum(["local","remote"]).optional(),acknowledgeUnknownBaseline:s.boolean().optional(),dryRun:s.boolean().optional(),resolveSource:s.literal(!0).optional(),hubSource:s.string().min(1).max(2048).optional(),visibility:s.enum(["public","org"]).optional(),tenantId:s.string().min(1).max(128).nullable().optional()}).strict(),s.object({op:s.literal("hub.applyAll"),requestId:R,kind:ze.optional()}).strict(),s.object({op:s.literal("hub.retry"),requestId:R,linkId:s.string().min(1).max(256).optional(),direction:s.enum(["pull","push"]).optional(),kind:ze.optional(),name:O.optional()}).strict(),s.object({op:s.literal("hub.push"),requestId:R,linkId:s.string().min(1).max(256),direction:s.literal("push"),dryRun:s.boolean(),previewReceipt:s.string().min(1).max(4096).optional(),confirmPublish:s.literal(!0).optional()}).strict(),s.object({op:s.literal("teams.list")}).strict(),s.object({op:s.literal("teams.get"),name:O}).strict(),s.object({op:s.literal("teams.update"),name:O,requestId:R,fields:ln,expectedDefinitionRevision:en.optional()}).strict(),s.object({op:s.literal("teams.create"),requestId:R,fields:ln.extend({name:s.string().min(1).max(64)})}).strict(),s.object({op:s.literal("sessions.list"),limit:s.number().int().min(1).max(500).optional(),include_archived:s.boolean().optional(),include_peers:s.boolean().optional(),scope_kind:Ro.optional(),scope_name:Po.optional(),cursor:xo.optional(),with_counts:s.boolean().optional()}).strict(),s.object({op:s.literal("delegated_cleanup_notice.ack")}).strict(),s.object({op:s.literal("sessions.search"),q:s.string().min(1).max(eo),limit:s.number().int().min(1).max(500).optional(),include_archived:s.boolean().optional()}).strict(),s.object({op:s.literal("sessions.archive"),sessionId:v,archived:s.boolean()}).strict(),s.object({op:s.literal("sessions.delete"),sessionId:v,confirmed:s.literal(!0)}).strict(),s.object({op:s.literal("sessions.create"),requestId:R,cwd:s.string().min(1).max(4096).optional(),target:Fe.optional(),purpose:s.literal("agents-config").optional(),model:gt.optional(),draftId:v.optional(),peer:ae.optional()}).strict(),s.object({op:s.literal("sessions.preview"),requestId:R,cwd:s.string().min(1).max(4096),target:Fe.optional(),model:gt.optional()}).strict(),s.object({op:s.literal("sessions.draft"),requestId:R,cwd:s.string().min(1).max(4096),target:Fe.optional(),model:gt.optional()}).strict(),s.object({op:s.literal("sessions.get"),sessionId:v,journalOrder:s.boolean().optional(),orderIds:s.array(s.string().min(1).max(128)).max(512).optional(),peerJournalSource:s.boolean().optional()}).strict(),s.object({op:s.literal("sessions.files"),sessionId:v,scope:s.enum(["family","self"]).optional(),kind:s.string().max(256).optional(),q:s.string().max(256).optional(),sort:s.enum(["recent","name","kind","modified","created","size"]).optional(),order:s.enum(["asc","desc"]).optional(),limit:s.number().int().min(1).max(200).optional(),cursor:s.string().max(8192).optional()}).strict(),s.object({op:s.literal("sessions.files.materialise"),sessionId:v,fileId:s.string().regex(/^[a-f0-9]{16}$/)}).strict(),s.object({op:s.literal("sessions.history"),sessionId:v,beforeId:y.optional(),limit:s.number().int().min(1).max(500).optional(),openFrame:s.boolean().optional(),journalOrder:s.boolean().optional(),orderIds:s.array(s.string().min(1).max(128)).max(512).optional(),peerJournalSource:s.boolean().optional(),sourceRead:s.enum(["metadata","payload"]).optional(),expectedJournalGeneration:s.string().min(1).max(128).optional()}).strict(),s.object({op:s.literal("sessions.checkpoints"),sessionId:v}).strict(),s.object({op:s.literal("sessions.checkpoints.warm"),sessionId:v,ids:s.array(y).max(an).optional(),limit:s.number().int().min(1).max(an).optional()}).strict(),s.object({op:s.literal("sessions.find"),sessionId:v,q:s.string().min(1).max(no),limit:s.number().int().min(1).max(so).optional()}).strict(),s.object({op:s.literal("subagents.transcript"),sessionId:v,childId:v,beforeId:y.optional(),limit:s.number().int().min(1).max(500).optional()}).strict(),s.object({op:s.literal("sessions.message"),sessionId:v,requestId:R,text:s.string().max(sn),images:s.array(nn).max(on).optional(),mode:s.enum(["prompt","steer"]).optional(),inputMode:s.enum(["typed","dictated","mixed"]).optional(),inputPath:s.string().max(1024).optional()}).strict(),s.object({op:s.literal("sessions.command"),sessionId:v,requestId:R,command:s.string().regex(/^\/?[A-Za-z]+$/).max(64),args:s.string().max(sn).optional(),images:s.array(nn).max(on).optional()}).strict(),s.object({op:s.literal("sessions.move"),sessionId:v,requestId:R,cwd:s.string().min(1).max(4096)}).strict(),s.object({op:s.literal("sessions.answer"),sessionId:v,epoch:y.optional(),requestId:y.optional(),value:s.string().max(32768).optional(),approved:s.boolean().optional(),questionIndex:s.number().int().min(0).optional(),askId:y.optional(),answers:s.record(s.string(),s.array(s.string().max(32768))).optional(),decline:s.boolean().optional(),revise:s.boolean().optional()}).strict(),s.object({op:s.literal("sessions.seen"),sessionId:v,completionToken:s.string().uuid()}).strict(),s.object({op:s.literal("attention.seen"),items:s.array(s.object({sessionId:v,completionToken:s.string().uuid()}).strict()).min(1).max(500)}).strict(),s.object({op:s.literal("sessions.notified"),sessionId:v,completionToken:s.string().uuid()}).strict(),s.object({op:s.literal("sessions.pin"),sessionId:v,pinned:s.boolean()}).strict(),s.object({op:s.literal("sessions.watch"),sessionId:v,subscriptionId:s.string().regex(qt),visible:s.boolean(),canNotify:s.boolean()}).strict(),s.object({op:s.literal("sessions.warm"),sessionId:v}).strict(),s.object({op:s.literal("sessions.interrupt"),sessionId:v,requestId:R}).strict(),s.object({op:s.literal("supplements.cancel"),sessionId:v,job:ht,anchor:pt}).strict(),s.object({op:s.literal("supplements.restart"),sessionId:v,job:ht,anchor:pt}).strict(),s.object({op:s.literal("supplements.steer"),sessionId:v,job:ht,anchor:pt,text:s.string().min(1).max(500)}).strict(),s.object({op:s.literal("sessions.variables.list"),sessionId:v}).strict(),s.object({op:s.literal("sessions.variables.create"),sessionId:v,key:Ve,value:dn,type:un}).strict(),s.object({op:s.literal("sessions.variables.update"),sessionId:v,key:Ve,value:dn,type:un}).strict(),s.object({op:s.literal("sessions.variables.delete"),sessionId:v,key:Ve}).strict(),s.object({op:s.literal("sessions.presence"),subscriptionId:s.string().regex(/^[a-f0-9]{1,64}$/),canNotify:s.boolean(),canNotifyKinds:s.array(s.enum(["complete","error"])).max(4),sessionId:s.string().regex(/^([a-f0-9]{12})?$/),window:s.object({exists:s.boolean(),focused:s.boolean(),visible:s.boolean(),minimized:s.boolean()}).strict()}).strict(),s.object({op:s.literal("legacy.models"),provider:s.string().max(128).optional(),sort:s.enum(["id","name","provider","recommended"]).optional(),direction:s.enum(["ascending","descending"]).optional()}).strict(),s.object({op:s.literal("legacy.models.providers")}).strict(),s.object({op:s.literal("auth.probe"),provider:y}).strict(),s.object({op:s.literal("legacy.agent.upload"),agentId:y}).strict(),s.object({op:s.literal("agent.publish"),agentId:y,document:yn.optional(),...bt,visibility:s.literal("org").optional(),tenantId:y.optional()}).strict(),s.object({op:s.literal("agent.republish"),agentId:y,hubAgentId:y,expectedRemoteRevision:s.string().min(1).max(512).optional(),document:yn.optional(),...bt,visibility:s.literal("org").optional(),tenantId:y.optional()}).strict(),s.object({op:s.literal("team.publish"),teamId:y,...bt,visibility:s.literal("org").optional(),tenantId:y.optional()}).strict(),s.object({op:s.literal("team.pull"),teamId:y,tenantId:y.optional()}).strict(),s.object({op:s.literal("agent.nameAvailability"),name:s.string().min(1).max(xt)}).strict(),s.object({op:s.literal("legacy.agents.list"),page:s.number().int().min(1).optional(),perPage:s.number().int().min(1).max(500).optional(),name:s.string().max(256).optional(),sort:s.string().max(64).optional(),direction:s.enum(["asc","desc"]).optional()}).strict(),s.object({op:s.literal("legacy.agent.get"),agentId:y}).strict(),s.object({op:s.literal("legacy.agent.history"),agentId:y,page:s.number().int().min(1).optional(),perPage:s.number().int().min(1).max(500).optional()}).strict(),s.object({op:s.literal("legacy.jobs.list"),agentId:y.optional(),status:s.string().max(64).optional()}).strict(),s.object({op:s.literal("legacy.job.get"),jobId:y}).strict(),s.object({op:s.literal("legacy.schedules.list"),page:s.number().int().min(1).optional(),perPage:s.number().int().min(1).max(100).optional()}).strict(),s.object({op:s.literal("legacy.agent.schedules.list"),agentId:y,page:s.number().int().min(1).optional(),perPage:s.number().int().min(1).max(100).optional()}).strict(),s.object({op:s.literal("legacy.agent.schedule.create"),agentId:y,schedule:mn.extend({prompt:s.string().max(64e3),interval:s.number().int().min(1),unit:cn})}).strict(),s.object({op:s.literal("legacy.schedule.get"),scheduleId:y}).strict(),s.object({op:s.literal("legacy.schedule.edit"),scheduleId:y,schedule:mn.extend({prompt:s.string().max(64e3).nullish(),interval:s.number().int().min(1).nullish(),unit:cn.nullish()})}).strict(),s.object({op:s.literal("legacy.schedule.remove"),scheduleId:y}).strict(),s.object({op:s.literal("legacy.agent.create"),agent:s.record(s.unknown())}).strict(),s.object({op:s.literal("legacy.agent.update"),agentId:y,update:s.record(s.unknown())}).strict(),s.object({op:s.literal("legacy.agent.delete"),agentId:y}).strict(),s.object({op:s.literal("legacy.agent.conversation.clear"),agentId:y}).strict(),s.object({op:s.literal("legacy.agent.systemPrompt.get"),agentId:y}).strict(),s.object({op:s.literal("legacy.agent.systemPrompt.update"),agentId:y,systemPrompt:s.string().max(oo)}).strict(),s.object({op:s.literal("legacy.agent.download"),agentId:y}).strict(),s.object({op:s.literal("legacy.job.cancel"),jobId:y}).strict(),s.object({op:s.literal("commands.list")}).strict(),s.object({op:s.literal("commands.entities"),sessionId:v,command:y,name:s.string().max(128).optional()}).strict(),s.object({op:s.literal("models.catalogue"),live:s.boolean().optional(),scope:s.enum(["usable","all"]).optional()}).strict(),s.object({op:s.literal("usage.get"),provider:y.optional(),live:s.boolean().optional(),refresh:s.boolean().optional()}).strict(),s.object({op:s.literal("quota.notice"),provider:y.optional(),model:s.string().min(1).max(200).optional(),refresh:s.boolean().optional()}).strict(),s.object({op:s.literal("analytics.get"),sessionId:v.optional(),sinceMs:s.number().int().nonnegative().optional(),untilMs:s.number().int().nonnegative().optional(),days:s.number().int().min(1).max(366).optional()}).strict(),s.object({op:s.literal("analytics.models"),sessionId:v.optional(),sinceMs:s.number().int().nonnegative().optional(),untilMs:s.number().int().nonnegative().optional(),days:s.number().int().min(1).max(366).optional()}).strict(),s.object({op:s.literal("info.get")}).strict(),s.object({op:s.literal("sessions.report"),sessionId:v,recentLimit:s.number().int().min(0).max(50).optional()}).strict(),s.object({op:s.literal("skills.list"),sessionId:v.optional(),cwd:Qs.optional(),name:y.optional()}).strict(),s.object({op:s.literal("sessions.failovers"),sessionId:v}).strict(),s.object({op:s.literal("sessions.credential"),sessionId:v,action:s.enum(["list","store","forget"]),key:He.optional(),value:Ue.optional(),confirmed:s.boolean().optional()}).strict(),s.object({op:s.literal("sessions.fork"),sessionId:v,requestId:R,message:s.string().max(2e5).optional(),boundary:s.enum(["next_safe","at_entry"]).optional(),entryId:s.string().max(128).optional()}).strict(),s.object({op:s.literal("sessions.stop"),requestId:R,targets:s.array(v).min(1).max(100),confirmed:s.literal(!0)}).strict(),s.object({op:s.literal("sessions.aside"),sessionId:v,requestId:R,text:s.string().min(1).max(32768),asideId:R.optional(),subscriptionId:s.string().regex(qt).optional()}).strict(),s.object({op:s.literal("sessions.adopt"),sessionId:v,requestId:R,asideId:R,confirmed:s.literal(!0)}).strict(),s.object({op:s.literal("sessions.aside.get"),sessionId:v,asideId:R}).strict(),s.object({op:s.literal("sessions.aside.close"),sessionId:v,asideId:R}).strict(),s.object({op:s.literal("wakes.list"),limit:s.number().int().min(1).max(500).optional(),includeDormant:s.boolean().optional()}).strict(),s.object({op:s.literal("wakes.create"),requestId:R,sessionId:v.optional(),cwd:s.string().min(1).max(4096).optional(),target:Fe.optional(),message:hn,in:s.string().min(1).max(64).optional(),at:s.string().min(1).max(64).optional(),every:s.string().min(1).max(64).optional(),until:s.string().min(1).max(64).optional(),limit:s.number().int().min(1).optional(),title:s.string().min(1).max(200).optional()}).strict(),s.object({op:s.literal("wakes.edit"),sessionId:v,wakeId:pn,message:hn.optional(),in:s.string().min(1).max(64).optional(),at:s.string().min(1).max(64).optional(),every:s.string().min(1).max(64).optional(),until:s.string().min(1).max(64).optional(),limit:s.number().int().min(1).optional()}).strict(),s.object({op:s.literal("wakes.remove"),sessionId:v,wakeId:pn}).strict(),s.object({op:s.literal("monitors.cancel"),sessionId:v,monitorId:co}).strict(),s.object({op:s.literal("jobs.cancel"),sessionId:v,jobId:uo}).strict(),s.object({op:s.literal("mcp.list"),sessionId:v}).strict(),s.object({op:s.literal("mcp.credentials.store"),sessionId:v,name:s.string().min(1).max(256),values:s.record(s.string().min(1).max(128),s.string().min(1).max(32768)).refine(e=>Object.keys(e).length<=32&&Object.values(e).reduce((t,n)=>t+n.length,0)<=65536,{message:"Too many secret values, or too much secret text, for one MCP credential write."}),confirmedReplace:s.array(s.string().min(1).max(128)).max(32)}).strict(),s.object({op:s.literal("mcp.control"),sessionId:v,control:s.object({action:s.enum(["list","add","remove","reload","connect","probe","disconnect","login","logout","reauth","status","cancel"]),name:mt.optional(),scope:s.enum(["global","project"]).optional(),command:s.string().min(1).max(4096).optional(),args:s.array(s.string().max(8192)).max(128).optional(),env:s.record($e).optional(),url:s.string().max(4096).optional(),headers:s.record($e).optional(),oauth:s.boolean().optional(),confirmed:s.boolean().optional(),operation_id:Qt.optional()}).strict()}).strict(),s.object({op:s.literal("mcp.catalog"),cwd:ft.optional(),sessionId:v.optional()}).strict(),s.object({op:s.literal("mcp.catalog.control"),cwd:ft.optional(),control:s.object({action:s.enum(["add","remove","test","login","reauth","logout","status","cancel"]),name:mt.optional(),scope:s.enum(["global","project"]).optional(),command:s.string().min(1).max(4096).optional(),args:s.array(s.string().max(8192)).max(128).optional(),env:s.record($e).optional(),url:s.string().max(4096).optional(),headers:s.record($e).optional(),confirmed:s.boolean().optional(),operation_id:Qt.optional()}).strict()}).strict(),s.object({op:s.literal("mcp.catalog.credentials"),header:s.string().min(1).max(128).optional(),cwd:ft.optional(),name:mt,values:s.record(s.string().min(1).max(128),s.string().min(1).max(32768)).refine(e=>Object.keys(e).length<=32&&Object.values(e).reduce((t,n)=>t+n.length,0)<=65536,{message:"Too many secret values, or too much secret text, for one MCP credential write."}),confirmedReplace:s.array(s.string().min(1).max(128)).max(32)}).strict(),s.object({op:s.literal("radient.request"),control:s.object({operation:s.enum(["account","prices","credits","usage","provision","application.create","agents.list","agents.get","agents.create","agents.update","agents.delete","agents.like","agents.unlike","agents.liked","agents.like_count","agents.favourite","agents.unfavourite","agents.favourited","agents.favourite_count","agents.download_count","agents.statuses","comments.list","comments.create","comments.update","comments.delete","account.agents","memberships.list","org_agents.list","org_team.get","org_teams.list","org_skills.list","org_skill.get","signup.resend"]),request_id:R.optional(),tenant_id:y.optional(),account_id:y.optional(),agent_id:y.optional(),comment_id:y.optional(),team_id:y.optional(),skill_id:y.optional(),query:s.record(s.union([s.string().max(1024),s.number().int()])).optional(),payload:s.record(s.unknown()).optional(),confirmed:s.boolean().optional()}).strict()}).strict(),s.object({op:s.literal("providers.list")}).strict(),s.object({op:s.literal("accounts.list")}).strict(),s.object({op:s.literal("accounts.remove"),accountId:s.number().int().positive(),confirmed:s.literal(!0)}).strict(),s.object({op:s.literal("tunnel.setup.read"),credentialId:s.number().int().positive().optional()}).strict(),s.object({op:s.literal("tunnel.setup.plan"),credentialId:s.number().int().positive().optional()}).strict(),s.object({op:s.literal("tunnel.setup.run"),credentialId:s.number().int().positive(),acceptMonthlyPrice:s.string().min(1).max(64).optional()}).strict(),s.object({op:s.literal("auth.start"),provider:y}).strict(),s.object({op:s.literal("auth.status"),id:y}).strict(),s.object({op:s.literal("auth.input"),id:y,promptId:y,value:Ue}).strict(),s.object({op:s.literal("auth.cancel"),id:y}).strict(),s.object({op:s.literal("auth.key"),provider:y,value:Ue}).strict(),s.object({op:s.literal("auth.logout"),provider:y}).strict(),s.object({op:s.literal("settings.list")}).strict(),s.object({op:s.literal("settings.edit"),key:He,value:s.unknown().refine(e=>e!==void 0,"A setting value is required."),base:ao.optional()}).strict(),s.object({op:s.literal("settings.reset"),key:He}).strict(),s.object({op:s.literal("tts.paths")}).strict(),s.object({op:s.literal("config.get")}).strict(),s.object({op:s.literal("config.update"),value:ho}).strict(),s.object({op:s.literal("instructions.get")}).strict(),s.object({op:s.literal("instructions.update"),content:s.string().max(64e3)}).strict(),s.object({op:s.literal("credentials.list")}).strict(),s.object({op:s.literal("credentials.update"),key:He,value:Ue}).strict(),s.object({op:s.literal("peers.list")}).strict(),s.object({op:s.literal("networks.list")}).strict(),s.object({op:s.literal("networks.invite"),networkId:ae,role:s.enum(["read","drive","admin"]),deviceId:ae.optional()}).strict(),s.object({op:s.literal("networks.member.remove"),networkId:ae,deviceId:ae,confirm:s.string().min(1).max(256)}).strict(),s.object({op:s.literal("sessions.transfer"),sessionId:v,to:s.union([s.literal("local"),ae]),keep:s.boolean().optional(),waitS:s.number().min(0).max(300).optional(),requestId:R.optional()}).strict(),s.object({op:s.literal("approvals.list")}).strict(),s.object({op:s.literal("approvals.approve"),approvalId:tn}).strict(),s.object({op:s.literal("approvals.deny"),approvalId:tn}).strict(),s.object({op:s.literal("asks.list")}).strict(),s.object({op:s.literal("projects.list")}).strict(),s.object({op:s.literal("projects.get"),key:W}).strict(),s.object({op:s.literal("projects.create"),name:vt,description:s.string().max(wn).optional(),status:_n.optional(),tags:kn.optional()}).strict(),s.object({op:s.literal("projects.update"),key:W,fields:s.object({name:vt.optional(),title:s.string().max(80).optional(),owner:s.string().max(80).optional(),team:s.string().max(80).optional(),description:s.string().max(wn).optional(),status:_n.optional(),progress:s.string().max(Oo).optional(),tags:kn.optional(),start_date:Ze.optional(),target_date:Ze.optional(),completed_at:Ze.optional(),estimate:s.number().positive().max(1e3).optional(),estimate_unit:s.enum(["points","days"]).optional()}).strict(),force_done:s.boolean().optional()}).strict(),s.object({op:s.literal("projects.delete"),key:W,confirmed_name:vt}).strict(),s.object({op:s.literal("projects.link"),key:W,sessionId:v}).strict(),s.object({op:s.literal("projects.unlink"),key:W,sessionId:v}).strict(),s.object({op:s.literal("projects.milestone"),key:W,name:s.string().min(1).max(Sn),targetDate:Ze.optional(),completed:s.boolean().optional()}).strict(),s.object({op:s.literal("projects.milestone.remove"),key:W,name:s.string().min(1).max(Sn)}).strict(),s.object({op:s.literal("projects.request_update"),key:W}).strict(),s.object({op:s.literal("projects.search"),q:s.string().min(1).max(Ao),limit:s.number().int().min(1).max(Lo).optional()}).strict(),s.object({op:s.literal("aida.status")}).strict(),s.object({op:s.literal("aida.control"),action:s.enum(["open","pause","resume","greet","status"])}).strict(),s.object({op:s.literal("code_requests.list"),sessionId:v}).strict(),s.object({op:s.literal("code_requests.refresh"),sessionId:v,keys:s.array(s.string().min(1).max(512)).max(256).optional(),force:s.boolean().optional()}).strict(),s.object({op:s.literal("static.sign"),route:s.enum(["images","videos","audio","html"]),path:s.string().min(1),ttlS:s.number().int().min(1).max(3600).optional()}).strict()]);Bo.superRefine((e,t)=>{if(e.op==="hub.skillPull"||e.op==="hub.skillPublish"){if(e.visibility==="public"&&e.tenantId!==null||e.visibility==="org"&&!e.tenantId){t.addIssue({code:s.ZodIssueCode.custom,message:"A skill destination requires explicit paired scope",path:["tenantId"]});return}if(e.op==="hub.skillPublish"&&(e.dryRun?e.previewReceipt!==void 0||e.confirmPublish!==void 0:!e.previewReceipt||e.confirmPublish!==!0)){t.addIssue({code:s.ZodIssueCode.custom,message:"An initial skill publication requires its reviewed draft receipt",path:["previewReceipt"]});return}}if(e.op==="hub.check"||e.op==="hub.apply"||e.op==="hub.retry"){const n=e.linkId!==void 0,i=e.kind!==void 0||e.name!==void 0;if(n&&i||e.op!=="hub.check"&&!n&&(!e.kind||!e.name)||e.op==="hub.retry"&&n&&!e.direction||e.direction==="push"&&!n){t.addIssue({code:s.ZodIssueCode.custom,message:"A hub action requires one unambiguous selector and an explicit retry direction",path:["linkId"]});return}}if(e.op==="hub.apply"&&(e.previewReceipt!==void 0||e.confirmApply!==void 0)&&(!e.linkId||e.dryRun||!e.previewReceipt||e.confirmApply!==!0)){t.addIssue({code:s.ZodIssueCode.custom,message:"A viewed incoming application requires its scoped preview receipt and confirmation",path:["previewReceipt"]});return}if(e.op==="hub.apply"&&e.resolveSource===!0){const n=e.visibility==="public"&&e.tenantId===null||e.visibility==="org"&&typeof e.tenantId=="string"&&e.tenantId.length>0;if(!e.hubSource||!n||e.acknowledgeUnknownBaseline!==!0||e.linkId!==void 0||e.previewReceipt!==void 0||e.confirmApply!==void 0||e.prefer!==void 0){t.addIssue({code:s.ZodIssueCode.custom,message:"Confirming a source requires its exact stated destination and the unknown-baseline acknowledgement, with no link, preview or preference",path:["hubSource"]});return}}if(e.op==="hub.push"&&(e.dryRun?e.previewReceipt!==void 0||e.confirmPublish!==void 0:!e.previewReceipt||e.confirmPublish!==!0)){t.addIssue({code:s.ZodIssueCode.custom,message:"A confirmed publication requires its reviewed preview receipt",path:["previewReceipt"]});return}if(e.op==="hub.policy"&&e.subscribe===void 0&&e.autoPush===void 0){t.addIssue({code:s.ZodIssueCode.custom,message:"A hub policy change must name subscribe or autoPush",path:["subscribe"]});return}if(e.op==="sessions.answer"){if(e.askId!==void 0){e.askId||t.addIssue({code:s.ZodIssueCode.custom,message:"ask_id must be a non-empty string",path:["askId"]}),e.decline!==!0&&!e.answers?t.addIssue({code:s.ZodIssueCode.custom,message:"A queued-ask answer needs answers or decline",path:["answers"]}):e.decline===!0&&e.answers!==void 0?t.addIssue({code:s.ZodIssueCode.custom,message:"Supply either answers or decline",path:["decline"]}):e.revise===!0&&e.decline===!0?t.addIssue({code:s.ZodIssueCode.custom,message:"Supply either decline or revise",path:["revise"]}):e.answers!==void 0&&Object.keys(e.answers).length===0&&t.addIssue({code:s.ZodIssueCode.custom,message:"answers must name at least one question",path:["answers"]});return}e.epoch||t.addIssue({code:s.ZodIssueCode.custom,message:"An epoch is required to answer a gate",path:["epoch"]}),e.requestId||t.addIssue({code:s.ZodIssueCode.custom,message:"A request id is required to answer a gate",path:["requestId"]}),e.revise===!0&&t.addIssue({code:s.ZodIssueCode.custom,message:"revise applies to a queued ask",path:["revise"]});return}if(e.op==="sessions.create"&&e.purpose===void 0){e.cwd===void 0&&t.addIssue({code:s.ZodIssueCode.custom,message:"A conversation needs a working directory: only a configuration run (`purpose`) may omit `cwd`.",path:["cwd"]});return}if(e.op==="sessions.create"&&e.purpose!==void 0){for(const n of["cwd","target","model","draftId"])e[n]!==void 0&&t.addIssue({code:s.ZodIssueCode.custom,message:`A configuration run resolves its own \`${n}\`: send \`purpose\` alone.`,path:[n]});return}if(!(e.op!=="agent.publish"&&e.op!=="agent.republish"&&e.op!=="team.publish")){if((e.subscribe!==void 0||e.autoPush!==void 0||e.confirmPublicEgress!==void 0)&&!e.requestId){t.addIssue({code:s.ZodIssueCode.custom,message:"Initial link policy needs a durable publication request ID",path:["requestId"]});return}e.visibility==="org"!=!!e.tenantId&&t.addIssue({code:s.ZodIssueCode.custom,message:'A publication target needs both `visibility: "org"` and `tenantId`, or neither: one half would publish to the public hub.'})}});const ee={noCredential:"pairing.no-credential",refused:"pairing.refused",planeClosed:"pairing.plane-closed",transportFailed:"transport.failed"},ic={runtimeUnreachable:"runtime_unreachable"},sc="runtime_busy",oc="runtime_retiring",ac={[ee.noCredential]:"This app is not paired with the running Local Operator server, so this control is unavailable.",[ee.refused]:"This app's credential for the running Local Operator server was refused, so this control is unavailable.",[ee.planeClosed]:"The running Local Operator server does not accept this app's desktop controls.",[ee.transportFailed]:"The Local Operator server did not answer this request."},rc={noCredential:"Restart with a desktop-managed backend to use these controls.",transportFailed:"The backend could not complete this request. Check its connection and try again."};function lc(e){return e!==void 0&&Object.values(ee).includes(e)}function cc(e,t){if(e.startsWith("/v1/desktop/")){if(t===401||t===403)return ee.refused;if(t===503)return ee.planeClosed}}const uc=s.object({step:s.string(),blocked_on:s.string(),configured:s.boolean(),ready:s.boolean(),verified:s.boolean(),url:s.string().nullable(),credential_id:s.number().int().positive().nullable(),identity_label:s.string().nullable(),credential_choices:s.array(s.object({id:s.number().int().positive(),identity_label:s.string().nullable().optional()}).passthrough()).default([]),quote:s.object({monthly_price_usd:s.string().nullable(),positive_balance:s.boolean(),eligible:s.boolean(),account_valid:s.boolean()}).passthrough().nullable(),receipts:s.array(s.object({step:s.string(),ok:s.boolean(),text:s.string()})).default([]),remedy:s.object({kind:s.string(),text:s.string(),command:s.string().nullable().optional(),url:s.string().nullable().optional()}).nullable(),source:s.string(),in_progress:s.boolean().default(!1),progress:s.array(s.string()).default([]),active_credential_id:s.number().int().positive().nullable().default(null),billing_outcome:s.string().optional(),reservation_outcome:s.string().optional(),failure_stage:s.string().optional()}).passthrough(),dc=new Set(["setup_in_progress","setup_deadline","setup_unavailable","setup_intent_corrupt"]),jo=88e4,Do=11e5,Ho=2e4,Uo=9e4,$o=new Set(["analytics.get","analytics.models","sessions.report"]),Fo=new Set(["usage.get"]),Go=new Set(["networks.list","peers.list"]),Zo=new Set([...$o,...Fo,...Go]),zo=90,Vo=30,Wo=300,Yo=10,ti=15,Xo=1e4;function Ko(e){const n=e.to==="local"||e.keep?Wo:Vo,i=Math.max(0,e.waitS??0);return(zo+n+Yo+ti)*1e3+i*1e3}const Jo=18e4,Qo=Jo+15e3,qo=120,ea=135e3,ta=93e4,ni=(qo+30+ti)*1e3,na=6e4,ia=5*ni,sa=new Set(["hub.apply","hub.retry","hub.push","hub.skillPublish","hub.skillPull","hub.check","hub.applyAll"]);function oa(e){switch(e){case"hub.apply":case"hub.retry":case"hub.push":case"hub.skillPublish":case"hub.skillPull":return ni;case"hub.check":return na;case"hub.applyAll":return ia;default:return null}}function aa(e){if(typeof e!="string"&&e.op==="sessions.transfer")return Ko(e)+Xo;const t=typeof e=="string"?e:e.op;if(t==="approvals.approve")return Qo;if(t==="tunnel.setup.run")return ta;if(t==="tunnel.setup.plan")return ea;const n=oa(t);return n!==null?n:Zo.has(t)?Uo:Ho}const ra=5e3;function hc(e){return aa(e)+ra}const la="deadline_exceeded",pc="foreground_required",mc="View these completions in the foreground before marking them read.",ca=new Set(["capabilities","accounts.list","analytics.get","analytics.models","approvals.list","commands.entities","commands.list","config.get","credentials.list","hub.updates","hub.links","info.get","instructions.get","legacy.agent.get","legacy.agent.history","legacy.agent.schedules.list","legacy.agents.list","legacy.job.get","legacy.jobs.list","legacy.models","legacy.models.providers","legacy.schedule.get","legacy.schedules.list","mcp.catalog","mcp.list","models.catalogue","networks.list","peers.list","profiles.get","profiles.list","projects.search","providers.list","quota.notice","runtimes.list","sessions.aside.get","sessions.checkpoints","sessions.failovers","sessions.find","sessions.get","sessions.history","sessions.files","sessions.list","sessions.preview","sessions.report","sessions.search","sessions.variables.list","skills.list","subagents.transcript","teams.get","teams.list","tunnel.setup.plan","tunnel.setup.read","usage.get"]),ua=new Set(["analytics.get","analytics.models","networks.list","peers.list","usage.get","sessions.report","info.get","sessions.failovers"]);function fc(e,t){const n=Math.round(t/1e3),i=la;return e==="sessions.transfer"?{code:i,message:`The app waits up to ${n} seconds for a move, and it was still running when the app stopped waiting. The move was asked for, so its outcome is unknown from here: read the session again before moving it anywhere else.`}:e==="approvals.approve"?{code:i,message:`The app waits up to ${n} seconds for an approval, and the signing prompt was still open when it stopped waiting. The request was sent, so the decision may or may not have landed: read the approvals again — if the record still waits, answering it again is safe, because the store keeps the first decision and refuses a second.`}:sa.has(e)?{code:i,message:"This is taking longer than expected. It may still finish; the mark will update."}:ca.has(e)?{code:i,message:ua.has(e)?`The app waits up to ${n} seconds for this panel's data, and the read was still running when the app stopped waiting. Nothing was read; reopen the panel to ask again.`:`The app waits up to ${n} seconds for this read, and it was still running when the app stopped waiting. Nothing was read; ask again.`}:{code:i,message:`The app waits up to ${n} seconds for this request, and it was still running when the app stopped waiting. It may or may not have reached the server; check the result before repeating it.`}}const gc=jo,bc=Do;s.object({state:s.enum(["ok","depleted","limit_reached","unverified","unknown","not_applicable"]),provider:s.string(),kind:s.enum(["balance","subscription","radient","none"]),model_free:s.boolean(),title:s.string(),body:s.string(),actions:s.array(s.object({id:s.enum(["open_url","resend_verification","refresh"]),label:s.string(),url:s.string().nullable().optional()})),resets_at_ms:s.number().int().nullable().optional(),checked_at_ms:s.number().int(),age_ms:s.number().int().nullable().optional(),source:s.enum(["cached","live"])});function da(e){return e.sessionId?{session_id:e.sessionId}:{...e.cwd?{cwd:e.cwd}:{},...e.target?{target:e.target}:{}}}function En(e){return{...e.in!==void 0?{in:e.in}:{},...e.at!==void 0?{at:e.at}:{},...e.every!==void 0?{every:e.every}:{},...e.until!==void 0?{until:e.until}:{},...e.limit!==void 0?{limit:e.limit}:{}}}function yt(e){return{...e.requestId?{request_id:e.requestId}:{},...e.subscribe!==void 0?{subscribe:e.subscribe}:{},...e.autoPush!==void 0?{auto_push:e.autoPush}:{},...e.confirmPublicEgress!==void 0?{confirm_public_egress:e.confirmPublicEgress}:{}}}function _t(e){if(e.visibility==="org"!=!!e.tenantId)throw new Error('A publication target needs both `visibility: "org"` and `tenantId`, or neither: one half would publish to the public hub.')}function vc(e){switch(e.op){case"capabilities":return{path:"/v1/capabilities",method:"GET"};case"runtimes.list":return{path:"/v1/desktop/runtimes?probe=false",method:"GET"};case"peers.list":return{path:"/v1/desktop/peers",method:"GET"};case"networks.list":return{path:"/v1/desktop/networks",method:"GET"};case"asks.list":return{path:"/v1/desktop/asks",method:"GET"};case"networks.invite":return{path:`/v1/desktop/networks/${encodeURIComponent(e.networkId)}/invite`,method:"POST",body:{role:e.role,device:e.deviceId??null}};case"networks.member.remove":return{path:`/v1/desktop/networks/${encodeURIComponent(e.networkId)}/members/${encodeURIComponent(e.deviceId)}`,method:"DELETE",body:{confirm:e.confirm}};case"sessions.transfer":return{path:`/v1/desktop/sessions/${encodeURIComponent(e.sessionId)}/transfer`,method:"POST",body:{to:e.to,keep:e.keep??!1,wait_s:e.waitS??0,...e.requestId?{request_id:e.requestId}:{}}};case"approvals.list":return{path:"/v1/desktop/approvals",method:"GET"};case"approvals.approve":return{path:`/v1/desktop/approvals/${encodeURIComponent(e.approvalId)}/approve`,method:"POST"};case"approvals.deny":return{path:`/v1/desktop/approvals/${encodeURIComponent(e.approvalId)}/deny`,method:"POST"};case"profiles.list":return{path:"/v1/desktop/profiles",method:"GET"};case"profiles.get":return{path:`/v1/desktop/profiles/${encodeURIComponent(e.name)}`,method:"GET"};case"profiles.install":return{path:"/v1/desktop/profiles/install",method:"POST",body:{request_id:e.requestId,name:e.name}};case"profiles.create":return{path:"/v1/desktop/profiles",method:"POST",body:{request_id:e.requestId,name:e.name,...e.fields}};case"profiles.update":return{path:`/v1/desktop/profiles/${encodeURIComponent(e.name)}`,method:"PATCH",body:{request_id:e.requestId,...e.fields,...e.expectedDefinitionRevision!==void 0&&e.expectedDefinitionRevision!==null?{expected_definition_revision:e.expectedDefinitionRevision}:{}}};case"hub.updates":return{path:"/v1/desktop/hub/updates",method:"GET"};case"hub.skillPull":return{path:"/v1/desktop/hub/skills/pull",method:"POST",body:{request_id:e.requestId,hub_id:e.hubId,hub_source:e.hubSource,visibility:e.visibility,tenant_id:e.tenantId,local_alias:e.localAlias,...e.subscribe!==void 0?{subscribe:e.subscribe}:{},...e.autoPush!==void 0?{auto_push:e.autoPush}:{},...e.confirmPublicEgress!==void 0?{confirm_public_egress:e.confirmPublicEgress}:{}}};case"hub.skillPublish":return{path:"/v1/desktop/hub/skills/publish",method:"POST",body:{request_id:e.requestId,dry_run:e.dryRun,source_skill:e.sourceSkill,local_alias:e.localAlias,visibility:e.visibility,tenant_id:e.tenantId,subscribe:e.subscribe,auto_push:e.autoPush,confirm_public_egress:e.confirmPublicEgress,...e.previewReceipt?{preview_receipt:e.previewReceipt}:{},...e.confirmPublish?{confirm_publish:!0}:{}}};case"hub.links":return{path:`/v1/desktop/hub/links${e.kind?`?kind=${e.kind}`:""}`,method:"GET"};case"hub.policy":return{path:`/v1/desktop/hub/links/${encodeURIComponent(e.linkId)}`,method:"PATCH",body:{request_id:e.requestId,expected_policy_revision:e.expectedPolicyRevision,...e.subscribe!==void 0?{subscribe:e.subscribe}:{},...e.autoPush!==void 0?{auto_push:e.autoPush}:{},...e.confirmPublicEgress!==void 0?{confirm_public_egress:e.confirmPublicEgress}:{}}};case"hub.check":return{path:"/v1/desktop/hub/updates/check",method:"POST",body:{request_id:e.requestId,...e.linkId?{link_id:e.linkId}:{},...e.direction?{direction:e.direction}:{},...e.kind?{kind:e.kind}:{},...e.name?{name:e.name}:{}}};case"hub.apply":return{path:"/v1/desktop/hub/updates/apply",method:"POST",body:{request_id:e.requestId,...e.previewReceipt?{preview_receipt:e.previewReceipt}:{},...e.confirmApply?{confirm_apply:!0}:{},...e.linkId?{link_id:e.linkId}:{},...e.direction?{direction:e.direction}:{},...e.kind?{kind:e.kind}:{},...e.name?{name:e.name}:{},...e.prefer?{prefer:e.prefer}:{},...e.acknowledgeUnknownBaseline!==void 0?{acknowledge_unknown_baseline:e.acknowledgeUnknownBaseline}:{},...e.dryRun!==void 0?{dry_run:e.dryRun}:{},...e.resolveSource===!0?{resolve_source:!0,hub_source:e.hubSource,visibility:e.visibility,tenant_id:e.tenantId??null}:{}}};case"hub.applyAll":return{path:"/v1/desktop/hub/updates/apply-all",method:"POST",body:{request_id:e.requestId,...e.kind?{kind:e.kind}:{}}};case"hub.retry":return{path:"/v1/desktop/hub/updates/retry",method:"POST",body:{request_id:e.requestId,...e.linkId?{link_id:e.linkId}:{},...e.direction?{direction:e.direction}:{},...e.kind?{kind:e.kind}:{},...e.name?{name:e.name}:{}}};case"hub.push":return{path:"/v1/desktop/hub/updates/push",method:"POST",body:{request_id:e.requestId,link_id:e.linkId,direction:e.direction,dry_run:e.dryRun,...e.previewReceipt?{preview_receipt:e.previewReceipt}:{},...e.confirmPublish?{confirm_publish:!0}:{}}};case"teams.list":return{path:"/v1/desktop/teams",method:"GET"};case"teams.get":return{path:`/v1/desktop/teams/${encodeURIComponent(e.name)}`,method:"GET"};case"teams.create":return{path:"/v1/desktop/teams",method:"POST",body:{request_id:e.requestId,...e.fields}};case"teams.update":return{path:`/v1/desktop/teams/${encodeURIComponent(e.name)}`,method:"PATCH",body:{request_id:e.requestId,...e.fields,...e.expectedDefinitionRevision!==void 0&&e.expectedDefinitionRevision!==null?{expected_definition_revision:e.expectedDefinitionRevision}:{}}};case"sessions.list":{const t=new URLSearchParams;return t.set("limit",String(e.limit??100)),e.include_archived&&t.set("include_archived","true"),e.scope_kind&&t.set("scope_kind",e.scope_kind),e.scope_name&&t.set("scope_name",e.scope_name),e.cursor&&t.set("cursor",e.cursor),e.with_counts&&t.set("with_counts","true"),e.include_peers&&t.set("include_peers","true"),{path:`/v1/desktop/sessions?${t}`,method:"GET"}}case"delegated_cleanup_notice.ack":return{path:"/v1/desktop/delegated-cleanup-notice/ack",method:"POST"};case"sessions.search":{const t=new URLSearchParams({q:e.q,limit:String(e.limit??to)});return e.include_archived&&t.set("include_archived","true"),{path:`/v1/desktop/sessions/search?${t}`,method:"GET"}}case"sessions.archive":return{path:`/v1/desktop/sessions/${e.sessionId}/archive`,method:"POST",body:{archived:e.archived}};case"sessions.delete":return{path:`/v1/desktop/sessions/${e.sessionId}`,method:"DELETE",body:{confirmed:!0}};case"sessions.create":return{path:"/v1/desktop/sessions",method:"POST",body:{request_id:e.requestId,...e.cwd!==void 0?{cwd:e.cwd}:{},...e.peer?{peer:e.peer}:{},...e.target?{target:e.target}:{},...e.model?{model:e.model}:{},...e.draftId?{draft_id:e.draftId}:{},...e.purpose?{purpose:e.purpose}:{}}};case"sessions.preview":return{path:"/v1/desktop/sessions/preview",method:"POST",body:{request_id:e.requestId,cwd:e.cwd,...e.target?{target:e.target}:{},...e.model?{model:e.model}:{}}};case"sessions.draft":return{path:"/v1/desktop/sessions/draft",method:"POST",body:{request_id:e.requestId,cwd:e.cwd,...e.target?{target:e.target}:{},...e.model?{model:e.model}:{}}};case"sessions.get":{const t=new URLSearchParams;return e.journalOrder&&(t.set("journal_order","1"),e.peerJournalSource&&t.set("peer_journal_source","1"),Pt(t,`/v1/desktop/sessions/${e.sessionId}`,e.orderIds??[])),{path:`/v1/desktop/sessions/${e.sessionId}${t.size?`?${t}`:""}`,method:"GET"}}case"sessions.files":{const t=new URLSearchParams({limit:String(e.limit??200)});for(const n of["scope","kind","q","sort","order","cursor"]){const i=e[n];i!==void 0&&t.set(n,i)}return{path:`/v1/desktop/sessions/${encodeURIComponent(e.sessionId)}/files?${t}`,method:"GET"}}case"sessions.files.materialise":return{path:`/v1/desktop/sessions/${encodeURIComponent(e.sessionId)}/files/${encodeURIComponent(e.fileId)}/materialise`,method:"POST"};case"sessions.history":{const t=new URLSearchParams({limit:String(e.limit??100)});return e.beforeId&&t.set("before_id",e.beforeId),e.openFrame&&(t.set("open_frame","1"),t.set("supplements","1")),e.journalOrder&&(t.set("journal_order","1"),e.peerJournalSource&&t.set("peer_journal_source","1"),e.sourceRead==="metadata"?t.set("source_read","metadata"):e.sourceRead==="payload"&&e.expectedJournalGeneration&&t.set("source_read","payload"),e.expectedJournalGeneration&&t.set("expected_journal_generation",e.expectedJournalGeneration),Pt(t,`/v1/desktop/sessions/${e.sessionId}/history`,e.orderIds??[])),{path:`/v1/desktop/sessions/${e.sessionId}/history?${t}`,method:"GET"}}case"sessions.checkpoints":return{path:`/v1/desktop/sessions/${e.sessionId}/checkpoints`,method:"GET"};case"sessions.checkpoints.warm":return{path:`/v1/desktop/sessions/${e.sessionId}/checkpoints/warm`,method:"POST",body:{...e.ids?{ids:e.ids}:{},...e.limit!==void 0?{limit:e.limit}:{}}};case"sessions.find":{const t=new URLSearchParams({q:e.q,limit:String(e.limit??io)});return{path:`/v1/desktop/sessions/${e.sessionId}/find?${t}`,method:"GET"}}case"subagents.transcript":{const t=new URLSearchParams({limit:String(e.limit??100)});return e.beforeId&&t.set("before_id",e.beforeId),{path:`/v1/desktop/sessions/${e.sessionId}/children/${e.childId}/transcript?${t}`,method:"GET"}}case"sessions.message":return{path:`/v1/desktop/sessions/${e.sessionId}/messages`,method:"POST",body:{request_id:e.requestId,text:e.text,images:e.images??[],mode:e.mode??"prompt",...e.inputMode?{input_mode:e.inputMode}:{},...e.inputPath?{input_path:e.inputPath}:{}}};case"sessions.command":return{path:`/v1/desktop/sessions/${e.sessionId}/commands`,method:"POST",body:{request_id:e.requestId,command:e.command,args:e.args??"",images:e.images??[]}};case"sessions.answer":return e.askId!==void 0?{path:`/v1/desktop/sessions/${e.sessionId}/answers`,method:"POST",body:{ask_id:e.askId,answers:e.answers,decline:e.decline,...e.revise===!0?{revise:!0}:{}}}:{path:`/v1/desktop/sessions/${e.sessionId}/answers`,method:"POST",body:{epoch:e.epoch,request_id:e.requestId,value:e.value,approved:e.approved,question_index:e.questionIndex}};case"sessions.seen":return{path:`/v1/desktop/sessions/${e.sessionId}/seen`,method:"POST",body:{completion_token:e.completionToken}};case"attention.seen":return{path:"/v1/desktop/attention/seen",method:"POST",body:{items:e.items.map(t=>({session_id:t.sessionId,completion_token:t.completionToken}))}};case"sessions.notified":return{path:`/v1/desktop/sessions/${e.sessionId}/notified`,method:"POST",body:{completion_token:e.completionToken}};case"sessions.pin":return{path:`/v1/desktop/sessions/${e.sessionId}/pin`,method:"POST",body:{pinned:e.pinned}};case"sessions.watch":return{path:`/v1/desktop/sessions/${e.sessionId}/watch`,method:"POST",body:{subscription_id:e.subscriptionId,visible:e.visible,can_notify:e.canNotify}};case"sessions.presence":return{path:"/v1/desktop/presence",method:"POST",body:{subscription_id:e.subscriptionId,can_notify_kinds:e.canNotifyKinds,session_id:e.sessionId,window:e.window,can_notify:e.canNotify}};case"sessions.move":return{path:`/v1/desktop/sessions/${e.sessionId}/working-directory`,method:"POST",body:{request_id:e.requestId,cwd:e.cwd}};case"sessions.warm":return{path:`/v1/desktop/sessions/${e.sessionId}/warm`,method:"POST",body:{}};case"sessions.interrupt":return{path:`/v1/desktop/sessions/${e.sessionId}/interrupt`,method:"POST",body:{request_id:e.requestId}};case"supplements.cancel":return{path:`/v1/desktop/sessions/${e.sessionId}/supplements/${e.job}/cancel`,method:"POST",body:{anchor:e.anchor}};case"supplements.restart":return{path:`/v1/desktop/sessions/${e.sessionId}/supplements/${e.job}/restart`,method:"POST",body:{anchor:e.anchor}};case"supplements.steer":return{path:`/v1/desktop/sessions/${e.sessionId}/supplements/${e.job}/steer`,method:"POST",body:{anchor:e.anchor,text:e.text}};case"sessions.variables.list":return{path:`/v1/desktop/sessions/${e.sessionId}/variables`,method:"GET"};case"sessions.variables.create":return{path:`/v1/desktop/sessions/${e.sessionId}/variables`,method:"POST",body:{key:e.key,value:e.value,type:e.type}};case"sessions.variables.update":return{path:`/v1/desktop/sessions/${e.sessionId}/variables/${encodeURIComponent(e.key)}`,method:"PATCH",body:{value:e.value,type:e.type}};case"sessions.variables.delete":return{path:`/v1/desktop/sessions/${e.sessionId}/variables/${encodeURIComponent(e.key)}`,method:"DELETE"};case"legacy.models":{const t=new URLSearchParams;return e.provider&&t.set("provider",e.provider),e.sort&&t.set("sort",e.sort),e.direction&&t.set("direction",e.direction),{path:t.size>0?`/v1/models?${t}`:"/v1/models",method:"GET"}}case"legacy.models.providers":return{path:"/v1/models/providers",method:"GET"};case"auth.probe":return{path:`/v1/auth/providers/${e.provider}/probe`,method:"POST"};case"legacy.agent.upload":return{path:`/v1/agents/${e.agentId}/upload`,method:"POST"};case"agent.publish":{_t(e);const t=new URLSearchParams;e.visibility==="org"&&e.tenantId&&(t.set("visibility","org"),t.set("tenant_id",e.tenantId));const n=t.toString();return{path:`/v1/agents/${e.agentId}/publish${n?`?${n}`:""}`,method:"POST",body:{document:e.document??{},...yt(e)}}}case"agent.republish":{_t(e);const t=new URLSearchParams;e.visibility==="org"&&e.tenantId&&(t.set("visibility","org"),t.set("tenant_id",e.tenantId));const n=t.toString();return{path:`/v1/agents/${e.agentId}/publish${n?`?${n}`:""}`,method:"PUT",body:{hub_agent_id:e.hubAgentId,document:e.document??{},...yt(e),...e.expectedRemoteRevision?{expected_remote_revision:e.expectedRemoteRevision}:{}}}}case"team.publish":{_t(e);const t=new URLSearchParams;return e.visibility==="org"&&e.tenantId&&(t.set("visibility","org"),t.set("tenant_id",e.tenantId)),{path:`/v1/teams/${e.teamId}/publish${t.size?`?${t}`:""}`,method:"POST",body:yt(e)}}case"team.pull":{const t=new URLSearchParams;e.tenantId&&t.set("tenant_id",e.tenantId);const n=t.toString();return{path:`/v1/teams/pull/${e.teamId}${n?`?${n}`:""}`,method:"GET"}}case"agent.nameAvailability":return{path:`/v1/agent-name-availability?${new URLSearchParams({name:e.name})}`,method:"GET"};case"legacy.agents.list":{const t=new URLSearchParams({page:String(e.page??1),per_page:String(e.perPage??10)});return e.name&&t.set("name",e.name),e.sort&&t.set("sort",e.sort),e.direction&&t.set("direction",e.direction),{path:`/v1/agents?${t}`,method:"GET"}}case"legacy.agent.get":return{path:`/v1/agents/${e.agentId}`,method:"GET"};case"legacy.agent.history":{const t=new URLSearchParams({page:String(e.page??1),per_page:String(e.perPage??10)});return{path:`/v1/agents/${e.agentId}/history?${t}`,method:"GET"}}case"wakes.list":{const t=new URLSearchParams;return e.limit!==void 0&&t.set("limit",String(e.limit)),e.includeDormant!==void 0&&t.set("include_dormant",String(e.includeDormant)),{path:t.size>0?`/v1/desktop/wakes?${t}`:"/v1/desktop/wakes",method:"GET"}}case"wakes.create":return{path:"/v1/desktop/wakes",method:"POST",body:{request_id:e.requestId,...da(e),message:e.message,...En(e)}};case"wakes.edit":return{path:`/v1/desktop/wakes/${e.sessionId}/${e.wakeId}`,method:"PATCH",body:{...e.message!==void 0?{message:e.message}:{},...En(e)}};case"wakes.remove":return{path:`/v1/desktop/wakes/${e.sessionId}/${e.wakeId}`,method:"DELETE"};case"monitors.cancel":return{path:`/v1/desktop/monitors/${encodeURIComponent(e.sessionId)}/${encodeURIComponent(e.monitorId)}`,method:"DELETE"};case"jobs.cancel":return{path:`/v1/desktop/sessions/${encodeURIComponent(e.sessionId)}/jobs/${encodeURIComponent(e.jobId)}/cancel`,method:"POST"};case"legacy.jobs.list":{const t=new URLSearchParams;return e.agentId&&t.set("agent_id",e.agentId),e.status&&t.set("status",e.status),{path:t.size>0?`/v1/jobs?${t}`:"/v1/jobs",method:"GET"}}case"legacy.job.get":return{path:`/v1/jobs/${e.jobId}`,method:"GET"};case"legacy.schedules.list":return{path:`/v1/schedules?${new URLSearchParams({page:String(e.page??1),per_page:String(e.perPage??10)})}`,method:"GET"};case"legacy.agent.schedules.list":{const t=new URLSearchParams({page:String(e.page??1),per_page:String(e.perPage??10)});return{path:`/v1/agents/${e.agentId}/schedules?${t}`,method:"GET"}}case"legacy.agent.schedule.create":return{path:`/v1/agents/${e.agentId}/schedules`,method:"POST",body:e.schedule};case"legacy.schedule.get":return{path:`/v1/schedules/${e.scheduleId}`,method:"GET"};case"legacy.schedule.edit":return{path:`/v1/schedules/${e.scheduleId}`,method:"PATCH",body:e.schedule};case"legacy.schedule.remove":return{path:`/v1/schedules/${e.scheduleId}`,method:"DELETE"};case"legacy.agent.create":return{path:"/v1/agents",method:"POST",body:e.agent};case"legacy.agent.update":return{path:`/v1/agents/${e.agentId}`,method:"PATCH",body:e.update};case"legacy.agent.delete":return{path:`/v1/agents/${e.agentId}`,method:"DELETE"};case"legacy.agent.conversation.clear":return{path:`/v1/agents/${e.agentId}/conversation`,method:"DELETE"};case"legacy.agent.systemPrompt.get":return{path:`/v1/agents/${e.agentId}/system-prompt`,method:"GET"};case"legacy.agent.systemPrompt.update":return{path:`/v1/agents/${e.agentId}/system-prompt`,method:"PUT",body:{system_prompt:e.systemPrompt}};case"legacy.agent.download":return{path:`/v1/agents/${e.agentId}/download`,method:"GET"};case"legacy.job.cancel":return{path:`/v1/jobs/${e.jobId}`,method:"DELETE"};case"commands.list":return{path:"/v1/desktop/commands",method:"GET"};case"commands.entities":return{path:`/v1/desktop/sessions/${e.sessionId}/command-entities?command=${encodeURIComponent(e.command)}${e.name?`&name=${encodeURIComponent(e.name)}`:""}`,method:"GET"};case"models.catalogue":{const t=e.scope?`&scope=${e.scope}`:"";return{path:`/v1/desktop/models?live=${e.live??!1}${t}`,method:"GET"}}case"usage.get":{const t=new URLSearchParams({live:String(e.live??!1),refresh:String(e.refresh??!1)});return e.provider&&t.set("provider",e.provider),{path:`/v1/desktop/usage?${t}`,method:"GET"}}case"quota.notice":{const t=new URLSearchParams({refresh:String(e.refresh??!1)});return e.provider&&t.set("provider",e.provider),e.model&&t.set("model",e.model),{path:`/v1/desktop/quota-notice?${t}`,method:"GET"}}case"analytics.get":{const t=new URLSearchParams({days:String(e.days??30)});return e.sessionId&&t.set("session_id",e.sessionId),e.sinceMs!==void 0&&t.set("since_ms",String(e.sinceMs)),e.untilMs!==void 0&&t.set("until_ms",String(e.untilMs)),{path:`/v1/desktop/analytics?${t}`,method:"GET"}}case"analytics.models":{const t=new URLSearchParams({days:String(e.days??30)});return e.sessionId&&t.set("session_id",e.sessionId),e.sinceMs!==void 0&&t.set("since_ms",String(e.sinceMs)),e.untilMs!==void 0&&t.set("until_ms",String(e.untilMs)),{path:`/v1/desktop/analytics/models?${t}`,method:"GET"}}case"info.get":return{path:"/v1/desktop/info",method:"GET"};case"sessions.report":{const t=new URLSearchParams({recent_limit:String(e.recentLimit??12)});return{path:`/v1/desktop/sessions/${e.sessionId}/report?${t}`,method:"GET"}}case"skills.list":{const t=new URLSearchParams;e.sessionId&&t.set("session_id",e.sessionId),e.cwd&&t.set("cwd",e.cwd),e.name&&t.set("name",e.name);const n=t.toString();return{path:`/v1/desktop/skills${n?`?${n}`:""}`,method:"GET"}}case"sessions.failovers":return{path:`/v1/desktop/sessions/${e.sessionId}/failovers`,method:"GET"};case"sessions.credential":return{path:`/v1/desktop/sessions/${e.sessionId}/credentials`,method:"POST",body:{action:e.action,key:e.key,value:e.value,confirmed:e.confirmed}};case"sessions.fork":return{path:`/v1/desktop/sessions/${e.sessionId}/fork`,method:"POST",body:{request_id:e.requestId,message:e.message,boundary:e.boundary,entry_id:e.entryId}};case"sessions.stop":return{path:"/v1/desktop/stop",method:"POST",body:{request_id:e.requestId,targets:e.targets,confirmed:e.confirmed}};case"sessions.aside":return{path:`/v1/desktop/sessions/${e.sessionId}/asides`,method:"POST",body:{request_id:e.requestId,text:e.text,aside_id:e.asideId,subscription_id:e.subscriptionId}};case"sessions.adopt":return{path:`/v1/desktop/sessions/${e.sessionId}/asides/${e.asideId}/adopt`,method:"POST",body:{request_id:e.requestId,confirmed:e.confirmed}};case"sessions.aside.get":case"sessions.aside.close":return{path:`/v1/desktop/sessions/${e.sessionId}/asides/${e.asideId}`,method:e.op==="sessions.aside.get"?"GET":"DELETE"};case"mcp.list":return{path:`/v1/desktop/sessions/${e.sessionId}/mcp`,method:"GET"};case"mcp.credentials.store":return{path:`/v1/desktop/sessions/${e.sessionId}/mcp/credentials`,method:"POST",body:{name:e.name,values:e.values,confirmed_replace:e.confirmedReplace}};case"mcp.control":return{path:`/v1/desktop/sessions/${e.sessionId}/mcp`,method:"POST",body:e.control};case"mcp.catalog":{const t=new URLSearchParams;e.cwd&&t.set("cwd",e.cwd),e.sessionId&&t.set("session_id",e.sessionId);const n=t.toString();return{path:n?`/v1/desktop/mcp?${n}`:"/v1/desktop/mcp",method:"GET"}}case"mcp.catalog.control":return{path:"/v1/desktop/mcp",method:"POST",body:{...e.control,...e.cwd?{cwd:e.cwd}:{}}};case"mcp.catalog.credentials":return{path:"/v1/desktop/mcp/credentials",method:"POST",body:{name:e.name,values:e.values,...e.header?{header:e.header}:{},confirmed_replace:e.confirmedReplace,...e.cwd?{cwd:e.cwd}:{}}};case"radient.request":return{path:"/v1/desktop/radient",method:"POST",body:e.control};case"providers.list":return{path:"/v1/auth/providers",method:"GET"};case"accounts.list":return{path:"/v1/auth/status",method:"GET"};case"accounts.remove":return{path:`/v1/auth/accounts/${e.accountId}`,method:"DELETE"};case"tunnel.setup.read":return{path:e.credentialId===void 0?"/v1/desktop/tunnel/setup":`/v1/desktop/tunnel/setup?credential_id=${e.credentialId}`,method:"GET"};case"tunnel.setup.plan":return{path:"/v1/desktop/tunnel/setup",method:"POST",body:{action:"plan",...e.credentialId!==void 0?{credential_id:e.credentialId}:{}}};case"tunnel.setup.run":return{path:"/v1/desktop/tunnel/setup",method:"POST",body:{action:"run",credential_id:e.credentialId,...e.acceptMonthlyPrice!==void 0?{accept_monthly_price:e.acceptMonthlyPrice}:{}}};case"auth.start":return{path:"/v1/auth/login",method:"POST",body:{provider:e.provider}};case"auth.status":return{path:`/v1/auth/operations/${e.id}`,method:"GET"};case"auth.input":return{path:`/v1/auth/operations/${e.id}/input`,method:"POST",body:{prompt_id:e.promptId,value:e.value}};case"auth.cancel":return{path:`/v1/auth/operations/${e.id}`,method:"DELETE"};case"auth.key":return{path:`/v1/auth/providers/${e.provider}/key`,method:"PUT",body:{value:e.value}};case"auth.logout":return{path:`/v1/auth/providers/${e.provider}/credentials`,method:"DELETE"};case"settings.list":return{path:"/v1/settings",method:"GET"};case"settings.edit":return{path:`/v1/settings/${e.key}`,method:"PATCH",body:{value:e.value,base:e.base}};case"settings.reset":return{path:`/v1/settings/${e.key}/reset`,method:"POST"};case"tts.paths":return{path:"/v1/tts/paths",method:"GET"};case"config.get":return{path:"/v1/config",method:"GET"};case"config.update":return{path:"/v1/config",method:"PATCH",body:e.value};case"instructions.get":return{path:"/v1/config/system-prompt",method:"GET"};case"instructions.update":return{path:"/v1/config/system-prompt",method:"PATCH",body:{content:e.content}};case"credentials.list":return{path:"/v1/credentials",method:"GET"};case"credentials.update":return{path:"/v1/credentials",method:"PATCH",body:{key:e.key,value:e.value}};case"projects.list":return{path:"/v1/desktop/projects",method:"GET"};case"projects.get":return{path:`/v1/desktop/projects/${encodeURIComponent(e.key)}`,method:"GET"};case"projects.create":return{path:"/v1/desktop/projects",method:"POST",body:{name:e.name,...e.description!==void 0?{description:e.description}:{},...e.status!==void 0?{status:e.status}:{},...e.tags!==void 0?{tags:e.tags}:{}}};case"projects.update":return{path:`/v1/desktop/projects/${encodeURIComponent(e.key)}`,method:"PATCH",body:{...e.fields,...e.force_done===!0?{force_done:!0}:{}}};case"projects.delete":return{path:`/v1/desktop/projects/${encodeURIComponent(e.key)}`,method:"DELETE",body:{confirm:e.confirmed_name}};case"projects.link":return{path:`/v1/desktop/projects/${encodeURIComponent(e.key)}/links`,method:"POST",body:{session_id:e.sessionId}};case"projects.unlink":return{path:`/v1/desktop/projects/${encodeURIComponent(e.key)}/links/${encodeURIComponent(e.sessionId)}`,method:"DELETE"};case"projects.milestone":return{path:`/v1/desktop/projects/${encodeURIComponent(e.key)}/milestones`,method:"POST",body:{name:e.name,...e.targetDate!==void 0?{target_date:e.targetDate}:{},...e.completed!==void 0?{completed:e.completed}:{}}};case"projects.milestone.remove":return{path:`/v1/desktop/projects/${encodeURIComponent(e.key)}/milestones/${encodeURIComponent(e.name)}`,method:"DELETE"};case"projects.request_update":return{path:`/v1/desktop/projects/${encodeURIComponent(e.key)}/request-update`,method:"POST"};case"projects.search":return{path:`/v1/desktop/projects/search?${new URLSearchParams({q:e.q,limit:String(e.limit??No)})}`,method:"GET"};case"aida.status":return{path:"/v1/desktop/aida",method:"GET"};case"aida.control":return{path:"/v1/desktop/aida",method:"POST",body:{op:e.action}};case"code_requests.list":return{path:`/v1/desktop/sessions/${e.sessionId}/code-requests`,method:"GET"};case"code_requests.refresh":return{path:`/v1/desktop/sessions/${e.sessionId}/code-requests/refresh`,method:"POST",body:{...e.keys!==void 0?{keys:e.keys}:{},...e.force!==void 0?{force:e.force}:{}}};case"static.sign":return{path:"/v1/static/sign",method:"POST",body:{route:e.route,path:e.path,ttl_s:e.ttlS}}}}const yc=64,_c=64*1024*1024,Tn=e=>{let t;const n=new Set,i=(u,d)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const m=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(P=>P(t,m))}},o=()=>t,l={setState:i,getState:o,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u))},c=t=e(i,o,l);return l},ha=e=>e?Tn(e):Tn,pa=e=>e;function ma(e,t=pa){const n=Yt.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return Yt.useDebugValue(n),n}const In=e=>{const t=ha(e),n=i=>ma(t,i);return Object.assign(n,t),n},ii=e=>e?In(e):In;function si(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var a;const r=c=>c===null?null:JSON.parse(c,void 0),l=(a=n.getItem(o))!=null?a:null;return l instanceof Promise?l.then(r):r(l)},setItem:(o,a)=>n.setItem(o,JSON.stringify(a,void 0)),removeItem:o=>n.removeItem(o)}}const Ot=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(i){return Ot(i)(n)},catch(i){return this}}}catch(n){return{then(i){return this},catch(i){return Ot(i)(n)}}}},fa=(e,t)=>(n,i,o)=>{let a={storage:si(()=>localStorage),partialize:E=>E,version:0,merge:(E,oe)=>({...oe,...E}),...t},r=!1;const l=new Set,c=new Set;let u=a.storage;if(!u)return e((...E)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...E)},i,o);const d=()=>{const E=a.partialize({...i()});return u.setItem(a.name,{state:E,version:a.version})},f=o.setState;o.setState=(E,oe)=>{f(E,oe),d()};const m=e((...E)=>{n(...E),d()},i,o);o.getInitialState=()=>m;let P;const M=()=>{var E,oe;if(!u)return;r=!1,l.forEach(N=>{var F;return N((F=i())!=null?F:m)});const De=((oe=a.onRehydrateStorage)==null?void 0:oe.call(a,(E=i())!=null?E:m))||void 0;return Ot(u.getItem.bind(u))(a.name).then(N=>{if(N)if(typeof N.version=="number"&&N.version!==a.version){if(a.migrate){const F=a.migrate(N.state,N.version);return F instanceof Promise?F.then(ut=>[!0,ut]):[!0,F]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,N.state];return[!1,void 0]}).then(N=>{var F;const[ut,Hi]=N;if(P=a.merge(Hi,(F=i())!=null?F:m),n(P,!0),ut)return d()}).then(()=>{De?.(P,void 0),P=i(),r=!0,c.forEach(N=>N(P))}).catch(N=>{De?.(void 0,N)})};return o.persist={setOptions:E=>{a={...a,...E},E.storage&&(u=E.storage)},clearStorage:()=>{u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>M(),hasHydrated:()=>r,onHydrate:E=>(l.add(E),()=>{l.delete(E)}),onFinishHydration:E=>(c.add(E),()=>{c.delete(E)})},a.skipHydration||M(),P||m},oi=fa,ga=(e,t)=>e!==null&&e.message===t.message&&e.removed===t.removed&&e.max_age_hours===t.max_age_hours&&e.in_progress===t.in_progress&&e.first_removal_at===t.first_removal_at&&e.freed_bytes_estimate===t.freed_bytes_estimate&&e.record===t.record;function kc(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.message!="string"||t.message.trim()==="")return null;const n=(i,o)=>typeof i=="number"&&Number.isFinite(i)?i:o;return{message:t.message,removed:n(t.removed,0),max_age_hours:n(t.max_age_hours,48),in_progress:t.in_progress===!0,first_removal_at:typeof t.first_removal_at=="string"?t.first_removal_at:"",freed_bytes_estimate:typeof t.freed_bytes_estimate=="number"&&Number.isFinite(t.freed_bytes_estimate)?t.freed_bytes_estimate:null,record:typeof t.record=="string"?t.record:""}}const wc=ii()(oi(e=>({notice:null,receive:t=>e(n=>ga(n.notice,t)?n:{notice:t}),dismiss:()=>e(t=>t.notice===null?t:{notice:null})}),{name:"delegated-cleanup-notice",storage:si(()=>{if(typeof localStorage>"u"||localStorage===null)throw new Error("no localStorage in this environment");return localStorage}),partialize:e=>({notice:e.notice})})),Be=260,ai=220,ri=320,At=56,ba=Be,va=1024,li=480,ci=44,ui=400,ya=560;function di(e){return Math.max(0,Math.min(ya,e-li))}function Rn(e){return di(e)>=ui?"docked":"overlay"}function Sc({capacity:e,min:t,max:n,drawn:i}){const o=e>=t;return o?{resizable:o,value:Math.min(Math.max(i,t),e),minWidth:t,maxWidth:Math.min(n,e)}:{resizable:o,value:i,minWidth:i,maxWidth:i}}function _a(e,t=Be,n=ci){return Rn(e-hi(t)-n)==="overlay"&&Rn(e-At-n)==="docked"}function hi(e){return Number.isNaN(e)?Be:Math.min(ri,Math.max(ai,e))}function Ec(e,t,n,i=Be,o=!1,a=ci){if(e>=va){const l=!t&&o&&_a(e,i,a);return{mode:t||l?"strip":"docked",width:t||l?At:hi(i),collapsed:t||l,sheetOpen:!1,resizable:!t&&!l}}return{mode:n?"overlay":"strip",width:n?ba:At,collapsed:!0,sheetOpen:n,resizable:!1}}function Tc(e){return e.shiftKey||e.altKey||!(e.metaKey||e.ctrlKey)?!1:e.key.toLowerCase()==="b"}const Ic=e=>e?"⌘B":"Ctrl+B",ka=["active","created"],Rc={running:"Running",today:"Today",week:"This week",older:"Older"},wa=new Set(["busy","delegating","approval","answer","wedged"]);function st(e){return wa.has(e.status?.code??"")}const Sa=new Set(["approval","answer"]);function Ea(e){return Sa.has(e.status?.code??"")}const Ta=24*60*60*1e3,Ia=e=>{const t=new Date(e);return t.setHours(0,0,0,0),t.getTime()};function $t(e,t){const n=t==="created"?e.created_at:e.updated_at;return typeof n!="number"||!Number.isFinite(n)||n<=0?null:n*1e3}const Ra="last_user_at";function Pa(e){const t=e[Ra],n=typeof t=="number"&&Number.isFinite(t)&&t>0?t:e.created_at;return typeof n!="number"||!Number.isFinite(n)||n<=0?null:n*1e3}function xa(e,t,n){if(st(e))return"running";const i=$t(e,n);if(i===null)return"older";const o=Ia(t);return i>=o?"today":i>=o-6*Ta?"week":"older"}function Pc(e,t,n){const i={running:[],today:[],week:[],older:[]};for(const o of e)i[xa(o,t,n)].push(o);return i}function Ca(e,t,n){const i=$t(e,n);if(i===null)return"";const o=Math.floor(Math.max(0,t-i)/6e4);if(o<1)return"now";if(o<60)return`${o}m`;const a=Math.floor(o/60);if(a<24)return`${a}h`;const r=Math.floor(a/24);if(r<7)return`${r}d`;const l=Math.floor(r/7);return r<365?`${l}w`:`${Math.floor(r/365)}y`}function xc(e,t,n){const i=Ca(e,t,n);if(!i)return"";const o=n==="created"?"created":"last active";if(i==="now")return`${o} just now`;const a={m:"minute",h:"hour",d:"day",w:"week",y:"year"},r=Number.parseInt(i,10),l=a[i.slice(-1)];return`${o} ${r} ${l}${r===1?"":"s"} ago`}const Nt=["pinned","running","today","week","older","agents","teams"],Cc={pinned:"Pinned",running:"Running",today:"Today",week:"This week",older:"Older",agents:"Agents",teams:"Teams"};function Oc(e){return e==="agents"||e==="teams"}const Le=8;function Oa(e,t){if(!(t in e))return e;const n={...e};return delete n[t],n}function Ac(e,t){return{...e,[t]:(e[t]??Le)+Le}}function Nc(e,t,n,i,o){const a=!(e[n]??i);return{expanded:{...e,[n]:a},caps:!a&&!o?Oa(t,n):t}}function Lc(e,t,n,i){return(e||t!=="")&&(i>Le||n.trim()!=="")}const Mc="Collapse, then reopen, to restore the compact list";function Bc(e){return(e??Le)>Le}const jc=e=>`section-grown-hint-${e}`,Aa=e=>e===1?"Show 1 more":`Show ${e} more`;function Dc(e,t){return`${Aa(e)} ${t}`}const _e={hidden:[],order:[...Nt],pins:[],groupBy:"section",basis:"active",orderBy:"active-first",loads:0,pinnedAgents:[]},Na=10,me=[25,50],La=50,Ma=500,Ba=64;function ue(e){const t=Math.max(0,Math.floor(e));return t===0?Na:t<=me.length?me[t-1]:me[me.length-1]+(t-me.length)*La}function Hc(e,t){const n=ue(e+1)-ue(e),i=Math.max(0,Math.min(n,t));return i===1?"Show 1 more chat":`Show ${i} more chats`}function Uc(e,t,n){const i=ue(t+1)-ue(t),o=ue(t),a=Math.min(o+i,e.length);let r=0;for(let c=o;c<a;c+=1)Ft(e[c])&&(r+=1);const l=Math.max(0,a-o-r);return l>0?l:Math.max(0,Math.min(i,n))}function Ft(e){return st(e)}function ja(e){return Ea(e)?0:st(e)?1:2}function Da(e,t){return st(e)?Pa(e):$t(e,t)}function Ha(e,t){return e===null&&t===null?0:e===null?1:t===null?-1:t-e}function $c(e,t,n){const i=e.map((o,a)=>({row:o,index:a,lane:t==="active-first"?ja(o):0,at:Da(o,n)}));return i.sort((o,a)=>o.lane-a.lane||Ha(o.at,a.at)||o.index-a.index),i.map(o=>o.row)}function Fc(e,t){const{limit:n,currentId:i,searching:o=!1}=t;if(o)return{rows:[...e],lifted:!1,remaining:0};const a=[];let r=Math.max(0,n);for(const u of e){if(r>0){a.push(u),r-=1;continue}Ft(u)&&a.push(u)}const l=Math.max(0,e.length-a.length);if(!i)return{rows:a,lifted:!1,remaining:l};const c=e.find(u=>u.session_id===i)??null;return c===null||a.includes(c)?{rows:a,lifted:!1,remaining:l}:{rows:[c,...a],lifted:!0,remaining:l}}function Gc(e,t){if(t.searching)return{rows:[...e],lifted:!1,hidden:0,held:e.length};const n=ue(t.loads),i=[];let o=n;for(const c of e){if(Ft(c)){i.push(c);continue}o>0&&(i.push(c),o-=1)}const a=t.currentId,r=a==null?null:e.find(c=>c.session_id===a)??null,l=r!==null&&!i.includes(r);return{rows:l&&r!==null?[r,...i]:i,lifted:l,hidden:e.length-i.length-(l?1:0),held:e.length}}function Zc(e){if(e.add<=0)return null;const t=e.add===1?"Show 1 more chat":`Show ${e.add} more chats`;if(e.drawn>=e.total)return{label:t,aria:t};const n=`${e.drawn} of ${e.total}`;return{label:`${t} · ${n}`,aria:`${t} · ${n} shown`}}const Ua="mt-4",$a="mt-2";function zc(e){return e?Ua:$a}function Vc(e,t,n,i){return n?e.toLocaleLowerCase().includes(n.toLocaleLowerCase())||(i??"").toLocaleLowerCase().includes(n.toLocaleLowerCase())||t>0:!0}function Wc(e,t){if(t==="section")return null;if(t==="flat")return[{key:"all",label:"",rows:[...e]}];const n=new Map;for(const a of e){const r=a.binding?.team||a.binding?.agent||"",l=r||"ungrouped",c=n.get(l)??{key:l,label:r||"Ungrouped",rows:[]};c.rows.push(a),n.set(l,c)}const i=[...n.values()],o=i.findIndex(a=>a.key==="ungrouped");return o>0&&i.push(...i.splice(o,1)),i}function Fa(e,t){return!e.hidden.includes(t)}function pi(e){return e.order.filter(t=>Fa(e,t))}function Yc(e,t){const n=e.hidden.includes(t)?e.hidden.filter(i=>i!==t):[...e.hidden,t];return{...e,hidden:n}}function Xc(e,t,n){const i=pi(e),o=i.indexOf(t),a=i[o+n];if(o<0||a===void 0)return e;const r=e.order.indexOf(t),l=e.order.indexOf(a),c=[...e.order];return c[r]=a,c[l]=t,{...e,order:c}}const Ga=["running","today","week","older"];function Pn(e){return Ga.includes(e)}function Kc(e,t,n,i){if(!Pn(t)||i&&!i(t))return!1;const o=pi(e),a=o.indexOf(t);if(a<0)return!1;const r=o[a+n];return r===void 0||!Pn(r)?!1:i?i(r):!0}const Za=["section","agent","flat"],za=["active-first","recent"];function Jc(e){if(typeof e!="object"||e===null)return _e;const t=e,n=new Set(Nt),i=[];if(Array.isArray(t.order))for(const m of t.order)typeof m=="string"&&n.has(m)&&(i.includes(m)||i.push(m));for(const m of Nt)i.includes(m)||i.push(m);const o=[];if(Array.isArray(t.hidden))for(const m of t.hidden)typeof m=="string"&&n.has(m)&&(o.includes(m)||o.push(m));const a=Za.includes(t.groupBy)?t.groupBy:_e.groupBy,r=ka.includes(t.basis)?t.basis:_e.basis,l=za.includes(t.orderBy)?t.orderBy:_e.orderBy,c=typeof t.loads=="number"&&Number.isFinite(t.loads)&&t.loads>0?Math.min(Ma,Math.floor(t.loads)):0,u=[];if(Array.isArray(t.pinnedAgents)){for(const m of t.pinnedAgents)if(typeof m=="string"&&m!==""&&!u.includes(m)){if(u.length>=Ba)break;u.push(m)}}const d=[],f=new Set;if(Array.isArray(t.pins))for(const m of t.pins)typeof m=="string"&&m.length!==0&&(f.has(m)||(f.add(m),d.push(m)));return{hidden:o,order:i,groupBy:a,basis:r,orderBy:l,loads:c,pins:d,pinnedAgents:u}}const mi={sort:"recent",order:"asc",group:!0,workingOpen:!1,closedSections:[],kinds:[]},Va=["recent","name","kind","modified","created","size"],Wa=["images","video","audio","documents","spreadsheets","presentations","code","archives","other"];function Gt(e){const t=e&&typeof e=="object"?e:{};return{sort:Va.includes(t.sort??"")?t.sort:mi.sort,order:t.order==="desc"?"desc":"asc",group:typeof t.group=="boolean"?t.group:!0,workingOpen:t.workingOpen===!0,closedSections:Array.isArray(t.closedSections)?[...new Set(t.closedSections.filter(n=>["Highlights","Images","Videos","Documents","Spreadsheets","Other"].includes(n)))]:[],kinds:Array.isArray(t.kinds)?[...new Set(t.kinds.filter(n=>Wa.includes(n)))]:[]}}function Qc(e,t){const n=i=>{switch(t.sort){case"name":return i.row.name;case"kind":return`${i.row.kind}\0${i.row.name}`;case"modified":return i.modified;case"created":return i.created;case"size":return i.row.document.sizeBytes??null;default:return i.mentioned}};return[...e].sort((i,o)=>{const a=n(i),r=n(o);if(a===null||r===null)return a===r?0:a===null?1:-1;const l=typeof a=="string"&&typeof r=="string"?a.localeCompare(r,void 0,{numeric:!0}):Number(a)-Number(r);return(t.order==="asc"?l:-l)||i.mentioned-o.mentioned})}const Ya=e=>{switch(e.row.kind){case"images":return"Images";case"video":return"Videos";case"spreadsheets":return"Spreadsheets";case"documents":case"presentations":case"code":return"Documents";default:return"Other"}};function qc(e,t,n,i){const o=e.filter(l=>l.highlighted),a=e.filter(l=>!l.highlighted),r=[];if(o.length&&r.push({id:"Highlights",label:"Highlights",items:o,open:n||!i.has("Highlights"),highlights:!0}),o.length&&a.length&&(r.push({id:"Working files",label:"Working files",items:[],open:t.workingOpen||n,highlights:!1}),!t.workingOpen&&!n))return r;if(!t.group)a.length&&r.push({id:"Files",label:"Files",items:a,open:!0,highlights:!1});else for(const l of["Images","Videos","Documents","Spreadsheets","Other"]){const c=a.filter(u=>Ya(u)===l);c.length&&r.push({id:l,label:l,items:c,open:n||!i.has(l),highlights:!1})}return r}function eu(e,t,n){const i=[],o=new Map,a=Math.max(136,t-16),r=Math.max(1,Math.floor((a+4)/140));let l=0;const c=(u,d,f,m,P=1)=>{m.forEach((M,E)=>o.set(M.row.document.id,{band:i.length,column:E})),i.push({section:u,kind:d,height:f,top:l,items:m,cols:P}),l+=f};for(const u of e)if(c(u,"header",32,[]),!!u.open)if(u.highlights)for(const d of u.items)c(u,"highlight",d.why?68:44,[d]);else if(n&&u.id==="Images"){const d=(a-4*(r-1))/r,f=Math.round((d-8)*3/4)+32;for(let m=0;m<u.items.length;m+=r)c(u,"tiles",f,u.items.slice(m,m+r),r)}else if(n&&u.id==="Videos")for(const d of u.items)c(u,"video",Math.min(Math.round((a-8)*9/16),280)+32,[d]);else for(const d of u.items)c(u,"compact",36,[d]);return{bands:i,height:l,columns:r,positions:o}}function tu(e,t,n,i){const o=Math.max(600,n*.75);let a=0,r=e.bands.length;for(;a<r;){const u=a+r>>>1,d=e.bands[u];d.top+d.height<t-o?a=u+1:r=u}const l=new Set;for(let u=a;u<e.bands.length&&e.bands[u].top<=t+n+o;u++)l.add(u);const c=i?e.positions.get(i):null;return c&&l.add(c.band),[...l].sort((u,d)=>u-d)}function nu(e,t,n,i){const o=e.positions.get(t);if(!o)return null;const a=e.bands[o.band],r=e.bands.filter(d=>d.section.id===a.section.id&&d.items.length);if(n==="Home")return r[0]?.items[0]?.row.document.id??null;if(n==="End")return r.at(-1)?.items.at(-1)?.row.document.id??null;if(n==="ArrowLeft"||n==="ArrowRight")return a.items[o.column+(n==="ArrowLeft"?-1:1)]?.row.document.id??null;const l=n==="ArrowUp"||n==="PageUp"?-1:1,c=a.top+(n.startsWith("Page")?i*l:l);let u=o.band+l;for(;u>=0&&u<e.bands.length;u+=l){const d=e.bands[u];if(d.items.length&&!(n.startsWith("Page")&&(l>0?d.top<c:d.top>c)))return d.items[Math.min(o.column,d.items.length-1)].row.document.id}if(n.startsWith("Page")){const d=e.bands.filter(m=>m.items.length),f=l<0?d[0]:d.at(-1);return f?.items[l<0?0:f.items.length-1]?.row.document.id??null}return null}const Xa="both",fi="by-turn",Lt=[{value:"by-turn",label:"By turn"},{value:"by-response",label:"By response"}];function iu(e){for(const t of Lt)if(e===t.value)return t.value;return fi}function su(e){return Lt.find(t=>t.value===e)?.label??Lt[0].label}const ou="primary+alt+shift+space",Ka=/^f([1-9]|1[0-9]|2[0-4])$/;function Ja(e){return Ka.test(e)}function Qa(e,t){const n=qa(e,t);return t==="mac"?n.join(""):n.join("+")}function qa(e,t){const i=t==="mac"?{primary:"⌘",meta:"⌘",ctrl:"⌃",alt:"⌥",shift:"⇧"}:{primary:"Ctrl",meta:t==="win"?"Win":"Super",ctrl:"Ctrl",alt:"Alt",shift:"Shift"},o={space:"Space",backspace:"Backspace",delete:"Delete",insert:"Insert",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",up:"Up",down:"Down",left:"Left",right:"Right"};return e.split("+").map(a=>a.trim().toLowerCase()).filter(a=>a.length>0).map(a=>a in i?i[a]:a in o?o[a]:Ja(a)||a.length===1?a.toUpperCase():a)}const ot=[{id:"panel.console",label:"Open console",category:"Panels",defaultChord:"primary+j",scope:"app"},{id:"panel.canvas",label:"Open canvas",category:"Panels",defaultChord:"primary+shift+c",scope:"app"},{id:"panel.run",label:"Open run details",category:"Panels",defaultChord:null,scope:"app"},{id:"panel.ask",label:"Open asks",category:"Panels",defaultChord:null,scope:"app"},{id:"panel.browser",label:"Open browser",category:"Panels",defaultChord:null,scope:"app"},{id:"panel.code",label:"Open code review",category:"Panels",defaultChord:null,scope:"app"}],er=new Map(ot.map(e=>[e.id,e])),tr=e=>er.get(e),nr=new Set(["primary+0","primary+r","primary+shift+r","primary+t","primary+shift+t","primary+l",...[1,2,3,4,5,6,7,8,9].map(e=>`primary+${e}`)]),Zt=new Map([["primary+p","Reserved: opens the command palette from anywhere."],["primary+shift+p","Reserved: opens the command palette on commands."],["primary+shift+s","Reserved: starts speech to text."],["primary+k","Reserved: opens the command palette on chats."],["primary+n","Reserved: starts a new chat."],["primary+b","Reserved: toggles the sidebar."],["primary+[","Reserved: goes back in the browser, or between chats outside it."],["primary+]","Reserved: goes forward in the browser, or between chats outside it."],["primary+f","Reserved: finds in the browser page, or searches the transcript outside it."],["primary+alt+up","Reserved: walks up the chat regions."],["primary+alt+down","Reserved: walks down the chat regions."],["primary+shift+a","Reserved: archives the focused conversation."],["primary+s","Reserved: saves the canvas document."],["primary+o","Reserved: opens a file in the canvas."],["primary+shift+up","Reserved: moves the focused chat up the pinned order."],["primary+shift+down","Reserved: moves the focused chat down the pinned order."],["primary+c","Reserved: copy."],["primary+x","Reserved: cut."],["primary+v","Reserved: paste."],["primary+a","Reserved: select all."],["primary+z","Reserved: undo."],["primary+shift+z","Reserved: redo."],["primary+y","Reserved: redo on Windows and Linux."],["primary+r","Reserved: reloads the browser page."],["primary+shift+r","Reserved: reloads the browser page, ignoring the cache."],["primary+t","Reserved: opens a new browser tab."],["primary+shift+t","Reserved: reopens the last closed browser tab."],["primary+l","Reserved: focuses the browser address bar."],...[1,2,3,4,5,6,7,8,9].map(e=>[`primary+${e}`,e===9?"Reserved: switches to the last browser tab.":`Reserved: switches to browser tab ${e}.`]),["primary+0","Reserved: resets browser page zoom, or app zoom outside it."],["primary+plus","Reserved: zooms the browser page or app in."],["primary+=","Reserved: zooms the browser page or app in."],["primary+-","Reserved: zooms the browser page or app out."],["primary+q","Reserved: quits the app."],["primary+w","Reserved: closes the browser tab, or the window outside it."],["primary+m","Reserved: minimises the window."]]),ir=["primary","alt","shift"],sr={primary:"primary",meta:"primary",cmd:"primary",command:"primary",super:"primary",ctrl:"primary",control:"primary",alt:"alt",option:"alt",shift:"shift"},or=new Set(["space","backspace","delete","insert","home","end","pageup","pagedown","up","down","left","right"]),ar=e=>or.has(e)||/^[a-z0-9]$/.test(e);function zt(e){if(typeof e!="string")return null;const t=e.toLowerCase().split("+").map(a=>a.trim()).filter(a=>a.length>0);if(t.length===0)return null;const n=t[t.length-1];if(!ar(n))return null;const i=new Set;for(const a of t.slice(0,-1)){const r=sr[a];if(r===void 0)return null;i.add(r)}return[...ir.filter(a=>i.has(a)),n].join("+")}const gi=e=>e.split("+").includes("primary");function at(e,t){const n=t?.[e];return n===null?null:typeof n=="string"&&!Zt.has(n)?n:tr(e)?.defaultChord??null}function au(e){const t=new Map;for(const n of ot){const i=at(n.id,e);i!==null&&!t.has(i)&&t.set(i,n.id)}return t}const rr=e=>e==="mac"?"A shortcut needs ⌘ or Ctrl.":"A shortcut needs Ctrl.";function lr(e,t,n,i="linux"){const o=e===null?null:zt(e);if(o===null)return"That key cannot be bound.";if(!gi(o))return rr(i);const a=Zt.get(o);if(a!==void 0)return a;for(const r of ot)if(r.id!==t&&at(r.id,n)===o)return`Already assigned to ${r.label}.`;return null}function cr(e){if(e===null||typeof e!="object"||Array.isArray(e))return{};const t=e,n=new Set,i={};for(const o of ot){const a=t[o.id];if(a===null){i[o.id]=null;continue}const r=typeof a=="string"?zt(a):null,l=r!==null&&nr.has(r),c=r!==null&&gi(r)&&(l||!Zt.has(r)&&!n.has(r))?r:null;c!==null&&(i[o.id]=c);const u=at(o.id,i);u!==null&&n.add(u)}return i}function ru(e,t,n){const i=at(e,t);return i===null?null:bi(i,n)}function bi(e,t){return Qa(e,t)}function lu(e,t){const n=e.split("+"),i=n[n.length-1],o=n.slice(0,-1).map(a=>a==="primary"?t==="mac"?"Meta":"Control":a==="shift"?"Shift":a==="alt"?"Alt":a);return{glyph:bi(e,t),aria:[...o,i.length===1?i.toUpperCase():i].join("+")}}const xn=64,Mt=["canvas","run","browser","console","code"],ur={canvas:"isCanvasOpen",run:"isRunPanelOpen",browser:"isBrowserPaneOpen",console:"isConsolePaneOpen",code:"isCodeReviewPaneOpen"};function vi(e){return typeof e=="string"&&Mt.includes(e)}function Vt(e){return e.startsWith("draft:")}function rt(e,t){for(let n=e.length-1;n>=0;n-=1){const i=e[n];if(i[0]===t)return i[1]}}function Wt(e){return e.length>xn?e.slice(e.length-xn):e}function yi(e,t,n){return Wt([...e.filter(([i])=>i!==t),[t,n]])}function dr(e,t,n){return rt(e,t)!==n?e:e.filter(([i])=>i!==t)}function hr(e,t,n){const i=rt(e,t);return i===void 0?e:Wt([...e.filter(([o])=>o!==t&&o!==n),[n,i]])}const Cn=Object.freeze({isCanvasOpen:!1,isRunPanelOpen:!1,isBrowserPaneOpen:!1,isConsolePaneOpen:!1,isCodeReviewPaneOpen:!1});function On(e,t,n){if(n||typeof t!="string")return Cn;const i=rt(e,t);return i===void 0?Cn:{isCanvasOpen:i==="canvas",isRunPanelOpen:i==="run",isBrowserPaneOpen:i==="browser",isConsolePaneOpen:i==="console",isCodeReviewPaneOpen:i==="code"}}function pr(e){if(!Array.isArray(e))return[];const t=new Map;for(const n of e){if(!Array.isArray(n)||n.length!==2)continue;const[i,o]=n;typeof i!="string"||i===""||Vt(i)||vi(o)&&(t.delete(i),t.set(i,o))}return Wt([...t.entries()])}function cu(e){const t=new Set(Object.keys(e.forgotten));for(const[n,i]of Object.entries(e.archiveFacts))i?.archived===!0&&i.answered===!0&&t.add(n);return t}function An(e){return ur[e]}const mr={canvas:"isCanvasOpen",run:"isRunPanelOpen",browser:"isBrowserPaneOpen",console:"isConsolePaneOpen",code:"isCodeReviewPaneOpen"},je=e=>e.isCanvasOpen?"canvas":e.isRunPanelOpen?"run":e.isBrowserPaneOpen?"browser":e.isConsolePaneOpen?"console":e.isCodeReviewPaneOpen?"code":e.isAskDrawerOpen?"ask":null,lt=(e,t)=>e==="ask"?t.askDrawerScope==="fleet"||t.rightSlotRoute.mounted&&t.rightSlotRoute.session:t.rightSlotRoute.mounted?e==="code"?t.rightSlotRoute.session&&t.rightSlotRoute.codeReview:e!=="run"||t.rightSlotRoute.runDetails:!1,fr=e=>{const t=je(e);return t===null||t==="ask"?null:mr[t]},Y=e=>({isRunPanelOpen:e==="isRunPanelOpen",isCanvasOpen:e==="isCanvasOpen",isBrowserPaneOpen:e==="isBrowserPaneOpen",isConsolePaneOpen:e==="isConsolePaneOpen",isCodeReviewPaneOpen:e==="isCodeReviewPaneOpen",isAskDrawerOpen:e==="isAskDrawerOpen",askDrawerEvictedPane:null}),q=(e,t)=>{const n=e.rightSlotKey;return typeof n!="string"?{}:{rightSlotMemory:yi(e.rightSlotMemory,n,t)}},fe=(e,t)=>{const n=e.rightSlotKey;if(typeof n!="string")return{};const i=dr(e.rightSlotMemory,n,t);return i===e.rightSlotMemory?{}:{rightSlotMemory:i}},gr=Object.freeze({mounted:!1,runDetails:!1,session:!1,codeReview:!1,asksOffered:!1}),_i=Object.freeze([]);function uu(e,t){const n=je(t);if(n===null||!lt(n,t))return 0;let i;switch(n){case"canvas":case"ask":i=Math.max(ui,t.rightSlotWidth||ge);break;case"run":i=Math.max(Ln,t.rightSlotWidth||ge);break;case"browser":i=Math.max(_r,t.rightSlotWidth||ge);break;case"console":i=Math.max(kr,t.rightSlotWidth||ge);break;case"code":i=Math.max(Ln,t.rightSlotWidth||ge);break}return e<=0?i:n==="canvas"||n==="ask"?Math.min(i,di(e)):Math.min(i,Math.max(0,e-li))}function du(e){const t=je(e);return t!==null&<(t,e)}function hu(e){const t=je(e);return t!==null&<(t,e)?t:null}function pu(e){const t=je(e);return(t==="canvas"||t==="ask")&<(t,e)}const ge=640,Nn=Be,br=20,vr=4,yr=20,Ln=320,_r=480,kr=480,wr=5e3,mu=(e,t)=>e.some(n=>n.surface===t),fu=(e,t=Date.now())=>e.some(n=>t-n.at<wr),Sr=[],Er=4,Tr=["chatMeasureWidth"],gu=ii()(oi((e,t)=>({finderFiles:mi,setFinderFiles:n=>e({finderFiles:Gt({...t().finderFiles,...n})}),isCommandPaletteOpen:!1,commandPaletteQuery:"",isSidebarCollapsed:!1,showAgentReasoning:!1,transcriptDisplayMode:fi,themeName:Ui,rightSlotWidth:0,chatSidebarWidth:Nn,chatSidebarRegions:Xa,chatSidebarView:_e,chatSidebarListHeight:null,chatSidebarOrder:"entities-first",dismissedBuiltinOfferSignature:"",isCanvasOpen:!1,isRunPanelOpen:!1,isBrowserPaneOpen:!1,isConsolePaneOpen:!1,isCodeReviewPaneOpen:!1,rightSlotKey:void 0,rightSlotMemory:_i,rightSlotLegacySeed:null,isAskDrawerOpen:!1,askDrawerScope:"session",askDrawerEvictedPane:null,askOpenIntent:null,rightSlotRoute:gr,consoleOpenIntent:null,runPanelReveal:null,codeReviewReveal:null,browserPaneScope:"conversation",consoleActiveSurface:null,consoleUnseen:Sr,isCreateAgentDialogOpen:!1,mentionRecents:null,profileRecents:{agent:[],team:[]},conversationRecents:[],shortcutBindings:{},openCreateAgentDialog:()=>{e({isCreateAgentDialogOpen:!0})},closeCreateAgentDialog:()=>{e({isCreateAgentDialogOpen:!1})},openCommandPalette:()=>{e({isCommandPaletteOpen:!0})},closeCommandPalette:()=>{e({isCommandPaletteOpen:!1,commandPaletteQuery:""})},toggleCommandPalette:(n="")=>{e(i=>({isCommandPaletteOpen:!i.isCommandPaletteOpen,commandPaletteQuery:i.isCommandPaletteOpen?i.commandPaletteQuery:n}))},setCommandPaletteQuery:n=>{e({commandPaletteQuery:n})},toggleSidebar:()=>{e(n=>({isSidebarCollapsed:!n.isSidebarCollapsed}))},setSidebarCollapsed:n=>{e({isSidebarCollapsed:n})},setShowAgentReasoning:n=>{e({showAgentReasoning:n})},setTranscriptDisplayMode:n=>{e({transcriptDisplayMode:n})},setTheme:n=>{e({themeName:n})},setCanvasOpen:n=>{e(i=>n?{...Y("isCanvasOpen"),...q(i,"canvas")}:{isCanvasOpen:!1,...fe(i,"canvas")})},setRunPanelOpen:n=>{e(i=>n?{...Y("isRunPanelOpen"),...q(i,"run")}:{isRunPanelOpen:!1,...fe(i,"run")})},setBrowserPaneOpen:n=>{e(i=>n?{...Y("isBrowserPaneOpen"),...q(i,"browser")}:{isBrowserPaneOpen:!1,...fe(i,"browser")})},setConsolePaneOpen:n=>{e(i=>n?{...Y("isConsolePaneOpen"),...q(i,"console")}:{isConsolePaneOpen:!1,...fe(i,"console")})},setCodeReviewPaneOpen:n=>{e(i=>n?{...Y("isCodeReviewPaneOpen"),...q(i,"code")}:{isCodeReviewPaneOpen:!1,...fe(i,"code")})},clearCodeReviewReveal:n=>{e(i=>i.codeReviewReveal?.nonce===n?{codeReviewReveal:null}:{})},revealCodeReviewPane:()=>{e(n=>({...Y("isCodeReviewPaneOpen"),...q(n,"code"),codeReviewReveal:{nonce:(n.codeReviewReveal?.nonce??0)+1}}))},setAskDrawerOpen:(n,i)=>{e(o=>{const a=typeof o.rightSlotKey=="string";if(n)return{...Y("isAskDrawerOpen"),askDrawerScope:i,askDrawerEvictedPane:a?null:fr(o),askOpenIntent:null};const r={isAskDrawerOpen:!1,askDrawerEvictedPane:null,askOpenIntent:null};return a?{...r,...On(o.rightSlotMemory,o.rightSlotKey,!1)}:o.rightSlotKey===null?r:{...r,...o.askDrawerEvictedPane===null?null:{[o.askDrawerEvictedPane]:!0}}})},requestAskOpen:n=>{e({askOpenIntent:n})},clearAskOpenIntent:n=>{e(i=>i.askOpenIntent===n?{askOpenIntent:null}:{})},setConsoleActiveSurface:n=>{e({consoleActiveSurface:n})},requestConsoleOpen:n=>{e({consoleOpenIntent:n})},clearConsoleOpenIntent:n=>{e(i=>i.consoleOpenIntent===n?{consoleOpenIntent:null}:{})},markConsoleUnseen:(n,i)=>{e(o=>o.consoleUnseen.some(a=>a.surface===i)?{}:{consoleUnseen:[...o.consoleUnseen,{sessionId:n,surface:i,at:Date.now()}]})},clearConsoleUnseen:n=>{const i=Array.isArray(n)?n:[n];e(o=>{const a=o.consoleUnseen.filter(r=>!i.includes(r.surface));return a.length===o.consoleUnseen.length?{}:{consoleUnseen:a}})},setRightSlotWidth:n=>{e({rightSlotWidth:n})},restoreDefaultRightSlotWidth:()=>{e({rightSlotWidth:0})},bindRightSlotKey:(n,i)=>{e(o=>{let a=o.rightSlotMemory,r=o.rightSlotLegacySeed;const l=i?.admittedFrom;return typeof l=="string"&&typeof n=="string"&&(a=hr(a,l,n)),n===null||(Vt(n)?r=null:r!==null&&rt(a,n)===void 0&&(a=yi(a,n,r),r=null)),{rightSlotKey:n,rightSlotMemory:a,rightSlotLegacySeed:r,...On(a,n,o.isAskDrawerOpen)}})},setRightSlotRoute:n=>{const i=t().rightSlotRoute;i.mounted===n.mounted&&i.runDetails===n.runDetails&&i.session===n.session&&i.codeReview===n.codeReview&&i.asksOffered===n.asksOffered||e({rightSlotRoute:{...n}})},setShortcutBinding:(n,i)=>{if(i===null){e(a=>{const r={...a.shortcutBindings};return delete r[n],{shortcutBindings:r}});return}const o=zt(i);o!==null&&lr(o,n,t().shortcutBindings)===null&&e(a=>({shortcutBindings:{...a.shortcutBindings,[n]:o}}))},clearShortcutBinding:n=>{e(i=>({shortcutBindings:{...i.shortcutBindings,[n]:null}}))},setBrowserPaneScope:n=>{e({browserPaneScope:n})},revealRunPanelSection:n=>{e(i=>({...Y("isRunPanelOpen"),...q(i,"run"),runPanelReveal:{section:n,nonce:(i.runPanelReveal?.nonce??0)+1}}))},clearRunPanelReveal:n=>{e(i=>i.runPanelReveal?.nonce===n?{runPanelReveal:null}:{})},setChatSidebarWidth:n=>{e({chatSidebarWidth:Math.min(ri,Math.max(ai,n))})},setChatSidebarRegions:n=>{e({chatSidebarRegions:n})},setChatSidebarListHeight:n=>{e({chatSidebarListHeight:n})},restoreDefaultChatSidebarListHeight:()=>{e({chatSidebarListHeight:null})},setChatSidebarOrder:n=>{e({chatSidebarOrder:n})},setChatSidebarView:n=>{e({chatSidebarView:n})},dismissBuiltinOffer:n=>{e({dismissedBuiltinOfferSignature:n})},restoreDefaultChatSidebarWidth:()=>{e({chatSidebarWidth:Nn})},rememberMention:(n,i)=>{e(o=>{const a=o.mentionRecents,r=a?.cwd===n?a.paths:[],l=[i,...r.filter(c=>c!==i)].slice(0,br);return{mentionRecents:{cwd:n,paths:l}}})},rememberProfile:(n,i)=>{e(o=>({profileRecents:{...o.profileRecents,[n]:Ir(o.profileRecents[n]??[],i)}}))},rememberConversation:n=>{e(i=>{const o=xr(i.conversationRecents),a=Rr(o,n);return a.length===o.length&&a.every((r,l)=>r===o[l])?i:{conversationRecents:a}})}}),{name:"ui-preferences-storage",version:Er,migrate:Nr,partialize:Cr,merge:Ar}));function Ir(e,t){return[t,...e.filter(n=>n!==t)].slice(0,vr)}function Rr(e,t){return[t,...e.filter(n=>n!==t)].slice(0,yr)}const Pr=[];function xr(e){return Array.isArray(e)?e:Pr}function Cr(e){const{runPanelReveal:t,codeReviewReveal:n,consoleOpenIntent:i,askOpenIntent:o,isAskDrawerOpen:a,askDrawerScope:r,askDrawerEvictedPane:l,rightSlotRoute:c,isCanvasOpen:u,isRunPanelOpen:d,isBrowserPaneOpen:f,isConsolePaneOpen:m,isCodeReviewPaneOpen:P,rightSlotKey:M,...E}=e;return{...E,rightSlotMemory:Or(e.rightSlotMemory)}}function Or(e){return(e??_i).filter(([t])=>!Vt(t))}function Ar(e,t){const n=e??{},{isCanvasOpen:i,isRunPanelOpen:o,isBrowserPaneOpen:a,isConsolePaneOpen:r,isCodeReviewPaneOpen:l,...c}=n;return{...t,...c,finderFiles:Gt(n.finderFiles),rightSlotKey:t.rightSlotKey,rightSlotMemory:pr(n.rightSlotMemory),rightSlotLegacySeed:vi(n.rightSlotLegacySeed)?n.rightSlotLegacySeed:null,shortcutBindings:cr(n.shortcutBindings)}}function Nr(e,t){const n={...e??{}};if(t<1&&Lr(n),t<2)for(const i of Tr)delete n[i];if(t<3){let i=null;for(const o of Mt)if(n[An(o)]===!0){i=o;break}i!==null&&(n.rightSlotLegacySeed=i);for(const o of Mt)delete n[An(o)]}return t<4&&(n.finderFiles=Gt(n.finderFiles)),n}function Lr(e){const t=[["canvasWidth",800],["runPanelWidth",420],["browserPanelWidth",640],["consolePanelWidth",796]];let n=0;for(const[i,o]of t){const a=e[i];if(typeof a=="number"&&a>0&&a!==o){n=a;break}}for(const[i]of t)delete e[i];e.rightSlotWidth=n}function kt(e,t){const n=t&&t.cache?t.cache:$r,i=t&&t.serializer?t.serializer:Hr;return(t&&t.strategy?t.strategy:jr)(e,{cache:n,serializer:i})}function Mr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Br(e,t,n,i){const o=Mr(i)?i:n(i);let a=t.get(o);return typeof a>"u"&&(a=e.call(this,i),t.set(o,a)),a}function ki(e,t,n){const i=Array.prototype.slice.call(arguments,3),o=n(i);let a=t.get(o);return typeof a>"u"&&(a=e.apply(this,i),t.set(o,a)),a}function wi(e,t,n,i,o){return n.bind(t,e,i,o)}function jr(e,t){const n=e.length===1?Br:ki;return wi(e,this,n,t.cache.create(),t.serializer)}function Dr(e,t){return wi(e,this,ki,t.cache.create(),t.serializer)}const Hr=function(){return JSON.stringify(arguments)};var Ur=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};const $r={create:function(){return new Ur}},wt={variadic:Dr},Fr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Gr(e){const t={};return e.replace(Fr,n=>{const i=n.length;switch(n[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-3];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-3];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}const Zr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function zr(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");const t=e.split(Zr).filter(i=>i.length>0),n=[];for(const i of t){let o=i.split("/");if(o.length===0)throw new Error("Invalid number skeleton");const[a,...r]=o;for(const l of r)if(l.length===0)throw new Error("Invalid number skeleton");n.push({stem:a,options:r})}return n}function Vr(e){return e.replace(/^(.*?)-/,"")}const Mn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Si=/^(@+)?(\+|#+)?[rs]?$/g,Wr=/(\*)(0+)|(#+)(0+)|(0+)/g,Ei=/^(0+)$/;function Bn(e){const t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Si,function(n,i,o){return typeof o!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):o==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof o=="string"?o.length:0)),""}),t}function Ti(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Yr(e){let t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){const n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ei.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function jn(e){const t={},n=Ti(e);return n||t}function Xr(e){let t={};for(const n of e){switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Vr(n.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...n.options.reduce((a,r)=>({...a,...jn(r)}),{})};continue;case"engineering":t={...t,notation:"engineering",...n.options.reduce((a,r)=>({...a,...jn(r)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Wr,function(a,r,l,c,u,d){if(r)t.minimumIntegerDigits=l.length;else{if(c&&u)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ei.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(Mn.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Mn,function(r,l,c,u,d,f){return c==="*"?t.minimumFractionDigits=l.length:u&&u[0]==="#"?t.maximumFractionDigits=u.length:d&&f?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+f.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});const a=n.options[0];a==="w"?t={...t,trailingZeroDisplay:"stripIfInteger"}:a&&(t={...t,...Bn(a)});continue}if(Si.test(n.stem)){t={...t,...Bn(n.stem)};continue}const i=Ti(n.stem);i&&(t={...t,...i});const o=Yr(n.stem);o&&(t={...t,...o})}return t}let Kr=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",e}({});function Dn(e){return e.type===0}function Jr(e){return e.type===1}function Ii(e){return e.type===2}function Ri(e){return e.type===3}function Pi(e){return e.type===4}function xi(e){return e.type===5}function Ci(e){return e.type===6}function Qr(e){return e.type===7}function Oi(e){return e.type===8}function Ai(e){return!!(e&&typeof e=="object"&&e.type===0)}function Bt(e){return!!(e&&typeof e=="object"&&e.type===1)}const Ni=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,qr=/([^\t-\r -\/:-@\[-\^`\{-~\x85\xA0-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u1680\u2000-\u200A\u2010-\u2029\u202F-\u203E\u2041-\u2053\u2055-\u205F\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3000-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]*)/g,be={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function el(e,t){let n="";for(let i=0;i<e.length;i++){const o=e.charAt(i);if(o==="j"){let a=0;for(;i+1<e.length&&e.charAt(i+1)===o;)a++,i++;let r=1+(a&1),l=a<2?1:3+(a>>1),c="a",u=tl(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)n+=c;for(;r-- >0;)n=u+n}else o==="J"?n+="H":n+=o}return n}function tl(e){let t=e.hourCycle;if(t===void 0){const o=e;t=o.getHourCycles?.()[0]??o.hourCycles?.[0]}if(t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}const n=e.language;let i;return n!=="root"&&(i=e.maximize().region),(be[`${n}-${i}`]||be[i||""]||be[n||""]||be[`${n}-001`]||be["001"])[0].charAt(0)}const nl=new RegExp(`^${Ni.source}*`),il=new RegExp(`${Ni.source}*$`);function T(e,t){return{start:e,end:t}}const sl=!!Object.fromEntries,ol=!!String.prototype.trimStart,al=!!String.prototype.trimEnd,Hn=sl?Object.fromEntries:function(t){const n={};for(const[i,o]of t)n[i]=o;return n},rl=ol?function(t){return t.trimStart()}:function(t){return t.replace(nl,"")},ll=al?function(t){return t.trimEnd()}:function(t){return t.replace(il,"")};let Un=cl();function cl(){try{const e=new RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");if(e.exec("a ")?.[1]==="a")return e}catch{}return qr}function ul(e,t){return Un.lastIndex=t,Un.exec(e)[1]??""}function dl(e){if(e.length===0)return null;let t=1,n=1;for(let i=0;i<e.length;){const o=e.charCodeAt(i);switch(o){case 35:case 39:case 60:case 123:case 125:return null}if(o===10)t++,n=1,i++;else if(n++,o>=55296&&o<=56319&&i+1<e.length){const a=e.charCodeAt(i+1);i+=a>=56320&&a<=57343?2:1}else i++}return{offset:e.length,line:t,column:n}}var hl=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(this.offset()!==0)throw Error("parser can only be used once");if(this.message.length>0){const e=this.message.charCodeAt(0);if(e!==35&&e!==39&&e!==60&&e!==123&&e!==125){const t=dl(this.message);if(t){const n=this.clonePosition();return this.position=t,{val:[{type:0,value:this.message,location:T(n,this.clonePosition())}],err:null}}}}return this.parseMessage(0,"",!1)}parseMessage(e,t,n){let i=[];for(;!this.isEOF();){const o=this.char();if(o===123){const a=this.parseArgument(e,n);if(a.err)return a;i.push(a.val)}else{if(o===125&&e>0)break;if(o===35&&(t==="plural"||t==="selectordinal")){const a=this.clonePosition();this.bump(),i.push({type:7,location:T(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(26,T(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&jt(this.peek()||0)){const a=this.parseTag(e,t);if(a.err)return a;i.push(a.val)}else{const a=this.parseLiteral(e,t);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}}parseTag(e,t){const n=this.clonePosition();this.bump();const i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:0,value:`<${i}/>`,location:T(n,this.clonePosition())},err:null};if(this.bumpIf(">")){const o=this.parseMessage(e+1,t,!0);if(o.err)return o;const a=o.val,r=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!jt(this.char()))return this.error(23,T(r,this.clonePosition()));const l=this.clonePosition();return i!==this.parseTagName()?this.error(26,T(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:8,value:i,children:a,location:T(n,this.clonePosition())},err:null}:this.error(23,T(r,this.clonePosition())))}else return this.error(27,T(n,this.clonePosition()))}else return this.error(23,T(n,this.clonePosition()))}parseTagName(){const e=this.offset();for(this.bump();!this.isEOF()&&ml(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){const n=this.clonePosition();let i="";for(;;){const a=this.tryParseQuote(t);if(a){i+=a;continue}const r=this.tryParseUnquoted(e,t);if(r){i+=r;continue}const l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}const o=T(n,this.clonePosition());return{val:{type:0,value:i,location:o},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!pl(this.peek()||0))?(this.bump(),"<"):null}tryParseQuote(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();const t=[this.char()];for(this.bump();!this.isEOF();){const n=this.char();if(n===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(n);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;const n=this.char();return n===60||n===123||n===35&&(t==="plural"||t==="selectordinal")||n===125&&e>0?null:(this.bump(),String.fromCodePoint(n))}parseArgument(e,t){const n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,T(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,T(n,this.clonePosition()));let i=this.parseIdentifierIfPossible().value;if(!i)return this.error(3,T(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,T(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:i,location:T(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,T(n,this.clonePosition())):this.parseArgumentOptions(e,t,i,n);default:return this.error(3,T(n,this.clonePosition()))}}parseIdentifierIfPossible(){const e=this.clonePosition(),t=this.offset(),n=ul(this.message,t),i=t+n.length;return this.bumpTo(i),{value:n,location:T(e,this.clonePosition())}}parseArgumentOptions(e,t,n,i){let o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,r=this.clonePosition();switch(a){case"":return this.error(4,T(o,r));case"number":case"date":case"time":{this.bumpSpace();let l=null;if(this.bumpIf(",")){this.bumpSpace();const d=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;const m=ll(f.val);if(m.length===0)return this.error(6,T(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:T(d,this.clonePosition())}}const c=this.tryParseArgumentClose(i);if(c.err)return c;const u=T(i,this.clonePosition());if(l&&l.style.startsWith("::")){let d=rl(l.style.slice(2));if(a==="number"){const f=this.parseNumberSkeletonFromString(d,l.styleLocation);return f.err?f:{val:{type:2,value:n,location:u,style:f.val},err:null}}else{if(d.length===0)return this.error(10,u);let f=d;this.locale&&(f=el(d,this.locale));const m={type:1,pattern:f,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Gr(f):{}};return{val:{type:a==="date"?3:4,value:n,location:u,style:m},err:null}}}return{val:{type:a==="number"?2:a==="date"?3:4,value:n,location:u,style:l?.style??null},err:null}}case"plural":case"selectordinal":case"select":{const l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(12,T(l,{...l}));this.bumpSpace();let c=this.parseIdentifierIfPossible(),u=0;if(a!=="select"&&c.value==="offset"){if(!this.bumpIf(":"))return this.error(13,T(this.clonePosition(),this.clonePosition()));this.bumpSpace();const P=this.tryParseDecimalInteger(13,14);if(P.err)return P;this.bumpSpace(),c=this.parseIdentifierIfPossible(),u=P.val}const d=this.tryParsePluralOrSelectOptions(e,a,t,c);if(d.err)return d;const f=this.tryParseArgumentClose(i);if(f.err)return f;const m=T(i,this.clonePosition());return a==="select"?{val:{type:5,value:n,options:Hn(d.val),location:m},err:null}:{val:{type:6,value:n,options:Hn(d.val),offset:u,pluralType:a==="plural"?"cardinal":"ordinal",location:m},err:null}}default:return this.error(5,T(o,r))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,T(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0;const t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(11,T(n,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(e>0)e-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let n=[];try{n=zr(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?Xr(n):{}},err:null}}tryParsePluralOrSelectOptions(e,t,n,i){let o=!1;const a=[],r=new Set;let{value:l,location:c}=i;for(;;){if(l.length===0){const m=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){const P=this.tryParseDecimalInteger(16,19);if(P.err)return P;c=T(m,this.clonePosition()),l=this.message.slice(m.offset,this.offset())}else break}if(r.has(l))return this.error(t==="select"?21:20,c);l==="other"&&(o=!0),this.bumpSpace();const u=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?17:18,T(this.clonePosition(),this.clonePosition()));const d=this.parseMessage(e+1,t,n);if(d.err)return d;const f=this.tryParseArgumentClose(u);if(f.err)return f;a.push([l,{value:d.val,location:T(u,this.clonePosition())}]),r.add(l),this.bumpSpace(),{value:l,location:c}=this.parseIdentifierIfPossible()}return a.length===0?this.error(t==="select"?15:16,T(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(22,T(this.clonePosition(),this.clonePosition())):{val:a,err:null}}tryParseDecimalInteger(e,t){let n=1;const i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);let o=!1,a=0;for(;!this.isEOF();){const l=this.char();if(l>=48&&l<=57)o=!0,a=a*10+(l-48),this.bump();else break}const r=T(i,this.clonePosition());return o?(a*=n,Number.isSafeInteger(a)?{val:a,err:null}:this.error(t,r)):this.error(e,r)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){const e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");const t=this.message.codePointAt(e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;const e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){const t=this.offset();if(this.message.slice(t,t+e.length)===e){for(let n=0;n<e.length;n++)this.bump();return!0}return!1}bumpUntil(e){const t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){const t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&fl(this.char());)this.bump()}peek(){if(this.isEOF())return null;const e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function jt(e){return e>=97&&e<=122||e>=65&&e<=90}function pl(e){return jt(e)||e===47}function ml(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function fl(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Dt(e){e.forEach(t=>{if(delete t.location,xi(t)||Ci(t))for(const n in t.options)delete t.options[n].location,Dt(t.options[n].value);else Ii(t)&&Ai(t.style)||(Ri(t)||Pi(t))&&Bt(t.style)?delete t.style.location:Oi(t)&&Dt(t.children)})}function gl(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};const n=new hl(e,t).parse();if(n.err){const i=SyntaxError(Kr[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return t?.captureLocation||Dt(n.val),n.val}var ct=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},$n=class extends ct{constructor(e,t,n,i){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join('", "')}"`,"INVALID_VALUE",i)}},bl=class extends ct{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,"INVALID_VALUE",n)}},vl=class extends ct{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,"MISSING_VALUE",t)}};function yl(e){return e.length<2?e:e.reduce((t,n)=>{const i=t[t.length-1];return!i||i.type!==0||n.type!==0?t.push(n):i.value+=n.value,t},[])}function _l(e){return typeof e=="function"}function We(e,t,n,i,o,a,r){if(e.length===1&&Dn(e[0]))return[{type:0,value:e[0].value}];const l=[];for(const c of e){if(Dn(c)){l.push({type:0,value:c.value});continue}if(Qr(c)){typeof a=="number"&&l.push({type:0,value:n.getNumberFormat(t).format(a)});continue}const{value:u}=c;if(!(o&&u in o))throw new vl(u,r);let d=o[u];if(Jr(c)){(!d||typeof d=="string"||typeof d=="number"||typeof d=="bigint")&&(d=typeof d=="string"||typeof d=="number"||typeof d=="bigint"?String(d):""),l.push({type:typeof d=="string"?0:1,value:d});continue}if(Ri(c)){const f=typeof c.style=="string"?i.date[c.style]:Bt(c.style)?c.style.parsedOptions:void 0;l.push({type:0,value:n.getDateTimeFormat(t,f).format(d)});continue}if(Pi(c)){const f=typeof c.style=="string"?i.time[c.style]:Bt(c.style)?c.style.parsedOptions:i.time.medium;l.push({type:0,value:n.getDateTimeFormat(t,f).format(d)});continue}if(Ii(c)){const f=typeof c.style=="string"?i.number[c.style]:Ai(c.style)?c.style.parsedOptions:void 0;if(f&&f.scale){const m=f.scale||1;if(typeof d=="bigint"){if(!Number.isInteger(m))throw new TypeError(`Cannot apply fractional scale ${m} to bigint value. Scale must be an integer when formatting bigint.`);d=d*BigInt(m)}else d=d*m}l.push({type:0,value:n.getNumberFormat(t,f).format(d)});continue}if(Oi(c)){const{children:f,value:m}=c,P=o[m];if(!_l(P))throw new bl(m,"function",r);let M=P(We(f,t,n,i,o,a).map(E=>E.value));Array.isArray(M)||(M=[M]),l.push(...M.map(E=>({type:typeof E=="string"?0:1,value:E})))}if(xi(c)){const f=d,m=(Object.prototype.hasOwnProperty.call(c.options,f)?c.options[f]:void 0)||c.options.other;if(!m)throw new $n(c.value,d,Object.keys(c.options),r);l.push(...We(m.value,t,n,i,o));continue}if(Ci(c)){const f=`=${d}`;let m=Object.prototype.hasOwnProperty.call(c.options,f)?c.options[f]:void 0;if(!m){if(!Intl.PluralRules)throw new ct(`Intl.PluralRules is not available in this environment.
|
|
2
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3
|
-
`,"MISSING_INTL_API",r);const M=typeof d=="bigint"?Number(d):d,E=n.getPluralRules(t,{type:c.pluralType}).select(M-(c.offset||0));m=(Object.prototype.hasOwnProperty.call(c.options,E)?c.options[E]:void 0)||c.options.other}if(!m)throw new $n(c.value,d,Object.keys(c.options),r);const P=typeof d=="bigint"?Number(d):d;l.push(...We(m.value,t,n,i,o,P-(c.offset||0)));continue}}return yl(l)}function kl(e,t){return t?{...e,...t,...Object.keys(e).reduce((n,i)=>(n[i]={...e[i],...t[i]},n),{})}:e}function wl(e,t){return t?Object.keys(e).reduce((n,i)=>(n[i]=kl(e[i],t[i]),n),{...e}):e}function St(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function Sl(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:kt((...t)=>new Intl.NumberFormat(...t),{cache:St(e.number),strategy:wt.variadic}),getDateTimeFormat:kt((...t)=>new Intl.DateTimeFormat(...t),{cache:St(e.dateTime),strategy:wt.variadic}),getPluralRules:kt((...t)=>new Intl.PluralRules(...t),{cache:St(e.pluralRules),strategy:wt.variadic})}}var El=class Z{constructor(t,n=Z.defaultLocale,i,o){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=a=>{const r=this.formatToParts(a);if(r.length===1)return r[0].value;const l=r.reduce((c,u)=>(!c.length||u.type!==0||typeof c[c.length-1]!="string"?c.push(u.value):c[c.length-1]+=u.value,c),[]);return l.length<=1?l[0]||"":l},this.formatToParts=a=>We(this.ast,this.locales,this.formatters,this.formats,a,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=n,this.resolvedLocale=Z.resolveLocale(n),typeof t=="string"){if(this.message=t,!Z.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");const{...a}=o||{};this.ast=Z.__parse(t,{...a,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=wl(Z.formats,i),this.formatters=o&&o.formatters||Sl(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return Z.memoizedDefaultLocale||(Z.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),Z.memoizedDefaultLocale}static{this.resolveLocale=t=>{if(typeof Intl.Locale>"u")return;const n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}}static{this.__parse=gl}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}};const Tl={},Il={"ui.browser.chrome.approvals":"Approvals and site access","ui.browser.chrome.error_title":"Page failed to load","ui.browser.chrome.move_left":"Move tab left","ui.browser.chrome.move_right":"Move tab right","ui.browser.chrome.duplicate":"Duplicate tab","ui.browser.chrome.reload":"Reload tab","ui.browser.chrome.scroll_left":"Scroll tabs left","ui.browser.chrome.scroll_right":"Scroll tabs right","ui.browser.chrome.accessible_tab":"{title}{loading, select, yes{, loading} other{}}{failed, select, yes{, failed to load} other{}}{owner, select, agent{, agent-owned} shared{, shared with an agent} other{}}{waiting, select, none{} other{, request {waiting} waiting}}{restored, select, yes{, restored} other{}}","ui.browser.chrome.invalid_order":"Invalid browser tab order.","ui.browser.chrome.duplicate_refused":"Only web pages can be duplicated.","ui.browser.chrome.invalid_action":"Invalid browser tab action.","ui.browser.chrome.tab_gone":"That browser tab is no longer open.","ui.browser.chrome.operation_failed":"{action, select, duplicate{The tab could not be duplicated. You can retry from its menu.} other{The tab could not be reloaded. You can retry from its menu.}}"},Rl={},Pl={"ui.canvas.files.highlights":"Highlights","ui.canvas.files.working":"Working files","ui.canvas.files.images":"Images","ui.canvas.files.videos":"Videos","ui.canvas.files.documents":"Documents","ui.canvas.files.spreadsheets":"Spreadsheets","ui.canvas.files.other":"Other","ui.canvas.files.audio":"Audio","ui.canvas.files.code":"Code","ui.canvas.files.presentations":"Presentations","ui.canvas.files.archives":"Archives","ui.canvas.files.files":"Files","ui.canvas.files.search":"Search files by name or folder","ui.canvas.files.searchPlaceholder":"Search files","ui.canvas.files.sort":"Sort by","ui.canvas.files.order":"Order","ui.canvas.files.group":"Group by kind","ui.canvas.files.recent":"Mentioned","ui.canvas.files.name":"Name","ui.canvas.files.kind":"Kind","ui.canvas.files.modified":"Modified","ui.canvas.files.created":"Created","ui.canvas.files.size":"Size","ui.canvas.files.filter":"Filter","ui.canvas.files.reset":"Reset filter","ui.canvas.files.folder":"Open folder","ui.canvas.files.loading":"Loading session files…","ui.canvas.files.progress":"{loaded} of {total} loaded","ui.canvas.files.building":"Building the file index…","ui.canvas.files.retry":"Retry","ui.canvas.files.continue":"Continue loading","ui.canvas.files.empty":"No files yet","ui.canvas.files.emptyDetail":"Files the agent creates or highlights appear here.","ui.canvas.files.noMatch":"No files match this search and filter","ui.canvas.files.clear":"Clear search and filter","ui.canvas.files.sessionOnly":"In conversation only","ui.canvas.files.missing":"No longer on disk","ui.canvas.files.tooLarge":"Too large to preview","ui.canvas.files.unreadable":"Could not be read","ui.canvas.files.expand":"Expand image","ui.canvas.files.play":"Open to play","ui.canvas.files.asc":"Ascending","ui.canvas.files.desc":"Descending","ui.canvas.files.region":"Session files","ui.canvas.files.readingStats":"Reading file details…","ui.canvas.files.error":"Could not load session files","ui.canvas.files.remote":"Remote files are unavailable here","ui.canvas.files.inSession":"In session","ui.canvas.files.count":"{count, plural, one {# file} other {# files}}","ui.canvas.files.narrowCount":"{shown} of {total} files","ui.canvas.files.gone":"No longer in the session","ui.canvas.files.earlier":"Search earlier messages","ui.canvas.files.imageActions":"Image actions","ui.canvas.files.fileActions":"File actions","ui.canvas.files.saveError":"Could not save the file","ui.canvas.files.prepareError":"Could not prepare a local copy for this action","ui.canvas.files.pathCopyNote":"Open, folder and path actions create a local copy in this conversation's scratchpad."},xl={"ui.chat.usage.continue":"Included quota used; credits will continue.","ui.chat.usage.family_caps":"Model-family caps still apply.","ui.chat.usage.blocked":"Spend unavailable","ui.chat.usage.eligibility_unknown":"Spend eligibility unknown","ui.chat.usage.unlimited":"Unlimited paid allowance","ui.chat.highlights.file_resolution_failed":"Couldn't resolve this file in the session working directory. Use Copy file path to check its location against this session's workspace before trying again."},Cl={"ui.console.capacity.summary":"{live, number} live of {limit, number} in the app","ui.console.capacity.summary_compact":"{live, number}/{limit, number} · {archived, number} kept","ui.console.capacity.summary_compact_bare":"{live, number}/{limit, number}","ui.console.capacity.archived":" · {archived, number} kept","ui.console.capacity.full":" · full","ui.console.capacity.help":"App-wide counts, across every conversation. Kept history does not use a process slot.","ui.console.capacity.resources":"Modeled managed storage: {memory, number} MiB. Logs: {logs, number} MiB. Pending output: {pending, number} MiB. Terminal cells: {cells, number}. Protected terminals: {protected, number}. This excludes child-process memory.","ui.console.cleanup.label":"Clear finished agent terminals","ui.console.cleanup.help":"Clears finished agent terminals in this conversation. Finished ones the agent asked to keep stay on disk; the rest are closed and their output is not kept. Terminals you opened, and any in use, are left alone.","ui.console.cleanup.result":"Cleared {released, plural, one {# finished agent terminal} other {# finished agent terminals}}. {protected, plural, =0 {} one {# is still in use and was left open.} other {# are still in use and were left open.}}","ui.console.cleanup.result_none":"Nothing to clear — no finished agent terminals in this conversation.","ui.console.dismiss_history":"Clear terminal and delete retained output","ui.console.dismiss.body":"Clearing this terminal deletes its retained output from disk, so a relaunch cannot restore it.","ui.console.dismiss.title":"Clear this terminal?","ui.console.dismiss.confirm":"Clear terminal","ui.console.close.body":"This ends the program running here and removes its tab.","ui.console.close.busy":"Closing…","ui.console.close.confirm":"Close terminal","ui.console.close.kept":"Its output is kept.","ui.console.close.title":"Close this terminal?","ui.console.create_failed.detail":"The console host is running, and refused to start a program for this conversation — so this is one attempt failing rather than the console being switched off. Trying again is the first thing to do; if it keeps failing, the line below is the host's own reason.","ui.console.create_failed.retry":"Try again","ui.console.create_failed.title":"The console could not start in this session","ui.console.empty.detail":"A console runs a program in this conversation's directory and keeps its output, whether or not this pane is open.","ui.console.empty.title":"No console in this session","ui.console.ended.exit_code":"exit code {code}","ui.console.ended.exit_unknown":"exit code not observed","ui.console.ended.live":"This terminal has ended","ui.console.ended.restored":"This terminal has ended and its history was restored","ui.console.loading.create":"Starting a console","ui.console.loading.read":"Reading this session's console","ui.console.new":"New console","ui.console.pane.blip":"Finished since you last looked","ui.console.pane.close":"Close console","ui.console.pane.close_refusal":"The terminal could not be closed.","ui.console.pane.label":"Console","ui.console.pane.needs_conversation.detail":"A console runs in a conversation's working directory, so there is nowhere to put one yet.","ui.console.pane.needs_conversation.title":"A console needs a conversation","ui.console.pane.surfaces":"Console surfaces","ui.console.secure":"Secure input is on: what you type here is not recorded.","ui.console.unavailable.disabled.detail":"LOCAL_OPERATOR_UI_CONSOLE_HOST is set to 0 in this app's environment, so no terminal is started and no surface can be created. Removing that setting turns the console back on.","ui.console.unavailable.disabled.title":"The console is switched off for this run","ui.console.unavailable.pty.detail":"Terminal support did not load for this run. Updating Local Operator restores it, and the app's log names the reason.","ui.console.unavailable.title":"The console is not available in this app","ui.console.unavailable.unknown.detail":"This window could not reach the console, and did not say why. The app's log carries the reason.","ui.console.tab.ended":"ended","ui.console.tab.agent_opened":"An agent opened this console","ui.console.tab.agent_typed":"An agent has typed into this console","ui.console.tab.close_label":"Close {title}, tab {index, number} of {total, number}","ui.console.tab.clear_label":"Clear {title}, tab {index, number} of {total, number}","ui.console.tab.clear_label_retained":"Clear {title}, tab {index, number} of {total, number} — deletes retained output","ui.console.secure_toggle.stop":"Stop secure input","ui.console.secure_toggle.start":"Secure input","ui.console.secure_toggle.start_tooltip":"Secure input: stop recording this terminal","ui.console.close.cancel":"Cancel","ui.console.terminal.prompt_label":"Terminal input","ui.console.terminal.too_much_output":"Too much output to announce, navigate to rows manually to read"},Ol={"ui.hub.links.title":"Hub links","ui.hub.links.loading":"Loading hub links…","ui.hub.links.empty":"Not linked to the hub.","ui.hub.links.load_failed":"Hub links could not be loaded. Retry.","ui.hub.links.retry":"Retry","ui.hub.links.source_public":"Public","ui.hub.links.source_private":"{organization} · Private","ui.hub.links.source_unavailable":"Source unavailable","ui.hub.links.source_address":"Hub source: {address}","ui.hub.subscriptions.subscribe":"Subscribe","ui.hub.subscriptions.subscribe_description":"Receive updates from {source}. Manual pull stays available.","ui.hub.subscriptions.auto_push":"Auto-push","ui.hub.subscriptions.auto_push_description":"Publish local changes to {source} automatically when safe.","ui.hub.subscriptions.configured_on":"On","ui.hub.subscriptions.configured_off":"Off","ui.hub.subscriptions.effective_paused":"Paused — {reason}","ui.hub.subscriptions.effective_ready":"Ready when there are safe changes.","ui.hub.subscriptions.saving":"Saving {setting} for {source}…","ui.hub.subscriptions.save_failed":"Couldn’t save {setting} for {source}. Try again.","ui.hub.subscriptions.policy_changed":"This policy changed elsewhere. Review the latest values before trying again.","ui.hub.subscriptions.check":"Check now","ui.hub.subscriptions.pull":"Pull now","ui.hub.subscriptions.preview_publish":"Preview publish","ui.hub.subscriptions.enable_title":"Enable auto-push to {source}?","ui.hub.subscriptions.enable_public":"Future changes to {item} may be published publicly without asking each time. Changes from private sources are paused for review. Turning auto-push off later stops future publishing, but it does not take back anything that is already public.","ui.hub.subscriptions.enable_private":"Future changes to {item} may be published to {organization} without asking each time. Only people allowed to access that organization can receive them.","ui.hub.subscriptions.enable_safety":"Concurrent changes on the hub are merged or paused for review, never overwritten silently.","ui.hub.subscriptions.cancel":"Cancel","ui.hub.subscriptions.enable":"Enable auto-push","ui.hub.subscriptions.unsupported":"The destination has not verified safe automatic publication.","ui.hub.subscriptions.manual_available":"Incoming updates are off. Manual check and pull remain available.","ui.hub.subscriptions.subscribe_description_blocked":"Receive updates from {source}.","ui.hub.subscriptions.incoming_paused":"Incoming updates paused.","ui.hub.subscriptions.outgoing_paused":"Outgoing changes may still be published to {source}.","ui.hub.links.last_success":"Last successful action: {time}","ui.hub.links.actual_model":"Model used: {model}","ui.hub.links.healthy":"{item} from {source}; Subscribe {subscribe}; Auto-push {autoPush}. Open link policies.","ui.hub.links.available":"Update {item} from {source}","ui.hub.links.failed":"Retry {direction} for {item} at {source}","ui.hub.links.busy":"{direction} in progress for {item} at {source}","ui.hub.links.updated":"Updated {item} from {source}","ui.hub.links.published":"Published {item} to {source}","ui.hub.subscriptions.policy_menu":"Link policies for {item} at {source}","ui.hub.subscriptions.copy_needed":"Separate copy needed for subscription.","ui.hub.subscriptions.open_copy":"Open copy","ui.hub.subscriptions.create_copy":"Create linked copy","ui.hub.subscriptions.alias":"Local alias","ui.hub.subscriptions.source_separation":"This copy is linked to {currentSource}. Updates from {newSource} will use a separate local copy.","ui.hub.skills.title":"Skills","ui.hub.skills.empty":"No skills installed.","ui.hub.skills.search_empty":"No skills match this search.","ui.hub.skills.loading":"Loading skills…","ui.hub.skills.unavailable":"This server does not support the hub skills catalogue.","ui.hub.links.confirm_publish":"Publish reviewed changes","ui.hub.links.preview_changed":"The hub, this copy, or its policy changed. Review a new preview before publishing.","ui.hub.links.preview_expired":"This preview expired. Review a new preview before publishing.","ui.hub.links.preview_payload":"Reviewed publication to {source}","ui.hub.links.direction_pull":"Incoming update","ui.hub.links.direction_push":"Outgoing publication","ui.hub.links.action_failed":"The {direction} for {item} at {source} did not complete. Review its status before trying again.","ui.hub.links.preview_warnings":"Review notes","ui.hub.links.action_result":"{direction} for {item} at {source}: {outcome}","ui.hub.links.preview_pull":"Preview incoming changes","ui.hub.links.prefer_local":"Keep mine","ui.hub.links.prefer_remote":"Use the hub’s","ui.hub.links.unknown_baseline":"This copy has no verified common baseline. Review both versions before applying changes.","ui.hub.links.acknowledge_baseline":"I reviewed both versions and understand that the previous baseline is unknown.","ui.hub.skills.remote_empty":"No skills have been published here yet.","ui.hub.skills.scope":"Skills from {source}","ui.hub.skills.pull_title":"Pull {item} from {source}","ui.hub.skills.pull_help":"Create a separate local copy with its own source and policy. Existing copies are not overwritten.","ui.hub.skills.pull_failed":"The pull was not confirmed. Check linked items before trying again.","ui.hub.skills.policy_pending":"Publication succeeded, but this machine has not confirmed the link policies. Reconcile this publication before another write.","ui.hub.skills.publish_title":"Publish a skill","ui.hub.skills.select_authored":"Authored skill","ui.hub.skills.revision":"Remote revision: {revision}","ui.hub.skills.file_count":"{count, plural, one {# file included} other {# files included}}","ui.hub.skills.files":"Files included","ui.hub.skills.text_limits":"Skills support up to 64 UTF-8 text files, 200 KiB per file and 1 MiB in total. Scripts are never run when publishing or pulling.","ui.hub.skills.local_exists":"That local alias is already used. Choose another.","ui.hub.skills.initial_policy_description":"New links subscribe to incoming updates. Auto-push stays off until enabled for this destination.","ui.hub.status.not_checked":"Not checked yet.","ui.hub.status.idle":"No changes waiting.","ui.hub.status.checking":"Checking for changes…","ui.hub.status.available":"Changes are available.","ui.hub.status.merging":"Merging changes…","ui.hub.status.applying":"Applying incoming changes…","ui.hub.status.pushing":"Publishing outgoing changes…","ui.hub.status.retry_wait":"A retry is scheduled.","ui.hub.status.needs_review":"Review is needed before changes can be applied.","ui.hub.status.failed":"The last action did not complete.","ui.hub.status.missing":"The source is missing or access is no longer available.","ui.hub.status.unknown":"Status unavailable.","ui.hub.status.next_retry":"Next retry: {time}","ui.hub.status.last_checked":"Last checked: {time}","ui.hub.status.attempts":"{count, plural, one {# attempt} other {# attempts}}","ui.hub.status.receipt":"Operation receipt: {operation}","ui.hub.status.core_update_required":"Update the Local Operator backend to a published release {minimum} or newer to change Hub settings. Browsing is still available.","ui.hub.status.backend_checking":"Checking the Local Operator backend before allowing Hub changes. Browsing is still available.","ui.hub.status.backend_disconnected":"Reconnect the Local Operator backend to change Hub settings. Backend {minimum} or newer is required; browsing is still available.","ui.hub.status.unsupported":"This destination has not verified revision-safe publication.","ui.hub.status.baseline_unknown":"The common baseline could not be verified. Review both versions first.","ui.hub.status.mixed_lineage":"This copy includes changes from another source. Automatic publication is paused.","ui.hub.status.no_credential":"Sign in to the hub before trying this action.","ui.hub.status.access_lost":"Access to this private source is no longer available.","ui.hub.status.provider_error":"The current default model could not be reached. A retry can use the latest state.","ui.hub.status.model_unavailable":"The current default model is unavailable. Check its configuration.","ui.hub.status.conflict":"Concurrent changes need review. Your copy has not been replaced.","ui.hub.status.too_large":"These changes exceed the safe processing limit. Your copy has been preserved.","ui.hub.status.skill_validation":"The skill does not meet the required file and metadata rules.","ui.hub.status.unsafe_publication":"This destination cannot safely receive the current content. Review the destination-specific copy.","ui.hub.status.other_error":"This action is paused.","ui.hub.skills.search":"Search skills","ui.hub.skills.search_loaded":"Search covers this loaded page.","ui.hub.skills.open_detail":"View {item}","ui.hub.skills.catalogue_failed":"Skills from {source} could not be loaded. Retry.","ui.hub.skills.installed_alias":"Pulled {item} from {source}","ui.hub.skills.session_selection":"Skill files are available on their next read. Newly selected skill descriptions are included in the next session.","ui.hub.links.publication_pending":"The publication outcome is not yet confirmed. Retry this same operation to reconcile it.","ui.hub.links.resolve_title":"Confirm this link’s source","ui.hub.links.resolve_description":"Only confirm if you know {item} came from here.","ui.hub.links.resolve_action":"Confirm source","ui.hub.links.resolve_conflict":"That source conflicts with the stored origin. Nothing was changed.","ui.hub.links.scope_label":"Publish scope","ui.hub.links.scope_public":"Public","ui.hub.links.scope_private":"{organization} · Private","ui.hub.links.sign_in_to_publish":"Sign in to choose a publish scope","ui.hub.links.resolve_action_confirm":"Confirm this source","ui.hub.links.resolve_action_confirming":"Confirming…","ui.hub.links.resolve_action_done":"Source confirmed","ui.hub.links.resolve_failed_generic":"The source could not be confirmed.","ui.hub.links.source_not_confirmed":"Source not confirmed","ui.hub.links.resolve_irreversible":"Confirmation is permanent. A wrong source cannot be changed later; it needs a separate local copy.","ui.hub.conflict.title":"This changed while you were editing","ui.hub.conflict.body":"Something else — a configuration run, or another window — wrote to this team after you opened it. Your edits are kept; saving would only ever write the fields you changed, and only from the version you saw. Reload to start from the current one.","ui.hub.conflict.reload":"Reload the saved version","ui.hub.status.transport_error":"Couldn't reach the hub. A retry is scheduled.","ui.hub.links.scope_placeholder":"Choose a scope…","ui.hub.links.scope_required":"Choose a scope to continue","ui.hub.links.sources_count":"{count, plural, one {# source} other {# sources}}","ui.hub.links.links_count":"{count, plural, one {# link} other {# links}}","ui.hub.links.unresolved_mark":"{item}: source not confirmed. Confirm the source.","ui.hub.links.mixed":"Mixed","ui.hub.links.aggregate_mark":"{count, plural, one {# link} other {# links}}; {state}","ui.hub.links.mark_healthy":"up to date","ui.hub.links.mark_review":"needs review","ui.hub.links.mark_failed":"failed","ui.hub.links.mark_available":"update available","ui.hub.links.mark_busy":"working","ui.hub.links.mark_applied":"applied"},Al={},Nl={"ui.onboarding.connect.intro":"Local Operator needs an AI account to work. Radient is the easiest: one browser sign-in and nothing to paste. Already pay for ChatGPT or Claude? Sign in with that instead. Anything else is under More providers.","ui.onboarding.default_model.block.loading_models":"Loading the model list…","ui.onboarding.default_model.block.pick_a_model":"Pick a model to continue.","ui.onboarding.default_model.change":"Change","ui.onboarding.default_model.connected_pick":"{brand} is connected. Pick the model new chats should use.","ui.onboarding.default_model.empty_helper":"No providers are connected yet. Go back a step to connect one.","ui.onboarding.default_model.fallback_name":"{brand}'s default model","ui.onboarding.default_model.intro":"New chats use this model. Every agent can pick a different one later.","ui.onboarding.default_model.loading":"Loading your models","ui.onboarding.default_model.none_connected":"No provider is connected yet. Go back to connect one, or skip setup and connect one later from the chat.","ui.onboarding.default_model.nothing_saved":"Nothing will be saved: your Local Operator can't list {brand} models yet, so setup finishes without a default model. Pick one in Settings before your first message.","ui.onboarding.default_model.provider_fallback":"this provider's","ui.onboarding.default_model.tag.applied":"your default","ui.onboarding.default_model.tag.suggested":"suggested for your account","ui.onboarding.dialog.setup":"Setup","ui.onboarding.extras.greeting_done":"{name} is your chief of staff. Her conversation is where you pick up with her, and it is one keystroke away in the sidebar. You can also skip straight to a new chat.","ui.onboarding.extras.greeting_owed":"{name} is your chief of staff. She will say hello first, ask what to call you and what you would like help with, and show you around. You can also skip straight to a new chat.","ui.onboarding.extras.next_meet":"Next: meet {name}","ui.onboarding.modal.action.back":"Back","ui.onboarding.modal.action.continue":"Continue","ui.onboarding.modal.action.finish":"Finish","ui.onboarding.modal.action.meet":"Meet {name}","ui.onboarding.modal.action.skip":"Skip","ui.onboarding.modal.action.skip_for_now":"Skip for now","ui.onboarding.modal.action.skip_to_chat":"Skip to chat","ui.onboarding.modal.error.aida_open_failed":"{name}'s conversation could not be opened, so you are in a new chat instead.","ui.onboarding.modal.title.connect_provider":"Connect an AI account","ui.onboarding.modal.title.default_model":"Your default model","ui.onboarding.modal.title.extras":"Web search (optional)","ui.onboarding.modal.title.extras_with_name":"Web search, then meet {name}","ui.onboarding.modal.title.fallback":"First-time setup","ui.onboarding.search.each_key_saved":"Each key is saved on your device as soon as you leave its field.","ui.onboarding.search.intro":"Agents can look things up while they work — today's prices, this week's news — instead of relying on what the model already knows.","ui.onboarding.search.mode.free":"Free","ui.onboarding.search.mode.free_detail":"Uses a rotating pool of free providers — DuckDuckGo, Tavily's free tier, Exa and Parallel. No key needed; the pool is shared, so searches can be slower at busy times.","ui.onboarding.search.mode.keys":"Add API keys","ui.onboarding.search.mode.keys_detail":"Bring your own keys for the search providers you use.","ui.onboarding.search.mode.label":"Search setup","ui.onboarding.search.recommended":"Recommended","ui.onboarding.search.row.get_your":"Get your {name}","ui.onboarding.search.row.not_saved":"Not saved — {message}","ui.onboarding.search.row.placeholder":"Paste your API key","ui.onboarding.search.row.save_failed":"The key could not be saved.","ui.onboarding.search.row.saved":"Saved","ui.onboarding.search.row.saving":"Saving {name}","ui.onboarding.modal.step_of":"Step {current, number} of {total, number}","ui.onboarding.modal.steps_total":"{total, plural, one {# step} other {# steps}}"},Ll={},Ml={"ui.providers.phone.account":"Account: {identity}, credential {id}","ui.providers.phone.account_unlabeled":"Account: credential {id}","ui.providers.phone.action.activate":"Activate for USD {amount} a month","ui.providers.phone.action.cancel":"Cancel","ui.providers.phone.action.check_again":"Check again","ui.providers.phone.action.choose":"{identity}, credential {id}","ui.providers.phone.action.choose_unlabeled":"Credential {id}","ui.providers.phone.action.copy_address":"Copy address","ui.providers.phone.action.set_up":"Set up phone access","ui.providers.phone.action.sign_in":"Continue in browser","ui.providers.phone.address_label":"Phone address","ui.providers.phone.choose_heading":"Choose an account","ui.providers.phone.consent":"Activating sets up this Radient account’s tunnel subscription at USD {amount} a month, reserves your phone address and starts the background connector. It does not purchase credit.","ui.providers.phone.failure.check":"Phone access could not be checked, and nothing was changed.","ui.providers.phone.failure.run":"Phone access setup could not finish. Steps already completed are not undone. Check again before retrying.","ui.providers.phone.heading":"Phone access","ui.providers.phone.outcome.billing_activated_status":"Billing: subscription activation completed; this has not been undone.","ui.providers.phone.outcome.billing_already_active":"Billing: the subscription was already active.","ui.providers.phone.outcome.billing_not_activated":"Billing: the current subscription still needs activation.","ui.providers.phone.outcome.billing_unconfirmed":"Billing: activation was requested but its outcome is unconfirmed. Check the account before retrying; do not assume rollback.","ui.providers.phone.outcome.failure_stage":"Did not finish: {stage}.","ui.providers.phone.outcome.reservation_existing":"Phone address: existing reservation retained.","ui.providers.phone.outcome.reservation_saved":"Phone address: reservation saved on this computer; retry reuses it.","ui.providers.phone.outcome.reservation_unconfirmed":"Phone address: reservation outcome unconfirmed; retry uses the saved request key.","ui.providers.phone.outcome.stage_billing":"subscription activation","ui.providers.phone.outcome.stage_configuration":"existing-route configuration","ui.providers.phone.outcome.stage_installation":"background connector installation","ui.providers.phone.outcome.stage_prerequisites":"prerequisite checks","ui.providers.phone.outcome.stage_reservation":"phone-address reservation","ui.providers.phone.outcome.stage_verification":"connection verification","ui.providers.phone.progress_heading":"Setup progress","ui.providers.phone.receipts_heading":"Completed so far","ui.providers.phone.signing_in":"Finish signing in in your browser. This updates on its own when you are done.","ui.providers.phone.status.applying":"Setting up","ui.providers.phone.status.checking":"Checking","ui.providers.phone.status.connected":"Connected","ui.providers.phone.use_address":"Open the URL above and sign in with the same Radient account."},Bl={},jl={"ui.settings.language.dialog.description":"Applies across the app and the terminal — the same setting the settings page edits.","ui.settings.language.dialog.loading":"Loading the current setting...","ui.settings.language.dialog.retry":"Retry","ui.settings.language.dialog.retrying":"Retrying","ui.settings.language.dialog.save":"Save","ui.settings.language.dialog.saved":"Saved","ui.settings.language.dialog.title":"Interface language","ui.settings.language.dialog.unavailable":"The connected service does not serve the settings this dialog edits.","ui.settings.language.effective":"In effect: {locale}","ui.settings.language.external_notice":"Interface language changed elsewhere — now {language}.","ui.settings.language.general.description":"Choose the language shared by the app and terminal. Changes save immediately; existing conversations are not rewritten.","ui.settings.language.general.effective":"App language in effect: {locale}","ui.settings.language.general.last_known":"Last synced app language: {locale}","ui.settings.language.general.no_resolution":"The app language has not been set yet.","ui.settings.language.general.pending":"Saving language…","ui.settings.language.general.readback_error":"The write was confirmed, but the current setting could not be checked. Reconnect or retry before changing it again.","ui.settings.language.general.saved":"Language saved.","ui.settings.language.general.system":"Use system","ui.settings.language.general.unavailable_choice":"Not available","ui.settings.language.general.write_error":"The language was not saved. Your previous setting is unchanged. {message}","ui.settings.language.palette_action":"Change interface language","ui.settings.page.title":"Settings","ui.settings.profile.description_anonymous":"Your user profile information displayed in the application. This information is not provided to the agents.","ui.settings.profile.description_authenticated":"Your user profile information displayed in the application. This information is not provided to the agents. These details are provided through your Radient account.","ui.settings.profile.display_name.label":"Display name","ui.settings.profile.display_name.placeholder":"Enter your name...","ui.settings.profile.email.label":"Email address","ui.settings.profile.email.placeholder":"Enter your email...","ui.settings.profile.title":"User profile","ui.settings.section.interface_language.help":"Interface language, one setting shared with the terminal. auto follows your operating system, falling back to English.","ui.settings.section.interface_language.label":"Interface language","ui.settings.tour.action":"Take the tour","ui.settings.tour.description":"Missed the application onboarding tour or want a refresher? Start it again here.","ui.settings.tour.title":"Application tour","ui.settings.profile.account_checking":"Checking your Radient account…","ui.settings.profile.account_read_failed_retry":"Your Radient account could not be read, so the name and email below are placeholders rather than your account details. Retry.","ui.settings.profile.account_read_failed_refused":"Your Radient account could not be read, so the name and email below are placeholders rather than your account details. Retry, or sign in to Radient again.","ui.settings.profile.retry":"Retry","ui.settings.profile.retrying":"Retrying"},Dl={},Hl={"ui.console.close.body":"Le programme en cours sera arrêté et son onglet supprimé.","ui.console.close.busy":"Fermeture…","ui.console.close.confirm":"Fermer le terminal","ui.console.close.kept":"Sa sortie est conservée.","ui.console.close.title":"Fermer ce terminal ?","ui.console.create_failed.detail":"Le service de console fonctionne, mais a refusé de lancer un programme pour cette conversation — c’est donc cet essai qui a échoué, la console n’est pas désactivée. Réessayez d’abord ; si l’échec persiste, la ligne ci-dessous indique le motif fourni par le service.","ui.console.create_failed.retry":"Réessayer","ui.console.create_failed.title":"Impossible de démarrer la console dans cette session","ui.console.empty.detail":"Une console exécute un programme dans le dossier de cette conversation et conserve sa sortie, même si ce volet est fermé.","ui.console.empty.title":"Aucune console dans cette session","ui.console.ended.exit_code":"code de sortie {code}","ui.console.ended.exit_unknown":"code de sortie non observé","ui.console.ended.live":"Ce terminal est terminé","ui.console.ended.restored":"Ce terminal est terminé, historique restauré","ui.console.loading.create":"Démarrage d’une console","ui.console.loading.read":"Lecture de la console de cette session","ui.console.new":"Nouvelle console","ui.console.pane.blip":"Terminé depuis votre dernière visite","ui.console.pane.close":"Fermer la console","ui.console.pane.close_refusal":"Le terminal n’a pas pu être fermé.","ui.console.pane.label":"Console","ui.console.pane.needs_conversation.detail":"Une console utilise le dossier de travail d’une conversation : sans conversation, elle ne peut pas être créée.","ui.console.pane.needs_conversation.title":"La console nécessite une conversation","ui.console.pane.surfaces":"Terminaux de la console","ui.console.secure":"Saisie sécurisée activée : ce que vous tapez ici n’est pas enregistré.","ui.console.unavailable.disabled.detail":"LOCAL_OPERATOR_UI_CONSOLE_HOST vaut 0 dans l’environnement de l’application : aucun terminal n’est lancé et aucune surface ne peut être créée. Supprimez cette variable pour réactiver la console.","ui.console.unavailable.disabled.title":"La console est désactivée pour cette exécution","ui.console.unavailable.pty.detail":"La prise en charge des terminaux n’a pas été chargée pour cette exécution. Une mise à jour de Local Operator la rétablit ; le journal de l’application indique la cause.","ui.console.unavailable.title":"La console est indisponible dans cette application","ui.console.unavailable.unknown.detail":"Cette fenêtre n’a pas pu accéder à la console et n’a pas indiqué pourquoi. Le journal de l’application précise la cause.","ui.console.capacity.summary":"{live, number} sur {limit, number} actifs dans l’app","ui.console.capacity.summary_compact":"{live, number}/{limit, number} · {archived, plural, one {# gardé} many {# de gardés} other {# gardés}}","ui.console.capacity.summary_compact_bare":"{live, number}/{limit, number}","ui.console.capacity.archived":" · {archived, plural, one {# gardé} many {# de gardés} other {# gardés}}","ui.console.capacity.full":" · plein","ui.console.capacity.help":"Compteurs pour toute l’application, toutes conversations confondues. L’historique conservé n’occupe pas d’emplacement de processus.","ui.console.capacity.resources":"Stockage géré estimé : {memory, number} MiB. Journaux : {logs, number} MiB. Sortie en attente : {pending, number} MiB. Cellules de terminal : {cells, number}. Terminaux protégés : {protected, number}. La mémoire des processus enfants n’est pas incluse.","ui.console.cleanup.label":"Effacer les terminaux d’agent terminés","ui.console.cleanup.help":"Efface les terminaux d’agent terminés de cette conversation. Ceux que l’agent a demandé de conserver restent sur le disque ; les autres sont fermés et leur sortie n’est pas conservée. Les terminaux que vous avez ouverts, ainsi que ceux en cours d’utilisation, ne sont pas touchés.","ui.console.cleanup.result":"Effacé : {released, plural, one {# terminal d’agent terminé} many {# de terminaux d’agent terminés} other {# terminaux d’agent terminés}}. {protected, plural, =0 {} one {# terminal est encore utilisé et a été laissé ouvert.} many {# de terminaux sont encore utilisés et ont été laissés ouverts.} other {# terminaux sont encore utilisés et ont été laissés ouverts.}}","ui.console.cleanup.result_none":"Rien à effacer — aucun terminal d’agent terminé dans cette conversation.","ui.console.dismiss_history":"Effacer le terminal et supprimer la sortie conservée","ui.console.dismiss.body":"Effacer ce terminal supprime sa sortie conservée sur le disque ; une relance ne pourra pas la restaurer.","ui.console.dismiss.title":"Effacer ce terminal ?","ui.console.dismiss.confirm":"Effacer le terminal","ui.console.tab.ended":"terminé","ui.console.tab.agent_opened":"Un agent a ouvert cette console","ui.console.tab.agent_typed":"Un agent a saisi du texte dans cette console","ui.console.tab.close_label":"Fermer {title}, onglet {index, number} sur {total, number}","ui.console.tab.clear_label":"Effacer {title}, onglet {index, number} sur {total, number}","ui.console.tab.clear_label_retained":"Effacer {title}, onglet {index, number} sur {total, number} — supprime la sortie conservée","ui.console.secure_toggle.stop":"Arrêter la saisie sécurisée","ui.console.secure_toggle.start":"Saisie sécurisée","ui.console.secure_toggle.start_tooltip":"Saisie sécurisée : arrêter l’enregistrement de ce terminal","ui.console.close.cancel":"Annuler","ui.console.terminal.prompt_label":"Saisie du terminal","ui.console.terminal.too_much_output":"Trop de sortie à annoncer, parcourez les lignes manuellement pour les lire"},Ul={"ui.onboarding.connect.intro":"Local Operator a besoin d’un compte IA pour fonctionner. Radient est le plus simple : une connexion dans le navigateur, rien à coller. Vous payez déjà pour ChatGPT ou Claude ? Connectez-vous avec ce compte. Les autres options sont regroupées plus bas.","ui.onboarding.default_model.block.loading_models":"Chargement des modèles…","ui.onboarding.default_model.block.pick_a_model":"Choisissez un modèle pour continuer.","ui.onboarding.default_model.change":"Modifier","ui.onboarding.default_model.connected_pick":"{brand} est connecté. Choisissez le modèle des nouvelles conversations.","ui.onboarding.default_model.empty_helper":"Aucun fournisseur connecté. Revenez à l’étape précédente pour en connecter un.","ui.onboarding.default_model.fallback_name":"Modèle par défaut — {brand}","ui.onboarding.default_model.intro":"Ce modèle servira aux nouvelles conversations. Chaque agent pourra en changer.","ui.onboarding.default_model.loading":"Chargement de vos modèles","ui.onboarding.default_model.none_connected":"Aucun fournisseur n’est encore connecté. Revenez en arrière pour en connecter un, ou passez la configuration et connectez-en un plus tard depuis la conversation.","ui.onboarding.default_model.nothing_saved":"Rien ne sera enregistré : Local Operator ne peut pas encore lister les modèles proposés par {brand}. La configuration se termine donc sans modèle par défaut. Choisissez-en un dans Paramètres avant votre premier message.","ui.onboarding.default_model.provider_fallback":"ce fournisseur","ui.onboarding.default_model.tag.applied":"votre modèle par défaut","ui.onboarding.default_model.tag.suggested":"suggéré pour votre compte","ui.onboarding.dialog.setup":"Configuration","ui.onboarding.extras.greeting_done":"{name} est votre cheffe de cabinet. Retrouvez-la dans sa conversation, accessible en une touche depuis la barre latérale. Vous pouvez aussi passer directement à une nouvelle conversation.","ui.onboarding.extras.greeting_owed":"{name} est votre cheffe de cabinet. Elle vous accueillera, vous demandera comment vous appeler et en quoi vous aider, puis vous fera une visite guidée. Vous pouvez aussi passer directement à une nouvelle conversation.","ui.onboarding.extras.next_meet":"Ensuite : rencontrer {name}","ui.onboarding.modal.action.back":"Retour","ui.onboarding.modal.action.continue":"Continuer","ui.onboarding.modal.action.finish":"Terminer","ui.onboarding.modal.action.meet":"Rencontrer {name}","ui.onboarding.modal.action.skip":"Passer","ui.onboarding.modal.action.skip_for_now":"Plus tard","ui.onboarding.modal.action.skip_to_chat":"Passer à la conversation","ui.onboarding.modal.error.aida_open_failed":"Impossible d’ouvrir la conversation avec {name} ; une nouvelle conversation a été ouverte à la place.","ui.onboarding.modal.title.connect_provider":"Connecter un compte IA","ui.onboarding.modal.title.default_model":"Votre modèle par défaut","ui.onboarding.modal.title.extras":"Recherche web (facultative)","ui.onboarding.modal.title.extras_with_name":"Recherche web, puis rencontre avec {name}","ui.onboarding.modal.title.fallback":"Configuration initiale","ui.onboarding.search.each_key_saved":"Chaque clé est enregistrée sur votre appareil dès que vous quittez son champ.","ui.onboarding.search.intro":"Les agents peuvent chercher des informations pendant leur travail — prix du jour, actualités de la semaine — plutôt que de se limiter aux connaissances du modèle.","ui.onboarding.search.mode.free":"Gratuit","ui.onboarding.search.mode.free_detail":"Utilise à tour de rôle des fournisseurs gratuits — DuckDuckGo, l’offre gratuite de Tavily, Exa et Parallel. Aucune clé nécessaire ; l’accès est partagé, les recherches peuvent donc ralentir aux heures de pointe.","ui.onboarding.search.mode.keys":"Ajouter des clés API","ui.onboarding.search.mode.keys_detail":"Utilisez vos propres clés pour vos fournisseurs de recherche.","ui.onboarding.search.mode.label":"Mode de recherche","ui.onboarding.search.recommended":"Recommandé","ui.onboarding.search.row.get_your":"Obtenir {name}","ui.onboarding.search.row.not_saved":"Non enregistré — {message}","ui.onboarding.search.row.placeholder":"Collez votre clé API","ui.onboarding.search.row.save_failed":"La clé n’a pas pu être enregistrée.","ui.onboarding.search.row.saved":"Enregistré","ui.onboarding.search.row.saving":"Enregistrement : {name}","ui.onboarding.modal.step_of":"Étape {current, number} sur {total, number}","ui.onboarding.modal.steps_total":"{total, plural, one {# étape} many {# d’étapes} other {# étapes}}"},$l={"ui.settings.language.dialog.description":"S’applique à l’application et au terminal — le même réglage que dans les paramètres.","ui.settings.language.dialog.loading":"Chargement du réglage actuel…","ui.settings.language.dialog.retry":"Réessayer","ui.settings.language.dialog.retrying":"Nouvel essai","ui.settings.language.dialog.save":"Enregistrer","ui.settings.language.dialog.saved":"Enregistré","ui.settings.language.dialog.title":"Langue de l’interface","ui.settings.language.dialog.unavailable":"Le service connecté ne fournit pas les paramètres modifiés dans cette fenêtre.","ui.settings.language.effective":"Langue utilisée : {locale}","ui.settings.language.external_notice":"Langue de l’interface modifiée ailleurs — désormais {language}.","ui.settings.language.general.description":"Choisissez la langue de l’application et du terminal. Enregistrement immédiat ; les conversations existantes restent inchangées.","ui.settings.language.general.effective":"Langue de l’application utilisée : {locale}","ui.settings.language.general.last_known":"Dernière langue de l’application synchronisée : {locale}","ui.settings.language.general.no_resolution":"La langue de l’application n’est pas encore définie.","ui.settings.language.general.pending":"Enregistrement de la langue…","ui.settings.language.general.readback_error":"L’enregistrement est confirmé, mais le réglage actuel n’a pas pu être vérifié. Rétablissez la connexion ou réessayez avant de le modifier.","ui.settings.language.general.saved":"Langue enregistrée.","ui.settings.language.general.system":"Langue du système","ui.settings.language.general.unavailable_choice":"Indisponible","ui.settings.language.general.write_error":"La langue n’a pas été enregistrée. Le réglage précédent reste inchangé. {message}","ui.settings.language.palette_action":"Changer la langue de l’interface","ui.settings.page.title":"Paramètres","ui.settings.profile.description_anonymous":"Les informations de votre profil affichées dans l’application ne sont pas transmises aux agents.","ui.settings.profile.description_authenticated":"Les informations de votre profil affichées dans l’application ne sont pas transmises aux agents. Elles proviennent de votre compte Radient.","ui.settings.profile.display_name.label":"Nom affiché","ui.settings.profile.display_name.placeholder":"Saisissez votre nom…","ui.settings.profile.email.label":"Adresse e-mail","ui.settings.profile.email.placeholder":"Saisissez votre e-mail…","ui.settings.profile.title":"Profil utilisateur","ui.settings.section.interface_language.help":"Langue de l’interface, partagée avec le terminal. auto suit la langue du système ou utilise l’anglais à défaut.","ui.settings.section.interface_language.label":"Langue de l’interface","ui.settings.tour.action":"Lancer la visite","ui.settings.tour.description":"Vous avez manqué la visite guidée ou souhaitez la revoir ? Relancez-la ici.","ui.settings.tour.title":"Visite guidée","ui.settings.profile.account_checking":"Vérification de votre compte Radient…","ui.settings.profile.account_read_failed_retry":"Votre compte Radient n’a pas pu être lu ; le nom et l’adresse e-mail ci-dessous sont donc des valeurs par défaut, et non les informations de votre compte. Réessayez.","ui.settings.profile.account_read_failed_refused":"Votre compte Radient n’a pas pu être lu ; le nom et l’adresse e-mail ci-dessous sont donc des valeurs par défaut, et non les informations de votre compte. Réessayez, ou reconnectez-vous à Radient.","ui.settings.profile.retry":"Réessayer","ui.settings.profile.retrying":"Nouvel essai"},Li={...Tl,...Il,...Rl,...Pl,...xl,...Cl,...Ol,...Al,...Nl,...Ll,...Ml,...Bl,...jl,...Dl},Mi={en:Li,fr:{...Hl,...Ul,...$l}},Fl="i18n",Bi="en",bu="language";function Gl(){const t=globalThis.navigator?.language;return typeof t=="string"&&t.trim()!==""?t:void 0}function Zl(e){return(e?.[Fl]??0)>=1}function ji(e){const t=e?.language;if(Zl(e?.features)&&typeof t=="string"&&t.trim()!=="")return{locale:t,source:"backend"};const n=Gl();return n?{locale:n,source:"device"}:{locale:Bi,source:"default"}}let Ye=ji(void 0);const Ht=new Set;function zl(){return Ye.locale}function vu(e){return Ht.add(e),()=>{Ht.delete(e)}}function Vl(e){if(!(e.locale===Ye.locale&&e.source===Ye.source)){Ye=e;for(const t of[...Ht])t()}}function yu(e){Vl(ji(e))}const Di=new Map;function Wl(e,t){const n=Di.get(t)?.[e];if(n!==void 0)return n;const i=Mi[t]?.[e];return i!==void 0?i:Li[e]}function Yl(e,t){return Di.get(t)?.[e]!==void 0||Mi[t]?.[e]!==void 0?t:Bi}const Fn=new Map;function Xl(e,t){const n=`${e}\0${t}`;let i=Fn.get(n);return i===void 0&&(i=new El(t,e),Fn.set(n,i)),i}function Kl(e,t={},n=zl()){const i=Wl(e,n);if(i===void 0)return e;const o=Yl(e,n);try{const a=Xl(o,i).format(t);return typeof a=="string"?a:String(a)}catch{return e}}function _u(e,t){return Kl(e,t??{})}export{Fc as $,oc as A,lu as B,fu as C,ou as D,wr as E,mu as F,wc as G,eo as H,to as I,$t as J,ot as K,bu as L,yc as M,Fa as N,Pn as O,gn as P,Oc as Q,sc as R,qt as S,Lt as T,Cc as U,Yc as V,lo as W,Xc as X,Kc as Y,Jc as Z,$c as _,vo as a,Pt as a$,ue as a0,_e as a1,Pc as a2,pi as a3,Lc as a4,Vc as a5,Le as a6,zc as a7,Wc as a8,Hc as a9,di as aA,Ln as aB,ge as aC,_r as aD,kr as aE,Rn as aF,li as aG,xr as aH,uc as aI,dc as aJ,yu as aK,au as aL,Ic as aM,hi as aN,Qa as aO,Vt as aP,cu as aQ,lc as aR,ac as aS,mc as aT,pc as aU,rc as aV,cc as aW,vc as aX,kc as aY,hc as aZ,fc as a_,Uc as aa,Bc as ab,Mc as ac,jc as ad,Aa as ae,Dc as af,Ac as ag,Gc as ah,Zc as ai,Ca as aj,st as ak,xc as al,Rc as am,Nc as an,Qc as ao,qc as ap,eu as aq,tu as ar,nu as as,ql as at,su as au,du as av,gr as aw,uu as ax,Sc as ay,ui as az,yo as b,Ql as b0,s as b1,L as b2,si as b3,pu as b4,Ec as b5,Tc as b6,va as b7,At as b8,ci as b9,ri as ba,ai as bb,gc as bc,sn as bd,bc as be,oo as bf,fi as bg,_c as bh,zl as bi,no as bj,io as bk,so as bl,an as bm,zt as bn,Ja as bo,qs as bp,Js as bq,on as br,_o as c,ko as d,ii as e,qa as f,oi as g,Ao as h,wo as i,No as j,wn as k,nc as l,tc as m,at as n,bi as o,ec as p,lr as q,iu as r,vu as s,_u as t,gu as u,ee as v,hu as w,ru as x,la as y,ic as z};
|