twenty-client-sdk 2.43.0 → 2.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ const e=require("./chunk-mLOUI7ql.js");var t=e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isSymbol=e.isBigInt=e.isString=e.isNumber=e.isBoolean=e.isUndefined=void 0,e.isUndefined=e=>e===void 0,e.isBoolean=e=>typeof e==`boolean`,e.isNumber=e=>typeof e==`number`&&!Number.isNaN(e),e.isString=e=>typeof e==`string`,e.isBigInt=e=>typeof e==`bigint`,e.isSymbol=e=>typeof e==`symbol`})),n=e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isDate=e.isWeakSet=e.isWeakMap=e.isSet=e.isMap=e.isArray=e.isObject=e.isFunction=e.isNull=void 0,e.isNull=e=>e===null,e.isFunction=e=>typeof e==`function`,e.isObject=t=>!e.isNull(t)&&typeof t==`object`,e.isArray=e=>Array.isArray(e),e.isMap=e=>e instanceof Map,e.isSet=e=>e instanceof Set,e.isWeakMap=e=>e instanceof WeakMap,e.isWeakSet=e=>e instanceof WeakSet,e.isDate=e=>e instanceof Date})),r=e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isNegativeInteger=e.isNonNegativeInteger=e.isPositiveInteger=e.isInteger=e.isNumberOrNaN=e.isNonEmptyString=e.isNonEmptyArray=e.isObjectOrNull=void 0;var r=t(),i=n();e.isObjectOrNull=e=>typeof e==`object`,e.isNonEmptyArray=e=>i.isArray(e)&&e.length>0,e.isNonEmptyString=e=>r.isString(e)&&e.length>0,e.isNumberOrNaN=e=>typeof e==`number`,e.isInteger=e=>r.isNumber(e)&&Number.isInteger(e),e.isPositiveInteger=t=>e.isInteger(t)&&t>0,e.isNonNegativeInteger=t=>e.isInteger(t)&&t>=0,e.isNegativeInteger=t=>e.isInteger(t)&&t<0})),i=e.t((e=>{var i=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),a=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),o=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t},s=e&&e.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&i(t,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.structural=e.primitives=e.convenience=void 0,e.convenience=o(r()),s(r(),e),e.primitives=o(t()),s(t(),e),e.structural=o(n()),s(n(),e)}))(),a=e=>!(0,i.isUndefined)(e)&&!(0,i.isNull)(e),o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function s(e){return typeof e==`string`&&o.test(e)}function c(e){if(!s(e))throw TypeError(`Invalid UUID`);let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,t&255,(t=parseInt(e.slice(9,13),16))>>>8,t&255,(t=parseInt(e.slice(14,18),16))>>>8,t&255,(t=parseInt(e.slice(19,23),16))>>>8,t&255,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255)}var l=[];for(let e=0;e<256;++e)l.push((e+256).toString(16).slice(1));function u(e,t=0){return(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+`-`+l[e[t+4]]+l[e[t+5]]+`-`+l[e[t+6]]+l[e[t+7]]+`-`+l[e[t+8]]+l[e[t+9]]+`-`+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase()}var d,f=new Uint8Array(16);function p(){if(!d){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);d=crypto.getRandomValues.bind(crypto)}return d(f)}function ee(e){e=unescape(encodeURIComponent(e));let t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}var te=`6ba7b810-9dad-11d1-80b4-00c04fd430c8`,ne=`6ba7b811-9dad-11d1-80b4-00c04fd430c8`;function re(e,t,n,r,i,a){let o=typeof n==`string`?ee(n):n,s=typeof r==`string`?c(r):r;if(typeof r==`string`&&(r=c(r)),r?.length!==16)throw TypeError(`Namespace must be array-like (16 iterable integer values, 0-255)`);let l=new Uint8Array(16+o.length);if(l.set(s),l.set(o,s.length),l=t(l),l[6]=l[6]&15|e,l[8]=l[8]&63|128,i){if(a||=0,a<0||a+16>i.length)throw RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);for(let e=0;e<16;++e)i[a+e]=l[e];return i}return u(l)}var ie={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ae(e,t,n){if(ie.randomUUID&&!t&&!e)return ie.randomUUID();e||={};let r=e.random??e.rng?.()??p();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return u(r)}function oe(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function m(e,t){return e<<t|e>>>32-t}function se(e){let t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(e.length+1);r.set(e),r[e.length]=128,e=r;let i=e.length/4+2,a=Math.ceil(i/16),o=Array(a);for(let t=0;t<a;++t){let n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[t*64+r*4]<<24|e[t*64+r*4+1]<<16|e[t*64+r*4+2]<<8|e[t*64+r*4+3];o[t]=n}o[a-1][14]=(e.length-1)*8/2**32,o[a-1][14]=Math.floor(o[a-1][14]),o[a-1][15]=(e.length-1)*8&4294967295;for(let e=0;e<a;++e){let r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=o[e][t];for(let e=16;e<80;++e)r[e]=m(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let i=n[0],a=n[1],s=n[2],c=n[3],l=n[4];for(let e=0;e<80;++e){let n=Math.floor(e/20),o=m(i,5)+oe(n,a,s,c)+l+t[n]+r[e]>>>0;l=c,c=s,s=m(a,30)>>>0,a=i,i=o}n[0]=n[0]+i>>>0,n[1]=n[1]+a>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+l>>>0}return Uint8Array.of(n[0]>>24,n[0]>>16,n[0]>>8,n[0],n[1]>>24,n[1]>>16,n[1]>>8,n[1],n[2]>>24,n[2]>>16,n[2]>>8,n[2],n[3]>>24,n[3]>>16,n[3]>>8,n[3],n[4]>>24,n[4]>>16,n[4]>>8,n[4])}function ce(e,t,n,r){return re(80,se,e,t,n,r)}ce.DNS=te,ce.URL=ne,Object.freeze({status:`aborted`});function h(e,t,n){function r(n,r){var i;Object.defineProperty(n,"_zod",{value:n._zod??{},enumerable:!1}),(i=n._zod).traits??(i.traits=new Set),n._zod.traits.add(e),t(n,r);for(let e in o.prototype)e in n||Object.defineProperty(n,e,{value:o.prototype[e].bind(n)});n._zod.constr=o,n._zod.def=r}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var g=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},le=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},ue={};function _(e){return e&&Object.assign(ue,e),ue}function de(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function fe(e,t){return typeof t==`bigint`?t.toString():t}function pe(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}throw Error(`cached value already set`)}}}function me(e){return e==null}function he(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}var ge=Symbol(`evaluating`);function v(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==ge)return r===void 0&&(r=ge,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function y(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function b(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function _e(e){return JSON.stringify(e)}var ve=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function x(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var ye=pe(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function S(e){if(x(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(x(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function be(e){return S(e)?{...e}:Array.isArray(e)?[...e]:e}var xe=new Set([`string`,`number`,`symbol`]);function C(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function w(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function T(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Se(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}-Number.MAX_VALUE,Number.MAX_VALUE;function Ce(e,t){let n=e._zod.def;return w(e,b(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return y(this,`shape`,e),e},checks:[]}))}function we(e,t){let n=e._zod.def;return w(e,b(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return y(this,`shape`,r),r},checks:[]}))}function Te(e,t){if(!S(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0)throw Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");return w(e,b(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return y(this,`shape`,n),n},checks:[]}))}function Ee(e,t){if(!S(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return w(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return y(this,`shape`,n),n},checks:e._zod.def.checks})}function De(e,t){return w(e,b(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return y(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function Oe(e,t,n){return w(t,b(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return y(this,`shape`,i),i},checks:[]}))}function ke(e,t,n){return w(t,b(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return y(this,`shape`,i),i},checks:[]}))}function E(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Ae(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function D(e){return typeof e==`string`?e:e?.message}function O(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=D(e.inst?._zod.def?.error?.(e))??D(t?.error?.(e))??D(n.customError?.(e))??D(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function k(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function A(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var je=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,fe,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Me=h(`$ZodError`,je),Ne=h(`$ZodError`,je,{Parent:Error});function Pe(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Fe(e,t){let n=t||function(e){return e.message},r={_errors:[]},i=e=>{for(let t of e.issues)if(t.code===`invalid_union`&&t.errors.length)t.errors.map(e=>i({issues:e}));else if(t.code===`invalid_key`)i({issues:t.issues});else if(t.code===`invalid_element`)i({issues:t.issues});else if(t.path.length===0)r._errors.push(n(t));else{let e=r,i=0;for(;i<t.path.length;){let r=t.path[i];i===t.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(n(t))):e[r]=e[r]||{_errors:[]},e=e[r],i++}}};return i(e),r}var j=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new g;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>O(e,a,_())));throw ve(t,i?.callee),t}return o.value},Ie=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>O(e,a,_())));throw ve(t,i?.callee),t}return o.value},M=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new g;return a.issues.length?{success:!1,error:new(e??Me)(a.issues.map(e=>O(e,i,_())))}:{success:!0,data:a.value}},Le=M(Ne),N=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>O(e,i,_())))}:{success:!0,data:a.value}},Re=N(Ne),ze=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return j(e)(t,n,i)},Be=e=>(t,n,r)=>j(e)(t,n,r),Ve=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ie(e)(t,n,i)},He=e=>async(t,n,r)=>Ie(e)(t,n,r),Ue=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return M(e)(t,n,i)},We=e=>(t,n,r)=>M(e)(t,n,r),Ge=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return N(e)(t,n,i)},Ke=e=>async(t,n,r)=>N(e)(t,n,r),qe=/^[cC][^\s-]{8,}$/,Je=/^[0-9a-z]+$/,Ye=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Xe=/^[0-9a-vA-V]{20}$/,Ze=/^[A-Za-z0-9]{27}$/,Qe=/^[a-zA-Z0-9_-]{21}$/,$e=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,et=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,tt=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,nt=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,rt=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function it(){return new RegExp(rt,`u`)}var at=/^(?:(?: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])$/,ot=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,st=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ct=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,lt=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ut=/^[A-Za-z0-9_-]*$/,dt=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,ft=/^\+(?:[0-9]){6,14}[0-9]$/,pt=`(?:(?:\\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])))`,mt=RegExp(`^${pt}$`);function ht(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function gt(e){return RegExp(`^${ht(e)}$`)}function _t(e){let t=ht({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${pt}T(?:${r})$`)}var vt=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},yt=/^[^A-Z]*$/,bt=/^[^a-z]*$/,P=h(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),xt=h(`$ZodCheckMaxLength`,(e,t)=>{var n;P.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!me(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=k(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),St=h(`$ZodCheckMinLength`,(e,t)=>{var n;P.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!me(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=k(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ct=h(`$ZodCheckLengthEquals`,(e,t)=>{var n;P.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!me(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=k(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),F=h(`$ZodCheckStringFormat`,(e,t)=>{var n,r;P.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),wt=h(`$ZodCheckRegex`,(e,t)=>{F.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Tt=h(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=yt,F.init(e,t)}),Et=h(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=bt,F.init(e,t)}),Dt=h(`$ZodCheckIncludes`,(e,t)=>{P.init(e,t);let n=C(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Ot=h(`$ZodCheckStartsWith`,(e,t)=>{P.init(e,t);let n=RegExp(`^${C(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),kt=h(`$ZodCheckEndsWith`,(e,t)=>{P.init(e,t);let n=RegExp(`.*${C(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),At=h(`$ZodCheckOverwrite`,(e,t)=>{P.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),jt=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
2
+ `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
3
+ `))}},Mt={major:4,minor:1,patch:11},I=h(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Mt;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=E(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new g;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=E(e,t))});else{if(e.issues.length===t)continue;r||=E(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(E(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new g;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new g;return o.then(e=>t(e,r,a))}return t(o,r,a)}}e[`~standard`]={validate:t=>{try{let n=Le(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Re(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}}),Nt=h(`$ZodString`,(e,t)=>{I.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??vt(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),L=h(`$ZodStringFormat`,(e,t)=>{F.init(e,t),Nt.init(e,t)}),Pt=h(`$ZodGUID`,(e,t)=>{t.pattern??=et,L.init(e,t)}),Ft=h(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=tt(e)}else t.pattern??=tt();L.init(e,t)}),It=h(`$ZodEmail`,(e,t)=>{t.pattern??=nt,L.init(e,t)}),Lt=h(`$ZodURL`,(e,t)=>{L.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:dt.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Rt=h(`$ZodEmoji`,(e,t)=>{t.pattern??=it(),L.init(e,t)}),zt=h(`$ZodNanoID`,(e,t)=>{t.pattern??=Qe,L.init(e,t)}),Bt=h(`$ZodCUID`,(e,t)=>{t.pattern??=qe,L.init(e,t)}),Vt=h(`$ZodCUID2`,(e,t)=>{t.pattern??=Je,L.init(e,t)}),Ht=h(`$ZodULID`,(e,t)=>{t.pattern??=Ye,L.init(e,t)}),Ut=h(`$ZodXID`,(e,t)=>{t.pattern??=Xe,L.init(e,t)}),Wt=h(`$ZodKSUID`,(e,t)=>{t.pattern??=Ze,L.init(e,t)}),Gt=h(`$ZodISODateTime`,(e,t)=>{t.pattern??=_t(t),L.init(e,t)}),Kt=h(`$ZodISODate`,(e,t)=>{t.pattern??=mt,L.init(e,t)}),qt=h(`$ZodISOTime`,(e,t)=>{t.pattern??=gt(t),L.init(e,t)}),Jt=h(`$ZodISODuration`,(e,t)=>{t.pattern??=$e,L.init(e,t)}),Yt=h(`$ZodIPv4`,(e,t)=>{t.pattern??=at,L.init(e,t),e._zod.onattach.push(e=>{let t=e._zod.bag;t.format=`ipv4`})}),Xt=h(`$ZodIPv6`,(e,t)=>{t.pattern??=ot,L.init(e,t),e._zod.onattach.push(e=>{let t=e._zod.bag;t.format=`ipv6`}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Zt=h(`$ZodCIDRv4`,(e,t)=>{t.pattern??=st,L.init(e,t)}),Qt=h(`$ZodCIDRv6`,(e,t)=>{t.pattern??=ct,L.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function $t(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var en=h(`$ZodBase64`,(e,t)=>{t.pattern??=lt,L.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding=`base64`}),e._zod.check=n=>{$t(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function tn(e){if(!ut.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return $t(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var nn=h(`$ZodBase64URL`,(e,t)=>{t.pattern??=ut,L.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding=`base64url`}),e._zod.check=n=>{tn(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),rn=h(`$ZodE164`,(e,t)=>{t.pattern??=ft,L.init(e,t)});function an(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var on=h(`$ZodJWT`,(e,t)=>{L.init(e,t),e._zod.check=n=>{an(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),sn=h(`$ZodUnknown`,(e,t)=>{I.init(e,t),e._zod.parse=e=>e}),cn=h(`$ZodNever`,(e,t)=>{I.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function ln(e,t,n){e.issues.length&&t.issues.push(...Ae(n,e.issues)),t.value[n]=e.value}var un=h(`$ZodArray`,(e,t)=>{I.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>ln(t,n,e))):ln(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function R(e,t,n,r){e.issues.length&&t.issues.push(...Ae(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function dn(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Se(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function fn(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type;for(let i of Object.keys(t)){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>R(e,n,i,t))):R(a,n,i,t)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var pn=h(`$ZodObject`,(e,t)=>{if(I.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=pe(()=>dn(t));v(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=x,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e]._zod.run({value:s[e],issues:[]},o);n instanceof Promise?c.push(n.then(n=>R(n,t,e,s))):R(n,t,e,s)}return i?fn(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),mn=h(`$ZodObjectJIT`,(e,t)=>{pn.init(e,t);let n=e._zod.parse,r=pe(()=>dn(t)),i=e=>{let t=new jt([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=_e(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let e of n.keys){let n=a[e],r=_e(e);t.write(`const ${n} = ${i(e)};`),t.write(`
4
+ if (${n}.issues.length) {
5
+ payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
6
+ ...iss,
7
+ path: iss.path ? [${r}, ...iss.path] : [${r}]
8
+ })));
9
+ }
10
+
11
+
12
+ if (${n}.value === undefined) {
13
+ if (${r} in input) {
14
+ newResult[${r}] = undefined;
15
+ }
16
+ } else {
17
+ newResult[${r}] = ${n}.value;
18
+ }
19
+
20
+ `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=x,s=!ue.jitless,c=s&&ye.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?fn([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function hn(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!E(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>O(e,r,_())))}),t)}var gn=h(`$ZodUnion`,(e,t)=>{I.init(e,t),v(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),v(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),v(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),v(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>he(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>hn(t,i,e,a)):hn(s,i,e,a)}}),_n=h(`$ZodIntersection`,(e,t)=>{I.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>yn(e,t,n)):yn(e,i,a)}});function vn(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(S(e)&&S(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=vn(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=vn(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function yn(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),E(e))return e;let r=vn(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}var bn=h(`$ZodEnum`,(e,t)=>{I.init(e,t);let n=de(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>xe.has(typeof e)).map(e=>typeof e==`string`?C(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),xn=h(`$ZodTransform`,(e,t)=>{I.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new le(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new g;return n.value=i,n}});function Sn(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Cn=h(`$ZodOptional`,(e,t)=>{I.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,v(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),v(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${he(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Sn(t,e.value)):Sn(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),wn=h(`$ZodNullable`,(e,t)=>{I.init(e,t),v(e._zod,`optin`,()=>t.innerType._zod.optin),v(e._zod,`optout`,()=>t.innerType._zod.optout),v(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${he(e.source)}|null)$`):void 0}),v(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Tn=h(`$ZodDefault`,(e,t)=>{I.init(e,t),e._zod.optin=`optional`,v(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>En(e,t)):En(r,t)}});function En(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Dn=h(`$ZodPrefault`,(e,t)=>{I.init(e,t),e._zod.optin=`optional`,v(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),On=h(`$ZodNonOptional`,(e,t)=>{I.init(e,t),v(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>kn(t,e)):kn(i,e)}});function kn(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var An=h(`$ZodCatch`,(e,t)=>{I.init(e,t),v(e._zod,`optin`,()=>t.innerType._zod.optin),v(e._zod,`optout`,()=>t.innerType._zod.optout),v(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>O(e,n,_()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>O(e,n,_()))},input:e.value}),e.issues=[]),e)}}),jn=h(`$ZodPipe`,(e,t)=>{I.init(e,t),v(e._zod,`values`,()=>t.in._zod.values),v(e._zod,`optin`,()=>t.in._zod.optin),v(e._zod,`optout`,()=>t.out._zod.optout),v(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>z(e,t.in,n)):z(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>z(e,t.out,n)):z(r,t.out,n)}});function z(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Mn=h(`$ZodReadonly`,(e,t)=>{I.init(e,t),v(e._zod,`propValues`,()=>t.innerType._zod.propValues),v(e._zod,`values`,()=>t.innerType._zod.values),v(e._zod,`optin`,()=>t.innerType._zod.optin),v(e._zod,`optout`,()=>t.innerType._zod.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Nn):Nn(r)}});function Nn(e){return e.value=Object.freeze(e.value),e}var Pn=h(`$ZodCustom`,(e,t)=>{P.init(e,t),I.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Fn(t,n,r,e));Fn(i,n,r,e)}});function Fn(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(A(e))}}var In=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&typeof n==`object`&&`id`in n){if(this._idmap.has(n.id))throw Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Ln(){return new In}var B=Ln();function Rn(e,t){return new e({type:`string`,...T(t)})}function zn(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...T(t)})}function Bn(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...T(t)})}function Vn(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...T(t)})}function Hn(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...T(t)})}function Un(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...T(t)})}function Wn(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...T(t)})}function Gn(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...T(t)})}function Kn(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...T(t)})}function qn(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...T(t)})}function Jn(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...T(t)})}function Yn(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...T(t)})}function Xn(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...T(t)})}function Zn(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...T(t)})}function Qn(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...T(t)})}function $n(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...T(t)})}function er(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...T(t)})}function tr(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...T(t)})}function nr(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...T(t)})}function rr(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...T(t)})}function ir(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...T(t)})}function ar(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...T(t)})}function or(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...T(t)})}function sr(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...T(t)})}function cr(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...T(t)})}function lr(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...T(t)})}function ur(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...T(t)})}function dr(e){return new e({type:`unknown`})}function fr(e,t){return new e({type:`never`,...T(t)})}function pr(e,t){return new xt({check:`max_length`,...T(t),maximum:e})}function V(e,t){return new St({check:`min_length`,...T(t),minimum:e})}function mr(e,t){return new Ct({check:`length_equals`,...T(t),length:e})}function hr(e,t){return new wt({check:`string_format`,format:`regex`,...T(t),pattern:e})}function gr(e){return new Tt({check:`string_format`,format:`lowercase`,...T(e)})}function _r(e){return new Et({check:`string_format`,format:`uppercase`,...T(e)})}function vr(e,t){return new Dt({check:`string_format`,format:`includes`,...T(t),includes:e})}function yr(e,t){return new Ot({check:`string_format`,format:`starts_with`,...T(t),prefix:e})}function br(e,t){return new kt({check:`string_format`,format:`ends_with`,...T(t),suffix:e})}function H(e){return new At({check:`overwrite`,tx:e})}function xr(e){return H(t=>t.normalize(e))}function Sr(){return H(e=>e.trim())}function Cr(){return H(e=>e.toLowerCase())}function wr(){return H(e=>e.toUpperCase())}function Tr(e,t,n){return new e({type:`array`,element:t,...T(n)})}function Er(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...T(n)})}function Dr(e){let t=Or(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(A(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(A(r))}},e(n.value,n)));return t}function Or(e,t){let n=new P({check:`custom`,...T(t)});return n._zod.check=e,n}var kr=h(`ZodISODateTime`,(e,t)=>{Gt.init(e,t),G.init(e,t)});function Ar(e){return sr(kr,e)}var jr=h(`ZodISODate`,(e,t)=>{Kt.init(e,t),G.init(e,t)});function Mr(e){return cr(jr,e)}var Nr=h(`ZodISOTime`,(e,t)=>{qt.init(e,t),G.init(e,t)});function Pr(e){return lr(Nr,e)}var Fr=h(`ZodISODuration`,(e,t)=>{Jt.init(e,t),G.init(e,t)});function Ir(e){return ur(Fr,e)}var Lr=(e,t)=>{Me.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Fe(e,t)},flatten:{value:t=>Pe(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,fe,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,fe,2)}},isEmpty:{get(){return e.issues.length===0}}})};h(`ZodError`,Lr);var U=h(`ZodError`,Lr,{Parent:Error}),Rr=j(U),zr=Ie(U),Br=M(U),Vr=N(U),Hr=ze(U),Ur=Be(U),Wr=Ve(U),Gr=He(U),Kr=Ue(U),qr=We(U),Jr=Ge(U),Yr=Ke(U),W=h(`ZodType`,(e,t)=>(I.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(b(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]})),e.clone=(t,n)=>w(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Rr(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Br(e,t,n),e.parseAsync=async(t,n)=>zr(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Vr(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Hr(e,t,n),e.decode=(t,n)=>Ur(e,t,n),e.encodeAsync=async(t,n)=>Wr(e,t,n),e.decodeAsync=async(t,n)=>Gr(e,t,n),e.safeEncode=(t,n)=>Kr(e,t,n),e.safeDecode=(t,n)=>qr(e,t,n),e.safeEncodeAsync=async(t,n)=>Jr(e,t,n),e.safeDecodeAsync=async(t,n)=>Yr(e,t,n),e.refine=(t,n)=>e.check(Xi(t,n)),e.superRefine=t=>e.check(Zi(t)),e.overwrite=t=>e.check(H(t)),e.optional=()=>Pi(e),e.nullable=()=>Ii(e),e.nullish=()=>Pi(Ii(e)),e.nonoptional=t=>Hi(e,t),e.array=()=>Si(e),e.or=t=>Ei([e,t]),e.and=t=>Oi(e,t),e.transform=t=>Ki(e,Mi(t)),e.default=t=>Ri(e,t),e.prefault=t=>Bi(e,t),e.catch=t=>Wi(e,t),e.pipe=t=>Ki(e,t),e.readonly=()=>Ji(e),e.describe=t=>{let n=e.clone();return B.add(n,{description:t}),n},Object.defineProperty(e,"description",{get(){return B.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return B.get(e);let n=e.clone();return B.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Xr=h(`_ZodString`,(e,t)=>{Nt.init(e,t),W.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(hr(...t)),e.includes=(...t)=>e.check(vr(...t)),e.startsWith=(...t)=>e.check(yr(...t)),e.endsWith=(...t)=>e.check(br(...t)),e.min=(...t)=>e.check(V(...t)),e.max=(...t)=>e.check(pr(...t)),e.length=(...t)=>e.check(mr(...t)),e.nonempty=(...t)=>e.check(V(1,...t)),e.lowercase=t=>e.check(gr(t)),e.uppercase=t=>e.check(_r(t)),e.trim=()=>e.check(Sr()),e.normalize=(...t)=>e.check(xr(...t)),e.toLowerCase=()=>e.check(Cr()),e.toUpperCase=()=>e.check(wr())}),Zr=h(`ZodString`,(e,t)=>{Nt.init(e,t),Xr.init(e,t),e.email=t=>e.check(zn($r,t)),e.url=t=>e.check(Gn(ti,t)),e.jwt=t=>e.check(or(gi,t)),e.emoji=t=>e.check(Kn(ni,t)),e.guid=t=>e.check(Bn(ei,t)),e.uuid=t=>e.check(Vn(K,t)),e.uuidv4=t=>e.check(Hn(K,t)),e.uuidv6=t=>e.check(Un(K,t)),e.uuidv7=t=>e.check(Wn(K,t)),e.nanoid=t=>e.check(qn(ri,t)),e.guid=t=>e.check(Bn(ei,t)),e.cuid=t=>e.check(Jn(ii,t)),e.cuid2=t=>e.check(Yn(ai,t)),e.ulid=t=>e.check(Xn(oi,t)),e.base64=t=>e.check(rr(pi,t)),e.base64url=t=>e.check(ir(mi,t)),e.xid=t=>e.check(Zn(si,t)),e.ksuid=t=>e.check(Qn(ci,t)),e.ipv4=t=>e.check($n(li,t)),e.ipv6=t=>e.check(er(ui,t)),e.cidrv4=t=>e.check(tr(di,t)),e.cidrv6=t=>e.check(nr(fi,t)),e.e164=t=>e.check(ar(hi,t)),e.datetime=t=>e.check(Ar(t)),e.date=t=>e.check(Mr(t)),e.time=t=>e.check(Pr(t)),e.duration=t=>e.check(Ir(t))});function Qr(e){return Rn(Zr,e)}var G=h(`ZodStringFormat`,(e,t)=>{L.init(e,t),Xr.init(e,t)}),$r=h(`ZodEmail`,(e,t)=>{It.init(e,t),G.init(e,t)}),ei=h(`ZodGUID`,(e,t)=>{Pt.init(e,t),G.init(e,t)}),K=h(`ZodUUID`,(e,t)=>{Ft.init(e,t),G.init(e,t)}),ti=h(`ZodURL`,(e,t)=>{Lt.init(e,t),G.init(e,t)}),ni=h(`ZodEmoji`,(e,t)=>{Rt.init(e,t),G.init(e,t)}),ri=h(`ZodNanoID`,(e,t)=>{zt.init(e,t),G.init(e,t)}),ii=h(`ZodCUID`,(e,t)=>{Bt.init(e,t),G.init(e,t)}),ai=h(`ZodCUID2`,(e,t)=>{Vt.init(e,t),G.init(e,t)}),oi=h(`ZodULID`,(e,t)=>{Ht.init(e,t),G.init(e,t)}),si=h(`ZodXID`,(e,t)=>{Ut.init(e,t),G.init(e,t)}),ci=h(`ZodKSUID`,(e,t)=>{Wt.init(e,t),G.init(e,t)}),li=h(`ZodIPv4`,(e,t)=>{Yt.init(e,t),G.init(e,t)}),ui=h(`ZodIPv6`,(e,t)=>{Xt.init(e,t),G.init(e,t)}),di=h(`ZodCIDRv4`,(e,t)=>{Zt.init(e,t),G.init(e,t)}),fi=h(`ZodCIDRv6`,(e,t)=>{Qt.init(e,t),G.init(e,t)}),pi=h(`ZodBase64`,(e,t)=>{en.init(e,t),G.init(e,t)}),mi=h(`ZodBase64URL`,(e,t)=>{nn.init(e,t),G.init(e,t)}),hi=h(`ZodE164`,(e,t)=>{rn.init(e,t),G.init(e,t)}),gi=h(`ZodJWT`,(e,t)=>{on.init(e,t),G.init(e,t)}),_i=h(`ZodUnknown`,(e,t)=>{sn.init(e,t),W.init(e,t)});function vi(){return dr(_i)}var yi=h(`ZodNever`,(e,t)=>{cn.init(e,t),W.init(e,t)});function bi(e){return fr(yi,e)}var xi=h(`ZodArray`,(e,t)=>{un.init(e,t),W.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(V(t,n)),e.nonempty=t=>e.check(V(1,t)),e.max=(t,n)=>e.check(pr(t,n)),e.length=(t,n)=>e.check(mr(t,n)),e.unwrap=()=>e.element});function Si(e,t){return Tr(xi,e,t)}var Ci=h(`ZodObject`,(e,t)=>{mn.init(e,t),W.init(e,t),v(e,`shape`,()=>t.shape),e.keyof=()=>Ai(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:vi()}),e.loose=()=>e.clone({...e._zod.def,catchall:vi()}),e.strict=()=>e.clone({...e._zod.def,catchall:bi()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>Te(e,t),e.safeExtend=t=>Ee(e,t),e.merge=t=>De(e,t),e.pick=t=>Ce(e,t),e.omit=t=>we(e,t),e.partial=(...t)=>Oe(Ni,e,t[0]),e.required=(...t)=>ke(Vi,e,t[0])});function wi(e,t){return new Ci({type:`object`,shape:e??{},...T(t)})}var Ti=h(`ZodUnion`,(e,t)=>{gn.init(e,t),W.init(e,t),e.options=t.options});function Ei(e,t){return new Ti({type:`union`,options:e,...T(t)})}var Di=h(`ZodIntersection`,(e,t)=>{_n.init(e,t),W.init(e,t)});function Oi(e,t){return new Di({type:`intersection`,left:e,right:t})}var ki=h(`ZodEnum`,(e,t)=>{bn.init(e,t),W.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new ki({...t,checks:[],...T(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new ki({...t,checks:[],...T(r),entries:i})}});function Ai(e,t){return new ki({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...T(t)})}var ji=h(`ZodTransform`,(e,t)=>{xn.init(e,t),W.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new le(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(A(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(A(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Mi(e){return new ji({type:`transform`,transform:e})}var Ni=h(`ZodOptional`,(e,t)=>{Cn.init(e,t),W.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Pi(e){return new Ni({type:`optional`,innerType:e})}var Fi=h(`ZodNullable`,(e,t)=>{wn.init(e,t),W.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ii(e){return new Fi({type:`nullable`,innerType:e})}var Li=h(`ZodDefault`,(e,t)=>{Tn.init(e,t),W.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ri(e,t){return new Li({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():be(t)}})}var zi=h(`ZodPrefault`,(e,t)=>{Dn.init(e,t),W.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Bi(e,t){return new zi({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():be(t)}})}var Vi=h(`ZodNonOptional`,(e,t)=>{On.init(e,t),W.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Hi(e,t){return new Vi({type:`nonoptional`,innerType:e,...T(t)})}var Ui=h(`ZodCatch`,(e,t)=>{An.init(e,t),W.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Wi(e,t){return new Ui({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Gi=h(`ZodPipe`,(e,t)=>{jn.init(e,t),W.init(e,t),e.in=t.in,e.out=t.out});function Ki(e,t){return new Gi({type:`pipe`,in:e,out:t})}var qi=h(`ZodReadonly`,(e,t)=>{Mn.init(e,t),W.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ji(e){return new qi({type:`readonly`,innerType:e})}var Yi=h(`ZodCustom`,(e,t)=>{Pn.init(e,t),W.init(e,t)});function Xi(e,t={}){return Er(Yi,e,t)}function Zi(e){return Dr(e)}var Qi=function(){function e(e){this.groups=[],this.each=!1,this.context=void 0,this.type=e.type,this.name=e.name,this.target=e.target,this.propertyName=e.propertyName,this.constraints=e?.constraints,this.constraintCls=e.constraintCls,this.validationTypeOptions=e.validationTypeOptions,e.validationOptions&&(this.message=e.validationOptions.message,this.groups=e.validationOptions.groups,this.always=e.validationOptions.always,this.each=e.validationOptions.each,this.context=e.validationOptions.context)}return e}(),$i=function(){function e(){}return e.prototype.transform=function(e){var t=[];return Object.keys(e.properties).forEach(function(n){e.properties[n].forEach(function(r){var i={message:r.message,groups:r.groups,always:r.always,each:r.each},a={type:r.type,name:r.name,target:e.name,propertyName:n,constraints:r.constraints,validationTypeOptions:r.options,validationOptions:i};t.push(new Qi(a))})}),t},e}(),ea=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},ta=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},na=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};(function(){function e(){this.validationMetadatas=new Map,this.constraintMetadatas=new Map}return Object.defineProperty(e.prototype,"hasValidationMetaData",{get:function(){return!!this.validationMetadatas.size},enumerable:!1,configurable:!0}),e.prototype.addValidationSchema=function(e){var t=this;new $i().transform(e).forEach(function(e){return t.addValidationMetadata(e)})},e.prototype.addValidationMetadata=function(e){var t=this.validationMetadatas.get(e.target);t?t.push(e):this.validationMetadatas.set(e.target,[e])},e.prototype.addConstraintMetadata=function(e){var t=this.constraintMetadatas.get(e.target);t?t.push(e):this.constraintMetadatas.set(e.target,[e])},e.prototype.groupByPropertyName=function(e){var t={};return e.forEach(function(e){t[e.propertyName]||(t[e.propertyName]=[]),t[e.propertyName].push(e)}),t},e.prototype.getTargetValidationMetadatas=function(e,t,n,r,i){var a,o,s=function(e){return e.always===void 0?e.groups&&e.groups.length?!1:n:e.always},c=function(e){return!!(r&&(!i||!i.length)&&e.groups&&e.groups.length)},l=(this.validationMetadatas.get(e)||[]).filter(function(n){return n.target!==e&&n.target!==t?!1:s(n)?!0:c(n)?!1:i&&i.length>0?n.groups&&!!n.groups.find(function(e){return i.indexOf(e)!==-1}):!0}),u=[];try{for(var d=ea(this.validationMetadatas.entries()),f=d.next();!f.done;f=d.next()){var p=ta(f.value,2),ee=p[0],te=p[1];e.prototype instanceof ee&&u.push.apply(u,na([],ta(te),!1))}}catch(e){a={error:e}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}var ne=u.filter(function(t){return typeof t.target==`string`||t.target===e||t.target instanceof Function&&!(e.prototype instanceof t.target)?!1:s(t)?!0:c(t)?!1:i&&i.length>0?t.groups&&!!t.groups.find(function(e){return i.indexOf(e)!==-1}):!0}).filter(function(e){return!l.find(function(t){return t.propertyName===e.propertyName&&t.type===e.type})});return l.concat(ne)},e.prototype.getTargetValidatorConstraints=function(e){return this.constraintMetadatas.get(e)||[]},e})(),function(){function e(){}return e.isValid=function(e){var t=this;return e!==`isValid`&&e!==`getMessage`&&Object.keys(this).map(function(e){return t[e]}).indexOf(e)!==-1},e.CUSTOM_VALIDATION=`customValidation`,e.NESTED_VALIDATION=`nestedValidation`,e.PROMISE_VALIDATION=`promiseValidation`,e.CONDITIONAL_VALIDATION=`conditionalValidation`,e.WHITELIST=`whitelistValidation`,e.IS_DEFINED=`isDefined`,e}();var ra=new(function(){function e(){this.instances=[]}return e.prototype.get=function(e){var t=this.instances.find(function(t){return t.type===e});return t||(t={type:e,object:new e},this.instances.push(t)),t.object},e}()),ia,q;function aa(e){if(ia)try{var t=ia.get(e);if(t||!q||!q.fallback)return t}catch(e){if(!q||!q.fallbackOnErrors)throw e}return ra.get(e)}(function(){function e(e,t,n){n===void 0&&(n=!1),this.target=e,this.name=t,this.async=n}return Object.defineProperty(e.prototype,"instance",{get:function(){return aa(this.target)},enumerable:!1,configurable:!0}),e})();var J=function(e){return e.ACTOR=`ACTOR`,e.ADDRESS=`ADDRESS`,e.ARRAY=`ARRAY`,e.BOOLEAN=`BOOLEAN`,e.CURRENCY=`CURRENCY`,e.DATE=`DATE`,e.DATE_TIME=`DATE_TIME`,e.EMAILS=`EMAILS`,e.FILES=`FILES`,e.FULL_NAME=`FULL_NAME`,e.LINKS=`LINKS`,e.MORPH_RELATION=`MORPH_RELATION`,e.MULTI_SELECT=`MULTI_SELECT`,e.NUMBER=`NUMBER`,e.NUMERIC=`NUMERIC`,e.PHONES=`PHONES`,e.POSITION=`POSITION`,e.RATING=`RATING`,e.RAW_JSON=`RAW_JSON`,e.RELATION=`RELATION`,e.RICH_TEXT=`RICH_TEXT`,e.SELECT=`SELECT`,e.TEXT=`TEXT`,e.TS_VECTOR=`TS_VECTOR`,e.UUID=`UUID`,e}({}),oa=function(e){return e.EMAIL=`EMAIL`,e.CALENDAR=`CALENDAR`,e.WORKFLOW=`WORKFLOW`,e.AGENT=`AGENT`,e.API=`API`,e.IMPORT=`IMPORT`,e.MANUAL=`MANUAL`,e.SYSTEM=`SYSTEM`,e.WEBHOOK=`WEBHOOK`,e.APPLICATION=`APPLICATION`,e}({}),sa={type:J.ACTOR,properties:[{name:`source`,type:J.SELECT,hidden:!1,isRequired:!0,options:Object.keys(oa).map((e,t)=>({id:ae(),label:`${oa[e].toLowerCase()}`,value:e,position:t}))},{name:`workspaceMemberId`,type:J.UUID,hidden:`input`,isRequired:!1},{name:`name`,type:J.TEXT,hidden:`input`,isRequired:!0},{name:`context`,type:J.RAW_JSON,hidden:!1,isRequired:!1}]},ca={type:J.ADDRESS,properties:[{name:`addressStreet1`,type:J.TEXT,hidden:!1,isRequired:!1},{name:`addressStreet2`,type:J.TEXT,hidden:!1,isRequired:!1},{name:`addressCity`,type:J.TEXT,hidden:!1,isRequired:!1},{name:`addressPostcode`,type:J.TEXT,hidden:!1,isRequired:!1},{name:`addressState`,type:J.TEXT,hidden:!1,isRequired:!1},{name:`addressCountry`,type:J.TEXT,hidden:!1,isRequired:!1},{name:`addressLat`,type:J.NUMERIC,hidden:!1,isRequired:!1},{name:`addressLng`,type:J.NUMERIC,hidden:!1,isRequired:!1}]},la={type:J.CURRENCY,properties:[{name:`amountMicros`,type:J.NUMERIC,hidden:!1,isRequired:!1},{name:`currencyCode`,type:J.TEXT,hidden:!1,isRequired:!1}]},ua={type:J.EMAILS,properties:[{name:`primaryEmail`,type:J.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`additionalEmails`,type:J.RAW_JSON,hidden:!1,isRequired:!1}]},da={type:J.FULL_NAME,properties:[{name:`firstName`,type:J.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!1},{name:`lastName`,type:J.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!1}]},fa={type:J.LINKS,properties:[{name:`primaryLinkLabel`,type:J.TEXT,hidden:!1,isRequired:!1},{name:`primaryLinkUrl`,type:J.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`secondaryLinks`,type:J.RAW_JSON,hidden:!1,isRequired:!1}]},pa={type:J.PHONES,properties:[{name:`primaryPhoneNumber`,type:J.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`primaryPhoneCountryCode`,type:J.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`primaryPhoneCallingCode`,type:J.TEXT,hidden:!1,isRequired:!1,isIncludedInUniqueConstraint:!0},{name:`additionalPhones`,type:J.RAW_JSON,hidden:!1,isRequired:!1}]},ma={type:J.RICH_TEXT,properties:[{name:`blocknote`,type:J.TEXT,hidden:!1,isRequired:!1},{name:`markdown`,type:J.TEXT,hidden:!1,isRequired:!1}]};wi({blocknote:Qr().nullable().optional(),markdown:Qr().nullable()}),new Map([[J.LINKS,fa],[J.CURRENCY,la],[J.FULL_NAME,da],[J.ADDRESS,ca],[J.ACTOR,sa],[J.EMAILS,ua],[J.PHONES,pa],[J.RICH_TEXT,ma]]);var Y=function(e){return e.GOOGLE=`google`,e.MICROSOFT=`microsoft`,e.IMAP_SMTP_CALDAV=`imap_smtp_caldav`,e.OIDC=`oidc`,e.SAML=`saml`,e.EMAIL_GROUP=`email_group`,e.APP=`app`,e}({});J.RELATION,J.MORPH_RELATION,J.FILES,J.TS_VECTOR;var ha=function(e){return e.EMAIL=`EMAIL`,e.SMS=`SMS`,e.EMAIL_GROUP=`EMAIL_GROUP`,e.APP=`APP`,e}({}),X=function(e){return e.DAY=`DAY`,e.MONTH=`MONTH`,e.QUARTER=`QUARTER`,e.YEAR=`YEAR`,e.WEEK=`WEEK`,e.DAY_OF_THE_WEEK=`DAY_OF_THE_WEEK`,e.MONTH_OF_THE_YEAR=`MONTH_OF_THE_YEAR`,e.QUARTER_OF_THE_YEAR=`QUARTER_OF_THE_YEAR`,e.NONE=`NONE`,e}({}),Z=function(e){return e.TABLE=`TABLE`,e.KANBAN=`KANBAN`,e.CALENDAR=`CALENDAR`,e.LIST=`LIST`,e.FIELDS_WIDGET=`FIELDS_WIDGET`,e.TABLE_WIDGET=`TABLE_WIDGET`,e.KANBAN_WIDGET=`KANBAN_WIDGET`,e.LIST_WIDGET=`LIST_WIDGET`,e.CALENDAR_WIDGET=`CALENDAR_WIDGET`,e}({});J.CURRENCY,J.EMAILS,J.LINKS,J.PHONES,J.FULL_NAME,J.ADDRESS,J.ACTOR,J.RICH_TEXT,J.CURRENCY,J.EMAILS,J.LINKS,J.PHONES,J.FULL_NAME,J.ADDRESS,J.ACTOR,J.RICH_TEXT,{DEVELOPERS_CONTRIBUTE_CAPABILITIES_LOCAL_SETUP:`/developers/contribute/capabilities/local-setup`,DEVELOPERS_CONTRIBUTE_COMMANDS:`/developers/contribute/commands`,DEVELOPERS_CONTRIBUTE_STYLE_GUIDE:`/developers/contribute/style-guide`,DEVELOPERS_EXTEND_API:`/developers/extend/api`,DEVELOPERS_EXTEND_APPS_CONFIG_APPLICATION:`/developers/extend/apps/config/application`,DEVELOPERS_EXTEND_APPS_CONFIG_INSTALL_HOOKS:`/developers/extend/apps/config/install-hooks`,DEVELOPERS_EXTEND_APPS_CONFIG_OVERVIEW:`/developers/extend/apps/config/overview`,DEVELOPERS_EXTEND_APPS_CONFIG_PUBLIC_ASSETS:`/developers/extend/apps/config/public-assets`,DEVELOPERS_EXTEND_APPS_CONFIG_ROLES:`/developers/extend/apps/config/roles`,DEVELOPERS_EXTEND_APPS_DATA_EXTENDING_OBJECTS:`/developers/extend/apps/data/extending-objects`,DEVELOPERS_EXTEND_APPS_DATA_OBJECTS:`/developers/extend/apps/data/objects`,DEVELOPERS_EXTEND_APPS_DATA_OVERVIEW:`/developers/extend/apps/data/overview`,DEVELOPERS_EXTEND_APPS_DATA_RELATIONS:`/developers/extend/apps/data/relations`,DEVELOPERS_EXTEND_APPS_DATA_SYSTEM_FIELDS:`/developers/extend/apps/data/system-fields`,DEVELOPERS_EXTEND_APPS_DATA_TIMELINE_ACTIVITY_TYPES:`/developers/extend/apps/data/timeline-activity-types`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_CONCEPTS:`/developers/extend/apps/getting-started/concepts`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_LOCAL_SERVER:`/developers/extend/apps/getting-started/local-server`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_PROJECT_STRUCTURE:`/developers/extend/apps/getting-started/project-structure`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_QUICK_START:`/developers/extend/apps/getting-started/quick-start`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_SCAFFOLDING:`/developers/extend/apps/getting-started/scaffolding`,DEVELOPERS_EXTEND_APPS_GETTING_STARTED_TROUBLESHOOTING:`/developers/extend/apps/getting-started/troubleshooting`,DEVELOPERS_EXTEND_APPS_LAYOUT_COMMAND_MENU_ITEMS:`/developers/extend/apps/layout/command-menu-items`,DEVELOPERS_EXTEND_APPS_LAYOUT_FRONT_COMPONENTS:`/developers/extend/apps/layout/front-components`,DEVELOPERS_EXTEND_APPS_LAYOUT_NAVIGATION_MENU_ITEMS:`/developers/extend/apps/layout/navigation-menu-items`,DEVELOPERS_EXTEND_APPS_LAYOUT_OVERVIEW:`/developers/extend/apps/layout/overview`,DEVELOPERS_EXTEND_APPS_LAYOUT_PAGE_LAYOUTS:`/developers/extend/apps/layout/page-layouts`,DEVELOPERS_EXTEND_APPS_LAYOUT_VIEWS:`/developers/extend/apps/layout/views`,DEVELOPERS_EXTEND_APPS_LOGIC_BACKGROUND_JOBS:`/developers/extend/apps/logic/background-jobs`,DEVELOPERS_EXTEND_APPS_LOGIC_CONNECTIONS:`/developers/extend/apps/logic/connections`,DEVELOPERS_EXTEND_APPS_LOGIC_CREDITS:`/developers/extend/apps/logic/credits`,DEVELOPERS_EXTEND_APPS_LOGIC_KEY_VALUE_STORE:`/developers/extend/apps/logic/key-value-store`,DEVELOPERS_EXTEND_APPS_LOGIC_LOGIC_FUNCTIONS:`/developers/extend/apps/logic/logic-functions`,DEVELOPERS_EXTEND_APPS_LOGIC_MESSAGING_CHANNELS:`/developers/extend/apps/logic/messaging-channels`,DEVELOPERS_EXTEND_APPS_LOGIC_OVERVIEW:`/developers/extend/apps/logic/overview`,DEVELOPERS_EXTEND_APPS_LOGIC_SKILLS_AND_AGENTS:`/developers/extend/apps/logic/skills-and-agents`,DEVELOPERS_EXTEND_APPS_OPERATIONS_CLI:`/developers/extend/apps/operations/cli`,DEVELOPERS_EXTEND_APPS_OPERATIONS_OVERVIEW:`/developers/extend/apps/operations/overview`,DEVELOPERS_EXTEND_APPS_OPERATIONS_PUBLISHING:`/developers/extend/apps/operations/publishing`,DEVELOPERS_EXTEND_APPS_OPERATIONS_SYNC_AND_RECOVERY:`/developers/extend/apps/operations/sync-and-recovery`,DEVELOPERS_EXTEND_APPS_OPERATIONS_TESTING:`/developers/extend/apps/operations/testing`,DEVELOPERS_EXTEND_APPS_OPERATIONS_TRANSLATIONS:`/developers/extend/apps/operations/translations`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_AI_AGENT:`/developers/extend/apps/tutorials/document-generator/ai-agent`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_BUILDING_THE_UI:`/developers/extend/apps/tutorials/document-generator/building-the-ui`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_DATA_MODEL:`/developers/extend/apps/tutorials/document-generator/data-model`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_GENERATING_DOCUMENTS:`/developers/extend/apps/tutorials/document-generator/generating-documents`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_HTTP_ROUTES:`/developers/extend/apps/tutorials/document-generator/http-routes`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_OVERVIEW:`/developers/extend/apps/tutorials/document-generator/overview`,DEVELOPERS_EXTEND_APPS_TUTORIALS_DOCUMENT_GENERATOR_PUBLISHING:`/developers/extend/apps/tutorials/document-generator/publishing`,DEVELOPERS_EXTEND_OAUTH:`/developers/extend/oauth`,DEVELOPERS_EXTEND_WEBHOOKS:`/developers/extend/webhooks`,DEVELOPERS_INTRODUCTION:`/developers/introduction`,DEVELOPERS_SELF_HOST_CAPABILITIES_DOCKER_COMPOSE:`/developers/self-host/capabilities/docker-compose`,DEVELOPERS_SELF_HOST_CAPABILITIES_SETUP:`/developers/self-host/capabilities/setup`,DEVELOPERS_SELF_HOST_CAPABILITIES_TROUBLESHOOTING:`/developers/self-host/capabilities/troubleshooting`,DEVELOPERS_SELF_HOST_CAPABILITIES_UPGRADE_GUIDE:`/developers/self-host/capabilities/upgrade-guide`,GETTING_STARTED_CORE_CONCEPTS_AI:`/getting-started/core-concepts/ai`,GETTING_STARTED_CORE_CONCEPTS_APPS:`/getting-started/core-concepts/apps`,GETTING_STARTED_CORE_CONCEPTS_CALENDAR_AND_EMAIL:`/getting-started/core-concepts/calendar-and-email`,GETTING_STARTED_CORE_CONCEPTS_DASHBOARDS:`/getting-started/core-concepts/dashboards`,GETTING_STARTED_CORE_CONCEPTS_DATA_MODEL:`/getting-started/core-concepts/data-model`,GETTING_STARTED_CORE_CONCEPTS_GLOSSARY:`/getting-started/core-concepts/glossary`,GETTING_STARTED_CORE_CONCEPTS_LAYOUT:`/getting-started/core-concepts/layout`,GETTING_STARTED_CORE_CONCEPTS_WORKFLOWS:`/getting-started/core-concepts/workflows`,GETTING_STARTED_INTRODUCTION:`/getting-started/introduction`,GETTING_STARTED_KEY_FEATURES:`/getting-started/key-features`,GETTING_STARTED_QUICKSTART:`/getting-started/quickstart`,UI_ACCESSIBILITY:`/ui/accessibility`,UI_COMPONENTS_ANIMATED_ICON_CROSSFADE:`/ui/components/animated-icon-crossfade`,UI_COMPONENTS_AVATAR_GROUP:`/ui/components/avatar-group`,UI_COMPONENTS_CALLOUT:`/ui/components/callout`,UI_COMPONENTS_CODE_EDITOR:`/ui/components/code-editor`,UI_COMPONENTS_COMMAND_BLOCK:`/ui/components/command-block`,UI_COMPONENTS_DROPDOWN:`/ui/components/dropdown`,UI_COMPONENTS_INLINE_BANNER:`/ui/components/inline-banner`,UI_COMPONENTS_INPUT_ICON_BUTTON:`/ui/components/input/icon-button`,UI_COMPONENTS_INPUT_LIGHT_BUTTON:`/ui/components/input/light-button`,UI_COMPONENTS_INPUT_LIGHT_ICON_BUTTON:`/ui/components/input/light-icon-button`,UI_COMPONENTS_INPUT_MAIN_BUTTON:`/ui/components/input/main-button`,UI_COMPONENTS_JSON_TREE:`/ui/components/json-tree`,UI_COMPONENTS_MENU_ITEMS:`/ui/components/menu-items`,UI_COMPONENTS_MENU_PICKER:`/ui/components/menu-picker`,UI_COMPONENTS_NAVIGATION_BAR:`/ui/components/navigation-bar`,UI_COMPONENTS_NOTIFICATION_COUNTER:`/ui/components/notification-counter`,UI_COMPONENTS_OVERVIEW:`/ui/components/overview`,UI_COMPONENTS_SEARCH_INPUT:`/ui/components/search-input`,UI_COMPONENTS_SECTION:`/ui/components/section`,UI_COMPONENTS_SETTINGS_ROW:`/ui/components/settings-row`,UI_COMPONENTS_TAB_BUTTON:`/ui/components/tab-button`,UI_COMPONENTS_TINTED_ICON_TILE:`/ui/components/tinted-icon-tile`,UI_COMPONENTS_TOAST:`/ui/components/toast`,UI_DARK_MODE:`/ui/dark-mode`,UI_GETTING_STARTED:`/ui/getting-started`,UI_ICONS:`/ui/icons`,UI_PRIMITIVES_ACCESSIBILITY_VISIBILITY_HIDDEN:`/ui/primitives/accessibility/visibility-hidden`,UI_PRIMITIVES_DATA_DISPLAY_AVATAR:`/ui/primitives/data-display/avatar`,UI_PRIMITIVES_DATA_DISPLAY_CHIP:`/ui/primitives/data-display/chip`,UI_PRIMITIVES_DATA_DISPLAY_COLOR_SAMPLE:`/ui/primitives/data-display/color-sample`,UI_PRIMITIVES_DATA_DISPLAY_PILL:`/ui/primitives/data-display/pill`,UI_PRIMITIVES_DATA_DISPLAY_STATUS:`/ui/primitives/data-display/status`,UI_PRIMITIVES_DATA_DISPLAY_TAG:`/ui/primitives/data-display/tag`,UI_PRIMITIVES_FEEDBACK_BANNER:`/ui/primitives/feedback/banner`,UI_PRIMITIVES_FEEDBACK_LOADER:`/ui/primitives/feedback/loader`,UI_PRIMITIVES_FEEDBACK_PROGRESS_BAR:`/ui/primitives/feedback/progress-bar`,UI_PRIMITIVES_INPUT_BUTTON:`/ui/primitives/input/button`,UI_PRIMITIVES_INPUT_BUTTON_GROUP:`/ui/primitives/input/button-group`,UI_PRIMITIVES_INPUT_CHECKBOX:`/ui/primitives/input/checkbox`,UI_PRIMITIVES_INPUT_FIELD:`/ui/primitives/input/field`,UI_PRIMITIVES_INPUT_INPUT:`/ui/primitives/input/input`,UI_PRIMITIVES_INPUT_INPUT_GROUP:`/ui/primitives/input/input-group`,UI_PRIMITIVES_INPUT_RADIO:`/ui/primitives/input/radio`,UI_PRIMITIVES_INPUT_RADIO_GROUP:`/ui/primitives/input/radio-group`,UI_PRIMITIVES_INPUT_SEGMENTED_CONTROL:`/ui/primitives/input/segmented-control`,UI_PRIMITIVES_INPUT_SELECT:`/ui/primitives/input/select`,UI_PRIMITIVES_INPUT_SLIDER:`/ui/primitives/input/slider`,UI_PRIMITIVES_INPUT_SWITCH:`/ui/primitives/input/switch`,UI_PRIMITIVES_INPUT_TEXTAREA:`/ui/primitives/input/textarea`,UI_PRIMITIVES_LAYOUT_COLLAPSIBLE:`/ui/primitives/layout/collapsible`,UI_PRIMITIVES_LAYOUT_HORIZONTAL_SEPARATOR:`/ui/primitives/layout/horizontal-separator`,UI_PRIMITIVES_LAYOUT_RESIZE_HANDLE:`/ui/primitives/layout/resize-handle`,UI_PRIMITIVES_LAYOUT_TEXT_DIRECTION_PROVIDER:`/ui/primitives/layout/text-direction-provider`,UI_PRIMITIVES_NAVIGATION_LIST_ITEM:`/ui/primitives/navigation/list-item`,UI_PRIMITIVES_NAVIGATION_TABS:`/ui/primitives/navigation/tabs`,UI_PRIMITIVES_OVERVIEW:`/ui/primitives/overview`,UI_PRIMITIVES_SURFACES_ALERT_DIALOG:`/ui/primitives/surfaces/alert-dialog`,UI_PRIMITIVES_SURFACES_CARD:`/ui/primitives/surfaces/card`,UI_PRIMITIVES_SURFACES_DIALOG:`/ui/primitives/surfaces/dialog`,UI_PRIMITIVES_SURFACES_MENU:`/ui/primitives/surfaces/menu`,UI_PRIMITIVES_SURFACES_POPOVER:`/ui/primitives/surfaces/popover`,UI_PRIMITIVES_SURFACES_TOOLTIP:`/ui/primitives/surfaces/tooltip`,UI_PRIMITIVES_TYPOGRAPHY_HEADING:`/ui/primitives/typography/heading`,UI_PRIMITIVES_TYPOGRAPHY_OVERFLOWING_TEXT_WITH_TOOLTIP:`/ui/primitives/typography/overflowing-text-with-tooltip`,UI_PRIMITIVES_TYPOGRAPHY_TEXT:`/ui/primitives/typography/text`,UI_SSR:`/ui/ssr`,UI_TESTING:`/ui/testing`,UI_THEMING:`/ui/theming`,UI_TOKENS:`/ui/tokens`,USER_GUIDE_AI_CAPABILITIES_AI_AGENTS:`/user-guide/ai/capabilities/ai-agents`,USER_GUIDE_AI_CAPABILITIES_AI_CHATBOT:`/user-guide/ai/capabilities/ai-chatbot`,USER_GUIDE_AI_CAPABILITIES_PERMISSIONS_ACCESS_CONTROL:`/user-guide/ai/capabilities/permissions-access-control`,USER_GUIDE_AI_HOW_TOS_AI_FAQ:`/user-guide/ai/how-tos/ai-faq`,USER_GUIDE_AI_OVERVIEW:`/user-guide/ai/overview`,USER_GUIDE_BILLING_CAPABILITIES_CREDITS:`/user-guide/billing/capabilities/credits`,USER_GUIDE_BILLING_CAPABILITIES_PRICING_PLANS:`/user-guide/billing/capabilities/pricing-plans`,USER_GUIDE_BILLING_CAPABILITIES_USAGE_LIMITS:`/user-guide/billing/capabilities/usage-limits`,USER_GUIDE_BILLING_HOW_TOS_BILLING_FAQ:`/user-guide/billing/how-tos/billing-faq`,USER_GUIDE_BILLING_OVERVIEW:`/user-guide/billing/overview`,USER_GUIDE_CALENDAR_EMAILS_CAPABILITIES_CALENDAR:`/user-guide/calendar-emails/capabilities/calendar`,USER_GUIDE_CALENDAR_EMAILS_CAPABILITIES_MAILBOX:`/user-guide/calendar-emails/capabilities/mailbox`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_CAN_I_BOOK_MEETINGS_FROM_TWENTY:`/user-guide/calendar-emails/how-tos/can-i-book-meetings-from-twenty`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_CAN_I_SEND_EMAILS_FROM_TWENTY:`/user-guide/calendar-emails/how-tos/can-i-send-emails-from-twenty`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_CAN_I_TRACK_EMAIL_ACTIVITY_ON_ALL_OBJECTS:`/user-guide/calendar-emails/how-tos/can-i-track-email-activity-on-all-objects`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_CONNECT_SEVERAL_MAILBOXES_PER_USER:`/user-guide/calendar-emails/how-tos/connect-several-mailboxes-per-user`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_FORWARD_A_SHARED_INBOX_FROM_ANY_MAIL_PROVIDER:`/user-guide/calendar-emails/how-tos/forward-a-shared-inbox-from-any-mail-provider`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_FORWARD_A_SHARED_INBOX_FROM_GOOGLE_WORKSPACE:`/user-guide/calendar-emails/how-tos/forward-a-shared-inbox-from-google-workspace`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_FORWARD_A_SHARED_INBOX_FROM_MICROSOFT_365:`/user-guide/calendar-emails/how-tos/forward-a-shared-inbox-from-microsoft-365`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_I_DONT_SEE_EMAILS_ON_RECORDS:`/user-guide/calendar-emails/how-tos/i-dont-see-emails-on-records`,USER_GUIDE_CALENDAR_EMAILS_HOW_TOS_LIMIT_EMAILS_IMPORTED:`/user-guide/calendar-emails/how-tos/limit-emails-imported`,USER_GUIDE_CALENDAR_EMAILS_OVERVIEW:`/user-guide/calendar-emails/overview`,USER_GUIDE_DASHBOARDS_CAPABILITIES_CHART_SETTINGS:`/user-guide/dashboards/capabilities/chart-settings`,USER_GUIDE_DASHBOARDS_CAPABILITIES_DASHBOARDS:`/user-guide/dashboards/capabilities/dashboards`,USER_GUIDE_DASHBOARDS_CAPABILITIES_WIDGETS:`/user-guide/dashboards/capabilities/widgets`,USER_GUIDE_DASHBOARDS_HOW_TOS_DASHBOARDS_FAQ:`/user-guide/dashboards/how-tos/dashboards-faq`,USER_GUIDE_DASHBOARDS_HOW_TOS_WIDGET_FAQ:`/user-guide/dashboards/how-tos/widget-faq`,USER_GUIDE_DASHBOARDS_OVERVIEW:`/user-guide/dashboards/overview`,USER_GUIDE_DATA_MIGRATION_CAPABILITIES_ERROR_HANDLING:`/user-guide/data-migration/capabilities/error-handling`,USER_GUIDE_DATA_MIGRATION_CAPABILITIES_FIELD_MAPPING:`/user-guide/data-migration/capabilities/field-mapping`,USER_GUIDE_DATA_MIGRATION_CAPABILITIES_FILE_FORMATS:`/user-guide/data-migration/capabilities/file-formats`,USER_GUIDE_DATA_MIGRATION_CAPABILITIES_IMPORT_RELATIONS:`/user-guide/data-migration/capabilities/import-relations`,USER_GUIDE_DATA_MIGRATION_CAPABILITIES_UNIQUENESS_CONSTRAINTS:`/user-guide/data-migration/capabilities/uniqueness-constraints`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_EXPORT_YOUR_DATA:`/user-guide/data-migration/how-tos/export-your-data`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_FIX_IMPORT_ERRORS:`/user-guide/data-migration/how-tos/fix-import-errors`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_IMPORT_COMPANIES_VIA_CSV:`/user-guide/data-migration/how-tos/import-companies-via-csv`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_IMPORT_CONTACTS_VIA_CSV:`/user-guide/data-migration/how-tos/import-contacts-via-csv`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_IMPORT_DATA_VIA_API:`/user-guide/data-migration/how-tos/import-data-via-api`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_IMPORT_RELATIONS_BETWEEN_OBJECTS_VIA_CSV:`/user-guide/data-migration/how-tos/import-relations-between-objects-via-csv`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_MIGRATING_FROM_OTHER_CRMS:`/user-guide/data-migration/how-tos/migrating-from-other-crms`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_MIGRATING_FROM_SELF_HOSTED_TO_CLOUD:`/user-guide/data-migration/how-tos/migrating-from-self-hosted-to-cloud`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_PREPARE_YOUR_CSV_FILES:`/user-guide/data-migration/how-tos/prepare-your-csv-files`,USER_GUIDE_DATA_MIGRATION_HOW_TOS_UPDATE_EXISTING_RECORDS_VIA_IMPORT:`/user-guide/data-migration/how-tos/update-existing-records-via-import`,USER_GUIDE_DATA_MIGRATION_OVERVIEW:`/user-guide/data-migration/overview`,USER_GUIDE_DATA_MODEL_CAPABILITIES_FIELDS:`/user-guide/data-model/capabilities/fields`,USER_GUIDE_DATA_MODEL_CAPABILITIES_OBJECTS:`/user-guide/data-model/capabilities/objects`,USER_GUIDE_DATA_MODEL_CAPABILITIES_RELATION_FIELDS:`/user-guide/data-model/capabilities/relation-fields`,USER_GUIDE_DATA_MODEL_HOW_TOS_CREATE_CUSTOM_FIELDS:`/user-guide/data-model/how-tos/create-custom-fields`,USER_GUIDE_DATA_MODEL_HOW_TOS_CREATE_CUSTOM_OBJECTS:`/user-guide/data-model/how-tos/create-custom-objects`,USER_GUIDE_DATA_MODEL_HOW_TOS_CREATE_MANY_TO_MANY_RELATIONS:`/user-guide/data-model/how-tos/create-many-to-many-relations`,USER_GUIDE_DATA_MODEL_HOW_TOS_CREATE_RELATION_FIELDS:`/user-guide/data-model/how-tos/create-relation-fields`,USER_GUIDE_DATA_MODEL_HOW_TOS_CUSTOMIZE_YOUR_DATA_MODEL:`/user-guide/data-model/how-tos/customize-your-data-model`,USER_GUIDE_DATA_MODEL_HOW_TOS_DATA_MODEL_FAQ:`/user-guide/data-model/how-tos/data-model-faq`,USER_GUIDE_DATA_MODEL_OVERVIEW:`/user-guide/data-model/overview`,USER_GUIDE_EMAIL_CAMPAIGNS_HOW_TOS_CREATE_A_CAMPAIGN_WITH_AI:`/user-guide/email-campaigns/how-tos/create-a-campaign-with-ai`,USER_GUIDE_EMAIL_CAMPAIGNS_HOW_TOS_EMAIL_CAMPAIGN_BEST_PRACTICES:`/user-guide/email-campaigns/how-tos/email-campaign-best-practices`,USER_GUIDE_EMAIL_CAMPAIGNS_HOW_TOS_MANAGE_UNSUBSCRIBES_AND_TOPICS:`/user-guide/email-campaigns/how-tos/manage-unsubscribes-and-topics`,USER_GUIDE_EMAIL_CAMPAIGNS_HOW_TOS_SEND_YOUR_FIRST_CAMPAIGN:`/user-guide/email-campaigns/how-tos/send-your-first-campaign`,USER_GUIDE_EMAIL_CAMPAIGNS_HOW_TOS_SET_UP_A_SENDING_DOMAIN:`/user-guide/email-campaigns/how-tos/set-up-a-sending-domain`,USER_GUIDE_EMAIL_CAMPAIGNS_OVERVIEW:`/user-guide/email-campaigns/overview`,USER_GUIDE_INTRODUCTION:`/user-guide/introduction`,USER_GUIDE_LAYOUT_CAPABILITIES_NAVIGATION:`/user-guide/layout/capabilities/navigation`,USER_GUIDE_LAYOUT_CAPABILITIES_RECORD_PAGES:`/user-guide/layout/capabilities/record-pages`,USER_GUIDE_LAYOUT_OVERVIEW:`/user-guide/layout/overview`,USER_GUIDE_LEGAL_HOW_TOS_LEGAL_FAQ:`/user-guide/legal/how-tos/legal-faq`,USER_GUIDE_LEGAL_OVERVIEW:`/user-guide/legal/overview`,USER_GUIDE_PERMISSIONS_ACCESS_CAPABILITIES_PERMISSIONS:`/user-guide/permissions-access/capabilities/permissions`,USER_GUIDE_PERMISSIONS_ACCESS_CAPABILITIES_SSO_CONFIGURATION:`/user-guide/permissions-access/capabilities/sso-configuration`,USER_GUIDE_PERMISSIONS_ACCESS_HOW_TOS_PERMISSIONS_FAQ:`/user-guide/permissions-access/how-tos/permissions-faq`,USER_GUIDE_PERMISSIONS_ACCESS_OVERVIEW:`/user-guide/permissions-access/overview`,USER_GUIDE_SETTINGS_CAPABILITIES_COMMUNITY_SETTINGS:`/user-guide/settings/capabilities/community-settings`,USER_GUIDE_SETTINGS_CAPABILITIES_DOMAINS_SETTINGS:`/user-guide/settings/capabilities/domains-settings`,USER_GUIDE_SETTINGS_CAPABILITIES_EXPERIENCE_SETTINGS:`/user-guide/settings/capabilities/experience-settings`,USER_GUIDE_SETTINGS_CAPABILITIES_MEMBER_MANAGEMENT:`/user-guide/settings/capabilities/member-management`,USER_GUIDE_SETTINGS_CAPABILITIES_PROFILE_SETTINGS:`/user-guide/settings/capabilities/profile-settings`,USER_GUIDE_SETTINGS_CAPABILITIES_WORKSPACE_SETTINGS:`/user-guide/settings/capabilities/workspace-settings`,USER_GUIDE_SETTINGS_HOW_TOS_SETTINGS_FAQ:`/user-guide/settings/how-tos/settings-faq`,USER_GUIDE_SETTINGS_OVERVIEW:`/user-guide/settings/overview`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_CALENDAR_VIEW:`/user-guide/views-pipelines/capabilities/calendar-view`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_FIELDS_AND_COLUMNS:`/user-guide/views-pipelines/capabilities/fields-and-columns`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_FILTERS_AND_SORTING:`/user-guide/views-pipelines/capabilities/filters-and-sorting`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_KANBAN_VIEWS:`/user-guide/views-pipelines/capabilities/kanban-views`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_TABLE_VIEWS:`/user-guide/views-pipelines/capabilities/table-views`,USER_GUIDE_VIEWS_PIPELINES_CAPABILITIES_VIEW_SETTINGS:`/user-guide/views-pipelines/capabilities/view-settings`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_CREATE_A_CALENDAR_VIEW_FOR_TASKS_DUE:`/user-guide/views-pipelines/how-tos/create-a-calendar-view-for-tasks-due`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_CREATE_A_KANBAN_VIEW_FOR_PROJECTS:`/user-guide/views-pipelines/how-tos/create-a-kanban-view-for-projects`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_CREATE_A_TABLE_VIEW_WITH_GROUPING:`/user-guide/views-pipelines/how-tos/create-a-table-view-with-grouping`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_RESTRICT_ACCESS_TO_YOUR_VIEW:`/user-guide/views-pipelines/how-tos/restrict-access-to-your-view`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_SET_UP_A_SALES_PIPELINE:`/user-guide/views-pipelines/how-tos/set-up-a-sales-pipeline`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_SHOW_EXPECTED_AMOUNT_IN_PIPELINE:`/user-guide/views-pipelines/how-tos/show-expected-amount-in-pipeline`,USER_GUIDE_VIEWS_PIPELINES_HOW_TOS_TRACK_TIME_IN_STAGE:`/user-guide/views-pipelines/how-tos/track-time-in-stage`,USER_GUIDE_WORKFLOWS_CAPABILITIES_SEND_EMAILS_FROM_WORKFLOWS:`/user-guide/workflows/capabilities/send-emails-from-workflows`,USER_GUIDE_WORKFLOWS_CAPABILITIES_USE_BRANCHES_IN_WORKFLOWS:`/user-guide/workflows/capabilities/use-branches-in-workflows`,USER_GUIDE_WORKFLOWS_CAPABILITIES_USE_ITERATOR:`/user-guide/workflows/capabilities/use-iterator`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_ACTIONS:`/user-guide/workflows/capabilities/workflow-actions`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_BRANCHES:`/user-guide/workflows/capabilities/workflow-branches`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_CREDITS:`/user-guide/workflows/capabilities/workflow-credits`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_RUNS:`/user-guide/workflows/capabilities/workflow-runs`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_TRIGGERS:`/user-guide/workflows/capabilities/workflow-triggers`,USER_GUIDE_WORKFLOWS_CAPABILITIES_WORKFLOW_VERSIONS:`/user-guide/workflows/capabilities/workflow-versions`,USER_GUIDE_WORKFLOWS_HOW_TOS_ADVANCED_CONFIGURATIONS_HANDLE_ARRAYS_IN_CODE_ACTIONS:`/user-guide/workflows/how-tos/advanced-configurations/handle-arrays-in-code-actions`,USER_GUIDE_WORKFLOWS_HOW_TOS_CONNECT_TO_OTHER_TOOLS_BRING_PRODUCT_DATA_IN_TWENTY:`/user-guide/workflows/how-tos/connect-to-other-tools/bring-product-data-in-twenty`,USER_GUIDE_WORKFLOWS_HOW_TOS_CONNECT_TO_OTHER_TOOLS_BRING_TYPEFORM_SUBMISSIONS_IN_TWENTY:`/user-guide/workflows/how-tos/connect-to-other-tools/bring-typeform-submissions-in-twenty`,USER_GUIDE_WORKFLOWS_HOW_TOS_CONNECT_TO_OTHER_TOOLS_GENERATE_PDF_FROM_TWENTY:`/user-guide/workflows/how-tos/connect-to-other-tools/generate-pdf-from-twenty`,USER_GUIDE_WORKFLOWS_HOW_TOS_CONNECT_TO_OTHER_TOOLS_GENERATE_QUOTE_OR_INVOICE_FROM_TWENTY:`/user-guide/workflows/how-tos/connect-to-other-tools/generate-quote-or-invoice-from-twenty`,USER_GUIDE_WORKFLOWS_HOW_TOS_CONNECT_TO_OTHER_TOOLS_SET_UP_A_WEBHOOK_TRIGGER:`/user-guide/workflows/how-tos/connect-to-other-tools/set-up-a-webhook-trigger`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_AUTO_REPLY_TO_INBOUND_EMAILS:`/user-guide/workflows/how-tos/crm-automations/auto-reply-to-inbound-emails`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_CLOSED_WON_AUTOMATIONS:`/user-guide/workflows/how-tos/crm-automations/closed-won-automations`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_DETECT_STALE_OPPORTUNITIES:`/user-guide/workflows/how-tos/crm-automations/detect-stale-opportunities`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_DISPLAY_NUMBER_OF_EMAILS_RECEIVED:`/user-guide/workflows/how-tos/crm-automations/display-number-of-emails-received`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_DISPLAY_RELATED_RECORD_DATA:`/user-guide/workflows/how-tos/crm-automations/display-related-record-data`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_FORMULA_FIELDS:`/user-guide/workflows/how-tos/crm-automations/formula-fields`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_NOTIFY_TEAMMATES_OF_NOTE_TO_REVIEW:`/user-guide/workflows/how-tos/crm-automations/notify-teammates-of-note-to-review`,USER_GUIDE_WORKFLOWS_HOW_TOS_CRM_AUTOMATIONS_SEND_EMAIL_ALERTS_WITH_TASKS_DUE:`/user-guide/workflows/how-tos/crm-automations/send-email-alerts-with-tasks-due`,USER_GUIDE_WORKFLOWS_HOW_TOS_NEED_MORE_HELP_PROFESSIONAL_SERVICES:`/user-guide/workflows/how-tos/need-more-help/professional-services`,USER_GUIDE_WORKFLOWS_HOW_TOS_NEED_MORE_HELP_WORKFLOW_TROUBLESHOOTING:`/user-guide/workflows/how-tos/need-more-help/workflow-troubleshooting`,USER_GUIDE_WORKFLOWS_HOW_TOS_NEED_MORE_HELP_WORKFLOWS_FAQ:`/user-guide/workflows/how-tos/need-more-help/workflows-faq`,USER_GUIDE_WORKFLOWS_OVERVIEW:`/user-guide/workflows/overview`}.GETTING_STARTED_INTRODUCTION,Y.GOOGLE,Y.MICROSOFT,Y.IMAP_SMTP_CALDAV,Y.GOOGLE,Y.MICROSOFT,Y.IMAP_SMTP_CALDAV,Y.EMAIL_GROUP,new Set([J.TS_VECTOR,J.RAW_JSON,J.FILES,J.POSITION]),J.ACTOR,J.ADDRESS,J.ARRAY,J.BOOLEAN,J.CURRENCY,J.DATE,J.DATE_TIME,J.EMAILS,J.FILES,J.FULL_NAME,J.LINKS,J.MORPH_RELATION,J.MULTI_SELECT,J.NUMBER,J.NUMERIC,J.PHONES,J.POSITION,J.RATING,J.RAW_JSON,J.RELATION,J.RICH_TEXT,J.SELECT,J.TEXT,J.TS_VECTOR,J.UUID,new Set([J.TS_VECTOR,J.ARRAY,J.MULTI_SELECT,J.RAW_JSON]),X.DAY,X.WEEK,X.MONTH,X.QUARTER,X.YEAR,J.FILES,J.LINKS,J.TEXT,J.FULL_NAME,J.UUID;var Q=function(e){return e.API_KEYS_AND_WEBHOOKS=`API_KEYS_AND_WEBHOOKS`,e.WORKSPACE=`WORKSPACE`,e.WORKSPACE_MEMBERS=`WORKSPACE_MEMBERS`,e.ROLES=`ROLES`,e.DATA_MODEL=`DATA_MODEL`,e.SECURITY=`SECURITY`,e.WORKFLOWS=`WORKFLOWS`,e.IMPERSONATE=`IMPERSONATE`,e.SSO_BYPASS=`SSO_BYPASS`,e.APPLICATIONS=`APPLICATIONS`,e.MARKETPLACE_APPS=`MARKETPLACE_APPS`,e.LAYOUTS=`LAYOUTS`,e.BILLING=`BILLING`,e.AI_SETTINGS=`AI_SETTINGS`,e.AI=`AI`,e.VIEWS=`VIEWS`,e.UPLOAD_FILE=`UPLOAD_FILE`,e.DOWNLOAD_FILE=`DOWNLOAD_FILE`,e.SEND_EMAIL_TOOL=`SEND_EMAIL_TOOL`,e.CREATE_CALENDAR_EVENT_TOOL=`CREATE_CALENDAR_EVENT_TOOL`,e.HTTP_REQUEST_TOOL=`HTTP_REQUEST_TOOL`,e.CODE_INTERPRETER_TOOL=`CODE_INTERPRETER_TOOL`,e.IMPORT_CSV=`IMPORT_CSV`,e.EXPORT_CSV=`EXPORT_CSV`,e.CONNECTED_ACCOUNTS=`CONNECTED_ACCOUNTS`,e.PROFILE_INFORMATION=`PROFILE_INFORMATION`,e}({});ha.EMAIL;var ga={API_KEYS_AND_WEBHOOKS:`beb99803-9a0e-588d-9c4b-3dd14d9cdf21`,WORKSPACE:`86a58859-a539-5fa8-ba18-a6aaddc811b6`,WORKSPACE_MEMBERS:`ec342166-2df7-53e7-aa9b-64992d6cb35f`,ROLES:`80f1e5ab-484c-5660-a5a1-0ee7413d8190`,DATA_MODEL:`f0c08013-3c9a-5489-bd45-a641fe5f085d`,SECURITY:`4a8b6016-1d3d-5c94-bbe8-a74c5f32335a`,WORKFLOWS:`6189e7bd-4051-5752-b6b1-5f31358fbaf1`,IMPERSONATE:`dd2274d1-bbd5-551d-bcf2-3147539cef11`,SSO_BYPASS:`2e9cfdc0-4669-58ab-b241-b6c3c14d96df`,APPLICATIONS:`9faa55f7-2606-566b-9e1d-aefbedbd0136`,MARKETPLACE_APPS:`3a37e2f5-d3e4-56d6-b541-adf0237468ff`,LAYOUTS:`458d1ee5-ba12-5f4e-9d17-6f8c11fcd7fd`,BILLING:`24b66701-ed97-51e4-aa63-794e1b31414c`,AI_SETTINGS:`e8cc4a30-c120-5925-8f5d-73d6a2247fee`,AI:`1c7f09a7-367d-568b-a0e8-c274eccd6ee3`,VIEWS:`c68354c4-535d-53a9-848a-e3a6774b5fb8`,UPLOAD_FILE:`dc6931a9-44bd-5164-a983-3db5db837f54`,DOWNLOAD_FILE:`6edf252f-228e-5e2f-9706-7bab7a796fd3`,SEND_EMAIL_TOOL:`19f382a8-689d-5792-a18c-737f0ce9025f`,CREATE_CALENDAR_EVENT_TOOL:`5b8c104e-24d3-4e89-986b-1d9208df6cf4`,HTTP_REQUEST_TOOL:`1bf49cf1-bb8f-5eb9-809a-5f34ea79fc6a`,CODE_INTERPRETER_TOOL:`11f31c3a-7042-54b7-a2dd-ae31dd9e9fa2`,IMPORT_CSV:`c4912536-a4db-5af9-85ac-be2919c24c5e`,EXPORT_CSV:`88efced9-ca6d-5316-a695-f1b9158e7370`,CONNECTED_ACCOUNTS:`e5f63b2d-5369-5df6-8f32-a8bd9e79e653`,PROFILE_INFORMATION:`7c13f23f-78d8-5e7d-8963-a7c8772fb4e8`},_a=[Q.AI,Q.VIEWS,Q.UPLOAD_FILE,Q.DOWNLOAD_FILE,Q.SEND_EMAIL_TOOL,Q.CREATE_CALENDAR_EVENT_TOOL,Q.HTTP_REQUEST_TOOL,Q.IMPORT_CSV,Q.EXPORT_CSV,Q.CONNECTED_ACCOUNTS,Q.PROFILE_INFORMATION,Q.CODE_INTERPRETER_TOOL],va={[J.CURRENCY]:[`amountMicros`],[J.FULL_NAME]:[`firstName`,`lastName`],[J.LINKS]:[`primaryLinkUrl`],[J.EMAILS]:[`primaryEmail`],[J.PHONES]:[`primaryPhoneNumber`]},ya=new WeakSet,ba=new WeakMap,xa=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Sa=e=>{if(!a(e)||e===``)return!0;if(Array.isArray(e))return e.length===0;if(!xa(e)||e instanceof Date)return!1;if(ya.has(e))return!0;let t=ba.get(e);if(t===J.RICH_TEXT)return!(0,i.isNonEmptyString)(e.markdown)||e.markdown.trim().length===0;let n=a(t)?va[t]:void 0;return(a(n)?n.map(t=>e[t]):Object.values(e)).every(Sa)};Z.TABLE,Z.KANBAN,Z.CALENDAR,Z.LIST,Z.FIELDS_WIDGET,Z.TABLE_WIDGET,Z.KANBAN_WIDGET,Z.LIST_WIDGET,Z.CALENDAR_WIDGET;var $=function(e){return e.OK=`OK`,e.SUCCESS=`SUCCESS`,e.INFO=`INFO`,e.WARNING=`WARNING`,e.ERROR=`ERROR`,e.NEUTRAL=`NEUTRAL`,e.UNKNOWN=`UNKNOWN`,e}({});Object.values($).filter(e=>e!==$.OK&&e!==$.UNKNOWN),J.TEXT,J.ARRAY,J.BOOLEAN,J.DATE,J.DATE_TIME,J.NUMBER,J.NUMERIC,J.RAW_JSON,J.RICH_TEXT,J.SELECT,J.MULTI_SELECT;var Ca=`TWENTY_API_KEY`,wa=`TWENTY_API_URL`,Ta=`TWENTY_APP_ACCESS_TOKEN`,Ea=`TWENTY_APP_APPLICATION_ACCESS_TOKEN`,Da=`TWENTY_FUNCTIONS_URL`;_a.map(e=>ga[e]),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Ea}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Ta}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Ca}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return wa}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Da}});