@session-services/web-elements 0.1.36 → 0.1.37
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/dist/cjs/{index-B2ZmNnji.js → index-DizKcz8n.js} +67 -36
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/session-services-elements.cjs.js +2 -2
- package/dist/cjs/session-services-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/session-services-ticketing.cjs.entry.js +68 -83
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/session-services-ticketing.js +1 -1
- package/dist/esm/{index-DhbVMqIT.js → index-C9V9lLxA.js} +67 -36
- package/dist/esm/loader.js +2 -2
- package/dist/esm/session-services-elements.js +3 -3
- package/dist/esm/session-services-formatted-text.entry.js +1 -1
- package/dist/esm/session-services-ticketing.entry.js +68 -83
- package/dist/session-services-elements/p-C9V9lLxA.js +3 -0
- package/dist/session-services-elements/{p-8483ca88.entry.js → p-e53e1820.entry.js} +1 -1
- package/dist/session-services-elements/p-fdb84721.entry.js +1 -0
- package/dist/session-services-elements/session-services-elements.esm.js +1 -1
- package/dist/types/components.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +73 -55
- package/loader/index.d.ts +1 -1
- package/package.json +9 -9
- package/dist/session-services-elements/p-2fa235a5.entry.js +0 -1
- package/dist/session-services-elements/p-DhbVMqIT.js +0 -2
|
@@ -1,104 +1,89 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
|
|
5
|
-
var e;function t(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:false}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n));}}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?true:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var n=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);}},r=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`;}};(e=globalThis).__zod_globalConfig??(e.__zod_globalConfig={});const i$1=globalThis.__zod_globalConfig;function a$1(e){return i$1}function o$1(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 s$1(e,t){return typeof t==`bigint`?t.toString():t}function c$1(e){return {get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function l$1(e){return e==null}function u$1(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function d$1(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}const f$1=Symbol(`evaluating`);function p$1(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==f$1)return r===void 0&&(r=f$1,r=n()),r},set(n){Object.defineProperty(e,t,{value:n});},configurable:true});}function m$1(e,t,n){Object.defineProperty(e,t,{value:n,writable:true,enumerable:true,configurable:true});}function h$1(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function ee$1(e){return JSON.stringify(e)}function te$1(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}const ne$1=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function g$1(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const re$1=c$1(()=>{if(i$1.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return false;try{return Function(``),true}catch{return false}});function _$1(e){if(g$1(e)===false)return false;let t=e.constructor;if(t===void 0||typeof t!=`function`)return true;let n=t.prototype;return !(g$1(n)===false||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===false)}function ie$1(e){return _$1(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const ae$1=new Set([`string`,`number`,`symbol`]);function v$1(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function y$1(e,t,n){let r=new e._zod.constr(t??e._zod.def);return (!t||n?.parent)&&(r._zod.parent=e),r}function b$1(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 oe$1(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}const se$1={safeint:[-9007199254740991,2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function ce$1(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return y$1(e,h$1(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 m$1(this,`shape`,e),e},checks:[]}))}function le$2(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return y$1(e,h$1(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 m$1(this,`shape`,r),r},checks:[]}))}function ue$2(e,t){if(!_$1(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return y$1(e,h$1(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return m$1(this,`shape`,n),n}}))}function de$2(e,t){if(!_$1(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return y$1(e,h$1(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return m$1(this,`shape`,n),n}}))}function fe$2(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return y$1(e,h$1(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return m$1(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function pe$2(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return y$1(t,h$1(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 m$1(this,`shape`,i),i},checks:[]}))}function me$2(e,t,n){return y$1(t,h$1(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 m$1(this,`shape`,i),i}}))}function x$1(e,t=0){if(e.aborted===true)return true;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==true)return true;return false}function he$2(e,t=0){if(e.aborted===true)return true;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===false)return true;return false}function S$2(e,t){return t.map(t=>{var n;return (n=t).path??(n.path=[]),t.path.unshift(e),t})}function C$2(e){return typeof e==`string`?e:e?.message}function w$2(e,t,n){let r=e.message?e.message:C$2(e.inst?._zod.def?.error?.(e))??C$2(t?.error?.(e))??C$2(n.customError?.(e))??C$2(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function ge$2(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function T$2(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}const _e$2=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:false}),Object.defineProperty(e,"issues",{value:t,enumerable:false}),e.message=JSON.stringify(t,s$1,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:false});},ve$2=t(`$ZodError`,_e$2),ye$2=t(`$ZodError`,_e$2,{Parent:Error});function be$2(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 xe$2(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else {let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else {let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++;}}}};return r(e),n}const Se$2=e=>(t,r,i,o)=>{let s=i?{...i,async:false}:{async:false},c=t._zod.run({value:r,issues:[]},s);if(c instanceof Promise)throw new n;if(c.issues.length){let t=new(o?.Err??e)(c.issues.map(e=>w$2(e,s,a$1())));throw ne$1(t,o?.callee),t}return c.value},Ce$2=e=>async(t,n,r,i)=>{let o=r?{...r,async:true}:{async:true},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>w$2(e,o,a$1())));throw ne$1(t,i?.callee),t}return s.value},E$2=e=>(t,r,i)=>{let o=i?{...i,async:false}:{async:false},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new n;return s.issues.length?{success:false,error:new(e??ve$2)(s.issues.map(e=>w$2(e,o,a$1())))}:{success:true,data:s.value}},we$2=E$2(ye$2),Te$2=e=>async(t,n,r)=>{let i=r?{...r,async:true}:{async:true},o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:false,error:new e(o.issues.map(e=>w$2(e,i,a$1())))}:{success:true,data:o.value}},Ee$2=Te$2(ye$2),De$2=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Se$2(e)(t,n,i)},Oe$2=e=>(t,n,r)=>Se$2(e)(t,n,r),ke$2=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Ce$2(e)(t,n,i)},Ae$2=e=>async(t,n,r)=>Ce$2(e)(t,n,r),je$2=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return E$2(e)(t,n,i)},Me$2=e=>(t,n,r)=>E$2(e)(t,n,r),Ne$2=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Te$2(e)(t,n,i)},Pe$2=e=>async(t,n,r)=>Te$2(e)(t,n,r),Fe$2=/^[cC][0-9a-z]{6,}$/,Ie$2=/^[0-9a-z]+$/,Le$2=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Re$2=/^[0-9a-vA-V]{20}$/,ze$2=/^[A-Za-z0-9]{27}$/,Be$2=/^[a-zA-Z0-9_-]{21}$/,Ve$2=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,He$2=/^([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})$/,Ue$1=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)$/,We$2=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function Ge$2(){return RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)}const Ke$2=/^(?:(?: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])$/,qe$2=/^(([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}|:))$/,Je$2=/^((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])$/,Ye$2=/^(([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])$/,Xe$2=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ze$2=/^[A-Za-z0-9_-]*$/,Qe$2=/^https?$/,$e$2=/^\+[1-9]\d{6,14}$/,et$2=`(?:(?:\\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])))`,tt$2=RegExp(`^${et$2}$`);function nt$2(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 rt$2(e){return RegExp(`^${nt$2(e)}$`)}function it$2(e){let t=nt$2({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(`^${et$2}T(?:${r})$`)}const at$2=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},ot$2=/^-?\d+$/,st$2=/^-?\d+(?:\.\d+)?$/,ct$2=/^(?:true|false)$/i,lt$2=/^null$/i,ut$2=/^undefined$/i,dt$2=/^[^A-Z]*$/,ft$2=/^[^a-z]*$/,D$2=t(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[]);}),pt$2={number:`number`,bigint:`bigint`,object:`date`},mt$1=t(`$ZodCheckLessThan`,(e,t)=>{D$2.init(e,t);let n=pt$2[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value);}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),ht$2=t(`$ZodCheckGreaterThan`,(e,t)=>{D$2.init(e,t);let n=pt$2[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value);}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),gt$2=t(`$ZodCheckMultipleOf`,(e,t)=>{D$2.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value);}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):d$1(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort});};}),_t$1=t(`$ZodCheckNumberFormat`,(e,t)=>{D$2.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=se$1[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=ot$2);}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:false,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:true,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-9007199254740991,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:true,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:true,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:true,inst:e,continue:!t.abort});};}),vt$2=t(`$ZodCheckMaxLength`,(e,t)=>{var n;D$2.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !l$1(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=ge$2(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),yt$2=t(`$ZodCheckMinLength`,(e,t)=>{var n;D$2.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !l$1(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=ge$2(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),bt$2=t(`$ZodCheckLengthEquals`,(e,t)=>{var n;D$2.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !l$1(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=ge$2(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:true,exact:true,input:n.value,inst:e,continue:!t.abort});};}),O$2=t(`$ZodCheckStringFormat`,(e,t)=>{var n,r;D$2.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=()=>{});}),xt$2=t(`$ZodCheckRegex`,(e,t)=>{O$2.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});};}),St$2=t(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=dt$2,O$2.init(e,t);}),Ct$2=t(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=ft$2,O$2.init(e,t);}),wt$2=t(`$ZodCheckIncludes`,(e,t)=>{D$2.init(e,t);let n=v$1(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});};}),Tt$2=t(`$ZodCheckStartsWith`,(e,t)=>{D$2.init(e,t);let n=RegExp(`^${v$1(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});};}),Et$2=t(`$ZodCheckEndsWith`,(e,t)=>{D$2.init(e,t);let n=RegExp(`.*${v$1(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});};}),Dt$2=t(`$ZodCheckOverwrite`,(e,t)=>{D$2.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value);};});var Ot$2=class Ot{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(`
|
|
6
|
-
`).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?.
|
|
7
|
-
`))}};const kt$2={major:4,minor:4,patch:3},k$2=t(`$ZodType`,(e,t)=>{var r;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=kt$2;let i=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&i.unshift(e);for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse;});else {let t=(e,t,r)=>{let i=x$1(e),a;for(let o of t){if(o._zod.def.when){if(he$2(e)||!o._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,s=o._zod.check(e);if(s instanceof Promise&&r?.async===false)throw new n;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(i||=x$1(e,t));});else {if(e.issues.length===t)continue;i||=x$1(e,t);}}return a?a.then(()=>e):e},r=(r,a,o)=>{if(x$1(r))return r.aborted=true,r;let s=t(a,i,o);if(s instanceof Promise){if(o.async===false)throw new n;return s.then(t=>e._zod.parse(t,o))}return e._zod.parse(s,o)};e._zod.run=(a,o)=>{if(o.skipChecks)return e._zod.parse(a,o);if(o.direction===`backward`){let t=e._zod.parse({value:a.value,issues:[]},{...o,skipChecks:true});return t instanceof Promise?t.then(e=>r(e,a,o)):r(t,a,o)}let s=e._zod.parse(a,o);if(s instanceof Promise){if(o.async===false)throw new n;return s.then(e=>t(e,i,o))}return t(s,i,o)};}p$1(e,`~standard`,()=>({validate:t=>{try{let n=we$2(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Ee$2(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}));}),At$2=t(`$ZodString`,(e,t)=>{k$2.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??at$2(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};}),A$2=t(`$ZodStringFormat`,(e,t)=>{O$2.init(e,t),At$2.init(e,t);}),jt$2=t(`$ZodGUID`,(e,t)=>{t.pattern??=He$2,A$2.init(e,t);}),Mt$2=t(`$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??=Ue$1(e);}else t.pattern??=Ue$1();A$2.init(e,t);}),Nt$2=t(`$ZodEmail`,(e,t)=>{t.pattern??=We$2,A$2.init(e,t);}),Pt$2=t(`$ZodURL`,(e,t)=>{A$2.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===Qe$2.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let 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:t.hostname.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});}};}),Ft$2=t(`$ZodEmoji`,(e,t)=>{t.pattern??=Ge$2(),A$2.init(e,t);}),It$2=t(`$ZodNanoID`,(e,t)=>{t.pattern??=Be$2,A$2.init(e,t);}),Lt$2=t(`$ZodCUID`,(e,t)=>{t.pattern??=Fe$2,A$2.init(e,t);}),Rt$2=t(`$ZodCUID2`,(e,t)=>{t.pattern??=Ie$2,A$2.init(e,t);}),zt$2=t(`$ZodULID`,(e,t)=>{t.pattern??=Le$2,A$2.init(e,t);}),Bt$2=t(`$ZodXID`,(e,t)=>{t.pattern??=Re$2,A$2.init(e,t);}),Vt$2=t(`$ZodKSUID`,(e,t)=>{t.pattern??=ze$2,A$2.init(e,t);}),Ht$2=t(`$ZodISODateTime`,(e,t)=>{t.pattern??=it$2(t),A$2.init(e,t);}),Ut$2=t(`$ZodISODate`,(e,t)=>{t.pattern??=tt$2,A$2.init(e,t);}),Wt$2=t(`$ZodISOTime`,(e,t)=>{t.pattern??=rt$2(t),A$2.init(e,t);}),Gt$2=t(`$ZodISODuration`,(e,t)=>{t.pattern??=Ve$2,A$2.init(e,t);}),Kt$2=t(`$ZodIPv4`,(e,t)=>{t.pattern??=Ke$2,A$2.init(e,t),e._zod.bag.format=`ipv4`;}),qt$2=t(`$ZodIPv6`,(e,t)=>{t.pattern??=qe$2,A$2.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`);}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort});}};}),Jt$2=t(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Je$2,A$2.init(e,t);}),Yt$2=t(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Ye$2,A$2.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 Xt$1(e){if(e===``)return true;if(/\s/.test(e)||e.length%4!=0)return false;try{return atob(e),true}catch{return false}}const Zt$2=t(`$ZodBase64`,(e,t)=>{t.pattern??=Xe$2,A$2.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Xt$1(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort});};});function Qt$2(e){if(!Ze$2.test(e))return false;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Xt$1(t.padEnd(Math.ceil(t.length/4)*4,`=`))}const $t$2=t(`$ZodBase64URL`,(e,t)=>{t.pattern??=Ze$2,A$2.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Qt$2(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort});};}),en$1=t(`$ZodE164`,(e,t)=>{t.pattern??=$e$2,A$2.init(e,t);});function tn$2(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return false;let[r]=n;if(!r)return false;let i=JSON.parse(atob(r));return !(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return false}}const nn$2=t(`$ZodJWT`,(e,t)=>{A$2.init(e,t),e._zod.check=n=>{tn$2(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort});};}),rn$1=t(`$ZodNumber`,(e,t)=>{k$2.init(e,t),e._zod.pattern=e._zod.bag.pattern??st$2,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value);}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n};}),an$2=t(`$ZodNumberFormat`,(e,t)=>{_t$1.init(e,t),rn$1.init(e,t);}),on$2=t(`$ZodBoolean`,(e,t)=>{k$2.init(e,t),e._zod.pattern=ct$2,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value;}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n};}),sn$1=t(`$ZodUndefined`,(e,t)=>{k$2.init(e,t),e._zod.pattern=ut$2,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t};}),cn$1=t(`$ZodNull`,(e,t)=>{k$2.init(e,t),e._zod.pattern=lt$2,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t};}),ln=t(`$ZodAny`,(e,t)=>{k$2.init(e,t),e._zod.parse=e=>e;}),un$1=t(`$ZodUnknown`,(e,t)=>{k$2.init(e,t),e._zod.parse=e=>e;}),dn$1=t(`$ZodNever`,(e,t)=>{k$2.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t);}),fn$2=t(`$ZodVoid`,(e,t)=>{k$2.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t};}),pn$2=t(`$ZodDate`,(e,t)=>{k$2.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value);}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n};});function mn$1(e,t,n){e.issues.length&&t.issues.push(...S$2(n,e.issues)),t.value[n]=e.value;}const hn$1=t(`$ZodArray`,(e,t)=>{k$2.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=>mn$1(t,n,e))):mn$1(s,n,e);}return a.length?Promise.all(a).then(()=>n):n};});function j$2(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...S$2(n,e.issues));}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value;}function gn$1(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=oe$1(e.shape);return {...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function _n$1(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||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=>j$2(e,n,i,t,u,d))):j$2(a,n,i,t,u,d);}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const vn=t(`$ZodObject`,(e,t)=>{if(k$2.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=c$1(()=>gn$1(t));p$1(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=g$1,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],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>j$2(n,t,e,s,r,i))):j$2(a,t,e,s,r,i);}return i?_n$1(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t};}),yn=t(`$ZodObjectJIT`,(e,t)=>{vn.init(e,t);let n=e._zod.parse,r=c$1(()=>gn$1(t)),a=e=>{let t=new Ot$2([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=ee$1(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 r of n.keys){let n=a[r],o=ee$1(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
3
|
+
var index = require('./index-DizKcz8n.js');
|
|
4
|
+
|
|
5
|
+
function e(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 t(e,t=`|`){return e.map(e=>se$1(e)).join(t)}function n(e,t){return typeof t==`bigint`?t.toString():t}var r=class{constructor(e){this._getter=e,this._value=void 0;}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function i$1(e){return new r(e)}function a$1(e){return e==null}function o$1(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function s$1(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}const c$1=Symbol(`evaluating`);function l$1(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==c$1)return r===void 0&&(r=c$1,r=n()),r},set(n){Object.defineProperty(e,t,{value:n});},configurable:true});}function u$1(e,t,n){Object.defineProperty(e,t,{value:n,writable:true,enumerable:true,configurable:true});}function d$1(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function f$1(e){return d$1(e._zod.def)??e._zod.def.shape}function p$1(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return u$1(this,t,e),e},enumerable:true,configurable:true});}function m$1(e,t,n){t in e?u$1(e,t,n):e[t]=n;}function h$1(e,t,n,r){let i=f$1(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?p$1(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):m$1(e,a,r?r(n.value,a):n.value));}}function ee$1(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?p$1(e,n,()=>t[n]):m$1(e,n,r.value));}}function g$1(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function te$1(e){return JSON.stringify(e)}function ne$1(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}const re$1=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function _$1(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const ie$1=i$1(()=>{if(M$2.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return false;try{return Function(``),true}catch{return false}});function v$1(e){if(_$1(e)===false)return false;let t=e.constructor;if(t===void 0||typeof t!=`function`)return true;let n=t.prototype;return !(_$1(n)===false||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===false)}function ae$1(e){return v$1(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const oe$1=new Set([`string`,`number`,`symbol`]);function y$1(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function b$2(e,t,n){let r=new e._zod.constr(t??e._zod.def);return (!t||n?.parent)&&(r._zod.parent=e),r}function x$2(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$1(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function ce$1(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}const le$1={safeint:[-9007199254740991,2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ue$1={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function de$1(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return h$1(i,e,fe$1(e,t)),b$2(e,g$1(n,{shape:i,checks:[]}))}function fe$1(e,t){let n=f$1(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e);}return r}function pe$2(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(fe$1(e,t)),a={};return h$1(a,e,Reflect.ownKeys(f$1(e)).filter(e=>!i.has(e))),b$2(e,g$1(n,{shape:a,checks:[]}))}function me$2(e,t){if(!v$1(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=f$1(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return b$2(e,g$1(e._zod.def,{shape:he$2(e,t)}))}function he$2(e,t){let n={};return h$1(n,e,Reflect.ownKeys(f$1(e))),ee$1(n,t),n}function ge$2(e,t){if(!v$1(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return b$2(e,g$1(e._zod.def,{shape:he$2(e,t)}))}function _e$2(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return h$1(n,e,Reflect.ownKeys(f$1(e))),h$1(n,t,Reflect.ownKeys(f$1(t))),b$2(e,g$1(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function ve$2(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(fe$1(t,n)):void 0,o={};return h$1(o,t,Reflect.ownKeys(f$1(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),b$2(t,g$1(t._zod.def,{shape:o,checks:[]}))}function ye$2(e,t,n){let r=n?new Set(fe$1(t,n)):void 0,i={};return h$1(i,t,Reflect.ownKeys(f$1(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),b$2(t,g$1(t._zod.def,{shape:i}))}function S$2(e,t=0){if(e.aborted===true)return true;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==true)return true;return false}function be$2(e,t=0){if(e.aborted===true)return true;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===false)return true;return false}function C$2(e,t){return t.map(t=>{var n;return (n=t).path??(n.path=[]),t.path.unshift(e),t})}function w$2(e){return typeof e==`string`?e:e?.message}function xe$2(e){let t=[];for(let n of e??[]){let e=n._zod.def;if(!/_(length|size)$|_equals$/.test(e.check))break;let r=e.maximum??e.length??e.size;r>=0&&t.push([r,n]);}return t}function Se$2(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n);}function T$2(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:w$2(e.inst?._zod.def?.error?.(e))??w$2(a?.(e))??w$2(t?.error?.(e))??w$2(n.customError?.(e))??w$2(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t===`inst`||t===`schema`||t===`continue`||t===`input`||t===`__proto__`||(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}const Ce$2=/[\uD800-\uDBFF]/;function we$2(e){let t=e.length;if(!Ce$2.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function Te$2(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Ee$2(e){let t=typeof e;switch(t){case `number`:return Number.isNaN(e)?`nan`:`number`;case `object`:{if(e===null)return `null`;if(Array.isArray(e))return `array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function E$2(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function De$2(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:false}):Ae$2(e,n,r.value);}}function D$2(e,t,n,r=true){return Object.defineProperty(e,t,{configurable:true,writable:true,enumerable:r,value:n}),n}function Oe$2(e,t,n){return D$2(e,t,n,false)}function ke$2(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:true,enumerable:true,get(){return D$2(this,n,r(this))},set(e){D$2(this,n,e);}});}return t}function Ae$2(e,t,n){Object.defineProperty(e,t,{configurable:true,get(){return this==null?n:D$2(this,t,n.bind(this))},set(e){D$2(this,t,e);}});}function je$2(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}let Me$2,O$2=false;const Ne$2={configurable:true,get(){O$2=true;}};function k$2(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&Me$2!==e._zod){Me$2=void 0;return}Me$2=e._zod,Object.defineProperty(r,t,{configurable:true,get(){Object.defineProperty(this,t,Ne$2);let e=O$2;O$2=false;try{let r=n(this);return O$2?delete this[t]:Object.defineProperty(this,t,{configurable:true,writable:true,value:r}),O$2||=e,r}catch(n){throw delete this[t],O$2||=e,n}},set(e){Object.defineProperty(this,t,{configurable:true,writable:true,value:e});}});}function Pe$2(e,t,n,r){let i=je$2(e,t);i&&Object.defineProperty(i,t,{configurable:true,get(){let e={configurable:true,writable:true,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:true,writable:true,enumerable:r,value:e});}});}function Fe$2(e){let t=()=>e;return t[`~constantCatch`]=true,t}var Ie$2;const Le$2={value:void 0,enumerable:false};let Re$2=`captureStackTrace`in Error?Error:null;function ze$2(e){let t=Re$2;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0;}catch{return Re$2=null,new e}try{return new e}finally{t.stackTraceLimit=n;}}}return new e}function A$2(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set;}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){Le$2.value=new a(r);try{Object.defineProperty(n,"_zod",Le$2);}finally{Le$2.value=void 0;}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),De$2(i,o));}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)));}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?ze$2(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0;}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?true:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var j$2=class j extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);}},Be$2=class Be extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`;}};(Ie$2=globalThis).__zod_globalConfig??(Ie$2.__zod_globalConfig={});const M$2=globalThis.__zod_globalConfig;function N$2(e){return e&&Object.assign(M$2,e),M$2}function Ve$2(){let e=this._zod;return e.message??=JSON.stringify(e.def,n,2),e.message}function He$2(e){this._zod.message=e;}const Ue$2={get:Ve$2,set:He$2,enumerable:true,configurable:true},We$2={value:void 0,enumerable:false},Ge$2=new WeakSet([Object.prototype,Error.prototype]),Ke$2=(e,t)=>{e.name=`$ZodError`,We$2.value=t,Object.defineProperty(e,"issues",We$2),We$2.value=void 0,Object.defineProperty(e,"message",Ue$2);let n=Object.getPrototypeOf(e);Ge$2.has(n)||(Ge$2.add(n),Object.defineProperty(n,"toString",{configurable:true,enumerable:false,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:true,writable:true}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:true,writable:true});}}));},qe$2=A$2(`$ZodError`,Ke$2);A$2(`$ZodError`,Ke$2,void 0,{Parent:Error});function Je$1(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:true,enumerable:true,configurable:true}):e[t]=n()),e[t]}function Ye$2(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?Je$1(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return {formErrors:r,fieldErrors:n}}function Xe$2(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else {let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else {let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:true,writable:true,configurable:true});let s=r[n];o&&s._errors.push(t(a)),r=s,i++;}}}};return r(e),n}function Ze$2(e,t){return {callee:t?.callee??e,Err:t?.Err}}const Qe$2=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:false}:{async:false},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new j$2;if(s.issues.length){let n=new(a?.Err??e)(s.issues.map(e=>T$2(e,o,N$2())));throw re$1(n,a?.callee??t),n}return s.value};return t},$e$2=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:true}:{async:true},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new(a?.Err??e)(s.issues.map(e=>T$2(e,o,N$2())));throw re$1(n,a?.callee??t),n}return s.value};return t},et$2=e=>(t,n,r)=>{let i=r?{...r,async:false}:{async:false},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new j$2;return a.issues.length?tt$2(e,a.issues,i):{success:true,data:a.value}};function tt$2(e,t,n){let r;return {success:false,get error(){return r||(r=new e(t.map(e=>T$2(e,n,N$2()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0;}}}const nt$2=e=>async(t,n,r)=>{let i=r?{...r,async:true}:{async:true},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?tt$2(e,a.issues,i):{success:true,data:a.value}},rt$2=Symbol.for(`zod.compile.invalid`),it$2=Symbol.for(`zod.compile.fallback`),at$2=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==rt$2)return true;if(r.definite===true&&n===void 0)return false}return ot$2(e,t,n)});function ot$2(e,t,n){let r=n?{...n,async:false,abortEarly:true}:{async:false,abortEarly:true},i=e._zod.bag.fallbackRun,a;if(i?(r[it$2]=true,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new j$2;return a.issues.length===0}const st$2=async(e,t,n)=>{let r=n?{...n,async:true,abortEarly:true}:{async:true,abortEarly:true},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},ct$2=e=>{let t=Qe$2(e),n=(e,r,i,a)=>t(e,r,i?{...i,direction:`backward`}:{direction:`backward`},Ze$2(n,a));return n},lt$2=e=>{let t=Qe$2(e),n=(e,r,i,a)=>t(e,r,i,Ze$2(n,a));return n},ut$2=e=>{let t=$e$2(e),n=async(e,r,i,a)=>await t(e,r,i?{...i,direction:`backward`}:{direction:`backward`},Ze$2(n,a));return n},dt$2=e=>{let t=$e$2(e),n=async(e,r,i,a)=>await t(e,r,i,Ze$2(n,a));return n},ft$2=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return et$2(e)(t,n,i)},pt$2=e=>(t,n,r)=>et$2(e)(t,n,r),mt$2=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return nt$2(e)(t,n,i)},ht$2=e=>async(t,n,r)=>nt$2(e)(t,n,r),gt$2=/^[cC][0-9a-z]{6,}$/,_t$2=/^[0-9a-z]+$/,vt$2=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,yt$2=/^[0-9a-vA-V]{20}$/,bt$2=/^[A-Za-z0-9]{27}$/,xt$2=/^[a-zA-Z0-9_-]{21}$/;function St$2(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}const Ct$2=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,wt$2=/^([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$1=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)$/,Et$2=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function Dt$2(){return RegExp(`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`,`u`)}const Ot$1=/^(?:(?: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])$/,kt$2=/^(([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}|:))$/,At$2=/^((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])$/,jt$2=/^(([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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Mt$2=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Nt$2=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Pt$2=/^https?$/,Ft$2=/^\+[1-9]\d{6,14}$/,It$2=`(?:(?:\\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])))`;function Lt$2(e){return RegExp(`^${e}$`)}const Rt$2=Lt$2(It$2);function zt$2(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}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Bt$2(e){return RegExp(`^${zt$2(e)}$`)}function Vt$2(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${zt$2({precision:e.precision,seconds:true})}(?:${t.join(`|`)})`,r=e.local?`${n}|${zt$2({precision:e.precision})}`:n;return RegExp(`^${It$2}T(?:${r})$`)}const Ht$2=/^[\s\S]{0,}$/,Ut$2=/^-?\d+$/,Wt$2=/^-?\d+(?:\.\d+)?$/,Gt$2=/^(?:true|false)$/i,Kt$2=/^null$/i,qt$2=/^undefined$/i,Jt$2=/^[^A-Z]*$/,Yt$2=/^[^a-z]*$/,P$2=A$2(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[]);}),Xt$2=e=>{let t=e.value;return !a$1(t)&&t.length!==void 0},Zt$2={number:`number`,bigint:`bigint`,object:`date`},Qt$2=A$2(`$ZodCheckLessThan`,(e,t)=>{P$2.init(e,t);let n=Zt$2[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:Zt$2[typeof r.value]??n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),$t$2=A$2(`$ZodCheckGreaterThan`,(e,t)=>{P$2.init(e,t);let n=Zt$2[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:Zt$2[typeof r.value]??n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),en$2=A$2(`$ZodCheckMultipleOf`,(e,t)=>{P$2.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):s$1(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort});};}),tn$2=A$2(`$ZodCheckNumberFormat`,(e,t)=>{P$2.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=le$1[t.format];e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:false,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:true,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-9007199254740991,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:true,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:true,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:true,inst:e,continue:!t.abort});};}),nn$2=A$2(`$ZodCheckMaxLength`,(e,t)=>{var n;P$2.init(e,t),(n=e._zod.def).when??(n.when=Xt$2),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?we$2(r):i)<=t.maximum)return;let a=Te$2(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),rn$2=A$2(`$ZodCheckMinLength`,(e,t)=>{var n;P$2.init(e,t),(n=e._zod.def).when??(n.when=Xt$2),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?we$2(r):i)>=t.minimum)return;let a=Te$2(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),an$2=A$2(`$ZodCheckLengthEquals`,(e,t)=>{var n;P$2.init(e,t),(n=e._zod.def).when??(n.when=Xt$2),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?we$2(r):i;if(a===t.length)return;let o=Te$2(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:true,exact:true,input:n.value,inst:e,continue:!t.abort});};}),on$2=A$2(`$ZodCheckStringFormat`,(e,t)=>{var n,r;P$2.init(e,t),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=()=>{});}),sn$1=A$2(`$ZodCheckRegex`,(e,t)=>{on$2.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});};}),cn=A$2(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Jt$2,on$2.init(e,t);}),ln$1=A$2(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Yt$2,on$2.init(e,t);}),un$1=A$2(`$ZodCheckIncludes`,(e,t)=>{P$2.init(e,t);let n=y$1(t.includes);t.pattern=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n),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});};}),dn$2=A$2(`$ZodCheckStartsWith`,(e,t)=>{P$2.init(e,t);let n=RegExp(`^${y$1(t.prefix)}.*`);t.pattern??=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});};}),fn$1=A$2(`$ZodCheckEndsWith`,(e,t)=>{P$2.init(e,t);let n=RegExp(`.*${y$1(t.suffix)}$`);t.pattern??=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});};}),pn$2=A$2(`$ZodCheckOverwrite`,(e,t)=>{P$2.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value);};});var mn$1=class mn{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t;}indented(e){this.indent+=1;try{e(this);}finally{--this.indent;}}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
6
|
+
`).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?.content??[``];return new e(...Object.keys(this.closed),`return function (${this.args.join(`, `)}) {\n${t.join(`
|
|
7
|
+
`)}\n};`)(...Object.values(this.closed))}};const hn={major:4,minor:6,patch:7},F$2=A$2(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=hn;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse;});else {let t=(t,n,r)=>{if(t.memo)return t;let i=S$2(t),a;for(let o of n){if(o._zod.def.when){if(be$2(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===false)throw new j$2;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(Se$2(t.issues,n,e),i||=S$2(t,n));});else {if(t.issues.length===n)continue;Se$2(t.issues,n,e),i||=S$2(t,n);}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(S$2(n))return n.aborted=true,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===false)throw new j$2;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:true});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===false)throw new j$2;return o.then(e=>t(e,i,a))}return t(o,i,a)};}},{get"~standard"(){return Oe$2(this,`~standard`,vn$1(this))},set"~standard"(e){D$2(this,`~standard`,e);}}),gn$1=(e,t)=>e.issues.length?{issues:e.issues.map(e=>T$2(e,t,N$2()))}:{value:e.value};async function _n$1(e,t){let n={async:true};return gn$1(await e._zod.run({value:t,issues:[]},n),n)}function vn$1(e){return {validate:t=>{let n={async:false};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return gn$1(r,n)}catch{}return _n$1(e,t)},vendor:`zod`,version:1}}const yn$1=A$2(`$ZodString`,(e,t)=>{F$2.init(e,t),e._zod.pattern=t.pattern??Ht$2,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};}),I$2=A$2(`$ZodStringFormat`,(e,t)=>{on$2.init(e,t),yn$1.init(e,t);}),bn=A$2(`$ZodGUID`,(e,t)=>{t.pattern??=wt$2,I$2.init(e,t);}),xn$1=A$2(`$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$1(e);}else t.pattern??=Tt$1();I$2.init(e,t);}),Sn=A$2(`$ZodEmail`,(e,t)=>{t.pattern??=Et$2,I$2.init(e,t);});function Cn$1(e){try{return typeof URL<`u`&&typeof URL.canParse==`function`?URL.canParse(e):(new URL(e),true)}catch{return false}}function wn$1(e,t){return !(`normalize`in t)&&!(`hostname`in t)&&!(`protocol`in t)?Cn$1(e)||2:Tn$1(e,t)}function Tn$1(e,t){if(!t.normalize&&t.protocol?.source===Pt$2.source&&!/^https?:\/\//i.test(e))return 1;try{if(typeof URL<`u`){let t=URL;if(typeof t.parse==`function`)return t.parse(e)??2}return new URL(e)}catch{return 2}}const En$1=/[\t\n\r]/g;function Dn$1(e){return e.replace(En$1,``)}function On$1(e,t){return t.lastIndex=0,t.test(e.hostname)}function kn(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}const An=A$2(`$ZodURL`,(e,t)=>{I$2.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=wn$1(r,t);if(i===1){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort});return}if(i===true){n.value=Dn$1(r);return}t.hostname&&!On$1(i,t.hostname)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!kn(i,t.protocol)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:Dn$1(r);return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort});}};}),jn$1=A$2(`$ZodEmoji`,(e,t)=>{t.pattern??=Dt$2(),I$2.init(e,t);}),Mn$1=A$2(`$ZodNanoID`,(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??=t.length===void 0?xt$2:St$2(t.length),I$2.init(e,t);}),Nn=A$2(`$ZodCUID`,(e,t)=>{t.pattern??=gt$2,I$2.init(e,t);}),Pn$1=A$2(`$ZodCUID2`,(e,t)=>{t.pattern??=_t$2,I$2.init(e,t);}),Fn$1=A$2(`$ZodULID`,(e,t)=>{t.pattern??=vt$2,I$2.init(e,t);}),In$1=A$2(`$ZodXID`,(e,t)=>{t.pattern??=yt$2,I$2.init(e,t);}),Ln$1=A$2(`$ZodKSUID`,(e,t)=>{t.pattern??=bt$2,I$2.init(e,t);}),Rn$1=A$2(`$ZodISODateTime`,(e,t)=>{t.pattern??=Vt$2(t),I$2.init(e,t);}),zn$1=A$2(`$ZodISODate`,(e,t)=>{t.pattern??=Rt$2,I$2.init(e,t);}),Bn$1=A$2(`$ZodISOTime`,(e,t)=>{t.pattern??=Bt$2(t),I$2.init(e,t);}),Vn$1=A$2(`$ZodISODuration`,(e,t)=>{t.pattern??=Ct$2,I$2.init(e,t);}),Hn$1=A$2(`$ZodIPv4`,(e,t)=>{t.pattern??=Ot$1,I$2.init(e,t);}),Un$1=/^[0-9a-fA-F:.]+$/;function Wn$1(e){return Un$1.test(e)?Cn$1(`http://[${e}]`):false}const Gn$1=A$2(`$ZodIPv6`,(e,t)=>{t.pattern??=kt$2,I$2.init(e,t),e._zod.check=n=>{Wn$1(n.value)||n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort});};}),Kn$1=A$2(`$ZodCIDRv4`,(e,t)=>{t.pattern??=At$2,I$2.init(e,t);});function qn$1(e){let t=e.split(`/`);if(t.length!==2)return false;let[n,r]=t;if(!r)return false;let i=Number(r);return `${i}`!==r||i<0||i>128?false:Wn$1(n)}const Jn$1=A$2(`$ZodCIDRv6`,(e,t)=>{t.pattern??=jt$2,I$2.init(e,t),e._zod.check=n=>{qn$1(n.value)||n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort});};});function Yn$1(e){if(e===``)return true;if(/\s/.test(e)||e.length%4!=0)return false;try{return atob(e),true}catch{return false}}const Xn$1=/^[0-9a-zA-Z+/]*={0,2}$/,Zn$1=A$2(`$ZodBase64`,(e,t)=>{t.pattern??=Xn$1,I$2.init(e,t),e._zod.check=n=>{Yn$1(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort});};}),Qn$1=/^[A-Za-z0-9_-]*$/;function $n$1(e){if(!Qn$1.test(e))return false;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Yn$1(t.padEnd(Math.ceil(t.length/4)*4,`=`))}const er$1=A$2(`$ZodBase64URL`,(e,t)=>{t.pattern??=Qn$1,I$2.init(e,t),e._zod.check=n=>{$n$1(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort});};}),tr$1=A$2(`$ZodE164`,(e,t)=>{t.pattern??=Ft$2,I$2.init(e,t);});function nr$1(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return false;let[r]=n;if(!r)return false;let i=JSON.parse(atob(r));return !(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return false}}const rr$1=A$2(`$ZodJWT`,(e,t)=>{I$2.init(e,t),e._zod.check=n=>{nr$1(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort});};}),ir$1=A$2(`$ZodNumber`,(e,t)=>{F$2.init(e,t),e._zod.pattern=Wt$2,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value);}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n};}),ar$1=A$2(`$ZodNumberFormat`,(e,t)=>{tn$2.init(e,t),ir$1.init(e,t);}),or$1=A$2(`$ZodBoolean`,(e,t)=>{F$2.init(e,t),e._zod.pattern=Gt$2,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value;}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n};}),sr$1=A$2(`$ZodUndefined`,(e,t)=>{F$2.init(e,t),e._zod.pattern=qt$2,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t};}),cr$1=A$2(`$ZodNull`,(e,t)=>{F$2.init(e,t),e._zod.pattern=Kt$2,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t};}),lr$1=A$2(`$ZodAny`,(e,t)=>{F$2.init(e,t),e._zod.parse=e=>e;}),ur$1=A$2(`$ZodUnknown`,(e,t)=>{F$2.init(e,t),e._zod.parse=e=>e;}),dr$1=A$2(`$ZodNever`,(e,t)=>{F$2.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t);}),fr$1=A$2(`$ZodVoid`,(e,t)=>{F$2.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t};}),pr$1=A$2(`$ZodDate`,(e,t)=>{F$2.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value);}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n};});function mr$1(e,t){let n=xe$2(e._zod.def.checks);if(!n.length)return;let r=Math.min(...n.map(e=>e[0])),i=e._zod.parse;e._zod.parse=(n,a)=>{let o=t(n.value);if(o>r&&!a?.skipChecks&&a?.direction!==`backward`){for(let[t,r]of xe$2(e._zod.def.checks))if(o>t&&r._zod.def.when(n)){let t=n.issues.length;return r._zod.check(n),n.issues[t].continue=false,Se$2(n.issues,t,e),n}}return i(n,a)};}const hr$1=e=>Array.isArray(e)?e.length:-1;function gr$1(e,t,n){e.issues.length&&t.issues.push(...C$2(n,e.issues)),t.value[n]=e.value;}const _r$1=A$2(`$ZodArray`,(e,t)=>{F$2.init(e,t);let n=M$2.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>gr$1(t,r,e)));else if(gr$1(c,r,e),s&&c.issues.length!==0&&S$2(c))break}return o.length?Promise.all(o).then(()=>r):r},mr$1(e,hr$1);});function vr$1(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(!(!o&&s&&i===`optional`)){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...C$2(n,e.issues));}if(!o&&i===void 0){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?(o||i===`defaulted`&&!s)&&(t.value[n]=void 0):t.value[n]=e.value;}}const yr$1=[];function br(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:yr$1,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=ce$1(e.shape);return {...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function xr(e,t,n,r,i,a,o){let s=[],c=i.keySet,l=i.catchall._zod,u=l.def.type,d=l.optin,f=l.optout,p=0;for(let i in t){if(o&&n.issues.length!==p){if(S$2(n,p))break;p=n.issues.length;}if(c.has(i))continue;if(i===`__proto__`){u===`never`&&s.push(i);continue}if(u===`never`){s.push(i);continue}let a=l.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>vr$1(e,n,i,t,d,f))):vr$1(a,n,i,t,d,f);}return s.length&&n.issues.push({code:`unrecognized_keys`,keys:s,input:t,inst:a,continue:true}),e.length?Promise.all(e).then(()=>n):n}const Sr=A$2(`$ZodObject`,(e,t)=>{F$2.init(e,t);let n=Object.getOwnPropertyDescriptor(t,`shape`),r=n?.get?n.get.raw:t.shape??{};if(r){let e=()=>{let n={...r};return Object.defineProperty(t,"shape",{value:n}),e.raw=n,n};e.raw=r,Object.defineProperty(t,"shape",{get:e});}let a=i$1(()=>br(t));k$2(e,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||u$1(n,e,new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0);}}return n});let o=_$1,s=t.catchall,c,l=M$2.memoizer;l?.attach(e),e._zod.parse=(t,n)=>{c??=a.value;let r=t.value;if(!o(r))return t.issues.push({expected:`object`,code:`invalid_type`,input:r,inst:e}),t;t.value=l?l.alloc(e,t,{},n):{};let i=[],u=c.shape,d=n?.abortEarly,f=t.issues.length;for(let e of c.allKeys){if(d&&t.issues.length!==f){if(S$2(t,f))break;f=t.issues.length;}if(e===`__proto__`)continue;let a=u[e],o=a._zod.optin,s=a._zod.optout,c=a._zod.run({value:r[e],issues:[]},n);c instanceof Promise?i.push(c.then(n=>vr$1(n,t,e,r,o,s))):vr$1(c,t,e,r,o,s);}return s?xr(i,r,t,n,a.value,e,d===true):i.length?Promise.all(i).then(()=>t):t};}),Cr=A$2(`$ZodObjectJIT`,(e,t)=>{Sr.init(e,t);let n=e._zod.parse,r=i$1(()=>br(t)),a=M$2.memoizer,o=t=>{let n=r.value,i=n.symbolKeys,o=new mn$1([`payload`,`ctx`],{shape:t,inst:e,memo:a,syms:i}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,c=(e,t)=>`
|
|
8
|
+
let ${e}_ab = false;
|
|
9
|
+
for (let i = 0; i < ${e}.issues.length; i++) {
|
|
10
|
+
const iss = ${e}.issues[i];
|
|
11
|
+
iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
|
|
12
|
+
payload.issues.push(iss);
|
|
13
|
+
if (iss.continue !== true) ${e}_ab = true;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
if (${e}_ab && ctx && ctx.abortEarly) {
|
|
16
|
+
payload.value = newResult;
|
|
17
|
+
return payload;
|
|
18
|
+
}`;o.write(`const input = payload.value;`);let l=Object.create(null),u=0;for(let e of n.allKeys)l[e]=`key_${u++}`;o.write(a?`const newResult = memo.alloc(inst, payload, {}, ctx);`:`const newResult = {};`);for(let e of n.allKeys){if(e===`__proto__`)continue;let n=l[e],r=typeof e==`symbol`?`syms[${i.indexOf(e)}]`:te$1(e),a=`${r} in input`,u=t[e],d=u?._zod?.optin,f=d!==void 0,p=u?._zod?.optout===`optional`;if(o.write(`const ${n} = ${s(r)};`),f&&p){let e=d===`optional`?`${n}_present`:`${n}.value !== undefined || ${n}_present`;o.write(`
|
|
19
|
+
const ${n}_present = ${a};
|
|
20
|
+
if (!${n}.issues.length || ${n}_present) {
|
|
21
|
+
if (${n}.issues.length) {${c(n,r)}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (${e}) {
|
|
25
|
+
newResult[${r}] = ${n}.value;
|
|
20
26
|
}
|
|
21
|
-
} else {
|
|
22
|
-
newResult[${o}] = ${n}.value;
|
|
23
27
|
}
|
|
24
|
-
|
|
25
|
-
`)
|
|
26
|
-
if (${n}.issues.length) {
|
|
27
|
-
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
28
|
-
...iss,
|
|
29
|
-
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
30
|
-
})));
|
|
28
|
+
|
|
29
|
+
`);}else f?(o.write(`
|
|
30
|
+
if (${n}.issues.length) {${c(n,r)}
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
if (${n}.value
|
|
34
|
-
|
|
35
|
-
newResult[${o}] = undefined;
|
|
36
|
-
}
|
|
37
|
-
} else {
|
|
38
|
-
newResult[${o}] = ${n}.value;
|
|
32
|
+
`),d===`defaulted`?o.write(`newResult[${r}] = ${n}.value;`):o.write(`
|
|
33
|
+
if (${n}.value !== undefined || ${a}) {
|
|
34
|
+
newResult[${r}] = ${n}.value;
|
|
39
35
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
if (${n}.issues.length) {
|
|
44
|
-
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
45
|
-
...iss,
|
|
46
|
-
path: iss.path ? [${o}, ...iss.path] : [${o}]
|
|
47
|
-
})));
|
|
36
|
+
`)):o.write(`
|
|
37
|
+
const ${n}_present = ${a};
|
|
38
|
+
if (${n}.issues.length) {${c(n,r)}
|
|
48
39
|
}
|
|
49
40
|
if (!${n}_present && !${n}.issues.length) {
|
|
50
41
|
payload.issues.push({
|
|
51
42
|
code: "invalid_type",
|
|
52
43
|
expected: "nonoptional",
|
|
53
44
|
input: undefined,
|
|
54
|
-
path: [${
|
|
45
|
+
path: [${r}]
|
|
55
46
|
});
|
|
47
|
+
if (ctx && ctx.abortEarly) {
|
|
48
|
+
payload.value = newResult;
|
|
49
|
+
return payload;
|
|
50
|
+
}
|
|
56
51
|
}
|
|
57
52
|
|
|
58
53
|
if (${n}_present) {
|
|
59
|
-
|
|
60
|
-
newResult[${o}] = undefined;
|
|
61
|
-
} else {
|
|
62
|
-
newResult[${o}] = ${n}.value;
|
|
63
|
-
}
|
|
54
|
+
newResult[${r}] = ${n}.value;
|
|
64
55
|
}
|
|
65
56
|
|
|
66
|
-
`);}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return (t,n)=>s(e,t,n)},o,s=g$1,l=!i$1.jitless,u=l&&re$1.value,d=t.catchall,f;e._zod.parse=(i,c)=>{f??=r.value;let p=i.value;return s(p)?l&&u&&c?.async===false&&c.jitless!==true?(o||=a(t.shape),i=o(i,c),d?_n$1([],p,i,c,f,e):i):n(i,c):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)};});function bn$1(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=>!x$1(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=>w$2(e,r,a$1())))}),t)}const xn$1=t(`$ZodUnion`,(e,t)=>{k$2.init(e,t),p$1(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),p$1(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),p$1(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),p$1(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=>u$1(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=false,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=true;else {if(t.issues.length===0)return t;o.push(t);}}return a?Promise.all(o).then(t=>bn$1(t,r,e,i)):bn$1(o,r,e,i)};}),Sn=t(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=false,xn$1.init(e,t);let n=e._zod.parse;p$1(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r);}}return e});let r=c$1(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r);}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!g$1(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)};}),Cn$1=t(`$ZodIntersection`,(e,t)=>{k$2.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])=>Tn$1(e,t,n)):Tn$1(e,i,a)};});function wn$1(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return {valid:true,data:e};if(_$1(e)&&_$1(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=wn$1(e[n],t[n]);if(!r.valid)return {valid:false,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data;}return {valid:true,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return {valid:false,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=wn$1(i,a);if(!o.valid)return {valid:false,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data);}return {valid:true,data:n}}return {valid:false,mergeErrorPath:[]}}function Tn$1(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=true;}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=true;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),x$1(e))return e;let o=wn$1(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}const En$1=t(`$ZodRecord`,(e,t)=>{k$2.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!_$1(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let o=[],s=t.keyType._zod.values;if(s){n.value={};let c=new Set;for(let l of s)if(typeof l==`string`||typeof l==`number`||typeof l==`symbol`){c.add(typeof l==`number`?l.toString():l);let s=t.keyType._zod.run({value:l,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>w$2(e,r,a$1())),input:l,path:[l],inst:e});continue}let u=s.value,d=t.valueType._zod.run({value:i[l],issues:[]},r);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&n.issues.push(...S$2(l,e.issues)),n.value[u]=e.value;})):(d.issues.length&&n.issues.push(...S$2(l,d.issues)),n.value[u]=d.value);}let l;for(let e in i)c.has(e)||(l??=[],l.push(e));l&&l.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:l});}else {n.value={};for(let s of Reflect.ownKeys(i)){if(s===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,s))continue;let c=t.keyType._zod.run({value:s,issues:[]},r);if(c instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof s==`string`&&st$2.test(s)&&c.issues.length){let e=t.keyType._zod.run({value:Number(s),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(c=e);}if(c.issues.length){t.mode===`loose`?n.value[s]=i[s]:n.issues.push({code:`invalid_key`,origin:`record`,issues:c.issues.map(e=>w$2(e,r,a$1())),input:s,path:[s],inst:e});continue}let l=t.valueType._zod.run({value:i[s],issues:[]},r);l instanceof Promise?o.push(l.then(e=>{e.issues.length&&n.issues.push(...S$2(s,e.issues)),n.value[c.value]=e.value;})):(l.issues.length&&n.issues.push(...S$2(s,l.issues)),n.value[c.value]=l.value);}}return o.length?Promise.all(o).then(()=>n):n};}),Dn$1=t(`$ZodEnum`,(e,t)=>{k$2.init(e,t);let n=o$1(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>ae$1.has(typeof e)).map(e=>typeof e==`string`?v$1(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};}),On$1=t(`$ZodLiteral`,(e,t)=>{if(k$2.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?v$1(e):e?v$1(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r};}),kn$1=t(`$ZodTransform`,(e,t)=>{k$2.init(e,t),e._zod.optin=`optional`,e._zod.parse=(i,a)=>{if(a.direction===`backward`)throw new r(e.constructor.name);let o=t.transform(i.value,i);if(a.async)return (o instanceof Promise?o:Promise.resolve(o)).then(e=>(i.value=e,i.fallback=true,i));if(o instanceof Promise)throw new n;return i.value=o,i.fallback=true,i};});function An$1(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const jn$1=t(`$ZodOptional`,(e,t)=>{k$2.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,p$1(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),p$1(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${u$1(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>An$1(e,r)):An$1(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)};}),Mn$1=t(`$ZodExactOptional`,(e,t)=>{jn$1.init(e,t),p$1(e._zod,`values`,()=>t.innerType._zod.values),p$1(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n);}),Nn$1=t(`$ZodNullable`,(e,t)=>{k$2.init(e,t),p$1(e._zod,`optin`,()=>t.innerType._zod.optin),p$1(e._zod,`optout`,()=>t.innerType._zod.optout),p$1(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${u$1(e.source)}|null)$`):void 0}),p$1(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);}),Pn$1=t(`$ZodDefault`,(e,t)=>{k$2.init(e,t),e._zod.optin=`optional`,p$1(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=>Fn$1(e,t)):Fn$1(r,t)};});function Fn$1(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const In$1=t(`$ZodPrefault`,(e,t)=>{k$2.init(e,t),e._zod.optin=`optional`,p$1(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));}),Ln$1=t(`$ZodNonOptional`,(e,t)=>{k$2.init(e,t),p$1(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=>Rn$1(t,e)):Rn$1(i,e)};});function Rn$1(e,t){return !e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}const zn$1=t(`$ZodCatch`,(e,t)=>{k$2.init(e,t),e._zod.optin=`optional`,p$1(e._zod,`optout`,()=>t.innerType._zod.optout),p$1(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=>w$2(e,n,a$1()))},input:e.value}),e.issues=[],e.fallback=true),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>w$2(e,n,a$1()))},input:e.value}),e.issues=[],e.fallback=true),e)};}),Bn$1=t(`$ZodPipe`,(e,t)=>{k$2.init(e,t),p$1(e._zod,`values`,()=>t.in._zod.values),p$1(e._zod,`optin`,()=>t.in._zod.optin),p$1(e._zod,`optout`,()=>t.out._zod.optout),p$1(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=>M$2(e,t.in,n)):M$2(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>M$2(e,t.out,n)):M$2(r,t.out,n)};});function M$2(e,t,n){return e.issues.length?(e.aborted=true,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const Vn$1=t(`$ZodPreprocess`,(e,t)=>{Bn$1.init(e,t);}),Hn$1=t(`$ZodReadonly`,(e,t)=>{k$2.init(e,t),p$1(e._zod,`propValues`,()=>t.innerType._zod.propValues),p$1(e._zod,`values`,()=>t.innerType._zod.values),p$1(e._zod,`optin`,()=>t.innerType?._zod?.optin),p$1(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(Un$1):Un$1(r)};});function Un$1(e){return e.value=Object.freeze(e.value),e}const Wn$1=t(`$ZodLazy`,(e,t)=>{k$2.init(e,t),p$1(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),p$1(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),p$1(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),p$1(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),p$1(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n);}),Gn$1=t(`$ZodCustom`,(e,t)=>{D$2.init(e,t),k$2.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=>Kn$1(t,n,r,e));Kn$1(i,n,r,e);};});function Kn$1(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(T$2(e));}}var qn$1,Jn$1=class Jn{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),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 Yn$1(){return new Jn$1}(qn$1=globalThis).__zod_globalRegistry??(qn$1.__zod_globalRegistry=Yn$1());const N$2=globalThis.__zod_globalRegistry;function Xn$1(e,t){return new e({type:`string`,...b$1(t)})}function Zn$1(e,t){return new e({type:`string`,coerce:true,...b$1(t)})}function Qn$1(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:false,...b$1(t)})}function $n$1(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:false,...b$1(t)})}function er$1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,...b$1(t)})}function tr$1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v4`,...b$1(t)})}function nr$1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v6`,...b$1(t)})}function rr$1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v7`,...b$1(t)})}function ir$1(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:false,...b$1(t)})}function ar$1(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:false,...b$1(t)})}function or$1(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:false,...b$1(t)})}function sr$1(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:false,...b$1(t)})}function cr$1(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:false,...b$1(t)})}function lr(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:false,...b$1(t)})}function ur(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:false,...b$1(t)})}function dr(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:false,...b$1(t)})}function fr(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:false,...b$1(t)})}function pr(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:false,...b$1(t)})}function mr(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:false,...b$1(t)})}function hr(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:false,...b$1(t)})}function gr(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:false,...b$1(t)})}function _r(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:false,...b$1(t)})}function vr(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:false,...b$1(t)})}function yr(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:false,...b$1(t)})}function br(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:false,local:false,precision:null,...b$1(t)})}function xr(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...b$1(t)})}function Sr(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...b$1(t)})}function Cr(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...b$1(t)})}function wr(e,t){return new e({type:`number`,checks:[],...b$1(t)})}function Tr(e,t){return new e({type:`number`,coerce:true,checks:[],...b$1(t)})}function Er(e,t){return new e({type:`number`,check:`number_format`,abort:false,format:`safeint`,...b$1(t)})}function Dr(e,t){return new e({type:`boolean`,...b$1(t)})}function Or$1(e,t){return new e({type:`boolean`,coerce:true,...b$1(t)})}function kr$1(e,t){return new e({type:`undefined`,...b$1(t)})}function Ar$1(e,t){return new e({type:`null`,...b$1(t)})}function jr$1(e){return new e({type:`any`})}function Mr$1(e){return new e({type:`unknown`})}function Nr$1(e,t){return new e({type:`never`,...b$1(t)})}function Pr(e,t){return new e({type:`void`,...b$1(t)})}function Fr$1(e,t){return new e({type:`date`,...b$1(t)})}function Ir$1(e,t){return new mt$1({check:`less_than`,...b$1(t),value:e,inclusive:false})}function P$2(e,t){return new mt$1({check:`less_than`,...b$1(t),value:e,inclusive:true})}function Lr$1(e,t){return new ht$2({check:`greater_than`,...b$1(t),value:e,inclusive:false})}function F$2(e,t){return new ht$2({check:`greater_than`,...b$1(t),value:e,inclusive:true})}function Rr$1(e,t){return new gt$2({check:`multiple_of`,...b$1(t),value:e})}function zr$1(e,t){return new vt$2({check:`max_length`,...b$1(t),maximum:e})}function I$2(e,t){return new yt$2({check:`min_length`,...b$1(t),minimum:e})}function Br$1(e,t){return new bt$2({check:`length_equals`,...b$1(t),length:e})}function Vr$1(e,t){return new xt$2({check:`string_format`,format:`regex`,...b$1(t),pattern:e})}function Hr$1(e){return new St$2({check:`string_format`,format:`lowercase`,...b$1(e)})}function Ur$1(e){return new Ct$2({check:`string_format`,format:`uppercase`,...b$1(e)})}function Wr$1(e,t){return new wt$2({check:`string_format`,format:`includes`,...b$1(t),includes:e})}function Gr$1(e,t){return new Tt$2({check:`string_format`,format:`starts_with`,...b$1(t),prefix:e})}function Kr$1(e,t){return new Et$2({check:`string_format`,format:`ends_with`,...b$1(t),suffix:e})}function L$2(e){return new Dt$2({check:`overwrite`,tx:e})}function qr$1(e){return L$2(t=>t.normalize(e))}function Jr$1(){return L$2(e=>e.trim())}function Yr$1(){return L$2(e=>e.toLowerCase())}function Xr$1(){return L$2(e=>e.toUpperCase())}function Zr$1(){return L$2(e=>te$1(e))}function Qr$1(e,t,n){return new e({type:`array`,element:t,...b$1(n)})}function $r$1(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...b$1(n)})}function ei$1(e,t){let n=ti(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(T$2(e,t.value,n._zod.def));else {let r=e;r.fatal&&(r.continue=false),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(T$2(r));}},e(t.value,t)),t);return n}function ti(e,t){let n=new D$2({check:`custom`,...b$1(t)});return n._zod.check=e,n}function ni$1(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??N$2,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function R$2(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else {let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else {let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r);}let a=e._zod.parent;a&&(o.ref||=a,R$2(a,t,r),t.seen.get(a).isParent=true);}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&z$2(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function ri$1(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0]);}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return {ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return {ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return {defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n;};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
67
|
-
|
|
68
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function ii$1(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e];}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e];}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]});};for(let t of [...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n);}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def);}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:B$2(t,`input`,e.processors),output:B$2(t,`output`,e.processors)}},enumerable:false,writable:false}),n}catch{throw Error(`Error converting schema to JSON.`)}}function z$2(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return false;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return true;if(r.type===`array`)return z$2(r.element,n);if(r.type===`set`)return z$2(r.valueType,n);if(r.type===`lazy`)return z$2(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return z$2(r.innerType,n);if(r.type===`intersection`)return z$2(r.left,n)||z$2(r.right,n);if(r.type===`record`||r.type===`map`)return z$2(r.keyType,n)||z$2(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?true:z$2(r.in,n)||z$2(r.out,n);if(r.type===`object`){for(let e in r.shape)if(z$2(r.shape[e],n))return true;return false}if(r.type===`union`){for(let e of r.options)if(z$2(e,n))return true;return false}if(r.type===`tuple`){for(let e of r.items)if(z$2(e,n))return true;return !!(r.rest&&z$2(r.rest,n))}return false}const ai$1=(e,t={})=>n=>{let r=ni$1({...n,processors:t});return R$2(e,r),ri$1(r,e),ii$1(r,e)},B$2=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=ni$1({...i??{},target:a,io:t,processors:n});return R$2(e,o),ri$1(o,e),ii$1(o,e)},oi$1={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},si$1=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=oi$1[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))]);}},ci$1=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=true):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=true):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c);},li$1=(e,t,n,r)=>{n.type=`boolean`;},ui$1=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=true,n.enum=[null]):n.type=`null`;},di$1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},fi$1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},pi$1=(e,t,n,r)=>{n.not={};},mi$1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},hi$1=(e,t,n,r)=>{let i=e._zod.def,a=o$1(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a;},gi$1=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e));}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e;}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a;},_i$1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},vi$1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},yi$1=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=R$2(a.element,t,{...r,path:[...r.path,`items`]});},bi$1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=R$2(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=false:a.catchall?a.catchall&&(i.additionalProperties=R$2(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=false);},xi$1=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===false,o=i.options.map((e,n)=>R$2(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o;},Si$1=(e,t,n,r)=>{let i=e._zod.def,a=R$2(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=R$2(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];},Ci$1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=R$2(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e;}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=R$2(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=R$2(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e);}},wi$1=(e,t,n,r)=>{let i=e._zod.def,a=R$2(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=true):n.anyOf=[a,{type:`null`}];},Ti$1=(e,t,n,r)=>{let i=e._zod.def;R$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;},Ei=(e,t,n,r)=>{let i=e._zod.def;R$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue));},Di$1=(e,t,n,r)=>{let i=e._zod.def;R$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)));},Oi$1=(e,t,n,r)=>{let i=e._zod.def;R$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0);}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o;},ki$1=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;R$2(o,t,r);let s=t.seen.get(e);s.ref=o;},Ai$1=(e,t,n,r)=>{let i=e._zod.def;R$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=true;},ji$1=(e,t,n,r)=>{let i=e._zod.def;R$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;},Mi=(e,t,n,r)=>{let i=e._zod.innerType;R$2(i,t,r);let a=t.seen.get(e);a.ref=i;},Ni=t(`ZodISODateTime`,(e,t)=>{Ht$2.init(e,t),W$2.init(e,t);});function Pi$1(e){return br(Ni,e)}const Fi$1=t(`ZodISODate`,(e,t)=>{Ut$2.init(e,t),W$2.init(e,t);});function Ii$1(e){return xr(Fi$1,e)}const Li$1=t(`ZodISOTime`,(e,t)=>{Wt$2.init(e,t),W$2.init(e,t);});function Ri$1(e){return Sr(Li$1,e)}const zi$1=t(`ZodISODuration`,(e,t)=>{Gt$2.init(e,t),W$2.init(e,t);});function Bi$1(e){return Cr(zi$1,e)}const V$2=t(`ZodError`,(e,t)=>{ve$2.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>xe$2(e,t)},flatten:{value:t=>be$2(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,s$1,2);}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,s$1,2);}},isEmpty:{get(){return e.issues.length===0}}});},{Parent:Error}),Vi$1=Se$2(V$2),Hi$1=Ce$2(V$2),Ui$1=E$2(V$2),Wi$1=Te$2(V$2),Gi$1=De$2(V$2),Ki$1=Oe$2(V$2),qi$1=ke$2(V$2),Ji$1=Ae$2(V$2),Yi$1=je$2(V$2),Xi$1=Me$2(V$2),Zi$1=Ne$2(V$2),Qi$1=Pe$2(V$2),$i$1=new WeakMap;function H$2(e,t,n){let r=Object.getPrototypeOf(e),i=$i$1.get(r);if(i||(i=new Set,$i$1.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:true,enumerable:false,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:true,writable:true,enumerable:true,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:true,writable:true,enumerable:true,value:t});}});}}}const U$2=t(`ZodType`,(e,t)=>(k$2.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:B$2(e,`input`),output:B$2(e,`output`)}}),e.toJSONSchema=ai$1(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>Vi$1(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Ui$1(e,t,n),e.parseAsync=async(t,n)=>Hi$1(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Wi$1(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Gi$1(e,t,n),e.decode=(t,n)=>Ki$1(e,t,n),e.encodeAsync=async(t,n)=>qi$1(e,t,n),e.decodeAsync=async(t,n)=>Ji$1(e,t,n),e.safeEncode=(t,n)=>Yi$1(e,t,n),e.safeDecode=(t,n)=>Xi$1(e,t,n),e.safeEncodeAsync=async(t,n)=>Zi$1(e,t,n),e.safeDecodeAsync=async(t,n)=>Qi$1(e,t,n),H$2(e,`ZodType`,{check(...e){let t=this.def;return this.clone(h$1(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:true})},with(...e){return this.check(...e)},clone(e,t){return y$1(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Mo$1(e,t))},superRefine(e,t){return this.check(No$1(e,t))},overwrite(e){return this.check(L$2(e))},optional(){return uo$1(this)},exactOptional(){return po$1(this)},nullable(){return ho$1(this)},nullish(){return uo$1(ho$1(this))},nonoptional(e){return xo$1(this,e)},array(){return Ga$1(this)},or(e){return Xa$1([this,e])},and(e){return eo$1(this,e)},transform(e){return To$1(this,co$1(e))},default(e){return _o$1(this,e)},prefault(e){return yo$1(this,e)},catch(e){return Co$1(this,e)},pipe(e){return To$1(this,e)},readonly(){return Oo$1(this)},describe(e){let t=this.clone();return N$2.add(t,{description:e}),t},meta(...e){if(e.length===0)return N$2.get(this);let t=this.clone();return N$2.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return N$2.get(e)?.description},configurable:true}),e)),ea$1=t(`_ZodString`,(e,t)=>{At$2.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>si$1(e,t,n);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,H$2(e,`_ZodString`,{regex(...e){return this.check(Vr$1(...e))},includes(...e){return this.check(Wr$1(...e))},startsWith(...e){return this.check(Gr$1(...e))},endsWith(...e){return this.check(Kr$1(...e))},min(...e){return this.check(I$2(...e))},max(...e){return this.check(zr$1(...e))},length(...e){return this.check(Br$1(...e))},nonempty(...e){return this.check(I$2(1,...e))},lowercase(e){return this.check(Hr$1(e))},uppercase(e){return this.check(Ur$1(e))},trim(){return this.check(Jr$1())},normalize(...e){return this.check(qr$1(...e))},toLowerCase(){return this.check(Yr$1())},toUpperCase(){return this.check(Xr$1())},slugify(){return this.check(Zr$1())}});}),ta$1=t(`ZodString`,(e,t)=>{At$2.init(e,t),ea$1.init(e,t),e.email=t=>e.check(Qn$1(ra$1,t)),e.url=t=>e.check(ir$1(sa$1,t)),e.jwt=t=>e.check(yr(Ca$1,t)),e.emoji=t=>e.check(ar$1(la$1,t)),e.guid=t=>e.check($n$1(aa$1,t)),e.uuid=t=>e.check(er$1(G$2,t)),e.uuidv4=t=>e.check(tr$1(G$2,t)),e.uuidv6=t=>e.check(nr$1(G$2,t)),e.uuidv7=t=>e.check(rr$1(G$2,t)),e.nanoid=t=>e.check(or$1(ua$1,t)),e.guid=t=>e.check($n$1(aa$1,t)),e.cuid=t=>e.check(sr$1(da$1,t)),e.cuid2=t=>e.check(cr$1(fa$1,t)),e.ulid=t=>e.check(lr(pa$1,t)),e.base64=t=>e.check(gr(ba$1,t)),e.base64url=t=>e.check(_r(xa$1,t)),e.xid=t=>e.check(ur(ma$1,t)),e.ksuid=t=>e.check(dr(ha$1,t)),e.ipv4=t=>e.check(fr(ga$1,t)),e.ipv6=t=>e.check(pr(_a$1,t)),e.cidrv4=t=>e.check(mr(va,t)),e.cidrv6=t=>e.check(hr(ya,t)),e.e164=t=>e.check(vr(Sa$1,t)),e.datetime=t=>e.check(Pi$1(t)),e.date=t=>e.check(Ii$1(t)),e.time=t=>e.check(Ri$1(t)),e.duration=t=>e.check(Bi$1(t));});function na$1(e){return Xn$1(ta$1,e)}const W$2=t(`ZodStringFormat`,(e,t)=>{A$2.init(e,t),ea$1.init(e,t);}),ra$1=t(`ZodEmail`,(e,t)=>{Nt$2.init(e,t),W$2.init(e,t);});function ia$1(e){return Qn$1(ra$1,e)}const aa$1=t(`ZodGUID`,(e,t)=>{jt$2.init(e,t),W$2.init(e,t);}),G$2=t(`ZodUUID`,(e,t)=>{Mt$2.init(e,t),W$2.init(e,t);});function oa$1(e){return er$1(G$2,e)}const sa$1=t(`ZodURL`,(e,t)=>{Pt$2.init(e,t),W$2.init(e,t);});function ca$1(e){return ir$1(sa$1,e)}const la$1=t(`ZodEmoji`,(e,t)=>{Ft$2.init(e,t),W$2.init(e,t);}),ua$1=t(`ZodNanoID`,(e,t)=>{It$2.init(e,t),W$2.init(e,t);}),da$1=t(`ZodCUID`,(e,t)=>{Lt$2.init(e,t),W$2.init(e,t);}),fa$1=t(`ZodCUID2`,(e,t)=>{Rt$2.init(e,t),W$2.init(e,t);}),pa$1=t(`ZodULID`,(e,t)=>{zt$2.init(e,t),W$2.init(e,t);}),ma$1=t(`ZodXID`,(e,t)=>{Bt$2.init(e,t),W$2.init(e,t);}),ha$1=t(`ZodKSUID`,(e,t)=>{Vt$2.init(e,t),W$2.init(e,t);}),ga$1=t(`ZodIPv4`,(e,t)=>{Kt$2.init(e,t),W$2.init(e,t);}),_a$1=t(`ZodIPv6`,(e,t)=>{qt$2.init(e,t),W$2.init(e,t);}),va=t(`ZodCIDRv4`,(e,t)=>{Jt$2.init(e,t),W$2.init(e,t);}),ya=t(`ZodCIDRv6`,(e,t)=>{Yt$2.init(e,t),W$2.init(e,t);}),ba$1=t(`ZodBase64`,(e,t)=>{Zt$2.init(e,t),W$2.init(e,t);}),xa$1=t(`ZodBase64URL`,(e,t)=>{$t$2.init(e,t),W$2.init(e,t);}),Sa$1=t(`ZodE164`,(e,t)=>{en$1.init(e,t),W$2.init(e,t);}),Ca$1=t(`ZodJWT`,(e,t)=>{nn$2.init(e,t),W$2.init(e,t);}),wa$1=t(`ZodNumber`,(e,t)=>{rn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ci$1(e,t,n),H$2(e,`ZodNumber`,{gt(e,t){return this.check(Lr$1(e,t))},gte(e,t){return this.check(F$2(e,t))},min(e,t){return this.check(F$2(e,t))},lt(e,t){return this.check(Ir$1(e,t))},lte(e,t){return this.check(P$2(e,t))},max(e,t){return this.check(P$2(e,t))},int(e){return this.check(Da$1(e))},safe(e){return this.check(Da$1(e))},positive(e){return this.check(Lr$1(0,e))},nonnegative(e){return this.check(F$2(0,e))},negative(e){return this.check(Ir$1(0,e))},nonpositive(e){return this.check(P$2(0,e))},multipleOf(e,t){return this.check(Rr$1(e,t))},step(e,t){return this.check(Rr$1(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=true,e.format=n.format??null;});function Ta$1(e){return wr(wa$1,e)}const Ea$1=t(`ZodNumberFormat`,(e,t)=>{an$2.init(e,t),wa$1.init(e,t);});function Da$1(e){return Er(Ea$1,e)}const Oa$1=t(`ZodBoolean`,(e,t)=>{on$2.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>li$1(e,t,n);});function ka$1(e){return Dr(Oa$1,e)}const Aa$1=t(`ZodUndefined`,(e,t)=>{sn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>di$1(e,t);});function ja$1(e){return kr$1(Aa$1,e)}const Ma$1=t(`ZodNull`,(e,t)=>{cn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ui$1(e,t,n);});function Na$1(e){return Ar$1(Ma$1,e)}const Pa$1=t(`ZodAny`,(e,t)=>{ln.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0;});function Fa$1(){return jr$1(Pa$1)}const Ia$1=t(`ZodUnknown`,(e,t)=>{un$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0;});function La$1(){return Mr$1(Ia$1)}const Ra$1=t(`ZodNever`,(e,t)=>{dn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pi$1(e,t,n);});function za$1(e){return Nr$1(Ra$1,e)}const Ba$1=t(`ZodVoid`,(e,t)=>{fn$2.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fi$1(e,t);});function Va$1(e){return Pr(Ba$1,e)}const Ha$1=t(`ZodDate`,(e,t)=>{pn$2.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mi$1(e,t),e.min=(t,n)=>e.check(F$2(t,n)),e.max=(t,n)=>e.check(P$2(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null;});function Ua$1(e){return Fr$1(Ha$1,e)}const Wa$1=t(`ZodArray`,(e,t)=>{hn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yi$1(e,t,n,r),e.element=t.element,H$2(e,`ZodArray`,{min(e,t){return this.check(I$2(e,t))},nonempty(e){return this.check(I$2(1,e))},max(e,t){return this.check(zr$1(e,t))},length(e,t){return this.check(Br$1(e,t))},unwrap(){return this.element}});});function Ga$1(e,t){return Qr$1(Wa$1,e,t)}const Ka$1=t(`ZodObject`,(e,t)=>{yn.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bi$1(e,t,n,r),p$1(e,`shape`,()=>t.shape),H$2(e,`ZodObject`,{keyof(){return io$1(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:La$1()})},loose(){return this.clone({...this._zod.def,catchall:La$1()})},strict(){return this.clone({...this._zod.def,catchall:za$1()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return ue$2(this,e)},safeExtend(e){return de$2(this,e)},merge(e){return fe$2(this,e)},pick(e){return ce$1(this,e)},omit(e){return le$2(this,e)},partial(...e){return pe$2(lo$1,this,e[0])},required(...e){return me$2(bo$1,this,e[0])}});});function qa$1(e,t){return new Ka$1({type:`object`,shape:e??{},...b$1(t)})}function Ja$1(e,t){return new Ka$1({type:`object`,shape:e,catchall:za$1(),...b$1(t)})}const Ya$1=t(`ZodUnion`,(e,t)=>{xn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xi$1(e,t,n,r),e.options=t.options;});function Xa$1(e,t){return new Ya$1({type:`union`,options:e,...b$1(t)})}const Za$1=t(`ZodDiscriminatedUnion`,(e,t)=>{Ya$1.init(e,t),Sn.init(e,t);});function Qa$1(e,t,n){return new Za$1({type:`union`,options:t,discriminator:e,...b$1(n)})}const $a$1=t(`ZodIntersection`,(e,t)=>{Cn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Si$1(e,t,n,r);});function eo$1(e,t){return new $a$1({type:`intersection`,left:e,right:t})}const to$1=t(`ZodRecord`,(e,t)=>{En$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ci$1(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType;});function no$1(e,t,n){return !t||!t._zod?new to$1({type:`record`,keyType:na$1(),valueType:e,...b$1(t)}):new to$1({type:`record`,keyType:e,valueType:t,...b$1(n)})}const ro$1=t(`ZodEnum`,(e,t)=>{Dn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hi$1(e,t,n),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 ro$1({...t,checks:[],...b$1(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 ro$1({...t,checks:[],...b$1(r),entries:i})};});function io$1(e,t){return new ro$1({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...b$1(t)})}const ao=t(`ZodLiteral`,(e,t)=>{On$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gi$1(e,t,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}});});function oo$1(e,t){return new ao({type:`literal`,values:Array.isArray(e)?e:[e],...b$1(t)})}const so=t(`ZodTransform`,(e,t)=>{kn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vi$1(e,t),e._zod.parse=(n,i)=>{if(i.direction===`backward`)throw new r(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(T$2(r,n.value,t));else {let t=r;t.fatal&&(t.continue=false),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(T$2(t));}};let a=t.transform(n.value,n);return a instanceof Promise?a.then(e=>(n.value=e,n.fallback=true,n)):(n.value=a,n.fallback=true,n)};});function co$1(e){return new so({type:`transform`,transform:e})}const lo$1=t(`ZodOptional`,(e,t)=>{jn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ji$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function uo$1(e){return new lo$1({type:`optional`,innerType:e})}const fo$1=t(`ZodExactOptional`,(e,t)=>{Mn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ji$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function po$1(e){return new fo$1({type:`optional`,innerType:e})}const mo$1=t(`ZodNullable`,(e,t)=>{Nn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wi$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function ho$1(e){return new mo$1({type:`nullable`,innerType:e})}const go$1=t(`ZodDefault`,(e,t)=>{Pn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ei(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function _o$1(e,t){return new go$1({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ie$1(t)}})}const vo$1=t(`ZodPrefault`,(e,t)=>{In$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Di$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function yo$1(e,t){return new vo$1({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ie$1(t)}})}const bo$1=t(`ZodNonOptional`,(e,t)=>{Ln$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ti$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function xo$1(e,t){return new bo$1({type:`nonoptional`,innerType:e,...b$1(t)})}const So$1=t(`ZodCatch`,(e,t)=>{zn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oi$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function Co$1(e,t){return new So$1({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const wo$1=t(`ZodPipe`,(e,t)=>{Bn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ki$1(e,t,n,r),e.in=t.in,e.out=t.out;});function To$1(e,t){return new wo$1({type:`pipe`,in:e,out:t})}const Eo$1=t(`ZodPreprocess`,(e,t)=>{wo$1.init(e,t),Vn$1.init(e,t);}),Do$1=t(`ZodReadonly`,(e,t)=>{Hn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ai$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function Oo$1(e){return new Do$1({type:`readonly`,innerType:e})}const ko$1=t(`ZodLazy`,(e,t)=>{Wn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mi(e,t,n,r),e.unwrap=()=>e._zod.def.getter();});function Ao$1(e){return new ko$1({type:`lazy`,getter:e})}const jo$1=t(`ZodCustom`,(e,t)=>{Gn$1.init(e,t),U$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_i$1(e,t);});function Mo$1(e,t={}){return $r$1(jo$1,e,t)}function No$1(e,t){return ei$1(e,t)}function Po(e,t){return new Eo$1({type:`pipe`,in:co$1(e),out:t})}var Fo$1=/^(?:[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 Io(e){return typeof e==`string`&&Fo$1.test(e)}for(var K$2=[],Lo$1=0;Lo$1<256;++Lo$1)K$2.push((Lo$1+256).toString(16).slice(1));function Ro$1(e,t=0){return (K$2[e[t+0]]+K$2[e[t+1]]+K$2[e[t+2]]+K$2[e[t+3]]+`-`+K$2[e[t+4]]+K$2[e[t+5]]+`-`+K$2[e[t+6]]+K$2[e[t+7]]+`-`+K$2[e[t+8]]+K$2[e[t+9]]+`-`+K$2[e[t+10]]+K$2[e[t+11]]+K$2[e[t+12]]+K$2[e[t+13]]+K$2[e[t+14]]+K$2[e[t+15]]).toLowerCase()}function zo$1(e,t=0){var n=Ro$1(e,t);if(!Io(n))throw TypeError(`Stringified UUID is invalid`);return n}var q$2,Bo=new Uint8Array(16);function Vo(){if(!q$2&&(q$2=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!q$2))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return q$2(Bo)}var Ho$1=null,Uo$1=null,J$2=0;function Wo$1(e,t,n){e||={};var r=0,i=t||new Uint8Array(16),a=e.random||(e.rng||Vo)(),o=e.msecs===void 0?Date.now():e.msecs,s=e.seq===void 0?null:e.seq,c=Uo$1,l=Ho$1;return o>J$2&&e.msecs===void 0&&(J$2=o,s!==null&&(c=null,l=null)),s!==null&&(s>2147483647&&(s=2147483647),c=s>>>19&4095,l=s&524287),(c===null||l===null)&&(c=a[6]&127,c=c<<8|a[7],l=a[8]&63,l=l<<8|a[9],l=l<<5|a[10]>>>3),o+1e4>J$2&&s===null?++l>524287&&(l=0,++c>4095&&(c=0,J$2++)):J$2=o,Uo$1=c,Ho$1=l,i[r++]=J$2/1099511627776&255,i[r++]=J$2/4294967296&255,i[r++]=J$2/16777216&255,i[r++]=J$2/65536&255,i[r++]=J$2/256&255,i[r++]=J$2&255,i[r++]=c>>>4&15|112,i[r++]=c&255,i[r++]=l>>>13&63|128,i[r++]=l>>>5&255,i[r++]=l<<3&255|a[10]&7,i[r++]=a[11],i[r++]=a[12],i[r++]=a[13],i[r++]=a[14],i[r++]=a[15],t||Ro$1(i)}function Go$1(e){let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var Y$2=`0123456789abcdefghjkmnpqrstvwxyz`,X$3=new Uint8Array([255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,10,11,12,13,14,15,16,17,255,18,19,255,20,21,255,22,23,24,25,26,255,27,28,29,30,31,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255]);function Ko$1(e){let t=Array(26).fill(``);if(e.length!==16)throw Error(`Invalid length. Expected 16 bytes, got ${e.length}. Input: ${e}`);return t[0]=Y$2[(e[0]&224)>>5],t[1]=Y$2[e[0]&31],t[2]=Y$2[(e[1]&248)>>3],t[3]=Y$2[(e[1]&7)<<2|(e[2]&192)>>6],t[4]=Y$2[(e[2]&62)>>1],t[5]=Y$2[(e[2]&1)<<4|(e[3]&240)>>4],t[6]=Y$2[(e[3]&15)<<1|(e[4]&128)>>7],t[7]=Y$2[(e[4]&124)>>2],t[8]=Y$2[(e[4]&3)<<3|(e[5]&224)>>5],t[9]=Y$2[e[5]&31],t[10]=Y$2[(e[6]&248)>>3],t[11]=Y$2[(e[6]&7)<<2|(e[7]&192)>>6],t[12]=Y$2[(e[7]&62)>>1],t[13]=Y$2[(e[7]&1)<<4|(e[8]&240)>>4],t[14]=Y$2[(e[8]&15)<<1|(e[9]&128)>>7],t[15]=Y$2[(e[9]&124)>>2],t[16]=Y$2[(e[9]&3)<<3|(e[10]&224)>>5],t[17]=Y$2[e[10]&31],t[18]=Y$2[(e[11]&248)>>3],t[19]=Y$2[(e[11]&7)<<2|(e[12]&192)>>6],t[20]=Y$2[(e[12]&62)>>1],t[21]=Y$2[(e[12]&1)<<4|(e[13]&240)>>4],t[22]=Y$2[(e[13]&15)<<1|(e[14]&128)>>7],t[23]=Y$2[(e[14]&124)>>2],t[24]=Y$2[(e[14]&3)<<3|(e[15]&224)>>5],t[25]=Y$2[e[15]&31],t.join(``)}function qo$1(e){if(e.length!==26)throw Error(`Invalid length. Expected 26 bytes, got ${e.length}. Input: ${e}`);let t=new TextEncoder().encode(e);if(X$3[t[0]]===255||X$3[t[1]]===255||X$3[t[2]]===255||X$3[t[3]]===255||X$3[t[4]]===255||X$3[t[5]]===255||X$3[t[6]]===255||X$3[t[7]]===255||X$3[t[8]]===255||X$3[t[9]]===255||X$3[t[10]]===255||X$3[t[11]]===255||X$3[t[12]]===255||X$3[t[13]]===255||X$3[t[14]]===255||X$3[t[15]]===255||X$3[t[16]]===255||X$3[t[17]]===255||X$3[t[18]]===255||X$3[t[19]]===255||X$3[t[20]]===255||X$3[t[21]]===255||X$3[t[22]]===255||X$3[t[23]]===255||X$3[t[24]]===255||X$3[t[25]]===255)throw Error(`Invalid base32 character`);let n=new Uint8Array(16);return n[0]=X$3[t[0]]<<5|X$3[t[1]],n[1]=X$3[t[2]]<<3|X$3[t[3]]>>2,n[2]=(X$3[t[3]]&3)<<6|X$3[t[4]]<<1|X$3[t[5]]>>4,n[3]=(X$3[t[5]]&15)<<4|X$3[t[6]]>>1,n[4]=(X$3[t[6]]&1)<<7|X$3[t[7]]<<2|X$3[t[8]]>>3,n[5]=(X$3[t[8]]&7)<<5|X$3[t[9]],n[6]=X$3[t[10]]<<3|X$3[t[11]]>>2,n[7]=(X$3[t[11]]&3)<<6|X$3[t[12]]<<1|X$3[t[13]]>>4,n[8]=(X$3[t[13]]&15)<<4|X$3[t[14]]>>1,n[9]=(X$3[t[14]]&1)<<7|X$3[t[15]]<<2|X$3[t[16]]>>3,n[10]=(X$3[t[16]]&7)<<5|X$3[t[17]],n[11]=X$3[t[18]]<<3|X$3[t[19]]>>2,n[12]=(X$3[t[19]]&3)<<6|X$3[t[20]]<<1|X$3[t[21]]>>4,n[13]=(X$3[t[21]]&15)<<4|X$3[t[22]]>>1,n[14]=(X$3[t[22]]&1)<<7|X$3[t[23]]<<2|X$3[t[24]]>>3,n[15]=(X$3[t[24]]&7)<<5|X$3[t[25]],n}function Jo$1(e){if(e.length>63)return false;let t,n,r;for(n=0,r=e.length;n<r;n+=1){t=e.charCodeAt(n);let i=t>96&&t<123,a=t===95;if((n===0||n===r-1)&&!i||!(i||a))return false}return true}var Yo$1=class Yo extends Error{constructor(e){super(`Invalid prefix "${e}". Must be at most 63 ASCII letters [a-z_]`),this.name=`InvalidPrefixError`;}},Xo$1=class Xo extends Error{constructor(e,t){super(`Invalid TypeId. Prefix mismatch. Expected ${e}, got ${t}`),this.name=`PrefixMismatchError`;}},Zo$1=class Zo extends Error{constructor(e){super(`Invalid TypeId. Prefix cannot be empty when there's a separator: ${e}`),this.name=`EmptyPrefixError`;}},Qo$1=class Qo extends Error{constructor(e){super(`Invalid length. Suffix should have 26 characters, got ${e}`),this.name=`InvalidSuffixLengthError`;}},$o$1=class $o extends Error{constructor(e){super(`Invalid suffix. First character "${e}" must be in the range [0-7]`),this.name=`InvalidSuffixCharacterError`;}},es$1=class es extends Error{constructor(e,t){super(`Cannot convert TypeID of type ${e} to type ${t}`),this.name=`TypeIDConversionError`;}};function ts$1(e=``,t=``){if(!Jo$1(e))throw new Yo$1(e);let n;if(t)n=t;else {let e=new Uint8Array(16);Wo$1(void 0,e),n=Ko$1(e);}if(n.length!==26)throw new Qo$1(n.length);if(n[0]>`7`)throw new $o$1(n[0]);return qo$1(n),e===``?n:`${e}_${n}`}function ns$1(e,t){let n,r,i=e.lastIndexOf(`_`);if(i===-1)n=``,r=e;else if(n=e.substring(0,i),r=e.substring(i+1),!n)throw new Zo$1(e);if(!r)throw new Qo$1(0);if(t&&n!==t)throw new Xo$1(t,n);return ts$1(n,r)}function rs$1(e){let t=e.lastIndexOf(`_`);return t===-1?``:e.substring(0,t)}function is$1(e){let t=e.lastIndexOf(`_`);return t===-1?e:e.substring(t+1)}var Z$2=class Z{constructor(e,t=``){this.prefix=e,this.suffix=t;let n=ts$1(e,t);this.prefix=rs$1(n),this.suffix=is$1(n);}getType(){return this.prefix}getSuffix(){return this.suffix}asType(e){let t=this;if(t.prefix!==e)throw new es$1(t.prefix,e);return t}toUUIDBytes(){return qo$1(this.suffix)}toUUID(){return zo$1(this.toUUIDBytes())}toString(){return this.prefix===``?this.suffix:`${this.prefix}_${this.suffix}`}static fromString(e,t){let n=ns$1(e,t);return new Z$2(rs$1(n),is$1(n))}static fromUUIDBytes(e,t){return new Z$2(e,Ko$1(t))}static fromUUID(e,t){return new Z$2(e,Ko$1(Go$1(t)))}};function as(e=``,t=``){return new Z$2(e,t)}const os$1={admission:`adm`,integration:`int`,integrationBackfill:`ibf`,anonymous:`anon`,beneficiary:`ben`,coupon:`cpn`,couponCode:`cod`,customer:`cus`,event:`evt`,eventCollaborator:`ecl`,eventCollaboratorInvite:`evi`,membership:`mem`,membershipBenefitClaim:`mbc`,membershipCharge:`mch`,membershipFob:`fob`,membershipProgram:`mpg`,membershipPurchase:`mpu`,membershipSubscription:`msb`,membershipTerm:`mtm`,order:`ord`,orderItem:`itm`,orderFee:`fee`,permissionScope:`psc`,permissionRole:`prl`,permissionSnapshot:`pss`,payout:`pyt`,paymentDispute:`pds`,webhookInboxEvent:`wih`,payoutAdjustmentApplication:`paa`,payoutAdjustment:`adj`,platformFunding:`pfu`,payoutTransfer:`xfr`,promoter:`pmt`,refund:`rfd`,cancellation:`cnl`,section:`sct`,scan:`scn`,team:`tem`,teamDeletion:`tdl`,teamMember:`mbr`,teamInvite:`inv`,teamGateway:`tgw`,teamGatewayAccount:`tga`,taxProfile:`txp`,tenant:`tnt`,ticket:`tkt`,user:`usr`,venue:`ven`,location:`loc`,request:`req`,report:`rpt`,walletDevice:`wdv`,schedule:`sch`,session:`ssn`,trackingEvent:`tev`,trackingStats:`sta`,hllShard:`shr`,timeline:`tln`,notification:`ntf`};function ss$1(e){return as(os$1[e])}const Q$3=`ses_sid`,$$3=`ses_aid`;function cs$1(){return ss$1(`session`).toString()}function ls$1(){return ss$1(`anonymous`).toString()}function us$1(e){let t=e.getCookie(Q$3);if(t)return t;let n=cs$1();return e.setCookie(Q$3,n),n}function ds(e){let t=e.getItem($$3);if(t)return t;let n=ls$1();return e.setItem($$3,n),n}function fs$1(e){let t=cs$1(),n=ls$1();return e.setCookie(Q$3,t),e.setItem($$3,n),{sessionId:t,anonymousId:n}}const ms$1=io$1(`Page Viewed.Screen Viewed.Products Searched.Product List Viewed.Product List Filtered.Promotion Viewed.Promotion Clicked.Product Clicked.Product Viewed.Product Added.Product Removed.Cart Viewed.Checkout Started.Checkout Step Viewed.Checkout Step Completed.Payment Info Entered.Order Completed.Order Updated.Order Refunded.Order Cancelled.Coupon Entered.Coupon Applied.Coupon Denied.Coupon Removed.Product Added to Wishlist.Product Removed from Wishlist.Wishlist Product Added to Cart.Product Shared.Cart Shared.Product Reviewed`.split(`.`)),hs=ms$1.enum;
|
|
69
|
-
|
|
70
|
-
function
|
|
71
|
-
`;
|
|
72
|
-
|
|
73
|
-
`
|
|
74
|
-
|
|
75
|
-
`)
|
|
76
|
-
`)
|
|
77
|
-
`)
|
|
78
|
-
`))throw new Je$1(`Event's comment must not contain a newline character`)}function it$1(e){let t=e?.split(/\n/)??[],n=``;for(let e of t)n+=`data: ${e}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
`),e.
|
|
82
|
-
|
|
83
|
-
`),
|
|
84
|
-
`,t}const st$1=Symbol(`ORPC_EVENT_SOURCE_META`);function ct$1(e,t){if(t.id===void 0&&t.retry===void 0&&!t.comments?.length)return e;if(t.id!==void 0&&et$1(t.id),t.retry!==void 0&&nt$1(t.retry),t.comments!==void 0)for(let e of t.comments)rt$1(e);return new Proxy(e,{get(e,n,r){return n===st$1?t:Reflect.get(e,n,r)}})}function lt$1(e){return Ae$1(e)?Reflect.get(e,st$1):void 0}function ut$1(e,t=`inline`){return `${t}; filename="${e.replace(/[^\x20-\x7E]/g,`_`).replace(/"/g,`\\"`)}"; filename*=utf-8''${encodeURIComponent(e).replace(/['()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`).replace(/%(7C|60|5E)/g,(e,t)=>String.fromCharCode(Number.parseInt(t,16)))}`}function dt$1(e){let t=e.match(/filename\*=(UTF-8'')?([^;]*)/i);if(t&&typeof t[2]==`string`)return Le$1(t[2]);let n=e.match(/filename="((?:\\"|[^"])*)"/i);if(n&&typeof n[1]==`string`)return n[1].replace(/\\"/g,`"`)}function ft$1(e,t){let n={...e};for(let e in t)Array.isArray(t[e])?n[e]=[...ue$1(n[e]),...t[e]]:t[e]!==void 0&&(Array.isArray(n[e])?n[e]=[...n[e],t[e]]:n[e]===void 0?n[e]=t[e]:n[e]=[n[e],t[e]]);return n}function pt$1(e,t){let n=async e=>{let n=await t.error(e);if(n!==e){let t=lt$1(e);t&&Ae$1(n)&&(n=ct$1(n,t));}return n};return new Ce$1(async()=>{let{done:r,value:i}=await(async()=>{try{return await e.next()}catch(e){throw await n(e)}})(),a=await t.value(i,r);if(a!==i){let e=lt$1(i);e&&Ae$1(a)&&(a=ct$1(a,e));}return {done:r,value:a}},async()=>{try{await e.return?.();}catch(e){throw await n(e)}})}function ht$1(e){return {...e,context:e.context??{}}}function gt$1(e,t={}){let n=t.path??[];return Pe$1(new Proxy(async(...[t,r={}])=>await e.call(n,t,ht$1(r)),{get(r,i){return typeof i==`string`?gt$1(e,{path:[...n,i]}):Reflect.get(r,i)}}))}function vt$1(e,t){return {...e,...t}}var yt$1=class yt{"~orpc";constructor(e){if(e.route?.successStatus&&Ge$1(e.route.successStatus))throw Error(`[ContractProcedure] Invalid successStatus.`);if(Object.values(e.errorMap).some(e=>e&&e.status&&!Ge$1(e.status)))throw Error(`[ContractProcedure] Invalid error status code.`);this[`~orpc`]=e;}};function bt$1(e){return e instanceof yt$1?true:(typeof e==`object`||typeof e==`function`)&&e!==null&&`~orpc`in e&&typeof e[`~orpc`]==`object`&&e[`~orpc`]!==null&&`errorMap`in e[`~orpc`]&&`route`in e[`~orpc`]&&`meta`in e[`~orpc`]}function xt$1(e,t){return {...e,...t}}function St$1(e,t){return {...e,...t}}function Ct$1(e,t){return e.path?{...e,path:`${t}${e.path}`}:e}function wt$1(e,t){return {...e,tags:[...t,...e.tags??[]]}}function Tt$1(e,t){return e?`${e}${t}`:t}function Et$1(e,t){return e?[...e,...t]:t}function Dt$1(e,t){let n=e;return t.prefix&&(n=Ct$1(n,t.prefix)),t.tags?.length&&(n=wt$1(n,t.tags)),n}function Ot$1(e,t){if(bt$1(e))return new yt$1({...e[`~orpc`],errorMap:vt$1(t.errorMap,e[`~orpc`].errorMap),route:Dt$1(e[`~orpc`].route,t)});if(typeof e!=`object`||!e)return e;let n={};for(let r in e)n[r]=Ot$1(e[r],t);return n}const S$1=new class e extends yt$1{constructor(e){super(e),this[`~orpc`].prefix=e.prefix,this[`~orpc`].tags=e.tags;}$meta(t){return new e({...this[`~orpc`],meta:t})}$route(t){return new e({...this[`~orpc`],route:t})}$input(t){return new e({...this[`~orpc`],inputSchema:t})}errors(t){return new e({...this[`~orpc`],errorMap:vt$1(this[`~orpc`].errorMap,t)})}meta(t){return new e({...this[`~orpc`],meta:xt$1(this[`~orpc`].meta,t)})}route(t){return new e({...this[`~orpc`],route:St$1(this[`~orpc`].route,t)})}input(t){return new e({...this[`~orpc`],inputSchema:t})}output(t){return new e({...this[`~orpc`],outputSchema:t})}prefix(t){return new e({...this[`~orpc`],prefix:Tt$1(this[`~orpc`].prefix,t)})}tag(...t){return new e({...this[`~orpc`],tags:Et$1(this[`~orpc`].tags,t)})}router(e){return Ot$1(e,this[`~orpc`])}}({errorMap:{},route:{},meta:{}}),kt$1={defaultMethod:`POST`,defaultSuccessStatus:200,defaultSuccessDescription:`OK`,defaultInputStructure:`compact`,defaultOutputStructure:`compact`};function At$1(e,t){return t===void 0?kt$1[e]:t}const jt$1={},Mt$1={};function C$1(e,t){try{let n=(jt$1[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in Mt$1?Mt$1[n]:Pt$1(n,n.split(`:`))}catch{if(e in Mt$1)return Mt$1[e];let t=e?.match(Nt$1);return t?Pt$1(e,t.slice(1)):NaN}}const Nt$1=/([+-]\d\d):?(\d\d)?/;function Pt$1(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return Mt$1[e]=n*60+r>0?n*60+r+i:n*60-r-i}var Ft$1=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(C$1(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),zt$1(this,e)):this.setTime(Date.now());}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-C$1(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Lt$1(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}};const It$1=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!It$1.test(e))return;let t=e.replace(It$1,`$1UTC`);Ft$1.prototype[t]&&(e.startsWith(`get`)?Ft$1.prototype[e]=function(){return this.internal[t]()}:(Ft$1.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Rt$1(this),+this},Ft$1.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Lt$1(this),+this}));});function Lt$1(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-C$1(e.timeZone,e)*60));}function Rt$1(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),zt$1(e);}function zt$1(e,t){let n=Array.isArray(t)?Bt$1(t):+e.internal,r=C$1(e.timeZone,e),i=r>0?Math.floor(r):Math.ceil(r),a=new Date(+e);a.setUTCHours(a.getUTCHours()-1);let o=-new Date(+e).getTimezoneOffset(),s=-new Date(+a).getTimezoneOffset(),c=o-s,l=o;if(c&&o!==i&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),n=o-i;n&&t.setUTCMinutes(t.getUTCMinutes()+n);let r=C$1(e.timeZone,t);(r>0?Math.floor(r):Math.ceil(r))===i&&(l=s);}let u=l-i;u&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);let d=new Date(+e);d.setUTCSeconds(0);let f=o>0?d.getSeconds():(d.getSeconds()-60)%60,p=Math.round(-(C$1(e.timeZone,e)*60))%60;(p||f)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+f);let m=C$1(e.timeZone,e),h=m>0?Math.floor(m):Math.ceil(m),g=-new Date(+e).getTimezoneOffset()-h,_=h!==i,v=g-u,ee=h-i,te=n-h*60*1e3,ne=ee>0&&Vt$1(e)-n===ee*60*1e3&&Vt$1(e,te)!==n;if(_&&v&&!ne){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);let t=C$1(e.timeZone,e),n=h-(t>0?Math.floor(t):Math.ceil(t));n&&v<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n);}Lt$1(e);let re=(t?n:n+p*1e3)-+e.internal;re&&Math.abs(re)<1800*1e3&&(Date.prototype.setTime.call(e,+e+re),Lt$1(e));}function Bt$1(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function Vt$1(e,t){let n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(-C$1(e.timeZone,n)*60)),+n}const Ht$1=Symbol.for(`constructDateFrom`);function Ut$1(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Ht$1 in e?e[Ht$1](t):e instanceof Date?new e.constructor(t):new Date(t)}function Wt$1(e,t){return Ut$1(e,e)}function Gt$1(e,t,n){let r=Wt$1(e);return isNaN(t)?Ut$1(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Kt$1(e){return (typeof e==`string`?new Date(e):e).toISOString().replace(/\.\d{3}Z$/,``)}const qt$1=[`ALWAYS`,`HIDDEN`,`AFTER_ADMISSION`];let w$1;(function(e){e.signature=`a1B2c3D4e5F6g7H8`;let t=e.Tenant={id:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`,oldId:`none`,name:`Session Services`,slug:`session-services`,email:`hello@session.services`,adminTeamId:`tem_01jqpjksnsen9vprw95et60t3m`,defaultCurrency:`AUD`,smsSenderId:`SESSIONS`,baseUrl:{dev:`http://localhost:3000`,production:`https://app.session.services`},logo:{icon:{src:`https://assets.session.services/icon-bg.png`,width:29,height:29},email:{src:`https://assets.session.services/icon-bg.png`,width:165,height:76},website:{src:`https://assets.session.services/icon-bg.png`,width:165,height:76},qr:{src:`https://assets.session.services/tenants/session-services/qr.svg`}},favicon:`https://assets.session.services/tenants/session-services/favicon.svg`};e.Region={country:{id:`rgn_01jqpj2t2kfvmstt6f6tzkbaf2`,name:`Australia`,slug:`australia`,kind:`COUNTRY`,order:1},state:{id:`rgn_01jqpj2t2kfvmstt6f6tzkbaf3`,name:`New South Wales`,slug:`nsw`,kind:`STATE`,parentId:`rgn_01jqpj2t2kfvmstt6f6tzkbaf2`,order:2},city:{id:`rgn_01jqpj2t2kfvmstt6f6tzkbaf4`,name:`Sydney`,slug:`sydney`,kind:`CITY`,parentId:`rgn_01jqpj2t2kfvmstt6f6tzkbaf3`,latitude:-33.8688,longitude:151.2093,radius:25,order:3}};let n=e.User={id:`usr_01jps5cgsd4tzjghtnt45qnhn0`,email:`test@session.services`,firstName:`Jay`,lastName:`McMullen`,imageUrl:void 0,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tenantId:t.id,deleted:false};e.EmailVerification={id:`emlvrf_01jps5cgsd4tzjghtnt45qnhn0`,userId:`usr_01jps5cgsd4tzjghtnt45qnhn0`,tenantId:t.id,email:`test@session.services`,code:`123456`,expiresAt:new Date(Date.now()+1800*1e3).toISOString(),createdAt:new Date().toISOString()},e.PasswordReset={id:`pwrst_01jps5cgsd4tzjghtnt45qnhn0`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,userId:`usr_01jps5cgsd4tzjghtnt45qnhn0`,tenantId:t.id,email:`test@session.services`,code:`123456`,expiresAt:new Date(Date.now()+900*1e3).toISOString(),emailVerified:false,twoFactorVerified:false,createdAt:new Date().toISOString()};let r=e.Team={id:`tem_01jqpjksnsen9vprw95et60t2m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Session Services`,slug:`session-services`,description:`This is only a test...`,type:`PROMOTER`,approval:`APPROVED`,isDemo:false,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`,deleted:false},i=e.Promoter={id:`pmt_01jqpjksnsen9vprw95et60t2m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,name:`Session Services`,slug:`session-services`,description:`This is only a test...`,payoutFrequency:`AFTER_EVENT`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,geohash:`r3gx1`,location:{id:`loc_01jqpjksnsen9vprw95et60t4m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Sydney`,address:`Sydney NSW 2000, Australia`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8944593,longitude:151.2252255,timeZone:`Australia/Sydney`},tracking:{fbId:`485739562847563`,gaId:`G-PSW1MY7HB4`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`,deleted:false};e.Venue={id:`ven_01jqpjksnsen9vprw95et60t2m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,locationId:`loc_01jqpjksnsen9vprw95et60t3m`,approval:`APPROVED`,name:`Sydney Opera House`,slug:`sydney-opera-house`,description:`Iconic performing arts venue in Sydney, Australia`,type:`THEATER`,logo:{src:`https://assets.session.services/venues/sydney-opera-house.png`,alt:`Sydney Opera House`,width:800,height:800},images:[{src:`https://assets.session.services/venues/sydney-opera-house-1.jpg`,alt:`Sydney Opera House exterior`,width:1920,height:1080}],contact:{email:`info@sydneyoperahouse.com`,phone:`+61 2 9250 7111`,website:`https://www.sydneyoperahouse.com`,instagram:`https://instagram.com/sydneyoperahouse`,facebook:`https://facebook.com/sydneyoperahouse`,twitter:`https://twitter.com/sydneyoperahouse`},location:{id:`loc_01jqpjksnsen9vprw95et60t3m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Sydney Opera House`,address:`Bennelong Point, Sydney NSW 2000`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8567844,longitude:151.2152967,timeZone:`Australia/Sydney`,image:{src:`https://assets.session.services/locations/sydney-opera-house.jpg`,alt:`Sydney Opera House`,width:1200,height:800}},geohash:`r3gx2f9`,capacity:5738,tenantId:t.id,deleted:false};let a=e.PromoterMember={id:`mbr_01jps5cgsec5ge0b1bxa6gzkkk`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,userId:n.id,user:{id:n.id,email:n.email,firstName:n.firstName,lastName:n.lastName,imageUrl:n.imageUrl},permissions:[`*`],isOwner:true,tenantId:t.id};e.TeamMember={id:`mbr_01jqpjksnsen9vprw95et60t2m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,userId:n.id,user:{id:n.id,email:n.email,firstName:n.firstName,lastName:n.lastName,imageUrl:n.imageUrl},permissions:[`*`],isOwner:true,tenantId:t.id},e.TeamInvite={id:`inv_01jqpjksnsen9vprw95et60t4m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),expiresAt:Math.floor(Gt$1(new Date,7).getTime()/1e3),teamId:r.id,token:`a76e3c5d7109345b58e383e6d90f7728b75f9a38b727f0b9edd5b977e8c3b5d0`,email:`team-invite@session.services`,invitedBy:n.id,permissions:[`event.write`,`order.write`],tenantId:t.id},e.CurrentSession={user:n,initials:`JM`,isTenantAdmin:true,promoters:[{...i,member:a}]},e.Session={id:`sess_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,expiresAt:Gt$1(new Date,30).toISOString(),twoFactorVerified:false,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},e.BackupCode={id:`bkc_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,code:`ABC123DEF456`,used:false,createdAt:new Date().toISOString()},e.UserSession={id:`uss_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,ipAddress:`192.168.1.100`,userAgent:`Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36`,location:`Sydney, Australia`,isCurrent:true,expiresAt:Gt$1(new Date,30).toISOString(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},e.PasskeyCredential={id:`pkc_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,name:`iPhone Touch ID`,credentialId:`cred_01jps5cgsd4tzjghtnt45qnhn0`,credentialPublicKey:`pQECAyYgASFYIM...`,credentialBackupEligible:true,credentialBackupState:false,credentialDeviceType:`singleDevice`,counter:1,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},e.SecurityKeyCredential={id:`skc_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,name:`YubiKey 5 NFC`,credentialId:`cred_01jps5cgsd4tzjghtnt45qnhn0`,credentialPublicKey:`pQECAyYgASFYIM...`,credentialBackupEligible:false,credentialBackupState:false,credentialDeviceType:`crossPlatform`,counter:5,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},e.TOTPCredential={id:`tpc_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,secret:`JBSWY3DPEHPK3PXP`,verified:true,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};let o=e.Location={id:`loc_01hk153x00eh99pagyydz03sbz`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),googlePlaceId:`ChIJ6zWCPUyxEmsRmc6BPrNaP4s`,name:`Watson's EQ`,address:`The, Entertainment Quarter, 1 Bent St, Moore Park NSW 2021, Australia`,city:`Moore Park`,state:`New South Wales`,postcode:`2021`,country:`Australia`,latitude:-33.8944593,longitude:151.2252255,timeZone:`Australia/Sydney`,types:[`establishment`,`point_of_interest`,`restaurant`,`bar`],image:{src:`https://assets.session.services/locations/watsons-eq.jpg`,alt:`Watson's EQ`,width:1200,height:800}};e.CarouselLocation={id:`loc_01hk153x00efq9ygdkc9eb3rjt`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),googlePlaceId:`ChIJc8-zlGSvEmsR0rbZWpCP6z0`,name:`Carousel Bar & Ballroom`,address:`169 Oxford St, Darlinghurst NSW 2010, Australia`,city:`Darlinghurst`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8803603,longitude:151.2161228,timeZone:`Australia/Sydney`,types:[`establishment`,`night_club`,`point_of_interest`],image:{src:`https://assets.session.services/locations/loc_01hk153x00efq9ygdkc9eb3rjt.jpg`,alt:`Carousel Bar & Ballroom`,width:1200,height:800}};let s=e.Event={id:`evt_01jps5cgsenjrazw6wswmyspa3`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Test Event`,slug:`test-event`,description:`This is only a test...`,approval:`APPROVED`,status:`UPCOMING`,visibility:`PUBLIC`,currency:`AUD`,entryStartsAt:Kt$1(Gt$1(new Date,1)),entryEndsAt:Kt$1(Gt$1(new Date,2)),publishAt:Kt$1(new Date),images:{mobile:{src:`https://assets.session.services/event-mobile.jpg`,alt:`Mobile Event Image`,width:1080,height:1350},desktop:{src:`https://assets.session.services/event-desktop.jpg`,alt:`Desktop Event Image`,width:1920,height:1080}},geohash:`r3gx1`,location:o,teamId:r.id,promoterId:i.id,tenantId:t.id,deleted:false},c=e.Section={id:`sct_01jps5cgse0g3qj16kpq8t221r`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,promoterId:i.id,eventId:s.id,eventSlug:s.slug,name:`General Admission`,capacity:1e3,limit:-1,available:700,sold:200,reserved:100,order:0,visibility:`ALWAYS`,location:o,passcode:void 0,tenantId:t.id,deleted:false,orderPadded:`0000000000`},l=e.Admission={id:`adm_01jps5cgsee0xvapbk92e8eb4g`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),sectionId:c.id,teamId:r.id,promoterId:i.id,eventId:s.id,eventSlug:s.slug,name:`Final Release`,subtitle:`Entry before 10pm`,description:`Early bird pricing with priority entry. Must present valid ID at gate.`,capacity:1e5,limit:-1,available:7e4,sold:2e4,reserved:1e4,order:0,entryStartsAt:Kt$1(Gt$1(new Date,1)),entryEndsAt:Kt$1(Gt$1(new Date,2)),saleStartsAt:Kt$1(new Date),saleEndsAt:Kt$1(Gt$1(new Date,2)),saleEndsBehavior:`SALE_ENDED`,price:{base:1e3,booking:200,currency:`AUD`},visibility:`ALWAYS`,passcode:void 0,tenantId:t.id,deleted:false,orderPadded:`0000000000`};e.DetailedEvent={...s,admissions:[l],sections:[c]};let u=e.Beneficiary={id:`ben_01jps5cgse5n6mg1ymkew9tsfh`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`My Bank Account`,currency:`AUD`,gatewayId:`7489cb17-24c5-4acf-a0cf-d93ed38081fe`,gateway:`AIRWALLEX`,teamId:r.id,teamIds:[r.id],venueIds:[],tenantId:t.id};e.AirwallexBeneficiary={transfer_methods:[`LOCAL`],beneficiary:{additional_info:{personal_email:`test@session.services`},address:{city:`Sydney`,country_code:`AU`,postcode:`2000`,state:`AU-NSW`,street_address:`123 George Street`},bank_details:{account_currency:`AUD`,account_name:`John Doe`,account_number:`999994`,account_routing_type1:`bsb`,account_routing_value1:`062004`,bank_country_code:`AU`,local_clearing_system:`BANK_TRANSFER`},entity_type:`PERSONAL`,company_name:`Doe Enterprises Pty Ltd`,first_name:`John`,last_name:`Doe`}};let d=e.Coupon={id:`cpn_01jps5cgsfzs1ksqaet5hba8ac`,couponId:`cpn_01jps5cgsfzs1ksqaet5hba8ac`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Half Price`,active:true,kind:`PERCENT`,filter:`TEAM`,currency:`AUD`,discount:50,uses:0,limit:-1,orderLimit:void 0,membersOnly:false,saleStartsAt:`2025-02-10T03:00:00`,saleEndsAt:void 0,deletedAt:void 0,teamId:r.id,tenantId:t.id,deleted:false},f=e.CouponCode={id:`cod_01jps5cgsfzftw7hxcvr2wftk2`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),active:true,name:`TEST50`,uses:0,tenantId:t.id,couponId:d.id,teamId:r.id,deleted:false},p=e.AmountCoupon={id:`cpn_01jps5cgsfndn8jcsfvh72x811`,couponId:`cpn_01jps5cgsfndn8jcsfvh72x811`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Half Price`,active:true,kind:`PERCENT`,filter:`EVENTS`,currency:`AUD`,eventIds:[s.id],discount:50,uses:0,limit:-1,saleStartsAt:`2025-02-10T03:00:00`,saleEndsAt:void 0,deletedAt:void 0,teamId:r.id,tenantId:t.id};e.AmountCouponCode={id:`cod_01jps5cgsfq06xvvhg0hn2rdzd`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),active:true,name:`TEST5DOLLAR`,uses:0,tenantId:t.id,couponId:p.id,teamId:r.id};let m=e.Customer={id:`cus_01jps5cgsf4pn2a32eamppnap1`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),firstName:`Test`,lastName:`User`,email:`test@session.services`,phone:`+61411111111`,tenantId:t.id},h=e.PayoutTransfer={id:`xfr_01jq8s6c38f97w9yfrfcdhf47v`,createdAt:new Date().toISOString(),kind:`TICKETS`,amount:1e3,currency:`AUD`,fee:0,feeCurrency:`AUD`,reference:`XYZ`,gateway:`AIRWALLEX`,gatewayId:`fe33fb0f-d9d8-47cd-8eef-6a19bd6223eb`,beneficiary:u.name,beneficiaryId:u.id};e.PayoutDeduction={id:`pdn_01jq8s6c38f97w9yfrfcdhf47v`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),amount:-1e3,currency:`AUD`,description:`Legacy payout deduction`,gateway:`AIRWALLEX`,gatewayId:`fe33fb0f-d9d8-47cd-8eef-6a19bd6223eb`,beneficiary:u.name,beneficiaryId:u.id};let g=e.Payout={id:`pyt_01jps5cgsfv2wre6hd0rc4w4t8`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),paidAt:new Date().toISOString(),status:`PAID`,method:`AIRWALLEX`,structure:`DEFAULT`,approval:`PENDING`,frequency:`AFTER_EVENT`,transfers:[h],event:{id:s.id,name:s.name,slug:s.slug,location:s.location.name},price:{net:1e3,total:1e3,gross:1e3,base:1e3,booking:0,refunded:0,discount:0,gateway:0,dispute:0,deductions:0,shipping:0,sms:0,currency:`AUD`},eventId:s.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id},_=e.OrderItem={id:`itm_01jps5cgsfwyxj0516571eaf17`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:`ord_01jps5cgsfgve5b5g2666kyryh`,kind:`ADMISSION`,quantity:2,admissionId:l.id,sectionId:c.id,price:{net:l.price.base+l.price.booking,total:l.price.base+l.price.booking,gross:l.price.base+l.price.booking,base:l.price.base,booking:l.price.booking,refunded:0,discount:0,currency:l.price.currency}};e.OrderFee={id:`fee_01jps5cgsgamykd6kh2t738qkh`,createdAt:new Date().toISOString(),reason:`Gateway Fee`,amount:-30,currency:`AUD`,requestId:`att_sgpdz4v2ph1axmdmdx8_m8w6qv`};let v=e.OrderOffer={kind:`SMS_DELIVERY`,label:`SMS ticket delivery`,price:{amount:200,currency:`AUD`}},ee=e.Order={id:`ord_01jps5cgsfgve5b5g2666kyryh`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),reservedAt:new Date().toISOString(),status:`PENDING`,price:{net:500,total:1400,gross:2200,base:1e3,booking:400,discount:-1e3,refunded:-700,gateway:0,dispute:0,shipping:0,sms:200,currency:`AUD`},code:{id:f.id,name:f.name},event:{id:s.id,name:s.name,slug:s.slug},fees:[],items:[_],customer:w$1.Customer,customerId:w$1.Customer.id,teamId:w$1.Team.id,promoterId:w$1.Promoter.id,promoterSlug:w$1.Promoter.slug,eventId:w$1.Event.id,eventSlug:w$1.Event.slug,payment:{method:`AIRWALLEX`,source:`CARD`},payoutIds:[g.id],refunds:[],offers:[v],tenantId:w$1.Tenant.id,checkoutUrl:`${t.baseUrl.dev}/checkout/ord_01jps5cgsfgve5b5g2666kyryh`,signature:`Q2hXbG9uZ1NpZzE2`},te=e.TicketScan={id:`scn_01jq4rjmtzyzgtsavn9f34mxan`,scannedAt:new Date().toISOString(),scannedBy:{id:n.id,firstName:n.firstName,lastName:n.lastName,email:n.email},scannedById:n.id,deviceId:`dev_01jq4rjvrgar43zwvyakbje22m`,kind:`CHECK_IN`};e.OrderRefund={id:`rfd_01jps5cgsfgve5b5g2666kyryh`,request:{idempotencyKey:`refund_12345_customer_request`},status:`SUCCEEDED`,acceptedAt:new Date().toISOString(),failedAt:new Date().toISOString(),price:{currency:`AUD`,total:1200,items:1200,shipping:0,fees:0},reason:`CUSTOMER_REQUEST`,note:`Customer requested refund due to schedule conflict`,tickets:{cancelRequested:true,cancelled:true,cancelledCount:2},gateway:{provider:`STRIPE`,refundId:`re_1234567890abcdef`,idempotencyKey:`rfd_01jps5cgsfgve5b5g2666kyryh`},actor:{type:`USER`,userId:n.id},notification:{requested:true,sentAt:new Date().toISOString()},createdAt:new Date().toISOString()},e.OrderRefundItem={orderItemId:_.id,quantity:2,amount:1200,ticketIds:[`tkt_01jps5cgsg0s32w2pr73vbccde`]},e.Notification={id:`ntf_01jps5cgsfgve5b5g2666kyryh`,aggregateType:`ORDER`,aggregateId:ee.id,eventId:s.id,kind:`ORDER_CONFIRMATION`,channel:`EMAIL`,status:`DELIVERED`,providerMessageId:`msg_abc123def456`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),sentAt:new Date().toISOString(),deliveredAt:new Date().toISOString(),failedAt:new Date().toISOString(),failureCode:`BOUNCE`,failureReason:`Mailbox unavailable`,tenantId:t.id},e.Timeline={id:`tln_01jps5cgsfgve5b5g2666kyryh`},e.SmsOrder={id:`ord_01k74g0tbwfvnb7b0e2esms001`},e.Ticket={id:`tkt_01jps5cgsg0s32w2pr73vbccde`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`REDEEMED`,scans:[te],token:`7b81e13025f78f9935d5933eec3ab25e3c2bb811c99f2470182dd6ba4394ff82`,attendee:{email:m.email,firstName:m.firstName,lastName:m.lastName},event:{id:s.id,name:s.name,slug:s.slug,location:s.location,entryStartsAt:s.entryStartsAt,entryEndsAt:s.entryEndsAt,images:s.images},admission:{id:l.id,name:l.name,price:l.price,entryStartsAt:l.entryStartsAt,entryEndsAt:l.entryEndsAt},eventId:s.id,admissionId:l.id,customerId:m.id,orderId:ee.id,orderItemId:_.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id};})(w$1||={});function Jt$1(e){return Zn$1(ta$1,e)}function T$1(e){return Tr(wa$1,e)}function Yt$1(e){return Or$1(Oa$1,e)}const E$1=io$1([`PENDING`,`APPROVED`,`REJECTED`]).meta({description:`Approval status. PENDING: awaiting review, APPROVED: approved for operation, REJECTED: rejected and cannot operate`}),Zt$1=new Set(`AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW`.split(` `)),Qt$1=na$1().trim().toUpperCase().regex(/^[A-Z]{2}$/,`Enter a two-letter ISO country code`).refine(e=>Zt$1.has(e),{message:`Enter an assigned ISO country code`}).meta({description:`ISO 3166-1 alpha-2 country code`,examples:[`AU`]}),$t$1=`AED.ALL.AMD.ANG.AOA.ARS.AUD.AWG.AZN.BAM.BBD.BDT.BGN.BHD.BIF.BMD.BND.BOB.BRL.BSD.BTN.BWP.BZD.CAD.CHF.CLP.CNY.COP.CRC.CVE.CZK.DJF.DKK.DOP.DZD.EGP.ERN.ETB.EUR.FJD.FKP.GBP.GEL.GHS.GIP.GMD.GNF.GTQ.GYD.HKD.HNL.HUF.IDR.ILS.INR.ISK.JMD.JOD.JPY.KES.KGS.KHR.KMF.KRW.KWD.KYD.KZT.LAK.LBP.LKR.LRD.LSL.LYD.MAD.MDL.MGA.MKD.MNT.MOP.MUR.MVR.MWK.MXN.MYR.NAD.NGN.NIO.NOK.NPR.NZD.OMR.PAB.PEN.PGK.PHP.PKR.PLN.PYG.QAR.RON.RSD.RWF.SAR.SBD.SCR.SEK.SGD.SHP.SLE.SRD.SVC.SZL.THB.TJS.TMT.TND.TOP.TRY.TTD.TWD.TZS.UAH.UGX.USD.UYU.UZS.VND.VUV.WST.XAF.XCD.XOF.XPF.ZAR.ZMW.ZWL`.split(`.`),D$1=io$1($t$1).meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code for transactions and payouts`}),tn$1=qa$1({formErrors:Ga$1(na$1()),fieldErrors:no$1(na$1(),Ga$1(na$1()))}),nn$1={BAD_REQUEST:{status:400},INPUT_VALIDATION_FAILED:{status:422,data:tn$1},UNAUTHORIZED:{status:401},FORBIDDEN:{status:403},NOT_FOUND:{status:404},CONFLICT:{status:409},PRECONDITION_FAILED:{status:412},TOO_MANY_REQUESTS:{status:429},INTERNAL_SERVER_ERROR:{status:500},NOT_IMPLEMENTED:{status:501},SERVICE_UNAVAILABLE:{status:503}},an$1=io$1([{category:`Day Party`,group:`Event Type`,priority:`core`,notes:`Daytime or afternoon-focused event, often starting before evening and ending earlier than club nights; common signals include "day party", "day sesh", "Sunday session", "afternoon", "sunset", "courtyard", "rooftop", "poolside" or "open air".`},{category:`Festival`,group:`Event Type`,priority:`core`,notes:`Large-scale event with multiple artists, stages, areas, brands or sessions; may run all day, across multiple days, or as a major ticketed programme; match terms like "festival", "lineup", "multi-stage", "weekender", "one-day festival" or "camping".`},{category:`Club Night`,group:`Event Type`,priority:`core`,notes:`DJ-led nightclub or club-room event, usually late-night and dancefloor-focused; match "club night", "nightclub", "club room", "resident DJ", "guest DJ", "DJ sets", "all night" or explicitly club-focused programming. Do not use for every electronic event or DJ set without a club/nightclub context.`},{category:`Concert`,group:`Event Type`,priority:`high`,notes:`Headline live music event in a concert, gig, theatre, arena or show format; match "concert", "gig", "headline show", "live show", "tour date", "arena", "theatre" or "standing room". Use alongside "Live Performance" when live performers are explicit.`},{category:`Listening Party`,group:`Event Type`,priority:`medium`,notes:`Playback, album launch or listening-focused event centred on hearing recorded music together; match "listening party", "album playback", "record launch", "listening session", "label preview" or "listening bar".`},{category:`Workshop`,group:`Event Type`,priority:`medium`,notes:`Educational, participatory or skills-focused event; match "workshop", "masterclass", "clinic", "class", "seminar", "producer workshop", "DJ workshop" or "hands-on session".`},{category:`Afterparty`,group:`Event Type`,priority:`high`,notes:`Post-main-event continuation, usually late-night or early-morning, often tied to a festival, concert, gig, show, launch or headline act; match "official afterparty", "after party", "kick-ons", "continue the night" or "late-night session".`},{category:`Boat Party`,group:`Event Type`,priority:`high`,notes:`Event held on a boat, yacht, harbour cruise or floating venue; strong signals include "boat party", "cruise", "harbour", "on the water", "boarding time", "sailing", "wharf", "dock" or "yacht".`},{category:`Pool Party`,group:`Event Type`,priority:`high`,notes:`Party centred around a pool, resort, hotel or swim-friendly venue; usually daytime or summer-focused; match "pool party", "poolside", "swimwear", "cabana", "resort", "hotel pool", "daybed" or "summer session".`},{category:`Live Performance`,group:`Event Type`,priority:`high`,notes:`Event includes live acts, bands, vocalists, instrumentalists or live electronic performance rather than only DJ sets; match "live", "live set", "performing live", "band", "vocalist", "singer", "instrumental", "live show" or "concert".`},{category:`Warehouse`,group:`Venue Type`,priority:`core`,notes:`Industrial, raw or repurposed warehouse-style venue; often underground, large-room, concrete, late-night or rave-oriented; match "warehouse", "industrial space", "secret warehouse", "inner west warehouse", "factory", "converted space" or "underground location".`},{category:`Nightclub`,group:`Venue Type`,priority:`core`,notes:`Purpose-built nightlife or dance venue, club room or nightclub setting; match "nightclub", "night club", "club room", "dance club" or venues explicitly described as clubs. This describes the venue, not the event programme.`},{category:`Bar`,group:`Venue Type`,priority:`core`,notes:`Event held at a bar, pub, tavern or cocktail bar; match "bar", "pub", "tavern", "cocktail bar", "wine bar" or "hotel bar". Do not use for every venue with a bar service.`},{category:`Open Air`,group:`Venue Type`,priority:`core`,notes:`Outdoor event in an uncovered or partly outdoor setting; match "open air", "outdoor", "under the sky", "courtyard", "garden", "terrace", "park", "field", "amphitheatre" or "sunset session".`},{category:`Arena`,group:`Venue Type`,priority:`high`,notes:`Large indoor arena, stadium or major venue built for high-capacity concerts, sports or touring shows; match "arena", "stadium", "entertainment centre", "exhibition centre" or "convention centre".`},{category:`Rooftop`,group:`Venue Type`,priority:`high`,notes:`Event held on a rooftop, terrace or elevated city-view venue; often summer, sunset, cocktail or skyline-focused; match "rooftop", "terrace", "skyline", "city views", "above the city", "sunset rooftop" or "open-air rooftop".`},{category:`Beach Party`,group:`Venue Type`,priority:`high`,notes:`Coastal, beachfront or seaside event; may be on the sand, near the beach, at a beach club or coastal venue; match "beach party", "beachfront", "seaside", "coastal", "on the sand", "ocean views" or "beach club".`},{category:`Secret Location`,group:`Venue Type`,priority:`high`,notes:`Venue is hidden, TBA, revealed later or sent only to ticket holders; common in underground, warehouse and rave events; match "secret location", "TBA", "location revealed", "address released", "SMS location" or "ticket holders only".`},{category:`DIY`,group:`Venue Type`,priority:`medium`,notes:`Independent, self-organised or non-traditional event, often in unconventional spaces, bush settings or community-run venues; match "DIY", "bush doof", "renegade", "self-organised", "community-run", "off-grid" or "independent party".`},{category:`Basement`,group:`Venue Type`,priority:`medium`,notes:`Small, low-ceiling, underground or downstairs venue; usually intimate, dark, club-focused or late-night; match "basement", "cellar", "downstairs", "underground room", "low ceiling" or "intimate club room".`},{category:`Free Entry`,group:`Entry`,priority:`core`,notes:`No ticket or cover charge required to attend; match "free entry", "free event", "no cover", "free before", "RSVP free", "complimentary entry" or "walk-ins welcome". Do not confuse with free RSVP if paid entry may still apply.`},{category:`Donation`,group:`Entry`,priority:`medium`,notes:`Entry is by donation, pay-what-you-can or voluntary contribution rather than a fixed ticket price; match "donation", "pay what you want", "PWYW", "suggested donation", "gold coin" or "contribute at the door".`},{category:`Vinyl Only`,group:`Music`,priority:`high`,notes:`DJs perform using vinyl records only, usually signalling collector, selector, audiophile or purist culture; match "vinyl only", "all vinyl", "records only", "turntables", "wax", "crate diggers" or "strictly vinyl".`},{category:`Silent Disco`,group:`Music`,priority:`medium`,notes:`Attendees listen through wireless headphones rather than a traditional speaker system; often multiple channels or DJs; match "silent disco", "headphone party", "wireless headphones", "choose your channel" or "multi-channel headphones".`},{category:`Underground`,group:`Vibe`,priority:`high`,notes:`Non-mainstream, independent or subcultural event with raw, niche, alternative or anti-commercial positioning; match "underground", "leftfield", "subculture", "no frills", "raw", "for the heads", "heads only" or "off the beaten path".`},{category:`Intimate`,group:`Vibe`,priority:`high`,notes:`Small-capacity, close-quarters or personal event; often limited tickets, small room, listening bar or community feel; match "intimate", "limited capacity", "small room", "close and personal", "cosy", "private" or "exclusive".`},{category:`Queer Friendly`,group:`Vibe`,priority:`high`,notes:`Event explicitly welcomes, centres or is safe for LGBTQI+ communities; match "queer", "LGBTQI+", "LGBTQIA+", "gay", "trans inclusive", "rainbow community", "queer-friendly" or "queer party". Use when identity/community focus is explicit.`},{category:`FLINTA`,group:`Vibe`,priority:`high`,notes:`Event explicitly centres or welcomes women, lesbians, intersex, non-binary, trans and agender people; match "FLINTA", "FLINTA*", "women and gender diverse", "trans and non-binary", "femme-led" or "gender-diverse community".`},{category:`Safe Space`,group:`Vibe`,priority:`high`,notes:`Event emphasises inclusion, consent, harm minimisation, anti-harassment or community safety policies; match "safe space", "safer space", "consent policy", "zero tolerance", "harm reduction", "inclusive space" or "respectful dancefloor".`},{category:`No Photos`,group:`Vibe`,priority:`medium`,notes:`Event discourages or bans photography/video to protect privacy, immersion or dancefloor culture; match "no photos", "no filming", "no cameras", "phone stickers", "camera policy", "be present" or "respect the dancefloor".`},{category:`Rave`,group:`Vibe`,priority:`high`,notes:`High-energy dance event rooted in rave culture; often late-night, warehouse, underground, fast, heavy or euphoric; match "rave", "all-night", "warehouse rave", "doof", "hard dance", "strobe", "lasers" or "rave culture".`},{category:`BYO`,group:`Amenities`,priority:`core`,notes:`Attendees can or must bring their own alcohol, drinks or supplies; match "BYO", "bring your own", "bring drinks", "no bar", "esky", "cooler", "bottle shop run" or "self-catered drinks".`},{category:`Cash Only`,group:`Amenities`,priority:`medium`,notes:`Venue, bar, door or stall accepts cash but not card payments; match "cash only", "bring cash", "no EFTPOS", "no card", "cash at the door" or "ATM nearby".`},{category:`Card Only`,group:`Amenities`,priority:`medium`,notes:`Venue, bar, door or stall is cashless and accepts card or digital payments only; match "card only", "cashless", "no cash", "tap only", "EFTPOS only" or "card payments only".`},{category:`Food Available`,group:`Amenities`,priority:`medium`,notes:`Food is available at or near the event through vendors, kitchen, food trucks or venue menu; match "food available", "food trucks", "kitchen open", "snacks", "menu", "vendors", "street food" or "dinner available".`},{category:`Dress Code`,group:`Other`,priority:`high`,notes:`Event requires, encourages or enforces specific clothing, theme, footwear or presentation; match "dress code", "strict dress code", "theme", "costume", "black tie", "no thongs", "collared shirts", "dress to impress" or "entry may be refused".`}].map(e=>e.category)),on$1=Ga$1(an$1).max(10).optional().meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10 categories)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),sn=io$1([{genre:`House`,category:`House`,priority:`core`,notes:`Broad 4/4 dance music rooted in Chicago house; warm grooves, steady kicks, club-focused; use when event says house music generally without a clear subgenre.`},{genre:`Deep House`,category:`House`,priority:`core`,notes:`Smooth, warm, soulful or jazzy house; deeper basslines, softer drums, slower club tempo; often described as intimate, sophisticated, sunset, lounge or underground.`},{genre:`Tech House`,category:`House`,priority:`core`,notes:`Groovy house with techno-influenced drums, rolling basslines, minimal vocals and big club energy; common in Ibiza, festivals, commercial underground and peak-time club events.`},{genre:`Progressive House`,category:`House`,priority:`core`,notes:`Melodic house with long builds, emotional breakdowns and gradual progression; often associated with mainstage, euphoric, cinematic or journey-style sets.`},{genre:`Minimal House`,category:`House`,priority:`core`,notes:`Stripped-back, repetitive house with sparse percussion, subtle grooves and restrained arrangements; common in European club, afterhours and vinyl-focused events.`},{genre:`Romanian Minimal`,category:`House`,priority:`core`,notes:`Hypnotic, micro-detailed minimal house/techno linked to Romania; long-form grooves, subtle swing, deep rolling bass, afterhours, vinyl, underground and "ro-minimal" wording.`},{genre:`Afro House`,category:`House`,priority:`core`,notes:`House music with African percussion, polyrhythms, chants, soulful vocals and warm melodic grooves; often spiritual, organic, sunset, beach club or global house oriented.`},{genre:`Afro Tech`,category:`House`,priority:`core`,notes:`Darker, tougher and more electronic Afro House; heavier drums, driving bass, tribal percussion and peak-time club energy; sits between Afro House and melodic techno.`},{genre:`Acid House`,category:`House`,priority:`high`,notes:`House built around squelchy Roland TB-303 acid basslines; raw, psychedelic, ravey or retro Chicago/UK warehouse references.`},{genre:`Funky House`,category:`House`,priority:`high`,notes:`Upbeat, feel-good house with funk, disco samples, bass guitar grooves, bright hooks and party-friendly energy; often vocal, summery or nostalgic.`},{genre:`Jackin House`,category:`House`,priority:`high`,notes:`Bouncy Chicago-style house with shuffled drums, chunky grooves, cut-up samples and playful energy; often raw, funky, loop-based and dancefloor-driven.`},{genre:`Soulful House`,category:`House`,priority:`medium`,notes:`Vocal-led house with gospel, soul and R&B influence; rich chords, emotional vocals, uplifting messages and warm classic house feel.`},{genre:`Melodic House`,category:`House`,priority:`high`,notes:`Modern melodic, emotional house with polished production, arpeggios, atmospheric pads and deep/progressive feel; often Anjunadeep, sunset, rooftop or organic club energy.`},{genre:`Latin House`,category:`House`,priority:`medium`,notes:`House with Latin percussion, Spanish or Portuguese vocals, salsa, samba, reggaeton or Afro-Latin rhythmic influence; upbeat, percussive and dancefloor-friendly.`},{genre:`Techno`,category:`Techno`,priority:`core`,notes:`Broad 4/4 electronic club music rooted in Detroit and Berlin; repetitive, mechanical, driving, hypnotic or warehouse-focused; use when techno is named without a clearer subtype.`},{genre:`Melodic Techno`,category:`Techno`,priority:`core`,notes:`Emotional, cinematic techno with big synth melodies, arpeggios, dark builds and dramatic drops; often Afterlife, Tale Of Us, lasers, visuals or large-room events.`},{genre:`Hard Techno`,category:`Techno`,priority:`core`,notes:`Fast, aggressive techno with pounding kicks, distorted drums, high energy and rave/warehouse intensity; often 145+ BPM and associated with modern hard rave trends.`},{genre:`Industrial Techno`,category:`Techno`,priority:`high`,notes:`Dark, harsh techno with distorted kicks, metallic percussion, noise textures and warehouse or dystopian aesthetics; more abrasive than standard techno.`},{genre:`Minimal Techno`,category:`Techno`,priority:`high`,notes:`Stripped-back techno built from repetition, subtle changes, sparse drums and hypnotic grooves; less melodic and more mechanical than minimal house.`},{genre:`Detroit Techno`,category:`Techno`,priority:`medium`,notes:`Techno rooted in Detroit's futuristic, soulful and machine-funk sound; classic, purist, historical or old-school techno references.`},{genre:`Dub Techno`,category:`Techno`,priority:`medium`,notes:`Deep techno with dub chords, echo, reverb, spacious atmospheres and slow hypnotic movement; often smoky, deep, aquatic or meditative.`},{genre:`Acid Techno`,category:`Techno`,priority:`medium`,notes:`Techno driven by squelchy 303 acid lines, looping percussion and rave energy; harder and more driving than acid house.`},{genre:`Hypnotic Techno`,category:`Techno`,priority:`medium`,notes:`Repetitive, deep, rolling techno designed for trance-like immersion; subtle loops, long blends, minimal melody and underground warehouse feel.`},{genre:`Drum & Bass`,category:`Bass`,priority:`core`,notes:`Fast breakbeat music around 160-180 BPM with heavy basslines and chopped drums; use for D&B, drum and bass, rollers, jump-up or bass-heavy rave events.`},{genre:`Jungle`,category:`Bass`,priority:`core`,notes:`Breakbeat-heavy precursor to D&B with chopped amen breaks, reggae/dub samples, ragga vocals and 90s UK rave energy.`},{genre:`Dubstep`,category:`Bass`,priority:`core`,notes:`Bass-heavy UK-origin genre around 140 BPM; half-time drums, sub-bass, wobble bass, dark atmospheres or aggressive drops.`},{genre:`Bass House`,category:`Bass`,priority:`core`,notes:`House-tempo club music with heavy bass drops, punchy drums and EDM/festival energy; blends house groove with dubstep or bass music sound design.`},{genre:`Breakbeat`,category:`Bass`,priority:`core`,notes:`Electronic music built on syncopated broken drum patterns instead of straight 4/4; often rave, electro, UK club, breaks or old-school references.`},{genre:`UK Garage`,category:`Bass`,priority:`core`,notes:`Skippy UK club music with swung 2-step rhythms, chopped vocals, sub-bass and soulful/R&B influence; often "UKG", "garage", "2-step" or "speed garage".`},{genre:`Bassline`,category:`Bass`,priority:`high`,notes:`UK 4x4 garage-derived bass music with warping basslines, fast club energy and playful vocal chops; often northern UK or speed garage adjacent.`},{genre:`Grime`,category:`Bass`,priority:`high`,notes:`UK rap and electronic bass hybrid around 140 BPM; MC-led, sparse beats, aggressive flows, eski sounds and London street culture references.`},{genre:`Liquid DnB`,category:`Bass`,priority:`medium`,notes:`Melodic, smooth and soulful drum & bass; rolling breaks, warm bass, vocals, pads and emotional or uplifting atmosphere.`},{genre:`Neurofunk`,category:`Bass`,priority:`medium`,notes:`Technical, dark and aggressive drum & bass with complex bass sound design, precise drums and futuristic, intense energy.`},{genre:`Footwork`,category:`Bass`,priority:`medium`,notes:`Fast Chicago club style around 160 BPM with syncopated kicks, chopped vocal samples and jittery rhythms; related to juke and dance battles.`},{genre:`Jersey Club`,category:`Bass`,priority:`medium`,notes:`Fast, bouncy US club music with chopped samples, triplet kick patterns and call-and-response energy; often party, dance challenge or club edit focused.`},{genre:`Trance`,category:`Trance`,priority:`core`,notes:`Euphoric electronic dance music with emotional melodies, long builds, breakdowns and big climaxes; often 90s, festival, uplifting or hands-in-the-air language.`},{genre:`Psytrance`,category:`Trance`,priority:`core`,notes:`Fast psychedelic trance with rolling basslines, hypnotic repetition, alien/psychedelic sound design and outdoor festival or doof culture references.`},{genre:`Progressive Trance`,category:`Trance`,priority:`high`,notes:`Smoother, slower trance with gradual melodic builds, deep atmospheres and less explosive drops than uplifting trance; often journey-based and emotional.`},{genre:`Disco`,category:`Disco`,priority:`core`,notes:`Classic dance music with live-sounding drums, strings, funk bass, soul vocals and 70s/80s references; use for retro disco, disco party or classic dance events.`},{genre:`Nu Disco`,category:`Disco`,priority:`core`,notes:`Modern electronic disco with polished production, house tempo, funk basslines, synths and retro dancefloor feel; often contemporary disco edits or poolside energy.`},{genre:`Italo Disco`,category:`Disco`,priority:`medium`,notes:`European 80s disco style with synth bass, drum machines, dramatic vocals and retro-futurist melodies; often Italian, cult, synth-heavy or nostalgic.`},{genre:`Funk`,category:`Disco`,priority:`high`,notes:`Groove-based music with syncopated bass, live drums, brass, guitars and rhythmic vocals; often party, rare groove, soul-funk or dancefloor classics.`},{genre:`Soul`,category:`Disco`,priority:`medium`,notes:`Vocal-focused music rooted in R&B, gospel and Motown traditions; emotional vocals, warm instrumentation and classic groove; may overlap with disco and house roots.`},{genre:`Balearic`,category:`Disco`,priority:`medium`,notes:`Eclectic Ibiza-influenced sound blending downtempo, disco, house, pop, world and chillout; sunset, beach, terrace, poolside or open-air language.`},{genre:`Hardcore`,category:`Hard Dance`,priority:`high`,notes:`Very fast, intense rave music with distorted kicks, aggressive synths and high BPM; use when event says hardcore, ravecore or extreme hard dance.`},{genre:`Hardstyle`,category:`Hard Dance`,priority:`high`,notes:`Dutch-origin hard dance with distorted reverse-bass kicks, euphoric melodies, screeches and festival anthems; usually around 150 BPM.`},{genre:`Gabber`,category:`Hard Dance`,priority:`low`,notes:`Extreme Dutch hardcore style with very fast BPM, distorted kicks, raw rave energy and Rotterdam/hakken culture references.`},{genre:`Happy Hardcore`,category:`Hard Dance`,priority:`low`,notes:`Fast, euphoric hardcore with bright melodies, pitched-up vocals, piano riffs and 90s UK rave nostalgia; playful rather than dark.`},{genre:`Amapiano`,category:`Global`,priority:`core`,notes:`South African club music with log drums, shakers, jazzy chords, smooth vocals and laid-back but danceable grooves; often piano-led and percussive.`},{genre:`Gqom`,category:`Global`,priority:`high`,notes:`Dark, minimal South African club sound from Durban; heavy broken rhythms, raw percussion, sparse vocals and intense hypnotic energy.`},{genre:`Afrobeats`,category:`Global`,priority:`core`,notes:`West African pop and club sound, especially Nigerian/Ghanaian; melodic vocals, dancehall/highlife/hip-hop influence, warm rhythms and mainstream crossover.`},{genre:`Kuduro`,category:`Global`,priority:`medium`,notes:`Angolan and Portuguese club music with fast, hard percussion, energetic chants and raw dancefloor intensity; often Afro-Portuguese or Lisbon club references.`},{genre:`Singeli`,category:`Global`,priority:`low`,notes:`Extremely fast Tanzanian electronic dance music, often 180-220+ BPM; frantic rhythms, rapid vocals and high-energy East African street sound.`},{genre:`Baile Funk`,category:`Global`,priority:`high`,notes:`Brazilian funk carioca with heavy drums, MC vocals, Portuguese lyrics and raw party energy; often Rio, favela, proibidao or funk mandelao references.`},{genre:`Reggaeton`,category:`Global`,priority:`high`,notes:`Latin urban dance music with dembow rhythm, Spanish vocals, pop/hip-hop influence and mainstream club appeal; often perreo or Latin party events.`},{genre:`Dancehall`,category:`Global`,priority:`high`,notes:`Jamaican club music with riddims, patois vocals, reggae influence and sound system culture; can be party, bashment, Caribbean or crossover pop.`},{genre:`Dembow`,category:`Global`,priority:`medium`,notes:`Dominican-origin club style built on repetitive dembow rhythm, Spanish MC vocals and raw Latin street-party energy; more minimal and percussive than reggaeton.`},{genre:`Ambient`,category:`Downtempo`,priority:`high`,notes:`Atmospheric, beatless or low-rhythm electronic music focused on texture, mood and space; suited to listening rooms, chill rooms, sound baths or pre/post-event settings.`},{genre:`Downtempo`,category:`Downtempo`,priority:`high`,notes:`Slower electronic music with relaxed beats, warm textures and lounge/chillout feel; use for chill, sunset, listening, cafe, pre-party or afterhours decompression events.`},{genre:`Electronica`,category:`Downtempo`,priority:`high`,notes:`Broad non-club-focused electronic music; experimental, melodic, listening-oriented or pop-adjacent; use when event says electronic but not clearly house/techno/bass.`},{genre:`Trip Hop`,category:`Downtempo`,priority:`low`,notes:`Moody 90s Bristol sound blending hip-hop beats, dub, soul, jazz and atmospheric vocals; dark, smoky, cinematic or Massive Attack/Portishead references.`},{genre:`Lo-Fi`,category:`Downtempo`,priority:`medium`,notes:`Relaxed, hazy, imperfect-sounding beats with soft drums, samples, jazz chords and study/chill aesthetics; often lo-fi hip-hop or bedroom production references.`},{genre:`Electro`,category:`Electronic`,priority:`core`,notes:`Syncopated electronic music with 808 drums, robotic funk, vocoders, breakbeats and Detroit/80s futurism; distinct from electro-house.`},{genre:`Synth Pop`,category:`Electronic`,priority:`medium`,notes:`Pop-oriented electronic music with catchy vocals, 80s synths, drum machines and new wave influence; often retro, nostalgic or indie-pop crossover.`},{genre:`Industrial`,category:`Electronic`,priority:`medium`,notes:`Dark electronic or rock-influenced music with harsh textures, machine rhythms, noise and dystopian aesthetics; may overlap with EBM and industrial techno.`},{genre:`EBM`,category:`Electronic`,priority:`low`,notes:`Electronic Body Music: hard, repetitive industrial dance with shouted vocals, rigid basslines and militaristic rhythms; 80s/Belgian/German club references.`},{genre:`Indie Dance`,category:`Electronic`,priority:`high`,notes:`Danceable blend of indie rock, disco, synth pop and electronic production; often band/DJ crossover, nu-disco-adjacent, stylish or alternative club sound.`},{genre:`Experimental`,category:`Electronic`,priority:`medium`,notes:`Unconventional electronic music that avoids standard genre structures; abstract, avant-garde, noise, leftfield, art-focused or boundary-pushing events.`},{genre:`Hip-Hop`,category:`Non-Electronic`,priority:`high`,notes:`Rap-led music with beats, MCs, sampling, trap, boom bap or old-school references; use for hip-hop parties, rap nights or DJ sets centred on rap.`},{genre:`R&B`,category:`Non-Electronic`,priority:`high`,notes:`Smooth vocal-led music with soul, hip-hop and pop influence; 90s/2000s R&B, slow jams, contemporary R&B or club crossover events.`},{genre:`Jazz`,category:`Non-Electronic`,priority:`medium`,notes:`Improvised or live instrumental music with swing, bebop, fusion, soul-jazz or jazz club references; often live band or listening-focused.`},{genre:`Pop`,category:`Non-Electronic`,priority:`medium`,notes:`Mainstream, chart-focused music with recognisable hits, singalong vocals and broad commercial appeal; use for general pop parties or top-40 events.`},{genre:`Rock`,category:`Non-Electronic`,priority:`low`,notes:`Guitar-driven band music; indie rock, classic rock, punk, alternative or live venue references; usually non-electronic unless explicitly DJ edits.`},{genre:`Reggae`,category:`Non-Electronic`,priority:`medium`,notes:`Jamaican-origin music with offbeat guitar rhythms, dub influence, roots vocals and sound system culture; includes roots, dub and reggae parties.`},{genre:`Live`,category:`Non-Electronic`,priority:`medium`,notes:`Event is centred on live performance rather than DJ genre; bands, singers, instrumentalists or live electronic acts; use only when performance format is the key signal.`}].map(e=>e.genre)),cn=Ga$1(sn).min(1).max(5).meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]});Ga$1(sn).max(5).optional().meta({description:`Music genres for the event (up to 5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]});function O$1(t,n){return na$1().regex(RegExp(`^${t}_[0-9a-z]{26}$`),`Must be a valid ${n} ID`).describe(`Unique ${n} identifier`)}const k$1=O$1(`tem`,`team`),un=O$1(`txp`,`tax profile`);O$1(`tnt`,`tenant`);const fn$1=O$1(`tdl`,`team deletion operation`),A$1=O$1(`evt`,`event`),pn$1=O$1(`ven`,`venue`),mn=O$1(`loc`,`location`),j$1=O$1(`usr`,`user`),hn=O$1(`cnl`,`order cancellation`),gn=O$1(`ord`,`order`),_n=O$1(`tkt`,`ticket`),M$1=O$1(`pmt`,`promoter`);O$1(`cpn`,`coupon`);O$1(`cod`,`coupon code`);const bn=O$1(`cus`,`customer`),N$1=O$1(`adm`,`admission`),xn=O$1(`sct`,`section`);O$1(`ben`,`beneficiary`);const Cn=O$1(`pyt`,`payout`),P$1=O$1(`mbr`,`team member`),wn=O$1(`inv`,`team invite`),Tn=O$1(`ecl`,`event collaborator`),En=O$1(`psc`,`permission scope`),Dn=O$1(`prl`,`permission role`),On=O$1(`ntf`,`notification`),kn=O$1(`int`,`integration`),An=O$1(`ibf`,`integration backfill`),F$1=qa$1({src:ca$1().meta({examples:[`https://assets.session.services/my-image.jpg`]}),alt:na$1().meta({examples:[`My Image`]}),width:Ta$1().meta({examples:[1080]}),height:Ta$1().meta({examples:[1080]})}),jn=`Limit cannot be 0. Use -1 for unlimited or a positive number for a specific limit`;function Mn(){return Ta$1().min(-1)}function Nn(){return Ta$1().min(-1).refine(e=>e!==0,{message:jn})}const Pn=Xa$1([na$1(),Ta$1(),ka$1(),Na$1()]),Fn=Ao$1(()=>Xa$1([Pn,Ga$1(Fn),no$1(na$1(),Fn)])),In=no$1(na$1().min(1).max(40).meta({description:`Metadata key. Must be 1-40 characters`}),na$1().max(500).meta({description:`Metadata value. Must not exceed 500 characters`})).refine(e=>Object.keys(e).length<=50,{message:`Metadata cannot exceed 50 keys`}).optional().meta({description:`Flexible key-value metadata storage for custom configuration. Similar to Stripe's metadata API. Maximum 50 keys, key names up to 40 characters, values up to 500 characters.`}),I$1=na$1().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/,`Must be a naive datetime without timezone (YYYY-MM-DDTHH:mm:ss)`).meta({description:`Wall clock time without timezone (displays same everywhere)`,examples:[`2025-03-15T19:30:00`]});function L$1(e){return T$1().int().min(1).max(100).prefault(20).meta({examples:[20],description:`Maximum number of ${e} to return per request (1-100, default: 20)`})}const Ln=na$1().meta({description:`Opaque cursor for pagination. Use the cursor from the previous response to continue fetching results.`}),Rn=`[a-z][a-z0-9-]*`,zn=RegExp(`^-?(?:\\*|${`(?:${Rn})(?:\\.${Rn})*`}(?:\\.\\*|\\.bypass|\\.[a-z]{3}_[0-9a-z]{26})?)$`),Bn=/^[a-z]{3}_[0-9a-z]{26}$/,Vn=[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`,`cpn`],Hn=`team.read,team.write,team.oauth.read,team.oauth.write,team.member.read,team.member.write,team.invite.read,team.invite.write,team.gateway.read,team.gateway.connect,team.gateway.write,team.tax.read,team.tax.write,team.performance.read,cms.read,cms.write,role.read,role.write,event.read,event.write,event.performance.read,promoter.read,promoter.write,promoter.performance.read,venue.read,venue.write,order.read,order.write,ticket.read,ticket.write,ticket.scan,coupon.read,coupon.write,membership.read,membership.write,beneficiary.read,beneficiary.write,payout.read,payout.write,*`.split(`,`),Un=[`tenant`,`team`,`team.oauth`,`team.member`,`team.invite`,`team.gateway`,`team.tax`,`team.performance`,`cms`,`role`,`event`,`event.performance`,`promoter`,`promoter.performance`,`venue`,`order`,`ticket`,`coupon`,`membership`,`beneficiary`,`payout`],Wn=new Set(Hn),Gn=new Set(Un),Kn={"team.read":[`tem`],"team.write":[`tem`],"team.oauth.read":[`tem`],"team.oauth.write":[`tem`],"team.member.read":[`tem`],"team.member.write":[`tem`],"team.invite.read":[`tem`],"team.invite.write":[`tem`],"team.gateway.read":[`tem`,`pmt`],"team.gateway.connect":[`tem`],"team.gateway.write":[`tem`,`pmt`],"team.tax.read":[`tem`],"team.tax.write":[`tem`],"team.performance.read":[`tem`,`pmt`,`ven`,`evt`],"cms.read":[],"cms.write":[],"role.read":[`tem`],"role.write":[`tem`],"event.read":[`tem`,`pmt`,`ven`,`evt`],"event.write":[`tem`,`pmt`,`ven`,`evt`],"event.performance.read":[`tem`,`pmt`,`ven`,`evt`],"promoter.read":[`tem`,`pmt`,`evt`],"promoter.write":[`tem`,`pmt`,`evt`],"promoter.performance.read":[`tem`,`pmt`,`evt`],"venue.read":[`tem`,`ven`,`evt`],"venue.write":[`tem`,`ven`,`evt`],"order.read":[`tem`,`pmt`,`ven`,`evt`,`ord`],"order.write":[`tem`,`pmt`,`ven`,`evt`,`ord`],"ticket.read":[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`],"ticket.write":[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`],"ticket.scan":[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`],"coupon.read":[`tem`,`pmt`,`evt`,`cpn`],"coupon.write":[`tem`,`pmt`,`evt`,`cpn`],"membership.read":[`tem`],"membership.write":[`tem`],"beneficiary.read":[`tem`,`pmt`],"beneficiary.write":[`tem`,`pmt`],"payout.read":[`tem`,`pmt`,`ven`],"payout.write":[`tem`,`pmt`],"*":[]};function qn(e){let[t]=e.split(`_`);return t?Vn.includes(t):false}function Jn(e){let[t]=e.split(`_`);return !t||!qn(e)?null:t}function Yn(e){return Bn.test(e)&&qn(e)}function Xn(e,t){let n=Jn(t);return n?(Kn[e]??[]).includes(n):false}function Zn(e,t){return !Wn.has(e)||!Yn(t)?false:Xn(e,t)}function Qn(e){return e.startsWith(`-`)?e.slice(1):e}function $n(e){return Wn.has(e)}function er(e){return e.endsWith(`.bypass`)?Wn.has(e.slice(0,-7)):false}function tr(e){let t=e.match(/^((?:[a-z][a-z0-9-]*)(?:\.[a-z][a-z0-9-]*)*)\.([a-z]{3}_[0-9a-z]{26})$/);return t?nr(t):null}function nr(e){let t=e[1],n=e[2];return !t||!n?null:{base:t,resourceId:n}}function rr(e){let t=tr(e);return t?Zn(t.base,t.resourceId):false}function ir(e){if(!e.endsWith(`.*`))return false;let t=e.slice(0,-2);return Gn.has(t)||Wn.has(t)}const ar=[$n,er,rr,ir];function or(e){let t=Qn(e);return ar.some(e=>e(t))}const R$1=na$1().regex(zn,`Invalid permission node. Use lowercase dot notation with optional wildcard, resource target, bypass target, and deny prefix.`).refine(or,{message:`Unsupported permission node. Only nodes from the canonical permission catalog are allowed.`}).meta({description:`Permission node in minecraft-style format. Supports exact, scoped wildcard, resource target, bypass target, and deny prefix.`,examples:[`team.read`,`team.member.write`,`ticket.scan`,`ticket.scan.*`,`ticket.scan.evt_01h8c3jm9zs2v6h2k9p9r8f5a1`,`team.gateway.connect.bypass`,`team.*`,`*`,`-team.gateway.write`,`-ticket.scan.evt_01h8c3jm9zs2v6h2k9p9r8f5a1`]}),sr=Ga$1(R$1).meta({description:`Array of permission nodes. Supports wildcard and negation. Empty arrays are allowed.`,examples:[[],[`team.read`,`team.member.write`],[`event.read`,`event.write`],[`*`],[`-team.gateway.write`]]}),cr=sr.min(1).meta({description:`Non-empty array of permission nodes. Supports wildcard and negation.`,examples:[[`team.read`,`team.member.write`],[`event.read`,`event.write`],[`*`],[`-team.gateway.write`]]});const Or=1e4,kr=na$1().max(Or).meta({description:`Public-facing description with a maximum length of ${Or} characters`}),Ar=na$1().length(16).meta({examples:[w$1.signature],description:`HMAC signature for secure access (16 characters, base64url encoded)`}),jr=qa$1({promoterIds:Ga$1(M$1).nullable().meta({description:`Null means team-wide promoter access. An array means access is restricted to those promoters.`})}).meta({description:`Promoter access assigned to a team member or invite.`}),Mr=qa$1({promoterIds:Ga$1(M$1).min(1).nullable().meta({description:`Null grants team-wide promoter access. A non-empty array restricts access to those promoters.`})}).meta({description:`Promoter access assignment input.`}),Nr=io$1([`SALE_ENDED`,`SOLD_OUT`,`DOOR`]),Fr=qa$1({booking:Ta$1().min(4).max(10).meta({examples:[7.5],description:`Booking fee percentage used to calculate the booking fee.`})}).meta({description:`Admission-level pricing override used to calculate derived fee amounts.`});function Ir(e){return qa$1({base:Da$1().min(0).meta({examples:[w$1.Admission.price.base],description:`Organiser-entered ticket price before any added tax or booking fees, in cents`}),booking:Da$1().min(0).meta({examples:[w$1.Admission.price.booking],description:e.booking}),tax:Da$1().min(0).optional().meta({description:`Ticket tax component in cents. This excludes tax contained in booking fees.`}),total:Da$1().min(0).optional().meta({description:`Customer-facing total in cents, including ticket tax and booking fees.`}),currency:D$1.meta({examples:[w$1.Admission.price.currency],description:e.currency}),override:Fr.optional().meta({description:`Optional pricing override used to calculate derived fee amounts.`})}).meta({examples:[w$1.Admission.price],description:e.price})}const z$1=qa$1({id:N$1.readonly().meta({description:`A unique identifier for this admission`,examples:[w$1.Admission.id]}),name:na$1().meta({description:`The display name of the admission type shown to customers`,examples:[w$1.Admission.name]}),subtitle:na$1().max(100).optional().meta({description:`Short supporting text shown below the admission name`,examples:[w$1.Admission.subtitle]}),description:na$1().max(500).optional().meta({description:`Detailed information shown when customers expand 'More info'`,examples:[w$1.Admission.description]}),capacity:Mn().prefault(-1).meta({examples:[w$1.Admission.capacity],description:`Maximum number of tickets that can be sold for this admission type. A value of -1 indicates unlimited`}),limit:Nn().prefault(-1).meta({examples:[w$1.Admission.limit??-1],description:`Maximum number of tickets of this admission type that can be purchased in a single order. A value of -1 indicates unlimited`}),available:Ta$1().min(-1).readonly().meta({examples:[w$1.Admission.available],description:`Current number of tickets available for purchase, calculated as capacity minus sold minus reserved. A value of -1 indicates unlimited`}),sold:Ta$1().min(0).readonly().meta({examples:[w$1.Admission.sold],description:`Total number of tickets of this admission type that have been purchased`}),reserved:Ta$1().min(0).readonly().meta({examples:[w$1.Admission.reserved],description:`Number of tickets held for customers during checkout and not available to others`}),order:Ta$1().min(0).meta({examples:[w$1.Admission.order],description:`Determines the position in which this admission type appears when listed. Lower values appear first`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Admission.createdAt],description:`Timestamp in ISO 8601 format when this admission type was created`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Admission.updatedAt],description:`Timestamp in ISO 8601 format when this admission type was last updated`}),entryStartsAt:I$1.meta({examples:[w$1.Admission.entryStartsAt],description:`Wall clock time from which tickets of this type are valid for entry (no timezone)`}),entryEndsAt:I$1.meta({examples:[w$1.Admission.entryEndsAt],description:`Wall clock time until which tickets of this type are valid for entry (no timezone)`}),saleStartsAt:I$1.meta({examples:[w$1.Admission.saleStartsAt],description:`Wall clock time when ticket sales for this admission type begin (no timezone)`}),saleEndsAt:I$1.meta({examples:[w$1.Admission.saleEndsAt],description:`Wall clock time when ticket sales for this admission type end (no timezone)`}),saleEndsBehavior:Nr.default(`SALE_ENDED`).meta({examples:[w$1.Admission.saleEndsBehavior],description:`Label to display for this admission after ticket sales have ended`}),price:Ir({booking:`Additional booking fee applied to the ticket price, in cents`,currency:`Three-letter ISO 4217 currency code for the ticket price`,price:`Pricing details for this admission type, including base cost and fees in cents, and currency`}),visibility:io$1(qt$1).prefault(`ALWAYS`).meta({examples:[`ALWAYS`],description:`Controls whether this admission type is shown publicly, revealed by a scoped coupon, or unlocked after another admission.`}),visibleAfterAdmissionId:N$1.nullable().optional().meta({description:`Admission that must sell out or close before this admission can be purchased.`}),sectionId:xn.nullable().optional().meta({examples:[w$1.Admission.sectionId],description:`Identifier of the section this admission type belongs to, if any`}),teamId:k$1.meta({description:`Team that owns this admission. Denormalized for efficient queries.`}),promoterId:M$1.meta({examples:[w$1.Admission.promoterId],description:`Identifier of the promoter responsible for this admission type`}),eventId:A$1.meta({examples:[w$1.Admission.eventId],description:`Identifier of the event to which this admission type is linked`}),eventSlug:na$1().meta({examples:[w$1.Admission.eventSlug],description:`URL-friendly slug for the event associated with this admission type`})}).meta({description:`Admission represents a specific type or category of ticket available for an event`,examples:[w$1.Admission]}),Lr=z$1.omit({id:true,createdAt:true,updatedAt:true,available:true,sold:true,reserved:true}).extend({price:z$1.shape.price.omit({tax:true,total:true}).strict()}).meta({description:`Schema for creating a new admission type for an event`}),Rr=z$1.pick({id:true}).extend({eventId:z$1.shape.eventId.meta({examples:[w$1.Admission.eventId],description:`Identifier of the event to which this admission type belongs`})}).meta({description:`Schema for deleting an admission type from an event. This performs a soft delete by setting the deletedAt timestamp`}),zr=z$1.pick({id:true}).extend({eventId:A$1.meta({examples:[w$1.Admission.eventId],description:`Identifier of the event to which this admission type belongs`})}).meta({description:`Schema for retrieving a specific admission type`}),Br=Ja$1({eventId:na$1().max(128).meta({examples:[w$1.Admission.eventId],description:`Identifier of the event to list admission types for`}),sectionId:na$1().max(128).optional().meta({examples:[w$1.Admission.sectionId],description:`Filter admission types by section identifier. If provided, only admissions for this section are returned`}),query:na$1().max(120).optional().meta({examples:[`Early Bird`],description:`Optional search query to filter admissions by name. When provided, search-backed pagination is used.`}),limit:L$1(`admission types`).optional(),cursor:na$1().max(768).optional().meta({examples:[`eyJpZCI6ImFkbV8wMWpwczVjZ3NlZTB4dmFwYms5MmU4ZWI0ZyJ9`],description:`Pagination cursor for retrieving the next set of results. Obtained from previous response`})}).meta({description:`Schema for listing admission types with pagination and filtering options`});function B$1(t,n){let i={[n]:Ga$1(t).meta({description:`Array of ${n} for the current result set`})},a=na$1().nullish().meta({examples:[`eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNqIn19`],description:`Cursor for navigating backward in the result set. Omitted when there are no prior results.`}),o=na$1().nullish().meta({examples:[`eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNkIn19`],description:`Cursor for navigating forward in the result set. Omitted when there are no subsequent results.`});return qa$1({...i,before:a,after:o,limit:T$1().min(1).meta({examples:[20],description:`Maximum number of items to return in each result set`})})}const Vr=B$1(z$1,`admissions`),Hr=qa$1({min:Da$1().min(0).meta({description:`Minimum booking fee in the quote currency's minor units`}).optional(),max:Da$1().min(0).meta({description:`Maximum booking fee in the quote currency's minor units`}).optional(),percent:Ta$1().min(0).meta({description:`Percentage applied when calculating the booking fee`}).optional()}),Ur=z$1.pick({eventId:true}).extend({message:na$1().meta({examples:[`7.5% of the ticket price or $2 AUD, whichever is higher`],description:`Detailed explanation of the booking fee calculation applied to this admission type`}),source:io$1([`EVENT`,`CUSTOM`]).meta({description:`Whether the quote uses the resolved event fee or an admission-level custom percentage.`}),rule:Hr.meta({description:`Effective booking fee rule in the quote currency after conversion.`}),price:Ir({booking:`Calculated booking fee applied to the ticket price, in cents`,currency:`Three-letter ISO 4217 currency code for the quoted price`,price:`Pricing quote for this admission type, showing base cost and calculated booking fee in cents`})}).meta({description:`Response schema for admission pricing quotes, including booking fee calculations and explanatory messages`}),Wr=z$1.pick({eventId:true}).extend({base:Da$1().min(0).meta({examples:[w$1.Admission.price.base],description:`Base cost of a ticket for this admission type before fees, in cents`}),currency:D$1.meta({examples:[w$1.Admission.price.currency],description:`Three-letter ISO 4217 currency code for the ticket price`}),override:Fr.optional().meta({description:`Optional admission-level booking fee percentage to preview instead of the event fee formula.`})}).meta({description:`Request schema for generating a pricing quote for an admission type, including booking fee calculations`}),Gr=qa$1({quote:Ur}),Kr=qa$1({admission:z$1}),qr=qa$1({id:z$1.shape.id,eventId:z$1.shape.eventId,name:z$1.shape.name.optional(),subtitle:z$1.shape.subtitle,description:z$1.shape.description,capacity:Mn().optional(),limit:Nn().optional(),order:z$1.shape.order.optional(),entryStartsAt:z$1.shape.entryStartsAt.optional(),entryEndsAt:z$1.shape.entryEndsAt.optional(),saleStartsAt:z$1.shape.saleStartsAt.optional(),saleEndsAt:z$1.shape.saleEndsAt.optional(),saleEndsBehavior:Nr.optional(),price:z$1.shape.price.omit({tax:true,total:true}).strict().extend({override:Fr.nullable().optional().meta({description:`Admission pricing override. Pass null to clear it; omit to leave it unchanged.`})}).optional(),visibility:io$1(qt$1).optional(),visibleAfterAdmissionId:N$1.nullable().optional(),sectionId:xn.nullable().optional().meta({description:`Section ID. Pass null to unassign from section; omit to leave unchanged.`})}).meta({description:`Schema for updating an existing admission type.`}),Jr=qa$1({eventId:na$1().meta({description:`Event identifier`})}),Yr=qa$1({code:na$1().meta({description:`Coupon code captured on the order`}),totalTickets:Da$1().min(0).meta({description:`Valid tickets purchased with this coupon code`}),checkedIn:Da$1().min(0).meta({description:`Coupon tickets currently checked in`}),noShows:Da$1().min(0).meta({description:`Coupon tickets not currently checked in`}),checkInRate:Ta$1().min(0).max(100).meta({description:`Percentage of coupon tickets checked in`})}),Xr=qa$1({totalTickets:Da$1().min(0).meta({description:`Total valid tickets purchased with a coupon code`}),checkedIn:Da$1().min(0).meta({description:`Total coupon tickets currently checked in`}),noShows:Da$1().min(0).meta({description:`Total coupon tickets not currently checked in`}),checkInRate:Ta$1().min(0).max(100).meta({description:`Overall percentage of coupon tickets checked in`}),coupons:Ga$1(Yr).meta({description:`Check-in attendance breakdown by coupon code, sorted by total tickets descending`})}),V$1=Ii$1().describe(`Date (YYYY-MM-DD)`),Zr=na$1().min(1).max(128).optional().describe(`IANA time zone for interpreting date ranges`),Qr=qa$1({startDate:V$1.describe(`Start date (YYYY-MM-DD)`),endDate:V$1.describe(`End date (YYYY-MM-DD)`),timeZone:Zr}),$r={startDate:V$1.optional().describe(`Start date (YYYY-MM-DD)`),endDate:V$1.optional().describe(`End date (YYYY-MM-DD)`),timeZone:Zr},ei=e=>!e.startDate&&!e.endDate||!!(e.startDate&&e.endDate);qa$1($r).refine(ei,{message:`Both startDate and endDate must be provided together, or omit both for all-time data`});function H$1(e){return qa$1(e).extend(Qr.shape)}function ni(e){return qa$1({...e,...$r}).refine(ei,{message:`Both startDate and endDate must be provided together, or omit both for all-time data`})}const U$1=qa$1({value:Ta$1().describe(`Current period value`),previous:Ta$1().describe(`Comparison period value`),change:Ta$1().describe(`Percentage change from previous period`),changeType:io$1([`increase`,`decrease`,`unchanged`]).describe(`Direction of change`)}),ri=qa$1({eventId:na$1().describe(`Event identifier`),eventName:na$1().describe(`Event name`),ticketCount:Ta$1().describe(`Number of tickets sold`),sharePercent:Ta$1().describe(`Percentage of total tickets`)}),W$1=qa$1({start:na$1().describe(`Period start date`),end:na$1().describe(`Period end date`)}),ii=qa$1({start:na$1().describe(`Comparison period start date`),end:na$1().describe(`Comparison period end date`)}),ai=io$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]),oi=qa$1({date:na$1().describe(`Date (YYYY-MM-DD)`),revenue:Ta$1().describe(`Revenue in cents`),tickets:Ta$1().describe(`Tickets sold`)}),si=oi.extend({orders:Ta$1().describe(`Orders placed`)}),ci=qa$1({revenue:Ta$1().describe(`Total revenue for period in cents`),tickets:Ta$1().describe(`Total tickets for period`)}),li=ci.extend({orders:Ta$1().describe(`Total orders for period`)}),ui=qa$1({revenue:U$1.describe(`Total revenue in cents`),ticketsSold:U$1.describe(`Number of tickets sold`),averageOrderValue:U$1.describe(`Average order value in cents`),conversionRate:U$1.describe(`Overall conversion rate (%)`),activeEvents:U$1.describe(`Number of active events in period`),uniqueCustomers:U$1.describe(`Unique customers (estimated)`),orderCount:U$1.describe(`Number of orders placed`),pageViews:U$1.describe(`Total page views from tracking`)}),di=qa$1({events:Ga$1(ri),totalTickets:Ta$1().describe(`Total tickets across all events`)});function fi(t,n){return H$1({...gi(t,n),currency:na$1().optional().describe(`Currency code for revenue metrics`)})}function pi(t){return qa$1({meta:qa$1({...t,currency:na$1().describe(`Primary currency code`),currencies:Ga$1(na$1()).describe(`All currencies with transactions`),dateRange:W$1,comparisonRange:ii}),metrics:ui})}function mi(t,n){return H$1({...gi(t,n),granularity:ai.optional().default(`DAY`).describe(`Time granularity`),currency:na$1().optional().describe(`Currency filter`)})}function hi(e,t){return H$1({...gi(e,t),limit:Ta$1().optional().default(5).describe(`Maximum number of events to return`)})}function gi(t,n){return {[t]:na$1().describe(n)}}const _i=ni({eventId:na$1().describe(`Event identifier`)}).meta({description:`Event performance summary request`}),vi=qa$1({meta:qa$1({eventId:na$1().describe(`Event identifier`),eventName:na$1().describe(`Event name`),currency:na$1().describe(`Currency code (e.g., USD, EUR)`),dateRange:W$1.optional().describe(`Present only when startDate/endDate are provided`),comparisonRange:ii.optional().describe(`Present only when startDate/endDate are provided`)}),metrics:qa$1({revenue:U$1.describe(`Total revenue in cents`),ticketsSold:U$1.describe(`Number of tickets sold`),orderCount:U$1.describe(`Number of orders placed`),averageOrderValue:U$1.describe(`Average order value in cents`),conversionRate:U$1.extend({convertedVisitors:Ta$1().describe(`Unique eligible visitors who completed an order`).meta({description:`Unique eligible visitors who completed an order`}),eligibleVisitors:Ta$1().describe(`Unique visitors eligible for conversion`).meta({description:`Unique visitors eligible for conversion`})}).describe(`Visitor purchase conversion for the selected period`),pageViews:U$1.describe(`Total page/product views`),uniqueVisitors:U$1.describe(`Unique visitors (estimated)`),checkoutStarted:U$1.describe(`Number of checkout started events (external link clicks for external events)`)})}),yi=H$1({eventId:na$1().describe(`Event identifier`),granularity:ai.optional().default(`DAY`).describe(`Time granularity for aggregation`),breakdown:io$1([`TOTAL`]).optional().default(`TOTAL`).describe(`Breakdown type (always TOTAL for performance)`),includeBreakdowns:ka$1().optional().default(true).describe(`Whether to include admission and section breakdowns in each time bucket`)}),bi=qa$1({meta:qa$1({eventId:na$1(),eventName:na$1().describe(`Event name`),currency:na$1().describe(`Currency code`),dateRange:W$1,granularity:ai}),series:Ga$1(qa$1({date:na$1().describe(`Date or timestamp`),tickets:Ta$1().describe(`Tickets sold in period`),revenue:Ta$1().describe(`Revenue in period (cents)`),admissions:Ga$1(qa$1({id:na$1(),name:na$1(),quantity:Ta$1()})),sections:Ga$1(qa$1({id:na$1(),name:na$1(),quantity:Ta$1()}))}))}),xi=io$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]).describe(`Time granularity for aggregation`),Si=H$1({eventId:na$1().describe(`Event identifier`),granularity:xi.optional().default(`DAY`)}).meta({description:`Event performance time series request`}),Ci=qa$1({meta:qa$1({eventId:na$1(),eventName:na$1().describe(`Event name`),currency:na$1().describe(`Currency code`),dateRange:W$1,granularity:xi}),series:Ga$1(qa$1({date:na$1().describe(`Date or timestamp`),revenue:Ta$1().describe(`Net revenue in period (cents)`),tickets:Ta$1().describe(`Tickets sold in period`),orders:Ta$1().describe(`Completed orders in period`),pageViews:Ta$1().describe(`Product/page views in period`),visitors:Ta$1().describe(`Unique visitors in period (estimated)`),checkoutStarted:Ta$1().describe(`Checkout started events in period`),convertedVisitors:Ta$1().describe(`Unique visitors who completed an order in period`),eligibleVisitors:Ta$1().describe(`Unique visitors eligible for conversion in period`),conversionRate:Ta$1().describe(`Converted visitors divided by eligible visitors in period (%)`)}))}),wi=H$1({eventId:na$1().describe(`Event identifier`)}),Ti=qa$1({meta:qa$1({eventId:na$1(),eventName:na$1().describe(`Event name`),currency:na$1().describe(`Currency code`),dateRange:W$1}),totals:qa$1({entered:Ta$1().describe(`Total entered funnel (product viewed)`),completed:Ta$1().describe(`Total completed (orders)`),overallConversionRate:Ta$1().describe(`Overall conversion rate (%)`),totalDropped:Ta$1().describe(`Total dropped off`)}),stages:Ga$1(qa$1({id:na$1().describe(`Funnel stage identifier`),name:na$1().describe(`Human-readable stage name`),count:Ta$1().describe(`Number of events at this stage`),conversionRate:Ta$1().describe(`Conversion rate from first stage (%)`),dropoffRate:Ta$1().describe(`Dropoff rate from previous stage (%)`)}))});qa$1({meta:qa$1({eventId:na$1(),dimension:na$1().describe(`Dimension type`),dateRange:W$1,limit:Ta$1().optional()}),data:Ga$1(qa$1({name:na$1().describe(`Dimension value (e.g., campaign name)`),views:Ta$1().describe(`Page/product views`),clicks:Ta$1().describe(`Ticket link clicks`).optional(),conversions:Ta$1().describe(`Completed orders`),revenue:Ta$1().describe(`Total revenue in cents`),conversionRate:Ta$1().describe(`Conversion rate (%)`),share:Ta$1().describe(`Percentage share of total`).optional()})),totals:qa$1({views:Ta$1(),conversions:Ta$1(),revenue:Ta$1()}).optional()});const Di=io$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]),Oi=qa$1({eventId:na$1().describe(`Event identifier`),eventName:na$1().describe(`Event name`),currency:na$1().describe(`Currency code (e.g., USD, EUR)`),dateRange:W$1}),ki=Oi.extend({limit:Ta$1().describe(`Maximum number of results returned`)}),Ai=io$1([`MOBILE`,`DESKTOP`,`TABLET`,`Unknown`]),ji=io$1([`revenue`,`tickets`,`orders`,`pageViews`,`visitors`,`conversion`,`clicks`,`clickRate`]).describe(`Metric used to sort breakdown rows before limiting results`);H$1({eventId:na$1(),granularity:Di.optional()});qa$1({granularity:Di,data:Ga$1(qa$1({date:na$1(),revenue:Ta$1(),ticketsSold:Ta$1()}))});const Pi=H$1({eventId:na$1(),limit:Ta$1().min(1).max(100).optional().default(10)}),Fi=qa$1({meta:ki,totals:qa$1({uses:Ta$1().describe(`Total coupon uses across all coupons`),revenue:Ta$1().describe(`Total revenue from coupon-discounted orders (cents)`)}),coupons:Ga$1(qa$1({id:na$1().describe(`Coupon code identifier`),code:na$1().describe(`Coupon code`),uses:Ta$1().describe(`Number of times this coupon was used`),revenue:Ta$1().describe(`Revenue from this coupon (cents)`),discount:na$1().describe(`Discount amount or percentage`),share:Ta$1().describe(`Share of total coupon uses (%)`)})).describe(`Coupons sorted by uses descending`)}),Ii=H$1({eventId:na$1(),limit:Ta$1().min(1).max(100).optional().default(10),sortBy:ji.optional().default(`orders`)}),Li=qa$1({data:Ga$1(qa$1({campaign:na$1(),views:Ta$1(),visitors:Ta$1(),clicks:Ta$1().optional(),orders:Ta$1(),tickets:Ta$1(),revenue:Ta$1(),conversionRate:Ta$1(),sharePercent:Ta$1()})),totalOrders:Ta$1(),totalTickets:Ta$1(),totalRevenue:Ta$1()}),Ri=H$1({eventId:na$1(),limit:Ta$1().min(1).max(100).optional().default(10),sortBy:ji.optional().default(`orders`)}),zi=qa$1({meta:ki,totals:qa$1({views:Ta$1().describe(`Total views across all mediums`),visitors:Ta$1().describe(`Total unique visitors across all mediums`),orders:Ta$1().describe(`Total orders across all mediums`),tickets:Ta$1().describe(`Total tickets across all mediums`),revenue:Ta$1().describe(`Total revenue across all mediums (cents)`)}),mediums:Ga$1(qa$1({id:na$1().describe(`Medium identifier (e.g., 'social', 'email')`),name:na$1().describe(`Medium name`),views:Ta$1().describe(`Views from this medium`),visitors:Ta$1().describe(`Unique visitors from this medium`),clicks:Ta$1().optional().describe(`Ticket link clicks`),orders:Ta$1().describe(`Orders from this medium`),tickets:Ta$1().describe(`Tickets from this medium`),revenue:Ta$1().describe(`Revenue from this medium (cents)`),conversionRate:Ta$1().describe(`Conversion rate (%)`),share:Ta$1().describe(`Share of total orders (%)`)})).describe(`Mediums sorted by orders descending`)}),Bi=H$1({eventId:na$1(),limit:Ta$1().min(1).max(100).optional().default(10),sortBy:ji.optional().default(`orders`)}),Vi=qa$1({meta:Oi,totals:qa$1({views:Ta$1().describe(`Total views across all devices`),visitors:Ta$1().describe(`Total unique visitors across all devices`),revenue:Ta$1().describe(`Total revenue across all devices (cents)`),orders:Ta$1().describe(`Total orders across all devices`),tickets:Ta$1().describe(`Total tickets across all devices`)}),devices:Ga$1(qa$1({id:Ai.describe(`Device type`),name:na$1().describe(`Human-readable device name`),views:Ta$1().optional().describe(`Page views from this device`),visitors:Ta$1().describe(`Unique visitors from this device`),revenue:Ta$1().describe(`Revenue from this device (cents)`),clicks:Ta$1().optional().describe(`Ticket link clicks`),orders:Ta$1().describe(`Orders from this device`),tickets:Ta$1().describe(`Tickets from this device`),conversionRate:Ta$1().describe(`Conversion rate (%)`),share:Ta$1().describe(`Share of total orders (%)`)})).describe(`Devices sorted by orders descending`)}),Hi=H$1({eventId:na$1(),limit:Ta$1().min(1).max(100).optional().default(10),sortBy:ji.optional().default(`visitors`)}),Ui=qa$1({meta:ki,totals:qa$1({views:Ta$1().describe(`Total views across all browsers`),visitors:Ta$1().describe(`Total unique visitors across all browsers`),orders:Ta$1().describe(`Total orders across all browsers`),tickets:Ta$1().describe(`Total tickets across all browsers`),revenue:Ta$1().describe(`Total revenue across all browsers (cents)`)}),browsers:Ga$1(qa$1({id:na$1().describe(`Browser identifier`),name:na$1().describe(`Human-readable browser name`),views:Ta$1().describe(`Page views from this browser`),clicks:Ta$1().optional().describe(`Ticket link clicks`),visitors:Ta$1().describe(`Unique visitors from this browser`),orders:Ta$1().describe(`Orders from this browser`),tickets:Ta$1().describe(`Tickets from this browser`),revenue:Ta$1().describe(`Revenue from this browser (cents)`),conversionRate:Ta$1().describe(`Conversion rate (%)`),share:Ta$1().describe(`Share of total visitors (%)`)})).describe(`Browsers sorted by visitors descending`)}),Wi=H$1({eventId:na$1(),limit:Ta$1().min(1).max(100).optional().default(10),sortBy:ji.optional().default(`pageViews`)}),Gi=qa$1({meta:ki,totals:qa$1({views:Ta$1().describe(`Total views across all locations`),visitors:Ta$1().describe(`Total unique visitors across all locations`),orders:Ta$1().describe(`Total orders across all locations`),tickets:Ta$1().describe(`Total tickets across all locations`),revenue:Ta$1().describe(`Total revenue across all locations (cents)`)}),locations:Ga$1(qa$1({id:na$1().describe(`Location/region code (e.g., 'US-CA', 'GB')`),name:na$1().describe(`Human-readable location name`),views:Ta$1().describe(`Page views from this location`),visitors:Ta$1().describe(`Unique visitors from this location`),clicks:Ta$1().optional().describe(`Ticket link clicks`),orders:Ta$1().describe(`Orders from this location`),tickets:Ta$1().describe(`Tickets from this location`),revenue:Ta$1().describe(`Revenue from this location (cents)`),conversionRate:Ta$1().describe(`Conversion rate (%)`),share:Ta$1().describe(`Share of total views (%)`)})).describe(`Locations sorted by views descending`)}),Ki=H$1({eventId:na$1(),limit:Ta$1().min(1).max(100).optional().default(10),sortBy:ji.optional().default(`pageViews`)}),qi=qa$1({meta:ki,totals:qa$1({sessions:Ta$1().describe(`Total sessions across all sources`),visitors:Ta$1().describe(`Total unique visitors across all sources`),orders:Ta$1().describe(`Total orders across all sources`),tickets:Ta$1().describe(`Total tickets across all sources`),revenue:Ta$1().describe(`Total revenue across all sources (cents)`)}),sources:Ga$1(qa$1({id:na$1().describe(`Traffic source identifier`),name:na$1().describe(`Traffic source name`),referrer:na$1().describe(`Referrer URL or domain`),sessions:Ta$1().describe(`Sessions from this source`),visitors:Ta$1().describe(`Unique visitors from this source`),clicks:Ta$1().optional().describe(`Ticket link clicks`),orders:Ta$1().describe(`Orders from this source`),tickets:Ta$1().describe(`Tickets from this source`),conversionRate:Ta$1().describe(`Conversion rate (%)`),revenue:Ta$1().describe(`Revenue from this source (cents)`),share:Ta$1().describe(`Share of total sessions (%)`)})).describe(`Traffic sources sorted by sessions descending`)}),Ji=qa$1({eventId:na$1(),includeAdmission:ka$1().optional().default(true),includeSection:ka$1().optional().default(true),granularity:io$1([`HOUR`,`MINUTE`]).optional()}),Yi=qa$1({totalTickets:Ta$1(),checkedIn:Ta$1(),notCheckedIn:Ta$1(),checkinRate:Ta$1()}),Xi=Yi.extend({admissionId:na$1(),admissionName:na$1()}),Zi=Yi.extend({sectionId:na$1(),sectionName:na$1()}),Qi=Xa$1([Yi.extend({byAdmission:Ga$1(Xi),bySection:Ga$1(Zi)}),qa$1({granularity:io$1([`HOUR`,`MINUTE`]),totalTickets:Ta$1(),data:Ga$1(qa$1({timestamp:na$1(),checkedIn:Ta$1(),rate:Ta$1(),checkinsThisPeriod:Ta$1()})),byAdmission:Ga$1(qa$1({admissionId:na$1(),admissionName:na$1(),data:Ga$1(qa$1({timestamp:na$1(),checkedIn:Ta$1(),rate:Ta$1()}))})).optional(),bySection:Ga$1(qa$1({sectionId:na$1(),sectionName:na$1(),data:Ga$1(qa$1({timestamp:na$1(),checkedIn:Ta$1(),rate:Ta$1()}))})).optional()})]),$i=qa$1({eventId:na$1(),limit:Ta$1().min(1).max(50).optional().default(10)}),ea=qa$1({totalCheckIns:Ta$1(),scanners:Ga$1(qa$1({userId:na$1(),name:na$1(),email:na$1(),checkIns:Ta$1(),sharePercent:Ta$1(),firstScanAt:na$1().nullable(),lastScanAt:na$1().nullable(),activeMinutes:Ta$1(),scansPerHour:Ta$1(),devices:Ga$1(qa$1({deviceId:na$1(),checkIns:Ta$1()}))})).describe(`Door staff sorted by check-ins descending`)}),ta=qa$1({eventId:na$1(),includeAdmission:ka$1().optional().default(true),includeSection:ka$1().optional().default(true)}),na=qa$1({totalTickets:Ta$1(),checkedIn:Ta$1(),noShows:Ta$1(),checkInRate:Ta$1(),noShowRate:Ta$1()}),ra=na.extend({admissionId:na$1(),admissionName:na$1()}),ia=na.extend({sectionId:na$1(),sectionName:na$1()}),aa=na.extend({byAdmission:Ga$1(ra),bySection:Ga$1(ia)}),oa=qa$1({eventId:na$1(),granularity:io$1([`MINUTE`,`FIFTEEN_MINUTE`,`HOUR`]).optional().default(`FIFTEEN_MINUTE`)}),sa=qa$1({granularity:io$1([`MINUTE`,`FIFTEEN_MINUTE`,`HOUR`]),totalCheckIns:Ta$1(),peakWindow:qa$1({start:na$1().nullable(),end:na$1().nullable(),checkIns:Ta$1()}),data:Ga$1(qa$1({timestamp:na$1(),checkIns:Ta$1(),cumulativeCheckIns:Ta$1(),cumulativeRate:Ta$1()}))}),ca=fi(`promoterId`,`Promoter identifier`),la=pi({promoterId:na$1().describe(`Promoter identifier`),promoterName:na$1().describe(`Promoter name`),teamId:na$1().describe(`Team identifier`),teamName:na$1().describe(`Team name`)}),ua=mi(`promoterId`,`Promoter identifier`),da=qa$1({meta:qa$1({promoterId:na$1(),dateRange:W$1,granularity:ai}),currencies:Ga$1(qa$1({currency:na$1().describe(`Currency code (e.g., USD, EUR)`),series:Ga$1(oi),totals:ci})).describe(`Time-series data grouped by currency`)}),fa=hi(`promoterId`,`Promoter identifier`),pa=di,ma=fi(`teamId`,`Team identifier`),ha=pi({teamId:na$1().describe(`Team identifier`),teamName:na$1().describe(`Team name`)}),ga=mi(`teamId`,`Team identifier`),_a=qa$1({meta:qa$1({teamId:na$1(),dateRange:W$1,granularity:ai}),currencies:Ga$1(qa$1({currency:na$1().describe(`Currency code (e.g., USD, EUR)`),series:Ga$1(si),totals:li})).describe(`Time-series data grouped by currency`)});H$1({teamId:na$1().describe(`Team identifier`),limit:Ta$1().optional().default(10).describe(`Number of events to return`),sortBy:io$1([`revenue`,`tickets`,`conversion`]).optional().default(`revenue`).describe(`Sort metric`)});qa$1({meta:qa$1({teamId:na$1(),dateRange:qa$1({start:na$1(),end:na$1()}),limit:Ta$1(),sortBy:na$1()}),data:Ga$1(qa$1({eventId:na$1().describe(`Event identifier`),eventName:na$1().describe(`Event name`),eventDate:na$1().describe(`Event date`).optional(),status:na$1().describe(`Event status`),revenue:Ta$1().describe(`Total revenue in cents`),tickets:Ta$1().describe(`Tickets sold`),views:Ta$1().describe(`Page views`),conversionRate:Ta$1().describe(`Conversion rate (%)`),contribution:Ta$1().describe(`% of promoter's total revenue`)})),totals:qa$1({events:Ta$1().describe(`Total events in period`),revenue:Ta$1().describe(`Combined revenue`),tickets:Ta$1().describe(`Combined tickets`)})});const ba=hi(`teamId`,`Team identifier`),xa=di,Sa=H$1({teamId:na$1().describe(`Team identifier`)}),Ca=qa$1({stages:Ga$1(qa$1({stageId:na$1().describe(`Funnel stage identifier`),stageLabel:na$1().describe(`Human-readable stage name`),count:Ta$1().describe(`Number of events at this stage`),conversionRate:Ta$1().describe(`Conversion rate from first stage (%)`),dropoffPercent:Ta$1().describe(`Dropoff rate from previous stage (%)`)}))}),wa=H$1({teamId:na$1().describe(`Team identifier`),groupBy:io$1([`HOUR`,`DAY_OF_WEEK`,`DAY`,`WEEK`,`MONTH`]).optional().default(`HOUR`).describe(`Time breakdown for aggregation`),timeZone:na$1().optional().default(`UTC`).describe(`IANA timezone for hour/day aggregation (e.g., 'America/New_York')`)}),Ta=qa$1({groupBy:io$1([`HOUR`,`DAY_OF_WEEK`,`DAY`,`WEEK`,`MONTH`]).describe(`The grouping used for aggregation`),buckets:Ga$1(qa$1({key:Xa$1([Ta$1(),na$1()]).describe(`Bucket key (hour 0-23, day 0-6, or date string)`),label:na$1().describe(`Human-readable label`),orderCount:Ta$1().describe(`Number of orders`),sharePercent:Ta$1().describe(`Percentage of total orders`)})),totalOrders:Ta$1().describe(`Total orders across all buckets`)}),Ea=H$1({teamId:na$1().describe(`Team identifier`),limit:Ta$1().optional().default(10).describe(`Maximum number of admissions to return`)}),Da=qa$1({admissions:Ga$1(qa$1({admissionId:na$1().describe(`Admission identifier`),admissionName:na$1().describe(`Admission name`),ticketCount:Ta$1().describe(`Number of tickets sold`),sharePercent:Ta$1().describe(`Percentage of total tickets`)})),totalTickets:Ta$1().describe(`Total tickets across all admissions`)}),Oa=H$1({teamId:na$1().describe(`Team identifier`),type:io$1([`campaign`,`medium`,`source`]).describe(`Dimension type to analyze`),limit:Ta$1().optional().default(20).describe(`Maximum number of results to return`)}),ka=qa$1({dimensionType:io$1([`campaign`,`medium`,`source`]).describe(`The dimension type analyzed`),data:Ga$1(qa$1({dimensionValue:na$1().describe(`The dimension value (e.g., campaign name)`),dimensionLabel:na$1().describe(`Human-readable label`),views:Ta$1().describe(`Total page views`),conversions:Ta$1().describe(`Total conversions (orders)`),conversionRate:Ta$1().describe(`Conversion rate (%)`),sharePercent:Ta$1().describe(`Share of total conversions (%)`)})),totalConversions:Ta$1().describe(`Total conversions across all dimensions`)}),Aa=qa$1({teamId:na$1().describe(`Team identifier`),startAt:Pi$1().describe(`Inclusive period start timestamp`),endAt:Pi$1().describe(`Exclusive period end timestamp`)}),ja=qa$1({currency:na$1().describe(`Currency code`),disputedOrders:Ta$1().describe(`Orders currently marked as disputed`),orderCount:Ta$1().describe(`Successful orders`),refunded:Ta$1().describe(`Refunded amount in cents`),refundCount:Ta$1().describe(`Orders with refunded value`),refundRate:Ta$1().describe(`Refunded order rate as a percentage`),revenue:Ta$1().describe(`Total order value in cents`),ticketsSold:Ta$1().describe(`Tickets sold`)}),Ma=ja.omit({currency:true}),Na=qa$1({currencies:Ga$1(ja),comparison:qa$1({totals:Ma}),meta:qa$1({endAt:na$1().describe(`Exclusive period end timestamp`),startAt:na$1().describe(`Inclusive period start timestamp`),teamId:na$1().describe(`Team identifier`)}),totals:Ma}),Pa=qa$1({teamId:na$1().describe(`Team identifier`)}),Fa=Xa$1([Pa.extend({startDate:V$1.describe(`Start date (YYYY-MM-DD)`),endDate:V$1.describe(`End date (YYYY-MM-DD)`)}),Pa.extend({startDate:ja$1().optional(),endDate:ja$1().optional()})]),Ia=qa$1({amount:Ta$1().describe(`Payout net amount in cents`),count:Ta$1().describe(`Number of payouts in this currency`),currency:na$1().describe(`Currency code`)}),La=qa$1({amount:Ta$1().describe(`Payout net amount in cents`),currency:na$1().nullable().describe(`Currency code`),dueAt:na$1().nullable().describe(`Payout due timestamp`),payoutId:na$1().nullable().describe(`Payout identifier`)}),Ra=qa$1({amount:Ta$1().describe(`Payout net amount in cents`),currency:na$1().nullable().describe(`Currency code`),paidAt:na$1().nullable().describe(`Payout paid timestamp`),payoutId:na$1().nullable().describe(`Payout identifier`)}),za=qa$1({upcoming:qa$1({count:Ta$1().describe(`Upcoming payouts matching the request`),pendingApproval:Ta$1().describe(`Upcoming payouts still awaiting approval`),totals:Ga$1(Ia).describe(`Upcoming payout totals by currency`),next:La}),lastPaid:Ra}),Ba=qa$1({teamId:na$1().describe(`Team identifier`),startDate:V$1.describe(`Start date (YYYY-MM-DD)`),endDate:V$1.describe(`End date (YYYY-MM-DD)`),granularity:ai.optional().default(`DAY`).describe(`Time granularity`),currency:na$1().optional().describe(`Currency filter`)}),Va=io$1([`revenue`,`credits`,`refunds`,`disputes`,`payouts`]),Ha=qa$1({id:na$1().optional().describe(`Source identifier`),label:na$1().describe(`Human-readable source label`),kind:Va,amount:Ta$1().describe(`Signed movement amount in cents`),eventId:na$1().optional().describe(`Related event identifier`),eventName:na$1().optional().describe(`Related event name`)}),Ua=qa$1({date:na$1().describe(`Bucket date`),label:na$1().describe(`Human-readable bucket label`),revenue:Ta$1().describe(`Successful order total after discounts in cents`),credits:Ta$1().describe(`Positive credit amount in cents`),refunds:Ta$1().describe(`Signed refund adjustment amount in cents`),disputes:Ta$1().describe(`Signed dispute principal and fee adjustment amount in cents`),payouts:Ta$1().describe(`Signed paid payout amount in cents`),movements:Ga$1(Ha)}),Wa=qa$1({revenue:Ta$1().describe(`Successful order total after discounts in cents`),credits:Ta$1().describe(`Positive credit amount in cents`),refunds:Ta$1().describe(`Signed refund adjustment amount in cents`),disputes:Ta$1().describe(`Signed dispute principal and fee adjustment amount in cents`),payouts:Ta$1().describe(`Signed paid payout amount in cents`),net:Ta$1().describe(`Net signed money movement in cents`)}),Ga=qa$1({amount:Ta$1().describe(`Outstanding adjustment amount in cents`),count:Ta$1().describe(`Outstanding adjustment count`),currency:na$1().describe(`Currency code`)}),Ka=qa$1({meta:qa$1({teamId:na$1(),dateRange:W$1,granularity:ai}),cards:qa$1({upcomingPayouts:qa$1({count:Ta$1(),pendingApproval:Ta$1(),totals:Ga$1(Ia)}),adjustments:qa$1({count:Ta$1(),totals:Ga$1(Ga)}),nextPayout:La,lastPaid:Ra}),currencies:Ga$1(qa$1({currency:na$1().describe(`Currency code`),series:Ga$1(Ua),totals:Wa}))}),qa=H$1({teamId:na$1().describe(`Team identifier`),granularity:io$1([`DAY`,`WEEK`,`MONTH`]).optional().default(`DAY`).describe(`Time granularity for aggregation`)}),Ja=qa$1({granularity:io$1([`DAY`,`WEEK`,`MONTH`]).describe(`The granularity used`),series:Ga$1(qa$1({date:na$1().describe(`Date key (YYYY-MM-DD, YYYY-Www, or YYYY-MM)`),label:na$1().describe(`Human-readable label`),productViewed:Ta$1().describe(`Page views`),productAdded:Ta$1().describe(`Add to cart events`),checkoutStarted:Ta$1().describe(`Checkout started events`),orderCompleted:Ta$1().describe(`Completed orders`)})),totals:qa$1({productViewed:Ta$1().describe(`Total page views`),productAdded:Ta$1().describe(`Total add to cart`),checkoutStarted:Ta$1().describe(`Total checkouts started`),orderCompleted:Ta$1().describe(`Total orders completed`),uniqueVisitors:Ta$1().describe(`Unique visitors (estimated via HyperLogLog, ~0.8% error)`)})}),Ya=qa$1({product_id:na$1().optional().describe(`admission_id in ticketing context`),sku:na$1().optional().describe(`admission_id or admission_name`),category:na$1().optional().describe(`event_name or "Admission"`),name:na$1().optional().describe(`admission_name`),brand:na$1().optional().describe(`promoter_name`),variant:na$1().optional().describe(`section_name`),price:Ta$1().optional().describe(`admission price (base + booking fee) in major currency units`),quantity:Ta$1().optional().describe(`number of tickets`),coupon:na$1().optional().describe(`coupon code applied`),position:Ta$1().optional().describe(`position in list`),url:na$1().optional().describe(`URL to event/admission page`),image_url:na$1().optional().describe(`event image`),admission_id:na$1().optional().describe(`Explicit admission ID`),section_id:na$1().optional().describe(`Section ID if applicable`),event_id:na$1().optional().describe(`Event ID for this admission`),promoter_id:na$1().optional().describe(`Promoter ID`),price_base:Ta$1().nullish().describe(`Base price before fees in minor currency units`),price_booking_fee:Ta$1().nullish().describe(`Booking fee in minor currency units`),capacity:Ta$1().optional().describe(`Total capacity for this admission`),available:Ta$1().optional().describe(`Remaining tickets available`),sold:Ta$1().optional().describe(`Tickets already sold`)}),Xa=qa$1({type:na$1(),value:na$1()}),Za=qa$1({type:na$1(),value:na$1()}),Qa=qa$1({query:Xa$1([na$1(),no$1(na$1(),La$1())]).optional(),list_id:na$1().optional(),category:na$1().optional(),filters:Ga$1(Xa).optional(),sorts:Ga$1(Za).optional(),promotion_id:na$1().optional(),creative:na$1().optional(),name:na$1().optional(),position:Xa$1([na$1(),Ta$1()]).optional(),product_id:na$1().optional(),sku:na$1().optional(),brand:na$1().optional(),variant:na$1().optional(),price:Ta$1().optional().describe(`Product price in major currency units`),quantity:Ta$1().optional(),coupon:na$1().optional(),currency:na$1().optional().describe(`ISO 4217 currency code`),value:Ta$1().optional().describe(`Event value in major currency units`),url:na$1().optional(),image_url:na$1().optional(),cart_id:na$1().optional(),step:Ta$1().optional(),shipping_method:na$1().optional(),payment_method:na$1().optional(),ticketing_mode:io$1([`internal`,`external`]).optional(),external_ticket_url:na$1().optional(),external_ticket_domain:na$1().optional(),cta_surface:na$1().optional(),order_id:na$1().optional(),affiliation:na$1().optional(),subtotal:Ta$1().optional().describe(`Order subtotal in major currency units`),total:Ta$1().optional().describe(`Order total in major currency units`),revenue:Ta$1().optional().describe(`Order revenue in major currency units`),shipping:Ta$1().optional().describe(`Shipping amount in major currency units`),tax:Ta$1().optional().describe(`Tax amount in major currency units`),discount:Ta$1().optional().describe(`Discount amount in major currency units`),coupon_id:na$1().optional(),coupon_name:na$1().optional(),reason:na$1().optional(),wishlist_id:na$1().optional(),wishlist_name:na$1().optional(),share_via:na$1().optional(),share_message:na$1().optional(),recipient:na$1().optional(),review_id:na$1().optional(),review_body:na$1().optional(),rating:na$1().optional(),products:Ga$1(Ya).optional(),event_id:na$1().optional().describe(`ID of the ticketed event (evt_xxx)`),event_name:na$1().optional().describe(`Name of the ticketed event`),event_slug:na$1().optional().describe(`URL slug of event`),event_starts_at:I$1.optional().describe(`When the event starts (naive datetime, no timezone)`),event_ends_at:I$1.optional().describe(`When the event ends (naive datetime, no timezone)`),event_status:io$1([`UPCOMING`,`LIVE`,`ENDED`,`CANCELLED`]).optional(),event_visibility:io$1([`PUBLIC`,`PRIVATE`]).optional(),event_location:na$1().optional().describe(`Venue name`),event_city:na$1().optional().describe(`Venue city`),event_country:na$1().optional().describe(`Venue country`),promoter_id:na$1().optional().describe(`ID of the promoter (pmt_xxx)`),promoter_name:na$1().optional().describe(`Name of the promoter`),promoter_slug:na$1().optional().describe(`URL slug of promoter`),admission_id:na$1().optional().describe(`ID of admission type (adm_xxx)`),admission_name:na$1().optional().describe(`Name of admission (e.g., "General Admission")`),admission_capacity:Ta$1().optional().describe(`Total capacity for this admission`),admission_available:Ta$1().optional().describe(`Tickets still available`),admission_sold:Ta$1().optional().describe(`Tickets already sold`),section_id:na$1().optional().describe(`ID of section (sct_xxx)`),section_name:na$1().optional().describe(`Name of section (e.g., "VIP", "General")`),section_capacity:Ta$1().optional().describe(`Total capacity for this section`),section_available:Ta$1().optional().describe(`Spots still available in section`),ticket_id:na$1().optional().describe(`Individual ticket ID (tkt_xxx)`),ticket_status:io$1([`VALID`,`REDEEMED`,`CANCELLED`]).optional(),tickets_quantity:Ta$1().optional().describe(`Number of tickets in transaction`),customer_id:na$1().optional().describe(`Customer ID (cus_xxx)`),customer_email:na$1().optional().describe(`Customer email`),customer_first_name:na$1().optional(),customer_last_name:na$1().optional(),price_base:Ta$1().nullish().describe(`Base price before fees in minor currency units`),price_booking_fee:Ta$1().nullish().describe(`Booking fee amount in minor currency units`),price_discount_amount:Ta$1().nullish().describe(`Discount amount applied in minor currency units`),sale_starts_at:I$1.optional().describe(`When tickets go on sale (naive datetime, no timezone)`),sale_ends_at:I$1.optional().describe(`When ticket sales end (naive datetime, no timezone)`),entry_starts_at:I$1.optional().describe(`When entry to event begins (naive datetime, no timezone)`),entry_ends_at:I$1.optional().describe(`When entry to event ends (naive datetime, no timezone)`),funnel_step:na$1().optional().describe(`Current funnel step (e.g., "browse", "cart", "checkout")`),time_to_purchase:Ta$1().optional().describe(`Seconds from first view to purchase`),session_duration:Ta$1().optional().describe(`Total session duration in seconds`),referrer_type:io$1([`DIRECT`,`SOCIAL`,`EMAIL`,`SEARCH`,`REFERRAL`,`AD`]).optional(),campaign_id:na$1().optional().describe(`Marketing campaign ID`),affiliate_id:na$1().optional().describe(`Affiliate partner ID`),promo_code_used:na$1().optional().describe(`Promotional code applied`),platform:io$1([`WEB`,`MOBILE_WEB`,`IOS`,`ANDROID`]).optional(),app_version:na$1().optional(),device_type:io$1([`MOBILE`,`TABLET`,`DESKTOP`]).optional(),anonymous_id:na$1().optional(),browser:na$1().optional(),browser_session_id:na$1().optional(),country:na$1().optional(),page_path:na$1().optional(),page_title:na$1().optional(),page_url:na$1().optional(),referrer:na$1().optional(),region:na$1().optional(),user_agent:na$1().optional(),utm_source:na$1().optional(),utm_medium:na$1().optional(),utm_campaign:na$1().optional(),utm_term:na$1().optional(),utm_content:na$1().optional()}),$a=qa$1({session_id:na$1(),user_id:na$1().optional(),anonymous_id:na$1().optional(),utm_source:na$1().optional(),utm_medium:na$1().optional(),utm_campaign:na$1().optional(),utm_term:na$1().optional(),utm_content:na$1().optional(),page:qa$1({url:na$1(),path:na$1(),title:na$1()}),referrer:na$1().optional(),user_agent:na$1().optional(),ip:na$1().optional(),geo:qa$1({country:na$1().optional().describe(`Country code (e.g., "AU")`),countryName:na$1().optional().describe(`Country name (e.g., "Australia")`),region:na$1().optional().describe(`State/province code`),regionName:na$1().optional().describe(`State/province name (e.g., "New South Wales")`),city:na$1().optional().describe(`City name`),latitude:na$1().optional().describe(`Latitude`),longitude:na$1().optional().describe(`Longitude`)}).optional(),fbc:na$1().optional().describe(`Facebook click ID`),fbp:na$1().optional().describe(`Facebook browser ID`),ttclid:na$1().optional().describe(`TikTok click ID`)}),eo=qa$1({id:na$1(),eventId:na$1().min(1).describe(`Event being tracked (evt_123)`),teamId:na$1().min(1).describe(`Team ID (team_123)`),promoterId:na$1().min(1).describe(`Promoter ID (pmt_123)`),eventType:ms$1,timestamp:na$1(),date:na$1().describe(`YYYY-MM-DD`),hour:Ta$1().int().min(0).max(23),properties:Qa,context:$a,productId:na$1().optional(),createdAt:na$1(),updatedAt:na$1()}),to=eo.omit({id:true,timestamp:true,date:true,hour:true,createdAt:true,updatedAt:true}).extend({messageId:na$1().min(1).optional().meta({description:`Analytics message id for retry-safe event delivery and linking.`}),occurredAt:Pi$1().optional().meta({description:`Client-observed event time. Server ingest time remains authoritative for writes.`})}).meta({description:`Schema for tracking an analytics event. Excludes system-generated fields`}),no=qa$1({legacyOrgId:na$1().min(1),legacyEventId:na$1().min(1),legacyTeamId:na$1().min(1),legacyEventName:na$1().optional(),legacyEventSlug:na$1().optional(),legacyEventCreatedAt:Xa$1([na$1(),Ua$1(),Na$1()]).optional(),legacyTeamCreatedAt:Xa$1([na$1(),Ua$1(),Na$1()]).optional()}),ro=qa$1({eventName:na$1().min(1).optional(),eventType:ms$1.optional(),eventId:na$1().min(1).optional(),teamId:na$1().min(1).optional(),promoterId:na$1().min(1).optional(),properties:no$1(na$1(),La$1()).optional(),context:$a.partial().optional(),legacyContext:no.optional()}).passthrough().meta({description:`Compatibility schema for legacy Sash analytics payloads that require server-side ID normalization`}),io=Xa$1([to,ro]).meta({description:`Analytics ingress schema accepting both canonical payloads and legacy Sash-compatible payloads`});ni({eventId:na$1().meta({description:`Event ID to get tracking events for`}),limit:T$1().int().positive().optional().meta({description:`Maximum number of events to return`})}).meta({description:`Schema for retrieving tracking events for an event`});const oo=io$1([`AIRWALLEX`,`STRIPE`]),co=qa$1({id:na$1().readonly().meta({examples:[w$1.Beneficiary.id],description:`A unique identifier for this beneficiary.`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Beneficiary.createdAt],description:`Timestamp in ISO 8601 format when this beneficiary was created.`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Beneficiary.updatedAt],description:`Timestamp in ISO 8601 format when this beneficiary was last updated.`}),name:na$1().meta({examples:[w$1.Beneficiary.name],description:`The account name for this beneficiary.`}),currency:D$1.meta({examples:[w$1.Beneficiary.currency],description:`Three-letter ISO 4217 currency code for payouts.`}),gateway:oo.meta({examples:[`STRIPE`],description:`The payment gateway used for processing payouts.`}),gatewayId:na$1().meta({examples:[w$1.Beneficiary.gatewayId],description:`The identifier assigned by the payment gateway to this account.`}),teamId:na$1().meta({description:`Team that owns this beneficiary account.`}),teamIds:Ga$1(na$1()).meta({examples:[[]],description:`List of team IDs this beneficiary is assigned to. Empty array means available to all teams.`}),venueIds:Ga$1(na$1()).meta({examples:[[]],description:`List of venue IDs this beneficiary is assigned to. Empty array means team-level only (available to all venues).`})}).meta({description:`beneficiary`}),lo=qa$1({city:na$1().optional(),country_code:na$1(),postcode:na$1().optional(),state:na$1().optional(),street_address:na$1().optional()}),uo=qa$1({account_currency:na$1(),account_name:na$1(),account_number:na$1().optional(),account_routing_type1:na$1().optional(),account_routing_value1:na$1().optional(),account_routing_type2:na$1().optional(),account_routing_value2:na$1().optional(),bank_account_category:na$1().optional(),bank_branch:na$1().optional(),bank_country_code:na$1(),bank_name:na$1().optional(),bank_street_address:na$1().optional(),binding_mobile_number:na$1().optional(),fingerprint:na$1().optional(),iban:na$1().optional(),local_clearing_system:na$1().optional(),swift_code:na$1().optional(),transaction_reference:na$1().optional(),account_identifier_type:na$1().optional(),account_identifier_value:na$1().optional()}),fo=qa$1({transfer_methods:Ga$1(io$1([`SWIFT`,`LOCAL`])).meta({examples:[[`LOCAL`]],description:`Transfer methods supported for this beneficiary`}),beneficiary:qa$1({company_name:na$1().optional(),date_of_birth:na$1().optional(),entity_type:na$1().meta({examples:[`COMPANY`],description:`Whether the beneficiary is PERSONAL or COMPANY`}),first_name:na$1().optional(),last_name:na$1().optional(),address:lo,bank_details:uo,additional_info:qa$1({personal_email:ia$1().optional()}).optional()}).meta({description:`Beneficiary details including personal/company info, address, and bank details`})}).meta({description:`Complete beneficiary request structure for Airwallex validation`}),po=fo.extend({id:na$1().optional()}),mo=co.omit({id:true,createdAt:true,updatedAt:true,currency:true}).extend({currency:D$1.meta({examples:[w$1.Beneficiary.currency],description:`Three-letter ISO 4217 currency code for payouts to this beneficiary account`}),airwallex:po.optional().meta({examples:[w$1.AirwallexBeneficiary],description:`Airwallex-specific beneficiary details including bank account information and address (required when gateway is AIRWALLEX)`}),teamIds:Ga$1(na$1()).optional().default([]).meta({examples:[[]],description:`List of team IDs to assign this beneficiary to. Empty array or omitted means available to all teams.`}),venueIds:Ga$1(na$1()).optional().default([]).meta({examples:[[]],description:`List of venue IDs to assign this beneficiary to. Empty array or omitted means team-level only.`})}).meta({description:`Schema for creating a new beneficiary account for receiving payouts`}),ho=co.pick({id:true}).meta({description:`Schema for retrieving a single beneficiary by its unique identifier`}),go=ho.meta({description:`Schema for deleting a beneficiary account - requires the beneficiary ID`}),_o=qa$1({teamId:na$1().optional().meta({examples:[w$1.Team.id],description:`Optional identifier of the team whose beneficiaries to list. When provided, only beneficiaries for that team are returned.`}),gateway:io$1([`AIRWALLEX`,`STRIPE`]).optional().meta({examples:[w$1.Beneficiary.gateway],description:`Filter beneficiaries by payment gateway provider (optional)`}),currency:D$1.optional().meta({examples:[w$1.Beneficiary.currency],description:`Filter beneficiaries by currency code (optional)`}),query:na$1().optional().meta({examples:[`beneficiary`],description:`Optional search query to filter beneficiaries by name or gateway identifier. When provided, search-backed pagination is used.`}),limit:L$1(`beneficiaries`).optional(),cursor:na$1().optional().meta({examples:[`eyJpZCI6ImJlbl8wMWpwczVjZ3NlNW42bWcxeW1rZXc5dHNmaCJ9`],description:`Pagination cursor returned by a previous request. Omit on the first request.`})}).meta({description:`Query parameters for listing beneficiaries with pagination and optional filters`}),vo=B$1(co,`beneficiaries`),yo=qa$1({beneficiary:co}),bo=qa$1({min:Ta$1().optional().meta({description:`Minimum number of time units for the transfer`}),max:Ta$1().optional().meta({description:`Maximum number of time units for the transfer`}),unit:na$1().optional().meta({examples:[`day`],description:`Time unit (e.g., 'day', 'hour')`})}).meta({description:`Expected transfer completion time range`}),xo=qa$1({min:Ta$1().optional().meta({description:`Minimum transfer amount`}),max:Ta$1().optional().meta({description:`Maximum transfer amount`})}).meta({description:`Transfer amount limits`}),So=qa$1({label:na$1().meta({description:`Display label for the option`}),value:na$1().meta({description:`Value to submit when selected`}),flightTime:bo.optional().meta({description:`Expected transfer time for TRANSFER_METHOD options`}),transferLimit:xo.optional().meta({description:`Transfer amount limits for TRANSFER_METHOD options`}),processingTime:na$1().optional().meta({description:`Human-readable processing time description`})}).meta({description:`A selectable option in a form field`}),Co=qa$1({type:io$1([`INPUT`,`SELECT`,`RADIO`,`TRANSFER_METHOD`,`DYNAMIC_SELECT`]).meta({examples:[`INPUT`],description:`The type of form input to render`}),label:na$1().optional().meta({description:`Display label for the field`}),placeholder:na$1().optional().meta({description:`Placeholder text for input fields`}),description:na$1().optional().meta({description:`Detailed description of the field`}),tip:na$1().optional().meta({description:`Tooltip information shown on hover`}),example:na$1().optional().meta({description:`Example value for the field`}),default:na$1().optional().meta({description:`Default value to pre-populate the field`}),key:na$1().optional().meta({description:`Unique key identifier for the field`}),options:Ga$1(So).optional().meta({description:`Available options for SELECT and RADIO field types`}),refresh:ka$1().optional().meta({description:`When true, changing this field's value should trigger a schema refresh. Note: only documented API parameters (transfer_method, local_clearing_system) actually update the schema.`})}).meta({description:`Field definition containing type, label, options, and metadata from Airwallex`}),wo=qa$1({pattern:na$1().optional().meta({description:`Regex pattern for field validation`}),type:na$1().optional().meta({description:`Validation type identifier`})}).meta({description:`Validation rules for a form field`}),To=qa$1({path:na$1().meta({examples:[`beneficiary.bank_details.account_number`],description:`Dot-notation path to the field in the beneficiary request object`}),enabled:ka$1().meta({examples:[true],description:`Whether this field should be displayed`}),required:ka$1().meta({examples:[true],description:`Whether this field is required for submission`}),field:Co.optional().meta({description:`Field definition with type, label, and options`}),rule:wo.optional().meta({description:`Validation rules for the field`})}).meta({description:`A single field in the beneficiary form schema with display and validation rules`}),Eo=qa$1({bankCountryCode:na$1().regex(/^[A-Z]{2}$/).meta({examples:[`AU`],description:`Two-letter ISO 3166-1 alpha-2 country code for the bank location`}),accountCurrency:D$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code for the beneficiary account`}),entityType:io$1([`PERSONAL`,`COMPANY`]).meta({examples:[`COMPANY`],description:`Whether the beneficiary is an individual or a company`}),transferMethod:io$1([`LOCAL`,`SWIFT`]).optional().meta({examples:[`LOCAL`],description:`Transfer method: SWIFT for international wire transfers, LOCAL for domestic transfers`}),localClearingSystem:na$1().optional().meta({examples:[`NPP`],description:`Local clearing system for domestic transfers (e.g., NPP, BANK_TRANSFER, BPAY for Australia). Only applicable when transferMethod is LOCAL.`}),fieldValues:no$1(na$1(),na$1()).optional().meta({examples:[{"beneficiary.bank_details.account_routing_type1":`phone_number`}],description:`Current values of fields with refresh=true. Used to get dynamic schema updates based on user selections.`})}).superRefine((e,t)=>{e.localClearingSystem&&e.transferMethod===`SWIFT`&&t.addIssue({code:`custom`,path:[`localClearingSystem`],message:`Local clearing system requires LOCAL transfer method`});}).meta({description:`Parameters to fetch the form schema for a beneficiary.`}),Do=qa$1({unavailableReason:oo$1(`UNSUPPORTED_COMBINATION`).optional().meta({description:`When present, the selected country, currency, recipient type or transfer options are unsupported and fields is empty.`}),fields:Ga$1(To).meta({description:`Array of form fields with their display and validation configuration`}),selectedTransferMethod:io$1([`LOCAL`,`SWIFT`]).optional().meta({examples:[`LOCAL`],description:`The transfer method used to generate this schema. When not provided in the request, LOCAL is auto-selected if available.`}),selectedLocalClearingSystem:na$1().optional().meta({examples:[`NPP`],description:`The local clearing system used to generate this schema, if applicable.`})}).meta({description:`Form schema response containing all fields needed to collect beneficiary details`}),Oo=S$1.route({method:`GET`,path:`/beneficiaries/schema`,summary:`Get beneficiary form schema`,description:`Returns the form schema containing all fields required to create a beneficiary for the given country, currency, entity type, and transfer method combination. Use this to dynamically render the beneficiary creation form.`,tags:[`Beneficiaries`]}).input(Eo.strict()).output(Do),ko=qa$1({source:na$1().meta({examples:[`beneficiary.bank_details.account_number`],description:`Dot-notation path to the field that failed validation`}),code:na$1().meta({examples:[`001`],description:`Airwallex validation error code`}),message:na$1().meta({examples:[`This field is required`],description:`Human-readable error message`})}).meta({description:`Details about a single validation error for a field`}),Ao=fo.meta({description:`Beneficiary request data to validate against Airwallex rules before creating`}),jo=qa$1({valid:ka$1().meta({examples:[true],description:`Whether the beneficiary request passed all validation rules`}),errors:Ga$1(ko).optional().meta({description:`Array of validation errors when valid is false. Each error contains the field path, error code, and message.`})}).meta({description:`Validation result indicating whether the beneficiary request is valid for creation`}),Mo=S$1.route({method:`POST`,path:`/beneficiaries/validate`,summary:`Validate beneficiary request`,description:`Validates a beneficiary request against Airwallex rules without creating the beneficiary. Use this to provide real-time validation feedback before submission.`,tags:[`Beneficiaries`]}).input(Ao.strict()).output(jo),No=io$1([`AMOUNT`,`PERCENT`]),Fo=io$1([`TEAM`,`PROMOTER`,`EVENTS`,`SECTIONS`,`ADMISSIONS`]),Lo=qa$1({id:na$1().readonly().meta({examples:[w$1.Coupon.id],description:`A unique identifier for this coupon.`}),couponId:na$1().optional().readonly().meta({examples:[w$1.Coupon.couponId],description:`Duplicate of id field for GSI queries.`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Coupon.createdAt],description:`Timestamp in ISO 8601 format when this coupon was created.`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Coupon.updatedAt],description:`Timestamp in ISO 8601 format when this coupon was last updated.`}),name:na$1().meta({examples:[w$1.Coupon.name],description:`Internal label for the coupon, visible to event organisers.`}),active:ka$1().optional().meta({examples:[w$1.Coupon.active],description:`Whether this coupon is currently active.`}),showHidden:ka$1().optional().meta({examples:[false],description:`Whether this coupon reveals hidden admissions and sections within its scope.`}),kind:No.meta({examples:[`PERCENT`],description:`Type of discount this coupon gives: a fixed amount or a percentage.`}),filter:Fo.meta({examples:[`EVENTS`],description:`Scope of the coupon. TEAM applies to all events in the team. PROMOTER applies to all events by specified promoters. EVENTS/SECTIONS/ADMISSIONS apply to specific items.`}),currency:D$1.optional().meta({examples:[w$1.Coupon.currency],description:`Three-letter ISO 4217 currency code. Required for AMOUNT coupons. Optional for PERCENT coupons - when omitted, applies to all currencies.`}),discount:Ta$1().min(0).meta({examples:[w$1.Coupon.discount],description:`The discount value. If kind is 'amount', this is a currency amount. If kind is 'percent', this is a percentage.`}),limit:Ta$1().meta({examples:[w$1.Coupon.limit],description:`Maximum number of times the coupon can be redeemed across all customers.`}),uses:Ta$1().optional().meta({examples:[w$1.Coupon.uses],description:`Number of times this coupon has been redeemed so far.`}),orderLimit:Ta$1().int().min(1).optional().meta({examples:[2],description:`Maximum number of admission units this coupon can discount within a single order. Omit to discount every eligible unit.`}),membersOnly:ka$1().optional().meta({examples:[false],description:`Whether this coupon can only be redeemed by a signed-in user holding an active membership pass for the coupon's team.`}),promoters:Ga$1(qa$1({id:na$1().meta({description:`Identifier of a promoter this coupon applies to.`}),name:na$1().meta({description:`Name of a promoter this coupon applies to.`}),slug:na$1().meta({description:`URL slug of a promoter this coupon applies to.`})})).optional().meta({description:`List of promoters this coupon applies to when filter is PROMOTER.`}),events:Ga$1(qa$1({id:na$1().meta({description:`Identifier of an event this coupon applies to.`}),name:na$1().meta({description:`Name of an event this coupon applies to.`}),slug:na$1().meta({description:`URL slug of an event this coupon applies to.`})})).optional().meta({description:`List of events this coupon applies to when filter is EVENTS.`}),sections:Ga$1(qa$1({id:na$1().meta({description:`Identifier of a section this coupon applies to.`}),name:na$1().meta({description:`Name of a section this coupon applies to.`}),eventId:na$1().meta({description:`Identifier of the event this section belongs to.`})})).optional().meta({description:`List of sections this coupon applies to when filter is 'sections'.`}),admissions:Ga$1(qa$1({id:na$1().meta({description:`Identifier of an admission this coupon applies to.`}),name:na$1().meta({description:`Name of an admission this coupon applies to.`}),eventId:na$1().meta({description:`Identifier of the event this admission belongs to.`})})).optional().meta({description:`List of admissions this coupon applies to when filter is 'admissions'.`}),saleStartsAt:I$1.meta({examples:[w$1.Coupon.saleStartsAt],description:`Wall clock time when this coupon becomes valid (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)`}),saleEndsAt:I$1.optional().meta({examples:[w$1.Coupon.saleEndsAt],description:`Wall clock time when this coupon expires (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)`}),teamId:na$1().meta({description:`Team that created this coupon.`})}).meta({description:`coupon`}),Ro=qa$1({id:na$1().readonly().meta({examples:[w$1.CouponCode.id],description:`A unique identifier for this coupon code.`}),createdAt:Pi$1().readonly().meta({examples:[w$1.CouponCode.createdAt],description:`Timestamp in ISO 8601 format when this coupon code was created.`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.CouponCode.updatedAt],description:`Timestamp in ISO 8601 format when this coupon code was last updated.`}),name:na$1().meta({examples:[w$1.CouponCode.name],description:`The code string that customers enter to redeem the coupon.`}),active:ka$1().meta({examples:[w$1.CouponCode.active],description:`Whether this coupon code is currently enabled for use.`}),couponId:na$1().meta({examples:[w$1.Coupon.id],description:`Identifier of the coupon to which this code belongs.`}),teamId:na$1().meta({description:`Team that created this coupon code.`}),uses:Ta$1().int().nonnegative().default(0).readonly().meta({examples:[0],description:`Number of times this specific coupon code has been used in successful orders.`})}).meta({description:`coupon-code`}),zo=Ro.pick({id:true});qa$1({couponId:na$1().meta({examples:[w$1.Coupon.id]})});qa$1({name:na$1(),couponId:na$1().optional().meta({examples:[w$1.Coupon.id]})});const Ho=Ro.omit({id:true,createdAt:true,updatedAt:true,uses:true}),Uo=Ro.omit({createdAt:true,updatedAt:true,couponId:true,teamId:true,uses:true}).partial().extend({id:Ro.shape.id}),Wo=zo,Go=qa$1({couponId:na$1().optional().meta({examples:[w$1.Coupon.id],description:`Optional filter to retrieve coupon codes for a specific coupon`}),teamId:na$1().optional().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`Optional filter to retrieve coupon codes created by a specific team`}),active:Yt$1().optional().meta({examples:[true],description:`Optional filter to retrieve only active or inactive coupon codes`}),query:na$1().optional().meta({examples:[`SUMMER`],description:`Optional search query to filter coupon codes by name. When provided, search-backed pagination is used.`}),limit:L$1(`coupon codes`).optional(),cursor:na$1().optional().meta({examples:[`eyJpZCI6ImNwY18wMWpwczVjZ3NmenR3N2h4Y3ZyMndmdGsyIn0`],description:`Pagination cursor returned by a previous request. Omit on the first request.`})}).meta({description:`Schema for listing coupon codes with optional filtering, search, and pagination`}),Ko=B$1(Ro,`codes`),qo=qa$1({couponCode:Ro}),Jo=Lo.omit({id:true,createdAt:true,updatedAt:true}).strict().refine(e=>e.kind!==`PERCENT`||e.discount<=100,{path:[`discount`],message:`Discount must be 100 or less for PERCENT coupons`}).meta({description:`Schema for creating a new coupon without system-generated fields`}),Yo=Lo.pick({id:true}).meta({description:`Schema for retrieving a single coupon by ID`}),Xo=Yo.meta({description:`Schema for deleting a coupon by ID with optional soft-delete filtering`}),Zo=qa$1({teamId:na$1().meta({examples:[w$1.Team.id],description:`Unique identifier of the team whose coupons to retrieve`}),active:Yt$1().optional().meta({examples:[true],description:`Optional filter to retrieve only active or inactive coupons`}),query:na$1().optional().meta({examples:[`Half Price`],description:`Optional search query to filter coupons by name or description. When provided, search-backed pagination is used.`}),limit:L$1(`coupons`).optional(),cursor:na$1().optional().meta({examples:[`eyJpZCI6ImNwbl8wMWpwczVjZ3NmenMxa3NxYWV0NWhiYThhYyJ9`],description:`Pagination cursor returned by a previous request. Omit on the first request.`})}).meta({description:`Schema for listing coupons belonging to a specific team with optional filtering and pagination`}),Qo=B$1(Lo,`coupons`),$o=qa$1({coupon:Lo}),es=Lo.omit({createdAt:true,updatedAt:true,teamId:true}).partial().extend({id:Lo.shape.id.meta({examples:[w$1.Coupon.id],description:`Unique identifier of the coupon to update`}),saleEndsAt:I$1.nullable().optional().meta({examples:[w$1.Coupon.saleEndsAt],description:`Expiry time. Pass null to remove end date; omit to leave unchanged.`}),currency:D$1.nullable().optional().meta({examples:[`AUD`,`USD`,`GBP`],description:`Three-letter ISO 4217 currency code. Pass null to clear; omit to leave unchanged.`}),orderLimit:Lo.shape.orderLimit.unwrap().nullable().optional().meta({examples:[2],description:`Maximum number of admission units this coupon can discount within a single order. Pass null to remove the per-order limit; omit to leave unchanged.`})}).strict().refine(e=>e.kind!==`PERCENT`||e.discount===void 0||e.discount<=100,{path:[`discount`],message:`Discount must be 100 or less for PERCENT coupons`}).meta({description:`Schema for updating an existing coupon.`}),ts=qa$1({address:na$1().meta({examples:[w$1.Location.address],description:`Complete formatted address`}),city:na$1().optional().meta({examples:[w$1.Location.city],description:`City or locality`}),state:na$1().optional().meta({examples:[w$1.Location.state],description:`State, province, or region`}),postcode:na$1().optional().meta({examples:[w$1.Location.postcode],description:`Postal code`}),country:na$1().meta({examples:[w$1.Location.country],description:`Country name`}),countryCode:Qt$1.optional().meta({description:`ISO country code when supplied by the location provider`})}).meta({description:`Provider-independent formatted address details`}),ns=qa$1({id:mn.readonly().meta({examples:[w$1.Location.id],description:`Location identifier`}),googlePlaceId:na$1().optional().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID for this location`}),createdAt:Pi$1().meta({examples:[w$1.Location.createdAt],description:`Timestamp in ISO 8601 format when the location was created`}),updatedAt:Pi$1().meta({examples:[w$1.Location.updatedAt],description:`Timestamp in ISO 8601 format when the location was last updated`}),name:na$1().meta({examples:[w$1.Location.name],description:`Location name`}),...ts.shape,latitude:Ta$1().min(-90).max(90).meta({examples:[w$1.Location.latitude],description:`Latitude coordinate`}),longitude:Ta$1().min(-180).max(180).meta({examples:[w$1.Location.longitude],description:`Longitude coordinate`}),timeZone:na$1().min(1).regex(/^[A-Za-z0-9_+-]+(\/[A-Za-z0-9_+-]+)*$/,{message:`Must be a valid IANA timezone identifier format`}).meta({examples:[w$1.Location.timeZone],description:`IANA timezone identifier (e.g., 'America/New_York', 'Europe/London', 'Australia/Sydney', 'UTC'). Must be validated against the IANA timezone database where used.`}),types:Ga$1(na$1()).optional().meta({examples:[[`establishment`,`point_of_interest`,`stadium`]],description:`Google Place types indicating the category and nature of this location`}),description:na$1().optional().meta({examples:[`Historic outdoor amphitheater known for summer concerts`],description:`AI-generated description of the place, when available`}),image:F$1.optional().meta({description:`Primary location photo`}),venueId:pn$1.optional().meta({description:`Venue identifier if this location is a managed venue on the platform`})}).meta({description:`Location with full details including coordinates and timezone`}),rs=ns.omit({venueId:true}).extend({venue:qa$1({id:pn$1.meta({description:`Venue identifier`}),name:na$1().meta({description:`Venue name`}),slug:na$1().meta({description:`URL-friendly venue slug`}),teamId:na$1().meta({description:`Team that owns this venue`}),approval:E$1.meta({description:`Venue approval status`}),image:F$1.optional().meta({description:`Venue image`}),description:na$1().optional().meta({description:`Venue description`})}).optional().meta({description:`Denormalized venue details if this location is a managed venue. Only included when venue is approved.`})}),is=na$1().regex(/^G-[A-Z0-9]+$/,`Google Analytics Measurement ID must start with G-`),G$1=qa$1({id:M$1.readonly().meta({examples:[w$1.Promoter.id],description:`Unique identifier for the promoter organization`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Promoter.createdAt],description:`Timestamp in ISO 8601 format when the promoter was created`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Promoter.updatedAt],description:`Timestamp in ISO 8601 format when the promoter was last updated`}),name:na$1().min(3).max(30).meta({examples:[w$1.Promoter.name],description:`Display name of the promoter organization. Must be between 3 and 30 characters`}),slug:na$1().min(3).max(30).meta({examples:[w$1.Promoter.slug],description:`URL-friendly slug for the promoter organization. Must be unique and between 3 and 30 characters`}),teamId:k$1.meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`ID of the team that owns this promoter. Establishes team-based organization and permissions.`}),description:na$1().meta({examples:[w$1.Promoter.description],description:`Detailed description of the promoter organization and their events`}),approval:E$1.meta({examples:[w$1.Promoter.approval],description:`Approval status of the promoter. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate`}),image:F$1.optional().meta({description:`Optional promotional image for the promoter organization with dimensions and alt text`}),location:rs.meta({description:`Primary location details for the promoter including address, coordinates, and timezone`}),geohash:na$1().meta({examples:[w$1.Promoter.geohash],description:`Geohash encoding of the promoter's location for efficient spatial queries`}),tracking:qa$1({fbId:na$1().optional().meta({examples:[w$1.Promoter.tracking.fbId],description:`Facebook pixel ID for tracking conversions and analytics`}),gaId:is.optional().meta({examples:[w$1.Promoter.tracking.gaId],description:`Google Analytics 4 Measurement ID for web analytics`}),tikTokId:na$1().optional().meta({examples:[w$1.Promoter.tracking.tikTokId],description:`TikTok pixel ID for advertising and conversion tracking`})}).optional().meta({description:`Optional tracking configuration for analytics and advertising platforms`}),metadata:In}).meta({description:`Promoter organization with location and approval status`}),K$1=qa$1({id:na$1().readonly().meta({examples:[w$1.Section.id],description:`Unique identifier for the section`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Section.createdAt],description:`Timestamp when the section was created in ISO 8601 format`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Section.updatedAt],description:`Timestamp when the section was last updated in ISO 8601 format`}),name:na$1().meta({examples:[w$1.Section.name],description:`Display name of the section (e.g., 'VIP Area', 'General Admission')`}),capacity:Mn().prefault(-1).meta({examples:[w$1.Section.capacity],description:`Maximum number of attendees for this section. Use -1 for unlimited capacity`}),limit:Nn().prefault(-1).meta({examples:[w$1.Section.limit??-1],description:`Maximum number of tickets for this section that can be purchased in a single order. A value of -1 indicates unlimited`}),available:Ta$1().min(-1).readonly().meta({examples:[w$1.Section.available],description:`Number of tickets currently available for purchase in this section. Use -1 when capacity is unlimited`}),sold:Ta$1().min(0).readonly().meta({examples:[w$1.Section.sold],description:`Number of tickets sold for this section`}),reserved:Ta$1().readonly().meta({examples:[w$1.Section.reserved],description:`Number of tickets currently reserved (in pending orders) for this section`}),order:Ta$1().min(0).meta({examples:[w$1.Section.order],description:`Display order of the section. Lower numbers appear first in listings`}),visibility:io$1([`ALWAYS`,`STACKED`,`HIDDEN`]).prefault(`ALWAYS`).meta({examples:[`ALWAYS`],description:`Controls how this section is shown: always list all visible admissions, stack to show the cheapest available admission, or hide until a scoped coupon reveals it.`}),location:ns.meta({description:`Physical location details for the section`}),teamId:na$1().meta({description:`Team that owns this section. Denormalized for efficient queries.`}),promoterId:na$1().meta({examples:[w$1.Section.promoterId],description:`Unique identifier of the promoter who owns this section`}),eventId:na$1().meta({examples:[w$1.Section.eventId],description:`Unique identifier of the event this section belongs to`}),eventSlug:na$1().meta({examples:[w$1.Section.eventSlug],description:`URL-friendly identifier of the event this section belongs to`})}).meta({description:`A section represents a distinct area or tier within an event venue with its own capacity and pricing`}),os=[`AUD`,`NZD`,`USD`],ss=io$1(os),cs=io$1([`FEATURE_DISABLED`,`UNSUPPORTED_CURRENCY`,`NOT_ROUTED`,`NO_CONNECTED_GATEWAY`,`CHARGES_DISABLED`,`INCOMPATIBLE_FEE_STRUCTURE`]),ls=qa$1({available:ka$1().meta({description:`Whether Stripe Connect can be used for the selected team, event, and currency.`}),reasons:Ga$1(cs).meta({description:`Machine-readable reasons Stripe Connect is unavailable. Empty when available is true.`}),supportedCurrencies:Ga$1(ss).meta({description:`Currencies currently supported for Stripe Connect routing in this tenant flow.`})}),us=`STRIPE_CONNECT_UNAVAILABLE`;qa$1({code:oo$1(us).meta({description:`Stable error code returned when Stripe Connect is unavailable.`}),availability:ls.meta({description:`Detailed Stripe Connect availability result for UI filtering and recovery.`})});const fs=io$1([`UPCOMING`,`ENDED`]),ms=io$1([`PUBLIC`,`PRIVATE`,`SCHEDULED`,`PASSCODE`,`CANCELLED`]),gs=io$1([`HIDDEN`,`SCHEDULED`,`PUBLIC`]),vs=qa$1({visibility:gs.optional().meta({description:`Whether public event surfaces show the full location address. Missing values are treated as PUBLIC unless legacy location reveal data says otherwise.`}),publishAt:I$1.optional().meta({description:`Wall clock time when the location address becomes public. Required when location visibility is SCHEDULED.`}),sendAt:I$1.optional().meta({description:`Wall clock time when customers with successful orders can see the full location address and receive the notification.`}),instructions:na$1().max(2e3).optional().meta({description:`Arrival instructions shown to customers once the location address has been sent.`})}),ys=rs.extend(vs.shape),bs=qa$1({id:A$1.readonly().meta({examples:[w$1.Event.id],description:`A unique identifier for this event`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Event.createdAt],description:`Timestamp in ISO 8601 format when this event was created`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Event.updatedAt],description:`Timestamp in ISO 8601 format when this event was last updated`}),name:na$1().meta({examples:[w$1.Event.name],description:`The title of the event shown to attendees`}),slug:na$1().meta({examples:[w$1.Event.slug],description:`URL-friendly identifier for the event`}),description:na$1().meta({examples:[w$1.Event.description],description:`Detailed description of the event`}),approval:E$1.meta({examples:[`APPROVED`],description:`Approval status of the event`}),status:fs.meta({examples:[`UPCOMING`,`ENDED`],description:`Current stage of the event lifecycle`}),visibility:ms.meta({examples:[`PUBLIC`],description:`Who can see the event`}),currency:D$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code used for ticket prices`}),url:ca$1().optional().meta({examples:[`https://example.com`],description:`External URL for the event website or ticket page`}),entryStartsAt:I$1.meta({examples:[w$1.Event.entryStartsAt],description:`Wall clock time when event entry begins (no timezone, displays same everywhere)`}),entryEndsAt:I$1.meta({examples:[w$1.Event.entryEndsAt],description:`Wall clock time when event entry ends (no timezone, displays same everywhere)`}),publishAt:I$1.meta({examples:[w$1.Event.publishAt],description:`Wall clock time when the event becomes publicly visible (no timezone)`}),locationRevealAt:I$1.optional().meta({description:`Deprecated. Use location.sendAt for customer access and location.publishAt for scheduled public address visibility.`}),entryInstructions:na$1().max(2e3).optional().meta({description:`Deprecated. Use location.instructions for customer-facing arrival instructions.`}),images:qa$1({mobile:F$1.meta({description:`Mobile-optimized image for the event`}),desktop:F$1.meta({description:`Desktop-optimized image for the event`})}),geohash:na$1().meta({examples:[w$1.Event.geohash],description:`Geohash representing the event location`}),location:ys.meta({description:`Structured location details for the event`}),teamId:k$1.meta({description:`Team that owns this event. Denormalized for efficient queries.`}),promoterId:M$1.meta({examples:[w$1.Promoter.id],description:`Promoter organizing the event. Must belong to the team.`}),taxProfileId:un.optional().meta({description:`Team tax profile currently used for ticket sales`}),metadata:In,genres:Ga$1(na$1()).optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:Ga$1(na$1()).optional().meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),featured:ka$1().optional().meta({description:`Whether this event is an editorial pick`,examples:[true]}),likes:Ta$1().int().min(0).optional().meta({description:`Number of users who liked this event`,examples:[42]}),stripeConnectAvailability:ls.optional().meta({description:`Stripe Connect availability metadata for tenant event UI.`})}).meta({description:`event`}),xs=G$1.pick({id:true,name:true,slug:true,description:true,image:true}),Ss=bs.extend({passcode:na$1().optional().meta({description:`Plain-text event passcode. Included only on internal event detail responses for users with event.read access.`}),sections:Ga$1(K$1),admissions:Ga$1(z$1),promoter:xs.optional().meta({description:`Public summary of the promoter organizing this event. Included on event detail responses only.`}),liked:ka$1().optional().meta({description:`Whether the current user has liked this event`,examples:[true,false]})}),Cs=qa$1({event:Ss}),ws=io$1([`APPROVED`,`REJECTED`]);io$1([`CREATED`,`UPDATED`,`MANUAL`]);const Es=qa$1({key:na$1().meta({examples:[w$1.Event.id,w$1.Event.slug],description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`}),teamId:k$1.optional().meta({description:`Optional team scope. When provided, event must belong to this team.`})}).meta({description:`Schema for retrieving internal event approval state.`}),Ds=qa$1({eventId:A$1,teamId:k$1,approval:E$1,reason:na$1().max(2e3).nullable(),requestedAt:Pi$1().nullable(),changedAt:Pi$1().nullable(),changedByUserId:na$1().nullable(),submittedByUserId:na$1().nullable()}).meta({description:`Internal approval workflow state for an event.`}),Os=qa$1({approval:Ds}),ks=Es.meta({description:`Schema for requesting or resubmitting event approval.`}),As=qa$1({key:na$1().meta({examples:[w$1.Event.id,w$1.Event.slug],description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`}),approval:ws.meta({examples:[`APPROVED`],description:`Approval decision for the event`}),reason:na$1().max(2e3).optional().meta({description:`Optional reason shown to the event submitter when rejecting the event`}),requestedAt:Pi$1().optional().meta({description:`Approval request timestamp from an email action. When provided, the event must still be pending for that request.`})}).meta({description:`Schema for approving or rejecting an event.`}),js=1e6,Ms=io$1([`INCLUSIVE`,`EXCLUSIVE`]),Ns=ts.extend({address:na$1().trim().min(1).max(500).meta({description:`Complete formatted registered address`}),city:na$1().trim().min(1).max(100).optional().meta({description:`City or locality of the registered address`}),state:na$1().trim().min(1).max(100).optional().meta({description:`State, province, or region of the registered address`}),postcode:na$1().trim().min(1).max(32).optional().meta({description:`Postal code of the registered address`}),country:na$1().trim().min(1).max(100).meta({description:`Country name of the registered address`}),countryCode:Qt$1.meta({description:`Supplier country as an ISO 3166-1 alpha-2 code`,examples:[`AU`]})}).strict().meta({description:`Registered postal address used on customer receipts`}),Ps=qa$1({legalName:na$1().trim().min(1).max(200).meta({description:`Legal or trading name of the ticket supplier`}),registrationNumber:na$1().trim().min(1).max(100).optional().meta({description:`Tax or business registration number shown on customer receipts`}),address:Ns.meta({description:`Registered address of the ticket supplier`})}).strict().meta({description:`Ticket supplier identity shown on customer receipts`}),Fs=qa$1({taxName:na$1().trim().min(1).max(50).meta({description:`Customer-facing tax name, such as GST or VAT`,examples:[`GST`]}),ratePpm:Da$1().min(1).max(js).meta({description:`Tax rate in parts per million, where 100000 represents 10%`,examples:[1e5]}),priceMode:Ms.meta({description:`Whether organiser-entered ticket prices include or exclude tax`,examples:[`INCLUSIVE`]})}).strict().meta({description:`Tax collection and ticket price configuration`}),Is=qa$1({supplier:Ps.meta({description:`Legal supplier details used on customer receipts`}),collection:Fs.meta({description:`Tax collection configuration for ticket sales`})}).strict();function Ls(e,t){e.supplier.registrationNumber||t.addIssue({code:`custom`,message:`A registration number is required when collecting tax`,path:[`supplier`,`registrationNumber`]});}Is.superRefine(Ls).meta({description:`Editable tax profile data`});const zs=Is.extend({profileId:un.readonly().meta({description:`Tax profile used for this ticket tax snapshot`}),profileUpdatedAt:Pi$1().readonly().meta({description:`Version timestamp of the snapshotted tax profile`})}).superRefine(Ls).meta({description:`Tax profile snapshot stored on an order`}),Bs=Qa$1(`mode`,[qa$1({mode:oo$1(`TEAM_DEFAULT`)}).strict().meta({description:`Use the team's current default tax profile`}),qa$1({mode:oo$1(`PROFILE`),profileId:un}).strict().meta({description:`Use a specific team tax profile`})]).meta({description:`Tax profile choice for an event`}),Vs=Is.extend({id:un.readonly().meta({description:`Unique tax profile identifier`}),tenantId:na$1().readonly().meta({description:`Tenant that owns this tax profile`}),teamId:k$1.readonly().meta({description:`Team that owns this tax profile`}),createdAt:Pi$1().readonly().meta({description:`Timestamp when the tax profile was created`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp when the tax profile was last updated`}),updatedByUserId:na$1().readonly().meta({description:`User who most recently updated the tax profile`})}).superRefine(Ls).meta({description:`Reusable supplier and tax configuration for a team`}),Hs=qa$1({teamId:k$1.meta({description:`Team whose tax profiles should be retrieved`})}).strict().meta({description:`List the tax profiles configured for a team`}),Us=Is.extend({teamId:k$1.meta({description:`Team that owns the tax profile`})}),Ws=Us.superRefine(Ls).meta({description:`Create a reusable team tax profile`}),Gs=Us.extend({profileId:un.meta({description:`Tax profile to update`})}).superRefine(Ls).meta({description:`Update a reusable team tax profile`}),Ks=qa$1({teamId:k$1,profileId:un}).strict().meta({description:`Identify a tax profile owned by a team`}),qs=qa$1({profiles:Ga$1(Vs).meta({description:`Reusable tax profiles owned by the team`}),defaultProfileId:un.nullable().meta({description:`Default profile selected for new events, or null when none exist`})}).strict().superRefine((e,t)=>{e.profiles.length===0&&e.defaultProfileId===null||e.defaultProfileId&&e.profiles.some(t=>t.id===e.defaultProfileId)||t.addIssue({code:`custom`,message:`The default tax profile must be one of the listed profiles`,path:[`defaultProfileId`]});}).meta({description:`Team tax profiles and the current default`}),Js=bs.omit({id:true,teamId:true,createdAt:true,updatedAt:true,status:true,approval:true,geohash:true,location:true,likes:true,stripeConnectAvailability:true,taxProfileId:true}).extend({description:kr.meta({examples:[w$1.Event.description],description:`Detailed description of the event`}),slug:na$1().min(3).max(100).optional().meta({examples:[w$1.Event.slug],description:`URL-friendly slug for the event. If not provided, will be automatically generated from the name. Must be unique and between 3 and 100 characters`}),passcode:na$1().optional().meta({description:`Passcode for protected access to the event`}),locationId:mn.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location. Either locationId or googlePlaceId must be provided.`}),googlePlaceId:na$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided.`}),location:vs.optional().meta({description:`Event-specific location visibility, customer send time, and arrival instructions.`}),taxSettingsSelection:Bs.optional().meta({description:`Tax profile to associate with the event. Omit to use the team's current default profile.`}),genres:cn.optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:on$1.meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]})}).refine(e=>e.locationId||e.googlePlaceId,{message:`Either locationId or googlePlaceId must be provided`}),Ys=qa$1({key:na$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[w$1.Event.id,w$1.Event.slug]})}),Xs=qa$1({key:na$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[w$1.Event.id,w$1.Event.slug]}),name:na$1().min(1).meta({description:`Name for the duplicated event`,examples:[`${w$1.Event.name} (Copy)`]}),entryStartsAt:I$1.meta({description:`New event entry start time. Other copied event and admission datetimes are shifted by the same offset.`,examples:[w$1.Event.entryStartsAt]}),url:ca$1().nullable().optional().meta({description:`External ticketing URL for the duplicated event. Pass null to create the copy without an external URL; omit to copy the source URL.`,examples:[`https://example.com/events/summer-festival-2025`]})}),Zs=qa$1({key:na$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[w$1.Event.id,w$1.Event.slug]}),featured:ka$1().meta({description:`Whether the event should be featured (editorial pick)`,examples:[true,false]})}),Qs=qa$1({key:na$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[w$1.Event.id,w$1.Event.slug]}),passcode:na$1().optional().meta({description:`Passcode for accessing protected events`}),couponCode:na$1().optional().meta({description:`Coupon code used to reveal hidden admissions and sections when eligible.`}),teamId:na$1().optional().meta({description:`Optional team scope. When provided, event must belong to this team.`})}),$s=qa$1({admissions:Ta$1().int().min(0).optional().meta({description:`Number of active admissions configured for the event`}),sold:Ta$1().min(0).meta({description:`Number of tickets sold (net of refunds)`}),reserved:Ta$1().min(0).meta({description:`Number of tickets reserved`}),available:Ta$1().min(-1).meta({description:`Number of tickets available (-1 for unlimited)`}),capacity:Ta$1().min(-1).meta({description:`Total capacity (-1 for unlimited)`})}),ec=io$1([`entryStartsAt`,`distance`,`createdAt`]),tc=io$1([`asc`,`desc`]),nc=Ja$1({status:io$1([`UPCOMING`,`ENDED`]).optional().meta({examples:[`UPCOMING`],description:`Filter events by their current lifecycle status`}),approval:E$1.optional().meta({examples:[`APPROVED`],description:`Filter events by their approval status`}),visibility:io$1([`PUBLIC`,`PRIVATE`,`SCHEDULED`,`PASSCODE`]).optional().meta({examples:[`PUBLIC`],description:`Filter events by their visibility setting`}),promoterId:na$1().max(128).optional().meta({examples:[w$1.Promoter.id],description:`Filter events to only those belonging to a specific promoter. If not provided, returns events from all promoters the user has access to`}),teamId:na$1().max(128).optional().meta({description:`Filter events to only those belonging to a specific team. If not provided, returns events from all teams the user has access to`}),venueId:na$1().max(128).optional().meta({description:`Filter events to only those at a specific venue. If not provided, returns events at all venues`}),limit:T$1().min(1).max(100).prefault(20).meta({examples:[20],description:`Maximum number of events to return in each result set. Must be between 1 and 100, defaults to 20`}),cursor:na$1().max(768).optional().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Cursor token for pagination. Provide the cursor from the previous response to continue fetching results`}),query:Jt$1().max(120).optional().meta({examples:[`Test Event`],description:`Search term to filter events by name, description, or location. Triggers full‑text search when provided`}),latitude:T$1().min(-90).max(90).optional().meta({examples:[w$1.Event.location.latitude],description:`Latitude coordinate for geographic search. Provide with longitude (and optional radius)`}),longitude:T$1().min(-180).max(180).optional().meta({examples:[w$1.Event.location.longitude],description:`Longitude coordinate for geographic search. Provide with latitude (and optional radius)`}),radius:T$1().positive().max(2e4).optional().meta({examples:[20],description:`Search radius in kilometers from the provided coordinates. Defaults to 20km`}),country:na$1().max(120).optional().meta({examples:[`australia`],description:`Filter by country region slug. Matches events where location.country equals the region name`}),state:na$1().max(120).optional().meta({examples:[`nsw`],description:`Filter by state/province region slug. Matches events where location.state equals the region name`}),city:na$1().max(120).optional().meta({examples:[`sydney`],description:`Filter by city region slug. Matches events where location.city equals the region name`}),from:na$1().date().optional().meta({examples:[`2024-01-01`],description:`Filter events that start on or after this date (YYYY-MM-DD format). Events with entryStartsAt >= from`}),to:na$1().date().optional().meta({examples:[`2024-12-31`],description:`Filter events that start on or before this date (YYYY-MM-DD format). Events with entryStartsAt <= to`}),sort:ec.optional().meta({examples:[`entryStartsAt`],description:"Optional list sort field. Defaults to event start time. Use `distance` with latitude and longitude to return nearest events first, or `createdAt` to return newest or oldest events first."}),direction:tc.optional().meta({examples:[`desc`],description:`Sort direction for event start or creation time. Defaults to lifecycle-aware event start order; distance sorting always returns nearest events first.`}),genres:Po(e=>typeof e==`string`?[e]:e,Ga$1(sn).max(20,`Cannot filter by more than 20 genres`)).optional().meta({examples:[[`Tech House`,`Melodic Techno`]],description:`Filter events by music genre(s). Returns events matching ANY of the provided genres (OR logic). Maximum 20 genres`}),categories:Po(e=>typeof e==`string`?[e]:e,Ga$1(an$1).max(10,`Cannot filter by more than 10 categories`)).optional().meta({examples:[[`Day Party`,`Open Air`]],description:`Filter events by category(s). Returns events matching ANY of the provided categories (OR logic). Maximum 10 categories`}),featured:ka$1().optional().meta({examples:[true],description:`Filter to only featured (editorial pick) events`})}).meta({description:`List events with filtering, full‑text search, geo queries, date range filtering, genre/category filtering, and cursor-based pagination`}),rc=nc,ic=Ir({booking:`Booking fee for the cheapest publicly purchasable admission, in cents`,currency:`Three-letter ISO 4217 currency code for the cheapest publicly purchasable admission`,price:`Cheapest publicly purchasable admission price for this event, selected by customer-facing total`}),ac=B$1(bs.extend({inventory:$s.optional(),liked:ka$1().optional().meta({description:`Whether the current user has liked this event`,examples:[true,false]}),price:ic.nullable().meta({description:`Cheapest publicly purchasable admission price, or null when no public admission is currently available`})}),`events`),oc=qa$1({event:bs});io$1([`ONLINE`,`DOOR`,`SALE_ENDED`,`SOLD_OUT`]);const lc=nc.omit({cursor:true,limit:true}).extend({limit:T$1().int().min(1).max(1e3).prefault(1e3).meta({examples:[1e3],description:`Maximum number of event slugs to return. Must be between 1 and 1000, defaults to 1000`}),skip:T$1().int().min(0).max(1e4).prefault(0).meta({examples:[0],description:`Number of matching event slugs to skip before returning results`})}),uc=qa$1({slugs:Ga$1(na$1()).meta({description:`Current event slugs for the matching event list`}),skip:T$1().int().min(0).meta({examples:[0],description:`Number of matching event slugs skipped`}),limit:T$1().int().min(1).max(1e3).meta({examples:[1e3],description:`Maximum number of event slugs returned`})}),dc=qa$1({visibility:gs.optional().meta({description:`Whether public event surfaces show the full location address. Omit to leave unchanged.`}),publishAt:vs.shape.publishAt.nullable().optional().meta({description:`Public location address publish time. Pass null to clear; omit to leave unchanged.`}),sendAt:vs.shape.sendAt.nullable().optional().meta({description:`Customer location address send time. Pass null to clear; omit to leave unchanged.`}),instructions:vs.shape.instructions.nullable().optional().meta({description:`Arrival instructions for customers. Pass null to clear; omit to leave unchanged.`})}),fc=bs.omit({createdAt:true,updatedAt:true,geohash:true,status:true,approval:true,location:true,likes:true,stripeConnectAvailability:true,taxProfileId:true}).partial().extend({description:kr.optional().meta({examples:[w$1.Event.description],description:`Detailed description of the event. Omit to leave unchanged.`}),key:na$1().meta({examples:[w$1.Event.id,w$1.Event.slug],description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`}),slug:na$1().min(3).max(100).optional().meta({examples:[w$1.Event.slug],description:`URL-friendly slug for the event. Omit to leave unchanged. Must be unique and between 3 and 100 characters`}),passcode:na$1().nullable().optional().meta({description:`Passcode for protected access. Pass null to clear; changing visibility away from PASSCODE also clears it.`}),url:ca$1().nullable().optional().meta({examples:[`https://example.com/events/summer-festival-2025`],description:`External event URL. Pass null to clear; omit to leave unchanged.`}),locationRevealAt:bs.shape.locationRevealAt.nullable().optional().meta({description:`Wall clock time when the venue address becomes visible. Pass null to clear before reveal; omit to leave unchanged.`}),entryInstructions:bs.shape.entryInstructions.nullable().optional().meta({description:`Entrance instructions sent when the location is revealed. Pass null to clear; omit to leave unchanged.`}),locationId:mn.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:na$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`}),location:dc.optional().meta({description:`Event-specific location visibility, public publish time, customer send time, and arrival instructions.`}),taxSettingsSelection:Bs.optional().meta({description:`Associate the event with the current default or a selected team tax profile.`}),genres:cn.optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:on$1.meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),notify:ka$1().optional().meta({description:`Whether attendees should be notified about this event update.`,examples:[true]})}).meta({description:`Schema for updating an existing event.`}),pc=qa$1({id:Tn.readonly().meta({description:`Unique identifier for the event collaborator`}),createdAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the collaborator was added`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the collaborator was last updated`}),eventId:A$1.meta({description:`Event this collaboration applies to`}),promoterId:M$1.meta({description:`Promoter collaborating on the event`}),acceptedBy:j$1.meta({description:`User ID who accepted the invitation to collaborate`}),promoter:qa$1({id:M$1.meta({description:`Unique identifier of the promoter`}),name:na$1().meta({description:`Name of the promoter`}),teamId:k$1.meta({description:`Team ID of the promoter`})}).optional().meta({description:`Populated promoter details. Only included when explicitly requested.`}),permissions:sr.meta({description:`Permissions granted to this collaborator. User must have permission in BOTH this grant AND their team membership (intersection).`,examples:[[],[`event.read`,`event.write`],[`order.read`],[`ticket.scan`],[`*`]]}),tenantId:na$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Active event collaborator. Created when a promoter accepts an invitation or is directly added to an event. Hard deleted when removed.`}),mc=pc.pick({id:true,eventId:true}).meta({description:`Schema for accepting an event promoter collaboration invitation. User accepting must be a member of the invited promoter's team.`}),hc=qa$1({id:Tn.readonly().meta({description:`Unique identifier for the event collaboration invitation`}),createdAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was created`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was last updated`}),eventId:A$1.meta({description:`Event this invitation applies to`}),promoterId:M$1.meta({description:`Promoter being invited to collaborate on the event.`}),invitedByPromoterId:M$1.meta({description:`Promoter who sent this invitation (event owner or collaborator with permission).`}),permissions:sr.meta({description:`Permissions the promoter will receive upon accepting the invitation.`,examples:[[],[`event.read`,`event.write`],[`order.read`],[`ticket.scan`],[`*`]]}),token:na$1().readonly().meta({description:`Secure token for invite acceptance. Required to accept the invitation.`}),invitedBy:j$1.meta({description:`User ID who sent the invitation`}),expiresAt:Ta$1().int().positive().meta({description:`Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days.`}),tenantId:na$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Pending event collaborator invitation. Automatically deleted after 7 days via DynamoDB TTL. When accepted, creates an EventCollaborator record and deletes the invitation.`}),gc=hc.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,token:true,expiresAt:true,invitedByPromoterId:true}).meta({description:`Schema for inviting a promoter to collaborate on an event. Creates a pending invitation that the promoter can accept.`}),_c=qa$1({eventId:A$1.meta({description:`Event ID that the collaboration belongs to`}),id:Tn.meta({description:`Event team access grant ID to retrieve`})}),vc=qa$1({invite:hc}),yc=qa$1({eventId:na$1().meta({description:`Event ID to list collaborators for`}),accessPromoterId:na$1().optional().meta({description:`DEPRECATED: Use 'promoterId' instead. Filter by collaborating promoter ID (what events can this promoter access). Maintained for backward compatibility.`}),ownerPromoterId:na$1().optional().meta({description:`DEPRECATED: No longer used. Maintained for backward compatibility only.`}),limit:L$1(`event collaborators`),cursor:na$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing active event collaborations with pagination and filtering. Only returns accepted collaborations (not pending invitations). Use invite endpoints for pending invitations.`}),bc=B$1(pc,`grants`),xc=qa$1({collaborator:pc}),Sc=oo$1(`audience-republic`).meta({description:`Integration provider.`}),Cc=qa$1({listName:na$1().trim().min(1).max(200).meta({description:`Shared Audience Republic mailing list name for email and SMS.`})}).strict(),wc=qa$1({id:kn,teamId:k$1,provider:Sc,enabled:ka$1().meta({description:`Whether this integration is connected.`}),configured:ka$1().meta({description:`Whether an encrypted credential is stored. Credentials are never returned.`}),revision:Ta$1().int().positive().meta({description:`Version required for conditional updates.`}),activatedAt:Pi$1().meta({description:`Start of future-only team delivery for this connection.`}),settings:Cc,canManageTeam:ka$1().meta({description:`Whether the caller may change credentials and the shared mailing list.`}),tenantDestination:ka$1().meta({description:`Whether tenant configuration references this integration for tenant-wide delivery.`})}).meta({description:`Team-owned integration sharing one provider account and mailing list across all promoters.`}),Tc=qa$1({teamId:k$1}).strict(),Ec=qa$1({integrations:Ga$1(wc),canManageTeam:ka$1()}).meta({description:`Integrations visible to the caller in this team.`}),Dc=qa$1({id:kn}).strict(),Oc=qa$1({teamId:k$1,provider:Sc,apiKey:na$1().trim().min(1).max(4096).meta({description:`Write-only shared provider API key.`}),settings:Cc}).strict(),kc=qa$1({id:kn,revision:Ta$1().int().positive(),apiKey:na$1().trim().min(1).max(4096).optional().meta({description:`Replace the shared key. Omit to retain it; required to reconnect.`}),settings:Cc}).strict(),Ac=Dc.extend({revision:Ta$1().int().positive()}).strict(),jc=qa$1({id:An,integrationId:kn,scope:io$1([`team`,`tenant`]),status:io$1([`QUEUED`,`RUNNING`,`PAUSED`,`COMPLETED`,`FAILED`,`CANCELLED`]),createdAt:Pi$1(),updatedAt:Pi$1(),processed:Ta$1().int().nonnegative(),skipped:Ta$1().int().nonnegative(),failed:Ta$1().int().nonnegative(),error:na$1().optional()}).meta({description:`Durable historical import progress. Counts refer to orders, not unique buyers.`}),Mc=Dc.extend({scope:io$1([`team`,`tenant`]).default(`team`)}).strict(),Nc=Dc.extend({jobId:An}).strict(),Pc=qa$1({key:na$1().min(1).meta({description:`Location key - either a location ID (loc_xxx format) or provider-specific identifier (e.g., Google Place ID)`,examples:[w$1.Location.id,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}),Fc=qa$1({query:na$1().min(1).meta({examples:[`sydney opera`],description:`Search query for location search`}),latitude:T$1().min(-90).max(90).optional().meta({examples:[w$1.Location.latitude],description:`User's latitude for proximity-based results (optional for better relevance)`}),longitude:T$1().min(-180).max(180).optional().meta({examples:[w$1.Location.longitude],description:`User's longitude for proximity-based results (optional for better relevance)`}),types:Ga$1(na$1()).optional().meta({examples:[[`establishment`]],description:`Filter results by Google Place types (e.g., 'establishment', 'night_club', 'bar')`})}).meta({description:`Parameters for searching locations`}),Ic=qa$1({googlePlaceId:na$1().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID for this location`}),name:na$1().meta({examples:[w$1.Location.name],description:`Primary name of the location`}),description:na$1().meta({examples:[w$1.Location.address],description:`Full formatted address`}),venue:qa$1({id:pn$1.meta({examples:[w$1.Venue.id],description:`Venue ID if this location is a managed venue`}),name:na$1().meta({examples:[w$1.Venue.name],description:`Venue name`}),teamId:na$1().meta({description:`Team that manages this venue`}),image:F$1.optional().meta({description:`Primary venue image`})}).optional().meta({description:`Present if this location is a managed venue on the platform`})}).meta({description:`Single location search result with optional venue overlay`}),Lc=qa$1({predictions:Ga$1(Ic).meta({description:`Array of location predictions`})}).meta({description:`Response containing location search results`}),Rc=qa$1({location:rs}),zc=io$1([`DRAFT`,`ACTIVE`,`PAUSED`,`RETIRED`]),Bc=io$1([`ACTIVE`,`SUSPENDED`,`INACTIVE`]),Vc=io$1([`PENDING`,`COMPLETED`,`DUPLICATE`]),Hc=qa$1({id:na$1().meta({description:`Membership program ID`}),teamId:na$1().meta({description:`Team that owns the program`}),name:na$1().meta({description:`Name shown to members`,examples:[`S.A.S.H Membership`]}),state:zc.meta({description:`Only an ACTIVE program can be bought. PAUSED and RETIRED programs keep honouring existing passes.`}),price:Ta$1().int().nonnegative().meta({description:`Tax-inclusive annual price in currency minor units`,examples:[14999]}),currency:na$1().length(3).meta({description:`ISO 4217 currency code`,examples:[`AUD`]}),termsUrl:ca$1().meta({description:`Current membership terms the buyer must acknowledge`})}).meta({description:`An annual membership offer owned by a team`}),Uc=qa$1({id:na$1().meta({description:`Membership pass ID`}),programId:na$1(),teamId:na$1(),userId:na$1(),memberNumber:Ta$1().int().meta({description:`Sequential number identifying the pass within its program. The first pass receives 200.`,examples:[200]}),state:Bc,active:ka$1().meta({description:`True while the pass is ACTIVE and its paid term has not ended`}),paidThrough:Pi$1().meta({description:`End of the latest paid annual term`}),cancelAt:Pi$1().optional().meta({description:`Present when renewal is scheduled to stop. Benefits continue until paidThrough.`}),complimentary:ka$1().meta({description:`True while the current term was granted by staff for free. It never renews; a paidThrough of MEMBERSHIP_NO_END means it has no end date.`}),createdAt:Pi$1()}).meta({description:`A durable membership owned by one user`}),Wc=qa$1({id:na$1().meta({description:`Membership purchase ID`}),programId:na$1(),teamId:na$1(),state:Vc.meta({description:`PENDING until the provider confirms payment. DUPLICATE means a payment arrived for a user who already held an active pass and needs a manual refund.`}),price:Ta$1().int().nonnegative(),currency:na$1().length(3),termsUrl:ca$1(),expiresAt:Pi$1().meta({description:`When the provider abandons an unpaid attempt`}),passId:na$1().optional()}).meta({description:`A checkout attempt for a membership program`}),Gc=qa$1({provider:oo$1(`STRIPE`),clientSecret:na$1().meta({description:`Client secret that confirms the first invoice`}),stripeAccountId:na$1().meta({description:`Connected account the payment is taken on`})}).meta({description:`What the browser needs to collect the first payment`}),Kc=Ja$1({programId:na$1().max(128)}),qc=qa$1({provider:oo$1(`STRIPE`),stripeAccountId:na$1().meta({description:`Connected account the payment form must be loaded for`}),customerSessionClientSecret:na$1().optional().meta({description:`Lets the payment form show the buyer's saved cards. Absent when the provider declined to issue one.`})}).meta({description:`What the payment form needs before the purchase starts`}),Jc=Ja$1({teamSlug:na$1().min(1).max(128).meta({description:`Slug of the team whose current program is wanted`,examples:[`sash`]})}),Yc=qa$1({program:Hc,payment:qa$1({provider:oo$1(`STRIPE`),stripeAccountId:na$1().meta({description:`Connected account the payment form must be loaded for`})}).optional().meta({description:`How the membership is paid for. Absent when the team cannot take membership payments right now.`}),team:qa$1({id:na$1(),slug:na$1(),name:na$1(),image:F$1.optional().meta({description:`The team's avatar, shown beside the program at checkout`})})}),Xc=Ja$1({programId:na$1().max(128),termsAccepted:oo$1(true).meta({description:`The buyer has acknowledged the program's current terms and the automatic annual renewal`})}),Zc=qa$1({purchase:Wc,payment:Gc}),Qc=Ja$1({id:na$1().max(128)}),$c=qa$1({purchase:Wc,pass:Uc.optional()}),el=qa$1({reason:io$1([`ALREADY_MEMBER`,`MEMBERSHIP_SUSPENDED`,`PROGRAM_NOT_ON_SALE`,`PAYMENT_UNAVAILABLE`])}),tl=Ja$1({teamId:na$1().max(128).optional()}),nl=qa$1({passes:Ga$1(Uc)}),rl=Uc.extend({member:qa$1({firstName:na$1(),lastName:na$1(),email:na$1()}).optional().meta({description:`Absent when the user account no longer exists`})}).meta({description:`A membership pass with its owner, for staff`});const sl=Ja$1({teamId:na$1().max(128),memberNumber:Ta$1().int().min(1).max(99999).meta({description:`The serial printed on the keyring being handed over. It becomes the member number.`,examples:[42]}),email:ia$1().max(254).meta({description:`The member's email. Their existing account is used, or a new one is created that they sign in to with this email.`}),firstName:na$1().trim().min(1).max(100),lastName:na$1().trim().min(1).max(100),endsAt:Pi$1().nullable().meta({description:`When the free membership ends. Null for no end date. See defaultMembershipGrantEnd().`})}),cl=Ja$1({teamId:na$1().max(128),memberNumber:Ta$1().int().min(1).max(99999)}),ll=qa$1({status:io$1([`AVAILABLE`,`TAKEN`,`LAPSED`,`NO_KEYRING`]).meta({description:`AVAILABLE: free. TAKEN: a current or suspended member holds it. LAPSED: a lapsed member holds it, and only they can be given it again. NO_KEYRING: no imported keyring has this serial.`})}),ul=Ja$1({eventId:na$1().max(128),fobId:na$1().regex(/^fob_[0-9a-z]{26}$/).meta({description:`The QR value scanned from the member's keyring`})}),dl=qa$1({memberNumber:Ta$1().int(),member:qa$1({firstName:na$1(),lastName:na$1()}).optional().meta({description:`Absent when the user account no longer exists`})}),fl=Qa$1(`status`,[dl.extend({status:oo$1(`REDEEMED`),passId:na$1(),discount:qa$1({kind:io$1([`AMOUNT`,`PERCENT`]),amount:Ta$1().int().meta({description:`Minor units for AMOUNT, whole percent for PERCENT`}),currency:na$1().optional()}),undoUntil:Pi$1().meta({description:`The scanning staff member may undo until this moment`})}),dl.extend({status:oo$1(`ALREADY_USED`),source:io$1([`ONLINE`,`DOOR`]),pending:ka$1(),usedAt:Pi$1().optional(),orderId:na$1().optional(),usedBy:qa$1({firstName:na$1()}).optional().meta({description:`The staff member who scanned it, for a door use`})}),dl.extend({status:oo$1(`INACTIVE`),reason:io$1([`EXPIRED`,`SUSPENDED`,`ENDED`])}),dl.extend({status:oo$1(`NO_DISCOUNT`)}),qa$1({status:oo$1(`NOT_A_MEMBER`),reason:io$1([`UNKNOWN_KEYRING`,`OTHER_TEAM`,`UNASSIGNED`])})]).meta({description:`What door staff are told about a scanned keyring`}),pl=Ja$1({eventId:na$1().max(128),passId:na$1().max(128)}),ml=Ja$1({teamId:na$1().max(128),passId:na$1().max(128)}),hl=qa$1({reason:io$1([`ALREADY_MEMBER`,`MEMBERSHIP_SUSPENDED`,`NUMBER_TAKEN`,`MEMBER_NUMBER_MISMATCH`,`NO_KEYRING`,`NOT_COMPLIMENTARY`]),memberNumber:Ta$1().int().optional().meta({description:`The member number the account already holds, for ALREADY_MEMBER and MEMBER_NUMBER_MISMATCH`})}),gl=Ja$1({teamId:na$1().max(128),limit:L$1(`members`),cursor:na$1().max(768).optional().meta({description:`Pagination cursor from the previous response`})}),_l=B$1(rl,`members`).extend({program:Hc.optional()}),vl=io$1([`PROCESSING`,`TICKETS_CANCELLED`,`CANCELLED`]),yl=na$1().trim().min(1,`Enter a reason`).max(500,`Reason must be 500 characters or fewer`),bl=qa$1({id:hn,request:qa$1({cancelOrder:ka$1().optional().meta({description:`Whether this request closes the order to further ticket issuance.`}),idempotencyKey:na$1().meta({description:`Client key identifying the accepted cancellation request.`}),ticketIds:Ga$1(_n).optional().meta({description:`Original ticket selection for replaying the request. Omitted to select all tickets.`})}).meta({description:`Original request identity and selection.`}),ticketIds:Ga$1(_n).meta({description:`Tickets selected for this cancellation operation.`}),fullCancellation:ka$1().meta({description:`Whether the request selected all tickets. Closing the order is controlled separately by request.cancelOrder.`}),reason:yl.meta({description:`Reason shared with the buyer.`}),actor:qa$1({type:io$1([`USER`,`SYSTEM`]).meta({description:`Actor responsible for the cancellation.`}),userId:j$1.optional(),name:na$1().optional().meta({description:`Actor name captured when the cancellation was requested.`})}),createdAt:Pi$1().meta({description:`Time the cancellation request was accepted.`}),completedAt:Pi$1().optional().meta({description:`Time ticket cancellation completed.`}),status:io$1([`PROCESSING`,`SUCCEEDED`]).meta({description:`Ticket cancellation progress, independent of email delivery.`}),retryAction:io$1([`RESUME_CANCELLATION`]).optional().meta({description:`Replay the original request to complete unfinished cancellation work.`}),notification:qa$1({requested:ka$1().meta({description:`Whether staff requested a buyer email. Delivery is tracked by the shared notification service.`})})}).meta({description:`Staff-only cancellation history, including notification preference.`}),xl=qa$1({cancellation:bl}),Sl=qa$1({cancellations:Ga$1(bl)}),Cl=qa$1({id:hn,reason:yl.meta({description:`Reason shared with the buyer.`}),ticketIds:Ga$1(_n).meta({description:`Tickets affected by this cancellation.`})}).meta({description:`Buyer-visible cancellation details.`}),wl=qa$1({name:na$1().meta({examples:[`tenant-web`,`team-web`,`api`,`partner`],description:`Free-form channel identifier describing where the order originated.`}),referrer:na$1().optional().meta({examples:[`https://sash.teams.mixmag.au/events/example-event`],description:`Optional referrer URL captured at order creation for redirect routing and attribution.`}),utmSource:na$1().optional().meta({examples:[`instagram`],description:`Optional UTM source captured from the originating URL.`}),utmMedium:na$1().optional().meta({examples:[`social`],description:`Optional UTM medium captured from the originating URL.`}),utmCampaign:na$1().optional().meta({examples:[`summer-launch`],description:`Optional UTM campaign captured from the originating URL.`}),deviceType:io$1([`MOBILE`,`TABLET`,`DESKTOP`]).optional().meta({examples:[`MOBILE`],description:`Optional analytics device classification captured at order creation.`}),browser:na$1().optional().meta({examples:[`Chrome`],description:`Optional analytics browser classification captured at order creation.`}),country:na$1().optional().meta({examples:[`Australia`],description:`Optional viewer country captured at order creation for analytics attribution.`}),region:na$1().optional().meta({examples:[`Australia - New South Wales`],description:`Optional viewer region captured at order creation for analytics attribution.`}),sessionId:na$1().optional().meta({examples:[`ses_01HX...`],description:`Session ID captured at order creation for client/server analytics linking.`}),anonymousId:na$1().optional().meta({examples:[`aid_01HX...`],description:`Browser anonymous ID captured at order creation for attribution linking.`})}),Tl=qa$1({id:na$1().meta({examples:[w$1.CouponCode.id],description:`Unique identifier of the coupon code used in the order`}),name:na$1().meta({examples:[w$1.CouponCode.name],description:`The coupon code string that was entered by the customer`}),couponId:na$1().meta({examples:[w$1.CouponCode.couponId],description:`Unique identifier of the parent coupon configuration`})}),El=qa$1({id:na$1().meta({examples:[w$1.Customer.id],description:`Unique identifier of the customer who placed the order`}),firstName:na$1().meta({examples:[w$1.Customer.firstName],description:`First name of the customer`}),lastName:na$1().meta({examples:[w$1.Customer.lastName],description:`Last name of the customer`}),email:ia$1().meta({examples:[w$1.Customer.email],description:`Email address of the customer`}),phone:na$1().meta({examples:[w$1.Customer.phone],description:`Customer phone number in E.164 format for SMS delivery`}).optional()}),Dl=qa$1({id:na$1().meta({examples:[w$1.Event.id],description:`Unique identifier of the event associated with the order`}),name:na$1().meta({examples:[w$1.Event.name],description:`Display name of the event`}),slug:na$1().meta({examples:[w$1.Event.slug],description:`URL-friendly slug of the event`}),location:na$1().meta({examples:[w$1.Event.location.name],description:`Name of the venue or location where the event takes place`}).optional(),locationAddress:na$1().optional().meta({examples:[w$1.Event.location.address],description:`Full venue address, available once the event location is revealed.`}),locationLatitude:Ta$1().optional().meta({examples:[w$1.Event.location.latitude],description:`Venue latitude, available once the event location is revealed.`}),locationLongitude:Ta$1().optional().meta({examples:[w$1.Event.location.longitude],description:`Venue longitude, available once the event location is revealed.`}),entryInstructions:na$1().max(2e3).optional().meta({description:`Latest entry instructions for customers once the event location is revealed.`})}),Ol=io$1([`GATEWAY`,`SHIPPING`,`SMS_DELIVERY`]).meta({description:`Type of fee applied to an order`}),kl=qa$1({id:na$1().meta({examples:[w$1.OrderFee.id],description:`Unique identifier for this order fee`}),createdAt:Pi$1().readonly().meta({examples:[w$1.OrderFee.createdAt],description:`Timestamp in ISO 8601 format when this fee was created`}),reason:na$1().meta({examples:[w$1.OrderFee.reason],description:`Description explaining why this fee was applied to the order`}),amount:Ta$1().finite(`Amount must be a valid number`).meta({examples:[w$1.OrderFee.amount],description:`Fee amount in cents (positive value indicates charge to customer, negative value indicates credit or discount)`}),currency:D$1.meta({examples:[w$1.OrderFee.currency],description:`Currency code in ISO 4217 format`}),requestId:na$1().meta({examples:[w$1.OrderFee.requestId],description:`External payment processor request identifier for tracking this fee`}),kind:Ol.optional().meta({examples:[`GATEWAY`],description:`Type of fee for categorization and reporting`})}),Al=qa$1({net:Da$1().min(0).meta({examples:[w$1.OrderItem.price.net],description:`Total amount to pay to promoter in cents.
|
|
85
|
-
Calculated as: total - booking - refunded`}),total:Da$1().min(0).meta({examples:[w$1.OrderItem.price.total],description:`Total amount the customer should pay in cents.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
Ticket and shipping revenue after organiser-funded refunds and disputes, excluding booking and SMS fees.`}),total:Da$1().meta({examples:[w$1.Order.price.total],description:`Total amount the customer should pay in cents.
|
|
89
|
-
|
|
90
|
-
Calculated as: base + tax added to entered prices + booking + shipping`}),base:Da$1().min(0).meta({examples:[w$1.Order.price.base],description:`Total ticket price in cents`}),booking:Da$1().min(0).meta({examples:[w$1.Order.price.booking],description:`Total booking fees in cents (non-refundable)`}),tax:Da$1().min(0).optional().meta({description:`Total ticket tax component in cents. This excludes tax contained in platform booking fees.`}),shipping:Da$1().min(0).meta({examples:[w$1.Order.price.shipping],description:`Total shipping amount in cents`}),sms:Da$1().min(0).default(0).meta({examples:[w$1.Order.price.sms],description:`SMS delivery fee in cents (customer-facing price in event currency)`}),refunded:Da$1().max(0).meta({examples:[w$1.Order.price.refunded],description:`Total amount refunded in cents (negative value)`}),discount:Da$1().max(0).meta({examples:[w$1.Order.price.discount],description:`Total amount discounted in cents (negative value)`}),gateway:Da$1().max(0).meta({examples:[w$1.Order.price.gateway],description:`Total absorbed payment gateway fees in cents (negative value)`}),dispute:Da$1().max(0).meta({examples:[w$1.Order.price.dispute],description:`Total non-absorbed payment gateway fees in cents (negative value)`}),currency:D$1.meta({examples:[w$1.Order.price.currency],description:`Currency code in ISO 4217 format`})}),eu=io$1([`PENDING`,`PROCESSING`,`SUCCEEDED`,`FAILED`]),nu=io$1([`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`,`OTHER`]),iu=io$1([`USER`,`GATEWAY`,`SYSTEM`]),ou=qa$1({orderItemId:na$1().meta({examples:[w$1.OrderRefundItem.orderItemId],description:`Identifier of the order item being refunded`}),quantity:Da$1().min(1).meta({examples:[w$1.OrderRefundItem.quantity],description:`Number of units refunded for this item`}),amount:Da$1().min(0).meta({examples:[w$1.OrderRefundItem.amount],description:`Refund amount for this item in cents, after discounts, including any exclusive ticket tax and excluding booking fees`}),taxAmount:Da$1().min(0).optional().meta({description:`Ticket tax component reversed by this refund item`}),ticketIds:Ga$1(na$1()).meta({examples:[w$1.OrderRefundItem.ticketIds],description:`Specific ticket identifiers that were refunded (selected via FIFO)`})}),su=qa$1({idempotencyKey:na$1().optional().meta({examples:[w$1.OrderRefund.request.idempotencyKey],description:`Client-provided key to prevent duplicate refund processing`})}),cu=qa$1({currency:na$1().meta({examples:[`AUD`],description:`Currency used for all refund amounts`}),total:Da$1().min(1).meta({examples:[w$1.OrderRefund.price.total],description:`Total refund amount in cents, including ticket, shipping, and fee portions.`}),items:Da$1().min(0).meta({examples:[w$1.OrderRefund.price.items],description:`Ticket item portion of the refund in cents`}),shipping:Da$1().min(0).meta({examples:[w$1.OrderRefund.price.shipping],description:`Shipping portion of the refund in cents`}),fees:Da$1().min(0).meta({examples:[w$1.OrderRefund.price.fees],description:`Fee portion of the refund in cents`}),tax:Da$1().min(0).optional().meta({description:`Ticket tax component reversed by this refund`})}),lu=qa$1({cancelRequested:ka$1().meta({examples:[w$1.OrderRefund.tickets.cancelRequested],description:`Whether ticket cancellation was requested for the refund`}),cancelled:ka$1().meta({examples:[w$1.OrderRefund.tickets.cancelled],description:`Whether tickets were cancelled as part of this refund`}),cancelledCount:Da$1().min(0).meta({examples:[w$1.OrderRefund.tickets.cancelledCount],description:`Number of tickets that were cancelled`})}),uu=qa$1({provider:Gl.meta({examples:[`STRIPE`,`AIRWALLEX`],description:`Payment gateway used to process the refund`}),refundId:na$1().optional().meta({examples:[w$1.OrderRefund.gateway.refundId],description:`Refund identifier from the payment gateway`}),idempotencyKey:na$1().optional().meta({examples:[w$1.OrderRefund.gateway.idempotencyKey],description:`Idempotency key sent to the payment gateway`})}),du=qa$1({type:iu.meta({examples:[`USER`,`GATEWAY`],description:`Who initiated the refund`}),userId:na$1().optional().meta({examples:[w$1.OrderRefund.actor.userId],description:`Identifier of the user who initiated the refund`})}),fu=qa$1({requested:ka$1().meta({examples:[w$1.OrderRefund.notification.requested],description:`Whether a customer refund confirmation email was requested.`}),sentAt:Pi$1().optional().meta({examples:[w$1.OrderRefund.notification.sentAt],description:`Timestamp when the refund confirmation email was sent.`})}),pu=qa$1({reason:na$1().meta({examples:[`Insufficient funds for refund`],description:`Gateway or system failure reason`}),message:na$1().optional().meta({examples:[`The refund could not be processed.`],description:`User-facing failure message when available`})}),mu=qa$1({id:na$1().meta({examples:[w$1.OrderRefund.id],description:`Unique identifier for this refund`}),request:su.optional().meta({description:`Request metadata supplied by Sessions or API callers`}),status:eu.meta({examples:[`PENDING`,`SUCCEEDED`],description:`Current processing status. PENDING: awaiting gateway confirmation or async processing (e.g., bank transfers). PROCESSING: gateway confirmed, ticket cancellation in progress. SUCCEEDED/FAILED: terminal states.`}),acceptedAt:Pi$1().optional().meta({examples:[w$1.OrderRefund.acceptedAt],description:`Timestamp when the payment gateway accepted the refund`}),failedAt:Pi$1().optional().meta({examples:[w$1.OrderRefund.failedAt],description:`Timestamp when the refund failed`}),failure:pu.optional().meta({description:`Failure details when the refund failed`}),price:cu.meta({description:`Refund amount breakdown`}),reason:nu.meta({examples:[`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`],description:`Categorized reason for the refund used for analytics`}),note:na$1().optional().meta({examples:[w$1.OrderRefund.note],description:`Free-form notes explaining the refund`}),items:Ga$1(ou).meta({description:`Line items included in this refund with quantities and amounts`}),tickets:lu.meta({description:`Ticket cancellation state for the refund`}),gateway:uu.meta({description:`Gateway refund identifiers`}),actor:du.meta({description:`Refund initiator`}),metadata:no$1(na$1(),na$1()).optional().meta({examples:[{supportTicket:`#12345`}],description:`Custom key-value pairs passed through to the payment gateway`}),notification:fu.meta({description:`Refund confirmation notification state`}),createdAt:Pi$1().meta({examples:[w$1.OrderRefund.createdAt],description:`Timestamp when the refund was created`})}),hu=$l.extend({exchangeRate:Ta$1().meta({examples:[1.4],description:`Conversion rate applied from the original payment currency to the settlement currency. 1.0 when both currencies are the same`})}).meta({description:`Settled price breakdown in the payout currency. All amounts from the original order price are converted using the exchange rate. For same-currency orders the values match the order price with an exchange rate of 1.0`,examples:[{base:14e3,booking:700,shipping:0,sms:0,discount:0,refunded:0,gateway:0,dispute:0,gross:14700,total:14700,net:14e3,currency:`AUD`,exchangeRate:1.4}]});function gu(t,n,i={}){return qa$1({id:na$1().meta({examples:n.idExamples,description:n.idDescription}),createdAt:Pi$1().readonly().meta({examples:n.createdAtExamples,description:`Timestamp in ISO 8601 format when this timeline entry was created`}),...i,kind:t.meta({examples:n.kindExamples,description:n.kindDescription}),editable:ka$1().meta({examples:[false],description:`Whether this timeline entry can be edited by users`}),pinned:ka$1().meta({examples:[false],description:`Whether this timeline entry is pinned to the top of the timeline`}),description:na$1().meta({examples:n.descriptionExamples,description:`Human-readable description of what happened in this timeline event`}),author:na$1().meta({examples:[`System`],description:`Name of the user or system that created this timeline entry`}),userId:na$1().optional().meta({examples:[w$1.User.id],description:n.userIdDescription??`Identifier of the user who created this timeline entry, when available`}),externalId:na$1().optional().meta({examples:n.externalIdExamples,description:n.externalIdDescription})})}const _u=io$1(`ORDER_STATUS_UPDATED.ORDER_EXPIRED.ORDER_COMPLETED.PAYMENT_INITIATED.PAYMENT_PROCESSING.PAYMENT_FAILED.PAYMENT_SUCCEEDED.REFUND_INITIATED.REFUND_PROCESSING.REFUND_SUCCEEDED.REFUND_SETTLED.REFUND_FAILED.CHARGEBACK_INITIATED.CHARGEBACK_EVIDENCE_SUBMITTED.CHARGEBACK_WON.CHARGEBACK_LOST.CHARGEBACK_FUNDS_WITHDRAWN.TICKETS_GENERATED.TICKET_ADDED.TICKETS_SCANNED.TICKET_EDITED.TICKET_STATUS_CHANGED.EMAIL_SENT.EMAIL_DELIVERED.EMAIL_OPENED.EMAIL_BOUNCED.EMAIL_COMPLAINED.EMAIL_FAILED.SMS_SENT.SMS_DELIVERED.SMS_FAILED.NOTE`.split(`.`)),vu=gu(_u,{createdAtExamples:[w$1.Order.createdAt],descriptionExamples:[`Order was created successfully`],externalIdDescription:`External idempotency key for deduplication (e.g., SES messageId + eventType)`,externalIdExamples:[`ses:01234567-89ab-cdef-0123-456789abcdef:Delivery`],idDescription:`Unique identifier of the timeline entry`,idExamples:[w$1.Timeline.id],kindDescription:`Type of timeline event (ORDER_COMPLETED, PAYMENT_SUCCEEDED, REFUND_INITIATED, etc.)`,kindExamples:[`ORDER_COMPLETED`],userIdDescription:`Identifier of the user who created this timeline entry, when available.`},{status:na$1().optional().meta({examples:[`SUCCESSFUL`],description:`Order status associated with this timeline entry, when applicable.`})}),yu=io$1([`PENDING`,`PROCESSING`,`SUCCESSFUL`,`DISPUTED`,`ABANDONED`]),q$1=qa$1({id:gn.readonly().meta({examples:[w$1.Order.id],description:`A unique identifier for this order.`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Order.createdAt],description:`Timestamp in ISO 8601 format when this order was created.`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Order.updatedAt],description:`Timestamp in ISO 8601 format when this order was last updated.`}),status:yu.meta({examples:[`PENDING`],description:`Current payment lifecycle status. PENDING: awaiting payment. PROCESSING: payment in progress. SUCCESSFUL: payment confirmed. DISPUTED: chargeback filed. ABANDONED: expired or cancelled.`}),cancellationStatus:vl.optional().meta({description:`Ticket cancellation state, independent of payment status.`}),cancellations:Ga$1(Cl).optional().meta({description:`Buyer-visible reasons and affected tickets. Available on order detail responses.`}),payment:Zl.optional().meta({description:`Payment gateway details including method, card brand, and transaction identifiers. Absent for free orders.`}),items:Ga$1(Bl).meta({description:`Line items in this order, each with a ticket type, quantity, and price breakdown.`}),fees:Ga$1(kl).meta({description:`Gateway fees recorded against this order from settlement processing (e.g. payment processing fees, dispute fees).`}),price:$l.meta({description:`Price breakdown in the event currency. This reflects what the customer was charged.`}),tax:Il.optional().meta({description:`Immutable ticket and platform fee tax settings used to calculate this order`}),settlement:hu.optional().meta({description:`Price breakdown in the payout currency with the exchange rate applied. When the event currency differs from the settlement currency, all amounts are converted. For same-currency orders the values match the order price with an exchange rate of 1.0.`}),couponCode:Tl.optional().meta({description:`Coupon code applied to this order for discount calculation.`}),customer:El.optional().meta({description:`Customer who placed this order. Absent for guest checkouts before customer details are captured.`}),marketingConsent:Vl.optional().meta({description:`Marketing opt-in choices captured during checkout.`}),timeline:Ga$1(vu).optional().meta({description:`Chronological audit trail of events for this order (payments, refunds, emails, scans).`}),refunds:Ga$1(mu).default([]).meta({description:`Refunds processed for this order including pending, succeeded, and failed attempts.`}),offers:Ga$1(Wl).default([]).meta({description:`Pre-computed add-on offers available during checkout (e.g. SMS ticket delivery).`}),customerId:bn.optional().meta({examples:[w$1.Customer.id],description:`Identifier of the customer who placed this order.`}),createdBy:El.optional().meta({description:`Admin user who created this order on behalf of the customer.`}),teamId:k$1.meta({description:`Team that owns this order.`}),promoterId:M$1.meta({examples:[w$1.Promoter.id],description:`Promoter managing this order.`}),event:Dl.meta({description:`Snapshot of the event at time of purchase (name, slug, location).`}),payoutIds:Ga$1(Cn.meta({examples:[`pay_01HQXYZ`],description:`Payout identifier.`})).meta({description:`Payout identifiers for settlements that included this order.`}),eventId:A$1.meta({examples:[w$1.Event.id],description:`Identifier of the event this order belongs to.`}),checkoutUrl:na$1().optional().readonly().meta({examples:[`https://example.com/checkout/ord_1234567890`],description:`Derived checkout URL where the customer can complete payment for this order.`}),returnUrl:na$1().optional().meta({examples:[`/orders`],description:`Frozen registered confirmation URL, tenant return, or approved native return. External web selection requires returnDestinationKey.`}),returnDestinationKey:na$1().optional(),channel:wl.optional().meta({description:`Channel metadata captured at order creation to identify origin and redirect context.`}),reservedAt:Pi$1().optional().meta({examples:[new Date().toISOString()],description:`Timestamp when inventory was reserved for this order. Used for checkout countdown timer.`})}).meta({description:`A customer order for event tickets. Tracks the full lifecycle from checkout through payment, settlement, and payout.`}),xu=qa$1({id:na$1().meta({examples:[w$1.Admission.id],description:`Admission ID reference`}),name:na$1().meta({examples:[`VIP Access`,`General Admission`,`Early Bird`],description:`Admission type name at time of purchase`}),price:qa$1({base:Ta$1().meta({description:`Base price in smallest currency unit (cents)`}),booking:Ta$1().meta({description:`Booking fee in smallest currency unit (cents)`}),currency:na$1().meta({examples:[`USD`,`EUR`,`GBP`],description:`ISO 4217 currency code`})}).meta({description:`Price snapshot at time of purchase`}),entryStartsAt:I$1.meta({description:`Wall clock time when ticket holder can enter (no timezone, displays same everywhere)`}),entryEndsAt:I$1.meta({description:`Wall clock time when entry period ends (no timezone, displays same everywhere)`})}).meta({description:`Admission details for this ticket`}),Su=qa$1({firstName:na$1().trim().min(1).meta({examples:[w$1.Customer.firstName],description:`First name of the ticket attendee`}),lastName:na$1().trim().min(1).meta({examples:[w$1.Customer.lastName],description:`Last name of the ticket attendee`}),email:ia$1().meta({examples:[w$1.Customer.email],description:`Email address of the ticket attendee`}),phone:na$1().meta({examples:[w$1.Customer.phone],description:`Phone number of the ticket attendee (optional)`}).optional()}).meta({description:`Attendee information for a ticket - can be edited by tenant admins. Defaults to the order customer details when ticket is created.`}),Cu=qa$1({id:na$1().meta({examples:[w$1.Event.id],description:`Event ID reference`}),name:na$1().meta({examples:[w$1.Event.name],description:`The title of the event shown to attendees`}),slug:na$1().meta({examples:[w$1.Event.slug],description:`URL-friendly identifier for the event`}),location:ns.meta({description:`Structured location details for the event`}),entryStartsAt:I$1.meta({examples:[w$1.Event.entryStartsAt],description:`Wall clock time when event entry begins (no timezone, displays same everywhere)`}),entryEndsAt:I$1.meta({examples:[w$1.Event.entryEndsAt],description:`Wall clock time when event entry ends (no timezone, displays same everywhere)`}),images:qa$1({mobile:F$1.meta({description:`Mobile-optimized image for the event`}),desktop:F$1.meta({description:`Desktop-optimized image for the event`})})}).meta({description:`Event details for this ticket`}),wu=qa$1({id:na$1().meta({examples:[w$1.User.id],description:`Unique identifier of the user who performed the ticket scan`}),firstName:na$1().meta({examples:[w$1.User.firstName],description:`First name of the user who performed the scan`}),lastName:na$1().meta({examples:[w$1.User.lastName],description:`Last name of the user who performed the scan`}),email:ia$1().meta({examples:[w$1.User.email],description:`Email address of the user who performed the scan`})}).meta({description:`Information about the user who scanned a ticket`}),Tu=io$1([`CHECK_IN`,`CHECK_OUT`]),Du=qa$1({id:na$1().meta({examples:[w$1.TicketScan.id],description:`Unique identifier of the ticket scan record`}),scannedAt:Pi$1().readonly().meta({examples:[w$1.TicketScan.scannedAt],description:`Timestamp when the ticket was scanned in ISO 8601 format`}),scannedById:na$1().meta({examples:[w$1.TicketScan.scannedById],description:`Unique identifier of the user who performed the scan`}),scannedBy:wu.meta({description:`Detailed information about the user who performed the scan`}),deviceId:na$1().meta({examples:[w$1.TicketScan.deviceId],description:`Unique identifier of the device used for scanning`}),kind:Tu.meta({examples:[`CHECK_IN`],description:`Type of scan operation: CHECK_IN for entry, CHECK_OUT for exit`})}).meta({description:`Record of a ticket scan operation including when, who, and what type of scan`}),Ou=qa$1({id:na$1().meta({examples:[w$1.Section.id],description:`Section ID reference`}),name:na$1().meta({examples:[`Floor Section A`,`Balcony Left`,`VIP Lounge`],description:`Section name at time of purchase`}),location:qa$1({name:na$1().meta({description:`Venue or location name`}),address:na$1().optional().meta({description:`Street address`}),city:na$1().optional().meta({description:`City name`}),state:na$1().optional().meta({description:`State or province`}),postcode:na$1().optional().meta({description:`Postal/ZIP code`}),country:na$1().optional().meta({description:`ISO country code`}),latitude:Ta$1().optional().meta({description:`Geographic latitude coordinate`}),longitude:Ta$1().optional().meta({description:`Geographic longitude coordinate`}),timeZone:na$1().optional().meta({examples:[`America/New_York`,`Europe/London`],description:`IANA timezone identifier`})}).meta({description:`Physical location details`})}).meta({description:`Section details for this ticket`}),ku=io$1([`ACTIVE`,`REDEEMED`,`CANCELLED`]),J$1=qa$1({id:na$1().readonly().meta({examples:[w$1.Ticket.id],description:`Unique identifier for the ticket`}),qrValue:ca$1().optional().meta({description:`Signed QR payload. Private to authorized ticket readers.`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Ticket.createdAt],description:`Timestamp when the ticket was created in ISO 8601 format`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Ticket.updatedAt],description:`Timestamp when the ticket was last updated in ISO 8601 format`}),scans:Ga$1(Du).meta({description:`Array of all scan records for this ticket (check-ins and check-outs)`}),status:ku.meta({examples:[`ACTIVE`],description:`Current status of the ticket: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)`}),attendee:Su.meta({description:`Attendee information for this ticket - editable by tenant admins`}),customerId:bn.meta({examples:[w$1.Ticket.customerId],description:`Unique identifier of the customer who purchased this ticket (read-only)`}),eventId:A$1.meta({examples:[w$1.Ticket.eventId],description:`Unique identifier of the event this ticket grants access to`}),event:Cu.meta({description:`Event details for this ticket`}),admissionId:N$1.meta({examples:[w$1.Ticket.admissionId],description:`Unique identifier of the admission type/tier this ticket represents`}),admission:xu.meta({description:`Admission details for this ticket`}),section:Ou.optional().meta({description:`Section details for this ticket (if assigned to a section)`}),orderId:gn.meta({examples:[w$1.Ticket.orderId],description:`Unique identifier of the order this ticket was purchased in`}),orderItemId:na$1().meta({examples:[w$1.Ticket.orderItemId],description:`Unique identifier of the specific order item this ticket represents`}).optional(),teamId:k$1.meta({examples:[w$1.Ticket.teamId],description:`Identifier of the team that owns this ticket`}),promoterId:M$1.meta({examples:[w$1.Ticket.promoterId],description:`Unique identifier of the promoter/organizer who created this event`})}).meta({description:`A ticket represents a customer's admission to an event. It tracks the purchase, scanning history, and current status.`}),ju=qa$1({id:na$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order to retrieve`}),signature:Ar.optional().meta({description:`HMAC signature for public order access (16 characters, base64url encoded)`})}),Mu=ju.required().extend({cursor:na$1().max(4096).optional().meta({description:`Opaque cursor from the previous page of tickets.`})}).strict().meta({description:`Signed request for an order's confirmation and its QR tickets.`}),Nu=qa$1({expectedTicketCount:Ta$1().int().nonnegative().meta({description:`Total tickets this order will have once issuing completes, across all pages.`}),order:q$1.pick({id:true,status:true,event:true,createdAt:true,items:true,price:true,returnDestinationKey:true,returnUrl:true}).extend({refunds:Ga$1(mu.pick({id:true,status:true,price:true,createdAt:true}))}),tickets:Ga$1(J$1.pick({id:true,status:true,admission:true}).extend({qrValue:ca$1().meta({description:`Signed QR payload. Private to the ticket holder.`})})),nextCursor:na$1().optional().meta({description:`Cursor for the next page of tickets. Omitted on the last.`})}).meta({description:`An order's confirmation with its issued QR tickets and refund history.`}),Pu=q$1.pick({id:true,createdAt:true,status:true}).extend({price:q$1.shape.price.pick({total:true,currency:true,refunded:true}),event:q$1.shape.event.pick({id:true,name:true,slug:true})}).meta({description:`One purchase in the current buyer's history for the website's account Team.`}),Fu=Ja$1({cursor:na$1().max(16384).optional().meta({description:`Opaque cursor from the previous page.`}),limit:Ta$1().int().min(1).max(25).default(20).meta({description:`Maximum purchases to return.`})}).meta({description:`Page request for the current buyer's purchases.`}),Iu=qa$1({teamId:k$1,orders:Ga$1(Pu),nextCursor:na$1().optional().meta({description:`Cursor for the next page. Omitted on the last page.`})}).meta({description:`A page of the current buyer's purchases for the website's account Team.`}),Lu=Ja$1({id:gn,cursor:na$1().max(16384).optional().meta({description:`Opaque cursor from the purchase list.`})}).meta({description:`Reference to one of the current buyer's purchases.`}),Ru=Nu.extend({teamId:k$1,order:Pu.extend({event:q$1.shape.event,items:q$1.shape.items,refunds:Nu.shape.order.shape.refunds})}).meta({description:`Full detail for one purchase the current buyer owns.`}),zu=Lu.omit({cursor:true}).extend({ticketId:_n,provider:io$1([`apple`,`google`]).meta({description:`Wallet provider the pass is requested for.`})}).meta({description:`Request for a wallet pass on a purchase the buyer owns.`}),Bu=Qa$1(`provider`,[qa$1({teamId:k$1,provider:oo$1(`apple`),data:na$1().max(4e6).meta({description:`Base64-encoded Apple Wallet pass. Do not cache or log.`})}),qa$1({teamId:k$1,provider:oo$1(`google`),url:ca$1().meta({description:`Validated Google Wallet save URL.`})})]).meta({description:`An approved wallet pass, returned only to the buyer who owns the ticket.`}),Vu=qa$1({id:na$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order to add a note to`}),note:na$1().min(1).max(1e3).meta({examples:[`Customer requested special seating arrangements`],description:`Note text content (1-1000 characters)`})}),Hu=qa$1({id:gn,cancelOrder:ka$1().optional().meta({description:`Close the order and cancel all its tickets. Omit or use false to cancel tickets while allowing replacement issuance.`}),ticketIds:Ga$1(_n).min(1).max(500).optional().meta({description:`Tickets to cancel. Omit to cancel every ticket on the order.`}),idempotencyKey:na$1().min(1).max(128).meta({description:`Stable key for this cancellation. Reuse when retrying.`}),reason:yl.meta({description:`Reason shown to the buyer and included in their email when notification is enabled, 1–500 characters after trimming.`}),notify:ka$1().default(true).meta({description:`Email the order buyer after cancellation.`})}),Uu=zl.omit({id:true,price:true,kind:true}).extend({id:na$1().optional().meta({examples:[`itm_01jps5cgsfwyxj0516571eaf17`],description:`Unique identifier for this order item. When omitted, the server assigns an id during processing`})}),Wu=qa$1({eventId:na$1().meta({description:`Unique identifier of the event for which to create a complimentary order`}),items:Ga$1(Uu).min(1).meta({description:`Admission items to include in the complimentary order`}),customer:qa$1({firstName:na$1().min(1),lastName:na$1().min(1),email:ia$1()}),notifyCustomer:ka$1().default(true).meta({description:`Whether to send the standard order confirmation email after tickets are generated`}),reason:na$1().min(1),idempotencyKey:na$1().trim().min(1).max(255).optional()}),Gu=io$1([`MEMBER_SIGN_IN_REQUIRED`,`MEMBERSHIP_REQUIRED`,`MEMBER_BENEFIT_USED`]);qa$1({reason:Gu}).meta({description:`Why a coupon code could not be applied, when the checkout can act on it`});const Ju=qa$1({postHogDistinctId:na$1().min(1).max(256).optional()}),Yu=qa$1({eventId:na$1().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Unique identifier of the event for which to create the order`}),items:Ga$1(Uu).meta({description:`List of items to include in the new order`}),couponCode:na$1().optional().meta({examples:[`TEST50`],description:`Optional coupon code to apply discount to the order`}),returnUrl:na$1().optional().meta({examples:[`/orders`],description:`Optional tenant-relative, same-tenant-origin, or explicitly approved native return URL. External web returns require returnDestinationKey.`}),returnDestinationKey:na$1().min(1).max(80).optional().meta({description:`Registered checkout confirmation destination, fixed when the order is created.`}),channel:wl.optional().meta({description:`Optional channel metadata for where the order originated (for attribution and redirect routing).`}),analytics:Ju.optional().meta({description:`Optional browser analytics metadata used for cross-domain checkout attribution.`}),idempotencyKey:na$1().trim().min(1).max(255).optional().meta({description:`Optional key that makes repeated order creation requests return the same order.`})}),Xu=qa$1({id:na$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order`}),noteId:na$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to delete`})}),Zu=io$1([`EMAIL`,`SMS`]).meta({examples:[`EMAIL`],description:`Method used to deliver tickets to the customer: EMAIL or SMS`});qa$1({id:na$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order to edit`}),signature:Ar.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for editing order items.`}),items:Ga$1(Uu).min(1).meta({description:`Updated list of items for the order (replaces existing items). Prices will be recalculated and payment intent updated.`})});const $u=io$1([`STATUS`,`CANCELLATION_STATUS`,`DELIVERY_METHOD`,`CUSTOMER_EMAIL`,`CUSTOMER_PHONE`,`COUPON_CODE`,`PAYMENT_SOURCE`,`PAYMENT_METHOD`,`CURRENCY`,`CREATED_AT`,`UPDATED_AT`,`RESERVED_AT`,`TOTAL`,`TICKETS`,`ORDER_ID`,`CUSTOMER_ID`,`EVENT_ID`,`PROMOTER_ID`,`PAYOUT_ID`]),ed=io$1([`IS`,`IS_NOT`,`IS_ANY_OF`,`CONTAINS`,`IS_EMPTY`,`IS_NOT_EMPTY`,`BETWEEN`,`GTE`,`LTE`]),td=new Set([`IS_EMPTY`,`IS_NOT_EMPTY`]),nd=new Set([`IS_ANY_OF`]),rd=new Set([`IS`,`IS_NOT`,`CONTAINS`,`GTE`,`LTE`]),id=new Set([`BETWEEN`]),ad={CANCELLATION_STATUS:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`,`IS_EMPTY`]),STATUS:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`]),DELIVERY_METHOD:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`]),CUSTOMER_EMAIL:new Set([`IS`,`IS_NOT`,`CONTAINS`,`IS_EMPTY`,`IS_NOT_EMPTY`]),CUSTOMER_PHONE:new Set([`IS`,`IS_NOT`,`CONTAINS`,`IS_EMPTY`,`IS_NOT_EMPTY`]),COUPON_CODE:new Set([`IS`,`IS_NOT`,`CONTAINS`,`IS_EMPTY`,`IS_NOT_EMPTY`]),PAYMENT_SOURCE:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`,`IS_EMPTY`]),PAYMENT_METHOD:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`,`IS_EMPTY`]),CURRENCY:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`]),CREATED_AT:new Set([`BETWEEN`,`GTE`,`LTE`]),UPDATED_AT:new Set([`BETWEEN`,`GTE`,`LTE`]),RESERVED_AT:new Set([`BETWEEN`,`GTE`,`LTE`,`IS_EMPTY`,`IS_NOT_EMPTY`]),TOTAL:new Set([`BETWEEN`,`GTE`,`LTE`]),TICKETS:new Set([`BETWEEN`,`GTE`,`LTE`]),ORDER_ID:new Set([`IS`,`IS_NOT`,`CONTAINS`]),CUSTOMER_ID:new Set([`IS`,`IS_NOT`,`IS_EMPTY`,`IS_NOT_EMPTY`]),EVENT_ID:new Set([`IS`,`IS_NOT`]),PROMOTER_ID:new Set([`IS`,`IS_NOT`]),PAYOUT_ID:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`,`IS_EMPTY`])},od={STATUS:yu,CANCELLATION_STATUS:vl,DELIVERY_METHOD:Zu,PAYMENT_SOURCE:Yl,PAYMENT_METHOD:Gl},sd=new Set([`CREATED_AT`,`UPDATED_AT`,`RESERVED_AT`]),cd=new Set([`TOTAL`,`TICKETS`]),ld=qa$1({field:$u,operator:ed,values:Ga$1(na$1()).max(20)}).superRefine((e,t)=>{ad[e.field].has(e.operator)||t.addIssue({code:`custom`,path:[`operator`],message:`${e.operator} is not supported for ${e.field}`}),ud(e,t),dd(e,t),fd(e,t),pd(e,t);});function ud(e,t){let n=e.values.length;td.has(e.operator)&&n!==0&&t.addIssue({code:`custom`,path:[`values`],message:`${e.operator} does not accept values`}),rd.has(e.operator)&&n!==1&&t.addIssue({code:`custom`,path:[`values`],message:`${e.operator} requires exactly one value`}),nd.has(e.operator)&&n<1&&t.addIssue({code:`custom`,path:[`values`],message:`${e.operator} requires at least one value`}),id.has(e.operator)&&n!==2&&t.addIssue({code:`custom`,path:[`values`],message:`${e.operator} requires exactly two values`});}function dd(e,t){let n=od[e.field];n&&e.values.forEach((r,i)=>{n.safeParse(r).success||t.addIssue({code:`custom`,path:[`values`,i],message:`${r} is not valid for ${e.field}`});});}function fd(e,t){sd.has(e.field)&&e.values.forEach((e,n)=>{Number.isNaN(Date.parse(e))&&t.addIssue({code:`custom`,path:[`values`,n],message:`${e} is not a valid date`});});}function pd(e,t){cd.has(e.field)&&e.values.forEach((e,n)=>{/^-?\d+$/.test(e)||t.addIssue({code:`custom`,path:[`values`,n],message:`${e} is not a valid integer`});});}const md=`Either locationId or googlePlaceId must be provided`,hd={locationId:mn.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location. Either locationId or googlePlaceId must be provided.`}),googlePlaceId:na$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided.`})};function gd(e){return !!(e.locationId||e.googlePlaceId)}const _d=K$1.omit({id:true,createdAt:true,updatedAt:true,order:true,available:true,sold:true,reserved:true,visibility:true,promoterId:true,eventSlug:true,location:true}).extend({order:Ta$1().optional().meta({examples:[w$1.Section.order],description:`Display order of the section. Lower numbers appear first in listings. Defaults to 0 if not specified`}),visibility:K$1.shape.visibility.optional(),...hd}).refine(gd,{message:md}).meta({description:`Schema for creating a new section within an event venue. Excludes system-generated fields and fields derived from the event`}),vd=K$1.pick({id:true}).extend({eventId:na$1().meta({examples:[w$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`})}).meta({description:`Schema for soft-deleting a section by setting its deletedAt timestamp`}),yd=K$1.pick({id:true}).extend({eventId:na$1().meta({examples:[w$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`})}).meta({description:`Schema for retrieving a specific section by ID`}),bd=Ja$1({eventId:K$1.shape.eventId,query:na$1().max(120).optional().meta({examples:[`VIP`],description:`Optional search query. When provided, automatically uses search-backed pagination for full-text search capabilities`}),limit:T$1().min(1).max(100).prefault(20).meta({examples:[20],description:`Maximum number of sections to return in each result set. Must be between 1 and 100, defaults to 20`}),cursor:na$1().max(768).optional().meta({examples:[`eyJpbnRlbnQiOnsicmVzb3VyY2UiOiJzZWN0aW9uLmxpc3QifSwicG9zaXRpb24iOnsiZW5naW5lIjoiZHluYW1vIiwgImN1cnNvciI6InNlY18wMWpwczVjZ3NlMGczcWo1NnZkODZ6N3FqIiwgImhpc3RvcnkiOltdfX0=`],description:`Opaque pagination cursor from a previous response. Provide to continue fetching subsequent results`})}).meta({description:`Schema for listing sections with cursor-based pagination. Automatically uses search-backed pagination when query parameter is provided`}),xd=B$1(K$1,`sections`),Sd=qa$1({section:K$1}),Cd=K$1.omit({promoterId:true,createdAt:true,updatedAt:true,eventSlug:true,available:true,sold:true,reserved:true,location:true,teamId:true,name:true,capacity:true,limit:true,order:true}).extend({id:na$1().meta({examples:[w$1.Section.id],description:`Unique identifier of the section to update`}),eventId:na$1().meta({examples:[w$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`}),name:K$1.shape.name.optional(),capacity:Mn().optional(),limit:Nn().optional(),order:K$1.shape.order.optional(),visibility:io$1([`ALWAYS`,`STACKED`,`HIDDEN`]).optional(),locationId:mn.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:na$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`})}).meta({description:`Schema for updating an existing section.`}),wd=Bl.safeExtend({admission:z$1.optional().meta({description:`Complete admission details for this order item when available`}),section:K$1.optional().meta({description:`Complete section details for this order item when applicable`})}),Td=io$1([`UPDATED_AT`,`CREATED_AT`,`EVENT_NAME`,`TOTAL`,`STATUS`,`CUSTOMER_NAME`,`PAYMENT_SOURCE`,`COUPON_CODE`,`TICKETS`,`DELIVERY_METHOD`,`CUSTOMER_EMAIL`,`CUSTOMER_PHONE`,`ORDER_ID`]),Ed=io$1([`asc`,`desc`]),Dd=qa$1({mine:ka$1().optional().meta({examples:[true],description:`When true, returns only the authenticated user's orders. Can be combined with teamId or eventId to further filter results.`}),teamId:na$1().optional().meta({description:`Filter orders by team unique identifier`}),eventId:na$1().optional().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Filter orders by event unique identifier`}),status:yu.optional().meta({examples:[`SUCCESSFUL`],description:`Filter orders by payment status`}),query:na$1().optional().meta({examples:[`John Doe`],description:`Optional search query to filter orders by customer details. When provided, search-backed pagination is used.`}),includeEventTerms:ka$1().optional().meta({examples:[true],description:`When true for authenticated user-owned order searches, also matches event name, slug, and location unless eventId is already provided.`}),filters:Ga$1(ld).max(10).optional().meta({description:`Optional advanced filters for order lists.`}),sort:Td.optional().meta({examples:[`UPDATED_AT`,`CREATED_AT`,`CUSTOMER_NAME`],description:`Field to sort order lists by.`}),direction:Ed.optional().meta({examples:[`asc`,`desc`],description:"Sort direction for order lists. Defaults to `desc` when omitted."}),from:na$1().date().optional().meta({examples:[`2025-01-01`],description:`Filter orders created on or after this date (YYYY-MM-DD format). Inclusive of the entire day.`}),to:na$1().date().optional().meta({examples:[`2025-12-31`],description:`Filter orders created on or before this date (YYYY-MM-DD format). Inclusive of the entire day.`}),limit:L$1(`orders`),cursor:na$1().optional().meta({examples:[`eyJpZCI6Im9yZF8wMWpwczVjZ3NmZ3ZlNWI1ZzI2NjZreXJ5aCJ9`],description:`Pagination cursor for continuing to fetch subsequent results`})}),Od=B$1(q$1,`orders`),kd=qa$1({items:Ga$1(wd).meta({description:`List of order items with complete pricing and admission details`}),price:$l.meta({description:`Total pricing breakdown for the entire order quote`}),couponCode:Ro.optional().meta({description:`Applied coupon code details if a discount was used in this quote`}),stripeConnectAvailability:ls.optional().meta({description:`Stripe Connect availability metadata for tenant checkout UI.`})}),Ad=qa$1({eventId:na$1().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Unique identifier of the event for which to generate a price quote`}),items:Ga$1(Uu).meta({description:`List of items to include in the price quote calculation`}),couponCode:na$1().optional().meta({examples:[`TEST50`],description:`Optional coupon code to apply discount to the quote`})}),jd=qa$1({quote:kd}),Md=qa$1({orderItemId:na$1().meta({examples:[w$1.OrderRefundItem.orderItemId],description:`Identifier of the order item to refund`}),quantity:Da$1().min(1).meta({examples:[w$1.OrderRefundItem.quantity],description:`Number of units to refund for this item`})}),Nd=qa$1({id:gn.meta({examples:[w$1.Order.id],description:`Identifier of the order to refund`}),fullRefund:ka$1().default(false).meta({examples:[false],description:`When true, refunds all remaining refundable items. Mutually exclusive with items.`}),items:Ga$1(Md).optional().meta({description:`Specific items and quantities to refund. Required if fullRefund is false.`}),shippingAmount:Da$1().min(0).optional().meta({examples:[500],description:`Amount of shipping to refund in cents. Cannot exceed remaining refundable shipping.`}),cancelTickets:ka$1().default(true).meta({examples:[true],description:`Whether to cancel tickets associated with refunded items. Defaults to true.`}),notify:ka$1().default(true).meta({examples:[true],description:`Whether to send a refund confirmation email to the customer. Defaults to true.`}),reason:nu.meta({examples:[`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`],description:`Categorized reason for the refund`}),note:na$1().optional().meta({examples:[`Customer requested refund due to schedule conflict`],description:`Free-form notes explaining the refund`}),idempotencyKey:na$1().optional().meta({examples:[`refund_12345_customer_request`],description:`Client-provided key to prevent duplicate refund processing. Recommended for programmatic refunds.`}),metadata:no$1(na$1(),na$1()).optional().meta({examples:[{supportTicket:`#12345`}],description:`Custom key-value pairs passed through to the payment gateway`})}),Pd=qa$1({refund:mu}),Fd=qa$1({id:na$1().meta({examples:[w$1.Order.id],description:`Order ID to resend tickets for`}),email:na$1().email().optional().meta({examples:[`customer@example.com`],description:`Email address to send tickets to. If not provided, uses order.customer.email`})}),Id=qa$1({id:na$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order to reserve inventory for`}),signature:Ar.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded).`})}),Ld=`ORDER_NOT_RESERVABLE`,Rd=qa$1({code:oo$1(Ld)}),zd=qa$1({order:q$1}),Bd=qa$1({order:q$1.extend({userId:j$1.meta({description:`The verified buyer who owns this purchase`})})}).meta({description:`An order created for the authenticated buyer`});var Vd={version:4,country_calling_codes:{1:[`US`,`AG`,`AI`,`AS`,`BB`,`BM`,`BS`,`CA`,`DM`,`DO`,`GD`,`GU`,`JM`,`KN`,`KY`,`LC`,`MP`,`MS`,`PR`,`SX`,`TC`,`TT`,`VC`,`VG`,`VI`],7:[`RU`,`KZ`],20:[`EG`],27:[`ZA`],30:[`GR`],31:[`NL`],32:[`BE`],33:[`FR`],34:[`ES`],36:[`HU`],39:[`IT`,`VA`],40:[`RO`],41:[`CH`],43:[`AT`],44:[`GB`,`GG`,`IM`,`JE`],45:[`DK`],46:[`SE`],47:[`NO`,`SJ`],48:[`PL`],49:[`DE`],51:[`PE`],52:[`MX`],53:[`CU`],54:[`AR`],55:[`BR`],56:[`CL`],57:[`CO`],58:[`VE`],60:[`MY`],61:[`AU`,`CC`,`CX`],62:[`ID`],63:[`PH`],64:[`NZ`],65:[`SG`],66:[`TH`],81:[`JP`],82:[`KR`],84:[`VN`],86:[`CN`],90:[`TR`],91:[`IN`],92:[`PK`],93:[`AF`],94:[`LK`],95:[`MM`],98:[`IR`],211:[`SS`],212:[`MA`,`EH`],213:[`DZ`],216:[`TN`],218:[`LY`],220:[`GM`],221:[`SN`],222:[`MR`],223:[`ML`],224:[`GN`],225:[`CI`],226:[`BF`],227:[`NE`],228:[`TG`],229:[`BJ`],230:[`MU`],231:[`LR`],232:[`SL`],233:[`GH`],234:[`NG`],235:[`TD`],236:[`CF`],237:[`CM`],238:[`CV`],239:[`ST`],240:[`GQ`],241:[`GA`],242:[`CG`],243:[`CD`],244:[`AO`],245:[`GW`],246:[`IO`],247:[`AC`],248:[`SC`],249:[`SD`],250:[`RW`],251:[`ET`],252:[`SO`],253:[`DJ`],254:[`KE`],255:[`TZ`],256:[`UG`],257:[`BI`],258:[`MZ`],260:[`ZM`],261:[`MG`],262:[`RE`,`YT`],263:[`ZW`],264:[`NA`],265:[`MW`],266:[`LS`],267:[`BW`],268:[`SZ`],269:[`KM`],290:[`SH`,`TA`],291:[`ER`],297:[`AW`],298:[`FO`],299:[`GL`],350:[`GI`],351:[`PT`],352:[`LU`],353:[`IE`],354:[`IS`],355:[`AL`],356:[`MT`],357:[`CY`],358:[`FI`,`AX`],359:[`BG`],370:[`LT`],371:[`LV`],372:[`EE`],373:[`MD`],374:[`AM`],375:[`BY`],376:[`AD`],377:[`MC`],378:[`SM`],380:[`UA`],381:[`RS`],382:[`ME`],383:[`XK`],385:[`HR`],386:[`SI`],387:[`BA`],389:[`MK`],420:[`CZ`],421:[`SK`],423:[`LI`],500:[`FK`],501:[`BZ`],502:[`GT`],503:[`SV`],504:[`HN`],505:[`NI`],506:[`CR`],507:[`PA`],508:[`PM`],509:[`HT`],590:[`GP`,`BL`,`MF`],591:[`BO`],592:[`GY`],593:[`EC`],594:[`GF`],595:[`PY`],596:[`MQ`],597:[`SR`],598:[`UY`],599:[`CW`,`BQ`],670:[`TL`],672:[`NF`],673:[`BN`],674:[`NR`],675:[`PG`],676:[`TO`],677:[`SB`],678:[`VU`],679:[`FJ`],680:[`PW`],681:[`WF`],682:[`CK`],683:[`NU`],685:[`WS`],686:[`KI`],687:[`NC`],688:[`TV`],689:[`PF`],690:[`TK`],691:[`FM`],692:[`MH`],850:[`KP`],852:[`HK`],853:[`MO`],855:[`KH`],856:[`LA`],880:[`BD`],886:[`TW`],960:[`MV`],961:[`LB`],962:[`JO`],963:[`SY`],964:[`IQ`],965:[`KW`],966:[`SA`],967:[`YE`],968:[`OM`],970:[`PS`],971:[`AE`],972:[`IL`],973:[`BH`],974:[`QA`],975:[`BT`],976:[`MN`],977:[`NP`],992:[`TJ`],993:[`TM`],994:[`AZ`],995:[`GE`],996:[`KG`],998:[`UZ`]},countries:{AC:[`247`,`00`,`(?:[01589]\\d|[46])\\d{4}`,[5,6]],AD:[`376`,`00`,`(?:1|6\\d)\\d{7}|[135-9]\\d{5}`,[6,8,9],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`[135-9]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`1`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]]]],AE:[`971`,`00`,`(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}`,[5,6,7,8,9,10,11,12],[[`(\\d{3})(\\d{2,9})`,`$1 $2`,[`60|8`]],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[236]|[479][2-8]`],`0$1`],[`(\\d{3})(\\d)(\\d{5})`,`$1 $2 $3`,[`[479]`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`5`],`0$1`]],`0`],AF:[`93`,`00`,`[2-7]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-7]`],`0$1`]],`0`],AG:[`1`,`011`,`(?:268|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([457]\\d{6})$|1`,`268$1`,0,`268`],AI:[`1`,`011`,`(?:264|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2457]\\d{6})$|1`,`264$1`,0,`264`],AL:[`355`,`00`,`(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}`,[6,7,8,9],[[`(\\d{3})(\\d{3,4})`,`$1 $2`,[`80|9`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`4[2-6]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2358][2-5]|4`],`0$1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[23578]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`6`],`0$1`]],`0`],AM:[`374`,`00`,`(?:[1-489]\\d|55|60|77)\\d{6}`,[8],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[89]0`],`0 $1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`2|3[12]`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`1|47`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[3-9]`],`0$1`]],`0`],AO:[`244`,`00`,`[29]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[29]`]]]],AR:[`54`,`00`,`(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}`,[10,11],[[`(\\d{4})(\\d{2})(\\d{4})`,`$1 $2-$3`,[`2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])`,`2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)`,`2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]`,`2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]`],`0$1`,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2-$3`,[`1`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[68]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2-$3`,[`[23]`],`0$1`,1],[`(\\d)(\\d{4})(\\d{2})(\\d{4})`,`$2 15-$3-$4`,[`9(?:2[2-469]|3[3-578])`,`9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))`,`9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)`,`9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]`,`9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]`],`0$1`,0,`$1 $2 $3-$4`],[`(\\d)(\\d{2})(\\d{4})(\\d{4})`,`$2 15-$3-$4`,[`91`],`0$1`,0,`$1 $2 $3-$4`],[`(\\d{3})(\\d{3})(\\d{5})`,`$1-$2-$3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{4})`,`$2 15-$3-$4`,[`9`],`0$1`,0,`$1 $2 $3-$4`]],`0`,0,`0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?`,`9$1`],AS:[`1`,`011`,`(?:[58]\\d\\d|684|900)\\d{7}`,[10],0,`1`,0,`([267]\\d{6})$|1`,`684$1`,0,`684`],AT:[`43`,`00`,`1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}`,[4,5,6,7,8,9,10,11,12,13],[[`(\\d)(\\d{3,12})`,`$1 $2`,[`1(?:11|[2-9])`],`0$1`],[`(\\d{3})(\\d{2})`,`$1 $2`,[`517`],`0$1`],[`(\\d{2})(\\d{3,5})`,`$1 $2`,[`5[079]`],`0$1`],[`(\\d{3})(\\d{3,10})`,`$1 $2`,[`(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]`,`(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]`],`0$1`],[`(\\d{4})(\\d{3,9})`,`$1 $2`,[`[2-467]|5[2-6]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4,7})`,`$1 $2 $3`,[`5`],`0$1`]],`0`],AU:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}`,[5,6,7,8,9,10,12],[[`(\\d{2})(\\d{3,4})`,`$1 $2`,[`16`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`16`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`14|4`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[2378]`],`(0$1)`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1(?:30|[89])`]]],`0`,0,`(183[12])|0`,0,0,0,[[`(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,[`163\\d{2,6}`,[5,6,7,8,9]],[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],AW:[`297`,`00`,`(?:[25-79]\\d\\d|800)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[25-9]`]]]],AX:[`358`,`00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))`,`2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}`,[5,6,7,8,9,10,11,12],0,`0`,0,0,0,0,`18`,0,`00`],AZ:[`994`,`00`,`365\\d{6}|(?:[124579]\\d|60|88)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`90`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[28]|2|365|46`,`1[28]|2|365[45]|46`,`1[28]|2|365(?:4|5[02])|46`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[13-9]`],`0$1`]],`0`],BA:[`387`,`00`,`6\\d{8}|(?:[35689]\\d|49|70)\\d{6}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6[1-3]|[7-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2-$3`,[`[3-5]|6[56]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`6`],`0$1`]],`0`],BB:[`1`,`011`,`(?:246|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`246$1`,0,`246`],BD:[`880`,`00`,`[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}`,[6,7,8,9,10],[[`(\\d{2})(\\d{4,6})`,`$1-$2`,[`31[5-8]|[459]1`],`0$1`],[`(\\d{3})(\\d{3,7})`,`$1-$2`,[`3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]`],`0$1`],[`(\\d{4})(\\d{3,6})`,`$1-$2`,[`[13-9]|2[23]`],`0$1`],[`(\\d)(\\d{7,8})`,`$1-$2`,[`2`],`0$1`]],`0`],BE:[`32`,`00`,`4\\d{8}|[1-9]\\d{7}`,[8,9],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`(?:80|9)0`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[239]|4[23]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[15-8]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`4`],`0$1`]],`0`],BF:[`226`,`00`,`[024-7]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[024-7]`]]]],BG:[`359`,`00`,`00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}`,[6,7,8,9,12],[[`(\\d)(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`2`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`43[1-6]|70[1-9]`],`0$1`],[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,3})`,`$1 $2 $3`,[`[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`(?:70|8)0`],`0$1`],[`(\\d{3})(\\d{3})(\\d{2})`,`$1 $2 $3`,[`43[1-7]|7`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[48]|9[08]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],BH:[`973`,`00`,`[136-9]\\d{7}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[13679]|8[02-4679]`]]]],BI:[`257`,`00`,`(?:[267]\\d|31)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2367]`]]]],BJ:[`229`,`00`,`(?:01\\d|8)\\d{7}`,[8,10],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`0`]]]],BL:[`590`,`00`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],BM:[`1`,`011`,`(?:441|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`441$1`,0,`441`],BN:[`673`,`00`,`[2-578]\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-578]`]]]],BO:[`591`,`00(?:1\\d)?`,`(?:[2-7]\\d\\d|8001)\\d{5}`,[8,9],[[`(\\d)(\\d{7})`,`$1 $2`,[`[23]|4[46]|50`]],[`(\\d{8})`,`$1`,[`[5-7]`]],[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`8`]]],`0`,0,`0(1\\d)?`],BQ:[`599`,`00`,`(?:[34]1|7\\d)\\d{5}`,[7],0,0,0,0,0,0,`[347]`],BR:[`55`,`00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)`,`[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}`,[8,9,10,11],[[`(\\d{4})(\\d{4})`,`$1-$2`,[`300|4(?:0[02]|37|86)`,`300|4(?:0(?:0|20)|370|864)`]],[`(\\d{3})(\\d{2,3})(\\d{4})`,`$1 $2 $3`,[`(?:[358]|90)0`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2-$3`,[`(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]`],`($1)`],[`(\\d{2})(\\d{5})(\\d{4})`,`$1 $2-$3`,[`[16][1-9]|[2-57-9]`],`($1)`]],`0`,0,`(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?`,`$2`],BS:[`1`,`011`,`(?:242|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([3-8]\\d{6})$|1`,`242$1`,0,`242`],BT:[`975`,`00`,`[178]\\d{7}|[2-8]\\d{6}`,[7,8],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-6]|7[246]|8[2-4]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[67]|[78]`]]]],BW:[`267`,`00`,`(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}`,[7,8,10],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`90`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[24-6]|3[15-9]`]],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[37]`]],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`8`]]]],BY:[`375`,`810`,`(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}`,[6,7,8,9,10,11],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`800`],`8 $1`],[`(\\d{3})(\\d{2})(\\d{2,4})`,`$1 $2 $3`,[`800`],`8 $1`],[`(\\d{4})(\\d{2})(\\d{3})`,`$1 $2-$3`,[`1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])`,`1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])`],`8 0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`1(?:[56]|7[467])|2[1-3]`],`8 0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[1-4]`],`8 0$1`],[`(\\d{3})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`[89]`],`8 $1`]],`8`,0,`0|80?`,0,0,0,0,`8~10`],BZ:[`501`,`00`,`(?:0800\\d|[2-8])\\d{6}`,[7,11],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[2-8]`]],[`(\\d)(\\d{3})(\\d{4})(\\d{3})`,`$1-$2-$3-$4`,[`0`]]]],CA:[`1`,`011`,`[2-9]\\d{9}|3\\d{6}`,[7,10],0,`1`,0,0,0,0,0,[[`(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}`,[10]],[``,[10]],[`8(?:00|33|44|55|66|77|88)[2-9]\\d{6}`,[10]],[`900[2-9]\\d{6}`,[10]],[`52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}`,[10]],0,[`310\\d{4}`,[7]],0,[`600[2-9]\\d{6}`,[10]]]],CC:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}`,[6,7,8,9,10,12],0,`0`,0,`([59]\\d{7})$|0`,`8$1`,0,0,[[`8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,0,[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],CD:[`243`,`00`,`(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}`,[7,8,9,10],[[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`88`],`0$1`],[`(\\d{2})(\\d{5})`,`$1 $2`,[`[1-6]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`5`],`0$1`]],`0`],CF:[`236`,`00`,`8776\\d{4}|(?:[27]\\d|61)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[26-8]`]]]],CG:[`242`,`00`,`222\\d{6}|(?:0\\d|80)\\d{7}`,[9],[[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[02]`]]]],CH:[`41`,`00`,`8\\d{11}|[2-9]\\d{8}`,[9,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8[047]|90`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-79]|81`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`8`],`0$1`]],`0`],CI:[`225`,`00`,`[02]\\d{9}`,[10],[[`(\\d{2})(\\d{2})(\\d)(\\d{5})`,`$1 $2 $3 $4`,[`2`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3 $4`,[`0`]]]],CK:[`682`,`00`,`[2-578]\\d{4}`,[5],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`[2-578]`]]]],CL:[`56`,`(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0`,`12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}`,[9,10,11],[[`(\\d{5})(\\d{4})`,`$1 $2`,[`219`,`2196`],`($1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`60|809`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`44`]],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2[1-36]`],`($1)`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`9(?:10|[2-9])`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])`],`($1)`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`60|8`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]],[`(\\d{3})(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`60`]]]],CM:[`237`,`00`,`[26]\\d{8}|88\\d{6,7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`88`]],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[26]|88`]]]],CN:[`86`,`00|1(?:[12]\\d|79)\\d\\d00`,`(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}`,[7,8,9,10,11,12],[[`(\\d{2})(\\d{5,6})`,`$1 $2`,[`(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]`,`(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123`],`0$1`],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]`,`(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]`,`85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])`,`85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`(?:4|80)0`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`10|2(?:[02-57-9]|1[1-9])`,`10|2(?:[02-57-9]|1[1-9])`,`10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]`],`0$1`,1],[`(\\d{3})(\\d{7,8})`,`$1 $2`,[`9`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`80`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[3-578]`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`1[3-9]`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`[12]`],`0$1`,1]],`0`,0,`(1(?:[12]\\d|79)\\d\\d)|0`,0,0,0,0,`00`],CO:[`57`,`00(?:4(?:[14]4|56)|[579])`,`(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}`,[8,10,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`46`]],[`(\\d{3})(\\d{7})`,`$1 $2`,[`6|90`],`($1)`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`3[0-357]|9[14]`]],[`(\\d)(\\d{3})(\\d{7})`,`$1-$2-$3`,[`1`],`0$1`,0,`$1 $2 $3`]],`0`,0,`0([3579]|4(?:[14]4|56))?`],CR:[`506`,`00`,`(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}`,[8,10],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-7]|8[3-9]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[89]`]]],0,0,`(19(?:0[0-2468]|1[09]|20|66|77|99))`],CU:[`53`,`119`,`(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}`,[6,7,8,10],[[`(\\d{2})(\\d{4,6})`,`$1 $2`,[`2[1-4]|[34]`],`(0$1)`],[`(\\d)(\\d{6,7})`,`$1 $2`,[`7`],`(0$1)`],[`(\\d)(\\d{7})`,`$1 $2`,[`[56]`],`0$1`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`8`],`0$1`]],`0`],CV:[`238`,`0`,`(?:[2-59]\\d\\d|800)\\d{4}`,[7],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2-589]`]]]],CW:[`599`,`00`,`(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[3467]`]],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9[4-8]`]]],0,0,0,0,0,`[69]`],CX:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}`,[6,7,8,9,10,12],0,`0`,0,`([59]\\d{7})$|0`,`8$1`,0,0,[[`8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,0,[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],CY:[`357`,`00`,`(?:[279]\\d|[58]0)\\d{6}`,[8],[[`(\\d{2})(\\d{6})`,`$1 $2`,[`[257-9]`]]]],CZ:[`420`,`00`,`(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}`,[9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-8]|9[015-7]`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{2})`,`$1 $2 $3 $4`,[`96`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]]]],DE:[`49`,`00`,`[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}`,[4,5,6,7,8,9,10,11,12,13,14,15],[[`(\\d{2})(\\d{3,13})`,`$1 $2`,[`3[02]|40|[68]9`],`0$1`],[`(\\d{3})(\\d{3,12})`,`$1 $2`,[`2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1`,`2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1`],`0$1`],[`(\\d{4})(\\d{2,11})`,`$1 $2`,[`[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]`,`[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`138`],`0$1`],[`(\\d{5})(\\d{2,10})`,`$1 $2`,[`3`],`0$1`],[`(\\d{3})(\\d{5,11})`,`$1 $2`,[`181`],`0$1`],[`(\\d{3})(\\d)(\\d{4,10})`,`$1 $2 $3`,[`1(?:3|80)|9`],`0$1`],[`(\\d{3})(\\d{7,8})`,`$1 $2`,[`1[67]`],`0$1`],[`(\\d{3})(\\d{7,12})`,`$1 $2`,[`8`],`0$1`],[`(\\d{5})(\\d{6})`,`$1 $2`,[`185`,`1850`,`18500`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{4})(\\d{7})`,`$1 $2`,[`18[68]`],`0$1`],[`(\\d{4})(\\d{7})`,`$1 $2`,[`15[1279]`],`0$1`],[`(\\d{5})(\\d{6})`,`$1 $2`,[`15[03568]`,`15(?:[0568]|3[13])`],`0$1`],[`(\\d{3})(\\d{8})`,`$1 $2`,[`18`],`0$1`],[`(\\d{3})(\\d{2})(\\d{7,8})`,`$1 $2 $3`,[`1(?:6[023]|7)`],`0$1`],[`(\\d{4})(\\d{2})(\\d{7})`,`$1 $2 $3`,[`15[279]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{8})`,`$1 $2 $3`,[`15`],`0$1`]],`0`],DJ:[`253`,`00`,`(?:2\\d|77)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[27]`]]]],DK:[`45`,`00`,`[2-9]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-9]`]]]],DM:[`1`,`011`,`(?:[58]\\d\\d|767|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`767$1`,0,`767`],DO:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,0,0,0,`8001|8[024]9`],DZ:[`213`,`00`,`(?:[1-4]|[5-79]\\d|80)\\d{7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[1-4]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`9`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-8]`],`0$1`]],`0`],EC:[`593`,`00`,`1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}`,[8,9,10,11],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2-$3`,[`[2-7]`],`(0$1)`,0,`$1-$2-$3`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`1`]]],`0`],EE:[`372`,`00`,`8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}`,[7,8,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88`,`[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88`]],[`(\\d{4})(\\d{3,4})`,`$1 $2`,[`[45]|8(?:00|[1-49])`,`[45]|8(?:00[1-9]|[1-49])`]],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`7`]],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]]]],EG:[`20`,`00`,`[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}`,[8,9,10],[[`(\\d)(\\d{7,8})`,`$1 $2`,[`[23]`],`0$1`],[`(\\d{2})(\\d{6,7})`,`$1 $2`,[`1[35]|[4-6]|8[2468]|9[235-7]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{8})`,`$1 $2`,[`1`],`0$1`]],`0`],EH:[`212`,`00`,`[5-8]\\d{8}`,[9],0,`0`,0,0,0,0,0,[[`528[89]\\d{5}`],[`(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}`],[`80[0-7]\\d{6}`],[`89\\d{7}`],0,0,0,0,[`(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}`]]],ER:[`291`,`00`,`[178]\\d{6}`,[7],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[178]`],`0$1`]],`0`],ES:[`34`,`00`,`[5-9]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[89]00`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-9]`]]]],ET:[`251`,`00`,`(?:11|[2-57-9]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-57-9]`],`0$1`]],`0`],FI:[`358`,`00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))`,`[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}`,[5,6,7,8,9,10,11,12],[[`(\\d{5})`,`$1`,[`20[2-59]`],`0$1`],[`(\\d{3})(\\d{3,7})`,`$1 $2`,[`(?:[1-3]0|[68])0|70[07-9]`],`0$1`],[`(\\d{2})(\\d{4,8})`,`$1 $2`,[`[14]|2[09]|50|7[135]`],`0$1`],[`(\\d{2})(\\d{6,10})`,`$1 $2`,[`7`],`0$1`],[`(\\d)(\\d{4,9})`,`$1 $2`,[`(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9`],`0$1`]],`0`,0,0,0,0,`1[03-79]|[2-9]`,0,`00`],FJ:[`679`,`0(?:0|52)`,`45\\d{5}|(?:0800\\d|[235-9])\\d{6}`,[7,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[235-9]|45`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`0`]]],0,0,0,0,0,0,0,`00`],FK:[`500`,`00`,`[2-7]\\d{4}`,[5]],FM:[`691`,`00`,`(?:[39]\\d\\d|820)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[389]`]]]],FO:[`298`,`00`,`[2-9]\\d{5}`,[6],[[`(\\d{6})`,`$1`,[`[2-9]`]]],0,0,`(10(?:01|[12]0|88))`],FR:[`33`,`00`,`[1-9]\\d{8}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0 $1`],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[1-79]`],`0$1`]],`0`],GA:[`241`,`00`,`(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}`,[7,8],[[`(\\d)(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-7]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`0`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`11|[67]`],`0$1`]],0,0,`0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})`,`$1`],GB:[`44`,`00`,`[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}`,[7,9,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`800`,`8001`,`80011`,`800111`,`8001111`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`845`,`8454`,`84546`,`845464`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`800`],`0$1`],[`(\\d{5})(\\d{4,5})`,`$1 $2`,[`1(?:38|5[23]|69|76|94)`,`1(?:(?:38|69)7|5(?:24|39)|768|946)`,`1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)`],`0$1`],[`(\\d{4})(\\d{5,6})`,`$1 $2`,[`1(?:[2-69][02-9]|[78])`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[25]|7(?:0|6[02-9])`,`[25]|7(?:0|6(?:[03-9]|2[356]))`],`0$1`],[`(\\d{4})(\\d{6})`,`$1 $2`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1389]`],`0$1`]],`0`,0,`0|180020`,0,0,0,[[`(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}`,[9,10]],[`7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}`,[10]],[`80[08]\\d{7}|800\\d{6}|8001111`],[`(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d`,[7,10]],[`70\\d{8}`,[10]],0,[`(?:3[0347]|55)\\d{8}`,[10]],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`,[10]],[`56\\d{8}`,[10]]],0,` x`],GD:[`1`,`011`,`(?:473|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`473$1`,0,`473`],GE:[`995`,`00`,`(?:[3-57]\\d\\d|800)\\d{6}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`70`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`32`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[57]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[348]`],`0$1`]],`0`],GF:[`594`,`00`,`(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]|80[6-9]|9[47]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[89]`],`0$1`]],`0`],GG:[`44`,`00`,`(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?`,[7,9,10],0,`0`,0,`([25-9]\\d{5})$|0|180020`,`1481$1`,0,0,[[`1481[25-9]\\d{5}`,[10]],[`7(?:(?:781|839)\\d|911[17])\\d{5}`,[10]],[`80[08]\\d{7}|800\\d{6}|8001111`],[`(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d`,[7,10]],[`70\\d{8}`,[10]],0,[`(?:3[0347]|55)\\d{8}`,[10]],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`,[10]],[`56\\d{8}`,[10]]]],GH:[`233`,`00`,`[235]\\d{8}|800\\d{5,6}`,[8,9],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2358]`],`0$1`]],`0`],GI:[`350`,`00`,`(?:[25]\\d|60)\\d{6}`,[8],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`2`]]]],GL:[`299`,`00`,`(?:19|[2-689]\\d|70)\\d{4}`,[6],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`19|[2-9]`]]]],GM:[`220`,`00`,`[2-9]\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],GN:[`224`,`00`,`722\\d{6}|(?:3|6\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`3`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[67]`]]]],GP:[`590`,`00`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]|80[6-9]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`,0,0,0,0,0,[[`(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],GQ:[`240`,`00`,`222\\d{6}|(?:3\\d|55|[89]0)\\d{7}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235]`]],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[89]`]]]],GR:[`30`,`00`,`5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}`,[10,11,12],[[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`21|7`]],[`(\\d{4})(\\d{6})`,`$1 $2`,[`2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2689]`]],[`(\\d{3})(\\d{3,4})(\\d{5})`,`$1 $2 $3`,[`8`]]]],GT:[`502`,`00`,`80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}`,[8,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-8]`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]]]],GU:[`1`,`011`,`(?:[58]\\d\\d|671|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`671$1`,0,`671`],GW:[`245`,`00`,`[49]\\d{8}|4\\d{6}`,[7,9],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`40`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[49]`]]]],GY:[`592`,`001`,`(?:[2-8]\\d{3}|9008)\\d{3}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],HK:[`852`,`00(?:30|5[09]|[126-9]?)`,`8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}`,[5,6,7,8,9,11],[[`(\\d{3})(\\d{2,5})`,`$1 $2`,[`900`,`9003`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-7]|8[1-4]|9(?:0[1-9]|[1-8])`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{3})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]]],0,0,0,0,0,0,0,`00`],HN:[`504`,`00`,`8\\d{10}|[237-9]\\d{7}`,[8,11],[[`(\\d{4})(\\d{4})`,`$1-$2`,[`[237-9]`]]]],HR:[`385`,`00`,`[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}`,[7,8,9],[[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`6[01]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{4})(\\d{3})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`6|7[245]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-57]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],HT:[`509`,`00`,`[2-589]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`[2-589]`]]]],HU:[`36`,`00`,`[235-7]\\d{8}|[1-9]\\d{7}`,[8,9],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`(06 $1)`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]`],`(06 $1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-9]`],`06 $1`]],`06`],ID:[`62`,`00[89]`,`00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}`,[7,8,9,10,11,12,13,14,15,16,17],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`15`]],[`(\\d{2})(\\d{5,9})`,`$1 $2`,[`2[124]|[36]1`],`(0$1)`],[`(\\d{3})(\\d{5,7})`,`$1 $2`,[`800`],`0$1`],[`(\\d{3})(\\d{5,8})`,`$1 $2`,[`[2-79]`],`(0$1)`],[`(\\d{3})(\\d{3,4})(\\d{3})`,`$1-$2-$3`,[`8[1-35-9]`],`0$1`],[`(\\d{3})(\\d{6,8})`,`$1 $2`,[`1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`804`],`0$1`],[`(\\d{3})(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`80`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1-$2-$3`,[`8`],`0$1`]],`0`],IE:[`353`,`00`,`(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}`,[7,8,9,10],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`2[24-9]|47|58|6[237-9]|9[35-9]`],`(0$1)`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[45]0`],`(0$1)`],[`(\\d)(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`1`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2569]|4[1-69]|7[14]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`70`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`81`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[78]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`4`],`(0$1)`],[`(\\d{2})(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],IL:[`972`,`0(?:0|1[2-9])`,`1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}`,[7,8,9,10,11,12],[[`(\\d{4})(\\d{3})`,`$1-$2`,[`125`]],[`(\\d{4})(\\d{2})(\\d{2})`,`$1-$2-$3`,[`121`]],[`(\\d)(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[2-489]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[57]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1-$2-$3`,[`12`]],[`(\\d{4})(\\d{6})`,`$1-$2`,[`159`]],[`(\\d)(\\d{3})(\\d{3})(\\d{3})`,`$1-$2-$3-$4`,[`1[7-9]`]],[`(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})`,`$1-$2 $3-$4`,[`15`]]],`0`],IM:[`44`,`00`,`1624\\d{6}|(?:[3578]\\d|90)\\d{8}`,[10],0,`0`,0,`([25-8]\\d{5})$|0|180020`,`1624$1`,0,`74576|(?:16|7[56])24`],IN:[`91`,`00`,`(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}`,[8,9,10,11,12,13],[[`(\\d{8})`,`$1`,[`5(?:0|2[23]|3[03]|[67]1|88)`,`5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)`,`5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)`],0,1],[`(\\d{4})(\\d{4,5})`,`$1 $2`,[`180`,`1800`],0,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`140`],0,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`11|2[02]|33|4[04]|79[1-7]|80[2-46]`,`11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])`,`11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]`,`1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]`,`1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]`],`0$1`,1],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807`,`1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]`,`1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]`],`0$1`,1],[`(\\d{5})(\\d{5})`,`$1 $2`,[`16|[6-9]`],`0$1`,1],[`(\\d{4})(\\d{2,4})(\\d{4})`,`$1 $2 $3`,[`18[06]`,`18[06]0`],0,1],[`(\\d{4})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`18`],0,1]],`0`],IO:[`246`,`00`,`3\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`3`]]]],IQ:[`964`,`00`,`(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-6]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`]],`0`],IR:[`98`,`00`,`[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}`,[4,5,6,7,10],[[`(\\d{4,5})`,`$1`,[`96`],`0$1`],[`(\\d{2})(\\d{4,5})`,`$1 $2`,[`(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[1-8]`],`0$1`]],`0`],IS:[`354`,`00|1(?:0(?:01|[12]0)|100)`,`(?:38\\d|[4-9])\\d{6}`,[7,9],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[4-9]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`3`]]],0,0,0,0,0,0,0,`00`],IT:[`39`,`00`,`0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?`,[6,7,8,9,10,11,12],[[`(\\d{2})(\\d{4,6})`,`$1 $2`,[`0[26]`]],[`(\\d{3})(\\d{3,6})`,`$1 $2`,[`0[13-57-9][0159]|8(?:03|4[17]|9[2-5])`,`0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))`]],[`(\\d{4})(\\d{2,6})`,`$1 $2`,[`0(?:[13-579][2-46-8]|8[236-8])`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`894`]],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`0[26]|5`]],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`1(?:44|[679])|[378]|43`]],[`(\\d{3})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`0[13-57-9][0159]|14`]],[`(\\d{2})(\\d{4})(\\d{5})`,`$1 $2 $3`,[`0[26]`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`[03]`]]],0,0,0,0,0,0,[[`0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}`],[`3[2-9]\\d{7,8}|(?:31|43)\\d{8}`,[9,10]],[`80(?:0\\d{3}|3)\\d{3}`,[6,9]],[`(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}`,[6,8,9,10]],[`1(?:78\\d|99)\\d{6}`,[9,10]],[`3[2-8]\\d{9,10}`,[11,12]],0,0,[`55\\d{8}`,[10]],[`84(?:[08]\\d{3}|[17])\\d{3}`,[6,9]]]],JE:[`44`,`00`,`1534\\d{6}|(?:[3578]\\d|90)\\d{8}`,[10],0,`0`,0,`([0-24-8]\\d{5})$|0|180020`,`1534$1`,0,0,[[`1534[0-24-8]\\d{5}`],[`7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}`],[`80(?:07(?:35|81)|8901)\\d{4}`],[`(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}`],[`701511\\d{4}`],0,[`(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}`],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`],[`56\\d{8}`]]],JM:[`1`,`011`,`(?:[58]\\d\\d|658|900)\\d{7}`,[10],0,`1`,0,0,0,0,`658|876`],JO:[`962`,`00`,`(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}`,[8,9],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2356]|87`],`(0$1)`],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`70`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[47]`],`0$1`]],`0`],JP:[`81`,`010`,`00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}`,[8,9,10,11,12,13,14,15,16,17],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1-$2-$3`,[`(?:12|57|99)0`],`0$1`],[`(\\d{4})(\\d)(\\d{4})`,`$1-$2-$3`,[`1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])`,`1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]`,`1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`60`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1-$2-$3`,[`3|4(?:2[09]|7[01])|6[1-9]`,`3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])`,`1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]`,`1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{4})`,`$1-$2-$3`,[`[14]|[289][2-9]|5[3-9]|7[2-4679]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`800`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2-$3`,[`[25-9]`],`0$1`]],`0`,0,`(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0`,`$1`],KE:[`254`,`000`,`(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}`,[7,8,9,10],[[`(\\d{2})(\\d{5,7})`,`$1 $2`,[`[24-6]`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[17]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[89]`],`0$1`]],`0`],KG:[`996`,`00`,`8\\d{9}|[235-9]\\d{8}`,[9,10],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`3(?:1[346]|[24-79])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235-79]|88`],`0$1`],[`(\\d{3})(\\d{3})(\\d)(\\d{2,3})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],KH:[`855`,`00[14-9]`,`1\\d{9}|[1-9]\\d{7,8}`,[8,9,10],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-9]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],KI:[`686`,`00`,`(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}`,[5,8],0,`0`],KM:[`269`,`00`,`[3478]\\d{6}`,[7],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[3478]`]]]],KN:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`869$1`,0,`869`],KP:[`850`,`00|99`,`85\\d{6}|(?:19\\d|[2-7])\\d{7}`,[8,10],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-7]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`]],`0`],KR:[`82`,`00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))`,`00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}`,[5,6,8,9,10,11,12,13,14],[[`(\\d{2})(\\d{3,4})`,`$1-$2`,[`(?:3[1-3]|[46][1-4]|5[1-5])1`],`0$1`],[`(\\d{4})(\\d{4})`,`$1-$2`,[`1`]],[`(\\d)(\\d{3,4})(\\d{4})`,`$1-$2-$3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[36]0|8`],`0$1`],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1-$2-$3`,[`[1346]|5[1-5]`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2-$3`,[`[57]`],`0$1`],[`(\\d{2})(\\d{5})(\\d{4})`,`$1-$2-$3`,[`5`],`0$1`]],`0`,0,`0(8(?:[1-46-8]|5\\d\\d))?`],KW:[`965`,`00`,`18\\d{5}|(?:[2569]\\d|41)\\d{6}`,[7,8],[[`(\\d{4})(\\d{3,4})`,`$1 $2`,[`[169]|2(?:[235]|4[1-35-9])|52`]],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[245]`]]]],KY:[`1`,`011`,`(?:345|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`345$1`,0,`345`],KZ:[`7`,`810`,`8\\d{13}|[78]\\d{9}`,[10,14],0,`8`,0,0,0,0,`7`,0,`8~10`],LA:[`856`,`00`,`[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}`,[8,9,10],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2[13]|3[14]|[4-8]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`3`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[23]`],`0$1`]],`0`],LB:[`961`,`00`,`[27-9]\\d{7}|[13-9]\\d{6}`,[7,8],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[27-9]`]]],`0`],LC:[`1`,`011`,`(?:[58]\\d\\d|758|900)\\d{7}`,[10],0,`1`,0,`([2-8]\\d{6})$|1`,`758$1`,0,`758`],LI:[`423`,`00`,`[68]\\d{8}|(?:[2378]\\d|90)\\d{5}`,[7,9],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2379]|8(?:0[09]|7)`,`[2379]|8(?:0(?:02|9)|7)`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`69`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]]],`0`,0,`(1001)|0`],LK:[`94`,`00`,`[1-9]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[1-689]`],`0$1`]],`0`],LR:[`231`,`00`,`(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}`,[7,8,9],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`4[67]|[56]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-578]`],`0$1`]],`0`],LS:[`266`,`00`,`(?:[256]\\d\\d|800)\\d{5}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2568]`]]]],LT:[`370`,`00`,`(?:[3469]\\d|52|[78]0)\\d{6}`,[8],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`52[0-7]`],`(0-$1)`,1],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[7-9]`],`0 $1`,1],[`(\\d{2})(\\d{6})`,`$1 $2`,[`37|4(?:[15]|6[1-8])`],`(0-$1)`,1],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[3-6]`],`(0-$1)`,1]],`0`,0,`[08]`],LU:[`352`,`00`,`35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}`,[4,5,6,7,8,9,10,11],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])`]],[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])`]],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`20[2-689]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})`,`$1 $2 $3 $4`,[`20`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})`,`$1 $2 $3 $4`,[`[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]`]],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`80[01]|90[015]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`20`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})`,`$1 $2 $3 $4 $5`,[`20`]]],0,0,`(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)`],LV:[`371`,`00`,`(?:[268]\\d|78|90)\\d{6}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2679]|8[01]`]]]],LY:[`218`,`00`,`[2-9]\\d{8}`,[9],[[`(\\d{2})(\\d{7})`,`$1-$2`,[`[2-9]`],`0$1`]],`0`],MA:[`212`,`00`,`[5-8]\\d{8}`,[9],[[`(\\d{4})(\\d{5})`,`$1-$2`,[`892`],`0$1`],[`(\\d{2})(\\d{7})`,`$1-$2`,[`8(?:0[0-7]|9)`],`0$1`],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[5-8]`],`0$1`]],`0`,0,0,0,0,`[5-8]`],MC:[`377`,`00`,`(?:[3489]|[67]\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`4`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[389]`]],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[67]`],`0$1`]],`0`],MD:[`373`,`00`,`(?:[235-7]\\d|[89]0)\\d{6}`,[8],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`22|3`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[25-7]`],`0$1`]],`0`],ME:[`382`,`00`,`(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-9]`],`0$1`]],`0`],MF:[`590`,`00`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],MG:[`261`,`00`,`[23]\\d{8}`,[9],[[`(\\d{2})(\\d{2})(\\d{3})(\\d{2})`,`$1 $2 $3 $4`,[`[23]`],`0$1`]],`0`,0,`([24-9]\\d{6})$|0`,`20$1`],MH:[`692`,`011`,`329\\d{4}|(?:[256]\\d|45)\\d{5}`,[7],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[2-6]`]]],`1`],MK:[`389`,`00`,`[2-578]\\d{7}`,[8],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2|34[47]|4(?:[37]7|5[47]|64)`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[347]`],`0$1`],[`(\\d{3})(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[58]`],`0$1`]],`0`],ML:[`223`,`00`,`[24-9]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[24-9]`]]]],MM:[`95`,`00`,`1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}`,[6,7,8,9,10],[[`(\\d)(\\d{2})(\\d{3})`,`$1 $2 $3`,[`16|2`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]`],`0$1`],[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[12]|452|678|86`,`[12]|452|6788|86`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[4-7]|8[1-35]`],`0$1`],[`(\\d)(\\d{3})(\\d{4,6})`,`$1 $2 $3`,[`9(?:2[0-4]|[35-9]|4[137-9])`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`92`],`0$1`],[`(\\d)(\\d{5})(\\d{4})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],MN:[`976`,`001`,`[12]\\d{7,9}|[5-9]\\d{7}`,[8,9,10],[[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`11|2[16]`],`0$1`],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[5-9]`]],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`[12]2[1-3]`],`0$1`],[`(\\d{4})(\\d{5,6})`,`$1 $2`,[`[12](?:27|3[2-8]|4[2-68]|5[1-4689])`,`[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]`],`0$1`],[`(\\d{5})(\\d{4,5})`,`$1 $2`,[`[12]`],`0$1`]],`0`],MO:[`853`,`00`,`0800\\d{3}|(?:28|[68]\\d)\\d{6}`,[7,8],[[`(\\d{4})(\\d{3})`,`$1 $2`,[`0`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[268]`]]]],MP:[`1`,`011`,`[58]\\d{9}|(?:67|90)0\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`670$1`,0,`670`],MQ:[`596`,`00`,`7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]|8(?:0[6-9]|[36])`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],MR:[`222`,`00`,`(?:[2-4]\\d\\d|800)\\d{5}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-48]`]]]],MS:[`1`,`011`,`(?:[58]\\d\\d|664|900)\\d{7}`,[10],0,`1`,0,`([34]\\d{6})$|1`,`664$1`,0,`664`],MT:[`356`,`00`,`3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2357-9]`]]]],MU:[`230`,`0(?:0|[24-7]0|3[03])`,`(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}`,[7,8,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-46]|8[013]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[57]`]],[`(\\d{5})(\\d{5})`,`$1 $2`,[`8`]]],0,0,0,0,0,0,0,`020`],MV:[`960`,`0(?:0|19)`,`(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}`,[7,10],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[34679]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`]]],0,0,0,0,0,0,0,`00`],MW:[`265`,`00`,`(?:[1289]\\d|31|77)\\d{7}|1\\d{6}`,[7,9],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1[2-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[137-9]`],`0$1`]],`0`],MX:[`52`,`0[09]`,`[2-9]\\d{9}`,[10],[[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`33|5[56]|81`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-9]`]]],0,0,0,0,0,0,0,`00`],MY:[`60`,`00`,`1\\d{8,9}|(?:3\\d|[4-9])\\d{7}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1-$2 $3`,[`[4-79]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1-$2 $3`,[`1(?:[02469]|[378][1-9]|53)|8`,`1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1-$2 $3`,[`3`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{4})`,`$1-$2-$3-$4`,[`1(?:[367]|80)`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2 $3`,[`15`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2 $3`,[`1`],`0$1`]],`0`],MZ:[`258`,`00`,`(?:2|8\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2|8[2-79]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]]]],NA:[`264`,`00`,`[68]\\d{7,8}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`88`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`6`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`87`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],NC:[`687`,`00`,`(?:050|[2-57-9]\\d\\d)\\d{3}`,[6],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1.$2.$3`,[`[02-57-9]`]]]],NE:[`227`,`00`,`[027-9]\\d{7}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`08`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[089]|2[013]|7[0467]`]]]],NF:[`672`,`00`,`[13]\\d{5}`,[6],[[`(\\d{2})(\\d{4})`,`$1 $2`,[`1[0-3]`]],[`(\\d)(\\d{5})`,`$1 $2`,[`[13]`]]],0,0,`([0-258]\\d{4})$`,`3$1`],NG:[`234`,`009`,`(?:20|9\\d)\\d{8}|[78]\\d{9,13}`,[10,11,12,13,14],[[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[7-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`20[129]`],`0$1`],[`(\\d{4})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`[78]`],`0$1`],[`(\\d{3})(\\d{5})(\\d{5,6})`,`$1 $2 $3`,[`[78]`],`0$1`]],`0`],NI:[`505`,`00`,`(?:1800|[25-8]\\d{3})\\d{4}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[125-8]`]]]],NL:[`31`,`00`,`(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}`,[5,6,7,8,9,10,11],[[`(\\d{3})(\\d{4,7})`,`$1 $2`,[`[89]0`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`66`],`0$1`],[`(\\d)(\\d{8})`,`$1 $2`,[`6`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1[16-8]|2[259]|3[124]|4[17-9]|5[124679]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-578]|91`],`0$1`],[`(\\d{3})(\\d{3})(\\d{5})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],NO:[`47`,`00`,`(?:0|[2-9]\\d{3})\\d{4}`,[5,8],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-79]`]]],0,0,0,0,0,`[02-689]|7[0-8]`],NP:[`977`,`00`,`(?:1\\d|9)\\d{9}|[1-9]\\d{7}`,[8,10,11],[[`(\\d)(\\d{7})`,`$1-$2`,[`1[2-6]`],`0$1`],[`(\\d{2})(\\d{6})`,`$1-$2`,[`1[01]|[2-8]|9(?:[1-59]|[67][2-6])`],`0$1`],[`(\\d{3})(\\d{7})`,`$1-$2`,[`9`]]],`0`],NR:[`674`,`00`,`(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[24-9]`]]]],NU:[`683`,`00`,`(?:[4-7]|888\\d)\\d{3}`,[4,7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`8`]]]],NZ:[`64`,`0(?:0|161)`,`[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}`,[5,6,7,8,9,10],[[`(\\d{2})(\\d{3,8})`,`$1 $2`,[`8[1-79]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`50[036-8]|8|90`,`50(?:[0367]|88)|8|90`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`24|[346]|7[2-57-9]|9[2-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2(?:10|74)|[589]`],`0$1`],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`1|2[028]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,5})`,`$1 $2 $3`,[`2(?:[169]|7[0-35-9])|7`],`0$1`]],`0`,0,0,0,0,0,0,`00`],OM:[`968`,`00`,`(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}`,[7,8,9],[[`(\\d{3})(\\d{4,6})`,`$1 $2`,[`[58]`]],[`(\\d{2})(\\d{6})`,`$1 $2`,[`2`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[179]`]]]],PA:[`507`,`00`,`(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}`,[7,8,10,11],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[1-57-9]`]],[`(\\d{4})(\\d{4})`,`$1-$2`,[`[68]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]]]],PE:[`51`,`00|19(?:1[124]|77|90)00`,`(?:[14-8]|9\\d)\\d{7}`,[8,9],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`80`],`(0$1)`],[`(\\d)(\\d{7})`,`$1 $2`,[`1`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[4-8]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`]]],`0`,0,0,0,0,0,0,`00`,` Anexo `],PF:[`689`,`00`,`4\\d{5}(?:\\d{2})?|8\\d{7,8}`,[6,8,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`44`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`4|8[7-9]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]]]],PG:[`675`,`00|140[1-3]`,`(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`18|[2-69]|85`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[78]`]]],0,0,0,0,0,0,0,`00`],PH:[`63`,`00`,`(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}`,[6,8,9,10,11,12,13],[[`(\\d)(\\d{5})`,`$1 $2`,[`2`],`(0$1)`],[`(\\d{4})(\\d{4,6})`,`$1 $2`,[`3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2`,`3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))`],`(0$1)`],[`(\\d{5})(\\d{4})`,`$1 $2`,[`346|4(?:27|9[35])|883`,`3469|4(?:279|9(?:30|56))|8834`],`(0$1)`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[3-7]|8[2-8]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]],[`(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`1`]]],`0`],PK:[`92`,`00`,`122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}`,[8,9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{2,7})`,`$1 $2 $3`,[`[89]0`],`0$1`],[`(\\d{4})(\\d{5})`,`$1 $2`,[`1`]],[`(\\d{3})(\\d{6,7})`,`$1 $2`,[`2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])`,`9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]`],`(0$1)`],[`(\\d{2})(\\d{7,8})`,`$1 $2`,[`(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]`],`(0$1)`],[`(\\d{5})(\\d{5})`,`$1 $2`,[`58`],`(0$1)`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`3`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[24-9]`],`(0$1)`]],`0`],PL:[`48`,`00`,`(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}`,[6,7,8,9,10],[[`(\\d{5})`,`$1`,[`19`]],[`(\\d{3})(\\d{3})`,`$1 $2`,[`11|20|64`]],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1`,`30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19`]],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`64`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)`]],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[2-8]|[2-7]|8[1-79]|9[145]`]],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`8`]]]],PM:[`508`,`00`,`[78]\\d{8}|[2-9]\\d{5}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`7`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],PR:[`1`,`011`,`(?:[589]\\d\\d|787)\\d{7}`,[10],0,`1`,0,0,0,0,`787|939`],PS:[`970`,`00`,`[2489]2\\d{6}|(?:1\\d|5)\\d{8}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2489]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],PT:[`351`,`00`,`1693\\d{5}|(?:[26-9]\\d|30)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2[12]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`16|[236-9]`]]]],PW:[`680`,`01[12]`,`(?:[24-8]\\d\\d|345|900)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],PY:[`595`,`00`,`[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}`,[6,7,8,9,10,11],[[`(\\d{3})(\\d{3,6})`,`$1 $2`,[`[2-9]0`],`0$1`],[`(\\d{2})(\\d{5})`,`$1 $2`,[`3[289]|4[246-8]|61|7[1-3]|8[1-36]`],`(0$1)`],[`(\\d{3})(\\d{4,5})`,`$1 $2`,[`2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`87`]],[`(\\d{3})(\\d{6})`,`$1 $2`,[`9(?:[5-79]|8[1-7])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-8]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9`]]],`0`],QA:[`974`,`00`,`800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}`,[7,8,9,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`2[136]|8`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[3-7]`]]]],RE:[`262`,`00`,`709\\d{6}|(?:26|[689]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[26-9]`],`0$1`]],`0`,0,0,0,0,0,[[`2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}`],[`(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}`],[`80\\d{7}`],[`89[1-37-9]\\d{6}`],0,0,0,0,[`9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}`],[`8(?:1[019]|2[0156]|84|90)\\d{6}`]]],RO:[`40`,`00`,`(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}`,[6,9],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`2[3-6]`,`2[3-6]\\d9`],`0$1`],[`(\\d{2})(\\d{4})`,`$1 $2`,[`219|31`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[23]1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[236-9]`],`0$1`]],`0`,0,0,0,0,0,0,0,` int `],RS:[`381`,`00`,`38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}`,[6,7,8,9,10,11,12],[[`(\\d{3})(\\d{3,9})`,`$1 $2`,[`(?:2[389]|39)0|[7-9]`],`0$1`],[`(\\d{2})(\\d{5,10})`,`$1 $2`,[`[1-36]`],`0$1`]],`0`],RU:[`7`,`810`,`8\\d{13}|[347-9]\\d{9}`,[10,14],[[`(\\d{4})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`7(?:1[0-8]|2[1-9])`,`7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))`,`7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2`],`8 ($1)`,1],[`(\\d{5})(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`7(?:1[0-68]|2[1-9])`,`7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))`,`7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]`],`8 ($1)`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`8 ($1)`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[349]|8(?:[02-7]|1[1-8])`],`8 ($1)`,1],[`(\\d{4})(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`8`],`8 ($1)`]],`8`,0,0,0,0,`[3489]`,0,`8~10`],RW:[`250`,`00`,`(?:06|[27]\\d\\d|[89]00)\\d{6}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`0`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[7-9]`],`0$1`]],`0`],SA:[`966`,`00`,`(?:[15]\\d|800|92)\\d{7}`,[9,10],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`9`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]]],`0`],SB:[`677`,`0[01]`,`[6-9]\\d{6}|[1-6]\\d{4}`,[5,7],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])`]]]],SC:[`248`,`010|0[0-2]`,`(?:[2489]\\d|64)\\d{5}`,[7],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[246]|9[57]`]]],0,0,0,0,0,0,0,`00`],SD:[`249`,`00`,`[19]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[19]`],`0$1`]],`0`],SE:[`46`,`00`,`(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}`,[6,7,8,9,10,12],[[`(\\d{2})(\\d{2,3})(\\d{2})`,`$1-$2 $3`,[`20`],`0$1`,0,`$1 $2 $3`],[`(\\d{3})(\\d{4})`,`$1-$2`,[`9(?:00|39|44|9)`],`0$1`,0,`$1 $2`],[`(\\d{2})(\\d{3})(\\d{2})`,`$1-$2 $3`,[`[12][136]|3[356]|4[0246]|6[03]|90[1-9]`],`0$1`,0,`$1 $2 $3`],[`(\\d)(\\d{2,3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`8`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2,3})(\\d{2})`,`$1-$2 $3`,[`1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])`],`0$1`,0,`$1 $2 $3`],[`(\\d{3})(\\d{2,3})(\\d{3})`,`$1-$2 $3`,[`9(?:00|39|44)`],`0$1`,0,`$1 $2 $3`],[`(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`10|7`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d)(\\d{3})(\\d{3})(\\d{2})`,`$1-$2 $3 $4`,[`8`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{3})`,`$1-$2 $3 $4`,[`9`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4 $5`,[`[26]`],`0$1`,0,`$1 $2 $3 $4 $5`]],`0`],SG:[`65`,`0[0-3]\\d`,`(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}`,[8,10,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[369]|8(?:0[1-9]|[1-9])`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]],[`(\\d{4})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`7`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]]]],SH:[`290`,`00`,`(?:[256]\\d|8)\\d{3}`,[4,5],0,0,0,0,0,0,`[256]`],SI:[`386`,`00|10(?:22|66|88|99)`,`[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}`,[5,6,7,8],[[`(\\d{2})(\\d{3,6})`,`$1 $2`,[`8[09]|9`],`0$1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`59|8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[37][01]|4[0139]|51|6`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[1-57]`],`(0$1)`]],`0`,0,0,0,0,0,0,`00`],SJ:[`47`,`00`,`0\\d{4}|(?:[489]\\d|79)\\d{6}`,[5,8],0,0,0,0,0,0,`79`],SK:[`421`,`00`,`[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}`,[6,7,9],[[`(\\d)(\\d{2})(\\d{3,4})`,`$1 $2 $3`,[`21`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`[3-5][1-8]1`,`[3-5][1-8]1[67]`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{2})`,`$1 $2 $3 $4`,[`2`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[689]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[3-5]`],`0$1`]],`0`],SL:[`232`,`00`,`(?:[237-9]\\d|66)\\d{6}`,[8],[[`(\\d{2})(\\d{6})`,`$1 $2`,[`[236-9]`],`(0$1)`]],`0`],SM:[`378`,`00`,`(?:0549|[5-7]\\d)\\d{6}`,[8,10],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]`]],[`(\\d{4})(\\d{6})`,`$1 $2`,[`0`]]],0,0,`([89]\\d{5})$`,`0549$1`],SN:[`221`,`00`,`(?:[378]\\d|93)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[379]`]]]],SO:[`252`,`00`,`[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}`,[6,7,8,9],[[`(\\d{2})(\\d{4})`,`$1 $2`,[`8[125]`]],[`(\\d{6})`,`$1`,[`[134]`]],[`(\\d)(\\d{6})`,`$1 $2`,[`[15]|2[0-79]|3[0-46-8]|4[0-7]`]],[`(\\d{2})(\\d{5,7})`,`$1 $2`,[`1|28|9[2-9]`]],[`(\\d)(\\d{7})`,`$1 $2`,[`[267]|904`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[346-9]`]]],`0`],SR:[`597`,`00`,`(?:[2-5]|[6-9]\\d)\\d{5}`,[6,7],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1-$2-$3`,[`56`]],[`(\\d{3})(\\d{3})`,`$1-$2`,[`[2-5]`]],[`(\\d{3})(\\d{4})`,`$1-$2`,[`[6-9]`]]]],SS:[`211`,`00`,`[19]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[19]`],`0$1`]],`0`],ST:[`239`,`00`,`(?:22|9\\d)\\d{5}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[29]`]]]],SV:[`503`,`00`,`[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?`,[7,8,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[89]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[25-7]`]],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[89]`]]]],SX:[`1`,`011`,`7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`(5\\d{6})$|1`,`721$1`,0,`721`],SY:[`963`,`00`,`[1-359]\\d{8}|[1-5]\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-4]|5[1-3]`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[59]`],`0$1`,1]],`0`],SZ:[`268`,`00`,`0800\\d{4}|(?:[237]\\d|900)\\d{6}`,[8,9],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[0237]`]],[`(\\d{5})(\\d{4})`,`$1 $2`,[`9`]]]],TA:[`290`,`00`,`8\\d{3}`,[4],0,0,0,0,0,0,`8`],TC:[`1`,`011`,`(?:[58]\\d\\d|649|900)\\d{7}`,[10],0,`1`,0,`([2-479]\\d{6})$|1`,`649$1`,0,`649`],TD:[`235`,`00|16`,`(?:22|[3689]\\d|77)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[236-9]`]]],0,0,0,0,0,0,0,`00`],TG:[`228`,`00`,`[279]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[279]`]]]],TH:[`66`,`00[1-9]`,`(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}`,[8,9,10,13],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[13-9]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],TJ:[`992`,`810`,`(?:[0-57-9]\\d|66)\\d{7}`,[9],[[`(\\d{6})(\\d)(\\d{2})`,`$1 $2 $3`,[`331`,`3317`]],[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`44[02-479]|[34]7`]],[`(\\d{4})(\\d)(\\d{4})`,`$1 $2 $3`,[`3(?:[1245]|3[12])`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`\\d`]]],0,0,0,0,0,0,0,`8~10`],TK:[`690`,`00`,`[2-47]\\d{3,6}`,[4,5,6,7]],TL:[`670`,`00`,`7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-489]|70`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`7`]]]],TM:[`993`,`810`,`(?:[1-6]\\d|71)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`12`],`(8 $1)`],[`(\\d{3})(\\d)(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[1-5]`],`(8 $1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[67]`],`8 $1`]],`8`,0,0,0,0,0,0,`8~10`],TN:[`216`,`00`,`[2-57-9]\\d{7}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-57-9]`]]]],TO:[`676`,`00`,`(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}`,[5,7],[[`(\\d{2})(\\d{3})`,`$1-$2`,[`[2-4]|50|6[09]|7[0-24-69]|8[05]`]],[`(\\d{4})(\\d{3})`,`$1 $2`,[`0`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[5-9]`]]]],TR:[`90`,`00`,`4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}`,[7,10,12,13],[[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`512|8[01589]|90`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`5[0-79]`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[24][1-8]|3[1-9]`],`(0$1)`,1],[`(\\d{3})(\\d{3})(\\d{6,7})`,`$1 $2 $3`,[`80`],`0$1`,1]],`0`],TT:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-46-8]\\d{6})$|1`,`868$1`,0,`868`],TV:[`688`,`00`,`(?:2|7\\d\\d|90)\\d{4}`,[5,6,7],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`2`]],[`(\\d{2})(\\d{4})`,`$1 $2`,[`90`]],[`(\\d{2})(\\d{5})`,`$1 $2`,[`7`]]]],TW:[`886`,`0(?:0[25-79]|19)`,`[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}`,[7,8,9,10,11],[[`(\\d{2})(\\d)(\\d{4})`,`$1 $2 $3`,[`202`],`0$1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`826`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`83`],`0$1`],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`82`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[25]0|37|49|8[09]`],`0$1`],[`(\\d)(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`[23568]|4(?:0[02-48]|[1-478])|7[1-9]`,`[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[49]`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`7`],`0$1`]],`0`,0,0,0,0,0,0,0,`#`],TZ:[`255`,`00[056]`,`(?:[25-8]\\d|41|90)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[24]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`5`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[67]`],`0$1`]],`0`],UA:[`380`,`00`,`[89]\\d{9}|[3-9]\\d{8}`,[9,10],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]`,`6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]`],`0$1`],[`(\\d{4})(\\d{5})`,`$1 $2`,[`3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])`,`3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[3-7]|89|9[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[89]`],`0$1`]],`0`,0,0,0,0,0,0,`0~0`],UG:[`256`,`00[057]`,`800\\d{6}|(?:[29]0|[347]\\d)\\d{7}`,[9],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`202`,`2024`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[27-9]|4(?:6[45]|[7-9])`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`[34]`],`0$1`]],`0`],US:[`1`,`011`,`[2-9]\\d{9}|3\\d{6}`,[10],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`310`],0,1],[`(\\d{3})(\\d{3})(\\d{4})`,`($1) $2-$3`,[`[2-9]`],0,1,`$1-$2-$3`]],`1`,0,0,0,0,0,[[`(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}`],[``],[`8(?:00|33|44|55|66|77|88)[2-9]\\d{6}`],[`900[2-9]\\d{6}`],[`52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],UY:[`598`,`0(?:0|1[3-9]\\d)`,`0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}`,[4,5,6,7,8,9,10,11,12,13],[[`(\\d{4,5})`,`$1`,[`21`]],[`(\\d{3})(\\d{3,4})`,`$1 $2`,[`0`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[49]0|8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[124]`]],[`(\\d{3})(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})`,`$1 $2 $3 $4`,[`0`]]],`0`,0,0,0,0,0,0,`00`,` int. `],UZ:[`998`,`00`,`(?:20|33|[5-9]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[235-9]`]]]],VA:[`39`,`00`,`0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}`,[6,7,8,9,10,11,12],0,0,0,0,0,0,`06698`],VC:[`1`,`011`,`(?:[58]\\d\\d|784|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`784$1`,0,`784`],VE:[`58`,`00`,`[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}`,[10],[[`(\\d{3})(\\d{7})`,`$1-$2`,[`[24-689]`],`0$1`]],`0`],VG:[`1`,`011`,`(?:284|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-578]\\d{6})$|1`,`284$1`,0,`284`],VI:[`1`,`011`,`[58]\\d{9}|(?:34|90)0\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`340$1`,0,`340`],VN:[`84`,`00`,`[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}`,[7,8,9,10],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`80`],`0$1`,1],[`(\\d{4})(\\d{4,6})`,`$1 $2`,[`1(?:2[02]|[89])`],0,1],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[26]|6`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[357-9]`],`0$1`,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2[48]`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`,1]],`0`],VU:[`678`,`00`,`[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}`,[5,7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[57-9]`]]]],WF:[`681`,`00`,`(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[47-9]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]]]],WS:[`685`,`0`,`(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}`,[5,6,7,10],[[`(\\d{5})`,`$1`,[`[2-5]|6[1-9]`]],[`(\\d{3})(\\d{3,7})`,`$1 $2`,[`[68]`]],[`(\\d{2})(\\d{5})`,`$1 $2`,[`7`]]]],XK:[`383`,`00`,`2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}`,[8,9,10,11,12],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-4]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2|39`],`0$1`],[`(\\d{2})(\\d{7,10})`,`$1 $2`,[`3`],`0$1`]],`0`],YE:[`967`,`00`,`(?:1|7\\d)\\d{7}|[1-7]\\d{6}`,[7,8,9],[[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-6]|7(?:[24-6]|8[0-7])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`7`],`0$1`]],`0`],YT:[`262`,`00`,`(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}`],[`(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}`],[`80\\d{7}`],0,0,0,0,0,[`9(?:(?:39|47)8[01]|769\\d)\\d{4}`]]],ZA:[`27`,`00`,`[1-79]\\d{8}|8\\d{4,9}`,[5,6,7,8,9,10],[[`(\\d{2})(\\d{3,4})`,`$1 $2`,[`8[1-4]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,3})`,`$1 $2 $3`,[`8[1-4]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`860`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],ZM:[`260`,`00`,`800\\d{6}|(?:21|[579]\\d|63)\\d{7}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[28]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`[579]`],`0$1`]],`0`],ZW:[`263`,`00`,`2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}`,[5,6,7,8,9,10],[[`(\\d{3})(\\d{3,5})`,`$1 $2`,[`2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]`],`0$1`],[`(\\d)(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`[49]`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`80`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2`,`2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)`,`2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)`],`0$1`],[`(\\d{4})(\\d{6})`,`$1 $2`,[`8`],`0$1`],[`(\\d{2})(\\d{3,5})`,`$1 $2`,[`1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`29[013-9]|39|54`],`0$1`],[`(\\d{4})(\\d{3,5})`,`$1 $2`,[`(?:25|54)8`,`258|5483`],`0$1`]],`0`]},nonGeographic:{800:[`800`,0,`(?:00|[1-9]\\d)\\d{6}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`\\d`]]],0,0,0,0,0,0,[0,0,[`(?:00|[1-9]\\d)\\d{6}`]]],808:[`808`,0,`[1-9]\\d{7}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[1-9]`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,[`[1-9]\\d{7}`]]],870:[`870`,0,`7\\d{11}|[235-7]\\d{8}`,[9,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235-7]`]]],0,0,0,0,0,0,[0,[`(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}`],0,0,0,0,0,0,[`2\\d{8}`,[9]]]],878:[`878`,0,`10\\d{10}`,[12],[[`(\\d{2})(\\d{5})(\\d{5})`,`$1 $2 $3`,[`1`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[`10\\d{10}`]]],881:[`881`,0,`6\\d{9}|[0-36-9]\\d{8}`,[9,10],[[`(\\d)(\\d{3})(\\d{5})`,`$1 $2 $3`,[`[0-37-9]`]],[`(\\d)(\\d{3})(\\d{5,6})`,`$1 $2 $3`,[`6`]]],0,0,0,0,0,0,[0,[`6\\d{9}|[0-36-9]\\d{8}`]]],882:[`882`,0,`[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?`,[7,8,9,10,11,12],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`16|342`]],[`(\\d{2})(\\d{6})`,`$1 $2`,[`49`]],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`1[36]|9`]],[`(\\d{2})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`3[23]`]],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`16`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`10|23|3(?:[15]|4[57])|4|5[12]`]],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`34`]],[`(\\d{2})(\\d{4,5})(\\d{5})`,`$1 $2 $3`,[`[1-35]`]]],0,0,0,0,0,0,[0,[`342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}`,[7,8,9,10,12]],0,0,0,[`348[57]\\d{7}`,[11]],0,0,[`1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}`]]],883:[`883`,0,`(?:[1-4]\\d|51)\\d{6,10}`,[8,9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{2,8})`,`$1 $2 $3`,[`[14]|2[24-689]|3[02-689]|51[24-9]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`510`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`21`]],[`(\\d{4})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`51[13]`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[235]`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[`(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}`]]],888:[`888`,0,`\\d{11}`,[11],[[`(\\d{3})(\\d{3})(\\d{5})`,`$1 $2 $3`]],0,0,0,0,0,0,[0,0,0,0,0,0,[`\\d{11}`]]],979:[`979`,0,`[1359]\\d{8}`,[9],[[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[1359]`]]],0,0,0,0,0,0,[0,0,0,[`[1359]\\d{8}`]]]}};function Hd(e,t){var n=Array.prototype.slice.call(t);return n.push(Vd),e.apply(this,n)}var Ud={}.constructor;function Wd(e){return e!=null&&e.constructor===Ud}function Gd(e){"@babel/helpers - typeof";return Gd=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Gd(e)}function Kd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function qd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Kd(Object(n),true).forEach(function(t){Jd(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function Jd(e,t,n){return (t=Yd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Yd(e){var t=Xd(e,`string`);return Gd(t)==`symbol`?t:t+``}function Xd(e,t){if(Gd(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gd(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function Zd(e,t){return nf(e)||tf(e,t)||$d(e,t)||Qd()}function Qd(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
91
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $d(e,t){if(e){if(typeof e==`string`)return ef(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ef(e,t):void 0}}function ef(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tf(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=true,l=false;try{if(a=(n=n.call(e)).next,t===0);else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=true);}catch(e){l=true,i=e;}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function nf(e){if(Array.isArray(e))return e}function rf(e){var t=Zd(Array.prototype.slice.call(e),4),n=t[0],r=t[1],i=t[2],a=t[3],o,s,c;if(typeof n==`string`)o=n;else throw TypeError(`A text for parsing must be a string.`);if(!r||typeof r==`string`)a?(s=i,c=a):(s=void 0,c=i),r&&(s=qd({defaultCountry:r},s));else if(Wd(r))i?(s=r,c=i):c=r;else throw Error(`Invalid second argument: ${r}`);return {text:o,options:s,metadata:c}}var Y$1=`0-90-9٠-٩۰-۹`,af=`-‐-―−ー-//.. \xA0 ()()[]\\[\\]~⁓∼~`,of=`++`;function sf(e){"@babel/helpers - typeof";return sf=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},sf(e)}function lf(e,t,n){return Object.defineProperty(e,"prototype",{writable:false}),e}function ff(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function pf(e,t,n){return t=Sf(t),mf(e,yf()?Reflect.construct(t,n||[],Sf(e).constructor):t.apply(e,n))}function mf(e,t){if(t&&(sf(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return hf(e)}function hf(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function gf(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}}),Object.defineProperty(e,"prototype",{writable:false}),t&&xf(e,t);}function _f(e){var t=typeof Map==`function`?new Map:void 0;return _f=function(e){if(e===null||!bf(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n);}function n(){return vf(e,arguments,Sf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:false,writable:true,configurable:true}}),xf(n,e)},_f(e)}function vf(e,t,n){if(yf())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&xf(i,n.prototype),i}function yf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch{}return (yf=function(){return !!e})()}function bf(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function xf(e,t){return xf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xf(e,t)}function Sf(e){return Sf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sf(e)}var X$2=function(e){function t(e){var n;return ff(this,t),n=pf(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return gf(t,e),lf(t)}(_f(Error));function Cf(e,t){e=e.split(`-`),t=t.split(`-`);for(var n=e[0].split(`.`),r=t[0].split(`.`),i=0;i<3;i++){var a=Number(n[i]),o=Number(r[i]);if(a>o)return 1;if(o>a)return -1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return -1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var wf=/^\d+$/;function Tf(e){return wf.test(e)}function Ef(e){"@babel/helpers - typeof";return Ef=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ef(e)}function Df(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Of(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false,r.configurable=true,`value`in r&&(r.writable=true),Object.defineProperty(e,Af(r.key),r);}}function kf(e,t,n){return t&&Of(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function Af(e){var t=jf(e,`string`);return Ef(t)==`symbol`?t:t+``}function jf(e,t){if(Ef(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ef(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (String)(e)}var Mf=`1.2.0`,Nf=`1.7.35`,Pf=` ext. `,Z$1=function(){function e(t){Df(this,e),Bf(t),this.metadata=t,Wf.call(this,t);}return kf(e,[{key:`getCountries`,value:function(){return Object.keys(this.metadata.countries).filter(function(e){return e!==`001`})}},{key:`getCountryMetadata`,value:function(e){return this.metadata.countries[e]}},{key:`nonGeographic`,value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:`hasCountry`,value:function(e){return this.getCountryMetadata(e)!==void 0}},{key:`hasCallingCode`,value:function(e){if(this.getCountryCodesForCallingCode(e))return true;if(this.nonGeographic()){if(this.nonGeographic()[e])return true}else {var t=this.countryCallingCodes()[e];if(t&&t.length===1&&t[0]===`001`)return true}}},{key:`isNonGeographicCallingCode`,value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:`country`,value:function(e){return this.selectNumberingPlan(e)}},{key:`selectNumberingPlan`,value:function(e,t){var n,r;if(e&&(Tf(e)?r=e:n=e),t&&(r=t),n&&n!==`001`){var i=this.getCountryMetadata(n);if(!i)throw Error(`Unknown country: ${n}`);this.numberingPlan=new Ff(i,this);}else if(r){if(!this.hasCallingCode(r))throw Error(`Unknown calling code: ${r}`);this.numberingPlan=new Ff(this.getNumberingPlanMetadata(r),this);}else this.numberingPlan=void 0;return this}},{key:`getCountryCodesForCallingCode`,value:function(e){var t=this.countryCallingCodes()[e];if(t)return t.length===1&&t[0].length===3?void 0:t}},{key:`getCountryCodeForCallingCode`,value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:`getNumberingPlanMetadata`,value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else {var r=this.countryCallingCodes()[e];if(r&&r.length===1&&r[0]===`001`)return this.metadata.countries[`001`]}}},{key:`countryCallingCode`,value:function(){return this.numberingPlan.callingCode()}},{key:`IDDPrefix`,value:function(){return this.numberingPlan.IDDPrefix()}},{key:`defaultIDDPrefix`,value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:`nationalNumberPattern`,value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:`possibleLengths`,value:function(){return this.numberingPlan.possibleLengths()}},{key:`formats`,value:function(){return this.numberingPlan.formats()}},{key:`nationalPrefixForParsing`,value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:`nationalPrefixTransformRule`,value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:`leadingDigits`,value:function(){return this.numberingPlan.leadingDigits()}},{key:`hasTypes`,value:function(){return this.numberingPlan.hasTypes()}},{key:`type`,value:function(e){return this.numberingPlan.type(e)}},{key:`ext`,value:function(){return this.numberingPlan.ext()}},{key:`countryCallingCodes`,value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:`chooseCountryByCountryCallingCode`,value:function(e){return this.selectNumberingPlan(e)}},{key:`hasSelectedNumberingPlan`,value:function(){return this.numberingPlan!==void 0}}])}(),Ff=function(){function e(t,n){Df(this,e),this.globalMetadataObject=n,this.metadata=t,Wf.call(this,n.metadata);}return kf(e,[{key:`callingCode`,value:function(){return this.metadata[0]}},{key:`_getDefaultCountryMetadataForThisCallingCode`,value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:`getDefaultCountryMetadataForRegion`,value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:`IDDPrefix`,value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:`defaultIDDPrefix`,value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:`nationalNumberPattern`,value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:`possibleLengths`,value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:`_getFormats`,value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:`formats`,value:function(){var e=this;return (this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[]).map(function(t){return new If(t,e)})}},{key:`nationalPrefix`,value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:`_getNationalPrefixFormattingRule`,value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:`nationalPrefixFormattingRule`,value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:`_nationalPrefixForParsing`,value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:`nationalPrefixForParsing`,value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:`nationalPrefixTransformRule`,value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:`_getNationalPrefixIsOptionalWhenFormatting`,value:function(){return !!this.metadata[this.v1?7:this.v2?8:9]}},{key:`nationalPrefixIsOptionalWhenFormattingInNationalFormat`,value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:`leadingDigits`,value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:`types`,value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:`hasTypes`,value:function(){return this.types()&&this.types().length===0?false:!!this.types()}},{key:`type`,value:function(e){if(this.hasTypes()&&zf(this.types(),e))return new Rf(zf(this.types(),e),this)}},{key:`ext`,value:function(){return this.v1||this.v2?Pf:this.metadata[13]||Pf}}])}(),If=function(){function e(t,n){Df(this,e),this._format=t,this.metadata=n;}return kf(e,[{key:`pattern`,value:function(){return this._format[0]}},{key:`format`,value:function(){return this._format[1]}},{key:`leadingDigitsPatterns`,value:function(){return this._format[2]||[]}},{key:`nationalPrefixFormattingRule`,value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:`nationalPrefixIsOptionalWhenFormattingInNationalFormat`,value:function(){return !!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:`nationalPrefixIsMandatoryWhenFormattingInNationalFormat`,value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:`usesNationalPrefix`,value:function(){return !!(this.nationalPrefixFormattingRule()&&!Lf.test(this.nationalPrefixFormattingRule()))}},{key:`internationalFormat`,value:function(){return this._format[5]||this.format()}}])}(),Lf=/^\(?\$1\)?$/,Rf=function(){function e(t,n){Df(this,e),this.type=t,this.metadata=n;}return kf(e,[{key:`pattern`,value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:`possibleLengths`,value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function zf(e,t){switch(t){case `FIXED_LINE`:return e[0];case `MOBILE`:return e[1];case `TOLL_FREE`:return e[2];case `PREMIUM_RATE`:return e[3];case `PERSONAL_NUMBER`:return e[4];case `VOICEMAIL`:return e[5];case `UAN`:return e[6];case `PAGER`:return e[7];case `VOIP`:return e[8];case `SHARED_COST`:return e[9]}}function Bf(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Wd(e)||!Wd(e.countries))throw Error(`[libphonenumber-js] \`metadata\` argument was passed but it's not a valid metadata. Must be an object having \`.countries\` child object property. Got ${Wd(e)?`an object of shape: { `+Object.keys(e).join(`, `)+` }`:`a `+Vf(e)+`: `+e}.`)}var Vf=function(e){return Ef(e)};function Hf(e,t){var n=new Z$1(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw Error(`Unknown country: ${e}`)}function Uf(e,t){return t.countries.hasOwnProperty(e)}function Wf(e){var t=e.version;typeof t==`number`?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?Cf(t,Mf)===-1?this.v2=true:Cf(t,Nf)===-1?this.v3=true:this.v4=true:this.v1=true;}var Gf=`;ext=`,Kf=function(e){return `([${Y$1}]{1,${e}})`};function qf(e){var t=`20`,n=`15`,r=`9`,i=`6`,a=`[ \xA0\\t,]*`,o=`[:\\..]?[ \xA0\\t,-]*`,s=`#?`,c=`(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)`,l=`(?:[xx##~~]|int|int)`,u=`[- ]+`,d=`[ \xA0\\t]*`,f=`(?:,{2}|;)`,p=Gf+Kf(t),m=a+c+o+Kf(t)+s,h=a+l+o+Kf(r)+s,g=u+Kf(i)+`#`,_=d+f+o+Kf(n)+s,v=d+`(?:,)+`+o+Kf(r)+s;return p+`|`+m+`|`+h+`|`+g+`|`+_+`|`+v}var Jf$1=`[`+Y$1+`]{2}`,Yf$1=`[`+of+`]{0,1}(?:[`+af+`]*[`+Y$1+`]){3,}[`+af+Y$1+`]*`,Xf$1=RegExp(`^[`+of+`]{0,1}(?:[`+af+`]*[`+Y$1+`]){1,2}$`,`i`),Zf$1=Yf$1+`(?:`+qf()+`)?`,Qf$1=RegExp(`^`+Jf$1+`$|^`+Zf$1+`$`,`i`);function $f$1(e){return e.length>=2&&Qf$1.test(e)}function ep$1(e){return Xf$1.test(e)}var tp$1=RegExp(`(?:`+qf()+`)$`,`i`);function np$1(e){var t=e.search(tp$1);if(t<0)return {};for(var n=e.slice(0,t),r=e.match(tp$1),i=1;i<r.length;){if(r[i])return {number:n,ext:r[i]};i++;}}var rp$1={0:`0`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,"0":`0`,"1":`1`,"2":`2`,"3":`3`,"4":`4`,"5":`5`,"6":`6`,"7":`7`,"8":`8`,"9":`9`,"٠":`0`,"١":`1`,"٢":`2`,"٣":`3`,"٤":`4`,"٥":`5`,"٦":`6`,"٧":`7`,"٨":`8`,"٩":`9`,"۰":`0`,"۱":`1`,"۲":`2`,"۳":`3`,"۴":`4`,"۵":`5`,"۶":`6`,"۷":`7`,"۸":`8`,"۹":`9`};function ip$1(e){return rp$1[e]}function ap$1(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return (n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=op$1(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:true}:{done:false,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
92
|
-
|
|
93
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yp$1(e,t){if(e){if(typeof e==`string`)return bp(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bp(e,t):void 0}}function bp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var xp=[`MOBILE`,`PREMIUM_RATE`,`TOLL_FREE`,`SHARED_COST`,`VOIP`,`PERSONAL_NUMBER`,`PAGER`,`UAN`,`VOICEMAIL`];function Sp(e,t,n){if(t||={},!(!e.country&&!e.countryCallingCode)){var r=new Z$1(n);r.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(Q$2(i,r.nationalNumberPattern())){if(Cp(i,`FIXED_LINE`,r))return r.type(`MOBILE`)&&r.type(`MOBILE`).pattern()===``||!r.type(`MOBILE`)||Cp(i,`MOBILE`,r)?`FIXED_LINE_OR_MOBILE`:`FIXED_LINE`;for(var a=vp$1(xp),o;!(o=a()).done;){var s=o.value;if(Cp(i,s,r))return s}}}}function Cp(e,t,n){var r=n.type(t);return !r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0?false:Q$2(e,r.pattern())}function wp(e,t,n){t||={};var r=new Z$1(n);return r.selectNumberingPlan(e.country||e.countryCallingCode),r.hasTypes()?Sp(e,t,r.metadata)!==void 0:Q$2(t.v2?e.nationalNumber:e.phone,r.nationalNumberPattern())}var Tp$1=/^[A-Z]{2}$/;function Ep$1(e){return Tp$1.test(e)}var Dp$1=false;function Op$1(e,t){var n,r,i=new Z$1(t);return Ep$1(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):(r=e,Dp$1),{country:n,callingCode:r}}function kp$1(e,t,n){var r=new Z$1(n).getCountryCodesForCallingCode(e);return r?r.filter(function(e){return Ap$1(t,e,n)}):[]}function Ap$1(e,t,n){var r=new Z$1(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var jp$1=RegExp(`([`+Y$1+`])`);function Mp$1(e,t,n,r){if(t){var i=new Z$1(r);i.selectNumberingPlan(t||n);var a=new RegExp(i.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var o=e.match(jp$1);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]===`0`))return e}}}function Np$1(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=RegExp(`^(?:`+t.numberingPlan.nationalPrefixForParsing()+`)`),r=n.exec(e);if(r){var i,a,o=r.length-1,s=o>0&&r[o];if(t.nationalPrefixTransformRule()&&s)i=e.replace(n,t.nationalPrefixTransformRule()),o>1&&(a=r[1]);else {var c=r[0];i=e.slice(c.length),s&&(a=r[1]);}var l;if(s){var u=e.indexOf(r[1]);e.slice(0,u)===t.numberingPlan.nationalPrefix()&&(l=t.numberingPlan.nationalPrefix());}else l=r[0];return {nationalNumber:i,nationalPrefix:l,carrierCode:a}}}return {nationalNumber:e}}function Pp$1(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return (n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Fp$1(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:true}:{done:false,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
94
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fp$1(e,t){if(e){if(typeof e==`string`)return Ip$1(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ip$1(e,t):void 0}}function Ip$1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Lp$1(e,t,n){for(var r=new Z$1(n),i=Pp$1(t),a;!(a=i()).done;){var o=a.value;if(r.selectNumberingPlan(o),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return o}else if(Sp({phone:e,country:o},void 0,r.metadata))return o}}function zp$1(e,t){var n=t.nationalNumber,r=t.metadata;var i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:Lp$1(n,i,r.metadata)}function Bp$1(e,t,n){var r=Np$1(e,n),i=r.carrierCode,a=r.nationalNumber;return a!==e&&(!Vp$1(e,a,n)||n.numberingPlan.possibleLengths()&&(t||=zp$1(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n}),!Hp$1(a,t,n)))?{nationalNumber:e}:{nationalNumber:a,carrierCode:i}}function Vp$1(e,t,n){return !(Q$2(e,n.nationalNumberPattern())&&!Q$2(t,n.nationalNumberPattern()))}function Hp$1(e,t,n){switch(mp$1(e,t,n)){case `TOO_SHORT`:case `INVALID_LENGTH`:return false;default:return true}}function Up$1(e,t,n,r,i){if(!(n||r))return {number:e};var a=n?Hf(n,i):r;if(e.indexOf(a)===0){var o=new Z$1(i);o.selectNumberingPlan(n||r);var s=e.slice(a.length),c=Bp$1(s,void 0,o).nationalNumber,l=Bp$1(e,void 0,o).nationalNumber;if(!Q$2(l,o.nationalNumberPattern())&&Q$2(c,o.nationalNumberPattern())||mp$1(l,void 0,o)===`TOO_LONG`)return {countryCallingCode:a,number:s}}return {number:e}}function Wp$1(e,t,n,r,i){if(!e)return {};var a;if(e[0]!==`+`){var o=Mp$1(e,n,r,i);if(o&&o!==e)a=true,e=`+`+o;else {if(n||r){var s=Up$1(e,t,n,r,i),c=s.countryCallingCode,l=s.number;if(c)return {countryCallingCodeSource:`FROM_NUMBER_WITHOUT_PLUS_SIGN`,countryCallingCode:c,number:l}}return {number:e}}}if(e[1]===`0`)return {};for(var u=new Z$1(i),d=2;d-1<=3&&d<=e.length;){var f=e.slice(1,d);if(u.hasCallingCode(f))return u.selectNumberingPlan(f),{countryCallingCodeSource:a?`FROM_NUMBER_WITH_IDD`:`FROM_NUMBER_WITH_PLUS_SIGN`,countryCallingCode:f,number:e.slice(d)};d++;}return {}}function Gp$1(e){return e.replace(RegExp(`[${af}]+`,`g`),` `).trim()}var Kp$1=/(\$\d)/;function qp$1(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;var a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(Kp$1,t.nationalPrefixFormattingRule()):t.format());return r?Gp$1(a):a}var Jp$1=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Yp$1(e,t,n){var r=new Z$1(n);if(r.selectNumberingPlan(e||t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(Jp$1.test(r.IDDPrefix()))return r.IDDPrefix()}function Xp$1(e){var t=e.number,n=e.ext;if(!t)return ``;if(t[0]!==`+`)throw Error(`"formatRFC3966()" expects "number" to be in E.164 format.`);return `tel:${t}${n?`;ext=`+n:``}`}var Zp$1={formatExtension:function(e,t,n){return `${e}${n.ext()}${t}`}};function Qp$1(e,t,n,r){n=n?rm$1({},Zp$1,n):Zp$1;var i=new Z$1(r);if(e.country&&e.country!==`001`){if(!i.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);i.selectNumberingPlan(e.country);}else if(e.countryCallingCode)i.selectNumberingPlan(e.countryCallingCode);else return e.phone||``;var a=i.countryCallingCode(),o=n.v2?e.nationalNumber:e.phone,s;switch(t){case `NATIONAL`:return o?(s=$p$1(o,e.carrierCode,`NATIONAL`,i,n),tm$1(s,e.ext,i,n.formatExtension)):``;case `INTERNATIONAL`:return o?(s=$p$1(o,null,`INTERNATIONAL`,i,n),s=`+${a} ${s}`,tm$1(s,e.ext,i,n.formatExtension)):`+${a}`;case `E.164`:return `+${a}${o}`;case `RFC3966`:return Xp$1({number:`+${a}${o}`,ext:e.ext});case `IDD`:if(!n.fromCountry)return;var c=nm$1(o,e.carrierCode,a,n.fromCountry,i);return c?tm$1(c,e.ext,i,n.formatExtension):void 0;default:throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`)}}function $p$1(e,t,n,r,i){var a=em$1(r.formats(),e);return a?qp$1(e,a,{useInternationalFormat:n===`INTERNATIONAL`,withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===false)}):e}function em$1(e,t){return im$1(e,function(e){if(e.leadingDigitsPatterns().length>0){var n=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(t.search(n)!==0)return false}return Q$2(t,e.pattern())})}function tm$1(e,t,n,r){return t?r(e,t,n):e}function nm$1(e,t,n,r,i){if(Hf(r,i.metadata)===n){var a=$p$1(e,t,`NATIONAL`,i);return n===`1`?n+` `+a:a}var o=Yp$1(r,void 0,i.metadata);if(o)return `${o} ${n} ${$p$1(e,null,`INTERNATIONAL`,i)}`}function rm$1(){for(var e=1,t=[...arguments];e<t.length;){if(t[e])for(var n in t[e])t[0][n]=t[e][n];e++;}return t[0]}function im$1(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++;}}function am$1(e){"@babel/helpers - typeof";return am$1=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},am$1(e)}function om$1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function sm$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?om$1(Object(n),true).forEach(function(t){cm$1(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):om$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function cm$1(e,t,n){return (t=fm$1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function lm$1(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function um$1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false,r.configurable=true,`value`in r&&(r.writable=true),Object.defineProperty(e,fm$1(r.key),r);}}function dm$1(e,t,n){return t&&um$1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function fm$1(e){var t=pm$1(e,`string`);return am$1(t)==`symbol`?t:t+``}function pm$1(e,t){if(am$1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(am$1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (String)(e)}var mm$1=function(){function e(t,n,r){if(lm$1(this,e),!t)throw TypeError(`First argument is required`);if(typeof t!=`string`)throw TypeError(`First argument must be a string`);if(t[0]===`+`&&!n)throw TypeError("`metadata` argument not passed");if(Wd(n)&&Wd(n.countries)){r=n;var i=t;if(!hm$1.test(i))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=Wp$1(i,void 0,void 0,void 0,r),o=a.countryCallingCode;if(n=a.number,t=o,!n)throw Error("Invalid `number` argument passed: too short")}if(!n)throw TypeError("`nationalNumber` argument is required");if(typeof n!=`string`)throw TypeError("`nationalNumber` argument must be a string");Bf(r);var s=Op$1(t,r),c=s.country,l=s.callingCode;this.country=c,this.countryCallingCode=l,this.nationalNumber=n,this.number=`+`+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r};}return dm$1(e,[{key:`setExt`,value:function(e){this.ext=e;}},{key:`getPossibleCountries`,value:function(){return this.country?[this.country]:kp$1(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:`isPossible`,value:function(){return gp$1(this,{v2:true},this.getMetadata())}},{key:`isValid`,value:function(){return wp(this,{v2:true},this.getMetadata())}},{key:`isNonGeographic`,value:function(){return new Z$1(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:`isEqual`,value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:`getType`,value:function(){return Sp(this,{v2:true},this.getMetadata())}},{key:`format`,value:function(e,t){return Qp$1(this,e,t?sm$1(sm$1({},t),{},{v2:true}):{v2:true},this.getMetadata())}},{key:`formatNational`,value:function(e){return this.format(`NATIONAL`,e)}},{key:`formatInternational`,value:function(e){return this.format(`INTERNATIONAL`,e)}},{key:`getURI`,value:function(e){return this.format(`RFC3966`,e)}}])}(),hm$1=/^\+\d+$/,gm$1=`([`+Y$1+`]|[\\-\\.\\(\\)]?)`,_m$1=`^\\+`+gm$1+`*[`+Y$1+`]`+gm$1+`*$`,vm$1=new RegExp(_m$1,`g`),ym$1=Y$1,bm$1=`[`+ym$1+`]+((\\-)*[`+ym$1+`])*`,xm$1=`[a-zA-Z]+((\\-)*[`+ym$1+`])*`,Sm$1=`^(`+bm$1+`\\.)*`+xm$1+`\\.?$`,Cm$1=new RegExp(Sm$1,`g`),wm$1=`tel:`,Tm$1=`;phone-context=`,Em$1=`;isub=`;function Dm$1(e){var t=e.indexOf(Tm$1);if(t<0)return null;var n=t+Tm$1.length;if(n>=e.length)return ``;var r=e.indexOf(`;`,n);return r>=0?e.substring(n,r):e.substring(n)}function Om$1(e){return e===null?true:e.length===0?false:vm$1.test(e)||Cm$1.test(e)}function km$1(e,t){var n=t.extractFormattedPhoneNumber,r=Dm$1(e);if(!Om$1(r))throw new X$2(`NOT_A_NUMBER`);var i;if(r===null)i=n(e)||``;else {i=``,r.charAt(0)===`+`&&(i+=r);var a=e.indexOf(wm$1),o=a>=0?a+wm$1.length:0,s=e.indexOf(Tm$1);i+=e.substring(o,s);}var c=i.indexOf(Em$1);if(c>0&&(i=i.substring(0,c)),i!==``)return i}var Am$1=250,jm$1=RegExp(`[`+of+Y$1+`]`),Mm$1=RegExp(`[^`+Y$1+`#]+$`),Nm$1=false;function Pm$1(e,t,n){t||={};var r=new Z$1(n);if(t.defaultCountry&&!r.hasCountry(t.defaultCountry))throw t.v2?new X$2(`INVALID_COUNTRY`):Error(`Unknown country: ${t.defaultCountry}`);var i=Im$1(e,t.v2,t.extract),a=i.number,o=i.ext,s=i.error;if(!a){if(t.v2)throw s===`TOO_SHORT`?new X$2(`TOO_SHORT`):new X$2(`NOT_A_NUMBER`);return {}}var c=Rm$1(a,t.defaultCountry,t.defaultCallingCode,r),l=c.country,u=c.nationalNumber,d=c.countryCallingCode,f=c.countryCallingCodeSource,p=c.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new X$2(`INVALID_COUNTRY`);return {}}if(!u||u.length<2){if(t.v2)throw new X$2(`TOO_SHORT`);return {}}if(u.length>17){if(t.v2)throw new X$2(`TOO_LONG`);return {}}if(t.v2){var m=new mm$1(d,u,r.metadata);return l&&(m.country=l),p&&(m.carrierCode=p),o&&(m.ext=o),m.__countryCallingCodeSource=f,m}var h=(t.extended?r.hasSelectedNumberingPlan():l)?Q$2(u,r.nationalNumberPattern()):false;return t.extended?{country:l,countryCallingCode:d,carrierCode:p,valid:h,possible:h?true:!!(t.extended===true&&r.possibleLengths()&&_p$1(u,r)),phone:u,ext:o}:h?Lm$1(l,u,o):{}}function Fm$1(e,t,n){if(e){if(e.length>Am$1){if(n)throw new X$2(`TOO_LONG`);return}if(t===false)return e;var r=e.search(jm$1);if(!(r<0))return e.slice(r).replace(Mm$1,``)}}function Im$1(e,t,n){var r=km$1(e,{extractFormattedPhoneNumber:function(e){return Fm$1(e,n,t)}});if(!r)return {};if(!$f$1(r))return ep$1(r)?{error:`TOO_SHORT`}:{};var i=np$1(r);return i.ext?i:{number:r}}function Lm$1(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function Rm$1(e,t,n,r){var i=Wp$1(cp$1(e),void 0,t,n,r.metadata),a=i.countryCallingCodeSource,o=i.countryCallingCode,s=i.number,c;if(o)r.selectNumberingPlan(o);else if(s&&(t||n))t?(c=t,r.selectNumberingPlan(t),o=r.numberingPlan.callingCode()):(r.selectNumberingPlan(n),o=n,Nm$1);else return {};if(!s)return {countryCallingCodeSource:a,countryCallingCode:o};var l=Bp$1(cp$1(s),void 0,r),u=l.nationalNumber,d=l.carrierCode,f=zp$1(o,{nationalNumber:u,metadata:r});return f&&(c=f,f===`001`||r.selectNumberingPlan(c)),{country:c,countryCallingCode:o,countryCallingCodeSource:a,nationalNumber:u,carrierCode:d}}function zm$1(e){"@babel/helpers - typeof";return zm$1=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},zm$1(e)}function Bm$1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function Vm$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Bm$1(Object(n),true).forEach(function(t){Hm$1(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bm$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function Hm$1(e,t,n){return (t=Um$1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Um$1(e){var t=Wm$1(e,`string`);return zm$1(t)==`symbol`?t:t+``}function Wm$1(e,t){if(zm$1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zm$1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function Gm$1(e,t,n){return Pm$1(e,Vm$1(Vm$1({},t),{},{v2:true}),n)}function Km$1(e){"@babel/helpers - typeof";return Km$1=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Km$1(e)}function qm$1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function Jm$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qm$1(Object(n),true).forEach(function(t){Ym$1(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qm$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function Ym$1(e,t,n){return (t=Xm$1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Xm$1(e){var t=Zm$1(e,`string`);return Km$1(t)==`symbol`?t:t+``}function Zm$1(e,t){if(Km$1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Km$1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function Qm$1(e,t,n){t&&t.defaultCountry&&!Uf(t.defaultCountry,n)&&(t=Jm$1(Jm$1({},t),{},{defaultCountry:void 0}));try{return Gm$1(e,t,n)}catch(e){if(!(e instanceof X$2))throw e}}function $m$1(e){"@babel/helpers - typeof";return $m$1=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},$m$1(e)}function eh$1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function th$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?eh$1(Object(n),true).forEach(function(t){nh$1(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function nh$1(e,t,n){return (t=rh$1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function rh$1(e){var t=ih$1(e,`string`);return $m$1(t)==`symbol`?t:t+``}function ih$1(e,t){if($m$1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($m$1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function ah$1(){var e=rf(arguments),t=e.text,n=e.options,r=e.metadata;n=th$1(th$1({},n),{},{extract:false});var i=Qm$1(t,n,r);return i&&i.isValid()||false}function oh$1(){return Hd(ah$1,arguments)}const sh$1=Yu.omit({eventId:true,channel:true,analytics:true}).partial().extend({id:na$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order to update`}),signature:Ar.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for all order updates.`}),items:Ga$1(Uu).min(1).optional().meta({description:`Updated list of items for the order. Requires signature. Prices will be recalculated and payment intent updated.`}),customer:qa$1({firstName:na$1().meta({examples:[w$1.Customer.firstName],description:`Updated first name of the customer`}).optional(),lastName:na$1().meta({examples:[w$1.Customer.lastName],description:`Updated last name of the customer`}).optional(),email:ia$1().meta({examples:[w$1.Customer.email],description:`Updated email address of the customer`}).optional(),phone:na$1().refine(e=>!e||oh$1(e),{message:`Phone must be in E.164 format (e.g., +61412345678)`}).meta({examples:[w$1.Customer.phone],description:`Updated phone number in E.164 format (e.g., +61412345678)`}).optional(),deliveryMethod:Zu.optional()}).optional().meta({description:`Updated customer information for the order. All fields are optional for partial updates.`}),marketingConsent:Vl.optional().meta({description:`Marketing opt-in choices captured during checkout.`})}),ch$1=qa$1({id:na$1().meta({examples:[w$1.Order.id],description:`Unique identifier of the order`}),noteId:na$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to update`}),note:na$1().min(1).max(1e3).meta({examples:[`Updated: Customer confirmed special seating arrangements`],description:`Updated note text content (1-1000 characters)`})});qa$1({success:ka$1().meta({description:`Whether the payout approval was successful`}),message:na$1().optional().meta({description:`Optional message about the approval result`}),payoutId:na$1().meta({description:`ID of the payout that was approved`})});const uh$1=qa$1({payoutId:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout for which to retrieve the detailed breakdown of orders and financial calculations.`})}),dh$1=io$1([`DISPUTE_REVERSAL_CREDIT`,`REFUND_REVERSAL_CREDIT`]),fh$1=io$1([`AIRWALLEX_SETTLEMENT_CREDIT`]),ph$1=qa$1({source:fh$1,kind:dh$1,adjustmentId:na$1(),adjustmentUniqueKey:na$1(),sourceKey:na$1(),sourcePayoutId:na$1(),settlementId:na$1(),transactionId:na$1().optional(),paymentIntentId:na$1().optional(),paymentAttemptId:na$1().optional(),createdActionPublishedAt:Pi$1().optional()}),mh$1=qa$1({id:na$1().readonly().meta({examples:[w$1.PayoutDeduction.id],description:`Unique identifier for this deduction record.`}),createdAt:Pi$1().readonly().meta({examples:[w$1.PayoutDeduction.createdAt],description:`Timestamp in ISO 8601 format when this deduction was created.`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.PayoutDeduction.updatedAt],description:`Timestamp in ISO 8601 format when this deduction was last updated.`}),amount:Da$1().max(0).meta({examples:[w$1.PayoutDeduction.amount],description:`Deprecated legacy deduction amount in cents. Negative values reduce the payout.`}),currency:D$1.meta({examples:[w$1.PayoutDeduction.currency],description:`Currency code in ISO 4217 format for the deduction amount.`}),description:na$1().meta({examples:[w$1.PayoutDeduction.description],description:`Human-readable description explaining the reason for this legacy deduction.`}),gateway:na$1().meta({examples:[w$1.PayoutDeduction.gateway],description:`Payment gateway identifier where this legacy deduction was processed.`}),gatewayId:na$1().meta({examples:[w$1.PayoutDeduction.gatewayId],description:`Unique identifier assigned by the payment gateway for this legacy deduction transaction.`}),beneficiary:na$1().meta({examples:[w$1.PayoutDeduction.beneficiary],description:`Human-readable name of the beneficiary account from which this legacy deduction was taken.`}),beneficiaryId:na$1().meta({examples:[w$1.PayoutDeduction.beneficiaryId],description:`Unique identifier of the beneficiary account from which this legacy deduction was taken.`}),transferId:na$1().optional().meta({description:`Optional reference to a transfer record when this legacy deduction resulted in money being moved to a future payout.`}),transferPayoutId:na$1().optional().meta({description:`Optional reference to a future payout where the legacy deducted amount was applied.`})}),hh$1=qa$1({id:na$1().meta({examples:[w$1.Event.id],description:`Unique identifier for the event associated with this payout.`}),name:na$1().meta({examples:[w$1.Event.name],description:`Human-readable name of the event.`}),slug:na$1().meta({examples:[w$1.Event.slug],description:`URL-friendly slug identifier for the event.`}),location:na$1().optional().meta({examples:[w$1.Event.location.name],description:`Optional human-readable location name where the event takes place.`})}),gh$1=qa$1({net:Da$1().meta({examples:[w$1.Payout.price.net],description:`Total amount to pay to promoter.
|
|
95
|
-
Ticket and shipping revenue after organiser-funded refunds and disputes, excluding booking and SMS fees.`}),total:Da$1().meta({examples:[w$1.Payout.price.total],description:`Customer charges including booking, shipping and SMS fees.
|
|
96
|
-
Calculated as: gross + discount + sms`}),gross:Da$1().min(0).meta({examples:[w$1.Payout.price.gross],description:`Total amount before refunds, disputes and discounts.
|
|
97
|
-
Calculated as: base + booking + shipping`}),base:Da$1().min(0).meta({examples:[w$1.Payout.price.base],description:`Total value of tickets.`}),booking:Da$1().min(0).meta({examples:[w$1.Payout.price.booking],description:`Total value of booking fees (non-refundable).`}),shipping:Da$1().min(0).meta({examples:[w$1.Payout.price.shipping],description:`Total value of shipping.`}),sms:Da$1().min(0).default(0).meta({examples:[w$1.Payout.price.sms],description:`Total SMS delivery fees collected in cents (owed to Session Services, not the event organiser).`}),refunded:Da$1().max(0).meta({examples:[w$1.Payout.price.refunded],description:`Total value of refunds (negative value).`}),discount:Da$1().max(0).meta({examples:[w$1.Payout.price.discount],description:`Total value of discounts (negative value).`}),gateway:Da$1().meta({examples:[w$1.Payout.price.gateway],description:`Total value of absorbed payment gateway fees. Negative values are charges; positive values are reversals.`}),dispute:Da$1().meta({examples:[w$1.Payout.price.dispute],description:`Total value of non-absorbed payment gateway fees. Negative values are charges; positive values are reversals.`}),deductions:Da$1().max(0).optional().meta({examples:[w$1.Payout.price.deductions],description:`Deprecated total value of legacy payout-level deductions. New recovery amounts are exposed through payout adjustments.`}),currency:D$1.meta({examples:[w$1.Payout.price.currency],description:`Currency code in ISO 4217 format.`})}),_h$1=io$1([`CREATED`,`APPROVED`,`REJECTED`,`PROCESSING`,`PAID`,`FAILED`,`CANCELLED`,`NOTE`]),vh$1=gu(_h$1,{createdAtExamples:[w$1.Payout.createdAt],descriptionExamples:[`Payout was created after event settlement`],externalIdDescription:`External idempotency key for deduplication (e.g., Airwallex transfer events)`,externalIdExamples:[`airwallex:transfer_abc123:completed`],idDescription:`Unique identifier for this timeline entry`,idExamples:[`tl_01jgxyz123abc`],kindDescription:`Type of timeline event (CREATED, APPROVED, PROCESSING, PAID, NOTE, etc.)`,kindExamples:[`CREATED`,`APPROVED`,`PAID`]}),yh$1=qa$1({id:na$1().meta({examples:[w$1.PayoutTransfer.id],description:`Unique identifier for this transfer record.`}),createdAt:Pi$1().meta({examples:[w$1.PayoutTransfer.createdAt],description:`Timestamp in ISO 8601 format when this transfer was created.`}),kind:io$1([`TICKETS`,`TENANT`,`VENUE`,`TEAM`,`SESSIONS`,`UNKNOWN`]).meta({examples:[`TICKETS`],description:`Type of transfer. TICKETS: revenue from ticket sales, TENANT: platform fees, VENUE: venue split, TEAM: team split, SESSIONS: platform commission, UNKNOWN: unclassified transfer.`}),amount:Da$1().min(0).meta({examples:[w$1.PayoutTransfer.amount],description:`Transfer amount in cents. Positive values represent money being transferred to the beneficiary.`}),currency:D$1.meta({examples:[w$1.PayoutTransfer.currency],description:`Currency code in ISO 4217 format for the transfer amount.`}),fee:Da$1().min(0).meta({examples:[w$1.PayoutTransfer.fee],description:`Gateway processing fee for this transfer in cents. This fee is deducted from the transfer amount.`}),feeCurrency:D$1.meta({examples:[w$1.PayoutTransfer.feeCurrency],description:`Currency code in ISO 4217 format for the gateway fee.`}),reference:na$1().meta({examples:[w$1.PayoutTransfer.reference],description:`External reference identifier for tracking this transfer with the payment gateway.`}),gateway:io$1([`AIRWALLEX`,`STRIPE`]).meta({examples:[`AIRWALLEX`],description:`Payment gateway used to process this transfer.`}),gatewayId:na$1().meta({examples:[w$1.PayoutTransfer.gatewayId],description:`Unique identifier assigned by the payment gateway for this transfer.`}),beneficiary:na$1().meta({examples:[w$1.PayoutTransfer.beneficiary],description:`Human-readable name of the beneficiary receiving this transfer.`}),beneficiaryId:na$1().meta({examples:[w$1.PayoutTransfer.beneficiaryId],description:`Unique identifier of the beneficiary account receiving this transfer.`}),status:na$1().optional().meta({examples:[`SCHEDULED`],description:`Transfer status from the payment gateway (e.g. SCHEDULED, IN_PROGRESS, COMPLETED).`}),settlementAmount:Da$1().min(0).optional().meta({examples:[3550],description:`Amount received by the beneficiary in their local currency, in cents. Present only for cross-currency transfers where the settlement currency differs from the source currency.`}),settlementCurrency:D$1.optional().meta({examples:[`USD`],description:`Currency code in ISO 4217 format for the settlement amount. Present only for cross-currency transfers.`}),deductionId:na$1().optional().meta({description:`Deprecated optional reference to a legacy deduction record.`}),deductionPayoutId:na$1().optional().meta({description:`Deprecated optional reference to the payout that originated a legacy deduction transfer.`})}),bh$1=io$1([`UPCOMING`,`FAILED`,`PROCESSING`,`PAID`,`CANCELLED`]),Sh$1=io$1([`AIRWALLEX`,`STRIPE`,`MANUAL`]),wh$1=io$1([`DAILY`,`WEEKLY`,`AFTER_EVENT`,`ON_DEMAND`]),$$2=qa$1({id:na$1().readonly().meta({examples:[w$1.Payout.id],description:`A unique identifier for this payout.`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Payout.createdAt],description:`Timestamp in ISO 8601 format when this payout was created.`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Payout.updatedAt],description:`Timestamp in ISO 8601 format when this payout was last updated.`}),statementPending:ka$1().optional().meta({description:`Whether the completed payout is awaiting its accounting statement snapshot.`}),statementVersion:Da$1().positive().optional().meta({description:`Version of the immutable issued statement, absent on legacy payouts.`}),paidAt:Pi$1().optional().meta({examples:[w$1.Payout.paidAt],description:`Timestamp in ISO 8601 format when this payout was completed.`}),dueAt:Pi$1().optional().meta({examples:[w$1.Payout.createdAt],description:`Earliest timestamp in ISO 8601 format when this payout can be picked up for processing. This is not a guaranteed bank arrival time.`}),status:bh$1.meta({examples:[`PAID`],description:`Current payment status of this payout.`}),method:Sh$1.meta({examples:[`MANUAL`],description:`The payout channel used for disbursing funds.`}),failedAttempts:Da$1().nonnegative().optional().meta({description:`Failures since approval. After four failures an administrator must explicitly retry the payout. Absent on legacy payouts.`}),approval:E$1.meta({examples:[`APPROVED`],description:`Approval status for this payout.`}),frequency:wh$1.default(`AFTER_EVENT`).meta({examples:[`AFTER_EVENT`],description:`Schedule on which this payout is generated.`}),structure:na$1().meta({examples:[w$1.Payout.structure],description:`Data structure defining how funds are allocated in this payout.`}),transfers:Ga$1(yh$1).meta({description:`List of individual transfer records included in this payout.`}),deductions:Ga$1(mh$1).optional().meta({description:`Deprecated legacy deductions applied before calculating the payout total. New recovery amounts are exposed through payout adjustments.`}),price:gh$1.meta({description:`Summary of event/order-derived amounts for this payout.`}),unsettled:gh$1.optional().meta({description:`Completed sales assigned to this payout that are still awaiting settlement.`}),unsettledCount:Ta$1().int().nonnegative().optional().meta({description:`Number of orders still awaiting settlement.`}),recovery:ph$1.optional().meta({description:`Optional recovery metadata when this payout exists to return settlement-proven recovered funds.`}),event:hh$1.meta({description:`Information about the event associated with this payout.`}),timeline:Ga$1(vh$1).optional().meta({description:`Chronological list of status changes and notes for this payout.`}),eventId:na$1().meta({examples:[w$1.Payout.eventId],description:`Identifier of the event for which this payout was generated.`}),teamId:na$1().meta({description:`Team receiving this payout. BREAKING CHANGE: Replaced promoterId/promoterSlug.`})}).meta({description:`payout`});qa$1({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to approve for processing.`})});qa$1({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to reject.`}),reason:na$1().optional().meta({examples:[`Insufficient funds in account`],description:`Optional reason for rejecting the payout. This will be recorded for audit purposes.`})});qa$1({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to process and initiate transfers.`})});qa$1({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to retry transfer processing for.`})});const Ah$1=qa$1({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to add a note to`}),note:na$1().trim().min(1).max(1e3).meta({examples:[`Transfer confirmed via bank statement`],description:`Note text content (1-1000 characters)`})}),jh$1=io$1([`REFUND`,`DISPUTE_PRINCIPAL`,`DISPUTE_FEE`,`GATEWAY_FEE`,`NEGATIVE_PAYOUT_CARRY_FORWARD`,`LEGACY_ADJUSTMENT`]),Mh$1=io$1([`RESERVED`,`OPEN`,`PARTIALLY_APPLIED`,`APPLIED`]),Nh$1=io$1([`OUTSTANDING`,`APPLIED`,`ALL`]),Ph$1=io$1([`event`,`payout`]),Fh$1=qa$1({id:na$1(),name:na$1(),slug:na$1()}),Ih$1=qa$1({id:na$1(),status:bh$1,approval:E$1,method:Sh$1,dueAt:Pi$1().optional(),paidAt:Pi$1().optional(),event:Fh$1,price:gh$1,unsettled:gh$1.optional()}),Lh$1=qa$1({id:na$1(),payoutId:na$1(),amount:Da$1().min(0),currency:D$1,appliedAt:Pi$1(),transferId:na$1().optional(),payout:Ih$1.optional()}),Rh$1=qa$1({id:na$1(),createdAt:Pi$1(),updatedAt:Pi$1(),provenAt:Pi$1(),teamId:na$1(),eventId:na$1().optional(),orderId:na$1().optional(),payoutId:na$1().optional(),sourcePayoutId:na$1().optional(),gateway:Sh$1,kind:jh$1,direction:oo$1(`DEBIT`),status:Mh$1,amount:Da$1().min(0),appliedAmount:Da$1().min(0),remainingAmount:Da$1().min(0),currency:D$1,beneficiary:na$1(),beneficiaryId:na$1(),description:na$1(),settlementId:na$1().optional(),transactionId:na$1().optional(),feeType:na$1().optional(),feeSourceId:na$1().optional(),disputeId:na$1().optional(),refundId:na$1().optional(),paymentIntentId:na$1().optional(),paymentAttemptId:na$1().optional(),customer:El.optional(),event:Fh$1.optional(),sourcePayout:Ih$1.optional(),applications:Ga$1(Lh$1)}),zh$1=qa$1({id:na$1()}),Bh$1=qa$1({adjustmentId:na$1(),amount:Da$1().min(0),currency:D$1}),Vh$1=qa$1({amount:Da$1().min(0),appliedAmount:Da$1().min(0),remainingAmount:Da$1().min(0),projectedAmount:Da$1().min(0),currency:D$1}),Hh$1=qa$1({id:na$1(),event:Fh$1.optional(),adjustments:Ga$1(Rh$1),totals:Ga$1(Vh$1)}),Uh$1=qa$1({id:na$1(),payout:Ih$1,adjustments:Ga$1(Rh$1),projections:Ga$1(Bh$1),totals:Ga$1(Vh$1),projectedNetAmount:Da$1()}),Wh$1=qa$1({adjustmentCount:Da$1().min(0),eventCount:Da$1().min(0),upcomingPayoutCount:Da$1().min(0),totals:Ga$1(Vh$1)}),Gh$1=qa$1({teamId:na$1(),query:na$1().optional(),status:Nh$1.optional(),groupBy:Ph$1.optional(),eventId:na$1().optional(),currency:D$1.optional(),limit:L$1(`adjustments`).optional(),cursor:Ln.optional()}),Kh$1=qa$1({adjustments:Ga$1(Rh$1),eventGroups:Ga$1(Hh$1),payoutGroups:Ga$1(Uh$1),summary:Wh$1,summaryScope:oo$1(`PAGE`),before:na$1().nullish(),after:na$1().nullish(),limit:Ta$1().int().min(1)}),qh$1=qa$1({adjustment:Rh$1,adjustments:Ga$1(Rh$1),eventGroups:Ga$1(Hh$1),payoutGroups:Ga$1(Uh$1),summary:Wh$1}),Jh$1=qa$1({name:na$1(),gateway:io$1([`AIRWALLEX`,`STRIPE`,`FREE`]),message:na$1(),eventIds:Ga$1(na$1()).optional(),venues:Ga$1(na$1()).optional(),tenants:Ga$1(na$1()).optional(),teams:Ga$1(na$1()).optional(),ticketBeneficiaryTeamId:na$1().optional(),venueBeneficiaryTeamId:na$1().optional(),min:Ta$1().optional(),max:Ta$1().optional(),percent:Ta$1().optional(),split:qa$1({tenant:Ta$1(),team:Ta$1(),venue:Ta$1(),sessions:Ta$1()})}).refine(e=>e.split.venue<=0||e.venueBeneficiaryTeamId!==void 0,{message:`Venue fee splits require a beneficiary team`,path:[`venueBeneficiaryTeamId`]}),Yh$1=`tem_01kach7nnvfvmbtfvgtgkb47kc`,Xh$1=`tem_01kqbww0g2fersexg66rbsffmd`,Zh$1=`tem_01kach7nntfvmbtfttvvqfgwbz`,Qh$1=`tem_01kh7xaxpbebj9538fp9nn019f`;Jh$1.array().parse([{name:`DEFAULT`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2 AUD, whichever is higher`,min:200,percent:7.5,split:{tenant:0,team:0,venue:0,sessions:1}},{name:`MIXMAG_ANZ_DEFAULT`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2 AUD, whichever is higher`,tenants:[`tnt_01hk153x00en6tvgwwwhn8xj1p`],min:200,percent:7.5,split:{tenant:.7,team:0,venue:0,sessions:.3}},{name:`MIXMAG_ASIA_DEFAULT`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2 AUD, whichever is higher`,tenants:[`tnt_01hk153x00ee4sgh15mp929k20`],min:200,percent:7.5,split:{tenant:.7,team:0,venue:0,sessions:.3}},{name:`MIXMAG_ANZ_SASH`,gateway:`AIRWALLEX`,message:`Controlled by S.A.S.H, flat rate of $5 AUD`,tenants:[`tnt_01hk153x00en6tvgwwwhn8xj1p`],teams:[Zh$1],min:500,max:500,split:{team:1,tenant:0,venue:0,sessions:0}},{name:`MIXMAG_ANZ_SASH_FLAT_5`,gateway:`AIRWALLEX`,message:`Controlled by S.A.S.H, flat rate of $5 AUD`,eventIds:[`evt_01kztzvgvdecrt5xq7vn67vd5k`],tenants:[`tnt_01hk153x00en6tvgwwwhn8xj1p`],ticketBeneficiaryTeamId:Zh$1,venueBeneficiaryTeamId:Zh$1,min:500,max:500,split:{team:0,tenant:0,venue:1,sessions:0}},{name:`MIXMAG_ANZ_CAROUSEL_FLAT_5`,gateway:`AIRWALLEX`,message:`Controlled by Carousel, flat rate of $5 AUD`,eventIds:[`evt_01m0pz27j2fk7atvaa51e1sh8j`],tenants:[`tnt_01hk153x00en6tvgwwwhn8xj1p`],ticketBeneficiaryTeamId:Yh$1,venueBeneficiaryTeamId:Yh$1,min:500,max:500,split:{team:0,tenant:0,venue:1,sessions:0}},{name:`MIXMAG_ANZ_CAROUSEL`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2 AUD, whichever is higher`,tenants:[`tnt_01hk153x00en6tvgwwwhn8xj1p`],teams:[Yh$1,Xh$1,Qh$1],venues:[`Carousel Bar & Ballroom`,`Carousel`,`169 Oxford St`],ticketBeneficiaryTeamId:Yh$1,venueBeneficiaryTeamId:Yh$1,min:200,percent:7.5,split:{team:0,tenant:0,venue:1,sessions:0}}]),Jh$1.array().parse([{name:`MIXMAG_ANZ_YAW_PLACE`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2.50 AUD, whichever is higher`,ticketBeneficiaryTeamId:Yh$1,venueBeneficiaryTeamId:Qh$1,min:250,percent:7.5,split:{tenant:0,team:0,venue:1,sessions:0}},{name:`MIXMAG_ANZ_KANDY`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2.50 AUD, whichever is higher`,ticketBeneficiaryTeamId:Yh$1,venueBeneficiaryTeamId:Xh$1,min:250,percent:7.5,split:{tenant:0,team:0,venue:1,sessions:0}}]);const $h$1=qa$1({tenant:Ta$1().meta({examples:[5e4],description:`Amount allocated to the tenant (platform) in cents. This represents the platform's share of the revenue.`}),venue:Ta$1().meta({examples:[25e3],description:`Amount allocated to the venue in cents. This represents the venue's share of the revenue from events held at their location.`}),team:Ta$1().meta({examples:[2e4],description:`Amount allocated to the team in cents. This represents the team's share of the revenue after fees and other deductions.`}),sessions:Ta$1().meta({examples:[3e3],description:`Amount allocated to Sessions platform commission in cents. This represents the platform's service fees.`}),tickets:Ta$1().meta({examples:[2e3],description:`Amount allocated to ticketing fees in cents. This represents fees charged for ticket processing and management.`})});qa$1({payout:$$2.meta({description:`Complete payout record containing all financial details and metadata for calculating beneficiary allocations.`}),feeStructure:Jh$1.meta({description:`Fee structure configuration that defines how revenue is split between different parties (promoter, venue, platform, etc.).`}),split:$h$1.meta({description:`Calculated split amounts showing how the payout total is divided among the different beneficiaries in cents.`})});const tg$1=qa$1({tickets:Da$1().nonnegative().optional().meta({description:`Admission ticket count captured for this statement, retained when source orders are removed.`}),orders:Ta$1().meta({examples:[150],description:`Total number of orders included in this payout breakdown.`}),price:$l.meta({description:`Aggregated price information for all orders included in this payout, showing total revenue, fees, refunds, and disputes.`}),split:$h$1.meta({description:`How the total payout amount is split between different beneficiaries (tenant, venue, promoter, etc.) in cents.`}),structure:na$1().meta({examples:[`DEFAULT`],description:`Fee structure identifier that was used to calculate the payout split and allocations.`})}),ng$1=qa$1({name:na$1().meta({description:`Captured fee structure name.`}),gateway:io$1([`AIRWALLEX`,`STRIPE`,`FREE`]).meta({description:`Payment gateway.`}),message:na$1().meta({description:`Customer-facing fee description.`}),split:qa$1({tenant:Ta$1().meta({description:`Tenant booking fee share.`}),team:Ta$1().meta({description:`Organiser booking fee share.`}),venue:Ta$1().meta({description:`Venue booking fee share.`}),sessions:Ta$1().meta({description:`Session Services booking fee share.`})}).meta({description:`Captured booking fee allocations.`}),ticketBeneficiaryTeamId:na$1().optional().meta({description:`Ticket revenue recipient override.`}),venueBeneficiaryTeamId:na$1().optional().meta({description:`Venue booking fee recipient.`})}).refine(e=>e.split.venue<=0||e.venueBeneficiaryTeamId!==void 0,{message:`Venue fee splits require a beneficiary team`,path:[`venueBeneficiaryTeamId`]}).meta({description:`Statement allocations without internal applicability selectors.`}),rg$1=qa$1({statement:qa$1({version:Da$1().positive().meta({description:`Immutable statement version.`}),capturedAt:Pi$1().meta({description:`Statement accounting cutoff.`}),feeStructure:ng$1.meta({description:`Beneficiary allocations captured for this statement.`}),adjustments:Da$1().meta({description:`Applied organiser adjustments in settlement minor units; debits are positive.`})}).optional().meta({description:`Frozen accounting basis for an issued payout statement.`}),total:tg$1.meta({description:`Summary totals for all orders included in this payout breakdown, including aggregated financial calculations.`}),orders:Ga$1(qa$1({order:q$1.meta({description:`Complete order information including customer details, items, and payment status.`}),price:$l.meta({description:`Settled price information for this specific order, showing final amounts after refunds and adjustments.`}),split:$h$1.meta({description:`How this individual order's revenue is split between different beneficiaries in cents.`}),structure:na$1().meta({examples:[`DEFAULT`],description:`Fee structure identifier used to calculate the split for this order.`})})).meta({description:`Detailed breakdown of individual orders included in this payout, showing how each order contributes to the total.`})});$$2.pick({id:true,eventId:true}).extend({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout for which to retrieve the detailed breakdown.`}),eventId:na$1().meta({examples:[w$1.Event.id],description:`Unique identifier of the event associated with the payout breakdown.`})});$$2.pick({eventId:true,teamId:true,method:true,frequency:true}).partial({method:true,frequency:true}).meta({description:`Schema for creating a new payout record`}).extend({eventId:na$1().meta({examples:[w$1.Event.id],description:`Unique identifier of the event for which the payout is being created`}),teamId:na$1().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`Unique identifier of the team who will receive the payout`}),method:io$1([`AIRWALLEX`,`STRIPE`,`MANUAL`]).optional().meta({examples:[`AIRWALLEX`],description:`Optional payment method for the payout. Defaults to promoter's preferred method if not specified`}),frequency:io$1([`DAILY`,`WEEKLY`,`AFTER_EVENT`]).optional().meta({examples:[`AFTER_EVENT`],description:`Optional payout frequency. Defaults to 'AFTER_EVENT' if not specified`})});const og$1=qa$1({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout`}),noteId:na$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to delete`})}),sg$1=$$2.pick({id:true}).extend({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to retrieve.`})}),cg$1=io$1([`createdAt`]),lg$1=io$1([`asc`,`desc`]),ug$1=qa$1({mine:ka$1().optional().meta({examples:[true],description:"When true, returns payouts from teams where the authenticated user has payout access (for example, `payout.read` or `payout.write`)."}),teamId:na$1().optional().meta({description:`Filter payouts by specific team unique identifier. BREAKING CHANGE: Replaced promoterId filter.`}),eventId:na$1().optional().meta({examples:[w$1.Event.id],description:`Filter payouts by specific event unique identifier. When provided, only returns payouts for this event.`}),status:io$1([`UPCOMING`,`FAILED`,`PROCESSING`,`PAID`,`CANCELLED`]).optional().meta({examples:[`PAID`],description:`Filter payouts by payment status. UPCOMING: scheduled but not yet processed, FAILED: failed processing and will retry, PROCESSING: currently being processed, PAID: successfully completed, CANCELLED: cancelled before completion.`}),approval:E$1.optional().meta({examples:[`APPROVED`],description:`Filter payouts by approval status. PENDING: awaiting approval, APPROVED: approved for processing, REJECTED: rejected and will not be processed.`}),manualApprovalOnly:ka$1().optional().meta({description:`Only include manual payouts and recovery credits that require an operator approval decision.`}),query:na$1().optional().meta({examples:[`PAID venue:sydney`],description:`Optional search query to filter payouts by text fields. When provided, search-backed pagination is used.`}),sort:cg$1.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest payouts first."}),direction:lg$1.optional().meta({examples:[`desc`],description:"Sort direction for payout lists. Defaults to `desc` when `sort` is provided."}),limit:L$1(`payouts`).optional(),cursor:na$1().optional().meta({examples:[`eyJpZCI6InBheV8wMWpwczVjZ3NmdjJ3cmU2aGQwcmM0dzR0OCJ9`],description:`Pagination cursor for continuing to fetch subsequent results. Use the cursor from the previous response to continue.`})}).meta({description:`Schema for listing payouts with optional filtering, search, and cursor-based pagination`}),dg$1=B$1($$2,`payouts`),fg$1=io$1([`VALID`,`FALLBACK`,`MISSING`]),pg$1=qa$1({status:fg$1.meta({examples:[`VALID`],description:`Resolution status for the beneficiary used by this split. FALLBACK indicates a non-strict match was used, MISSING means no beneficiary is configured.`}),warning:na$1().optional().meta({examples:[`Using fallback beneficiary with matching gateway only.`],description:`Optional warning message shown when fallback or missing beneficiary resolution was required.`}),beneficiary:qa$1({id:na$1().optional().meta({examples:[w$1.Beneficiary.id],description:`Identifier for the beneficiary.`}),teamId:na$1().optional().meta({examples:[w$1.Team.id],description:`Team that owns this beneficiary configuration.`}),name:na$1().meta({examples:[w$1.Beneficiary.name],description:`Display name for the resolved beneficiary.`}),gateway:io$1([`AIRWALLEX`,`STRIPE`]).optional().meta({examples:[w$1.Beneficiary.gateway],description:`Payment gateway for this beneficiary when available from configuration.`}),gatewayId:na$1().meta({examples:[w$1.Beneficiary.gatewayId],description:`Gateway-specific beneficiary identifier used for transfer creation.`}),currency:D$1.meta({examples:[w$1.Beneficiary.currency],description:`Currency configured for this beneficiary.`})}).optional()}),mg$1=io$1([`tickets`,`tenant`,`venue`,`team`,`sessions`]),hg$1=qa$1({kind:mg$1.meta({examples:[`tickets`],description:`Split component represented by this row.`}),amount:Ta$1().int().meta({examples:[114500],description:`Amount in cents for this split component.`}),currency:D$1.meta({examples:[w$1.Payout.price.currency],description:`Currency code for this split component.`}),beneficiary:pg$1}),gg$1=io$1([`TRACKED`,`N_A`,`SKIPPED`]),_g$1=qa$1({orders:Ta$1().int().meta({examples:[12],description:`Number of orders in this settlement bucket.`}),price:$l.meta({description:`Aggregated totals for the orders in this bucket, in the bucket's native currency.`})}),vg=qa$1({state:gg$1.meta({examples:[`TRACKED`],description:`Whether settlement tracking applies to this payout preview. Non-Airwallex payouts return N_A.`}),settled:_g$1.optional().meta({description:`Completed Airwallex orders that already have settlement data available.`}),awaitingSettlement:_g$1.optional().meta({description:`Completed Airwallex orders still waiting on settlement ingestion.`})}),yg=qa$1({payout:$$2.pick({id:true,status:true,approval:true,method:true,frequency:true,structure:true,createdAt:true,dueAt:true,teamId:true,eventId:true,event:true,price:true}).meta({description:`Lightweight payout summary used by approvals and payout queue UIs.`}),rows:Ga$1(hg$1).meta({description:`Non-zero split rows with beneficiary resolution status and warnings.`}),settlementSummary:vg.meta({description:`Settlement status summary for the payout event. Airwallex payouts expose settled vs awaiting-settlement buckets.`})}),bg=sg$1.extend({includeSettlementSummary:ka$1().optional().meta({examples:[true],description:`When true, includes the Airwallex settlement summary for the payout preview.`})}),xg=qa$1({payout:$$2,breakdown:rg$1,appliedAdjustments:Ga$1(Rh$1),projectedAdjustmentGroup:Uh$1.optional(),canExportBookingFees:ka$1()}),Sg=no$1(na$1(),no$1(na$1(),qa$1({net:Ta$1(),total:Ta$1(),gross:Ta$1(),base:Ta$1(),booking:Ta$1(),shipping:Ta$1(),refunded:Ta$1(),discount:Ta$1(),gateway:Ta$1(),dispute:Ta$1(),deductions:Ta$1().default(0)}))).meta({description:`Payout statistics grouped by period (current/previous) and currency`,examples:[{current:{USD:{net:1e5,total:12e4,gross:115e3,base:11e4,booking:5e3,shipping:0,refunded:0,discount:5e3,gateway:3e3,dispute:0}},previous:{USD:{net:8e4,total:95e3,gross:9e4,base:85e3,booking:5e3,shipping:0,refunded:0,discount:5e3,gateway:2500,dispute:0}}}]}),Cg=qa$1({teamId:na$1().optional().meta({description:`Filter stats by team ID`}),startDate:na$1().optional().meta({description:`Start date for stats period (YYYY-MM-DD)`}),endDate:na$1().optional().meta({description:`End date for stats period (YYYY-MM-DD)`})}),wg=$$2.pick({id:true}).merge($$2.pick({status:true,approval:true}).partial()).extend({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout to update.`}),status:io$1([`CANCELLED`]).optional().meta({examples:[`CANCELLED`],description:`Optional new payment status for the payout. Only CANCELLED is allowed for manual updates.`}),approval:E$1.optional().meta({examples:[`APPROVED`],description:`Optional new approval status for the payout. PENDING: awaiting approval, APPROVED: approved for processing, REJECTED: rejected.`})}),Tg=qa$1({id:na$1().meta({examples:[w$1.Payout.id],description:`Unique identifier of the payout`}),noteId:na$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to update`}),note:na$1().trim().min(1).max(1e3).meta({examples:[`Updated: Transfer confirmed - reference #12345`],description:`Updated note text content (1-1000 characters)`})}),Eg=io$1([`PROMOTER`,`VENUE`]).meta({description:`Type of permission scope. PROMOTER: applies to all events by a specific promoter. VENUE: applies to all events at a specific venue.`}),Dg=qa$1({id:na$1().readonly().meta({description:`Unique identifier for the permission scope`}),createdAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the scope was created`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the scope was last updated`}),teamMemberId:na$1().meta({description:`Team member this scope applies to`}),teamId:na$1().meta({description:`Team the member belongs to`}),userId:na$1().meta({description:`ID of the user this permission scope applies to`}),permissions:Ga$1(R$1).meta({description:`Scoped permissions. Can be empty array to remove all access. Replaces lower-tier permissions based on kind (VENUE overrides PROMOTER overrides BASE).`}),roleIds:Ga$1(na$1()).optional().meta({description:`Optional role IDs applied at this scope. Role-derived permissions are merged with explicit scoped nodes.`}),tenantId:na$1().readonly().meta({description:`Tenant identifier`})}),Og=Qa$1(`kind`,[Dg.extend({kind:oo$1(`PROMOTER`).meta({description:`Scope type: PROMOTER-specific permissions`}),promoterId:na$1().meta({description:`Promoter this scope applies to. Replaces base permissions for all events by this promoter.`})}).meta({description:`PROMOTER-specific permission scope. Applies to all events by the specified promoter.`}),Dg.extend({kind:oo$1(`VENUE`).meta({description:`Scope type: VENUE-specific permissions`}),venueId:na$1().meta({description:`Venue this scope applies to. Replaces base/promoter permissions for all events at this venue.`})}).meta({description:`VENUE-specific permission scope. Applies to all events at the specified venue.`})]).meta({description:`Permission scope for a team member. Can be PROMOTER-specific (applies to all events by that promoter) or VENUE-specific (applies to all events at that venue). Replaces lower-tier permissions using REPLACE semantics.`}),kg=qa$1({permissions:Ga$1(R$1).meta({description:`Scoped permissions. Can be empty array to remove all access. Replaces lower-tier permissions based on kind (VENUE overrides PROMOTER overrides BASE).`}),roleIds:Ga$1(na$1()).optional().meta({description:`Optional role IDs to apply at this scope.`})}),Ag=Qa$1(`kind`,[kg.extend({kind:oo$1(`PROMOTER`).meta({description:`Scope type: PROMOTER-specific permissions`}),promoterId:na$1().meta({description:`Promoter this scope applies to. Replaces base permissions for all events by this promoter.`})}).meta({description:`Create a PROMOTER-specific permission scope. Applies to all events by the specified promoter.`}),kg.extend({kind:oo$1(`VENUE`).meta({description:`Scope type: VENUE-specific permissions`}),venueId:na$1().meta({description:`Venue this scope applies to. Replaces base/promoter permissions for all events at this venue.`})}).meta({description:`Create a VENUE-specific permission scope. Applies to all events at the specified venue.`})]).meta({description:`Schema for creating a new permission scope. Must specify kind (PROMOTER or VENUE) and corresponding ID.`}),jg=qa$1({id:En.meta({description:`Unique identifier for the permission scope`})}).meta({description:`Schema for retrieving a single permission scope by ID`}),Mg=qa$1({teamMemberId:na$1().optional().meta({description:`Filter by team member ID`}),userId:na$1().optional().meta({description:`Filter by user ID`}),kind:Eg.optional().meta({description:`Filter by scope kind (PROMOTER or VENUE)`}),promoterId:na$1().optional().meta({description:`Filter by promoter ID (only for kind=PROMOTER scopes)`}),venueId:na$1().optional().meta({description:`Filter by venue ID (only for kind=VENUE scopes)`}),limit:L$1(`permission scopes`),cursor:na$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing permission scopes with pagination and filtering`}),Ng=B$1(Og,`items`).meta({description:`Paginated response containing permission scopes with cursor for next page`}),Pg=kg.meta({description:`Schema for updating an existing permission scope. Only permissions array can be modified.`}),Fg=qa$1({id:Dn.meta({description:`Permission role ID`}),teamId:k$1.meta({description:`Team that owns this role`}),name:na$1().min(1).meta({description:`Role display name`}),description:na$1().optional().meta({description:`Optional role description`}),permissions:cr.meta({description:`Permission nodes granted by this role`}),createdAt:Pi$1().meta({description:`Timestamp in ISO 8601 format when the role was created`}),updatedAt:Pi$1().meta({description:`Timestamp in ISO 8601 format when the role was last updated`})}).meta({description:`Team-scoped permission role`}),Ig=qa$1({role:Fg}),Lg=qa$1({roles:Ga$1(Fg)}),Rg=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`})}),zg=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),roleId:Dn}),Bg=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),name:na$1().min(1).meta({description:`Role display name`}),description:na$1().optional().meta({description:`Optional role description`}),permissions:cr}),Vg=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),roleId:Dn,name:na$1().min(1).meta({description:`Role display name`}),description:na$1().optional().meta({description:`Optional role description`}),permissions:cr}),Hg=qa$1({memberId:P$1,permissions:Ga$1(R$1),updatedAt:Pi$1()}),Ug=qa$1({member:Hg}),Wg=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1}),Gg=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1,permissions:Ga$1(R$1).meta({description:`Direct permission nodes for this member. Full-replace semantics; use an empty array to remove all direct grants.`})}),Kg=qa$1({memberId:P$1,roleIds:Ga$1(Dn).meta({description:`Role IDs assigned to this member`}),updatedAt:Pi$1()}),qg=qa$1({member:Kg}),Jg=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1}),Yg=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1,roleIds:Ga$1(Dn)}),Xg=qa$1({direct:Ga$1(na$1()),fromRoles:Ga$1(na$1()),effective:Ga$1(na$1()),denied:Ga$1(na$1())});qa$1({memberId:P$1,permissions:Xg});qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1,domain:na$1().optional().meta({description:`Optional domain filter (for example: ticket, event)`}),action:na$1().optional().meta({description:`Optional action filter (for example: read, write, scan)`}),resourceId:na$1().optional().meta({description:`Optional resource ID filter`})});const e_=S$1.route({method:`GET`,path:`/teams/{key}/roles`,summary:`List team roles`,description:`Returns all roles configured for a team.`,tags:[`Permissions`]}).input(Rg.strict()).output(Lg),t_=S$1.route({method:`POST`,path:`/teams/{key}/roles`,summary:`Create team role`,description:`Creates a team-scoped permission role.`,tags:[`Permissions`]}).input(Bg.strict()).output(Ig),n_=S$1.route({method:`GET`,path:`/teams/{key}/roles/{roleId}`,summary:`Get team role`,description:`Retrieves a team role by ID.`,tags:[`Permissions`]}).input(zg.strict()).output(Ig),r_=S$1.route({method:`PUT`,path:`/teams/{key}/roles/{roleId}`,summary:`Replace team role`,description:`Full-replace, idempotent update for role name, description, and permissions.`,tags:[`Permissions`]}).input(Vg.strict()).output(Ig),i_=S$1.route({method:`DELETE`,path:`/teams/{key}/roles/{roleId}`,summary:`Delete team role`,description:`Deletes a team role.`,tags:[`Permissions`]}).input(zg.strict()).output(Ig),a_=S$1.route({method:`GET`,path:`/teams/{key}/members/{memberId}/permissions`,summary:`Get member direct permissions`,description:`Returns direct permission nodes assigned to a member.`,tags:[`Permissions`]}).input(Wg.strict()).output(Ug),o_=S$1.route({method:`PUT`,path:`/teams/{key}/members/{memberId}/permissions`,summary:`Replace member direct permissions`,description:`Full-replace, idempotent update for direct permission nodes assigned to a member.`,tags:[`Permissions`]}).input(Gg.strict()).output(Ug),s_=S$1.route({method:`GET`,path:`/teams/{key}/members/{memberId}/roles`,summary:`Get member role assignments`,description:`Returns role IDs assigned to a member.`,tags:[`Permissions`]}).input(Jg.strict()).output(qg),c_=S$1.route({method:`PUT`,path:`/teams/{key}/members/{memberId}/roles`,summary:`Replace member role assignments`,description:`Full-replace, idempotent update for role assignments on a member.`,tags:[`Permissions`]}).input(Yg.strict()).output(qg);var l_={roles:{list:e_,create:t_,get:n_,update:r_,remove:i_},members:{permissions:{get:a_,replace:o_},roles:{get:s_,replace:c_}}};const u_=qa$1({key:na$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[w$1.Promoter.id,w$1.Promoter.slug]})}).meta({description:`Request schema for retrieving a promoter by either its unique ID or slug`});G$1.pick({slug:true});const f_=G$1.omit({id:true,createdAt:true,updatedAt:true,geohash:true,approval:true,location:true}).extend({description:kr.meta({examples:[w$1.Promoter.description],description:`Detailed description of the promoter organization and their events`}),teamId:na$1().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`ID of the team that will own this promoter. User must be a member of this team.`}),slug:na$1().min(3).max(30).optional().meta({examples:[w$1.Promoter.slug],description:`URL-friendly slug for the promoter organization. If not provided, will be automatically generated from the name. Must be unique and between 3 and 30 characters`}),...hd}).refine(gd,{message:md}).meta({description:`Schema for creating a new promoter organization. The system automatically generates the ID, tenant association, geohash, and timestamps`}),p_=qa$1({key:na$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[w$1.Promoter.id,w$1.Promoter.slug]})}).meta({description:`Schema for removing (soft deleting) a promoter organization by key (ID or slug)`});G$1.pick({id:true}).meta({description:`Schema for retrieving a specific promoter by ID`});const h_=io$1([`createdAt`]),g_=io$1([`asc`,`desc`]),__=e=>{if(e!=null)return typeof e==`string`?v_(e):e};function v_(e){let t=e.trim();if(t.length===0)return;let n=Number(t);return Number.isNaN(n)?e:n}const y_=Ja$1({teamId:na$1().max(128).optional().meta({description:`Filter promoters to only those belonging to a specific team`}),approval:E$1.optional().meta({examples:[w$1.Promoter.approval],description:`Filter promoters by approval status. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate`}),query:na$1().max(120).optional().meta({examples:[`Session Services`],description:`Optional search query. When provided, results are fetched from search with unified cursor pagination.`}),latitude:T$1().min(-90).max(90).optional().meta({examples:[w$1.Promoter.location.latitude],description:`Latitude used with longitude and radius to filter promoters by proximity when searching.`}),longitude:T$1().min(-180).max(180).optional().meta({examples:[w$1.Promoter.location.longitude],description:`Longitude used with latitude and radius to filter promoters by proximity when searching.`}),radius:T$1().min(1).max(2e4).optional().meta({examples:[50],description:`Search radius in kilometers applied when latitude and longitude are provided.`}),mine:Yt$1().optional().meta({examples:[true],description:`When true, limits results to promoters from teams the current user belongs to. When combined with teamId, returns only that team's promoters (bypassing tenant-wide admin scope).`}),sort:h_.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest promoters first."}),direction:g_.optional().meta({examples:[`desc`],description:"Sort direction for promoter lists. Defaults to `desc` when omitted."}),limit:Po(__,Ta$1().min(1).max(100).prefault(20)).meta({examples:[20],description:`Maximum number of promoters to return (1-100, defaults to 20)`}).optional(),cursor:na$1().max(768).optional().meta({examples:[`eyJpZCI6InByb18wMWpxcGprc25zZW45dnBydzk1ZXQ2MHQybSJ9`],description:`Opaque cursor for pagination. Use the cursor from the previous response to continue fetching results.`})}).meta({description:`Schema for listing promoters with optional filtering by team, full-text search, and cursor pagination`}),b_=B$1(G$1,`promoters`),x_=qa$1({promoter:G$1}),S_=G$1.omit({createdAt:true,updatedAt:true,id:true,location:true}).partial().extend({description:kr.optional().meta({examples:[w$1.Promoter.description],description:`Detailed description of the promoter organization. Omit to leave unchanged.`}),key:na$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[w$1.Promoter.id,w$1.Promoter.slug]}),locationId:mn.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:na$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`}),image:F$1.nullable().optional().meta({description:`Promoter image. Pass null to clear; omit to leave unchanged.`,examples:[w$1.Promoter.image,null]}),tracking:qa$1({fbId:na$1().optional(),gaId:is.optional(),tikTokId:na$1().optional()}).nullable().optional().meta({description:`Analytics tracking config. Pass null to clear all tracking; omit to leave unchanged.`})}).meta({description:`Schema for updating an existing promoter.`}),C_=io$1([`PAYOUT_STATEMENT`,`PAYOUT_ORDER_BREAKDOWN`,`PAYOUT_BOOKING_FEE_BREAKDOWN`,`PAYOUT_ADJUSTMENT_BREAKDOWN`,`EVENT_ORDERS`,`MEMBERSHIP_MEMBERS`]),w_=io$1([`QUEUED`,`PROCESSING`,`COMPLETED`,`FAILED`]),T_=qa$1({payoutId:na$1().describe(`Payout identifier`),teamId:na$1().optional().describe(`Requesting team identifier`)}),E_=qa$1({eventId:na$1().describe(`Event identifier`)}),D_=qa$1({teamId:na$1().describe(`Team whose current membership program is exported`)}),O_=Qa$1(`type`,[qa$1({type:oo$1(`PAYOUT_STATEMENT`),params:T_}),qa$1({type:oo$1(`PAYOUT_ORDER_BREAKDOWN`),params:T_}),qa$1({type:oo$1(`PAYOUT_BOOKING_FEE_BREAKDOWN`),params:T_}),qa$1({type:oo$1(`PAYOUT_ADJUSTMENT_BREAKDOWN`),params:T_}),qa$1({type:oo$1(`EVENT_ORDERS`),params:E_}),qa$1({type:oo$1(`MEMBERSHIP_MEMBERS`),params:D_})]),k_=qa$1({id:na$1().describe(`Report job identifier`)}),A_=qa$1({id:na$1(),type:C_,status:w_,createdAt:na$1(),updatedAt:na$1(),expiresAt:na$1().optional(),filename:na$1().optional(),contentType:na$1().optional(),sizeBytes:Ta$1().optional(),error:na$1().optional(),downloadUrl:na$1().optional()}),j_=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),inviteId:na$1().meta({description:`Team invite ID to accept`}),token:na$1().meta({description:`Secure token used to accept the team invite. This token must match the one sent in the invitation email.`})}),N_=io$1([`TEAM`,`EVENTS`]),P_=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),scope:N_.meta({description:`Stripe Connect event routing scope. TEAM routes every team event through Stripe Connect. EVENTS routes selected events only.`,examples:[`EVENTS`]}),eventIds:Ga$1(A$1).max(100).optional().meta({description:`Event IDs routed through Stripe Connect when scope is EVENTS. Omit or pass an empty array to keep Stripe Connect disabled for all events in EVENTS mode.`})}),F_=qa$1({provider:io$1([`STRIPE`,`AIRWALLEX`]).meta({description:`Payment gateway provider type`}),connectedAt:Pi$1().meta({description:`Timestamp when the payment gateway was connected to this team`}),connectedBy:na$1().meta({description:`User ID of the team member who connected the payment gateway`}),accountId:na$1().meta({description:`Connected account ID. For Stripe: acct_xxxxx. For Airwallex: business account open ID.`}),scope:N_.optional().meta({description:`Stripe Connect routing scope. TEAM routes all team events through Stripe Connect. EVENTS routes only selected events.`}),eventIds:Ga$1(A$1).optional().meta({description:`Event IDs routed through Stripe Connect when scope is EVENTS.`}),chargesEnabled:ka$1().optional().meta({description:`Whether the connected Stripe account can currently accept charges.`}),payoutsEnabled:ka$1().optional().meta({description:`Whether the connected Stripe account can currently receive payouts.`}),requirementsDue:Ga$1(na$1()).optional().meta({description:`Stripe Connect account requirements currently due before the account can remain fully enabled.`}),disabledReason:na$1().optional().meta({description:`Stripe disabled reason for the connected account, when Stripe reports one.`}),syncedAt:Pi$1().optional().meta({description:`Timestamp when gateway account status was last synced from the provider.`})}).meta({description:`Payment gateway configuration for direct payouts to the team's connected account`}),I_=qa$1({id:k$1.readonly().meta({description:`Unique identifier for the team organization`}),createdAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the team was created`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the team was last updated`}),name:na$1().min(3).max(30).meta({description:`Display name of the team organization. Must be between 3 and 30 characters`}),slug:na$1().min(3).max(30).meta({description:`URL-friendly slug for the team organization. Must be unique within tenant and between 3 and 30 characters`}),supportEmail:na$1().email().optional().meta({description:`Support email address for customer inquiries. Used as reply-to address in order confirmation emails`}),publicBaseUrl:ca$1().optional().meta({description:`Optional public website base URL for team-owned event and order links. When present, it overrides the tenant public base URL.`,examples:[`https://sash.net.au`]}),image:F$1.optional().meta({description:`Team image with dimensions and alt text for branding across the platform`}),metadata:In,approval:E$1.meta({description:`Approval status of the team. PENDING: awaiting review, APPROVED: can create promoters/venues/events, REJECTED: cannot operate`}),deletedAt:Pi$1().optional().readonly().meta({description:`Timestamp in ISO 8601 format when the team was soft deleted. Only present for deleted teams.`}),tenantId:na$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`}),isAdmin:ka$1().optional().meta({description:`Whether this team is the admin team for the tenant`}),isDemo:ka$1().readonly().meta({description:`Whether this team is protected seeded demo data`}),gateway:F_.optional().meta({description:`Connected payment gateway for direct payouts. When connected, funds from ticket sales go directly to the team's account with platform fees deducted.`})}).meta({description:`Team organization that owns promoters and venues. Multiple brands can exist under one team.`});I_.extend({promoter:G$1.meta({description:`The primary promoter brand associated with this team`})}).meta({description:`Team organization with its primary promoter brand included for convenience`});const R_=I_.extend({member:qa$1({id:P$1.meta({description:`Current user's team member identifier for this team`}),permissions:sr.meta({description:`Permissions the current user has for this team. Controls access to team resources.`,examples:[[],[`team.read`,`team.write`],[`team.member.read`,`team.member.write`],[`ticket.scan`],[`*`]]}),isOwner:ka$1().meta({description:`Whether the current user is the owner of this team. Owners have full control.`})}).optional().meta({description:`Current user's membership details for this team. Present when user is a member.`})}).meta({description:`Team organization with the current user's membership details`}),z_=qa$1({key:na$1().min(1).meta({description:`Team key - either a unique ID (tem_xxx format) or URL-friendly slug`,examples:[w$1.Team.id,w$1.Team.slug]})}).meta({description:`Request schema for retrieving a team by either its unique ID or slug`}),B_=I_.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,deletedAt:true,isAdmin:true,isDemo:true}).extend({slug:na$1().min(3).max(30).optional().meta({description:`URL-friendly slug for the team organization. If not provided, will be automatically generated from the name. Must be unique within tenant and between 3 and 30 characters`}),approval:I_.shape.approval.optional().meta({description:`Approval status of the team. Defaults to PENDING if not specified.`})}).meta({description:`Schema for creating a new team organization. The system automatically generates the ID, tenant association, and timestamps`});qa$1({id:k$1.meta({description:`Team ID to delete`})});const H_=qa$1({team:R_.extend({isAdmin:ka$1().optional().meta({description:`Whether this team is the tenant admin team`}),stripeConnectAvailability:ls.optional().meta({description:`Stripe Connect availability metadata for tenant payment settings UI.`})})}),U_=io$1([`QUEUED`,`PROCESSING`,`BLOCKED`,`COMPLETED`,`FAILED`]).meta({description:`Current state of an asynchronous team deletion operation`}),W_=io$1([`ADMIN_TEAM`,`DEMO_TEAM`,`EVENTS`,`ORDERS`,`EVENTS_AND_ORDERS`,`BUSINESS_RECORDS`,`SETUP_IN_USE`]).meta({description:`Stable business reason preventing team deletion`}),G_=qa$1({reason:W_,hasEvents:ka$1().meta({description:`Whether active events prevent deletion`}),hasOrders:ka$1().meta({description:`Whether orders prevent deletion`})}).meta({description:`Structured business condition preventing team deletion`}),K_=qa$1({id:fn$1.readonly().meta({description:`Unique identifier for the deletion operation`}),teamId:k$1.readonly().meta({description:`Team being deleted`}),status:U_,createdAt:Pi$1().readonly().meta({description:`Timestamp when deletion was requested`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp when deletion progress last changed`}),completedAt:Pi$1().optional().readonly().meta({description:`Timestamp when deletion completed`}),blocker:G_.optional(),error:na$1().optional().meta({description:`Safe failure description when manual recovery is needed`})}).meta({description:`Asynchronous team deletion operation`}),q_=qa$1({id:fn$1}).meta({description:`Request for the state of a team deletion operation`}),J_=H_.extend({deletion:K_}).meta({description:`Accepted team deletion request and its operation state`});qa$1({id:k$1.meta({description:`Team ID to retrieve`})});const X_=qa$1({id:wn.readonly().meta({description:`Unique identifier for the team invitation`}),createdAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was created`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was last updated`}),teamId:k$1.meta({description:`Team this invitation is for`}),email:ia$1().meta({description:`Email address of the invited user. Used for sending invitation.`}),permissions:Ga$1(R$1).meta({description:`Permissions the user will receive upon accepting the invitation. Can be overridden per promoter or venue.`,examples:[[],[`event.read`,`event.write`,`order.read`],[`team.member.read`,`team.member.write`],[`ticket.scan`],[`*`]]}),roleIds:Ga$1(na$1()).optional().meta({description:`Role IDs assigned on invite acceptance. Effective permissions are role + explicit nodes.`}),access:jr.optional().meta({description:`Promoter access to apply when the invitation is accepted.`}),token:na$1().readonly().meta({description:`Secure token for invite acceptance. Required to accept the invitation.`}),expiresAt:Ta$1().int().positive().meta({description:`Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days.`}),invitedBy:j$1.meta({description:`User ID who sent the invitation`}),tenantId:na$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Pending team invitation. Automatically deleted after 7 days via DynamoDB TTL. When accepted, creates a TeamMember record and deletes the invitation.`}),Z_=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),inviteId:na$1().meta({description:`Team invite ID to cancel`})}),Q_=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),email:ia$1().meta({description:`Email address of the user to invite`}),roleIds:Ga$1(na$1()).min(1).meta({description:`Role IDs to grant to the invited user.`}),access:Mr.optional().meta({description:`Optional promoter access assignment. Omit to preserve existing team-wide behavior.`})}),$_=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),inviteId:wn.meta({description:`Team invite ID to retrieve`})}),ev=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),query:na$1().optional().meta({description:`Search query to filter invitations by email. Case-insensitive partial match`}),limit:Ta$1().int().min(1).max(100).default(20).optional().meta({description:`Maximum number of invitations to return per page`}),cursor:na$1().optional().meta({description:`Pagination cursor for fetching the next page`})}),tv=B$1(X_,`invites`),nv=qa$1({invite:X_}),rv=io$1([`createdAt`]),iv=io$1([`asc`,`desc`]),av=qa$1({userId:j$1.optional().meta({description:`Filter teams by user membership. If omitted, returns all teams (tenant admin only). If provided, returns teams where the specified user is a member`}),approval:E$1.optional().meta({description:`Filter teams by approval status. PENDING: awaiting review, APPROVED: can operate, REJECTED: cannot operate`}),query:na$1().optional().meta({description:`Optional search query for filtering teams by name or slug`}),sort:rv.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest teams first."}),direction:iv.optional().meta({examples:[`desc`],description:"Sort direction for team lists. Defaults to `desc` when `sort` is provided."}),limit:L$1(`teams`),cursor:na$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing teams with pagination and filtering`}),ov=B$1(R_,`teams`),sv=io$1([`STRIPE`,`AIRWALLEX`]),cv=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),provider:sv.meta({description:`Payment processor to connect`,examples:[`STRIPE`,`AIRWALLEX`]})}),lv=qa$1({authorizationUrl:na$1().url().meta({description:`URL to redirect the user to for OAuth authorization. Open in a new window or redirect the current page.`,examples:[`https://connect.stripe.com/oauth/authorize?response_type=code&client_id=ca_xxx&scope=read_write&redirect_uri=...`]})}),uv=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`})}),dv=qa$1({id:na$1().meta({description:`Role ID`}),teamId:na$1().meta({description:`Team ID this role belongs to`}),key:na$1().meta({description:`Role key`}),name:na$1().meta({description:`Role display name`}),description:na$1().optional().meta({description:`Role description`}),permissions:Ga$1(na$1()).meta({description:`Permission nodes granted by this role`}),scope:oo$1(`TEAM`).meta({description:`Role scope`}),isPreset:ka$1().meta({description:`Whether this role is a system preset role`}),presetKey:na$1().optional().meta({description:`Stable system preset identifier. It remains unchanged when a preset role is renamed.`})});qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`})});qa$1({roles:Ga$1(dv)});const mv=qa$1({slug:na$1().min(3).max(30).meta({description:`Candidate team URL slug to check after server normalization.`}),key:na$1().min(1).optional().meta({description:`Current team key to exclude when checking availability during team edits.`})}).meta({description:`Request schema for checking team slug availability.`}),hv=qa$1({slug:na$1().min(3).max(30).meta({description:`Normalized team URL slug that was checked.`}),available:ka$1().meta({description:`Whether the normalized slug is available in this tenant.`})}).meta({description:`Team slug availability result.`}),gv=I_.omit({tenantId:true,createdAt:true,updatedAt:true,id:true,isAdmin:true,isDemo:true}).partial().extend({key:na$1().min(1).meta({description:`Team key - either a unique ID (tem_xxx format) or URL-friendly slug`,examples:[w$1.Team.id,w$1.Team.slug]}),supportEmail:na$1().email().nullable().optional().meta({description:`Support email for customer inquiries. Pass null to clear, omit to leave unchanged.`}),publicBaseUrl:ca$1().nullable().optional().meta({description:`Public website base URL for team-owned event and order links. Pass null to clear, omit to leave unchanged.`}),image:F$1.nullable().optional().meta({description:`Team image. Pass null to clear, omit to leave unchanged.`})}).meta({description:`Schema for updating an existing team organization. Pass null to clear optional fields.`}),_v=qa$1({id:P$1.readonly().meta({description:`Unique identifier for the team member`}),createdAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the member was created`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the member was last updated`}),teamId:k$1.meta({description:`Team this member belongs to`}),userId:j$1.meta({description:`User ID of the team member`}),user:qa$1({id:j$1.meta({description:`Unique identifier of the user`}),email:ia$1().meta({description:`Email address of the user`}),firstName:na$1().meta({description:`First name of the user`}),lastName:na$1().meta({description:`Last name of the user`}),imageUrl:na$1().optional().meta({description:`Profile image URL of the user`})}).meta({description:`Denormalized user details for quick access without additional queries.`}),permissions:Ga$1(R$1).optional().meta({description:`Base permissions across the team. Can be overridden per promoter or venue. Undefined means no base permissions (permissions come from PermissionScope only).`,examples:[[`event.read`,`event.write`,`order.read`],[`team.member.read`,`team.member.write`],[`ticket.scan`],[`*`]]}),roleIds:Ga$1(na$1()).optional().meta({description:`Role IDs assigned to this team member. Effective permissions are derived from role nodes plus explicit permission nodes.`}),isOwner:ka$1().meta({description:`Whether this member is the owner of the team. Only one owner per team is allowed. Owner has full control and cannot be deleted.`}),access:jr.optional().meta({description:`Promoter access summary. Omitted only for legacy/no-access records.`}),tenantId:na$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Active team member with base permissions. Permissions can be overridden per promoter or venue. Created when a user accepts an invitation or is directly added to a team.`}),vv=qa$1({member:_v}),yv=_v.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,user:true,teamId:true,permissions:true,isOwner:true}).extend({key:na$1().meta({description:`Team identifier (ID or slug)`}),roleIds:Ga$1(na$1()).min(1).meta({description:`Role IDs assigned to this team member.`}),access:Mr.optional().meta({description:`Optional promoter access assignment. Omit to preserve existing team-wide behavior.`}),isOwner:oo$1(false).optional().meta({description:`Team ownership cannot be assigned when creating a member. External clients sending isOwner: true receive an input validation error; create the non-owner member first, then migrate ownership through POST /teams/{key}/transfer with newOwnerId.`})}).meta({description:`Schema for adding an existing user to a team. Requires userId of an existing user account.`}),bv=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),userId:na$1().meta({description:`User ID of the team member to retrieve`})}),xv=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),query:na$1().optional().meta({description:`Search query to filter members by name or email. Case-insensitive partial match`}),limit:L$1(`team members`),cursor:na$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing active team members with pagination and search`}),Sv=B$1(_v,`members`),Cv=qa$1({key:na$1().meta({description:`Team identifier (ID or slug)`}),newOwnerId:na$1().meta({description:`Team member ID of the new owner. This member must already exist with ACTIVE status.`})}).meta({description:`Schema for making an active team member the sole owner of their team.`}),wv=qa$1({previousOwner:_v.meta({description:`Primary previous owner retained for compatibility. This member keeps their existing access and loses isOwner status. On an idempotent retry after the transfer is already applied, this is the unchanged current owner.`}),newOwner:_v.meta({description:`The new owner (now has isOwner: true)`}),demotedOwners:Ga$1(_v).meta({description:`All previous owners whose isOwner status was cleared by the transfer.`})}).meta({description:`Response payload for team ownership transfer operation`}),Tv=qa$1({id:na$1().meta({description:`Team member ID to update`}),roleIds:Ga$1(na$1()).min(1).meta({description:`Replace role assignments for this team member with the provided role IDs.`}),isOwner:ka$1().optional().meta({description:`Whether this team member is an owner of the team`}),access:Mr.optional().meta({description:`Optional promoter access assignment. Omit to update only role assignments.`})}).meta({description:`Schema for updating team member roles. Cannot update teamId, userId, or owner status.`});const Dv=S$1.route({method:`GET`,path:`/teams/{key}/members/{userId}`,summary:`Get team member by user ID`,description:`Retrieve a team member using the team key (ID or slug) and user ID`,tags:[`Team Members`]}).input(bv.strict()).output(vv),Ov=S$1.route({method:`GET`,path:`/teams/{key}/members`,summary:`List team members with cursor-based pagination`,description:`Returns active team members for a specific team with cursor pagination. Team key can be ID or slug. For pending invitations, use the team invites endpoint instead.`,tags:[`Team Members`]}).input(xv.strict()).output(Sv),kv=S$1.route({method:`POST`,path:`/teams/{key}/members`,summary:`Add an existing user to a team`,description:`Directly add an existing user to a team. Team key can be ID or slug. Requires at least one role ID. To invite a new user by email, use the team invites endpoint instead.`,tags:[`Team Members`]}).input(yv.strict()).output(vv),Av=S$1.route({method:`PATCH`,path:`/teams/{key}/members/{userId}`,summary:`Update a team member's roles`,description:`Update an existing active team member. Team key can be ID or slug. Replaces role assignments. Cannot modify isOwner (use transfer endpoint instead).`,tags:[`Team Members`]}).input(Tv.extend({key:na$1(),userId:na$1()}).strict()).output(vv),jv=S$1.route({method:`DELETE`,path:`/teams/{key}/members/{userId}`,summary:`Remove a team member`,description:`Remove an active member from a team. Team key can be ID or slug. Cannot remove the team owner (transfer ownership first). To cancel pending invitations, use the team invites endpoint.`,tags:[`Team Members`]}).input(bv.strict()).output(vv),Mv=S$1.route({method:`POST`,path:`/teams/{key}/transfer`,summary:`Transfer team ownership`,description:`Make an active team member the sole owner. Team key can be ID or slug. A current team owner or tenant administrator can perform this action. The new owner receives the team Admin role, while previous owners keep their existing access and lose only isOwner status.`,tags:[`Team Members`]}).input(Cv.strict()).output(wv);var Nv={get:Dv,list:Ov,create:kv,update:Av,remove:jv,transfer:Mv};const Pv=io$1([`ALL`,`COUNTRY`,`STATE`,`CITY`,`VENUE`]),Fv=qa$1({id:na$1(),name:na$1(),slug:na$1(),kind:Pv,parentId:na$1().optional(),latitude:Ta$1().optional(),longitude:Ta$1().optional(),radius:Ta$1().optional(),enabled:ka$1(),order:Ta$1(),zoom:Ta$1().optional(),heroImage:na$1().optional(),description:na$1().optional()}),Iv=qa$1({tenant:qa$1({id:na$1(),name:na$1(),slug:na$1(),adminTeamId:na$1(),legacyTenantsToTeams:no$1(na$1(),na$1()).optional(),features:no$1(na$1(),ka$1()).optional(),defaultCurrency:na$1(),logo:qa$1({email:qa$1({src:na$1(),width:Ta$1(),height:Ta$1()}),website:qa$1({src:na$1(),width:Ta$1(),height:Ta$1()})}),baseUrl:qa$1({dev:na$1().optional(),production:na$1().optional()}),publicBaseUrl:qa$1({dev:na$1().optional(),sandbox:na$1().optional(),production:na$1().optional()}).optional()}),regions:Ga$1(Fv)}),Lv=qa$1({regions:Ga$1(Fv)}),Rv=qa$1({teamId:na$1().optional()}),zv=qa$1({counts:qa$1({teams:ka$1(),promoters:ka$1(),venues:ka$1(),events:ka$1(),payouts:ka$1()})}),Bv=qa$1({kind:io$1([`CHECK_IN`,`CHECK_OUT`]).meta({description:`The most recent attendee scan action.`}),scannedAt:Pi$1().meta({description:`Timestamp for the most recent attendee scan.`})}),Vv=io$1(`#ABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``)).meta({description:`Alpha navigation bucket key for attendee roster jumps.`}),Hv=qa$1({key:Vv,count:T$1().int().min(0).meta({description:`Number of roster rows currently available in this bucket.`}),anchor:na$1().meta({description:`Server-issued bookmark for the first roster row in this bucket under the active filters.`})}),Uv=xu.pick({id:true,name:true,entryEndsAt:true}),Wv=Ou.pick({id:true,name:true}),Gv=qa$1({id:_n.meta({examples:[w$1.Ticket.id],description:`Ticket identifier for this attendee roster row.`}),orderId:gn.meta({examples:[w$1.Ticket.orderId],description:`Order identifier used to navigate to order details.`}),status:ku.meta({description:`Current ticket status for the attendee row.`}),attendee:Su.meta({description:`Editable attendee identity fields for this ticket.`}),admission:Uv.meta({description:`Admission snapshot needed for roster labels and expiry state.`}),section:Wv.optional().meta({description:`Optional section label shown in the roster row.`}),lastScan:Bv.optional().meta({description:`Most recent scan event for compact roster activity text.`}),lastCheckInAt:Pi$1().optional().meta({description:`Timestamp for the most recent check-in scan, used for checked-in labels.`})}),Kv=qa$1({eventId:A$1.meta({examples:[w$1.Event.id],description:`Event identifier for the attendee roster.`}),since:Pi$1().meta({examples:[`2026-09-25T10:00:00.000Z`],description:`Return roster rows updated at or after this instant. Pass the previous response's serverTime.`}),admissionIds:Ga$1(N$1).optional().meta({examples:[[w$1.Admission.id]],description:`Optional admission filters, matching the roster list.`}),sectionIds:Ga$1(xn).optional().meta({examples:[[w$1.Section.id]],description:`Optional section filters, matching the roster list.`})}),qv=qa$1({tickets:Ga$1(Gv).meta({description:`Roster rows changed since the requested instant, oldest change first.`}),truncated:ka$1().meta({description:`True when more rows changed than one response carries; reload the roster window instead of applying these rows.`}),serverTime:Pi$1().meta({description:"Server time for this response; pass it as `since` on the next poll."})}),Jv=qa$1({buckets:Ga$1(Hv).meta({description:`Available attendee alpha buckets for the active filter set.`})}),Yv=qa$1({eventId:A$1.meta({examples:[w$1.Event.id],description:`Event identifier for the attendee alpha index.`}),admissionIds:Ga$1(N$1).optional().meta({examples:[[w$1.Admission.id]],description:`Optional admission filters used when computing available attendee buckets.`}),sectionIds:Ga$1(xn).optional().meta({examples:[[w$1.Section.id]],description:`Optional section filters used when computing available attendee buckets.`})}),Xv=T$1().int().min(1).max(100).prefault(100).meta({examples:[100],description:`Maximum number of attendee roster rows to return per request (1-100, default: 100).`}),Zv=qa$1({eventId:A$1.meta({examples:[w$1.Event.id],description:`Event identifier for the attendee roster.`}),admissionIds:Ga$1(N$1).optional().meta({examples:[[w$1.Admission.id]],description:`Optional admission filters. When provided, only matching ticket admissions are included.`}),sectionIds:Ga$1(xn).optional().meta({examples:[[w$1.Section.id]],description:`Optional section filters. When provided, only matching ticket sections are included.`}),query:na$1().optional().meta({examples:[`John`,`john@example.com`,`+61400000000`],description:`Optional attendee search query. Matches attendee name, email, and phone.`}),cursor:Ln.optional(),before:Ln.optional().meta({description:`Cursor for loading roster rows before the current window. Mutually exclusive with cursor and anchor.`}),anchor:na$1().optional().meta({description:`Server-issued bookmark used to jump to a roster bucket. Mutually exclusive with cursor and before.`}),limit:Xv.optional()}),Qv=B$1(Gv,`tickets`),$v=J$1.pick({status:true,admissionId:true,orderItemId:true}).extend({orderId:na$1().meta({examples:[w$1.Order.id],description:`The order this ticket belongs to`}),customerId:na$1().meta({examples:[w$1.Customer.id],description:`The customer who purchased this ticket`}),attendee:Su.optional().meta({description:`Optional attendee information - defaults to order customer details if not provided`})}).meta({description:`Schema for creating a new ticket - caller provides minimal input; derived fields are populated by the service`}),ey=J$1.pick({id:true}).extend({signature:Ar.optional().meta({description:`HMAC signature for public ticket access (16 characters, base64url encoded)`})}).meta({description:`Schema for retrieving a specific ticket by ID with optional signature validation`}),ty=qa$1({promoterId:na$1().optional().meta({examples:[w$1.Promoter.id],description:`Filter tickets by promoter/organizer unique identifier (optional)`}),eventId:na$1().optional().meta({examples:[w$1.Event.id],description:`Filter tickets by event unique identifier (optional)`}),customerId:na$1().optional().meta({examples:[w$1.Customer.id],description:`Filter tickets by customer unique identifier (optional)`}),orderId:na$1().optional().meta({examples:[w$1.Order.id],description:`Filter tickets by order unique identifier (optional)`}),status:ku.optional().meta({examples:[`ACTIVE`],description:`Filter tickets by status: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)`}),orderSignature:Ar.optional().meta({description:`Order signature used to access tickets for a specific order without permissions (16 characters, base64url encoded)`}),query:na$1().optional().meta({examples:[`John Doe`],description:`Optional search query to filter tickets by customer details. When provided, search-backed pagination is used.`}),limit:L$1(`tickets`).optional(),cursor:na$1().optional().meta({examples:[`eyJpZCI6InRrdF8wMWpwczVjZ3NnMHMzMncycHI3M3ZiY2NkZSJ9`],description:`Pagination cursor for continuing to fetch subsequent results (optional)`})}).meta({description:`Schema for listing tickets with optional filtering, search, and cursor-based pagination`}),ny=B$1(J$1,`tickets`),ry=qa$1({ticket:J$1}),iy=J$1.pick({id:true,eventId:true}).extend({key:J$1.shape.id.meta({description:`Transition key. Supports canonical ticket IDs (tkt_*) and order IDs (ord_*).`}),deviceId:J$1.shape.scans.element.shape.deviceId.optional().meta({description:`Unique identifier of the scanning device (optional).`}),eventId:J$1.shape.eventId.optional().meta({description:`Optional event scope guard for check-in transitions. When provided, check-in fails if the ticket/order event does not match.`}),allowPartialOrderCheckIn:ka$1().optional().meta({description:`Confirms an order-level check-in when some tickets are already redeemed and some remain active.`}),admissionIds:Ga$1(N$1).optional().meta({description:`Optional scanner admission filters. When provided, check-in only applies to matching ticket admissions.`}),sectionIds:Ga$1(xn).optional().meta({description:`Optional scanner section filters. When provided, check-in only applies to matching ticket sections.`}),idempotencyKey:na$1().trim().min(1).max(255).optional().meta({description:`Stable client-generated key used to replay a scan request without turning a timed-out success into a duplicate denial.`})}).omit({id:true}).meta({description:`Schema for check-in/check-out transitions addressed by key, where key may resolve to a ticket or order identifier.`}),ay=io$1([`ticket`,`order`]),oy=io$1([`NOOP_TRANSITION`]),sy=io$1([`PARTIAL_ORDER_CONFIRMATION_REQUIRED`]),cy=io$1([`EVENT_MISMATCH`]),ly=io$1([`FILTERED_OUT`]),uy=qa$1({id:J$1.shape.orderId,checkedInCount:Ta$1().int().nonnegative().optional(),items:Ga$1(qa$1({quantity:Ta$1().int().positive()}))}),dy=Cu.pick({id:true,name:true,slug:true,entryStartsAt:true}).extend({teamId:J$1.shape.teamId}),fy=qa$1({reason:oy,kind:io$1([`CHECK_IN`,`CHECK_OUT`]),targetType:ay,order:uy.optional(),ticket:J$1.optional()}),py=qa$1({reason:cy,kind:io$1([`CHECK_IN`,`CHECK_OUT`]),targetType:ay,requestedEventId:J$1.shape.eventId.optional(),event:dy,order:uy.optional(),ticket:J$1.optional()}),my=qa$1({reason:sy,kind:oo$1(`CHECK_IN`),targetType:oo$1(`order`),order:uy,ticket:J$1.optional()}),hy=qa$1({reason:ly,kind:oo$1(`CHECK_IN`),targetType:ay,order:uy.optional(),ticket:J$1.optional()}),gy=Xa$1([fy,py,my,hy]),_y=qa$1({tickets:Ga$1(J$1).meta({description:`Transition result tickets. Single-item array for ticket targets and full order tickets for order targets.`}),targetType:ay.meta({description:`Resolved target scope from the provided key.`}),order:uy.optional()}),vy=io$1([`ACTIVE`,`CANCELLED`]).describe(`Status updates allowed via PATCH: ACTIVE (reactivate), CANCELLED (void). REDEEMED is set via scan endpoint.`),yy=qa$1({id:na$1().meta({examples:[w$1.Ticket.id],description:`Unique identifier of the ticket to update`}),status:vy.optional().meta({description:`Update ticket status: CANCELLED to void, ACTIVE to reactivate`}),attendee:Su.partial().nullable().optional().meta({description:`Attendee info. Pass object to set/update, null to clear, or omit to leave unchanged.`}),admissionId:na$1().optional().meta({examples:[w$1.Admission.id],description:`Change ticket type/admission (admission and section objects will be fetched from event and stored)`})}).meta({description:`Schema for updating a ticket.`}),by={id:w$1.User.id,createdAt:w$1.User.createdAt,updatedAt:w$1.User.updatedAt,email:w$1.User.email,firstName:w$1.User.firstName,lastName:w$1.User.lastName,imageUrl:`https://assets.session.services/examples/avatar.jpg`,tenantId:w$1.User.tenantId},xy=qa$1({id:na$1().readonly().meta({description:`Unique identifier for the user`,examples:[w$1.User.id]}),createdAt:Pi$1().readonly().meta({description:`ISO 8601 timestamp when the user account was created`,examples:[w$1.User.createdAt]}),updatedAt:Pi$1().readonly().meta({description:`ISO 8601 timestamp when the user account was last updated`,examples:[w$1.User.updatedAt]}),email:ia$1().meta({description:`User's email address, used for authentication and communication`,examples:[w$1.User.email]}),firstName:na$1().min(1).meta({description:`User's first name`,examples:[w$1.User.firstName]}),lastName:na$1().min(1).meta({description:`User's last name`,examples:[w$1.User.lastName]}),imageUrl:ca$1().optional().meta({description:`Optional URL to the user's profile image or avatar`,examples:[`https://assets.session.services/examples/avatar.jpg`]}),metadata:no$1(na$1(),Fn).optional().meta({description:`Arbitrary key-value metadata for storing user preferences and settings`,examples:[{"widgets:team_abc123":{visibleWidgets:[`revenue`]}}]})}).meta({ref:`User`,description:`User entity containing profile and audit information scoped to a specific tenant`,examples:[by]}),Sy=qa$1({kind:io$1([`PROMOTER`,`VENUE`]).meta({description:`Resource type that the permission scope applies to.`}),resourceId:na$1().meta({description:`Promoter or venue identifier for this permission scope.`}),permissions:Ga$1(R$1).meta({description:`Effective permissions for this resource, including role permissions assigned at the scope.`})}).meta({ref:`MePermissionScope`,description:`Effective resource-specific permissions for the current user.`}),Cy=_v.extend({scopes:Ga$1(Sy).optional().meta({description:`Resource-specific permissions. Omitted when the membership has no promoter or venue scopes.`})}).meta({ref:`MeTeamMember`,description:`Team membership for the current user with role-expanded team permissions and separate resource scopes.`}),wy=qa$1({access:na$1().meta({description:`JWT access token with updated user data`}),refresh:na$1().meta({description:`Refresh token for obtaining new access tokens`})}).meta({ref:`Tokens`,description:`Authentication tokens for client session management`}),Ty=qa$1({user:xy.meta({description:`The updated user profile`}),tokens:wy.optional().meta({description:`New JWT tokens with updated user data. Present when refresh token was provided in request.`})}).meta({ref:`UserUpdateResponse`,description:`Response payload for PATCH /users/me containing the updated user profile.`}),Ey=qa$1({deleted:oo$1(true).meta({description:`Whether the current user account was deleted.`})}).meta({ref:`UserDeleteResponse`,description:`Response payload for DELETE /users/me after deleting the current account.`}),Dy=qa$1({user:xy.nullable().meta({description:`Current authenticated user profile, null if not authenticated`}),isAdmin:ka$1().meta({description:`Whether the current user has admin privileges for the tenant`}),members:Ga$1(Cy).meta({description:`All team memberships for the current user within this tenant.`})}).meta({ref:`MeResponse`,description:`Response payload for GET /users/me providing the current user, tenant admin status, and team memberships.`,examples:[{user:{id:`usr_01k5hbpkfje048zccqmqfhjpep`,createdAt:`2025-09-19T16:07:46.418Z`,updatedAt:`2025-09-19T16:07:46.418Z`,email:`j@1f.io`,firstName:`Jay`,lastName:`McMullen`,imageUrl:`https://assets.session.services/examples/avatar.jpg`},isAdmin:true,members:[{id:`mbr_01jps5cgsec5ge0b1bxa6gzkkk`,createdAt:`2025-09-25T03:25:46.080Z`,updatedAt:`2025-09-25T03:25:46.080Z`,teamId:`tem_01jqpjksnsen9vprw95et60t2m`,userId:`usr_01k5hbpkfje048zccqmqfhjpep`,user:{id:`usr_01k5hbpkfje048zccqmqfhjpep`,email:`j@1f.io`,firstName:`Jay`,lastName:`McMullen`,imageUrl:`https://assets.session.services/examples/avatar.jpg`},permissions:[`*`],isOwner:true,tenantId:`tnt_01abc123`}]}]}),Oy=qa$1({id:na$1().readonly().meta({description:`Unique identifier for the venue`}),createdAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the venue was created`}),updatedAt:Pi$1().readonly().meta({description:`Timestamp in ISO 8601 format when the venue was last updated`}),teamId:na$1().meta({description:`Team that manages this venue`}),locationId:mn.meta({examples:[`loc_01h2xk3j9k8m2n5p7q9r1s3t4v`],description:`Location identifier for this venue`}),googlePlaceId:na$1().optional().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID when this venue is linked to a Google Places location`}),approval:E$1.meta({examples:[`APPROVED`],description:`Approval status of the venue`}),name:na$1().min(3).max(100).meta({description:`Display name of the venue. Must be between 3 and 100 characters`}),slug:na$1().min(3).meta({description:`URL-friendly slug for the venue. Must be unique within tenant`}),description:na$1().optional().meta({description:`Short description of the venue for listings and discovery`}),image:F$1.optional().meta({description:`Venue image`}),contact:qa$1({email:ia$1().optional().meta({description:`Public contact email for venue inquiries`}),phone:na$1().optional().meta({description:`Public contact phone number`}),website:ca$1().optional().meta({description:`Venue website URL`}),instagram:na$1().optional().meta({description:`Instagram profile URL`}),facebook:na$1().optional().meta({description:`Facebook page URL`}),twitter:na$1().optional().meta({description:`Twitter/X profile URL`}),tiktok:na$1().optional().meta({description:`TikTok profile URL`}),youtube:na$1().optional().meta({description:`YouTube channel URL`})}).optional().meta({description:`Public contact information and social media links`}),location:ns.omit({venueId:true}).meta({description:`Physical location details including address, coordinates, and timezone`}),geohash:na$1().meta({description:`Geohash encoding of the venue's location for efficient spatial queries`}),capacity:Ta$1().int().min(1).optional().meta({description:`Maximum capacity of the venue (number of attendees)`}),metadata:In,deletedAt:Pi$1().readonly().optional().meta({description:`Timestamp in ISO 8601 format when the venue was soft-deleted. Null if not deleted`}),tenantId:na$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Managed venue with custom branding and details. Teams can claim venues which then appear in location search results.`}),ky=Oy.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,geohash:true,deletedAt:true,location:true,googlePlaceId:true,approval:true}).extend({description:kr.optional().meta({description:`Short description of the venue for listings and discovery`}),slug:na$1().min(3).optional().meta({description:`URL-friendly slug for the venue. If not provided, will be automatically generated from the name. Must be unique within tenant`})}).meta({description:`Schema for creating a new venue. The system automatically derives location details and Google Place ID from the locationId`}),Ay=qa$1({key:na$1().min(1).meta({description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`,examples:[w$1.Venue.id,w$1.Venue.slug]})}),jy=qa$1({key:na$1().meta({examples:[w$1.Venue.id,w$1.Venue.slug],description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`})}),My=io$1([`createdAt`]),Ny=io$1([`asc`,`desc`]),Py=Ja$1({teamId:na$1().max(128).optional().meta({description:`Filter venues by owner team ID`}),approval:E$1.optional().meta({description:`Filter venues by approval status. PENDING: awaiting review, APPROVED: can be used for events, REJECTED: cannot be used`}),query:na$1().max(120).optional().meta({description:`Optional search query for filtering venues by name or slug`}),latitude:T$1().min(-90).max(90).optional().meta({description:`Latitude for location-based search. Must be used with longitude`}),longitude:T$1().min(-180).max(180).optional().meta({description:`Longitude for location-based search. Must be used with latitude`}),radius:T$1().min(1).max(2e4).optional().meta({description:`Search radius in kilometers (1-20000). Requires latitude and longitude`}),sort:My.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest venues first."}),direction:Ny.optional().meta({examples:[`desc`],description:"Sort direction for venue lists. Defaults to `desc` when `sort` is provided."}),limit:L$1(`venues`),cursor:na$1().max(768).optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing venues with pagination, filtering, and location-based search`}),Fy=B$1(Oy,`venues`).meta({description:`Paginated response containing venues with cursor for next page`}),Iy=qa$1({venue:Oy}),Ly=Oy.omit({id:true,tenantId:true,teamId:true,createdAt:true,updatedAt:true,deletedAt:true,geohash:true}).partial().extend({key:na$1().meta({examples:[w$1.Venue.id,w$1.Venue.slug],description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`}),description:kr.nullable().optional().meta({description:`Short description of the venue. Pass null to clear, omit to leave unchanged.`}),image:F$1.nullable().optional().meta({description:`Venue image. Pass null to clear, omit to leave unchanged.`}),capacity:Ta$1().int().min(1).nullable().optional().meta({description:`Maximum capacity. Pass null to clear, omit to leave unchanged.`}),contact:qa$1({email:ia$1().optional(),phone:na$1().optional(),website:ca$1().optional(),instagram:na$1().optional(),facebook:na$1().optional(),twitter:na$1().optional(),tiktok:na$1().optional(),youtube:na$1().optional()}).nullable().optional().meta({description:`Contact information. Pass null to clear all contact fields, omit to leave unchanged.`}),googlePlaceId:na$1().nullable().optional().meta({description:`Google Place ID. Pass null to unlink from Google Places, omit to leave unchanged.`})}).meta({description:`Schema for updating an existing venue. Cannot change teamId (owner). Pass null to clear optional fields.`});Ja$1({id:na$1(),email:ia$1(),firstName:na$1(),lastName:na$1(),imageUrl:na$1().url().optional(),tenantId:na$1(),createdAt:na$1().datetime(),updatedAt:na$1().datetime()});const Zy=io$1([`ORDER`,`EVENT`,`TEAM`,`TEAM_INVITE`]).meta({description:`Aggregate type this notification belongs to`}),Qy=io$1([`ORDER_CONFIRMATION`,`REFUND_CONFIRMATION`,`TICKET_CANCELLATION`,`ORDER_REMINDER`,`ORDER_CANCELLATION`,`ORDER_TIME_CHANGE`,`ORDER_VENUE_CHANGE`,`ORDER_TIME_AND_VENUE_CHANGE`,`ORDER_LOCATION_REVEAL`,`EVENT_APPROVAL_REQUEST`,`EVENT_APPROVAL_DECISION`,`TEAM_INVITE`,`ORDER_TICKETS_RESEND`,`INTERNAL_FEEDBACK`]).meta({description:`Notification kind`}),$y=io$1([`SMS`,`EMAIL`]).meta({description:`Delivery channel`}),eb=io$1([`PENDING`,`PROCESSING`,`SENT`,`DELIVERED`,`FAILED`,`CANCELLED`]).meta({description:`Current notification status`});qa$1({id:On.meta({examples:[w$1.Notification.id],description:`Unique notification identifier`}),createdAt:Pi$1().readonly().meta({examples:[w$1.Notification.createdAt],description:`Timestamp when notification was created`}),updatedAt:Pi$1().readonly().meta({examples:[w$1.Notification.updatedAt],description:`Timestamp when notification was last updated`}),aggregateType:Zy.meta({examples:[w$1.Notification.aggregateType]}),aggregateId:Xa$1([gn,A$1,k$1,wn]).meta({examples:[w$1.Notification.aggregateId],description:`Aggregate identifier for the notification owner`}),eventId:A$1.optional().meta({examples:[w$1.Notification.eventId],description:`Associated event identifier when applicable`}),kind:Qy.meta({examples:[w$1.Notification.kind]}),channel:$y.meta({examples:[w$1.Notification.channel]}),status:eb.meta({examples:[w$1.Notification.status]}),providerMessageId:na$1().optional().meta({examples:[w$1.Notification.providerMessageId],description:`Provider message identifier`}),sentAt:Pi$1().optional().meta({examples:[w$1.Notification.sentAt],description:`Timestamp when provider accepted send request`}),deliveredAt:Pi$1().optional().meta({examples:[w$1.Notification.deliveredAt],description:`Timestamp when provider confirmed delivery`}),failedAt:Pi$1().optional().meta({examples:[w$1.Notification.failedAt],description:`Timestamp when notification failed`}),failureCode:na$1().optional().meta({examples:[w$1.Notification.failureCode],description:`Failure code when notification is FAILED`}),failureReason:na$1().optional().meta({examples:[w$1.Notification.failureReason],description:`Failure reason when notification is FAILED`})}).meta({description:`Notification delivery record`});qa$1({id:P$1.meta({description:`Team member ID to delete`})});
|
|
98
|
-
|
|
99
|
-
function Jf(e,t={}){let n=(e?.pipeThrough(new TextDecoderStream).pipeThrough(new $e$1))?.getReader(),r,i=false;return new Ce$1(async()=>{r??=ge$1(`consume_event_iterator_stream`);try{for(;;){if(n===void 0)return {done:true,value:void 0};let{done:e,value:t}=await be$1(r,()=>n.read());if(e){if(i)throw new fe$1(`Stream was cancelled`);return {done:true,value:void 0}}switch(t.event){case `message`:{let e=Ee$1(t.data);return Ae$1(e)&&(e=ct$1(e,t)),r?.addEvent(`message`),{done:false,value:e}}case `error`:{let e=new Xe$1({data:Ee$1(t.data)});throw e=ct$1(e,t),r?.addEvent(`error`),e}case `done`:{let e=Ee$1(t.data);return Ae$1(e)&&(e=ct$1(e,t)),r?.addEvent(`done`),{done:true,value:e}}default:r?.addEvent(`maybe_keepalive`);}}}catch(e){throw e instanceof Xe$1||_e$1(r,e,t),e}},async e=>{try{e!==`next`&&(i=true,r?.addEvent(`cancelled`)),await be$1(r,()=>n?.cancel());}catch(e){throw _e$1(r,e,t),e}finally{r?.end();}})}function Yf(e,t={}){let n=t.eventIteratorKeepAliveEnabled??true,r=t.eventIteratorKeepAliveInterval??5e3,i=t.eventIteratorKeepAliveComment??``,a=t.eventIteratorInitialCommentEnabled??true,o=t.eventIteratorInitialComment??``,s=false,c,l;return new ReadableStream({start(e){l=ge$1(`stream_event_iterator`),a&&e.enqueue(ot$1({comments:[o]}));},async pull(t){try{n&&(c=setInterval(()=>{t.enqueue(ot$1({comments:[i]})),l?.addEvent(`keepalive`);},r));let a=await be$1(l,()=>e.next());if(clearInterval(c),s)return;let o=lt$1(a.value);if(!a.done||a.value!==void 0||o!==void 0){let e=a.done?`done`:`message`;t.enqueue(ot$1({...o,event:e,data:De$1(a.value)})),l?.addEvent(e);}a.done&&(t.close(),l?.end());}catch(e){if(clearInterval(c),s)return;e instanceof Xe$1?(t.enqueue(ot$1({...lt$1(e),event:`error`,data:De$1(e.data)})),l?.addEvent(`error`),t.close()):(_e$1(l,e),t.error(e)),l?.end();}},async cancel(){try{s=true,clearInterval(c),l?.addEvent(`cancelled`),await be$1(l,()=>e.return?.());}catch(e){throw _e$1(l,e),e}finally{l?.end();}}}).pipeThrough(new TextEncoderStream)}function Xf(e,t={}){return ye$1({name:`parse_standard_body`,signal:t.signal},async()=>{let n=e.headers.get(`content-disposition`);if(typeof n==`string`){let t=dt$1(n)??`blob`,r=await e.blob();return new File([r],t,{type:r.type})}let r=e.headers.get(`content-type`);if(!r||r.startsWith(`application/json`))return Ee$1(await e.text());if(r.startsWith(`multipart/form-data`))return await e.formData();if(r.startsWith(`application/x-www-form-urlencoded`)){let t=await e.text();return new URLSearchParams(t)}if(r.startsWith(`text/event-stream`))return Jf(e.body,t);if(r.startsWith(`text/plain`))return await e.text();let i=await e.blob();return new File([i],`blob`,{type:i.type})})}function Zf(e,t,n={}){if(e instanceof ReadableStream)return e;let r=t.get(`content-disposition`);if(t.delete(`content-type`),t.delete(`content-disposition`),e!==void 0)return e instanceof Blob?(t.set(`content-type`,e.type),t.set(`content-length`,e.size.toString()),t.set(`content-disposition`,r??ut$1(e instanceof File?e.name:`blob`)),e):e instanceof FormData||e instanceof URLSearchParams?e:xe$1(e)?(t.set(`content-type`,`text/event-stream`),Yf(e,n)):(t.set(`content-type`,`application/json`),De$1(e))}function Qf(e,t={}){return e.forEach((e,n)=>{Array.isArray(t[n])?t[n].push(e):t[n]===void 0?t[n]=e:t[n]=[t[n],e];}),t}function $f(e,t=new Headers){for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e);else r!==void 0&&t.append(n,r);return t}function ep(e,t={}){let n=$f(e.headers),r=Zf(e.body,n,t);return new Request(e.url,{signal:e.signal,method:e.method,headers:n,body:r})}function tp(e,t={}){return {body:pe$1(()=>Xf(e,t)),status:e.status,get headers(){let t=Qf(e.headers);return Object.defineProperty(this,"headers",{value:t,writable:true}),t},set headers(e){Object.defineProperty(this,"headers",{value:e,writable:true});}}}var np=class{plugins;constructor(e=[]){this.plugins=[...e].sort((e,t)=>(e.order??0)-(t.order??0));}init(e){for(let t of this.plugins)t.init?.(e);}},rp=class{constructor(e,t,n={}){this.codec=e,this.sender=t,new np(n.plugins).init(n),this.interceptors=ue$1(n.interceptors),this.clientInterceptors=ue$1(n.clientInterceptors);}interceptors;clientInterceptors;call(e,t,n){return ye$1({name:`${de$1}.${e.join(`/`)}`,signal:n.signal},r=>(r?.setAttribute(`rpc.system`,de$1),r?.setAttribute(`rpc.method`,e.join(`.`)),xe$1(t)&&(t=we$1({name:`consume_event_iterator_input`,signal:n.signal},t)),Te$1(this.interceptors,{...n,path:e,input:t},async({path:e,input:t,...n})=>{let a=he$1(),o,s=a?.trace.getActiveSpan()??r;s&&a&&(o=a?.trace.setSpan(a.context.active(),s));let c=await ye$1({name:`encode_request`,context:o},()=>this.codec.encode(e,t,n)),l=await Te$1(this.clientInterceptors,{...n,input:t,path:e,request:c},({input:e,path:t,request:n,...r})=>ye$1({name:`send_request`,signal:r.signal,context:o},()=>this.sender.call(n,r,t,e))),u=await ye$1({name:`decode_response`,context:o},()=>this.codec.decode(l,n,e,t));return xe$1(u)?we$1({name:`consume_event_iterator_output`,signal:n.signal},u):u})))}};function ip(e){return `/${e.map(encodeURIComponent).join(`/`)}`}function ap(e){return typeof e.forEach==`function`?Qf(e):e}function op(e){return Object.entries(Re$1).find(([,t])=>t.status===e)?.[0]??`MALFORMED_ORPC_ERROR_RESPONSE`}var sp=class extends np{initRuntimeAdapter(e){for(let t of this.plugins)t.initRuntimeAdapter?.(e);}},cp=class{fetch;toFetchRequestOptions;adapterInterceptors;constructor(e){new sp(e.plugins).initRuntimeAdapter(e),this.fetch=e.fetch??globalThis.fetch.bind(globalThis),this.toFetchRequestOptions=e,this.adapterInterceptors=ue$1(e.adapterInterceptors);}async call(e,t,n,r){let i=ep(e,this.toFetchRequestOptions);return tp(await Te$1(this.adapterInterceptors,{...t,request:i,path:n,input:r,init:{redirect:`manual`}},({request:e,path:t,input:n,init:r,...i})=>this.fetch(e,r,i,t,n)),{signal:i.signal})}},lp=class{maxArrayIndex;constructor(e={}){this.maxArrayIndex=e.maxBracketNotationArrayIndex??9999;}serialize(e,t=[],n=[]){if(Array.isArray(e))e.forEach((e,r)=>{this.serialize(e,[...t,r],n);});else if(ke$1(e))for(let r in e)this.serialize(e[r],[...t,r],n);else n.push([this.stringifyPath(t),e]);return n}deserialize(e){if(e.length===0)return {};let t=new WeakSet,n={value:[]};for(let[r,i]of e){let e=this.parsePath(r),a=n,o=`value`;e.forEach((n,r)=>{!Array.isArray(a[o])&&!ke$1(a[o])&&(a[o]=[]),r===e.length-1?Array.isArray(a[o])&&(n===``?a[o].length&&!t.has(a[o])&&(a[o]=dp(a[o])):t.has(a[o])?(t.delete(a[o]),a[o]=fp(a[o])):up(n,this.maxArrayIndex)||(a[o]=dp(a[o]))):Array.isArray(a[o])&&!up(n,this.maxArrayIndex)&&(t.has(a[o])?(t.delete(a[o]),a[o]=fp(a[o])):a[o]=dp(a[o])),a=a[o],o=n;}),Array.isArray(a)&&o===``?(t.add(a),a.push(i)):o in a?Array.isArray(a[o])?a[o].push(i):a[o]=[a[o],i]:a[o]=i;}return n.value}stringifyPath(e){return e.map(e=>e.toString().replace(/[\\[\]]/g,e=>{switch(e){case `\\`:return `\\\\`;case `[`:return `\\[`;case `]`:return `\\]`;default:return e}})).reduce((e,t,n)=>n===0?t:`${e}[${t}]`,``)}parsePath(e){let t=[],n=false,r=``,i=0;for(let a=0;a<e.length;a++){let o=e[a],s=e[a+1];n&&o===`]`&&(s===void 0||s===`[`)&&i%2==0?(s===void 0&&(n=false),t.push(r),r=``,a++):t.length===0&&o===`[`&&i%2==0?(n=true,t.push(r),r=``):o===`\\`?i++:(r+=`\\`.repeat(i/2)+o,i=0);}return n||t.length===0?[e]:t}};function up(e,t){return /^0$|^[1-9]\d*$/.test(e)&&Number(e)<=t}function dp(e){let t=new Me$1;return e.forEach((e,n)=>{t[n]=e;}),t}function fp(e){let t=new Me$1;return t[``]=e.length===1?e[0]:e,t}var pp=class{customSerializers;constructor(e={}){this.customSerializers=e.customJsonSerializers??[];}serialize(e,t={value:false}){for(let n of this.customSerializers)if(n.condition(e))return this.serialize(n.serialize(e),t);if(e instanceof Blob)return t.value=true,[e,t.value];if(e instanceof Set)return this.serialize(Array.from(e),t);if(e instanceof Map)return this.serialize(Array.from(e.entries()),t);if(Array.isArray(e))return [e.map(e=>e===void 0?null:this.serialize(e,t)[0]),t.value];if(ke$1(e)){let n={};for(let r in e)r===`toJSON`&&typeof e[r]==`function`||(n[r]=this.serialize(e[r],t)[0]);return [n,t.value]}return typeof e==`bigint`||e instanceof RegExp||e instanceof URL?[e.toString(),t.value]:e instanceof Date?[Number.isNaN(e.getTime())?null:e.toISOString(),t.value]:Number.isNaN(e)?[null,t.value]:[e,t.value]}};function mp(e){return `/${e.replace(/\/{2,}/g,`/`).replace(/^\/|\/$/g,``)}`}function hp(e){return e?mp(e).match(/\/\{[^}]+\}/g)?.map(e=>({raw:e,name:e.match(/\{\+?([^}]+)\}/)[1]})):void 0}var gp=class{constructor(e,t,n){this.contract=e,this.serializer=t,this.baseUrl=n.url,this.headers=n.headers??{},this.customErrorResponseBodyDecoder=n.customErrorResponseBodyDecoder;}baseUrl;headers;customErrorResponseBodyDecoder;async encode(e,t,n){let r=ap(await Ne$1(this.headers,n,e,t));n.lastEventId!==void 0&&(r=ft$1(r,{"last-event-id":n.lastEventId}));let i=await Ne$1(this.baseUrl,n,e,t),a=je$1(this.contract,e);if(!bt$1(a))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${e.join(`.`)}`);return At$1(`defaultInputStructure`,a[`~orpc`].route.inputStructure)===`compact`?this.#e(a,e,t,n,i,r):this.#t(a,e,t,n,i,r)}#e(e,t,n,r,i,a){let o=mp(e[`~orpc`].route.path??ip(t)),s=n,c=hp(o);if(c?.length){if(!ke$1(n))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "compact" structure when has dynamic params at ${t.join(`.`)}.`);let e={...n};for(let t of c){let r=n[t.name];o=o.replace(t.raw,`/${encodeURIComponent(`${this.serializer.serialize(r)}`)}`),delete e[t.name];}s=Object.keys(e).length?e:void 0;}let l=At$1(`defaultMethod`,e[`~orpc`].route.method),u=new URL(i);if(u.pathname=`${u.pathname.replace(/\/$/,``)}${o}`,l===`GET`){let e=this.serializer.serialize(s,{outputFormat:`URLSearchParams`});for(let[t,n]of e)u.searchParams.append(t,n);return {url:u,method:l,headers:a,body:void 0,signal:r.signal}}return {url:u,method:l,headers:a,body:this.serializer.serialize(s),signal:r.signal}}#t(e,t,n,r,i,a){let o=mp(e[`~orpc`].route.path??ip(t)),s=hp(o);if(!ke$1(n)&&n!==void 0)throw TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "detailed" structure at ${t.join(`.`)}.`);if(s?.length){if(!ke$1(n?.params))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input.params shape for "detailed" structure when has dynamic params at ${t.join(`.`)}.`);for(let e of s){let t=n.params[e.name];o=o.replace(e.raw,`/${encodeURIComponent(`${this.serializer.serialize(t)}`)}`);}}let c=a;if(n?.headers!==void 0){if(!ke$1(n.headers))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input.headers shape for "detailed" structure at ${t.join(`.`)}.`);c=ft$1(n.headers,a);}let l=At$1(`defaultMethod`,e[`~orpc`].route.method),u=new URL(i);if(u.pathname=`${u.pathname.replace(/\/$/,``)}${o}`,n?.query!==void 0){let e=this.serializer.serialize(n.query,{outputFormat:`URLSearchParams`});for(let[t,n]of e)u.searchParams.append(t,n);}return l===`GET`?{url:u,method:l,headers:c,body:void 0,signal:r.signal}:{url:u,method:l,headers:c,body:this.serializer.serialize(n?.body),signal:r.signal}}async decode(e,t,n){let r=!Ge$1(e.status),i=await(async()=>{let t=false;try{let n=await e.body();return t=true,this.serializer.deserialize(n)}catch(e){throw Error(t?`Invalid OpenAPI response format.`:`Cannot parse response body, please check the response body and content-type.`,{cause:e})}})();if(!r)throw this.customErrorResponseBodyDecoder?.(i,e)??(Ke$1(i)?qe$1(i):new He$1(op(e.status),{status:e.status,data:{...e,body:i}}));let a=je$1(this.contract,n);if(!bt$1(a))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${n.join(`.`)}`);return At$1(`defaultOutputStructure`,a[`~orpc`].route.outputStructure)===`compact`?i:{status:e.status,headers:e.headers,body:i}}},_p=class{constructor(e,t){this.jsonSerializer=e,this.bracketNotation=t;}serialize(e,t={}){return xe$1(e)&&!t.outputFormat?pt$1(e,{value:async e=>this.#e(e,{outputFormat:`plain`}),error:async e=>new Xe$1({data:this.#e(We$1(e).toJSON(),{outputFormat:`plain`}),cause:e})}):this.#e(e,t)}#e(e,t){let[n,r]=this.jsonSerializer.serialize(e);if(t.outputFormat===`plain`)return n;if(t.outputFormat===`URLSearchParams`){let e=new URLSearchParams;for(let[t,r]of this.bracketNotation.serialize(n))(typeof r==`string`||typeof r==`number`||typeof r==`boolean`)&&e.append(t,r.toString());return e}if(n instanceof Blob||n===void 0||!r)return n;let i=new FormData;for(let[e,t]of this.bracketNotation.serialize(n))typeof t==`string`||typeof t==`number`||typeof t==`boolean`?i.append(e,t.toString()):t instanceof Blob&&i.append(e,t);return i}deserialize(e){return e instanceof URLSearchParams||e instanceof FormData?this.bracketNotation.deserialize(Array.from(e.entries())):xe$1(e)?pt$1(e,{value:async e=>e,error:async e=>e instanceof Xe$1&&Ke$1(e.data)?qe$1(e.data,{cause:e}):e}):e}},vp=class extends rp{constructor(e,t,n){let r=new gp(e,new _p(new pp(n),new lp({maxBracketNotationArrayIndex:4294967294})),n);super(r,t,n);}},yp=class extends vp{constructor(e,t){let n=new cp(t);super(e,n,t);}};const Tp=S$1.route({method:`GET`,path:`/events/{eventId}/admissions/{id}`,summary:`Get admission by ID`,tags:[`Admissions`]}).input(zr.strict()).output(Kr),Ep=S$1.route({method:`POST`,path:`/events/{eventId}/admissions`,summary:`Create a new admission`,tags:[`Admissions`]}).input(Lr.strict()).output(Kr),Dp=S$1.route({method:`PUT`,path:`/events/{eventId}/admissions/{id}`,summary:`Update an admission`,tags:[`Admissions`]}).input(qr.strict()).output(Kr);var Op={get:Tp,list:S$1.route({method:`GET`,path:`/events/{eventId}/admissions`,summary:`List admissions`,description:`Returns admissions with cursor-based pagination. Automatically uses search-backed pagination when query parameter is provided for full-text search capabilities.`,tags:[`Admissions`]}).input(Br.strict()).output(Vr),create:Ep,update:Dp,remove:S$1.route({method:`DELETE`,path:`/events/{eventId}/admissions/{id}`,summary:`Delete an admission`,tags:[`Admissions`]}).input(Rr.strict()).output(Kr),quote:S$1.route({method:`POST`,path:`/events/{eventId}/admissions/quote`,summary:`Create an admission quote`,tags:[`Admissions`]}).input(Wr.strict()).output(Gr)};const X$1={BAD_REQUEST:{status:400,data:qa$1({unresolvedRequired:Ga$1(na$1()),unresolvedOptional:Ga$1(na$1()).optional(),issues:Ga$1(na$1()).optional()}).optional()}};var kp={track:S$1.route({method:`POST`,path:`/analytics/track`,summary:`Track event`,tags:[`Analytics`]}).input(io).errors(X$1).output(eo),page:S$1.route({method:`POST`,path:`/analytics/page`,summary:`Page event`,tags:[`Analytics`]}).input(io).errors(X$1).output(eo),identify:S$1.route({method:`POST`,path:`/analytics/identify`,summary:`Identify event`,tags:[`Analytics`]}).input(io).errors(X$1).output(eo),alias:S$1.route({method:`POST`,path:`/analytics/alias`,summary:`Alias event`,tags:[`Analytics`]}).input(io).errors(X$1).output(eo),group:S$1.route({method:`POST`,path:`/analytics/group`,summary:`Group event`,tags:[`Analytics`]}).input(io).errors(X$1).output(eo),screen:S$1.route({method:`POST`,path:`/analytics/screen`,summary:`Screen event`,tags:[`Analytics`]}).input(io).errors(X$1).output(eo)};const Ap=qa$1({expected:na$1(),actual:na$1()}),jp=qa$1({currency:D$1.meta({description:`Currency already assigned to another payout account`})}).meta({description:`Details about a conflicting beneficiary payout account`}),Mp=S$1.route({method:`GET`,path:`/beneficiaries/{id}`,summary:`Get beneficiary by ID`,tags:[`Beneficiaries`]}).input(ho.strict()).output(yo),Np=S$1.route({method:`POST`,path:`/beneficiaries`,summary:`Create a new beneficiary`,tags:[`Beneficiaries`]}).input(mo.strict()).errors({BAD_REQUEST:{status:400,data:Ap.optional()},CONFLICT:{status:409,data:jp}}).output(yo);var Pp={get:Mp,list:S$1.route({method:`GET`,path:`/beneficiaries`,summary:`List beneficiaries with cursor-based pagination`,description:"Returns beneficiary data with cursor-based pagination and optional full-text search via the `query` parameter.",tags:[`Beneficiaries`]}).input(_o.strict()).output(vo),create:Np,remove:S$1.route({method:`DELETE`,path:`/beneficiaries/{id}`,summary:`Delete a beneficiary`,tags:[`Beneficiaries`]}).input(go.strict()).output(yo),schema:Oo,validate:Mo};const Fp=Xa$1([qa$1({field:oo$1(`code`),reason:oo$1(`taken`),value:na$1()}),qa$1({code:na$1()})]),Ip=S$1.route({method:`GET`,path:`/coupon-codes/{id}`,summary:`Get coupon code by ID`,tags:[`Coupon Codes`]}).input(zo.strict()).output(qo),Lp=S$1.route({method:`POST`,path:`/coupon-codes`,summary:`Create a new coupon code`,tags:[`Coupon Codes`]}).input(Ho.strict()).errors({CONFLICT:{status:409,data:Fp.optional()}}).output(qo),Rp=S$1.route({method:`PUT`,path:`/coupon-codes/{id}`,summary:`Update a coupon code`,tags:[`Coupon Codes`]}).input(Uo.strict()).output(qo);var zp={get:Ip,list:S$1.route({method:`GET`,path:`/coupon-codes`,summary:`List coupon codes with cursor-based pagination`,description:"Returns coupon code data with cursor-based pagination and optional full-text search via the `query` parameter.",tags:[`Coupon Codes`]}).input(Go.strict()).output(Ko),create:Lp,update:Rp,remove:S$1.route({method:`DELETE`,path:`/coupon-codes/{id}`,summary:`Delete a coupon code`,tags:[`Coupon Codes`]}).input(Wo.strict()).output(qo)};const Bp=qa$1({committedAndHeldUses:Ta$1(),requestedLimit:Ta$1()}),Vp=S$1.route({method:`GET`,path:`/coupons/{id}`,summary:`Get coupon by ID`,tags:[`Coupons`]}).input(Yo.strict()).output($o),Hp=S$1.route({method:`POST`,path:`/coupons`,summary:`Create a new coupon`,tags:[`Coupons`]}).input(Jo).output($o),Up=S$1.route({method:`PUT`,path:`/coupons/{id}`,summary:`Update a coupon`,tags:[`Coupons`]}).input(es).errors({BAD_REQUEST:{status:400,data:Bp.optional()}}).output($o);var Wp={get:Vp,list:S$1.route({method:`GET`,path:`/coupons`,summary:`List coupons with cursor-based pagination`,description:"Returns coupon data with cursor-based pagination and optional full-text search via the `query` parameter.",tags:[`Coupons`]}).input(Zo.strict()).output(Qo),create:Hp,update:Up,remove:S$1.route({method:`DELETE`,path:`/coupons/{id}`,summary:`Delete a coupon`,tags:[`Coupons`]}).input(Xo.strict()).output($o),code:zp};const Gp=qa$1({eventId:A$1.optional().meta({description:`Event ID for rate limiting and change detection. If provided, suggestions are limited to once per day per event and only if the description changed significantly.`,examples:[w$1.Event.id]}),description:na$1().min(100).max(1e4).meta({description:`Event description to analyze for genre and category suggestions. Minimum 100 characters required for meaningful AI analysis.`,examples:[`Join us for an all-night warehouse party featuring the best in tech house and melodic techno. BYO drinks, intimate vibes, and a killer sound system.`]}),eventName:na$1().optional().meta({description:`Optional event name for additional context`,examples:[`Warehouse Sessions Vol. 5`]}),imageUrl:ca$1().optional().meta({description:`Optional event artwork URL for visual analysis (multimodal)`,examples:[`https://assets.session.services/events/poster.jpg`]})}).meta({description:`Input for AI-powered event tag suggestions`}),Kp=qa$1({genres:Ga$1(sn).max(5).meta({description:`Suggested music genres based on event description and artwork`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:Ga$1(an$1).max(10).meta({description:`Suggested event categories based on description and artwork`,examples:[[`Warehouse`,`Underground`,`BYO`]]}),confidence:Ta$1().min(0).max(1).meta({description:`AI confidence score for the suggestions (0-1)`,examples:[.85]}),startDate:na$1().optional().meta({description:`Event start date/time. Either ISO 8601 format (if specific date found) or natural language hint for relative dates (e.g., 'next Saturday 9pm').`,examples:[`2025-02-15T21:00:00`,`next Saturday 9pm`]}),endDate:na$1().optional().meta({description:`Event end date/time. Either ISO 8601 format (if specific date found) or natural language hint.`,examples:[`2025-02-16T04:00:00`,`6am Sunday`]}),venueName:na$1().optional().meta({description:`Venue or location name extracted from the description or artwork. Used to search for and prefill the event location.`,examples:[`Warehouse 21`,`The Metro Theatre`]}),ticketUrl:ca$1().optional().meta({description:`External ticket purchase URL if found in the description. Only extracted if different from the host platform.`,examples:[`https://www.eventbrite.com/e/warehouse-sessions-tickets-123`]})}).meta({description:`AI-generated genre and category suggestions for an event`});qa$1({estimatedInputTokens:Ta$1().int().meta({description:`Estimated input tokens for the request`,examples:[500]}),estimatedOutputTokens:Ta$1().int().meta({description:`Estimated output tokens for the response`,examples:[100]}),estimatedCostUsd:Ta$1().meta({description:`Estimated cost in USD`,examples:[.002]}),includesImage:ka$1().meta({description:`Whether the estimate includes image analysis`,examples:[true]})}).meta({description:`Cost estimate for an AI tag suggestion request`});var qp={suggestTags:S$1.route({method:`POST`,path:`/events/tags`,summary:`Suggest event genres and categories`,description:`Uses AI to analyze event description and optional artwork to suggest relevant music genres and event categories. Returns up to 5 genres and 10 categories with a confidence score.`,tags:[`Events`]}).input(Gp.strict()).output(Kp)};const Jp=qa$1({eventId:A$1.meta({description:`Event to like`})}).meta({description:`Request to like an event`}),Yp=qa$1({limit:L$1(`likes`),cursor:na$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing the current user's liked events with pagination. Returns events sorted by most recently liked first.`}),Xp=qa$1({tenantId:na$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`}),userId:j$1.readonly().meta({description:`User who liked the event`}),eventId:A$1.meta({description:`Event the user liked`}),createdAt:Pi$1().readonly().meta({description:`Timestamp when the user liked the event`})}).meta({description:`Represents a user's like on an event. Used for tracking popular events and building personalized recommendations.`}),Zp=B$1(Xp,`likes`).meta({description:`Paginated list of event likes. Use cursor-based pagination to navigate through results.`}),Qp=qa$1({eventId:A$1.meta({description:`Event to remove like from`})}).meta({description:`Request to remove the current user's like from an event`}),$p=qa$1({like:Xp});var em={add:S$1.route({method:`POST`,path:`/events/{eventId}/like`,summary:`Like an event`,description:`Like an event as the current user. Atomically increments the event's likes counter.`,tags:[`Events`]}).input(Jp).output($p),remove:S$1.route({method:`DELETE`,path:`/events/{eventId}/like`,summary:`Remove like from an event`,description:`Remove the current user's like from an event. Atomically decrements the event's likes counter.`,tags:[`Events`]}).input(Qp).output(Va$1()),list:S$1.route({method:`GET`,path:`/events/likes`,summary:`List liked events`,description:`List all events the current user has liked, with cursor-based pagination.`,tags:[`Events`]}).input(Yp).output(Zp)};const tm=Ii.extend({limit:T$1().min(1).max(100).optional().default(10)}),nm=Pi.extend({limit:T$1().min(1).max(100).optional().default(10)}),rm=Hi.extend({limit:T$1().min(1).max(100).optional().default(10)}),im=Ri.extend({limit:T$1().min(1).max(100).optional().default(10)}),am=Bi.extend({limit:T$1().min(1).max(100).optional().default(10)}),om=Wi.extend({limit:T$1().min(1).max(100).optional().default(10)}),sm=Ki.extend({limit:T$1().min(1).max(100).optional().default(10)}),cm=$i.extend({limit:T$1().min(1).max(50).optional().default(10)}),lm=ta.extend({includeAdmission:Yt$1().optional().default(true),includeSection:Yt$1().optional().default(true)}),um=oa.extend({}),dm=S$1.route({method:`GET`,path:`/events/{eventId}/performance/summary`,summary:`Get event performance summary`,description:`Top-level KPI metrics with period comparison based on tracking events`,tags:[`Event Performance`]}).input(_i).output(vi),fm=S$1.route({method:`GET`,path:`/events/{eventId}/performance/tickets`,summary:`Get ticket sales performance`,description:`Time series of sold tickets and successful-order revenue by period, with admission and section breakdowns`,tags:[`Event Performance`]}).input(yi).output(bi),pm=S$1.route({method:`GET`,path:`/events/{eventId}/performance/timeseries`,summary:`Get event metric time series`,description:`Per-bucket series of revenue, tickets, orders, page views, visitors, and conversion rate for the selected range`,tags:[`Event Performance`]}).input(Si).output(Ci),mm=S$1.route({method:`GET`,path:`/events/{eventId}/performance/funnel`,summary:`Get sales funnel performance`,description:`Conversion funnel showing drop-off at each stage from tracking events`,tags:[`Event Performance`]}).input(wi).output(Ti),hm=S$1.route({method:`GET`,path:`/events/{eventId}/performance/campaigns`,summary:`Get campaign performance`,description:`Marketing campaign metrics from tracking events (UTM campaign parameter)`,tags:[`Event Performance`]}).input(tm).output(Li),gm=S$1.route({method:`GET`,path:`/events/{eventId}/performance/coupons`,summary:`Get coupon performance`,description:`Coupon usage and revenue from actual order data`,tags:[`Event Performance`]}).input(nm).output(Fi),_m=S$1.route({method:`GET`,path:`/events/{eventId}/performance/mediums`,summary:`Get traffic medium performance`,description:`Performance by traffic medium (social, email, cpc) from tracking events`,tags:[`Event Performance`]}).input(im).output(zi),vm=S$1.route({method:`GET`,path:`/events/{eventId}/performance/devices`,summary:`Get device performance`,description:`Performance breakdown by device type from tracking events`,tags:[`Event Performance`]}).input(am).output(Vi),ym=S$1.route({method:`GET`,path:`/events/{eventId}/performance/browsers`,summary:`Get browser performance`,description:`Traffic breakdown by browser from tracking events`,tags:[`Event Performance`]}).input(rm).output(Ui),bm=S$1.route({method:`GET`,path:`/events/{eventId}/performance/locations`,summary:`Get geographic performance`,description:`Performance by geographic location from tracking events`,tags:[`Event Performance`]}).input(om).output(Gi),xm=S$1.route({method:`GET`,path:`/events/{eventId}/performance/traffic`,summary:`Get traffic source performance`,description:`Top referral sources and channels from tracking events`,tags:[`Event Performance`]}).input(sm).output(qi),Sm=S$1.route({method:`GET`,path:`/events/{eventId}/performance/attendance`,summary:`Get event attendance statistics`,description:`Check-in statistics and attendance breakdown by admission and section`,tags:[`Event Performance`]}).input(Ji).output(Qi),Cm=S$1.route({method:`GET`,path:`/events/{eventId}/performance/scanners`,summary:`Get door staff scanner activity`,description:`Ranked check-in activity by scanner for post-event door staff analytics`,tags:[`Event Performance`]}).input(cm).output(ea),wm=S$1.route({method:`GET`,path:`/events/{eventId}/performance/turnout`,summary:`Get event turnout analysis`,description:`Post-event sold versus checked-in tickets by admission and section`,tags:[`Event Performance`]}).input(lm).output(aa),Tm=S$1.route({method:`GET`,path:`/events/{eventId}/performance/pace`,summary:`Get event check-in pace`,description:`Post-event check-in flow over the admission entry window with peak door volume`,tags:[`Event Performance`]}).input(um).output(sa);var Em={couponAttendance:S$1.route({method:`GET`,path:`/events/{eventId}/performance/coupon-attendance`,summary:`Get check-in attendance by coupon code`,tags:[`Event Performance`]}).input(Jr).output(Xr),summary:dm,tickets:fm,timeseries:pm,funnel:mm,campaigns:hm,coupons:gm,mediums:_m,devices:vm,browsers:ym,locations:bm,traffic:xm,attendance:Sm,scanners:Cm,turnout:wm,pace:Tm};const Dm=S$1.route({method:`GET`,path:`/events/slugs`,summary:`List event slugs`,description:`List current event slugs with the same filters and access rules as event lists. Supports skip/limit pagination for sitemap generation.`,tags:[`Events`]}).input(lc).output(uc),Om=S$1.route({method:`GET`,path:`/events/{key}`,summary:`Get event by ID or slug`,description:`Retrieve an event using either its unique ID or URL-friendly slug`,tags:[`Events`]}).input(Qs).output(Cs),km=S$1.route({method:`POST`,path:`/events`,summary:`Create a new event`,tags:[`Events`]}).input(Js.strict()).output(oc),Am=S$1.route({method:`POST`,path:`/events/{key}/duplicate`,summary:`Duplicate an event`,description:`Create a new event by copying event details, sections, and admissions from an existing event.`,tags:[`Events`]}).input(Xs.strict()).output(oc),jm=S$1.route({method:`PUT`,path:`/events/{key}`,summary:`Update an event`,description:`Update an event using either its unique ID or URL-friendly slug`,tags:[`Events`]}).input(fc.strict()).output(oc),Mm={get:S$1.route({method:`GET`,path:`/events/{key}/approval`,summary:`Get event approval status`,description:`Get internal event approval status and reviewer feedback. Requires event.read permission on the event owner team.`,tags:[`Events`]}).input(Es.strict()).output(Os),request:S$1.route({method:`POST`,path:`/events/{key}/approval/request`,summary:`Request event approval`,description:`Request or resubmit event approval. Requires event.write permission on the event owner team.`,tags:[`Events`]}).input(ks.strict()).output(oc),update:S$1.route({method:`PUT`,path:`/events/{key}/approval`,summary:`Approve or reject an event`,description:`Approve or reject an event. Requires event.write permission on the tenant admin team.`,tags:[`Events`]}).input(As.strict()).output(oc)};var Nm={slugs:Dm,get:Om,list:S$1.route({method:`GET`,path:`/events`,summary:`List events`,description:`List events with filters for status, approval, visibility, and promoter. Supports full‑text search (query), geo search (latitude/longitude/radius), and cursor-based pagination.`,tags:[`Events`]}).input(rc).output(ac),create:km,duplicate:Am,update:jm,approval:Mm,remove:S$1.route({method:`DELETE`,path:`/events/{key}`,summary:`Delete an event`,description:`Delete an event using either its unique ID or URL-friendly slug`,tags:[`Events`]}).input(Ys.strict()).output(oc),feature:S$1.route({method:`POST`,path:`/events/{key}/feature`,summary:`Toggle event featured status`,description:`Set or remove featured status on an event. Tenant admin only.`,tags:[`Events`]}).input(Zs.strict()).output(oc),like:em,performance:Em,tags:qp.suggestTags},Pm={get:S$1.route({method:`GET`,path:`/events/{eventId}/collaborators/{id}`,summary:`Get event collaborator by ID`,description:`Retrieve an active event collaboration by its unique ID. Returns the collaborator record with promoter and permission details.`,tags:[`Event Collaborators`]}).input(_c.strict()).output(xc),list:S$1.route({method:`GET`,path:`/events/{eventId}/collaborators`,summary:`List active event collaborators with cursor-based pagination`,description:`Returns active event collaborations for a specific event with cursor pagination. Only shows accepted collaborators. For pending invitations, use the invite endpoints.`,tags:[`Event Collaborators`]}).input(yc.strict()).output(bc),create:S$1.route({method:`POST`,path:`/events/{eventId}/collaborators`,summary:`Invite a promoter to collaborate on an event`,description:`Send a collaboration invitation to a promoter (can be from a different team). Enables cross-team promoter-to-promoter collaboration. Creates a pending invitation with a secure token that expires in 7 days. The invited promoter must accept to create an active collaboration.`,tags:[`Event Collaborators`]}).input(gc.strict()).output(vc),accept:S$1.route({method:`POST`,path:`/events/{eventId}/collaborators/{id}/accept`,summary:`Accept an event collaboration invitation`,description:`Accept a pending event collaboration invitation. User must be a member of the invited promoter's team. Deletes the invitation and creates an active collaboration record.`,tags:[`Event Collaborators`]}).input(mc.strict()).output(xc),remove:S$1.route({method:`DELETE`,path:`/events/{eventId}/collaborators/{id}`,summary:`Remove active event collaboration`,description:`Remove an active collaboration (hard delete). Can be done by event team members or the collaborating team members. This completely removes access.`,tags:[`Event Collaborators`]}).input(_c.strict()).output(Va$1())},Fm={list:S$1.route({method:`GET`,path:`/integrations`,tags:[`Integrations`],summary:`List team integrations`}).input(Tc).output(Ec),get:S$1.route({method:`GET`,path:`/integrations/{id}`,tags:[`Integrations`],summary:`Get an integration`}).input(Dc).output(wc),create:S$1.route({method:`POST`,path:`/integrations`,tags:[`Integrations`],summary:`Connect a team integration`}).input(Oc).output(wc).errors({BAD_GATEWAY:{status:502}}),update:S$1.route({method:`PATCH`,path:`/integrations/{id}`,tags:[`Integrations`],summary:`Update the shared integration settings`}).input(kc).output(wc).errors({BAD_GATEWAY:{status:502}}),remove:S$1.route({method:`DELETE`,path:`/integrations/{id}`,tags:[`Integrations`],summary:`Disconnect an integration`}).input(Ac).output(wc),backfills:S$1.route({method:`GET`,path:`/integrations/{id}/backfills`,tags:[`Integrations`],summary:`Get recent import progress`}).input(Dc).output(Ga$1(jc)),requestBackfill:S$1.route({method:`POST`,path:`/integrations/{id}/backfills`,tags:[`Integrations`],summary:`Request a historical import`}).input(Mc).output(jc),retryBackfill:S$1.route({method:`POST`,path:`/integrations/{id}/backfills/{jobId}/retry`,tags:[`Integrations`],summary:`Retry an interrupted import`}).input(Nc).output(jc)};const Im=qa$1({language:na$1().trim().max(80).optional(),platform:na$1().trim().max(120).optional(),timezone:na$1().trim().max(120).optional(),userAgent:na$1().trim().max(800).optional(),viewport:qa$1({width:Ta$1().int().positive().max(1e4),height:Ta$1().int().positive().max(1e4),devicePixelRatio:Ta$1().positive().max(10).optional()}).optional()}),Lm=qa$1({key:na$1().trim().min(1),message:na$1().trim().min(10).max(4e3),pageUrl:ca$1().max(2e3),pageTitle:na$1().trim().max(300).optional(),browser:Im.optional()}),Rm=qa$1({ok:oo$1(true)}),zm=qa$1({file:Fa$1().describe(`Image file to upload (max 10MB)`),folder:io$1([`avatars`,`events`,`teams`,`promoters`,`venues`]).describe(`Folder to upload to`),width:T$1().int().positive().optional().describe(`Target width in pixels`),height:T$1().int().positive().optional().describe(`Target height in pixels`)}),Bm=F$1,Vm=S$1.route({method:`POST`,path:`/internal/upload/image`,summary:`Upload and compress image`,description:`Upload an image file (PNG, JPEG, or SVG), optionally resize it, and compress it for web. SVG files are rasterized before publication. Returns the uploaded image URL and metadata.`,tags:[`Internal`]}).input(zm.strict()).output(Bm);var Hm={shareFeedback:S$1.route({method:`POST`,path:`/internal/feedback`,summary:`Share product feedback`,description:`Send authenticated tenant dashboard feedback to the Sessions team.`,tags:[`Internal`]}).input(Lm.strict()).output(Rm),uploadImage:Vm},Um={list:S$1.route({method:`GET`,path:`/locations`,summary:`Search for locations`,description:`Search for locations by query. Returns predictions with venue badges for locations that are managed venues on the platform. The query parameter is required.`,tags:[`Locations`]}).input(Fc.strict()).output(Lc).errors({BAD_GATEWAY:{status:502}}),get:S$1.route({method:`GET`,path:`/locations/{key}`,summary:`Get location details`,description:`Fetch full location details including coordinates, timezone, and photo. Accepts location ID or provider identifier (e.g., Google Place ID). Uses cache-first strategy.`,tags:[`Locations`]}).input(Pc.strict()).output(Rc).errors({BAD_GATEWAY:{status:502}})};const Wm=S$1.route({method:`POST`,path:`/membership/programs/current`,summary:`Get a team's current membership program`,description:`Returns the one non-retired membership program for a team. Responds NOT_FOUND when the team sells no membership.`,tags:[`Membership`]}).input(Jc).output(Yc),Gm=S$1.route({method:`POST`,path:`/account/membership/payment-session`,summary:`Prepare the payment form for the current buyer`,description:`Ensures the signed-in buyer exists as a customer on the team's connected account and returns a customer session so the payment form can show their saved cards.`,tags:[`Membership`]}).input(Kc).errors({CONFLICT:{status:409,data:el.optional()}}).output(qc),Km=S$1.route({method:`POST`,path:`/account/membership/purchases`,summary:`Start a membership purchase for the current buyer`,description:`Creates the provider subscription for the signed-in buyer and returns what the browser needs to collect the first annual payment. A pending attempt for the same program is reused.`,tags:[`Membership`]}).input(Xc).errors({CONFLICT:{status:409,data:el.optional()}}).output(Zc),qm=S$1.route({method:`POST`,path:`/account/membership/purchases/{id}/detail`,summary:`Get one of the current buyer's membership purchases`,description:`Returns the purchase and, once payment is confirmed, the membership pass with its member number.`,tags:[`Membership`]}).input(Qc).output($c),Jm=S$1.route({method:`POST`,path:`/account/membership/passes/query`,summary:`List the current buyer's membership passes`,tags:[`Membership`]}).input(tl).output(nl),Ym=S$1.route({method:`POST`,path:`/membership/members/query`,summary:`List a team's members in member number order`,description:`Staff view of the passes in the team's current membership program. Requires membership.read.`,tags:[`Membership`]}).input(gl).output(_l),Xm=S$1.route({method:`POST`,path:`/membership/members`,summary:`Grant a free membership`,description:`Staff give a member a complimentary membership on the keyring they hand over. The keyring's serial becomes the member number. Requires membership.write.`,tags:[`Membership`]}).input(sl).errors({CONFLICT:{status:409,data:hl},NOT_FOUND:{status:404,data:hl.optional()}}).output(rl),Zm=S$1.route({method:`POST`,path:`/membership/members/number`,summary:`Check a keyring number`,description:`Whether a keyring's number can be given to someone, before their details are entered. Requires membership.write.`,tags:[`Membership`]}).input(cl).output(ll),Qm=S$1.route({method:`POST`,path:`/membership/door/redeem`,summary:`Use a member's discount at the door`,description:`Door staff scan a member's keyring when they pay cash. The member's one discount for the event is used, shared with online use, and nothing is sold. Requires ticket.scan for the event.`,tags:[`Membership`]}).input(ul).output(fl),$m=S$1.route({method:`POST`,path:`/membership/door/undo`,summary:`Undo a door discount just given`,description:`Gives back a door use the same staff member made in the last few minutes, such as a keyring scanned by mistake. Requires ticket.scan for the event.`,tags:[`Membership`]}).input(pl).errors({CONFLICT:{status:409}}).output(qa$1({undone:oo$1(true)}));var eh={program:Wm,paymentSession:Gm,startPurchase:Km,getPurchase:qm,myPasses:Jm,members:Ym,grant:Xm,checkNumber:Zm,end:S$1.route({method:`POST`,path:`/membership/members/{passId}/end`,summary:`End a free membership`,description:`Ends a complimentary membership now. The member keeps their number. Paid memberships end through a refund or cancellation instead. Requires membership.write.`,tags:[`Membership`]}).input(ml).errors({CONFLICT:{status:409,data:hl}}).output(rl),redeemAtDoor:Qm,undoDoorRedemption:$m};const Z=Ja$1({clientId:na$1().min(1).meta({description:`Immutable OAuth client identifier.`}),teamId:k$1,tenantId:na$1().min(1).meta({description:`Tenant this application belongs to.`}),name:na$1().trim().min(1).max(100).meta({description:`Operator-facing name for this website.`}),redirectUris:Ga$1(ca$1().max(2048)).min(1).max(10).meta({description:`Exact HTTPS callback URLs. HTTP is allowed only for non-production loopback.`}),enabled:ka$1().meta({description:`Disabled applications stop authenticating immediately.`}),revision:Ta$1().int().positive().meta({description:`Optimistic concurrency token. Send the value you read.`}),credentials:Ga$1(Ja$1({id:na$1().meta({description:`Opaque credential identifier. It reveals nothing about the secret.`}),expiresAt:Ta$1().int().nonnegative().optional().meta({description:`Credential expiry as Unix milliseconds. Omitted for credentials that do not expire.`})}))}).meta({description:`A Team-owned website login application. Credential secrets are never included.`}),th=Ja$1({teamId:k$1}).meta({description:`Lists the website applications a Team owns.`}),nh=Z.pick({teamId:true,name:true,redirectUris:true}).extend({requestId:oa$1().meta({description:`Caller-generated idempotency key. Reusing it returns a conflict rather than a second application.`})}).meta({description:`Registration request for a new Team website.`}),rh=Z.pick({teamId:true,clientId:true,revision:true}).meta({description:`Reference to one Team website application at a known revision. A stale revision is rejected.`}),ih=rh.extend({name:Z.shape.name,redirectUris:Z.shape.redirectUris,enabled:ka$1()}).meta({description:`Full replacement of a Team website's settings.`}),ah=rh.extend({credentialId:na$1().min(1).meta({description:`Credential to revoke. Revoking a credential that is already gone succeeds unchanged.`})}).meta({description:`Revocation request for one website credential.`}),oh=Ja$1({application:Z,clientSecret:na$1().meta({description:`New credential. Display once and store only on the website server.`})}).meta({description:`One-time credential issuance response. Must not be logged or cached.`}),Q$1=S$1.errors({CONFLICT:{status:409},SERVICE_UNAVAILABLE:{status:503}}),sh={create:Q$1.route({method:`POST`,path:`/oauth-applications/{clientId}/credentials`,tags:[`OAuth applications`],summary:`Issue a replacement credential`,description:`Issues a second credential so the website can roll over without downtime. Revoke the old one once it is out of use.`}).input(rh).output(oh),delete:Q$1.route({method:`DELETE`,path:`/oauth-applications/{clientId}/credentials/{credentialId}`,tags:[`OAuth applications`],summary:`Revoke a website credential`,description:`Revokes one credential. Revoking a credential that is already gone succeeds without changing the application, and the last credential of an enabled application cannot be revoked.`}).input(ah).output(Z)};var ch={list:Q$1.route({method:`GET`,path:`/oauth-applications`,tags:[`OAuth applications`],summary:`List Team website clients`,description:`Lists the website applications a Team owns. Credential secrets are never returned.`}).input(th).output(Ga$1(Z)),create:Q$1.route({method:`POST`,path:`/oauth-applications`,tags:[`OAuth applications`],summary:`Register a Team website`,description:`Registers a website login client for a Team and returns its first credential once.`}).input(nh).output(oh),update:Q$1.route({method:`PATCH`,path:`/oauth-applications/{clientId}`,tags:[`OAuth applications`],summary:`Update a Team website`,description:`Replaces a website's name, callbacks and enabled state at a known revision.`}).input(ih).output(Z),credentials:sh},lh={create:S$1.route({method:`POST`,path:`/account/orders`,summary:`Create an order for the current buyer`,description:`Creates an order owned by the signed-in buyer. The order is attributed to the verified website client's account Team.`,tags:[`Account`]}).input(Yu.strict()).output(Bd),list:S$1.route({method:`POST`,path:`/account/orders/query`,summary:`List the current buyer's website-Team purchase history`,description:`Returns the signed-in buyer's purchases for the verified website client's account Team, newest first.`,tags:[`Account`]}).input(Fu).output(Iu),get:S$1.route({method:`POST`,path:`/account/orders/{id}/detail`,summary:`Get one of the current buyer's purchases`,description:`Returns full detail for a purchase the signed-in buyer owns within the website client's account Team.`,tags:[`Account`]}).input(Lu).output(Ru),wallet:S$1.route({method:`POST`,path:`/account/orders/{id}/wallet`,summary:`Get a wallet pass for one of the current buyer's tickets`,description:`Returns an Apple Wallet pass or a validated Google Wallet URL for a ticket on a purchase the signed-in buyer owns.`,tags:[`Account`]}).input(zu).output(Bu)},uh={create:S$1.route({method:`POST`,path:`/orders/{id}/notes`,summary:`Add note to order timeline (promoter only)`,description:`Add a user note to the order timeline. Note will be marked as editable by the author.`,tags:[`Orders`]}).input(Vu.strict()).output(zd),update:S$1.route({method:`PATCH`,path:`/orders/{id}/notes/{noteId}`,summary:`Update timeline note (author only)`,description:`Update a timeline note. Only the author can edit their own notes. System-generated entries cannot be edited.`,tags:[`Orders`]}).input(ch$1.strict()).output(zd),remove:S$1.route({method:`DELETE`,path:`/orders/{id}/notes/{noteId}`,summary:`Delete timeline note (author only)`,description:`Delete a timeline note. Only the author can delete their own notes. System-generated entries cannot be deleted.`,tags:[`Orders`]}).input(Xu.strict()).output(Va$1())};const dh=S$1.route({method:`POST`,path:`/orders/{id}/confirmation`,summary:`Read signed order confirmation and QR tickets`,tags:[`Orders`]}).input(Mu).output(Nu),fh=S$1.route({method:`GET`,path:`/orders/{id}`,summary:`Get order by ID`,tags:[`Orders`]}).input(ju.strict()).output(zd),ph=S$1.route({method:`GET`,path:`/orders`,summary:`List orders with cursor-based pagination`,description:"Returns order data with cursor-based pagination, optional full-text search via `query`, advanced filters, and deterministic sorting.",tags:[`Orders`]}).input(Dd.strict()).output(Od),mh=S$1.route({method:`POST`,path:`/orders/quote`,summary:`Create order quote`,tags:[`Orders`]}).input(Ad.strict()).output(jd),hh=S$1.route({method:`POST`,path:`/orders`,summary:`Create a new order`,tags:[`Orders`]}).input(Yu.strict()).output(zd),gh=S$1.route({method:`POST`,path:`/orders/complimentary`,summary:`Create a complimentary order`,tags:[`Orders`]}).input(Wu.strict()).output(zd),_h=S$1.route({method:`PUT`,path:`/orders/{id}`,summary:`Update an order`,tags:[`Orders`]}).input(sh$1.strict()).output(zd),vh=S$1.route({method:`POST`,path:`/orders/{id}/reserve`,summary:`Re-reserve inventory for an abandoned order`,description:`Attempts to re-reserve inventory for an abandoned order. If inventory is available, the order status is set back to PENDING with a new reservation timer. Returns the updated order with a new reservedAt timestamp if successful.`,tags:[`Orders`]}).input(Id.strict()).errors({BAD_REQUEST:{status:400,data:Rd.optional()}}).output(zd),yh=S$1.route({method:`POST`,path:`/orders/{id}/resend`,summary:`Resend tickets to customer`,description:`Resend order tickets to the customer's email. Optionally provide a different email address.`,tags:[`Orders`]}).input(Fd.strict()).output(zd),bh=S$1.route({method:`POST`,path:`/orders/{id}/refund`,summary:`Refund order items`,description:`Process a refund for order items. Supports full or partial refunds with optional ticket cancellation.`,tags:[`Orders`]}).input(Nd.strict()).output(Pd);var xh={account:lh,cancel:S$1.route({method:`POST`,path:`/orders/{id}/cancel`,summary:`Cancel tickets or close an order without a refund`,tags:[`Orders`]}).input(Hu.strict()).output(xl),cancellations:S$1.route({method:`GET`,path:`/orders/{id}/cancellations`,summary:`Get staff cancellation history`,tags:[`Orders`]}).input(ju.pick({id:true}).strict()).output(Sl),confirmation:dh,get:fh,list:ph,create:hh,createComplimentary:gh,update:_h,reserve:vh,quote:mh,resend:yh,refund:bh,note:uh};const Sh=qa$1({payout:$$2});var Ch={create:S$1.route({method:`POST`,path:`/payouts/{id}/notes`,summary:"Add note to payout timeline (`payout.write` required)",description:`Add a user note to the payout timeline. Note will be marked as editable by the author.`,tags:[`Payouts`]}).input(Ah$1.strict()).output(Sh),update:S$1.route({method:`PATCH`,path:`/payouts/{id}/notes/{noteId}`,summary:`Update timeline note (author only)`,description:`Update a timeline note. Only the author can edit their own notes. System-generated entries cannot be edited.`,tags:[`Payouts`]}).input(Tg.strict()).output(Sh),remove:S$1.route({method:`DELETE`,path:`/payouts/{id}/notes/{noteId}`,summary:`Delete timeline note (author only)`,description:`Delete a timeline note. Only the author can delete their own notes. System-generated entries cannot be deleted.`,tags:[`Payouts`]}).input(og$1.strict()).output(Sh)},wh={get:S$1.route({method:`GET`,path:`/payouts/{id}`,summary:`Get payout by ID with breakdown`,tags:[`Payouts`]}).input(sg$1.strict()).output(xg),list:S$1.route({method:`GET`,path:`/payouts`,summary:`List payouts with cursor-based pagination`,description:"Returns payout data with cursor-based pagination and optional full-text search via the `query` parameter.",tags:[`Payouts`]}).input(ug$1.strict()).output(dg$1),preview:S$1.route({method:`GET`,path:`/payouts/{id}/preview`,summary:`Get payout preview for approvals`,description:`Returns lightweight payout split rows and beneficiary resolution status used by approvals dropdowns.`,tags:[`Payouts`]}).input(bg.strict()).output(yg),adjustments:S$1.route({method:`GET`,path:`/payouts/adjustments`,summary:`List Airwallex payout adjustments`,description:`Returns settlement-proven Airwallex refund and dispute adjustments grouped for tenant payout review.`,tags:[`Payouts`]}).input(Gh$1.strict()).output(Kh$1),adjustment:S$1.route({method:`GET`,path:`/payouts/adjustments/{id}`,summary:`Get payout adjustment by ID`,description:`Returns a payout adjustment detail payload with related adjustment rows, applications, and upcoming payout projections.`,tags:[`Payouts`]}).input(zh$1.strict()).output(qh$1),stats:S$1.route({method:`POST`,path:`/payouts/stats`,summary:`Get payout statistics`,tags:[`Payouts`]}).input(Cg.strict()).output(Sg),breakdown:S$1.route({method:`GET`,path:`/payouts/{payoutId}/breakdown`,summary:`Get payout breakdown`,tags:[`Payouts`]}).input(uh$1.strict()).output(rg$1),update:S$1.route({method:`PATCH`,path:`/payouts/{id}`,summary:`Update a payout`,description:`Update payout status or approval. Use approval field to approve or reject payouts.`,tags:[`Payouts`]}).input(wg.strict()).output($$2),note:Ch};const $$1=qa$1({key:na$1(),memberId:na$1()}),Th=$$1.merge(jg).strict();var Eh={get:S$1.route({method:`GET`,path:`/teams/{key}/members/{memberId}/permission-scopes/{id}`,summary:`Get permission scope by ID`,description:`Retrieve a permission scope using its unique ID`,tags:[`Permission Scopes`]}).input(Th).output(Og),list:S$1.route({method:`GET`,path:`/teams/{key}/members/{memberId}/permission-scopes`,summary:`List permission scopes with cursor-based pagination`,description:`Returns permission scopes for a specific team member with cursor pagination. Can filter by kind (PROMOTER or VENUE).`,tags:[`Permission Scopes`]}).input($$1.merge(Mg).strict()).output(Ng),create:S$1.route({method:`POST`,path:`/teams/{key}/members/{memberId}/permission-scopes`,summary:`Create a new permission scope`,description:`Create a permission scope for a team member. Can be PROMOTER-specific (applies to all events by that promoter) or VENUE-specific (applies to all events at that venue). Replaces lower-tier permissions.`,tags:[`Permission Scopes`]}).input($$1.and(Ag)).output(Og),update:S$1.route({method:`PATCH`,path:`/teams/{key}/members/{memberId}/permission-scopes/{id}`,summary:`Update a permission scope`,description:`Update an existing permission scope. Only the permissions array can be modified.`,tags:[`Permission Scopes`]}).input($$1.extend({id:na$1()}).merge(Pg).strict()).output(Og),remove:S$1.route({method:`DELETE`,path:`/teams/{key}/members/{memberId}/permission-scopes/{id}`,summary:`Delete a permission scope`,description:`Remove a permission scope. Team member will revert to lower-tier permissions for the affected resource.`,tags:[`Permission Scopes`]}).input(Th).output(Og)},Dh={summary:S$1.route({method:`GET`,path:`/promoters/{promoterId}/performance/summary`,summary:`Get promoter performance summary`,description:`Overview KPIs for a single promoter based on tracking data (excludes entity-based data like payouts)`,tags:[`Promoter Performance`]}).input(ca).output(la),revenue:S$1.route({method:`GET`,path:`/promoters/{promoterId}/performance/revenue`,summary:`Get promoter revenue over time`,description:`Time-series data for revenue and tickets sold for a single promoter`,tags:[`Promoter Performance`]}).input(ua).output(da),events:S$1.route({method:`GET`,path:`/promoters/{promoterId}/performance/events`,summary:`Get promoter top events by tickets`,description:`Top events by ticket count for a single promoter`,tags:[`Promoter Performance`]}).input(fa).output(pa)};const Oh=qa$1({eventCount:Ta$1().optional()}),kh=S$1.route({method:`GET`,path:`/promoters/{key}`,summary:`Get promoter by ID or slug`,description:`Retrieve a promoter using either its unique ID or URL-friendly slug`,tags:[`Promoters`]}).input(u_.strict()).output(x_),Ah=S$1.route({method:`POST`,path:`/promoters`,summary:`Create a new promoter`,description:`Create a new promoter brand within a team`,tags:[`Promoters`]}).input(f_.strict()).output(x_),jh=S$1.route({method:`PUT`,path:`/promoters/{key}`,summary:`Update a promoter`,description:`Update a promoter using either its unique ID or URL-friendly slug`,tags:[`Promoters`]}).input(S_.strict()).output(x_);var Mh={get:kh,list:S$1.route({method:`GET`,path:`/promoters`,summary:`List promoters with cursor-based pagination`,description:`Returns promoters with cursor pagination. Filter by teamId to see promoters for a specific team.`,tags:[`Promoters`]}).input(y_.strict()).output(b_),create:Ah,update:jh,remove:S$1.route({method:`DELETE`,path:`/promoters/{key}`,summary:`Delete a promoter`,description:`Delete a promoter using either its unique ID or URL-friendly slug`,tags:[`Promoters`]}).input(p_.strict()).errors({CONFLICT:{status:409,data:Oh.optional()}}).output(x_),performance:Dh},Nh={create:S$1.route({method:`POST`,path:`/reports`,summary:`Create report generation job`,description:`Creates an asynchronous report job. Download the report once the job status is COMPLETED.`,tags:[`Reports`]}).input(O_).output(A_),get:S$1.route({method:`GET`,path:`/reports/{id}`,summary:`Get report generation job`,tags:[`Reports`]}).input(k_.strict()).output(A_)};const Ph=S$1.route({method:`GET`,path:`/events/{eventId}/sections/{id}`,summary:`Get section by ID`,tags:[`Sections`]}).input(yd.strict()).output(Sd),Fh=S$1.route({method:`POST`,path:`/events/{eventId}/sections`,summary:`Create a new section`,tags:[`Sections`]}).input(_d.strict()).output(Sd),Ih=S$1.route({method:`PUT`,path:`/events/{eventId}/sections/{id}`,summary:`Update a section`,tags:[`Sections`]}).input(Cd.strict()).output(Sd);var Lh={get:Ph,list:S$1.route({method:`GET`,path:`/events/{eventId}/sections`,summary:`List sections`,description:`Returns sections with cursor-based pagination. Automatically uses search-backed pagination when query parameter is provided for full-text search capabilities.`,tags:[`Sections`]}).input(bd.strict()).output(xd),create:Fh,update:Ih,remove:S$1.route({method:`DELETE`,path:`/events/{eventId}/sections/{id}`,summary:`Delete a section`,tags:[`Sections`]}).input(vd.strict()).output(Sd)};const Rh=S$1.route({method:`GET`,path:`/teams/{teamId}/tax-profiles`,summary:`List team tax profiles`,description:`Retrieve reusable organiser tax profiles and the default.`,tags:[`Team Tax`]}).input(Hs).output(qs),zh=S$1.route({method:`POST`,path:`/teams/{teamId}/tax-profiles`,summary:`Create a team tax profile`,description:`Create a reusable organiser tax profile.`,tags:[`Team Tax`]}).input(Ws).output(qs),Bh=S$1.route({method:`PUT`,path:`/teams/{teamId}/tax-profiles/{profileId}`,summary:`Update a team tax profile`,description:`Update a reusable organiser tax profile.`,tags:[`Team Tax`]}).input(Gs).output(qs);var Vh={create:zh,list:Rh,remove:S$1.route({method:`DELETE`,path:`/teams/{teamId}/tax-profiles/{profileId}`,summary:`Delete a team tax profile`,description:`Delete a tax profile that is not the required default and is not used by an event.`,tags:[`Team Tax`]}).input(Ks).output(qs),setDefault:S$1.route({method:`PUT`,path:`/teams/{teamId}/tax-profiles/{profileId}/default`,summary:`Set the default team tax profile`,description:`Use this profile by default for future events.`,tags:[`Team Tax`]}).input(Ks).output(qs),update:Bh},Hh={summary:S$1.route({method:`GET`,path:`/teams/{teamId}/performance/summary`,summary:`Get team performance summary`,description:`Overview KPIs aggregated across all promoters in the team, based on tracking data (excludes entity-based data like payouts)`,tags:[`Team Performance`]}).input(ma).output(ha),revenue:S$1.route({method:`GET`,path:`/teams/{teamId}/performance/revenue`,summary:`Get team revenue over time`,description:`Time-series data for revenue and tickets sold aggregated across all promoters in the team`,tags:[`Team Performance`]}).input(ga).output(_a),funnel:S$1.route({method:`GET`,path:`/teams/{teamId}/performance/funnel`,summary:`Get team conversion funnel`,description:`Conversion funnel showing drop-off rates from product view to purchase, aggregated across all events in the team`,tags:[`Team Performance`]}).input(Sa).output(Ca),traffic:S$1.route({method:`GET`,path:`/teams/{teamId}/performance/traffic`,summary:`Get team traffic sources`,description:`Traffic source breakdown by campaign, medium, or source, aggregated across all events in the team`,tags:[`Team Performance`]}).input(Oa).output(ka),insights:S$1.route({method:`GET`,path:`/teams/{teamId}/performance/insights`,summary:`Get team performance insights`,description:`Order-backed revenue, tickets, refund, and dispute totals for an exact time window`,tags:[`Team Performance`]}).input(Aa).output(Na),payouts:S$1.route({method:`GET`,path:`/teams/{teamId}/performance/payouts`,summary:`Get team payout performance`,description:`Upcoming and recently paid payout totals aggregated across the team`,tags:[`Team Performance`]}).input(Fa).output(za),finance:S$1.route({method:`GET`,path:`/teams/{teamId}/performance/finance`,summary:`Get team finance overview`,description:`Finance overview combining gross order value with payout and adjustment data`,tags:[`Team Performance`]}).input(Ba).output(Ka),events:S$1.route({method:`GET`,path:`/teams/{teamId}/performance/events`,summary:`Get team top events by tickets`,description:`Top events by ticket count, aggregated across all events in the team`,tags:[`Team Performance`]}).input(ba).output(xa),admissions:S$1.route({method:`GET`,path:`/teams/{teamId}/performance/admissions`,summary:`Get team top admissions by tickets`,description:`Top admission types by ticket count, aggregated across all events in the team`,tags:[`Team Performance`]}).input(Ea).output(Da),orders:S$1.route({method:`GET`,path:`/teams/{teamId}/performance/orders`,summary:`Get team orders distribution`,description:`Order counts grouped by time breakdown (hour, day of week, day, week, month)`,tags:[`Team Performance`]}).input(wa).output(Ta),tracking:S$1.route({method:`GET`,path:`/teams/{teamId}/performance/tracking`,summary:`Get team tracking time series`,description:`Time-series tracking data (page views, add to cart, checkout, orders) aggregated at team or tenant level`,tags:[`Team Performance`]}).input(qa).output(Ja)};const Uh=G_.meta({description:`Business records that prevent a team from being deleted`});var Wh={get:S$1.route({method:`GET`,path:`/teams/{key}`,summary:`Get team by ID or slug`,description:`Retrieve a team with membership details. User must be a member of the team.`,tags:[`Teams`]}).input(z_.strict()).output(H_),list:S$1.route({method:`GET`,path:`/teams`,summary:`List teams with cursor-based pagination`,description:`Returns teams the current user has access to with cursor pagination`,tags:[`Teams`]}).input(av.strict()).output(ov),create:S$1.route({method:`POST`,path:`/teams`,summary:`Create a new team`,description:`Create a new team organization`,tags:[`Teams`]}).input(B_.strict()).output(H_),slugAvailability:S$1.route({method:`GET`,path:`/teams/slugs/{slug}/availability`,summary:`Check team slug availability`,description:`Check whether a team URL slug is available within the current tenant.`,tags:[`Teams`]}).input(mv.strict()).output(hv),update:S$1.route({method:`PATCH`,path:`/teams/{key}`,summary:`Update a team`,description:`Update an existing team by ID or slug`,tags:[`Teams`]}).input(gv.strict()).output(H_),remove:S$1.route({method:`DELETE`,path:`/teams/{key}`,summary:`Start team deletion`,description:`Soft-delete a team immediately and queue its asynchronous cleanup by ID or slug`,tags:[`Teams`]}).input(z_.strict()).errors({CONFLICT:{status:409,data:Uh.optional()},FORBIDDEN:{status:403}}).output(J_),deletion:{get:S$1.route({method:`GET`,path:`/team-deletions/{id}`,summary:`Get team deletion status`,description:`Retrieve progress for an asynchronous team deletion request`,tags:[`Teams`]}).input(q_.strict()).errors({FORBIDDEN:{status:403},NOT_FOUND:{status:404}}).output(K_)},performance:Hh},Gh={list:S$1.route({method:`GET`,path:`/teams/{key}/invites`,summary:`List pending team invitations with cursor-based pagination`,description:`Returns pending team invitations for a specific team. Team key can be ID or slug. These are email-based invitations that have not yet been accepted.`,tags:[`Team Invites`]}).input(ev.strict()).output(tv),get:S$1.route({method:`GET`,path:`/teams/{key}/invites/{inviteId}`,summary:`Get pending invitation by ID`,description:`Retrieve a pending team invitation by its ID. Team key can be ID or slug.`,tags:[`Team Invites`]}).input($_.strict()).output(nv),create:S$1.route({method:`POST`,path:`/teams/{key}/invites`,summary:`Create a team invitation`,description:`Invite a user to join a team by email. Team key can be ID or slug. Creates a pending invitation with a secure token that expires in 7 days. The invited user will receive an email with an acceptance link.`,tags:[`Team Invites`]}).input(Q_.strict()).output(nv),accept:S$1.route({method:`PATCH`,path:`/teams/{key}/invites/{inviteId}`,summary:`Accept a team invitation`,description:`Accept a pending team invitation using the secure token. Team key can be ID or slug. This deletes the invitation and creates an active TeamMember record. Returns the newly created team member.`,tags:[`Team Invites`]}).input(j_.strict()).output(vv),resend:S$1.route({method:`POST`,path:`/teams/{key}/invites/{inviteId}/resend`,summary:`Resend invitation email`,description:`Resend the invitation email with a new token and extended expiry. Team key can be ID or slug. Useful when the original invitation has expired or was not received.`,tags:[`Team Invites`]}).input($_.strict()).output(nv),cancel:S$1.route({method:`DELETE`,path:`/teams/{key}/invites/{inviteId}`,summary:`Cancel a pending invitation`,description:`Cancel a pending team invitation before it is accepted. Team key can be ID or slug. Deletes the invitation record.`,tags:[`Team Invites`]}).input(Z_.strict()).output(nv)},Kh={connect:S$1.route({method:`POST`,path:`/teams/{key}/payment/connect`,summary:`Initiate payment processor connection`,description:`Start the OAuth flow to connect a team's payment processor account. Returns an authorization URL to redirect the user to the payment provider's OAuth page. The OAuth callback is handled directly by the payment gateway.`,tags:[`Team Payments`]}).input(cv.strict()).output(lv),disconnect:S$1.route({method:`POST`,path:`/teams/{key}/payment/disconnect`,summary:`Disconnect payment processor`,description:`Remove the payment processor connection from a team. Future ticket sales will use the platform account. Only the team owner can disconnect the payment processor.`,tags:[`Team Payments`]}).input(uv.strict()).output(I_),gateway:{update:S$1.route({method:`PATCH`,path:`/teams/{key}/payment/gateway`,summary:`Update Stripe Connect event routing`,description:`Configure whether Stripe Connect applies to every team event or only selected events.`,tags:[`Team Payments`]}).input(P_.strict()).output(I_)}};const qh=S$1.route({method:`GET`,path:`/tenant/config`,summary:`Get tenant configuration`,tags:[`Tenant`],description:`Returns tenant configuration including features and regions. Requires x-tenant-id header.`}).output(Iv),Jh=S$1.route({method:`GET`,path:`/tenant/regions`,summary:`Get tenant regions`,tags:[`Tenant`],description:`Returns available regions for the tenant. Requires x-tenant-id header.`}).output(Lv);var Yh={approvals:S$1.route({method:`GET`,path:`/tenant/approvals`,summary:`Get tenant approval badges`,tags:[`Tenant`],description:`Returns lightweight booleans for pending approvals. Requires tenant admin access.`}).input(Rv).output(zv),config:qh,regions:Jh};const Xh=S$1.route({method:`GET`,path:`/tickets/{id}`,summary:`Get ticket by ID`,tags:[`Tickets`]}).input(ey.strict()).output(ry),Zh=S$1.route({method:`POST`,path:`/tickets`,summary:`Create a new ticket`,tags:[`Tickets`]}).input($v.strict()).output(ry),Qh=S$1.route({method:`PUT`,path:`/tickets/{id}`,summary:`Update a ticket`,tags:[`Tickets`]}).input(yy.strict()).output(ry),$h=S$1.route({method:`GET`,path:`/tickets`,summary:`List tickets with cursor-based pagination`,description:"Returns ticket data with cursor-based pagination, optional full-text search via `query`, and a fixed attendee-name ascending order for non-search list paths.",tags:[`Tickets`]}).input(ty.strict()).output(ny),eg=S$1.route({method:`GET`,path:`/tickets/attendees`,summary:`List event attendees with alpha-navigation support`,description:`Returns ticket-backed attendee roster rows for an event. Supports bounded browsing, alpha jump bookmarks, and attendee search.`,tags:[`Tickets`]}).input(Zv.strict()).output(Qv),tg=S$1.route({method:`GET`,path:`/tickets/attendees/index`,summary:`Get attendee alpha-navigation buckets`,description:`Returns available alpha buckets and server-issued bookmarks for the ticket attendee roster.`,tags:[`Tickets`]}).input(Yv.strict()).output(Jv),ng=S$1.route({method:`GET`,path:`/tickets/attendees/changes`,summary:`List attendee roster rows changed since an instant`,description:"Returns roster rows updated since `since`, so clients can keep a loaded roster window current without reloading it.",tags:[`Tickets`]}).input(Kv.strict()).output(qv),rg=S$1.route({method:`PUT`,path:`/tickets/{key}/check-in`,summary:`Check in tickets by key`,tags:[`Tickets`]}).input(iy.strict()).errors({BAD_REQUEST:{status:400,data:gy.optional()}}).output(_y),ig=S$1.route({method:`PUT`,path:`/tickets/{key}/check-out`,summary:`Check out tickets by key`,tags:[`Tickets`]}).input(iy.strict()).errors({BAD_REQUEST:{status:400,data:gy.optional()}}).output(_y);var ag={get:Xh,list:$h,attendees:{list:eg,index:tg,changes:ng},create:Zh,update:Qh,checkInByKey:rg,checkOutByKey:ig};const og=S$1.route({method:`GET`,path:`/users/me`,summary:`Get the current user and their team memberships`,tags:[`Users`]}).output(Dy),sg=qa$1({firstName:na$1().min(1).optional(),lastName:na$1().min(1).optional(),imageUrl:ca$1().nullable().optional(),metadata:no$1(na$1(),Fn).optional(),refreshToken:na$1().optional().meta({description:`Current refresh token. When provided, new tokens with updated user data will be returned.`})}).meta({ref:`UpdateUserInput`,description:`Input for updating the current user's profile`}),cg=S$1.route({method:`PATCH`,path:`/users/me`,summary:`Update the current user's profile`,tags:[`Users`]}).input(sg).output(Ty);var lg={me:og,remove:S$1.route({method:`DELETE`,path:`/users/me`,summary:`Delete the current user's account`,tags:[`Users`]}).output(Ey),update:cg};const ug={oauthApplication:ch,integration:Fm,analytics:kp,beneficiary:Pp,section:Lh,event:Nm,eventCollaborator:Pm,admission:Op,order:xh,ticket:ag,location:Um,coupon:Wp,payout:wh,teams:l_,permissionScope:Eh,promoter:Mh,report:Nh,team:Wh,teamInvite:Gh,teamPayment:Kh,teamMember:Nv,teamTax:Vh,tenant:Yh,venue:{get:S$1.route({method:`GET`,path:`/venues/{key}`,summary:`Get venue by ID or slug`,description:`Retrieve a venue using its unique ID or slug`,tags:[`Venues`]}).input(jy.strict()).output(Iy),list:S$1.route({method:`GET`,path:`/venues`,summary:`List venues with cursor-based pagination`,description:`Returns venues with cursor pagination. Supports filtering by team, location-based search, and text query`,tags:[`Venues`]}).input(Py.strict()).output(Fy),create:S$1.route({method:`POST`,path:`/venues`,summary:`Create a new venue`,description:`Create a new venue. Venue will be owned by the specified team but can be used by all teams for their events`,tags:[`Venues`]}).input(ky.strict()).output(Iy),update:S$1.route({method:`PATCH`,path:`/venues/{key}`,summary:`Update a venue`,description:`Update an existing venue. Cannot change venue ownership (teamId)`,tags:[`Venues`]}).input(Ly.strict()).output(Iy),remove:S$1.route({method:`DELETE`,path:`/venues/{key}`,summary:`Delete a venue`,description:`Soft delete a venue`,tags:[`Venues`]}).input(Ay.strict()).output(Iy),linkLocation:S$1.route({method:`POST`,path:`/venues/{key}/locations`,summary:`Link location to venue`,description:"Link a location to this venue. Allows the venue to be discovered when users search for this location. A venue can have multiple linked locations (e.g., different addresses, branded names). Requires venue access on the owning team (for example, `venue.write`).",tags:[`Venues`]}).input(jy.extend({locationKey:na$1().meta({description:`Location ID (loc_xxx) or Google Place ID to link to this venue`,examples:[`loc_01jps5cgsm7qxvh6watsons0eq`,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}).strict()).output(Iy),unlinkLocation:S$1.route({method:`DELETE`,path:`/venues/{key}/locations/{locationKey}`,summary:`Unlink location from venue`,description:"Remove a location link from this venue. The location will no longer show this venue's branding. Requires venue access on the owning team (for example, `venue.write`).",tags:[`Venues`]}).input(jy.extend({locationKey:na$1().meta({description:`Location ID (loc_xxx) or Google Place ID to unlink from this venue`,examples:[`loc_01jps5cgsm7qxvh6watsons0eq`,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}).strict()).output(Iy)},user:lg},dg={...ug,internal:Hm,membership:eh};function fg(e){return S$1.errors(nn$1).router(e)}const pg=fg(ug);fg(dg);const mg=pg,hg={sandbox:`https://api.sandbox.session.services`,prod:`https://api.session.services`};function gg(e){return e in hg?hg[e]:e}function _g(e){return gt$1(new yp(mg,{url:gg(e.environment),headers:{"x-tenant-id":e.tenantId??`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`,...e.headers??{}}}))}
|
|
100
|
-
|
|
101
|
-
function i(e){let t=e.toLowerCase();return t?a(t)?`TABLET`:o(t)?`MOBILE`:`DESKTOP`:`DESKTOP`}function a(e){return /ipad|tablet|playbook|silk|kindle|sm-t|tab/.test(e)?true:/android/.test(e)&&!/mobile/.test(e)}function o(e){return /iphone|ipod|android|windows phone|blackberry|bb10|mobile/.test(e)}function s(e){let t=e.toLowerCase();return t?t.includes(`instagram`)?`Instagram App`:/fban|fbav|fb_iab|fbios|facebook/.test(t)?`Facebook App`:/tiktok|musical_ly|bytedance|bytelo/.test(t)?`TikTok App`:t.includes(`snapchat`)?`Snapchat App`:t.includes(`pinterest`)?`Pinterest App`:t.includes(`linkedin`)?`LinkedIn App`:/twitter|twitterandroid/.test(t)?`X App`:t.includes(`micromessenger`)?`WeChat App`:/\bline\//.test(t)?`LINE App`:t.includes(`gsa/`)?`Google App`:/edg\/|edge|edgios|edga/.test(t)?`Edge`:t.includes(`samsungbrowser`)?`Samsung Internet`:/opr\/|opera|opios/.test(t)?`Opera`:/firefox|fxios/.test(t)?`Firefox`:t.includes(`crios`)?`Chrome`:/iphone|ipod|ipad/.test(t)&&t.includes(`safari`)?`Mobile Safari`:t.includes(`android`)&&t.includes(`wv`)?`Android WebView`:/chrome|chromium/.test(t)?`Chrome`:t.includes(`safari`)?`Safari`:`Other`:`Unknown`}const c=`sessions_attribution`;function l(e,t){return e.get(t)||void 0}function u(e){return {source:l(e,`utm_source`),medium:l(e,`utm_medium`),name:l(e,`utm_campaign`),term:l(e,`utm_term`),content:l(e,`utm_content`)}}function d(e){return !!(e&&Object.values(e).some(Boolean))}function f(){try{let e=window.localStorage?.getItem(c);if(!e)return;let t=JSON.parse(e);if(!t||typeof t!=`object`){window.localStorage?.removeItem(c);return}let n=t;if(!n.expiresAt||n.expiresAt<=Date.now()){window.localStorage?.removeItem(c);return}return n}catch{return}}function p(){let e=f();if(!e)return;let t={source:m(e.utm_source),medium:m(e.utm_medium),name:m(e.utm_campaign),term:m(e.utm_term),content:m(e.utm_content)};return d(t)?t:void 0}function m(e){return typeof e==`string`&&e.length>0?e:void 0}function h(e){if(d(e))try{window.localStorage?.setItem(c,JSON.stringify({...f(),expiresAt:Date.now()+2592e6,utm_campaign:e?.name,utm_content:e?.content,utm_medium:e?.medium,utm_source:e?.source,utm_term:e?.term}));}catch{return}}function g(){if(typeof window>`u`)return;let e=u(new URLSearchParams(window.location.search));return d(e)?(h(e),e):p()}function ee(e){return {anonymous_id:e.anonymousId,browser:s(e.context.userAgent),browser_session_id:e.sessionId,device_type:i(e.context.userAgent),page_path:e.context.page.path,page_title:e.context.page.title,page_url:e.context.page.url,referrer:e.context.page.referrer,user_agent:e.context.userAgent||void 0,utm_campaign:e.context.campaign?.name,utm_content:e.context.campaign?.content,utm_medium:e.context.campaign?.medium,utm_source:e.context.campaign?.source,utm_term:e.context.campaign?.term}}function _(){return typeof window>`u`?{page:{url:``,path:``,title:``,referrer:void 0},userAgent:``,campaign:void 0}:{page:{url:window.location.href,path:window.location.pathname,title:document.title,referrer:document.referrer||void 0},userAgent:navigator.userAgent,campaign:g()}}function v(e,t,n){n==null||n===``||(e[t]=n);}function y(...e){return e.find(e=>e!=null&&e!==``)}function te(e,t){v(e,`content_name`,t.name),v(e,`value`,y(t.value,t.price)),e.content_type=`product`;}function b(e){return (t,n)=>{e(t,n.product_id),te(t,n);}}function ne(e){return (t,n)=>{e(t,n),v(t,`content_category`,n.category);}}function re(e,t){v(e,`value`,y(t.value,t.total));}function ie(e,t){v(e,`value`,y(t.value,t.total,t.revenue));}function ae(e,t){if(Array.isArray(e))return e.map(t)}const oe={"Product Viewed":`ViewContent`,"Product Added":`AddToCart`,"Checkout Started":`InitiateCheckout`,"Payment Info Entered":`AddPaymentInfo`,"Order Completed":`Purchase`},se=new Set([`AddPaymentInfo`,`AddToCart`,`AddToWishlist`,`CompleteRegistration`,`Contact`,`CustomizeProduct`,`Donate`,`FindLocation`,`InitiateCheckout`,`Lead`,`Purchase`,`Schedule`,`Search`,`StartTrial`,`SubmitApplication`,`Subscribe`,`ViewContent`]),x=new Set,S=new Map;function ce(){return Array.from(document.scripts??[]).some(e=>e.src.includes(`connect.facebook.net/en_US/fbevents.js`))}function le(e){if(ce())return true;let t=document.createElement(`script`);t.async=true,t.src=`https://connect.facebook.net/en_US/fbevents.js`,t.addEventListener?.(`load`,()=>{w(e,`[Facebook Pixel] fbevents.js loaded`);}),t.addEventListener?.(`error`,()=>{w(e,`[Facebook Pixel] fbevents.js failed to load`);});let n=document.getElementsByTagName(`script`)[0],r=n?.parentNode??document.head??document.body;return r?(r.insertBefore(t,n??null),w(e,`[Facebook Pixel] inserted fbevents.js`),true):false}function C(e,t){!t||!Array.isArray(t)||(e.content_ids=t.flatMap(e=>e.product_id?[e.product_id]:[]),e.num_items=t.length,e.contents=ae(t,e=>({id:e.product_id,quantity:e.quantity||1,item_price:e.price})));}function ue(e){if(typeof window>`u`)return false;let t=window;if(t.fbq)return le(e);let n=((...e)=>{n.callMethod?n.callMethod(...e):n.queue.push(e);});return n.push=n,n.loaded=true,n.version=`2.0`,n.queue=[],t.fbq=n,t._fbq||=n,le(e)}function de(e,t){let n=window;typeof window>`u`||!n.fbq||(t?n.fbq(`init`,e,{external_id:t}):n.fbq(`init`,e));}function fe(e,t,n){let r=window;typeof window>`u`||!r.fbq||r.fbq(e,t,n);}function w(e,...t){e&&console.log(...t);}function pe(e,t,n){let r=S.get(e);return !t||t===r?false:(de(e,t),S.set(e,t),x.add(e),w(n,`[Facebook Pixel] Re-initialized pixel ${e} with userId ${t}`),true)}function me(e,t,n){de(e,t),x.add(e),t&&S.set(e,t),w(n,`[Facebook Pixel] Initialized pixel ${e}`);}function T(e,t,n){return ue(n)?(pe(e,t,n)||x.has(e)||me(e,t,n),true):false}function he(e,t){t&&(e.content_ids=[t]);}const ge=b(he),_e=ne(ge);function ve(e,t){ge(e,t),t.product_id&&(e.contents=[{id:t.product_id,quantity:t.quantity||1,item_price:t.price}]);}function ye(e,t){C(e,t.products),e.content_type=`product`;}function E(e,t){C(e,t.products),re(e,t),e.content_type=`product`,v(e,`order_id`,t.order_id);}function be(e,t){C(e,t.products),ie(e,t),e.content_type=`product`,v(e,`order_id`,t.order_id);}function xe(e,t){v(e,`value`,t.value),t.product_id&&(e.content_ids=[t.product_id]);}const D={ViewContent:_e,AddToCart:ve,InitiateCheckout:E,AddPaymentInfo:E,Purchase:be,"Product List Viewed":ye,"Product Removed":ve,"Cart Viewed":E,"Coupon Applied":E,"Coupon Removed":E};function Se(e,t){let n={};return v(n,`currency`,t.currency),v(n,`event_id`,t.event_id),(D[e.name]??D[e.sourceName]??xe)(n,t),n}function Ce(e){return e.name||`Unknown`}function O(e,t=2){let n=e.trim();if(!n.includes(`%`)||t===0)return n;try{return O(decodeURIComponent(n),t-1)}catch{return n}}function we(e){let t=e.match(/[A-Za-z0-9]+/g);return t?t.map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``):`Unknown`}function Te(e){let t=O(Ce(e)),n=oe[t]||t;return se.has(n)?{method:`track`,name:n,sourceName:t}:{method:`trackCustom`,name:we(n),sourceName:t}}function Ee(e=false){let t=(t,n)=>{n.fbId&&T(n.fbId,t.userId,e);},n=(t,n)=>{if(!n.fbId||!T(n.fbId,t.userId,e))return;let r=Te(t),i=Se(r,t.properties);fe(r.method,r.name,i),w(e,`[Facebook Pixel] Sent ${r.name}:`,i);},r=(t,n)=>{n.fbId&&T(n.fbId,t.userId,e)&&(fe(`track`,`PageView`,{}),w(e,`[Facebook Pixel] Sent PageView`));};return {name:`Facebook Pixel`,preload:t,track:n,page:r,screen:r,identify:(t,n)=>{!n.fbId||!t.userId||(T(n.fbId,t.userId,e),w(e,`[Facebook Pixel] Identity synced: ${t.userId}`));}}}const De={"Product Viewed":`view_item`,"Product Added":`add_to_cart`,"Product Removed":`remove_from_cart`,"Checkout Started":`begin_checkout`,"Payment Info Entered":`add_payment_info`,"Order Completed":`purchase`,"Product List Viewed":`view_item_list`,"Cart Viewed":`view_cart`,"Coupon Entered":`coupon_entered`,"Coupon Applied":`coupon_applied`,"Coupon Denied":`coupon_denied`,"Coupon Removed":`coupon_removed`},k=new Set;function Oe(e){return !!(e&&/^G-[A-Z0-9]+$/.test(e))}function A(e){return `google-analytics-${e}`}function ke(e){if(document.getElementById(A(e)))return;let t=document.createElement(`script`);t.id=A(e),t.async=true,t.src=`https://www.googletagmanager.com/gtag/js?id=${e}`;let n=document.getElementsByTagName(`script`)[0];n?.parentNode?.insertBefore(t,n);}function Ae(e,t){if(typeof window>`u`)return false;let n=window;return n.dataLayer=n.dataLayer||[],n.gtag||(n.gtag=function(){n.dataLayer?.push(arguments);},n.gtag(`js`,new Date)),ke(e),k.has(e)?true:(n.gtag(`config`,e,{send_page_view:false}),k.add(e),N(t,`[Google Analytics] Initialized ${e}`),true)}function j(e,t,n){if(typeof window>`u`)return;let r=window;r.gtag&&r.gtag(`event`,t,{...n,send_to:e});}function M(e,t,n){if(typeof window>`u`)return;let r=window;!r.gtag||!e||(r.gtag(`config`,e,{user_id:t,send_page_view:false}),N(n,`[Google Analytics] User ID updated`));}function N(e,...t){e&&console.log(...t);}function P(e){return typeof e==`string`&&e.length>0?e:void 0}function F(e,t,n){n==null||n===``||(e[t]=n);}function je(e){return e.find(e=>typeof e==`number`)}function Me(e){return typeof e.quantity==`number`?e.quantity:1}function Ne(e){return typeof e.price==`number`}function Pe(e){let t=e.filter(Ne);if(t.length!==0)return t.reduce((e,t)=>e+t.price*Me(t),0)}function Fe(e,t){return je([e.value,e.total,e.revenue,Pe(t)])}function Ie(e){return P(e.transaction_id)??P(e.order_id)}function Le(e){return {item_id:e.product_id||e.sku,item_name:e.name,item_category:e.category,item_variant:P(e.variant),price:e.price,quantity:e.quantity??1}}function Re(e){return !e.product_id||e.products?[]:[{item_id:e.product_id,item_name:e.name,item_category:e.category,item_variant:P(e.variant),price:e.price,quantity:e.quantity??1}]}function ze(e){return Array.isArray(e.products)?e.products.map(Le):[]}function Be(e){return [...Re(e),...ze(e)]}function Ve(e,t=2){let n=e.trim();if(!n.includes(`%`)||t===0)return n;try{return Ve(decodeURIComponent(n),t-1)}catch{return n}}function He(e){let t=e.match(/[A-Za-z0-9]+/g)?.join(`_`).toLowerCase()||`custom_event`;return /^[a-z]/.test(t)?t:`event_${t}`}function Ue(e){let t=Ve(e.name||`Unknown`);return De[t]||He(t)}function I(e,t){F(e,`event_id`,t.properties.event_id),F(e,`team_id`,t.properties.team_id),F(e,`promoter_id`,t.properties.promoter_id),F(e,`order_id`,t.properties.order_id);}function We(e,t){let n={},r=Be(t.properties);return I(n,t),r.length>0&&(n.items=r),F(n,`currency`,t.properties.currency),F(n,`value`,Fe(t.properties,r)),F(n,`coupon`,t.properties.coupon),F(n,`payment_type`,P(t.properties.payment_type)??P(t.properties.payment_method)),F(n,`item_list_id`,t.properties.list_id),F(n,`item_list_name`,t.properties.list_name),e===`purchase`&&F(n,`transaction_id`,Ie(t.properties)),n}function L(e,t){if(Oe(e.gaId))return Ae(e.gaId,t)?e.gaId:void 0}function Ge(e=false){let t;return {name:`Google Analytics`,preload:(t,n)=>{L(n,e);},track:(t,n)=>{let r=L(n,e);if(!r)return;let i=Ue(t),a=We(i,t);j(r,i,a),N(e,`[Google Analytics] Sent ${i}:`,a);},page:(t,n)=>{let r=L(n,e);if(!r)return;let i={page_location:t.context.page.url,page_path:t.context.page.path,page_title:t.context.page.title};I(i,t),F(i,`page_referrer`,t.context.page.referrer),j(r,`page_view`,i),N(e,`[Google Analytics] Sent page_view:`,i);},screen:(t,n)=>{let r=L(n,e);if(!r)return;let i={};I(i,t),F(i,`screen_name`,t.name||`Unknown`),j(r,`screen_view`,i),N(e,`[Google Analytics] Sent screen_view:`,i);},identify:(n,r)=>{if(!n.userId)return;let i=L(r,e);i&&(t=i,M(i,n.userId,e),N(e,`[Google Analytics] Identity available`));},reset:()=>{M(t,null,e),t=void 0;}}}const Ke=new Set(Object.values(hs));function qe(e){return e.messageId??`msg_${e.timestamp.toString(36)}`}function Je(e){let t=e.context.campaign??{};return {session_id:e.sessionId,anonymous_id:e.anonymousId,user_id:e.userId,page:{url:e.context.page.url,path:e.context.page.path,title:e.context.page.title},referrer:e.context.page.referrer,user_agent:e.context.userAgent,utm_source:t.source,utm_medium:t.medium,utm_campaign:t.name,utm_term:t.term,utm_content:t.content}}function Ye(e){let{event_id:t,team_id:n,promoter_id:r,...i}=e;return {eventId:t,teamId:n,promoterId:r,rest:i}}function Xe(e){return !!(e.eventId&&e.teamId&&e.promoterId)}function Ze(e,t,n){e&&console.warn(`[Sessions API] Missing required fields, skipping ${t}:`,{eventId:n.eventId,teamId:n.teamId,promoterId:n.promoterId});}function Qe(e){return !!(e&&Ke.has(e))}function $e(e,t,n){e&&console.warn(`[Sessions API] Invalid or missing eventType "${n}", skipping ${t}`);}function et(e,t,n){return n&&t?{...e,name:t}:e}function tt(e,t,n,r){return {eventId:t.eventId,teamId:t.teamId,promoterId:t.promoterId,eventType:n,messageId:qe(e),occurredAt:new Date(e.timestamp).toISOString(),properties:et(t.rest,e.name,r),context:Je(e)}}function nt(e,t,n){e&&console.log(`[Sessions API] Sending ${t}:`,n);}function rt(e,t=false){let n=(e,n)=>{t&&console.log(`[Sessions API] Preload received (no-op)`);},r=async(n,r,i)=>{let a=Ye(r.properties);if(!Xe(a)){Ze(t,n,a);return}let o=i??r.name;if(!Qe(o)){$e(t,n,o);return}let s=tt(r,a,o,i);nt(t,n,s),await e.analytics[n](s);};return {name:`Sessions API`,preload:n,track:(e,n)=>r(`track`,e).catch(e=>{t&&console.error(`[Sessions API] track error:`,e);}),page:(e,n)=>r(`page`,e,`Page Viewed`).catch(e=>{t&&console.error(`[Sessions API] page error:`,e);}),screen:(e,n)=>r(`screen`,e,`Screen Viewed`).catch(e=>{t&&console.error(`[Sessions API] screen error:`,e);}),identify:(e,n)=>{t&&console.log(`[Sessions API] Identify received (logged only):`,{userId:e.userId,traits:e.traits});}}}const it={"Product Viewed":`ViewContent`,"Product Added":`AddToCart`,"Checkout Started":`InitiateCheckout`,"Payment Info Entered":`AddPaymentInfo`,"Order Completed":`Purchase`},at=new Set([`AddPaymentInfo`,`AddToCart`,`AddToWishlist`,`ApplicationApproval`,`CompleteRegistration`,`Contact`,`CustomizeProduct`,`Download`,`FindLocation`,`InitiateCheckout`,`Purchase`,`Schedule`,`Search`,`StartTrial`,`SubmitApplication`,`SubmitForm`,`Subscribe`,`ViewContent`]),ot=new Set,R=`https://analytics.tiktok.com/i18n/pixel/events.js`;function st(e){return Array.from(document.scripts??[]).some(t=>t.src.includes(R)&&t.src.includes(`sdkid=${e}`))}function ct(e){if(st(e))return;let t=document.createElement(`script`);t.async=true,t.src=`${R}?sdkid=${e}&lib=ttq`;let n=document.getElementsByTagName(`script`)[0];n?.parentNode?.insertBefore(t,n);}function z(){return []}function lt(){if(typeof window>`u`)return false;let e=window;if(e.ttq)return true;e.TiktokAnalyticsObject=`ttq`;let t=z();t.methods=[`page`,`track`,`identify`,`instances`,`debug`,`on`,`off`,`once`,`ready`,`alias`,`group`,`enableCookie`,`disableCookie`],t.setAndDefer=(e,t)=>{e[t]=(...n)=>{e.push([t,...n]);};};for(let e of t.methods)t.setAndDefer(t,e);return t.instance=e=>{let n=t._i[e]??z();for(let e of t.methods)t.setAndDefer(n,e);return n},t._i={},t._t={},t._o={},t.load=(e,n={})=>{t._i[e]=t._i[e]??z(),t._i[e]._u=R,t._t[e]=Date.now(),t._o[e]=n,ct(e);},e.ttq=t,true}function ut(e){let t=window;typeof window>`u`||!t.ttq||t.ttq.load(e);}function dt(e,t){let n=window;typeof window>`u`||!n.ttq||n.ttq.instance(e).identify?.({external_id:t});}function ft(e){let t={};return v(t,`event_id`,e),Object.keys(t).length>0?t:void 0}function pt(e,t,n,r){let i=window;if(typeof window>`u`||!i.ttq)return;let a=i.ttq.instance(e).track;if(!a)return;let o=ft(r);if(o){a(t,n,o);return}a(t,n);}function mt(e,t){let n=window;if(typeof window>`u`||!n.ttq)return;let r=n.ttq.instance(e).page;if(!r)return;let i=ft(t);if(i){r(i);return}r();}function B(e,...t){e&&console.log(...t);}function V(e,t){return lt()?ot.has(e)?true:(ut(e),ot.add(e),B(t,`[TikTok Pixel] Initialized pixel ${e}`),true):false}function ht(e,t){v(e,`content_ids`,t?[t]:void 0);}function gt(e){return e.find(e=>typeof e==`number`)}function H(e){return typeof e.quantity==`number`?e.quantity:1}function _t(e){if(typeof e.price==`number`)return e.price*H(e)}function vt(e){let t=e.filter(e=>typeof e.price==`number`);if(t.length!==0)return t.reduce((e,t)=>e+Number(t.price)*H(t),0)}function yt(e){return Array.isArray(e)?vt(e):void 0}function U(e){return gt([e.value,e.total,e.revenue,yt(e.products),_t(e)])}function bt(e,t){ht(e,t.product_id),v(e,`content_name`,t.name),v(e,`price`,t.price),v(e,`quantity`,t.product_id?H(t):void 0),v(e,`value`,U(t)),e.content_type=`product`;}function xt(e,t){bt(e,t),v(e,`content_category`,t.category);}function St(e,t){bt(e,t);}function Ct(e){let t={content_type:`product`};return v(t,`content_id`,e.product_id),v(t,`content_name`,e.name),v(t,`quantity`,H(e)),v(t,`price`,e.price),t}function wt(e){return e.flatMap(e=>e.product_id?[e.product_id]:[])}function Tt(e){return e.reduce((e,t)=>e+H(t),0)}function Et(e,t){Array.isArray(t)&&(v(e,`contents`,t.map(Ct)),v(e,`content_ids`,wt(t)),v(e,`quantity`,Tt(t)),e.content_type=`product`);}function Dt(e,t){Et(e,t.products),v(e,`value`,U(t));}function Ot(e,t){Et(e,t.products),v(e,`value`,U(t)),v(e,`order_id`,t.order_id);}function kt(e,t){v(e,`value`,t.value);}const At={ViewContent:xt,AddToCart:St,InitiateCheckout:Dt,AddPaymentInfo:Dt,Purchase:Ot};function jt(e,t){let n={};return v(n,`currency`,t.currency),(At[e]??kt)(n,t),n}function Mt(e){return e.name||`Unknown`}function Nt(e,t=2){let n=e.trim();if(!n.includes(`%`)||t===0)return n;try{return Nt(decodeURIComponent(n),t-1)}catch{return n}}function Pt(e){let t=e.match(/[A-Za-z0-9]+/g)?.join(``)||`CustomEvent`;return /^[A-Za-z]/.test(t)?t.slice(0,50):`Event${t}`.slice(0,50)}function Ft(e){let t=Nt(Mt(e)),n=it[t]||t;return at.has(n)?n:Pt(n)}function W(e){return e.tikTokId}function It(e=false){let t=(t,n)=>{let r=W(n);r&&V(r,e)&&t.userId&&dt(r,t.userId);},n=(t,n)=>{let r=W(n);if(!r||!V(r,e))return;let i=Ft(t),a=jt(i,t.properties);pt(r,i,a,t.properties.event_id),B(e,`[TikTok Pixel] Sent ${i}:`,a);},r=(t,n)=>{let r=W(n);r&&V(r,e)&&(mt(r,t.properties.event_id),B(e,`[TikTok Pixel] Sent page view`));};return {name:`TikTok Pixel`,preload:t,track:n,page:r,screen:r,identify:(t,n)=>{let r=W(n);!r||!t.userId||V(r,e)&&(dt(r,t.userId),B(e,`[TikTok Pixel] Identity synced`));}}}const Lt={preload:(e,t,n)=>e.preload(t,n),track:(e,t,n)=>e.track(t,n),page:(e,t,n)=>e.page(t,n),screen:(e,t,n)=>e.screen(t,n),identify:(e,t,n)=>e.identify(t,n)},Rt=[`fbId`,`gaId`,`tikTokId`];function zt(e){return e||void 0}function Bt(e){let t=e??{};return Object.fromEntries(Rt.map(e=>[e,zt(t[e])]))}function Vt(e){return Rt.some(t=>!!e[t])}function Ht(e,t,n){e&&console.log(`[DestinationManager] Fetched config for promoter ${t}:`,n);}function Ut(e,t,n){e&&console.warn(`[DestinationManager] Failed to fetch promoter ${t} config:`,n);}function Wt(e,t=false,n={}){let r=new Map,i=new Map,a=n.sessions===false?null:rt(e,t),o=[n.facebook===false?null:Ee(t),n.googleAnalytics===false?null:Ge(t),n.tikTok===false?null:It(t)].filter(e=>!!e),s=async n=>{try{let r=Bt((await e.promoter.get({key:n})).promoter?.tracking);return Ht(t,n,r),r}catch(e){return Ut(t,n,e),{}}},c=async(e,n,r)=>{try{await d(e,n,r);}catch(n){t&&console.error(`[DestinationManager] ${e.name} error:`,n);}},l=e=>{try{e.reset?.();}catch(n){t&&console.error(`[DestinationManager] ${e.name} reset error:`,n);}},u=async e=>{let t=r.get(e);if(t)return t;let n=i.get(e);if(n)return n;n=s(e),i.set(e,n);try{let t=await n;return r.set(e,t),t}finally{i.delete(e);}},d=(e,t,n)=>Lt[t.type]?.(e,t,n);return {sendEvent:async(e,t)=>{if(!a&&o.length===0)return;let n=a?c(a,e,{}):Promise.resolve();if(o.length===0){await n;return}let r=await u(t);if(!Vt(r)){await n;return}let i=Promise.all(o.map(t=>c(t,e,r)));await Promise.all([n,i]);},clearCache:()=>{r.clear(),i.clear();for(let e of o)l(e);}}}var G={},Gt;function Kt(){if(Gt)return G;Gt=1,Object.defineProperty(G,"__esModule",{value:true}),G.parseCookie=s,G.parse=s,G.stringifyCookie=c,G.stringifySetCookie=l,G.serialize=l,G.parseSetCookie=u,G.stringifySetCookie=l,G.serialize=l;let e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=/^-?\d+$/,a=Object.prototype.toString,o=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function s(e,t){let n=new o,r=e.length;if(r<2)return n;let i=t?.decode||m,a=0;do{let t=f(e,a,r);if(t===-1)break;let o=d(e,a,r);if(t>o){a=e.lastIndexOf(`;`,t-1)+1;continue}let s=p(e,a,t);n[s]===void 0&&(n[s]=i(p(e,t+1,o))),a=o+1;}while(a<r);return n}function c(n,r){let i=r?.encode||encodeURIComponent,a=[];for(let r of Object.keys(n)){let o=n[r];if(o===void 0)continue;if(!e.test(r))throw TypeError(`cookie name is invalid: ${r}`);let s=i(o);if(!t.test(s))throw TypeError(`cookie val is invalid: ${o}`);a.push(`${r}=${s}`);}return a.join(`; `)}function l(i,a,o){let s=typeof i==`object`?i:{...o,name:i,value:String(a)},c=(typeof a==`object`?a:o)?.encode||encodeURIComponent;if(!e.test(s.name))throw TypeError(`argument name is invalid: ${s.name}`);let l=s.value?c(s.value):``;if(!t.test(l))throw TypeError(`argument val is invalid: ${s.value}`);let u=s.name+`=`+l;if(s.maxAge!==void 0){if(!Number.isInteger(s.maxAge))throw TypeError(`option maxAge is invalid: ${s.maxAge}`);u+=`; Max-Age=`+s.maxAge;}if(s.domain){if(!n.test(s.domain))throw TypeError(`option domain is invalid: ${s.domain}`);u+=`; Domain=`+s.domain;}if(s.path){if(!r.test(s.path))throw TypeError(`option path is invalid: ${s.path}`);u+=`; Path=`+s.path;}if(s.expires){if(!h(s.expires)||!Number.isFinite(s.expires.valueOf()))throw TypeError(`option expires is invalid: ${s.expires}`);u+=`; Expires=`+s.expires.toUTCString();}if(s.httpOnly&&(u+=`; HttpOnly`),s.secure&&(u+=`; Secure`),s.partitioned&&(u+=`; Partitioned`),s.priority)switch(typeof s.priority==`string`?s.priority.toLowerCase():void 0){case `low`:u+=`; Priority=Low`;break;case `medium`:u+=`; Priority=Medium`;break;case `high`:u+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid: ${s.priority}`)}if(s.sameSite)switch(typeof s.sameSite==`string`?s.sameSite.toLowerCase():s.sameSite){case true:case `strict`:u+=`; SameSite=Strict`;break;case `lax`:u+=`; SameSite=Lax`;break;case `none`:u+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid: ${s.sameSite}`)}return u}function u(e,t){let n=t?.decode||m,r=e.length,a=d(e,0,r),o=f(e,0,a),s=o===-1?{name:``,value:n(p(e,0,a))}:{name:p(e,0,o),value:n(p(e,o+1,a))},c=a+1;for(;c<r;){let t=d(e,c,r),n=f(e,c,t),a=n===-1?p(e,c,t):p(e,c,n),o=n===-1?void 0:p(e,n+1,t);switch(a.toLowerCase()){case `httponly`:s.httpOnly=true;break;case `secure`:s.secure=true;break;case `partitioned`:s.partitioned=true;break;case `domain`:s.domain=o;break;case `path`:s.path=o;break;case `max-age`:o&&i.test(o)&&(s.maxAge=Number(o));break;case `expires`:if(!o)break;let e=new Date(o);Number.isFinite(e.valueOf())&&(s.expires=e);break;case `priority`:if(!o)break;let t=o.toLowerCase();(t===`low`||t===`medium`||t===`high`)&&(s.priority=t);break;case `samesite`:if(!o)break;let n=o.toLowerCase();(n===`lax`||n===`strict`||n===`none`)&&(s.sameSite=n);break}c=t+1;}return s}function d(e,t,n){let r=e.indexOf(`;`,t);return r===-1?n:r}function f(e,t,n){let r=e.indexOf(`=`,t);return r<n?r:-1}function p(e,t,n){let r=t,i=n;do{let t=e.charCodeAt(r);if(t!==32&&t!==9)break}while(++r<i);for(;i>r;){let t=e.charCodeAt(i-1);if(t!==32&&t!==9)break;i--;}return e.slice(r,i)}function m(e){if(e.indexOf(`%`)===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function h(e){return a.call(e)===`[object Date]`}return G}var K=Kt();function qt(){let e=typeof globalThis>`u`?void 0:globalThis.TEST_HAS_DOCUMENT_COOKIE;return typeof e==`boolean`?e:typeof document==`object`&&typeof document.cookie==`string`}function Jt(e){return typeof e==`string`?K.parse(e):typeof e==`object`&&e?e:{}}function q(e,t={}){let n=Yt(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function Yt(e){return e&&e[0]===`j`&&e[1]===`:`?e.substr(2):e}var Xt=class{constructor(e,t={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=false,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;let e=this.cookies;this.cookies=K.parse(document.cookie),this._checkChanges(e);};let n=typeof document>`u`?``:document.cookie;this.cookies=Jt(e||n),this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=qt();}_emitChange(e){for(let t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e);}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach(t=>{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:q(this.cookies[t])});});}_startPolling(){this.pollingInterval=setInterval(this.update,300);}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval);}get(e,t={}){return t.doNotUpdate||this.update(),q(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();let t={};for(let n in this.cookies)t[n]=q(this.cookies[n],e);return t}set(e,t,n){n=n?Object.assign(Object.assign({},this.defaultSetOptions),n):this.defaultSetOptions;let r=typeof t==`string`?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:r}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=K.serialize(e,r,n)),this._emitChange({name:e,value:t,options:n});}remove(e,t){let n=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=K.serialize(e,``,n)),this._emitChange({name:e,value:void 0,options:t});}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window==`object`&&`cookieStore`in window?window.cookieStore.addEventListener(`change`,this.update):this._startPolling());}removeChangeListener(e){let t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window==`object`&&`cookieStore`in window?window.cookieStore.removeEventListener(`change`,this.update):this._stopPolling());}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0]);}};function J(){return typeof document>`u`?null:new Xt}function Zt(e){return J()?.get(e)??null}function Qt(e,t){let n=J();n&&n.set(e,t,{path:`/`,sameSite:`lax`,secure:window.location.protocol===`https:`});}function $t(e){let t=J();t&&t.remove(e,{path:`/`});}function en(e){if(typeof localStorage>`u`)return null;try{return localStorage.getItem(e)}catch{return null}}function tn(e,t){if(!(typeof localStorage>`u`))try{localStorage.setItem(e,t);}catch{}}function nn(e){if(!(typeof localStorage>`u`))try{localStorage.removeItem(e);}catch{}}const Y={deleteCookie:$t,getCookie:Zt,getItem:en,removeItem:nn,setCookie:Qt,setItem:tn};function X(){return us$1(Y)}function rn(){return ds(Y)}function an(){return fs$1(Y)}function on(e){if(typeof document>`u`||!document.body)return e;let t;try{t=document.createElement(`a`),t.href=e,t.style.display=`none`,document.body.appendChild(t);let n=t.href;t.dispatchEvent(new MouseEvent(`mousedown`,{bubbles:true}));let r=t.href;return r!==n&&r.includes(`_gl=`)?r:e}catch{return e}finally{t?.remove();}}function Q(){return globalThis.crypto?.randomUUID?.()??`msg_${Date.now().toString(36)}_${Math.random().toString(36).slice(2)}`}function dn(e=`tenant-web`){let t=_(),n=ee({anonymousId:rn(),context:t,sessionId:X()});return {name:e,referrer:t.page.referrer,utmSource:t.campaign?.source,utmMedium:t.campaign?.medium,utmCampaign:t.campaign?.name,browser:$(n.browser),deviceType:fn(n.device_type),sessionId:$(n.browser_session_id),anonymousId:$(n.anonymous_id)}}function $(e){return typeof e==`string`&&e.length>0?e:void 0}function fn(e){return e===`MOBILE`||e===`TABLET`||e===`DESKTOP`?e:void 0}function pn(e){let t=e.debug??false,n=Wt(e.client,t,e.destinations),r=X(),i=rn(),a;t&&console.log(`[Analytics] Initialized:`,{sessionId:r,anonymousId:i});let o=(e,t,n)=>{let o=_();return {type:e,name:t,properties:{...ee({anonymousId:i,context:o,sessionId:r}),...n},context:o,timestamp:Date.now(),messageId:Q(),sessionId:r,anonymousId:i,userId:a}},s=async(e,r)=>{try{await n.sendEvent(e,r);}catch(e){t&&console.error(`[Analytics] Failed to send event:`,e);}},c=(e,n)=>{let r=e.promoter_id;return !r&&t&&console.warn(`[Analytics] ${n}() called without promoter_id, skipping`),r},l=async(e,t={})=>{let n=c(t,`track`);n&&await s(o(`track`,e,t),n);},u=async(e={})=>{let t=c(e,`preload`);t&&await s(o(`preload`,`Preload`,e),t);},d=(e={})=>{u(e);},f=(e,t={})=>{l(e,t);},p=async(e,t={})=>{let n=c(t,`page`);n&&await s(o(`page`,e||`Page Viewed`,t),n);},m=(e,t={})=>{p(e,t);},h=async(e,t={})=>{let n=c(t,`screen`);n&&await s(o(`screen`,e||`Screen Viewed`,t),n);},g=(e,t={})=>{h(e,t);},v=async(e,n={})=>{a=e;let o=n.promoter_id;o&&await s({type:`identify`,properties:{},context:_(),timestamp:Date.now(),messageId:Q(),sessionId:r,anonymousId:i,userId:e,traits:n},o),t&&console.log(`[Analytics] User identified:`,e);},y=(e,t={})=>{v(e,t);},te=(e,n)=>{t&&console.log(`[Analytics] Alias called:`,{userId:e,previousId:n});},b=async(e,n={})=>{let o=n.promoter_id;o&&await s({type:`group`,properties:{},context:_(),timestamp:Date.now(),messageId:Q(),sessionId:r,anonymousId:i,userId:a,groupId:e,traits:n},o),t&&console.log(`[Analytics] Group called:`,{groupId:e,traits:n});};return {preload:d,preloadAsync:u,track:f,trackAsync:l,page:m,pageAsync:p,screen:g,screenAsync:h,identify:y,identifyAsync:v,alias:te,group:(e,t={})=>{b(e,t);},groupAsync:b,reset:()=>{let e=an();r=e.sessionId,i=e.anonymousId,a=void 0,n.clearCache(),t&&console.log(`[Analytics] Session reset:`,{sessionId:r,anonymousId:i});}}}
|
|
57
|
+
`);}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},s,c=_$1,l=!M$2.jitless,u=l&&ie$1.value,d=t.catchall,f;e._zod.parse=(i,a)=>{f??=r.value;let p=i.value;return c(p)?l&&u&&a?.async===false&&a.jitless!==true?(s||=o(t.shape),i=s(i,a),d?xr([],p,i,a,f,e,a?.abortEarly===true):i):n(i,a):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)};});function wr(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=>!S$2(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=>T$2(e,r,N$2())))}),t)}const Tr=A$2(`$ZodUnion`,(e,t)=>{F$2.init(e,t),k$2(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),k$2(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),k$2(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),k$2(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>o$1(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=false,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=true;else {if(t.issues.length===0)return t;o.push(t);}}return a?Promise.all(o).then(t=>wr(t,r,e,i)):wr(o,r,e,i)};});function Er(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let e of r)if(t.has(e)){if(e!==void 0)throw Error(`Duplicate discriminator value "${String(e)}"`);t.set(e,null);}else t.set(e,n);}return t}const Dr=A$2(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=false,Tr.init(e,t);let n=e._zod.parse;k$2(e,`propValues`,e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);i[e.def.discriminator]?.has(void 0)&&n++;for(let[e,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,e)||u$1(t,e,new Set);for(let r of n)t[e].add(r);}}return !e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,n)=>{let r=d$1(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=i$1(()=>Er(t));e._zod.parse=(i,a)=>{let o=i.value;if(!_$1(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=o?.[t.discriminator],c=r.value.get(s);return c&&(s!==void 0||a.direction!==`backward`)?c._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(e=>r.value.get(e)!==null),input:o,path:[t.discriminator],inst:e}),i)};}),Or=A$2(`$ZodIntersection`,(e,t)=>{F$2.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])=>Ar(e,t,n)):Ar(e,i,a)};});function kr(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return {valid:true,data:e};if(v$1(e)&&v$1(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=kr(e[n],t[n]);if(!r.valid)return {valid:false,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data;}return {valid:true,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return {valid:false,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=kr(i,a);if(!o.valid)return {valid:false,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data);}return {valid:true,data:n}}return {valid:false,mergeErrorPath:[]}}function Ar(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t];}else return false;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=true;return true};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n));}let c=kr(t.value,n.value);if(!c.valid){if(S$2(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}const jr=A$2(`$ZodRecord`,(e,t)=>{F$2.init(e,t);let n=M$2.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!v$1(a))return r.issues.push({expected:`record`,code:`invalid_type`,input:a,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s&&!t.partial){r.value=n?n.alloc(e,r,{},i):{};let c=new Set;for(let n of s)if(typeof n==`string`||typeof n==`number`||typeof n==`symbol`){if(c.add(typeof n==`number`?n.toString():n),n===`__proto__`)continue;let s=t.keyType._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){r.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>T$2(e,i,N$2())),input:n,path:[n],inst:e});continue}let l=s.value;if(l===`__proto__`)continue;let u=t.valueType._zod.run({value:a[n],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&r.issues.push(...C$2(n,e.issues)),r.value[l]=e.value;})):(u.issues.length&&r.issues.push(...C$2(n,u.issues)),r.value[l]=u.value);}let l;for(let e in a)if(!c.has(e))if(t.mode===`loose`){if(e===`__proto__`)continue;r.value[e]=a[e];}else l??=[],l.push(e);l&&l.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:l,continue:true});}else {r.value=n?n.alloc(e,r,{},i):{};let c;for(let n of Reflect.ownKeys(a)){if(n===`__proto__`||!Object.prototype.propertyIsEnumerable.call(a,n))continue;let l=t.keyType._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof n==`string`&&Wt$2.test(n)&&l.issues.length){let e=t.keyType._zod.run({value:Number(n),issues:[]},i);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(l=e);}if(l.issues.length){t.mode===`loose`?r.value[n]=a[n]:s?(c??=[],c.push(n)):r.issues.push({code:`invalid_key`,origin:`record`,issues:l.issues.map(e=>T$2(e,i,N$2())),input:n,path:[n],inst:e});continue}let u=l.value;if(u===`__proto__`)continue;let d=t.valueType._zod.run({value:a[n],issues:[]},i);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&r.issues.push(...C$2(n,e.issues)),r.value[u]=e.value;})):(d.issues.length&&r.issues.push(...C$2(n,d.issues)),r.value[u]=d.value);}c&&c.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:c,continue:true});}return o.length?Promise.all(o).then(()=>r):r};}),Mr=A$2(`$ZodEnum`,(t,n)=>{F$2.init(t,n);let r=e(n.entries),i=new Set(r);t._zod.values=i,k$2(t,`pattern`,t=>{let n=e(t.def.entries).filter(e=>oe$1.has(typeof e));return RegExp(n.length?`^(${n.map(e=>y$1(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),t._zod.parse=(e,n)=>{let a=e.value;return i.has(a)||e.issues.push({code:`invalid_value`,values:r,input:a,inst:t}),e};}),Nr=A$2(`$ZodLiteral`,(e,t)=>{F$2.init(e,t);let n=new Set(t.values);e._zod.values=n,k$2(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?y$1(e):e?y$1(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r};}),Pr=A$2(`$ZodTransform`,(e,t)=>{F$2.init(e,t),e._zod.optin=`optional`,M$2.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Be$2(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 j$2;return n.value=i,n};});function Fr(e,t){return e.value=t.issues.length?void 0:t.value,e}const Ir=A$2(`$ZodOptional`,(e,t)=>{F$2.init(e,t),k$2(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,k$2(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),k$2(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${o$1(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>Fr(e,t)):Fr(e,r)}return t.innerType._zod.run(e,n)};}),Lr=A$2(`$ZodExactOptional`,(e,t)=>{Ir.init(e,t),k$2(e,`values`,e=>e.def.innerType._zod.values),k$2(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n);}),Rr=A$2(`$ZodNullable`,(e,t)=>{F$2.init(e,t),k$2(e,`optin`,e=>e.def.innerType._zod.optin),k$2(e,`optout`,e=>e.def.innerType._zod.optout),k$2(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${o$1(t.source)}|null)$`):void 0}),k$2(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n);}),zr$1=A$2(`$ZodDefault`,(e,t)=>{F$2.init(e,t),e._zod.optin=`defaulted`,k$2(e,`values`,e=>e.def.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=>Br$1(e,t)):Br$1(r,t)};});function Br$1(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Vr$1=A$2(`$ZodPrefault`,(e,t)=>{F$2.init(e,t),e._zod.optin=`defaulted`,k$2(e,`values`,e=>e.def.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));}),Hr$1=A$2(`$ZodNonOptional`,(e,t)=>{F$2.init(e,t),k$2(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].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=>Ur$1(t,e)):Ur$1(i,e)};});function Ur$1(e,t){return !e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Wr$1(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>T$2(e,r,N$2()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=true),e)}const Gr=A$2(`$ZodCatch`,(e,t)=>{F$2.init(e,t),k$2(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),k$2(e,`optout`,e=>e.def.innerType._zod.optout),k$2(e,`values`,e=>e.def.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({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>Wr$1(e,r,t,n)):Wr$1(e,r,t,n)};}),Kr$1=A$2(`$ZodPipe`,(e,t)=>{F$2.init(e,t),k$2(e,`values`,e=>e.def.in._zod.values),k$2(e,`optin`,e=>e.def.in._zod.optin),k$2(e,`optout`,e=>e.def.out._zod.optout),k$2(e,`propValues`,e=>e.def.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=>qr$1(e,t.in,n)):qr$1(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>qr$1(e,t.out,n)):qr$1(r,t.out,n)};});function qr$1(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=true,e):t._zod.run({value:e.value,issues:e.issues},n)}const Jr$1=A$2(`$ZodPreprocess`,(e,t)=>{Kr$1.init(e,t);}),Yr$1=A$2(`$ZodReadonly`,(e,t)=>{F$2.init(e,t),k$2(e,`propValues`,e=>e.def.innerType._zod.propValues),k$2(e,`values`,e=>e.def.innerType._zod.values),k$2(e,`optin`,e=>e.def.innerType?._zod?.optin),k$2(e,`optout`,e=>e.def.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(Xr$1):Xr$1(r)};});function Xr$1(e){return e.memo||(e.value=Object.freeze(e.value)),e}const Zr$1=A$2(`$ZodLazy`,(e,t)=>{F$2.init(e,t),l$1(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),k$2(e,`pattern`,e=>e.innerType?._zod?.pattern),k$2(e,`propValues`,e=>e.innerType?._zod?.propValues),k$2(e,`optin`,e=>e.innerType?._zod?.optin??void 0),k$2(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n);}),Qr$1=A$2(`$ZodCustom`,(e,t)=>{P$2.init(e,t),F$2.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=>$r$1(t,n,r,e));$r$1(i,n,r,e);};});function $r$1(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(E$2(e));}}var ei$1=class ei extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`;}};const ti$1=`~memo`,ni$1=[];function ri$1(e){return typeof e==`object`&&!!e}function ii$1(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}const ai$1=new WeakMap;function oi$1(e,t,n){let r=ai$1.get(e);if(r!==void 0)return r?2:0;if(t.has(e))return 2;t.add(e);let i=0,a=e=>{if(i!==2&&e?._zod){let r=oi$1(e,t);r>i&&(i=r);}},o=(e,r)=>{let i=0;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(!o.enumerable)continue;let s=o.get?1:o.value?._zod?oi$1(o.value,t):0;s>i&&(i=s);}return i},s=e=>{e>i&&(i=e);},c=e._zod.def;switch(c.type){case `object`:{let e=d$1(c);s(e?o(e):1),a(c.catchall);break}case `array`:a(c.element);break;case `tuple`:for(let e of c.items)a(e);a(c.rest);break;case `record`:case `map`:a(c.keyType),a(c.valueType);break;case `set`:a(c.valueType);break;case `union`:for(let e of c.options)a(e);break;case `intersection`:a(c.left),a(c.right);break;case `optional`:case `nullable`:case `default`:case `prefault`:case `catch`:case `readonly`:case `nonoptional`:case `promise`:case `success`:a(c.innerType);break;case `pipe`:a(c.in),a(c.out);break;case `function`:a(c.input),a(c.output);break;case `lazy`:{let r=c._cachedInner??(void 0);s(r?oi$1(r,t):1);break}case `template_literal`:case `string`:case `number`:case `int`:case `boolean`:case `bigint`:case `symbol`:case `undefined`:case `null`:case `void`:case `never`:case `any`:case `unknown`:case `date`:case `nan`:case `enum`:case `literal`:case `file`:case `transform`:case `custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(!(!n||typeof n!=`object`)){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e);}}}return t.delete(e),si$1(e,i)}function si$1(e,t){return t!==1&&ai$1.set(e,t===2),t}function ci$1(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}let li$1;const ui$1=[],di$1={alloc(e,t,n){let r=li$1;if(!r)return n;li$1=void 0;let i={value:n,issues:null};return r.set(t.value,i),ui$1.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&pi$1(n,e.value))throw new ei$1;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n);});},attach(e){var t;let n,r=false,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=oi$1(e,new Set);if(i===0)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===2||r?n=true:r=true;}let l=s.value;if(!ri$1(l))return t(s,c);let u=c[ti$1];u||(u={buckets:new WeakMap,backEdges:void 0},c[ti$1]=u);let d;i===c?d=a:(d=ci$1(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...ii$1(f.issues)):(s.memo=true,u.backEdges??=new WeakSet,u.backEdges.add(f.value)),s;li$1=d;let p=ui$1.length,m=t(s,c);li$1=void 0;let h=ui$1.length>p?ui$1.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?ii$1(e.issues):ni$1),e)):(h&&(h.issues=m.issues.length?ii$1(m.issues):ni$1),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o);});}};function fi(){return di$1}function pi$1(e,t){let n=e[ti$1]?.backEdges;return n!==void 0&&ri$1(t)&&n.has(t)}const mi$1=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function n(t){return e[t]??null}let r={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},i={nan:`NaN`};function a(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):i[e]??e}return e=>{switch(e.code){case `invalid_type`:return `Invalid input: expected ${a(e.expected)}, received ${a(Ee$2(e.input),e.input)}`;case `invalid_value`:return e.values.length===1?`Invalid input: expected ${se$1(e.values[0])}`:`Invalid option: expected one of ${t(e.values,`|`)}`;case `too_big`:{let t=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=n(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${t}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${t}${e.maximum.toString()}`}case `too_small`:{let t=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=n(e.origin);return r?`Too small: expected ${e.origin} to have ${t}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${t}${e.minimum.toString()}`}case `invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${r[t.format]??e.format}`}case `not_multiple_of`:return `Invalid number: must be a multiple of ${e.divisor}`;case `unrecognized_keys`:return `Unrecognized key${e.keys.length>1?`s`:``}: ${t(e.keys,`, `)}`;case `invalid_key`:return `Invalid key in ${e.origin}`;case `invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===false?`Invalid input: more than one option matched`:`Invalid input`;case `invalid_element`:return `Invalid value in ${e.origin}`;default:return `Invalid input`}}};function hi$1(){return {localeError:mi$1()}}var gi$1,_i$1=class _i{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),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 vi$1(){return new _i$1}(gi$1=globalThis).__zod_globalRegistry??(gi$1.__zod_globalRegistry=vi$1());const L$2=globalThis.__zod_globalRegistry;function yi$1(e){return e.checks&&=[...e.checks],e}function bi$1(e,t){return new e(yi$1({type:`string`,...x$2(t)}))}function xi$1(e,t){return new e(yi$1({type:`string`,coerce:true,...x$2(t)}))}function Si$1(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:false,...x$2(t)})}function Ci$1(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:false,...x$2(t)})}function wi$1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,...x$2(t)})}function Ti$1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v4`,...x$2(t)})}function Ei$1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v6`,...x$2(t)})}function Di$1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v7`,...x$2(t)})}function Oi$1(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:false,...x$2(t)})}function ki$1(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:false,...x$2(t)})}function Ai$1(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:false,...x$2(t)})}function ji$1(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:false,...x$2(t)})}function Mi$1(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:false,...x$2(t)})}function Ni$1(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:false,...x$2(t)})}function Pi$1(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:false,...x$2(t)})}function Fi$1(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:false,...x$2(t)})}function Ii$1(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:false,...x$2(t)})}function Li(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:false,...x$2(t)})}function Ri$1(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:false,...x$2(t)})}function zi$1(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:false,...x$2(t)})}function Bi$1(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:false,...x$2(t)})}function Vi$1(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:false,...x$2(t)})}function Hi$1(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:false,...x$2(t)})}function Ui(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:false,...x$2(t)})}function Wi(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:false,local:false,precision:null,...x$2(t)})}function Gi$1(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...x$2(t)})}function Ki$1(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...x$2(t)})}function qi$1(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...x$2(t)})}function Ji$1(e,t){return new e(yi$1({type:`number`,checks:[],...x$2(t)}))}function Yi$1(e,t){return new e(yi$1({type:`number`,coerce:true,checks:[],...x$2(t)}))}function Xi$1(e,t){return new e({type:`number`,check:`number_format`,abort:false,format:`safeint`,...x$2(t)})}function Zi$1(e,t){return new e({type:`boolean`,...x$2(t)})}function Qi$1(e,t){return new e({type:`boolean`,coerce:true,...x$2(t)})}function $i$1(e,t){return new e({type:`undefined`,...x$2(t)})}function ea$1(e,t){return new e({type:`null`,...x$2(t)})}function ta$1(e){return new e({type:`any`})}function na$1(e){return new e({type:`unknown`})}function ra$1(e,t){return new e({type:`never`,...x$2(t)})}function ia$1(e,t){return new e({type:`void`,...x$2(t)})}function aa$1(e,t){return new e({type:`date`,...x$2(t)})}function oa$1(e,t){return new Qt$2({check:`less_than`,...x$2(t),value:e,inclusive:false})}function sa$1(e,t){return new Qt$2({check:`less_than`,...x$2(t),value:e,inclusive:true})}function ca$1(e,t){return new $t$2({check:`greater_than`,...x$2(t),value:e,inclusive:false})}function la$1(e,t){return new $t$2({check:`greater_than`,...x$2(t),value:e,inclusive:true})}function ua$1(e,t){return new en$2({check:`multiple_of`,...x$2(t),value:e})}function da$1(e,t){return new nn$2({check:`max_length`,...x$2(t),maximum:e})}function fa$1(e,t){return new rn$2({check:`min_length`,...x$2(t),minimum:e})}function pa$1(e,t){return new an$2({check:`length_equals`,...x$2(t),length:e})}function ma$1(e,t){return new sn$1({check:`string_format`,format:`regex`,...x$2(t),pattern:e})}function ha$1(e){return new cn({check:`string_format`,format:`lowercase`,...x$2(e)})}function ga$1(e){return new ln$1({check:`string_format`,format:`uppercase`,...x$2(e)})}function _a$1(e,t){return new un$1({check:`string_format`,format:`includes`,...x$2(t),includes:e})}function va$1(e,t){return new dn$2({check:`string_format`,format:`starts_with`,...x$2(t),prefix:e})}function ya$1(e,t){return new fn$1({check:`string_format`,format:`ends_with`,...x$2(t),suffix:e})}function R$2(e){return new pn$2({check:`overwrite`,tx:e})}function ba$1(e){return R$2(t=>t.normalize(e))}function xa$1(){return R$2(e=>e.trim())}function Sa$1(){return R$2(e=>e.toLowerCase())}function Ca$1(){return R$2(e=>e.toUpperCase())}function wa$1(){return R$2(e=>ne$1(e))}function Ta$1(e,t,n){return new e({type:`array`,element:t,...x$2(n)})}function Ea$1(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...x$2(n)})}function Da$1(e,t){let n=Oa$1(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(E$2(e,t.value,n._zod.def));else {let r=e;r.fatal&&(r.continue=false),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(E$2(r));}},e(t.value,t)),t);return n}function Oa$1(e,t){let n=new P$2({check:`custom`,...x$2(t)});return n._zod.check=e,n}function z$2(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&u$1(e,t,n[t]);return e}function ka(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??L$2,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function B$2(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return false;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),true}function V$2(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else {let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else {let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r);}let a=e._zod.parent;a&&(o.ref||=a,V$2(a,t,r),t.seen.get(a).isParent=true);}let c=t.metadataRegistry.get(e);return c&&z$2(o.schema,c),t.io===`input`&&H$2(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Aa(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function ja$1(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0]);}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return {ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${Aa(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return {ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return {defId:a,ref:i+Aa(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n;};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
58
|
+
|
|
59
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}r.count>1&&e.reused===`ref`&&a(n);}e.external&&(e.sharedDefsExtractedFor=e.external);}function Ma$1(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;Ma$1(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e);}}delete e.anyOf,e.type=n.length===1?n[0]:n;}const Na$1=new Set([`type`,`properties`,`required`,`additionalProperties`]),Pa$1=[`oneOf`,`anyOf`];function Fa$1(e){let t=e.additionalProperties;return t===void 0||t===false||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function Ia$1(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!Na$1.has(e))return null;t.push(n);}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??Fa$1(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t));}u$1(n,r,e.length===1?e[0]:Ia$1(e)??{allOf:e});}for(let t of e.required??[])r.add(t);}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===false))i.additionalProperties=false;else {let e=[];for(let n of t){let t=Fa$1(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t);}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e});}return i}function La$1(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of Na$1)if(t in e)return;let n=t.filter(e=>Pa$1.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=Ia$1(t);else {let e=n[0],i=Pa$1.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>Ia$1([...a,e]));if(o.some(e=>!e))return;r={[i]:o};}r&&(delete e.allOf,z$2(e,r));}function Ra$1(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):z$2(i,s),z$2(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e];}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e];}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]});};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of [...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())Ma$1(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of [n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e]);}for(let n of e.intersections)for(let e of t.get(n)??[])La$1(e);}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n);}z$2(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,u$1(o,e.defId,e.def));}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Ba$1(t,`input`,e.processors),output:Ba$1(t,`output`,e.processors)}},enumerable:false,writable:false}),n}catch{throw Error(`Error converting schema to JSON.`)}}function H$2(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return false;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return true;if(r.type===`array`)return H$2(r.element,n);if(r.type===`set`)return H$2(r.valueType,n);if(r.type===`lazy`)return H$2(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return H$2(r.innerType,n);if(r.type===`intersection`)return H$2(r.left,n)||H$2(r.right,n);if(r.type===`record`||r.type===`map`)return H$2(r.keyType,n)||H$2(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?true:H$2(r.in,n)||H$2(r.out,n);if(r.type===`object`){for(let e in r.shape)if(H$2(r.shape[e],n))return true;return false}if(r.type===`union`){for(let e of r.options)if(H$2(e,n))return true;return false}if(r.type===`tuple`){for(let e of r.items)if(H$2(e,n))return true;return !!(r.rest&&H$2(r.rest,n))}return false}const za$1=(e,t={})=>n=>{let r=ka({...n,processors:t});return V$2(e,r),ja$1(r,e),Ra$1(r,e)},Ba$1=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=ka({...i??{},target:a,io:t,processors:n});return V$2(e,o),ja$1(o,e),Ra$1(o,e)},U$2=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n);},W$2=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n);},Va$1=(e,t)=>{U$2(e,`minimum`,t),W$2(e,`maximum`,t);},Ha$1=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t);},Ua$1=(e,t)=>{e.patterns??=new Set,e.patterns.add(t);},Wa$1=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t];},Ga$1=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=true);},Ka$1=(e,t)=>U$2(e,`minimum`,t.minimum),qa$1=(e,t)=>W$2(e,`maximum`,t.maximum),Ja$1=e=>(t,n)=>{Ga$1(t,n.format);let[r,i]=e[n.format];U$2(t,`minimum`,r),W$2(t,`maximum`,i);},Ya$1={greater_than:(e,t)=>U$2(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>W$2(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>Ha$1(e,t.value),number_format:Ja$1(le$1),bigint_format:Ja$1(ue$1),min_length:Ka$1,max_length:qa$1,length_equals:(e,t)=>Va$1(e,t.length),min_size:Ka$1,max_size:qa$1,size_equals:(e,t)=>Va$1(e,t.size),string_format:(e,t)=>{Ga$1(e,t.format),t.pattern&&Ua$1(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=true);},mime_type:(e,t)=>Wa$1(e,t.mime)};function G$2(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)Ya$1[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&U$2(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&U$2(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&W$2(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&W$2(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&Ha$1(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=true)),i.mime&&Wa$1(t,i.mime);for(let e of i.patterns??[])Ua$1(t,e);return t}const Xa$1={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Za$1=new Map([[Xn$1,Mt$2],[Qn$1,Nt$2]]),Qa$1=e=>Za$1.get(e)??e,$a$1=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=G$2(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Xa$1[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(Qa$1);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))]);}},eo$1=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=G$2(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=true):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=true):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):B$2(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))]);}},to$1=(e,t,n,r)=>{n.type=`boolean`;},no$1=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=true,n.enum=[null]):n.type=`null`;},ro$1=(e,t,n,r)=>{B$2(e,t,n,r,`Undefined cannot be represented in JSON Schema`);},io$1=(e,t,n,r)=>{B$2(e,t,n,r,`Void cannot be represented in JSON Schema`);},ao$1=(e,t,n,r)=>{n.not={};},oo$1=(e,t,n,r)=>{B$2(e,t,n,r,`Date cannot be represented in JSON Schema`);},so$1=(t,n,r,i)=>{let a=t._zod.def,o=e(a.entries);if(o.length===0){r.not={};return}o.every(e=>typeof e==`number`)&&(r.type=`number`),o.every(e=>typeof e==`string`)&&(r.type=`string`),r.enum=o;},co$1=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(B$2(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(B$2(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o));}else a.push(o);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e;}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a;},lo$1=(e,t,n,r)=>{B$2(e,t,n,r,`Custom types cannot be represented in JSON Schema`);},uo$1=(e,t,n,r)=>{B$2(e,t,n,r,`Transforms cannot be represented in JSON Schema`);},fo$1=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=G$2(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=V$2(a.element,t,{...r,path:[...r.path,`items`]});};function po$1(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?po$1(t.out):t.type===`catch`?po$1(t.innerType):e._zod.optin}const mo$1=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&B$2(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)u$1(i.properties,e,V$2(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?po$1(n)===void 0:n._zod.optout===void 0)&&s.push(e);}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=false:a.catchall?a.catchall&&(i.additionalProperties=V$2(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=false);},ho$1=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===false,o=i.options.map((e,n)=>V$2(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o;},go$1=(e,t,n,r)=>{let i=e._zod.def,a=V$2(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=V$2(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c);};function _o(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=_o(e,r,n);return i===r?t:i}for(let r of [`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>_o(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a});}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i?(p.type=`string`,a||(p.pattern=(r.includes(`number`)?Wt$2:Ut$2).source),p):p}const vo$1=new WeakMap;function yo(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of vo$1.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===true||n.has(a))continue;let o=_o(t,a,new Set);o!==a&&n.set(a,o);}if(n.size)for(let t of e.seen.values())for(let e of [t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t);}}const bo$1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=G$2(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=V$2(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)u$1(i.patternProperties,Qa$1(t).source,e);}else {if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=V$2(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=vo$1.get(t);n||(n=[],vo$1.set(t,n),t.deferred.push(()=>yo(t))),n.push(e);}i.additionalProperties=V$2(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});}let c=o._zod.values,l=t.io===`input`&&po$1(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String));}},xo$1=(e,t,n,r)=>{let i=e._zod.def,a=V$2(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=true):n.anyOf=[a,{type:`null`}];},So$1=(e,t,n,r)=>{let i=e._zod.def;V$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;},Co$1=Symbol();function wo$1(e,t,n,r,i){let a=false,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=true,null):t);return a?(B$2(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),Co$1):JSON.parse(o)}const To$1=(e,t,n,r)=>{let i=e._zod.def;V$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=wo$1(i.defaultValue,e,t,n,r);o!==Co$1&&(n.default=o);},Eo$1=(e,t,n,r)=>{let i=e._zod.def;V$2(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=wo$1(i.defaultValue,e,t,n,r);o!==Co$1&&(n._prefault=o);},Do$1=(e,t,n,r)=>{let i=e._zod.def;V$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0);}catch{B$2(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o;},Oo$1=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;V$2(o,t,r);let s=t.seen.get(e);s.ref=o;},ko$1=(e,t,n,r)=>{let i=e._zod.def;V$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=true;},Ao$1=(e,t,n,r)=>{let i=e._zod.def;V$2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;},jo$1=(e,t,n,r)=>{let i=e._zod.innerType;V$2(i,t,r);let a=t.seen.get(e);a.ref=i;},Mo$1=new WeakSet([Object.prototype,Error.prototype]);function No$1(e,t,n){Object.defineProperty(e,t,{configurable:true,enumerable:false,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:true,writable:true}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:true,writable:true});}});}const K$2=A$2(`ZodError`,(e,t)=>{qe$2.init(e,t),e.name=`ZodError`;let r=Object.getPrototypeOf(e);Mo$1.has(r)||(Mo$1.add(r),No$1(r,`format`,e=>t=>Xe$2(e,t)),No$1(r,`flatten`,e=>t=>Ye$2(e,t)),No$1(r,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,n,2);}),No$1(r,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,n,2);}),Object.defineProperty(r,"isEmpty",{configurable:true,enumerable:false,get(){return this.issues.length===0}}));},void 0,{Parent:Error}),Po$1=Qe$2(K$2),Fo$1=$e$2(K$2),Io$1=et$2(K$2),Lo$1=nt$2(K$2),Ro$1=ct$2(K$2),zo$1=lt$2(K$2),Bo$1=ut$2(K$2),Vo$1=dt$2(K$2),Ho$1=ft$2(K$2),Uo$1=pt$2(K$2),Wo$1=mt$2(K$2),Go=ht$2(K$2);function Ko$1(){M$2.localeError||N$2(hi$1());}function qo(){M$2.memoizer||N$2({memoizer:fi()});}const q$2=A$2(`ZodType`,(e,t)=>(Ko$1(),F$2.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(g$1(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:true})},with(...e){return this.check(...e)},clone(e,t){return b$2(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(kc$1(e,t))},superRefine(e,t){return this.check(Ac$1(e,t))},overwrite(e){return this.check(R$2(e))},optional(){return cc$1(this)},exactOptional(){return uc$1(this)},nullable(){return fc$1(this)},nullish(){return cc$1(fc$1(this))},nonoptional(e){return vc(this,e)},array(){return Us$1(this)},or(e){return Js$1([this,e])},and(e){return Qs$1(this,e)},transform(e){return Sc$1(this,oc$1(e))},default(e){return mc$1(this,e)},prefault(e){return gc$1(this,e)},catch(e){return bc$1(this,e)},pipe(e){return Sc$1(this,e)},readonly(){return Tc$1(this)},describe(e){let t=this.clone();return L$2.add(t,{description:e}),t},meta(...e){if(e.length===0)return L$2.get(this);let t=this.clone();return L$2.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Oe$2(this,`~standard`,{...vn$1(this),jsonSchema:{input:Ba$1(this,`input`),output:Ba$1(this,`output`)}})},set"~standard"(e){D$2(this,`~standard`,e);},parse:function e(t,n){return Po$1(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Fo$1(this,t,n,{callee:e})},safeParse(e,t){return Io$1(this,e,t)},async safeParseAsync(e,t){return Lo$1(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){D$2(this,`spa`,e);},validate(e,t){return at$2(this,e,t)},validateAsync(e,t){return st$2(this,e,t)},encode:function e(t,n){return Ro$1(this,t,n,{callee:e})},decode:function e(t,n){return zo$1(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Bo$1(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Vo$1(this,t,n,{callee:e})},safeEncode(e,t){return Ho$1(this,e,t)},safeDecode(e,t){return Uo$1(this,e,t)},async safeEncodeAsync(e,t){return Wo$1(this,e,t)},async safeDecodeAsync(e,t){return Go(this,e,t)},toJSONSchema(e){return za$1(this,{})(e)},get description(){return L$2.get(this)?.description},get _def(){return this._zod.def}}),Jo$1=A$2(`_ZodString`,(e,t)=>{yn$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$a$1(e,t,n);},ke$2({format:e=>G$2(e).format??null,minLength:e=>G$2(e).minimum??null,maxLength:e=>G$2(e).maximum??null},{regex(...e){return this.check(ma$1(...e))},includes(...e){return this.check(_a$1(...e))},startsWith(...e){return this.check(va$1(...e))},endsWith(...e){return this.check(ya$1(...e))},min(...e){return this.check(fa$1(...e))},max(...e){return this.check(da$1(...e))},length(...e){return this.check(pa$1(...e))},nonempty(...e){return this.check(fa$1(1,...e))},lowercase(e){return this.check(ha$1(e))},uppercase(e){return this.check(ga$1(e))},trim(){return this.check(xa$1())},normalize(...e){return this.check(ba$1(...e))},toLowerCase(){return this.check(Sa$1())},toUpperCase(){return this.check(Ca$1())},slugify(){return this.check(wa$1())}})),Yo$1=A$2(`ZodString`,(e,t)=>{yn$1.init(e,t),Jo$1.init(e,t);},{email(e){return this.check(Si$1(ts$1,e))},url(e){return this.check(Oi$1(as$1,e))},jwt(e){return this.check(Ui(xs$1,e))},emoji(e){return this.check(ki$1(ss$1,e))},guid(e){return this.check(Ci$1(rs$1,e))},uuid(e){return this.check(wi$1(Y$2,e))},uuidv4(e){return this.check(Ti$1(Y$2,e))},uuidv6(e){return this.check(Ei$1(Y$2,e))},uuidv7(e){return this.check(Di$1(Y$2,e))},nanoid(e){return this.check(Ai$1(cs$1,e))},cuid(e){return this.check(ji$1(ls$1,e))},cuid2(e){return this.check(Mi$1(us$1,e))},ulid(e){return this.check(Ni$1(ds$1,e))},base64(e){return this.check(Bi$1(vs$1,e))},base64url(e){return this.check(Vi$1(ys$1,e))},xid(e){return this.check(Pi$1(fs$1,e))},ksuid(e){return this.check(Fi$1(ps$1,e))},ipv4(e){return this.check(Ii$1(ms$1,e))},ipv6(e){return this.check(Li(hs$1,e))},cidrv4(e){return this.check(Ri$1(gs,e))},cidrv6(e){return this.check(zi$1(_s$1,e))},e164(e){return this.check(Hi$1(bs$1,e))},datetime(e){return this.check(Wi(Zo,e))},date(e){return this.check(Gi$1(Qo,e))},time(e){return this.check(Ki$1($o$1,e))},duration(e){return this.check(qi$1(es$1,e))}});function Xo$1(e){return bi$1(Yo$1,e)}const J$2=A$2(`ZodStringFormat`,(e,t)=>{I$2.init(e,t),Jo$1.init(e,t);}),Zo=A$2(`ZodISODateTime`,(e,t)=>{Rn$1.init(e,t),J$2.init(e,t);}),Qo=A$2(`ZodISODate`,(e,t)=>{zn$1.init(e,t),J$2.init(e,t);}),$o$1=A$2(`ZodISOTime`,(e,t)=>{Bn$1.init(e,t),J$2.init(e,t);}),es$1=A$2(`ZodISODuration`,(e,t)=>{Vn$1.init(e,t),J$2.init(e,t);}),ts$1=A$2(`ZodEmail`,(e,t)=>{Sn.init(e,t),J$2.init(e,t);});function ns$1(e){return Si$1(ts$1,e)}const rs$1=A$2(`ZodGUID`,(e,t)=>{bn.init(e,t),J$2.init(e,t);}),Y$2=A$2(`ZodUUID`,(e,t)=>{xn$1.init(e,t),J$2.init(e,t);});function is$1(e){return wi$1(Y$2,e)}const as$1=A$2(`ZodURL`,(e,t)=>{An.init(e,t),J$2.init(e,t);});function os$1(e){return Oi$1(as$1,e)}const ss$1=A$2(`ZodEmoji`,(e,t)=>{jn$1.init(e,t),J$2.init(e,t);}),cs$1=A$2(`ZodNanoID`,(e,t)=>{Mn$1.init(e,t),J$2.init(e,t);}),ls$1=A$2(`ZodCUID`,(e,t)=>{Nn.init(e,t),J$2.init(e,t);}),us$1=A$2(`ZodCUID2`,(e,t)=>{Pn$1.init(e,t),J$2.init(e,t);}),ds$1=A$2(`ZodULID`,(e,t)=>{Fn$1.init(e,t),J$2.init(e,t);}),fs$1=A$2(`ZodXID`,(e,t)=>{In$1.init(e,t),J$2.init(e,t);}),ps$1=A$2(`ZodKSUID`,(e,t)=>{Ln$1.init(e,t),J$2.init(e,t);}),ms$1=A$2(`ZodIPv4`,(e,t)=>{Hn$1.init(e,t),J$2.init(e,t);}),hs$1=A$2(`ZodIPv6`,(e,t)=>{Gn$1.init(e,t),J$2.init(e,t);}),gs=A$2(`ZodCIDRv4`,(e,t)=>{Kn$1.init(e,t),J$2.init(e,t);}),_s$1=A$2(`ZodCIDRv6`,(e,t)=>{Jn$1.init(e,t),J$2.init(e,t);}),vs$1=A$2(`ZodBase64`,(e,t)=>{Zn$1.init(e,t),J$2.init(e,t);}),ys$1=A$2(`ZodBase64URL`,(e,t)=>{er$1.init(e,t),J$2.init(e,t);}),bs$1=A$2(`ZodE164`,(e,t)=>{tr$1.init(e,t),J$2.init(e,t);}),xs$1=A$2(`ZodJWT`,(e,t)=>{rr$1.init(e,t),J$2.init(e,t);}),Ss=A$2(`ZodNumber`,(e,t)=>{ir$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>eo$1(e,t,n,r),e.isFinite=true;},ke$2({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=G$2(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=G$2(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=G$2(e);return !!t||!!n?.some(Number.isSafeInteger)},format:e=>G$2(e).format??null},{gt(e,t){return this.check(ca$1(e,t))},gte(e,t){return this.check(la$1(e,t))},min(e,t){return this.check(la$1(e,t))},lt(e,t){return this.check(oa$1(e,t))},lte(e,t){return this.check(sa$1(e,t))},max(e,t){return this.check(sa$1(e,t))},int(e){return this.check(Ts$1(e))},safe(e){return this.check(Ts$1(e))},positive(e){return this.check(ca$1(0,e))},nonnegative(e){return this.check(la$1(0,e))},negative(e){return this.check(oa$1(0,e))},nonpositive(e){return this.check(sa$1(0,e))},multipleOf(e,t){return this.check(ua$1(e,t))},step(e,t){return this.check(ua$1(e,t))},finite(){return this}}));function Cs$1(e){return Ji$1(Ss,e)}const ws=A$2(`ZodNumberFormat`,(e,t)=>{ar$1.init(e,t),Ss.init(e,t);});function Ts$1(e){return Xi$1(ws,e)}const Es=A$2(`ZodBoolean`,(e,t)=>{or$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>to$1(e,t,n);});function Ds$1(e){return Zi$1(Es,e)}const Os=A$2(`ZodUndefined`,(e,t)=>{sr$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ro$1(e,t,n,r);});function ks$1(e){return $i$1(Os,e)}const As$1=A$2(`ZodNull`,(e,t)=>{cr$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>no$1(e,t,n);});function js$1(e){return ea$1(As$1,e)}const Ms$1=A$2(`ZodAny`,(e,t)=>{lr$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0;});function Ns$1(){return ta$1(Ms$1)}const Ps$1=A$2(`ZodUnknown`,(e,t)=>{ur$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0;});function Fs$1(){return na$1(Ps$1)}const Is=A$2(`ZodNever`,(e,t)=>{dr$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ao$1(e,t,n);});function Ls$1(e){return ra$1(Is,e)}const Rs$1=A$2(`ZodVoid`,(e,t)=>{fr$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>io$1(e,t,n,r);});function zs$1(e){return ia$1(Rs$1,e)}const Bs$1=A$2(`ZodDate`,(e,t)=>{pr$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oo$1(e,t,n,r),e.min=(t,n)=>e.check(la$1(t,n)),e.max=(t,n)=>e.check(sa$1(t,n));},ke$2({minDate:e=>{let{minimum:t}=G$2(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=G$2(e);return t?new Date(t):null}},{}));function Vs$1(e){return aa$1(Bs$1,e)}const Hs$1=A$2(`ZodArray`,(e,t)=>{qo(),_r$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fo$1(e,t,n,r),e.element=t.element;},{min(e,t){return this.check(fa$1(e,t))},nonempty(e){return this.check(fa$1(1,e))},max(e,t){return this.check(da$1(e,t))},length(e,t){return this.check(pa$1(e,t))},unwrap(){return this.element}});function Us$1(e,t){return Ta$1(Hs$1,e,t)}const Ws$1=A$2(`ZodObject`,(e,t)=>{qo(),Cr.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mo$1(e,t,n,r),Pe$2(e,`shape`,e=>e._zod.def.shape,false);},{keyof(){return nc$1(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(g$1(this._zod.def,{catchall:e}))},passthrough(){return this.clone(g$1(this._zod.def,{catchall:Fs$1()}))},loose(){return this.clone(g$1(this._zod.def,{catchall:Fs$1()}))},strict(){return this.clone(g$1(this._zod.def,{catchall:Ls$1()}))},strip(){return this.clone(g$1(this._zod.def,{catchall:void 0}))},extend(e){return me$2(this,e)},safeExtend(e){return ge$2(this,e)},merge(e){return _e$2(this,e)},pick(e){return de$1(this,e)},omit(e){return pe$2(this,e)},partial(...e){return ve$2(sc$1,this,e[0])},exactPartial(...e){return ve$2(lc$1,this,e[0],`exactPartial`)},required(...e){return ye$2(_c$1,this,e[0])}});function Gs$1(e,t){return new Ws$1({type:`object`,shape:e??{},...x$2(t)})}function Ks$1(e,t){return new Ws$1({type:`object`,shape:e,catchall:Ls$1(),...x$2(t)})}const qs$1=A$2(`ZodUnion`,(e,t)=>{Tr.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ho$1(e,t,n,r),e.options=t.options;});function Js$1(e,t){return new qs$1({type:`union`,options:e,...x$2(t)})}const Ys=A$2(`ZodDiscriminatedUnion`,(e,t)=>{qs$1.init(e,t),Dr.init(e,t);});function Xs$1(e,t,n){return new Ys({type:`union`,options:t,discriminator:e,...x$2(n)})}const Zs$1=A$2(`ZodIntersection`,(e,t)=>{Or.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>go$1(e,t,n,r);});function Qs$1(e,t){return new Zs$1({type:`intersection`,left:e,right:t})}const $s$1=A$2(`ZodRecord`,(e,t)=>{qo(),jr.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bo$1(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType;});function ec$1(e,t,n){return !t||!t._zod?new $s$1({type:`record`,keyType:Xo$1(),valueType:e,...x$2(t)}):new $s$1({type:`record`,keyType:e,valueType:t,...x$2(n)})}const tc$1=A$2(`ZodEnum`,(e,t)=>{Mr.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>so$1(e,t,n),e.enum=t.entries,e.options=[...e._zod.values];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 tc$1({...t,checks:[],...x$2(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 tc$1({...t,checks:[],...x$2(r),entries:i})};});function nc$1(e,t){return new tc$1({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...x$2(t)})}const rc$1=A$2(`ZodLiteral`,(e,t)=>{Nr.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>co$1(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}});});function ic$1(e,t){return new rc$1({type:`literal`,values:Array.isArray(e)?e:[e],...x$2(t)})}const ac$1=A$2(`ZodTransform`,(e,t)=>{qo(),Pr.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uo$1(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Be$2(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(E$2(r,n.value,t));else {let t=r;t.fatal&&(t.continue=false),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(E$2(t));}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)};});function oc$1(e){return new ac$1({type:`transform`,transform:e})}const sc$1=A$2(`ZodOptional`,(e,t)=>{Ir.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ao$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function cc$1(e){return new sc$1({type:`optional`,innerType:e})}const lc$1=A$2(`ZodExactOptional`,(e,t)=>{Lr.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ao$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function uc$1(e){return new lc$1({type:`optional`,innerType:e})}const dc$1=A$2(`ZodNullable`,(e,t)=>{Rr.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xo$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function fc$1(e){return new dc$1({type:`nullable`,innerType:e})}const pc$1=A$2(`ZodDefault`,(e,t)=>{zr$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>To$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function mc$1(e,t){return new pc$1({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ae$1(t)}})}const hc$1=A$2(`ZodPrefault`,(e,t)=>{Vr$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Eo$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function gc$1(e,t){return new hc$1({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ae$1(t)}})}const _c$1=A$2(`ZodNonOptional`,(e,t)=>{Hr$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>So$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function vc(e,t){return new _c$1({type:`nonoptional`,innerType:e,...x$2(t)})}const yc=A$2(`ZodCatch`,(e,t)=>{Gr.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Do$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function bc$1(e,t){return new yc({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Fe$2(t)})}const xc$1=A$2(`ZodPipe`,(e,t)=>{Kr$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oo$1(e,t,n,r),e.in=t.in,e.out=t.out;});function Sc$1(e,t){return new xc$1({type:`pipe`,in:e,out:t})}const Cc$1=A$2(`ZodPreprocess`,(e,t)=>{xc$1.init(e,t),Jr$1.init(e,t);}),wc$1=A$2(`ZodReadonly`,(e,t)=>{Yr$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ko$1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType;});function Tc$1(e){return new wc$1({type:`readonly`,innerType:e})}const Ec$1=A$2(`ZodLazy`,(e,t)=>{Zr$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jo$1(e,t,n,r),e.unwrap=()=>e._zod.def.getter();});function Dc$1(e){return new Ec$1({type:`lazy`,getter:e})}const Oc$1=A$2(`ZodCustom`,(e,t)=>{Qr$1.init(e,t),q$2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lo$1(e,t,n,r);});function kc$1(e,t={}){return Ea$1(Oc$1,e,t)}function Ac$1(e,t){return Da$1(e,t)}function jc$1(e,t){return new Cc$1({type:`pipe`,in:oc$1(e),out:t})}var Mc$1=/^(?:[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 Nc$1(e){return typeof e==`string`&&Mc$1.test(e)}for(var X$2=[],Pc$1=0;Pc$1<256;++Pc$1)X$2.push((Pc$1+256).toString(16).slice(1));function Fc$1(e,t=0){return (X$2[e[t+0]]+X$2[e[t+1]]+X$2[e[t+2]]+X$2[e[t+3]]+`-`+X$2[e[t+4]]+X$2[e[t+5]]+`-`+X$2[e[t+6]]+X$2[e[t+7]]+`-`+X$2[e[t+8]]+X$2[e[t+9]]+`-`+X$2[e[t+10]]+X$2[e[t+11]]+X$2[e[t+12]]+X$2[e[t+13]]+X$2[e[t+14]]+X$2[e[t+15]]).toLowerCase()}function Ic$1(e,t=0){var n=Fc$1(e,t);if(!Nc$1(n))throw TypeError(`Stringified UUID is invalid`);return n}var Lc$1,Rc$1=new Uint8Array(16);function zc$1(){if(!Lc$1&&(Lc$1=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Lc$1))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return Lc$1(Rc$1)}var Bc$1=null,Vc$1=null,Z$2=0;function Hc$1(e,t,n){e||={};var r=0,i=t||new Uint8Array(16),a=e.random||(e.rng||zc$1)(),o=e.msecs===void 0?Date.now():e.msecs,s=e.seq===void 0?null:e.seq,c=Vc$1,l=Bc$1;return o>Z$2&&e.msecs===void 0&&(Z$2=o,s!==null&&(c=null,l=null)),s!==null&&(s>2147483647&&(s=2147483647),c=s>>>19&4095,l=s&524287),(c===null||l===null)&&(c=a[6]&127,c=c<<8|a[7],l=a[8]&63,l=l<<8|a[9],l=l<<5|a[10]>>>3),o+1e4>Z$2&&s===null?++l>524287&&(l=0,++c>4095&&(c=0,Z$2++)):Z$2=o,Vc$1=c,Bc$1=l,i[r++]=Z$2/1099511627776&255,i[r++]=Z$2/4294967296&255,i[r++]=Z$2/16777216&255,i[r++]=Z$2/65536&255,i[r++]=Z$2/256&255,i[r++]=Z$2&255,i[r++]=c>>>4&15|112,i[r++]=c&255,i[r++]=l>>>13&63|128,i[r++]=l>>>5&255,i[r++]=l<<3&255|a[10]&7,i[r++]=a[11],i[r++]=a[12],i[r++]=a[13],i[r++]=a[14],i[r++]=a[15],t||Fc$1(i)}function Uc$1(e){let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var Q$3=`0123456789abcdefghjkmnpqrstvwxyz`,$$3=new Uint8Array([255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,10,11,12,13,14,15,16,17,255,18,19,255,20,21,255,22,23,24,25,26,255,27,28,29,30,31,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255]);function Wc$1(e){let t=Array(26).fill(``);if(e.length!==16)throw Error(`Invalid length. Expected 16 bytes, got ${e.length}. Input: ${e}`);return t[0]=Q$3[(e[0]&224)>>5],t[1]=Q$3[e[0]&31],t[2]=Q$3[(e[1]&248)>>3],t[3]=Q$3[(e[1]&7)<<2|(e[2]&192)>>6],t[4]=Q$3[(e[2]&62)>>1],t[5]=Q$3[(e[2]&1)<<4|(e[3]&240)>>4],t[6]=Q$3[(e[3]&15)<<1|(e[4]&128)>>7],t[7]=Q$3[(e[4]&124)>>2],t[8]=Q$3[(e[4]&3)<<3|(e[5]&224)>>5],t[9]=Q$3[e[5]&31],t[10]=Q$3[(e[6]&248)>>3],t[11]=Q$3[(e[6]&7)<<2|(e[7]&192)>>6],t[12]=Q$3[(e[7]&62)>>1],t[13]=Q$3[(e[7]&1)<<4|(e[8]&240)>>4],t[14]=Q$3[(e[8]&15)<<1|(e[9]&128)>>7],t[15]=Q$3[(e[9]&124)>>2],t[16]=Q$3[(e[9]&3)<<3|(e[10]&224)>>5],t[17]=Q$3[e[10]&31],t[18]=Q$3[(e[11]&248)>>3],t[19]=Q$3[(e[11]&7)<<2|(e[12]&192)>>6],t[20]=Q$3[(e[12]&62)>>1],t[21]=Q$3[(e[12]&1)<<4|(e[13]&240)>>4],t[22]=Q$3[(e[13]&15)<<1|(e[14]&128)>>7],t[23]=Q$3[(e[14]&124)>>2],t[24]=Q$3[(e[14]&3)<<3|(e[15]&224)>>5],t[25]=Q$3[e[15]&31],t.join(``)}function Gc$1(e){if(e.length!==26)throw Error(`Invalid length. Expected 26 bytes, got ${e.length}. Input: ${e}`);let t=new TextEncoder().encode(e);if($$3[t[0]]===255||$$3[t[1]]===255||$$3[t[2]]===255||$$3[t[3]]===255||$$3[t[4]]===255||$$3[t[5]]===255||$$3[t[6]]===255||$$3[t[7]]===255||$$3[t[8]]===255||$$3[t[9]]===255||$$3[t[10]]===255||$$3[t[11]]===255||$$3[t[12]]===255||$$3[t[13]]===255||$$3[t[14]]===255||$$3[t[15]]===255||$$3[t[16]]===255||$$3[t[17]]===255||$$3[t[18]]===255||$$3[t[19]]===255||$$3[t[20]]===255||$$3[t[21]]===255||$$3[t[22]]===255||$$3[t[23]]===255||$$3[t[24]]===255||$$3[t[25]]===255)throw Error(`Invalid base32 character`);let n=new Uint8Array(16);return n[0]=$$3[t[0]]<<5|$$3[t[1]],n[1]=$$3[t[2]]<<3|$$3[t[3]]>>2,n[2]=($$3[t[3]]&3)<<6|$$3[t[4]]<<1|$$3[t[5]]>>4,n[3]=($$3[t[5]]&15)<<4|$$3[t[6]]>>1,n[4]=($$3[t[6]]&1)<<7|$$3[t[7]]<<2|$$3[t[8]]>>3,n[5]=($$3[t[8]]&7)<<5|$$3[t[9]],n[6]=$$3[t[10]]<<3|$$3[t[11]]>>2,n[7]=($$3[t[11]]&3)<<6|$$3[t[12]]<<1|$$3[t[13]]>>4,n[8]=($$3[t[13]]&15)<<4|$$3[t[14]]>>1,n[9]=($$3[t[14]]&1)<<7|$$3[t[15]]<<2|$$3[t[16]]>>3,n[10]=($$3[t[16]]&7)<<5|$$3[t[17]],n[11]=$$3[t[18]]<<3|$$3[t[19]]>>2,n[12]=($$3[t[19]]&3)<<6|$$3[t[20]]<<1|$$3[t[21]]>>4,n[13]=($$3[t[21]]&15)<<4|$$3[t[22]]>>1,n[14]=($$3[t[22]]&1)<<7|$$3[t[23]]<<2|$$3[t[24]]>>3,n[15]=($$3[t[24]]&7)<<5|$$3[t[25]],n}function Kc$1(e){if(e.length>63)return false;let t,n,r;for(n=0,r=e.length;n<r;n+=1){t=e.charCodeAt(n);let i=t>96&&t<123,a=t===95;if((n===0||n===r-1)&&!i||!(i||a))return false}return true}var qc$1=class qc extends Error{constructor(e){super(`Invalid prefix "${e}". Must be at most 63 ASCII letters [a-z_]`),this.name=`InvalidPrefixError`;}},Jc$1=class Jc extends Error{constructor(e,t){super(`Invalid TypeId. Prefix mismatch. Expected ${e}, got ${t}`),this.name=`PrefixMismatchError`;}},Yc$1=class Yc extends Error{constructor(e){super(`Invalid TypeId. Prefix cannot be empty when there's a separator: ${e}`),this.name=`EmptyPrefixError`;}},Xc$1=class Xc extends Error{constructor(e){super(`Invalid length. Suffix should have 26 characters, got ${e}`),this.name=`InvalidSuffixLengthError`;}},Zc$1=class Zc extends Error{constructor(e){super(`Invalid suffix. First character "${e}" must be in the range [0-7]`),this.name=`InvalidSuffixCharacterError`;}},Qc$1=class Qc extends Error{constructor(e,t){super(`Cannot convert TypeID of type ${e} to type ${t}`),this.name=`TypeIDConversionError`;}};function $c$1(e=``,t=``){if(!Kc$1(e))throw new qc$1(e);let n;if(t)n=t;else {let e=new Uint8Array(16);Hc$1(void 0,e),n=Wc$1(e);}if(n.length!==26)throw new Xc$1(n.length);if(n[0]>`7`)throw new Zc$1(n[0]);return Gc$1(n),e===``?n:`${e}_${n}`}function el$1(e,t){let n,r,i=e.lastIndexOf(`_`);if(i===-1)n=``,r=e;else if(n=e.substring(0,i),r=e.substring(i+1),!n)throw new Yc$1(e);if(!r)throw new Xc$1(0);if(t&&n!==t)throw new Jc$1(t,n);return $c$1(n,r)}function tl$1(e){let t=e.lastIndexOf(`_`);return t===-1?``:e.substring(0,t)}function nl$1(e){let t=e.lastIndexOf(`_`);return t===-1?e:e.substring(t+1)}var rl$1=class rl{constructor(e,t=``){this.prefix=e,this.suffix=t;let n=$c$1(e,t);this.prefix=tl$1(n),this.suffix=nl$1(n);}getType(){return this.prefix}getSuffix(){return this.suffix}asType(e){let t=this;if(t.prefix!==e)throw new Qc$1(t.prefix,e);return t}toUUIDBytes(){return Gc$1(this.suffix)}toUUID(){return Ic$1(this.toUUIDBytes())}toString(){return this.prefix===``?this.suffix:`${this.prefix}_${this.suffix}`}static fromString(e,t){let n=el$1(e,t);return new rl$1(tl$1(n),nl$1(n))}static fromUUIDBytes(e,t){return new rl$1(e,Wc$1(t))}static fromUUID(e,t){return new rl$1(e,Wc$1(Uc$1(t)))}};function il$1(e=``,t=``){return new rl$1(e,t)}const al$1={admission:`adm`,integration:`int`,integrationBackfill:`ibf`,anonymous:`anon`,beneficiary:`ben`,coupon:`cpn`,couponCode:`cod`,customer:`cus`,event:`evt`,eventCollaborator:`ecl`,eventCollaboratorInvite:`evi`,membership:`mem`,membershipBenefitClaim:`mbc`,membershipCharge:`mch`,membershipFob:`fob`,membershipProgram:`mpg`,membershipPurchase:`mpu`,membershipSubscription:`msb`,membershipTerm:`mtm`,order:`ord`,orderItem:`itm`,orderFee:`fee`,permissionScope:`psc`,permissionRole:`prl`,permissionSnapshot:`pss`,payout:`pyt`,paymentDispute:`pds`,webhookInboxEvent:`wih`,payoutAdjustmentApplication:`paa`,payoutAdjustment:`adj`,platformFunding:`pfu`,payoutTransfer:`xfr`,promoter:`pmt`,refund:`rfd`,cancellation:`cnl`,section:`sct`,scan:`scn`,team:`tem`,teamDeletion:`tdl`,teamMember:`mbr`,teamInvite:`inv`,teamGateway:`tgw`,teamGatewayAccount:`tga`,taxProfile:`txp`,tenant:`tnt`,ticket:`tkt`,user:`usr`,venue:`ven`,location:`loc`,request:`req`,report:`rpt`,walletDevice:`wdv`,schedule:`sch`,session:`ssn`,trackingEvent:`tev`,trackingStats:`sta`,hllShard:`shr`,timeline:`tln`,notification:`ntf`};function ol$1(e){return il$1(al$1[e])}const sl$1=`ses_sid`,cl$1=`ses_aid`;function ll$1(){return ol$1(`session`).toString()}function ul$1(){return ol$1(`anonymous`).toString()}function dl$1(e){let t=e.getCookie(sl$1);if(t)return t;let n=ll$1();return e.setCookie(sl$1,n),n}function fl$1(e){let t=e.getItem(cl$1);if(t)return t;let n=ul$1();return e.setItem(cl$1,n),n}function pl$1(e){let t=ll$1(),n=ul$1();return e.setCookie(sl$1,t),e.setItem(cl$1,n),{sessionId:t,anonymousId:n}}const hl=nc$1(`Page Viewed.Screen Viewed.Products Searched.Product List Viewed.Product List Filtered.Promotion Viewed.Promotion Clicked.Product Clicked.Product Viewed.Product Added.Product Removed.Cart Viewed.Checkout Started.Checkout Step Viewed.Checkout Step Completed.Payment Info Entered.Order Completed.Order Updated.Order Refunded.Order Cancelled.Coupon Entered.Coupon Applied.Coupon Denied.Coupon Removed.Product Added to Wishlist.Product Removed from Wishlist.Wishlist Product Added to Cart.Product Shared.Cart Shared.Product Reviewed`.split(`.`)),gl=hl.enum;
|
|
60
|
+
|
|
61
|
+
function pe$1(e){return e[0]??{}}function me$1(e){return Array.isArray(e)?e:e==null?[]:[e]}const he$1=`orpc`;var ge$1=class ge extends Error{constructor(...e){super(...e),this.name=`AbortError`;}};function _e$1(e){let t;return ()=>{if(t)return t.result;let n=e();return t={result:n},n}}function ve$1(e){let t=Promise.resolve();return (...n)=>t=t.catch(()=>{}).then(()=>e(...n))}function ye$1(){return globalThis[`__@orpc/shared@1.16.2/otel/config__`]}function be$1(e,t={},n){return (ye$1()?.tracer)?.startSpan(e,t,n)}function xe$1(e,t,n={}){if(!e)return;let r=Se$1(t);e.recordException(r),(!n.signal?.aborted||n.signal.reason!==t)&&e.setStatus({code:2,message:r.message});}function Se$1(e){if(e instanceof Error){let t={message:e.message,name:e.name,stack:e.stack};return `code`in e&&(typeof e.code==`string`||typeof e.code==`number`)&&(t.code=e.code),t}return {message:String(e)}}async function Ce$1({name:e,context:t,...n},r){let i=ye$1()?.tracer;if(!i)return r();let a=async e=>{try{return await r(e)}catch(t){throw xe$1(e,t,n),t}finally{e.end();}};return t?i.startActiveSpan(e,n,t,a):i.startActiveSpan(e,n,a)}async function we$1(e,t){let n=ye$1();if(!e||!n)return t();let r=n.trace.setSpan(n.context.active(),e);return n.context.with(r,t)}function Te$1(e){return !e||typeof e!=`object`?false:`next`in e&&typeof e.next==`function`&&Symbol.asyncIterator in e&&typeof e[Symbol.asyncIterator]==`function`}const Ee$1=Symbol.asyncDispose??Symbol.for(`asyncDispose`);var De$1=class De{#e=false;#t=false;#n;#r;constructor(e,t){this.#n=t,this.#r=ve$1(async()=>{if(this.#e)return {done:true,value:void 0};try{let t=await e();return t.done&&(this.#e=true),t}catch(e){throw this.#e=true,e}finally{this.#e&&!this.#t&&(this.#t=true,await this.#n(`next`));}});}next(){return this.#r()}async return(e){return this.#e=true,this.#t||(this.#t=true,await this.#n(`return`)),{done:true,value:e}}async throw(e){throw this.#e=true,this.#t||(this.#t=true,await this.#n(`throw`)),e}async[Ee$1](){this.#e=true,this.#t||(this.#t=true,await this.#n(`dispose`));}[Symbol.asyncIterator](){return this}};function Oe$1({name:e,...t},n){let r;return new De$1(async()=>{r??=be$1(e);try{let e=await we$1(r,()=>n.next());return r?.addEvent(e.done?`completed`:`yielded`),e}catch(e){throw xe$1(r,e,t),e}},async e=>{try{e!==`next`&&await we$1(r,()=>n.return?.());}catch(e){throw xe$1(r,e,t),e}finally{r?.end();}})}function ke$1(e,t,n){let r=(t,i)=>{let a=e[i];return a?a({...t,next:(e=t)=>r(e,i+1)}):n(t)};return r(t,0)}function Ae$1(e){if(e)return JSON.parse(e)}function je$1(e){return JSON.stringify(e)}function Me$1(e){return Pe$1(e)?Object.getPrototypeOf(e)?.constructor:null}function Ne$1(e){if(!e||typeof e!=`object`)return false;let t=Object.getPrototypeOf(e);return t===Object.prototype||!t||!t.constructor}function Pe$1(e){return !!e&&(typeof e==`object`||typeof e==`function`)}function Fe$1(e,t){let n=e;for(let e of t){if(!Pe$1(n))return;n=n[e];}return n}const Ie$1=(()=>{let e=function(){};return e.prototype=Object.create(null),Object.freeze(e.prototype),e})();function Le$1(e,...t){return typeof e==`function`?e(...t):e}function Re$1(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return t!==`then`||typeof r!=`function`?r:new Proxy(r,{apply(t,n,r){if(r.length!==2||r.some(e=>!Be$1(e)))return Reflect.apply(t,n,r);let i=true;r[0].call(n,Re$1(new Proxy(e,{get:(e,t,n)=>{if(i&&t===`then`){i=false;return}return Reflect.get(e,t,n)}})));}})}})}const ze$1=/^\s*function\s*\(\)\s*\{\s*\[native code\]\s*\}\s*$/;function Be$1(e){return typeof e==`function`&&ze$1.test(e.toString())}function Ve$1(e){try{return decodeURIComponent(e)}catch{return e}}const He$1=new Set([`bind`,`valueOf`,`toString`,`toJSON`]),Ue$1={BAD_REQUEST:{status:400,message:`Bad Request`},UNAUTHORIZED:{status:401,message:`Unauthorized`},FORBIDDEN:{status:403,message:`Forbidden`},NOT_FOUND:{status:404,message:`Not Found`},METHOD_NOT_SUPPORTED:{status:405,message:`Method Not Supported`},NOT_ACCEPTABLE:{status:406,message:`Not Acceptable`},TIMEOUT:{status:408,message:`Request Timeout`},CONFLICT:{status:409,message:`Conflict`},PRECONDITION_FAILED:{status:412,message:`Precondition Failed`},PAYLOAD_TOO_LARGE:{status:413,message:`Payload Too Large`},UNSUPPORTED_MEDIA_TYPE:{status:415,message:`Unsupported Media Type`},UNPROCESSABLE_CONTENT:{status:422,message:`Unprocessable Content`},TOO_MANY_REQUESTS:{status:429,message:`Too Many Requests`},CLIENT_CLOSED_REQUEST:{status:499,message:`Client Closed Request`},INTERNAL_SERVER_ERROR:{status:500,message:`Internal Server Error`},NOT_IMPLEMENTED:{status:501,message:`Not Implemented`},BAD_GATEWAY:{status:502,message:`Bad Gateway`},SERVICE_UNAVAILABLE:{status:503,message:`Service Unavailable`},GATEWAY_TIMEOUT:{status:504,message:`Gateway Timeout`}};function We$1(e,t){return t??Ue$1[e]?.status??500}function Ge$1(e,t){return t||Ue$1[e]?.message||e}let Ke$1;var qe$1=class e extends Error{defined;code;status;data;static{let t=Symbol.for(`__@orpc/client@1.16.2/error/ORPC_ERROR_CONSTRUCTORS__`);globalThis[t]??=new WeakSet,Ke$1=globalThis[t],Ke$1.add(e);}constructor(e,...t){let n=pe$1(t);if(n.status!==void 0&&!Xe$1(n.status))throw Error(`[ORPCError] Invalid error status code.`);let r=Ge$1(e,n.message);super(r,n),this.code=e,this.status=We$1(e,n.status),this.defined=n.defined??false,this.data=n.data;}toJSON(){return {defined:this.defined,code:this.code,status:this.status,message:this.message,data:this.data}}static[Symbol.hasInstance](e){if(Ke$1.has(this)){let t=Me$1(e);if(t&&Ke$1.has(t))return true}return super[Symbol.hasInstance](e)}};function Ye$1(e){return e instanceof qe$1?e:new qe$1(`INTERNAL_SERVER_ERROR`,{message:`Internal server error`,cause:e})}function Xe$1(e){return e<200||e>=400}function Ze$1(e){if(!Ne$1(e))return false;let t=[`defined`,`code`,`status`,`message`,`data`];return Object.keys(e).some(e=>!t.includes(e))?false:`defined`in e&&typeof e.defined==`boolean`&&`code`in e&&typeof e.code==`string`&&`status`in e&&typeof e.status==`number`&&Xe$1(e.status)&&`message`in e&&typeof e.message==`string`}function Qe$1(e,t={}){return new qe$1(e.code,{...t,...e})}var $e$1=class $e extends TypeError{},et$1=class et extends TypeError{},tt$1=class tt extends Error{data;constructor(e){super(e?.message??`An error event was received`,e),this.data=e?.data;}};const nt$1=/\r\n|\r(?!\n)|\n/,rt$1=/(?:\r\n|\r(?!\n)|\n){2}/,it$1=/(?:\r\n|\r(?!\n)|\n){2}/g;function at$1(e){let t={data:void 0,event:void 0,id:void 0,retry:void 0,comments:[]};for(let n of e.split(nt$1)){if(n===``)continue;let e=n.indexOf(`:`),r=e===-1?``:n.slice(n.charCodeAt(e+1)===32?e+2:e+1);if(e===0){t.comments.push(r);continue}switch(e===-1?n:n.slice(0,e)){case `data`:t.data=t.data===void 0?r:`${t.data}
|
|
62
|
+
${r}`;break;case `event`:t.event=r;break;case `id`:t.id=r;break;case `retry`:{let e=Number.parseInt(r,10);e>=0&&e.toString()===r&&(t.retry=e);break}}}return t}var ot$1=class ot{constructor(e={}){this.options=e;}pending=[];tail=``;discardLeadingLF=false;feed(e){if(e===``||this.discardLeadingLF&&(this.discardLeadingLF=false,e.charCodeAt(0)===10&&(e=e.slice(1),e===``)))return;let t=this.tail+e;if(!rt$1.test(t)){this.pending.push(e),this.tail=t.slice(-3);return}this.pending.push(e);let n=this.pending.length===1?e:this.pending.join(``),r=n.length-t.length,i=[],a=0;for(let e of t.matchAll(it$1))i.push(n.slice(a,r+e.index)),a=r+e.index+e[0].length;let o=n.slice(a);this.pending.length=0,this.tail=o.slice(-3),o===``?this.discardLeadingLF=e.charCodeAt(e.length-1)===13:this.pending.push(o);for(let e of i){let t=at$1(e);this.options.onEvent&&this.options.onEvent(t);}}end(){if(this.pending.length!==0)throw new et$1(`Event Iterator ended before complete`)}},st$1=class st extends TransformStream{constructor(){let e;super({start(t){e=new ot$1({onEvent:e=>{t.enqueue(e);}});},transform(t){e.feed(t);},flush(){e.end();}});}};const ct$1=/\r\n|[\n\r]/,lt$1=/\r\n|[\n\r]/g;function ut$1(e){return ct$1.test(e)}function dt$1(e){if(ut$1(e))throw new $e$1(`Event's id must not contain a carriage return or newline character`)}function ft$1(e){if(ut$1(e))throw new $e$1(`Event's event must not contain a carriage return or newline character`)}function pt$1(e){if(!Number.isInteger(e)||e<0)throw new $e$1(`Event's retry must be a integer and >= 0`)}function mt$1(e){if(ut$1(e))throw new $e$1(`Event's comment must not contain a carriage return or newline character`)}function ht$1(e){return e===void 0?``:`data: ${e.replace(lt$1,`
|
|
63
|
+
data: `)}
|
|
64
|
+
`}function gt$1(e){let t=``;for(let n of e??[])mt$1(n),t+=`: ${n}
|
|
65
|
+
`;return t}function _t$1(e){let t=``;return t+=gt$1(e.comments),e.event!==void 0&&(ft$1(e.event),t+=`event: ${e.event}
|
|
66
|
+
`),e.retry!==void 0&&(pt$1(e.retry),t+=`retry: ${e.retry}
|
|
67
|
+
`),e.id!==void 0&&(dt$1(e.id),t+=`id: ${e.id}
|
|
68
|
+
`),t+=ht$1(e.data),t+=`
|
|
69
|
+
`,t}const vt$1=Symbol(`ORPC_EVENT_SOURCE_META`);function yt$1(e,t){if(t.id===void 0&&t.retry===void 0&&!t.comments?.length)return e;if(t.id!==void 0&&dt$1(t.id),t.retry!==void 0&&pt$1(t.retry),t.comments!==void 0)for(let e of t.comments)mt$1(e);return new Proxy(e,{get(e,n,r){return n===vt$1?t:Reflect.get(e,n,r)}})}function bt$1(e){return Pe$1(e)?Reflect.get(e,vt$1):void 0}function xt$1(e,t=`inline`){return `${t}; filename="${e.replace(/[^\x20-\x7E]/g,`_`).replace(/"/g,`\\"`)}"; filename*=utf-8''${encodeURIComponent(e).replace(/['()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`).replace(/%(7C|60|5E)/g,(e,t)=>String.fromCharCode(Number.parseInt(t,16)))}`}function St$1(e){let t=e.match(/filename\*=(UTF-8'')?([^;]*)/i);if(t&&typeof t[2]==`string`)return Ve$1(t[2]);let n=e.match(/filename="((?:\\"|[^"])*)"/i);if(n&&typeof n[1]==`string`)return n[1].replace(/\\"/g,`"`)}function Ct$1(e,t){let n={...e};for(let e in t)Array.isArray(t[e])?n[e]=[...me$1(n[e]),...t[e]]:t[e]!==void 0&&(Array.isArray(n[e])?n[e]=[...n[e],t[e]]:n[e]===void 0?n[e]=t[e]:n[e]=[n[e],t[e]]);return n}function wt$1(e,t){let n=async e=>{let n=await t.error(e);if(n!==e){let t=bt$1(e);t&&Pe$1(n)&&(n=yt$1(n,t));}return n};return new De$1(async()=>{let{done:r,value:i}=await(async()=>{try{return await e.next()}catch(e){throw await n(e)}})(),a=await t.value(i,r);if(a!==i){let e=bt$1(i);e&&Pe$1(a)&&(a=yt$1(a,e));}return {done:r,value:a}},async()=>{try{await e.return?.();}catch(e){throw await n(e)}})}function Et$1(e){return {...e,context:e.context??{}}}function Dt$1(e,t={}){let n=t.path??[];return Re$1(new Proxy(async(...[t,r={}])=>await e.call(n,t,Et$1(r)),{get(r,i){return typeof i!=`string`||He$1.has(i)?Reflect.get(r,i):Dt$1(e,{path:[...n,i]})}}))}function kt$1(e,t){return {...e,...t}}var At$1=class At{"~orpc";constructor(e){if(e.route?.successStatus&&Xe$1(e.route.successStatus))throw Error(`[ContractProcedure] Invalid successStatus.`);if(Object.values(e.errorMap).some(e=>e&&e.status&&!Xe$1(e.status)))throw Error(`[ContractProcedure] Invalid error status code.`);this[`~orpc`]=e;}};function jt$1(e){return e instanceof At$1?true:(typeof e==`object`||typeof e==`function`)&&e!==null&&`~orpc`in e&&typeof e[`~orpc`]==`object`&&e[`~orpc`]!==null&&`errorMap`in e[`~orpc`]&&`route`in e[`~orpc`]&&`meta`in e[`~orpc`]}function Mt$1(e,t){return {...e,...t}}function Nt$1(e,t){return {...e,...t}}function Pt$1(e,t){return e.path?{...e,path:`${t}${e.path}`}:e}function Ft$1(e,t){return {...e,tags:[...t,...e.tags??[]]}}function It$1(e,t){return e?`${e}${t}`:t}function Lt$1(e,t){return e?[...e,...t]:t}function Rt$1(e,t){let n=e;return t.prefix&&(n=Pt$1(n,t.prefix)),t.tags?.length&&(n=Ft$1(n,t.tags)),n}function zt$1(e,t){if(jt$1(e))return new At$1({...e[`~orpc`],errorMap:kt$1(t.errorMap,e[`~orpc`].errorMap),route:Rt$1(e[`~orpc`].route,t)});if(typeof e!=`object`||!e)return e;let n={};for(let r in e)n[r]=zt$1(e[r],t);return n}const b$1=new class e extends At$1{constructor(e){super(e),this[`~orpc`].prefix=e.prefix,this[`~orpc`].tags=e.tags;}$meta(t){return new e({...this[`~orpc`],meta:t})}$route(t){return new e({...this[`~orpc`],route:t})}$input(t){return new e({...this[`~orpc`],inputSchema:t})}errors(t){return new e({...this[`~orpc`],errorMap:kt$1(this[`~orpc`].errorMap,t)})}meta(t){return new e({...this[`~orpc`],meta:Mt$1(this[`~orpc`].meta,t)})}route(t){return new e({...this[`~orpc`],route:Nt$1(this[`~orpc`].route,t)})}input(t){return new e({...this[`~orpc`],inputSchema:t})}output(t){return new e({...this[`~orpc`],outputSchema:t})}prefix(t){return new e({...this[`~orpc`],prefix:It$1(this[`~orpc`].prefix,t)})}tag(...t){return new e({...this[`~orpc`],tags:Lt$1(this[`~orpc`].tags,t)})}router(e){return zt$1(e,this[`~orpc`])}}({errorMap:{},route:{},meta:{}}),Bt$1={defaultMethod:`POST`,defaultSuccessStatus:200,defaultSuccessDescription:`OK`,defaultInputStructure:`compact`,defaultOutputStructure:`compact`};function Vt$1(e,t){return t===void 0?Bt$1[e]:t}const Ht$1={},Ut$1={};function x$1(e,t){try{let n=(Ht$1[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in Ut$1?Ut$1[n]:Gt$1(n,n.split(`:`))}catch{if(e in Ut$1)return Ut$1[e];let t=e?.match(Wt$1);return t?Gt$1(e,t.slice(1)):NaN}}const Wt$1=/([+-]\d\d):?(\d\d)?/;function Gt$1(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return Ut$1[e]=n*60+r>0?n*60+r+i:n*60-r-i}var Kt$1=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(x$1(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),Xt$1(this,e)):this.setTime(Date.now());}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-x$1(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Jt$1(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}};const qt$1=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!qt$1.test(e))return;let t=e.replace(qt$1,`$1UTC`);Kt$1.prototype[t]&&(e.startsWith(`get`)?Kt$1.prototype[e]=function(){return this.internal[t]()}:(Kt$1.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Yt$1(this),+this},Kt$1.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Jt$1(this),+this}));});function Jt$1(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-x$1(e.timeZone,e)*60));}function Yt$1(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Xt$1(e);}function Xt$1(e,t){let n=Array.isArray(t)?Zt$1(t):+e.internal,r=x$1(e.timeZone,e),i=r>0?Math.floor(r):Math.ceil(r),a=new Date(+e);a.setUTCHours(a.getUTCHours()-1);let o=-new Date(+e).getTimezoneOffset(),s=-new Date(+a).getTimezoneOffset(),c=o-s,l=o;if(c&&o!==i&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),n=o-i;n&&t.setUTCMinutes(t.getUTCMinutes()+n);let r=x$1(e.timeZone,t);(r>0?Math.floor(r):Math.ceil(r))===i&&(l=s);}let u=l-i;u&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);let d=new Date(+e);d.setUTCSeconds(0);let f=o>0?d.getSeconds():(d.getSeconds()-60)%60,p=Math.round(-(x$1(e.timeZone,e)*60))%60;(p||f)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+f);let m=x$1(e.timeZone,e),h=m>0?Math.floor(m):Math.ceil(m),ee=-new Date(+e).getTimezoneOffset()-h,te=h!==i,ne=ee-u,re=h-i,g=n-h*60*1e3,ie=re>0&&Qt$1(e)-n===re*60*1e3&&Qt$1(e,g)!==n;if(te&&ne&&!ie){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+ne);let t=x$1(e.timeZone,e),n=h-(t>0?Math.floor(t):Math.ceil(t));n&&ne<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n);}Jt$1(e);let ae=(t?n:n+p*1e3)-+e.internal;ae&&Math.abs(ae)<1800*1e3&&(Date.prototype.setTime.call(e,+e+ae),Jt$1(e));}function Zt$1(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function Qt$1(e,t){let n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(-x$1(e.timeZone,n)*60)),+n}const $t$1=Symbol.for(`constructDateFrom`);function en$1(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&$t$1 in e?e[$t$1](t):e instanceof Date?new e.constructor(t):new Date(t)}function tn$1(e,t){return en$1(e,e)}function S$1(e,t,n){let r=tn$1(e);return isNaN(t)?en$1(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function nn$1(e){return (typeof e==`string`?new Date(e):e).toISOString().replace(/\.\d{3}Z$/,``)}const rn$1=[`ALWAYS`,`HIDDEN`,`AFTER_ADMISSION`];let C$1;(function(e){e.signature=`a1B2c3D4e5F6g7H8`;let t=e.Tenant={id:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`,oldId:`none`,name:`Session Services`,slug:`session-services`,email:`hello@session.services`,adminTeamId:`tem_01jqpjksnsen9vprw95et60t3m`,defaultCurrency:`AUD`,smsSenderId:`SESSIONS`,baseUrl:{dev:`http://localhost:3000`,production:`https://app.session.services`},logo:{icon:{src:`https://assets.session.services/icon-bg.png`,width:29,height:29},email:{src:`https://assets.session.services/icon-bg.png`,width:165,height:76},website:{src:`https://assets.session.services/icon-bg.png`,width:165,height:76},qr:{src:`https://assets.session.services/tenants/session-services/qr.svg`}},favicon:`https://assets.session.services/tenants/session-services/favicon.svg`};e.Region={country:{id:`rgn_01jqpj2t2kfvmstt6f6tzkbaf2`,name:`Australia`,slug:`australia`,kind:`COUNTRY`,order:1},state:{id:`rgn_01jqpj2t2kfvmstt6f6tzkbaf3`,name:`New South Wales`,slug:`nsw`,kind:`STATE`,parentId:`rgn_01jqpj2t2kfvmstt6f6tzkbaf2`,order:2},city:{id:`rgn_01jqpj2t2kfvmstt6f6tzkbaf4`,name:`Sydney`,slug:`sydney`,kind:`CITY`,parentId:`rgn_01jqpj2t2kfvmstt6f6tzkbaf3`,latitude:-33.8688,longitude:151.2093,radius:25,order:3}};let n=e.User={id:`usr_01jps5cgsd4tzjghtnt45qnhn0`,email:`test@session.services`,firstName:`Jay`,lastName:`McMullen`,imageUrl:void 0,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tenantId:t.id,deleted:false};e.EmailVerification={id:`emlvrf_01jps5cgsd4tzjghtnt45qnhn0`,userId:`usr_01jps5cgsd4tzjghtnt45qnhn0`,tenantId:t.id,email:`test@session.services`,code:`123456`,expiresAt:new Date(Date.now()+1800*1e3).toISOString(),createdAt:new Date().toISOString()},e.PasswordReset={id:`pwrst_01jps5cgsd4tzjghtnt45qnhn0`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,userId:`usr_01jps5cgsd4tzjghtnt45qnhn0`,tenantId:t.id,email:`test@session.services`,code:`123456`,expiresAt:new Date(Date.now()+900*1e3).toISOString(),emailVerified:false,twoFactorVerified:false,createdAt:new Date().toISOString()};let r=e.Team={id:`tem_01jqpjksnsen9vprw95et60t2m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Session Services`,slug:`session-services`,description:`This is only a test...`,type:`PROMOTER`,approval:`APPROVED`,isDemo:false,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`,deleted:false},i=e.Promoter={id:`pmt_01jqpjksnsen9vprw95et60t2m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,name:`Session Services`,slug:`session-services`,description:`This is only a test...`,payoutFrequency:`AFTER_EVENT`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,geohash:`r3gx1`,location:{id:`loc_01jqpjksnsen9vprw95et60t4m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Sydney`,address:`Sydney NSW 2000, Australia`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8944593,longitude:151.2252255,timeZone:`Australia/Sydney`},tracking:{fbId:`485739562847563`,gaId:`G-PSW1MY7HB4`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`,deleted:false};e.Venue={id:`ven_01jqpjksnsen9vprw95et60t2m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,locationId:`loc_01jqpjksnsen9vprw95et60t3m`,approval:`APPROVED`,name:`Sydney Opera House`,slug:`sydney-opera-house`,description:`Iconic performing arts venue in Sydney, Australia`,type:`THEATER`,logo:{src:`https://assets.session.services/venues/sydney-opera-house.png`,alt:`Sydney Opera House`,width:800,height:800},images:[{src:`https://assets.session.services/venues/sydney-opera-house-1.jpg`,alt:`Sydney Opera House exterior`,width:1920,height:1080}],contact:{email:`info@sydneyoperahouse.com`,phone:`+61 2 9250 7111`,website:`https://www.sydneyoperahouse.com`,instagram:`https://instagram.com/sydneyoperahouse`,facebook:`https://facebook.com/sydneyoperahouse`,twitter:`https://twitter.com/sydneyoperahouse`},location:{id:`loc_01jqpjksnsen9vprw95et60t3m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Sydney Opera House`,address:`Bennelong Point, Sydney NSW 2000`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8567844,longitude:151.2152967,timeZone:`Australia/Sydney`,image:{src:`https://assets.session.services/locations/sydney-opera-house.jpg`,alt:`Sydney Opera House`,width:1200,height:800}},geohash:`r3gx2f9`,capacity:5738,tenantId:t.id,deleted:false};let a=e.PromoterMember={id:`mbr_01jps5cgsec5ge0b1bxa6gzkkk`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,userId:n.id,user:{id:n.id,email:n.email,firstName:n.firstName,lastName:n.lastName,imageUrl:n.imageUrl},permissions:[`*`],isOwner:true,tenantId:t.id};e.TeamMember={id:`mbr_01jqpjksnsen9vprw95et60t2m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,userId:n.id,user:{id:n.id,email:n.email,firstName:n.firstName,lastName:n.lastName,imageUrl:n.imageUrl},permissions:[`*`],isOwner:true,tenantId:t.id},e.TeamInvite={id:`inv_01jqpjksnsen9vprw95et60t4m`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),expiresAt:Math.floor(S$1(new Date,7).getTime()/1e3),teamId:r.id,token:`a76e3c5d7109345b58e383e6d90f7728b75f9a38b727f0b9edd5b977e8c3b5d0`,email:`team-invite@session.services`,invitedBy:n.id,permissions:[`event.write`,`order.write`],tenantId:t.id},e.CurrentSession={user:n,initials:`JM`,isTenantAdmin:true,promoters:[{...i,member:a}]},e.Session={id:`sess_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,expiresAt:S$1(new Date,30).toISOString(),twoFactorVerified:false,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},e.BackupCode={id:`bkc_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,code:`ABC123DEF456`,used:false,createdAt:new Date().toISOString()},e.UserSession={id:`uss_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,ipAddress:`192.168.1.100`,userAgent:`Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36`,location:`Sydney, Australia`,isCurrent:true,expiresAt:S$1(new Date,30).toISOString(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},e.PasskeyCredential={id:`pkc_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,name:`iPhone Touch ID`,credentialId:`cred_01jps5cgsd4tzjghtnt45qnhn0`,credentialPublicKey:`pQECAyYgASFYIM...`,credentialBackupEligible:true,credentialBackupState:false,credentialDeviceType:`singleDevice`,counter:1,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},e.SecurityKeyCredential={id:`skc_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,name:`YubiKey 5 NFC`,credentialId:`cred_01jps5cgsd4tzjghtnt45qnhn0`,credentialPublicKey:`pQECAyYgASFYIM...`,credentialBackupEligible:false,credentialBackupState:false,credentialDeviceType:`crossPlatform`,counter:5,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},e.TOTPCredential={id:`tpc_01jps5cgsd4tzjghtnt45qnhn0`,userId:n.id,tenantId:t.id,secret:`JBSWY3DPEHPK3PXP`,verified:true,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};let o=e.Location={id:`loc_01hk153x00eh99pagyydz03sbz`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),googlePlaceId:`ChIJ6zWCPUyxEmsRmc6BPrNaP4s`,name:`Watson's EQ`,address:`The, Entertainment Quarter, 1 Bent St, Moore Park NSW 2021, Australia`,city:`Moore Park`,state:`New South Wales`,postcode:`2021`,country:`Australia`,latitude:-33.8944593,longitude:151.2252255,timeZone:`Australia/Sydney`,types:[`establishment`,`point_of_interest`,`restaurant`,`bar`],image:{src:`https://assets.session.services/locations/watsons-eq.jpg`,alt:`Watson's EQ`,width:1200,height:800}};e.CarouselLocation={id:`loc_01hk153x00efq9ygdkc9eb3rjt`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),googlePlaceId:`ChIJc8-zlGSvEmsR0rbZWpCP6z0`,name:`Carousel Bar & Ballroom`,address:`169 Oxford St, Darlinghurst NSW 2010, Australia`,city:`Darlinghurst`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8803603,longitude:151.2161228,timeZone:`Australia/Sydney`,types:[`establishment`,`night_club`,`point_of_interest`],image:{src:`https://assets.session.services/locations/loc_01hk153x00efq9ygdkc9eb3rjt.jpg`,alt:`Carousel Bar & Ballroom`,width:1200,height:800}};let s=e.Event={id:`evt_01jps5cgsenjrazw6wswmyspa3`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Test Event`,slug:`test-event`,description:`This is only a test...`,approval:`APPROVED`,status:`UPCOMING`,visibility:`PUBLIC`,currency:`AUD`,entryStartsAt:nn$1(S$1(new Date,1)),entryEndsAt:nn$1(S$1(new Date,2)),publishAt:nn$1(new Date),images:{mobile:{src:`https://assets.session.services/event-mobile.jpg`,alt:`Mobile Event Image`,width:1080,height:1350},desktop:{src:`https://assets.session.services/event-desktop.jpg`,alt:`Desktop Event Image`,width:1920,height:1080}},geohash:`r3gx1`,location:o,teamId:r.id,promoterId:i.id,tenantId:t.id,deleted:false},c=e.Section={id:`sct_01jps5cgse0g3qj16kpq8t221r`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:r.id,promoterId:i.id,eventId:s.id,eventSlug:s.slug,name:`General Admission`,capacity:1e3,limit:-1,available:700,sold:200,reserved:100,order:0,visibility:`ALWAYS`,location:o,passcode:void 0,tenantId:t.id,deleted:false,orderPadded:`0000000000`},l=e.Admission={id:`adm_01jps5cgsee0xvapbk92e8eb4g`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),sectionId:c.id,teamId:r.id,promoterId:i.id,eventId:s.id,eventSlug:s.slug,name:`Final Release`,subtitle:`Entry before 10pm`,description:`Early bird pricing with priority entry. Must present valid ID at gate.`,capacity:1e5,limit:-1,available:7e4,sold:2e4,reserved:1e4,order:0,entryStartsAt:nn$1(S$1(new Date,1)),entryEndsAt:nn$1(S$1(new Date,2)),saleStartsAt:nn$1(new Date),saleEndsAt:nn$1(S$1(new Date,2)),saleEndsBehavior:`SALE_ENDED`,price:{base:1e3,booking:200,currency:`AUD`},visibility:`ALWAYS`,passcode:void 0,tenantId:t.id,deleted:false,orderPadded:`0000000000`};e.DetailedEvent={...s,admissions:[l],sections:[c]};let u=e.Beneficiary={id:`ben_01jps5cgse5n6mg1ymkew9tsfh`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`My Bank Account`,currency:`AUD`,gatewayId:`7489cb17-24c5-4acf-a0cf-d93ed38081fe`,gateway:`AIRWALLEX`,teamId:r.id,teamIds:[r.id],venueIds:[],tenantId:t.id};e.AirwallexBeneficiary={transfer_methods:[`LOCAL`],beneficiary:{additional_info:{personal_email:`test@session.services`},address:{city:`Sydney`,country_code:`AU`,postcode:`2000`,state:`AU-NSW`,street_address:`123 George Street`},bank_details:{account_currency:`AUD`,account_name:`John Doe`,account_number:`999994`,account_routing_type1:`bsb`,account_routing_value1:`062004`,bank_country_code:`AU`,local_clearing_system:`BANK_TRANSFER`},entity_type:`PERSONAL`,company_name:`Doe Enterprises Pty Ltd`,first_name:`John`,last_name:`Doe`}};let d=e.Coupon={id:`cpn_01jps5cgsfzs1ksqaet5hba8ac`,couponId:`cpn_01jps5cgsfzs1ksqaet5hba8ac`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Half Price`,active:true,kind:`PERCENT`,filter:`TEAM`,currency:`AUD`,discount:50,uses:0,limit:-1,orderLimit:void 0,membersOnly:false,saleStartsAt:`2025-02-10T03:00:00`,saleEndsAt:void 0,deletedAt:void 0,teamId:r.id,tenantId:t.id,deleted:false},f=e.CouponCode={id:`cod_01jps5cgsfzftw7hxcvr2wftk2`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),active:true,name:`TEST50`,uses:0,tenantId:t.id,couponId:d.id,teamId:r.id,deleted:false},p=e.AmountCoupon={id:`cpn_01jps5cgsfndn8jcsfvh72x811`,couponId:`cpn_01jps5cgsfndn8jcsfvh72x811`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Half Price`,active:true,kind:`PERCENT`,filter:`EVENTS`,currency:`AUD`,eventIds:[s.id],discount:50,uses:0,limit:-1,saleStartsAt:`2025-02-10T03:00:00`,saleEndsAt:void 0,deletedAt:void 0,teamId:r.id,tenantId:t.id};e.AmountCouponCode={id:`cod_01jps5cgsfq06xvvhg0hn2rdzd`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),active:true,name:`TEST5DOLLAR`,uses:0,tenantId:t.id,couponId:p.id,teamId:r.id};let m=e.Customer={id:`cus_01jps5cgsf4pn2a32eamppnap1`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),firstName:`Test`,lastName:`User`,email:`test@session.services`,phone:`+61411111111`,tenantId:t.id},h=e.PayoutTransfer={id:`xfr_01jq8s6c38f97w9yfrfcdhf47v`,createdAt:new Date().toISOString(),kind:`TICKETS`,amount:1e3,currency:`AUD`,fee:0,feeCurrency:`AUD`,reference:`XYZ`,gateway:`AIRWALLEX`,gatewayId:`fe33fb0f-d9d8-47cd-8eef-6a19bd6223eb`,beneficiary:u.name,beneficiaryId:u.id};e.PayoutDeduction={id:`pdn_01jq8s6c38f97w9yfrfcdhf47v`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),amount:-1e3,currency:`AUD`,description:`Legacy payout deduction`,gateway:`AIRWALLEX`,gatewayId:`fe33fb0f-d9d8-47cd-8eef-6a19bd6223eb`,beneficiary:u.name,beneficiaryId:u.id};let ee=e.Payout={id:`pyt_01jps5cgsfv2wre6hd0rc4w4t8`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),paidAt:new Date().toISOString(),status:`PAID`,method:`AIRWALLEX`,structure:`DEFAULT`,approval:`PENDING`,frequency:`AFTER_EVENT`,transfers:[h],event:{id:s.id,name:s.name,slug:s.slug,location:s.location.name},price:{net:1e3,total:1e3,gross:1e3,base:1e3,booking:0,refunded:0,discount:0,gateway:0,dispute:0,deductions:0,shipping:0,sms:0,currency:`AUD`},eventId:s.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id},te=e.OrderItem={id:`itm_01jps5cgsfwyxj0516571eaf17`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:`ord_01jps5cgsfgve5b5g2666kyryh`,kind:`ADMISSION`,quantity:2,admissionId:l.id,sectionId:c.id,price:{net:l.price.base+l.price.booking,total:l.price.base+l.price.booking,gross:l.price.base+l.price.booking,base:l.price.base,booking:l.price.booking,refunded:0,discount:0,currency:l.price.currency}};e.OrderFee={id:`fee_01jps5cgsgamykd6kh2t738qkh`,createdAt:new Date().toISOString(),reason:`Gateway Fee`,amount:-30,currency:`AUD`,requestId:`att_sgpdz4v2ph1axmdmdx8_m8w6qv`};let ne=e.OrderOffer={kind:`SMS_DELIVERY`,label:`SMS ticket delivery`,price:{amount:200,currency:`AUD`}},re=e.Order={id:`ord_01jps5cgsfgve5b5g2666kyryh`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),reservedAt:new Date().toISOString(),status:`PENDING`,price:{net:500,total:1400,gross:2200,base:1e3,booking:400,discount:-1e3,refunded:-700,gateway:0,dispute:0,shipping:0,sms:200,currency:`AUD`},code:{id:f.id,name:f.name},event:{id:s.id,name:s.name,slug:s.slug},fees:[],items:[te],customer:C$1.Customer,customerId:C$1.Customer.id,teamId:C$1.Team.id,promoterId:C$1.Promoter.id,promoterSlug:C$1.Promoter.slug,eventId:C$1.Event.id,eventSlug:C$1.Event.slug,payment:{method:`AIRWALLEX`,source:`CARD`},payoutIds:[ee.id],refunds:[],offers:[ne],tenantId:C$1.Tenant.id,checkoutUrl:`${t.baseUrl.dev}/checkout/ord_01jps5cgsfgve5b5g2666kyryh`,signature:`Q2hXbG9uZ1NpZzE2`},g=e.TicketScan={id:`scn_01jq4rjmtzyzgtsavn9f34mxan`,scannedAt:new Date().toISOString(),scannedBy:{id:n.id,firstName:n.firstName,lastName:n.lastName,email:n.email},scannedById:n.id,deviceId:`dev_01jq4rjvrgar43zwvyakbje22m`,kind:`CHECK_IN`};e.OrderRefund={id:`rfd_01jps5cgsfgve5b5g2666kyryh`,request:{idempotencyKey:`refund_12345_customer_request`},status:`SUCCEEDED`,acceptedAt:new Date().toISOString(),failedAt:new Date().toISOString(),price:{currency:`AUD`,total:1200,items:1200,shipping:0,fees:0},reason:`CUSTOMER_REQUEST`,note:`Customer requested refund due to schedule conflict`,tickets:{cancelRequested:true,cancelled:true,cancelledCount:2},gateway:{provider:`STRIPE`,refundId:`re_1234567890abcdef`,idempotencyKey:`rfd_01jps5cgsfgve5b5g2666kyryh`},actor:{type:`USER`,userId:n.id},notification:{requested:true,sentAt:new Date().toISOString()},createdAt:new Date().toISOString()},e.OrderRefundItem={orderItemId:te.id,quantity:2,amount:1200,ticketIds:[`tkt_01jps5cgsg0s32w2pr73vbccde`]},e.Notification={id:`ntf_01jps5cgsfgve5b5g2666kyryh`,aggregateType:`ORDER`,aggregateId:re.id,eventId:s.id,kind:`ORDER_CONFIRMATION`,channel:`EMAIL`,status:`DELIVERED`,providerMessageId:`msg_abc123def456`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),sentAt:new Date().toISOString(),deliveredAt:new Date().toISOString(),failedAt:new Date().toISOString(),failureCode:`BOUNCE`,failureReason:`Mailbox unavailable`,tenantId:t.id},e.Timeline={id:`tln_01jps5cgsfgve5b5g2666kyryh`},e.SmsOrder={id:`ord_01k74g0tbwfvnb7b0e2esms001`},e.Ticket={id:`tkt_01jps5cgsg0s32w2pr73vbccde`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`REDEEMED`,scans:[g],token:`7b81e13025f78f9935d5933eec3ab25e3c2bb811c99f2470182dd6ba4394ff82`,attendee:{email:m.email,firstName:m.firstName,lastName:m.lastName},event:{id:s.id,name:s.name,slug:s.slug,location:s.location,entryStartsAt:s.entryStartsAt,entryEndsAt:s.entryEndsAt,images:s.images},admission:{id:l.id,name:l.name,price:l.price,entryStartsAt:l.entryStartsAt,entryEndsAt:l.entryEndsAt},eventId:s.id,admissionId:l.id,customerId:m.id,orderId:re.id,orderItemId:te.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id};})(C$1||={});function w$1(e){return Wi(Zo,e)}function an$1(e){return Gi$1(Qo,e)}function on$1(e){return xi$1(Yo$1,e)}function T$1(e){return Yi$1(Ss,e)}function sn(e){return Qi$1(Es,e)}const E$1=nc$1([`PENDING`,`APPROVED`,`REJECTED`]).meta({description:`Approval status. PENDING: awaiting review, APPROVED: approved for operation, REJECTED: rejected and cannot operate`}),ln=new Set(`AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW`.split(` `)),un=Xo$1().trim().toUpperCase().regex(/^[A-Z]{2}$/,`Enter a two-letter ISO country code`).refine(e=>ln.has(e),{message:`Enter an assigned ISO country code`}).meta({description:`ISO 3166-1 alpha-2 country code`,examples:[`AU`]}),dn$1=`AED.ALL.AMD.ANG.AOA.ARS.AUD.AWG.AZN.BAM.BBD.BDT.BGN.BHD.BIF.BMD.BND.BOB.BRL.BSD.BTN.BWP.BZD.CAD.CHF.CLP.CNY.COP.CRC.CVE.CZK.DJF.DKK.DOP.DZD.EGP.ERN.ETB.EUR.FJD.FKP.GBP.GEL.GHS.GIP.GMD.GNF.GTQ.GYD.HKD.HNL.HUF.IDR.ILS.INR.ISK.JMD.JOD.JPY.KES.KGS.KHR.KMF.KRW.KWD.KYD.KZT.LAK.LBP.LKR.LRD.LSL.LYD.MAD.MDL.MGA.MKD.MNT.MOP.MUR.MVR.MWK.MXN.MYR.NAD.NGN.NIO.NOK.NPR.NZD.OMR.PAB.PEN.PGK.PHP.PKR.PLN.PYG.QAR.RON.RSD.RWF.SAR.SBD.SCR.SEK.SGD.SHP.SLE.SRD.SVC.SZL.THB.TJS.TMT.TND.TOP.TRY.TTD.TWD.TZS.UAH.UGX.USD.UYU.UZS.VND.VUV.WST.XAF.XCD.XOF.XPF.ZAR.ZMW.ZWL`.split(`.`),D$1=nc$1(dn$1).meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code for transactions and payouts`}),pn$1=Gs$1({formErrors:Us$1(Xo$1()),fieldErrors:ec$1(Xo$1(),Us$1(Xo$1()))}),mn={BAD_REQUEST:{status:400},INPUT_VALIDATION_FAILED:{status:422,data:pn$1},UNAUTHORIZED:{status:401},FORBIDDEN:{status:403},NOT_FOUND:{status:404},CONFLICT:{status:409},PRECONDITION_FAILED:{status:412},TOO_MANY_REQUESTS:{status:429},INTERNAL_SERVER_ERROR:{status:500},NOT_IMPLEMENTED:{status:501},SERVICE_UNAVAILABLE:{status:503}},gn=nc$1([{category:`Day Party`,group:`Event Type`,priority:`core`,notes:`Daytime or afternoon-focused event, often starting before evening and ending earlier than club nights; common signals include "day party", "day sesh", "Sunday session", "afternoon", "sunset", "courtyard", "rooftop", "poolside" or "open air".`},{category:`Festival`,group:`Event Type`,priority:`core`,notes:`Large-scale event with multiple artists, stages, areas, brands or sessions; may run all day, across multiple days, or as a major ticketed programme; match terms like "festival", "lineup", "multi-stage", "weekender", "one-day festival" or "camping".`},{category:`Club Night`,group:`Event Type`,priority:`core`,notes:`DJ-led nightclub or club-room event, usually late-night and dancefloor-focused; match "club night", "nightclub", "club room", "resident DJ", "guest DJ", "DJ sets", "all night" or explicitly club-focused programming. Do not use for every electronic event or DJ set without a club/nightclub context.`},{category:`Concert`,group:`Event Type`,priority:`high`,notes:`Headline live music event in a concert, gig, theatre, arena or show format; match "concert", "gig", "headline show", "live show", "tour date", "arena", "theatre" or "standing room". Use alongside "Live Performance" when live performers are explicit.`},{category:`Listening Party`,group:`Event Type`,priority:`medium`,notes:`Playback, album launch or listening-focused event centred on hearing recorded music together; match "listening party", "album playback", "record launch", "listening session", "label preview" or "listening bar".`},{category:`Workshop`,group:`Event Type`,priority:`medium`,notes:`Educational, participatory or skills-focused event; match "workshop", "masterclass", "clinic", "class", "seminar", "producer workshop", "DJ workshop" or "hands-on session".`},{category:`Afterparty`,group:`Event Type`,priority:`high`,notes:`Post-main-event continuation, usually late-night or early-morning, often tied to a festival, concert, gig, show, launch or headline act; match "official afterparty", "after party", "kick-ons", "continue the night" or "late-night session".`},{category:`Boat Party`,group:`Event Type`,priority:`high`,notes:`Event held on a boat, yacht, harbour cruise or floating venue; strong signals include "boat party", "cruise", "harbour", "on the water", "boarding time", "sailing", "wharf", "dock" or "yacht".`},{category:`Pool Party`,group:`Event Type`,priority:`high`,notes:`Party centred around a pool, resort, hotel or swim-friendly venue; usually daytime or summer-focused; match "pool party", "poolside", "swimwear", "cabana", "resort", "hotel pool", "daybed" or "summer session".`},{category:`Live Performance`,group:`Event Type`,priority:`high`,notes:`Event includes live acts, bands, vocalists, instrumentalists or live electronic performance rather than only DJ sets; match "live", "live set", "performing live", "band", "vocalist", "singer", "instrumental", "live show" or "concert".`},{category:`Warehouse`,group:`Venue Type`,priority:`core`,notes:`Industrial, raw or repurposed warehouse-style venue; often underground, large-room, concrete, late-night or rave-oriented; match "warehouse", "industrial space", "secret warehouse", "inner west warehouse", "factory", "converted space" or "underground location".`},{category:`Nightclub`,group:`Venue Type`,priority:`core`,notes:`Purpose-built nightlife or dance venue, club room or nightclub setting; match "nightclub", "night club", "club room", "dance club" or venues explicitly described as clubs. This describes the venue, not the event programme.`},{category:`Bar`,group:`Venue Type`,priority:`core`,notes:`Event held at a bar, pub, tavern or cocktail bar; match "bar", "pub", "tavern", "cocktail bar", "wine bar" or "hotel bar". Do not use for every venue with a bar service.`},{category:`Open Air`,group:`Venue Type`,priority:`core`,notes:`Outdoor event in an uncovered or partly outdoor setting; match "open air", "outdoor", "under the sky", "courtyard", "garden", "terrace", "park", "field", "amphitheatre" or "sunset session".`},{category:`Arena`,group:`Venue Type`,priority:`high`,notes:`Large indoor arena, stadium or major venue built for high-capacity concerts, sports or touring shows; match "arena", "stadium", "entertainment centre", "exhibition centre" or "convention centre".`},{category:`Rooftop`,group:`Venue Type`,priority:`high`,notes:`Event held on a rooftop, terrace or elevated city-view venue; often summer, sunset, cocktail or skyline-focused; match "rooftop", "terrace", "skyline", "city views", "above the city", "sunset rooftop" or "open-air rooftop".`},{category:`Beach Party`,group:`Venue Type`,priority:`high`,notes:`Coastal, beachfront or seaside event; may be on the sand, near the beach, at a beach club or coastal venue; match "beach party", "beachfront", "seaside", "coastal", "on the sand", "ocean views" or "beach club".`},{category:`Secret Location`,group:`Venue Type`,priority:`high`,notes:`Venue is hidden, TBA, revealed later or sent only to ticket holders; common in underground, warehouse and rave events; match "secret location", "TBA", "location revealed", "address released", "SMS location" or "ticket holders only".`},{category:`DIY`,group:`Venue Type`,priority:`medium`,notes:`Independent, self-organised or non-traditional event, often in unconventional spaces, bush settings or community-run venues; match "DIY", "bush doof", "renegade", "self-organised", "community-run", "off-grid" or "independent party".`},{category:`Basement`,group:`Venue Type`,priority:`medium`,notes:`Small, low-ceiling, underground or downstairs venue; usually intimate, dark, club-focused or late-night; match "basement", "cellar", "downstairs", "underground room", "low ceiling" or "intimate club room".`},{category:`Free Entry`,group:`Entry`,priority:`core`,notes:`No ticket or cover charge required to attend; match "free entry", "free event", "no cover", "free before", "RSVP free", "complimentary entry" or "walk-ins welcome". Do not confuse with free RSVP if paid entry may still apply.`},{category:`Donation`,group:`Entry`,priority:`medium`,notes:`Entry is by donation, pay-what-you-can or voluntary contribution rather than a fixed ticket price; match "donation", "pay what you want", "PWYW", "suggested donation", "gold coin" or "contribute at the door".`},{category:`Vinyl Only`,group:`Music`,priority:`high`,notes:`DJs perform using vinyl records only, usually signalling collector, selector, audiophile or purist culture; match "vinyl only", "all vinyl", "records only", "turntables", "wax", "crate diggers" or "strictly vinyl".`},{category:`Silent Disco`,group:`Music`,priority:`medium`,notes:`Attendees listen through wireless headphones rather than a traditional speaker system; often multiple channels or DJs; match "silent disco", "headphone party", "wireless headphones", "choose your channel" or "multi-channel headphones".`},{category:`Underground`,group:`Vibe`,priority:`high`,notes:`Non-mainstream, independent or subcultural event with raw, niche, alternative or anti-commercial positioning; match "underground", "leftfield", "subculture", "no frills", "raw", "for the heads", "heads only" or "off the beaten path".`},{category:`Intimate`,group:`Vibe`,priority:`high`,notes:`Small-capacity, close-quarters or personal event; often limited tickets, small room, listening bar or community feel; match "intimate", "limited capacity", "small room", "close and personal", "cosy", "private" or "exclusive".`},{category:`Queer Friendly`,group:`Vibe`,priority:`high`,notes:`Event explicitly welcomes, centres or is safe for LGBTQI+ communities; match "queer", "LGBTQI+", "LGBTQIA+", "gay", "trans inclusive", "rainbow community", "queer-friendly" or "queer party". Use when identity/community focus is explicit.`},{category:`FLINTA`,group:`Vibe`,priority:`high`,notes:`Event explicitly centres or welcomes women, lesbians, intersex, non-binary, trans and agender people; match "FLINTA", "FLINTA*", "women and gender diverse", "trans and non-binary", "femme-led" or "gender-diverse community".`},{category:`Safe Space`,group:`Vibe`,priority:`high`,notes:`Event emphasises inclusion, consent, harm minimisation, anti-harassment or community safety policies; match "safe space", "safer space", "consent policy", "zero tolerance", "harm reduction", "inclusive space" or "respectful dancefloor".`},{category:`No Photos`,group:`Vibe`,priority:`medium`,notes:`Event discourages or bans photography/video to protect privacy, immersion or dancefloor culture; match "no photos", "no filming", "no cameras", "phone stickers", "camera policy", "be present" or "respect the dancefloor".`},{category:`Rave`,group:`Vibe`,priority:`high`,notes:`High-energy dance event rooted in rave culture; often late-night, warehouse, underground, fast, heavy or euphoric; match "rave", "all-night", "warehouse rave", "doof", "hard dance", "strobe", "lasers" or "rave culture".`},{category:`BYO`,group:`Amenities`,priority:`core`,notes:`Attendees can or must bring their own alcohol, drinks or supplies; match "BYO", "bring your own", "bring drinks", "no bar", "esky", "cooler", "bottle shop run" or "self-catered drinks".`},{category:`Cash Only`,group:`Amenities`,priority:`medium`,notes:`Venue, bar, door or stall accepts cash but not card payments; match "cash only", "bring cash", "no EFTPOS", "no card", "cash at the door" or "ATM nearby".`},{category:`Card Only`,group:`Amenities`,priority:`medium`,notes:`Venue, bar, door or stall is cashless and accepts card or digital payments only; match "card only", "cashless", "no cash", "tap only", "EFTPOS only" or "card payments only".`},{category:`Food Available`,group:`Amenities`,priority:`medium`,notes:`Food is available at or near the event through vendors, kitchen, food trucks or venue menu; match "food available", "food trucks", "kitchen open", "snacks", "menu", "vendors", "street food" or "dinner available".`},{category:`Dress Code`,group:`Other`,priority:`high`,notes:`Event requires, encourages or enforces specific clothing, theme, footwear or presentation; match "dress code", "strict dress code", "theme", "costume", "black tie", "no thongs", "collared shirts", "dress to impress" or "entry may be refused".`}].map(e=>e.category)),_n=Us$1(gn).max(10).optional().meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10 categories)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),vn=nc$1([{genre:`House`,category:`House`,priority:`core`,notes:`Broad 4/4 dance music rooted in Chicago house; warm grooves, steady kicks, club-focused; use when event says house music generally without a clear subgenre.`},{genre:`Deep House`,category:`House`,priority:`core`,notes:`Smooth, warm, soulful or jazzy house; deeper basslines, softer drums, slower club tempo; often described as intimate, sophisticated, sunset, lounge or underground.`},{genre:`Tech House`,category:`House`,priority:`core`,notes:`Groovy house with techno-influenced drums, rolling basslines, minimal vocals and big club energy; common in Ibiza, festivals, commercial underground and peak-time club events.`},{genre:`Progressive House`,category:`House`,priority:`core`,notes:`Melodic house with long builds, emotional breakdowns and gradual progression; often associated with mainstage, euphoric, cinematic or journey-style sets.`},{genre:`Minimal House`,category:`House`,priority:`core`,notes:`Stripped-back, repetitive house with sparse percussion, subtle grooves and restrained arrangements; common in European club, afterhours and vinyl-focused events.`},{genre:`Romanian Minimal`,category:`House`,priority:`core`,notes:`Hypnotic, micro-detailed minimal house/techno linked to Romania; long-form grooves, subtle swing, deep rolling bass, afterhours, vinyl, underground and "ro-minimal" wording.`},{genre:`Afro House`,category:`House`,priority:`core`,notes:`House music with African percussion, polyrhythms, chants, soulful vocals and warm melodic grooves; often spiritual, organic, sunset, beach club or global house oriented.`},{genre:`Afro Tech`,category:`House`,priority:`core`,notes:`Darker, tougher and more electronic Afro House; heavier drums, driving bass, tribal percussion and peak-time club energy; sits between Afro House and melodic techno.`},{genre:`Acid House`,category:`House`,priority:`high`,notes:`House built around squelchy Roland TB-303 acid basslines; raw, psychedelic, ravey or retro Chicago/UK warehouse references.`},{genre:`Funky House`,category:`House`,priority:`high`,notes:`Upbeat, feel-good house with funk, disco samples, bass guitar grooves, bright hooks and party-friendly energy; often vocal, summery or nostalgic.`},{genre:`Jackin House`,category:`House`,priority:`high`,notes:`Bouncy Chicago-style house with shuffled drums, chunky grooves, cut-up samples and playful energy; often raw, funky, loop-based and dancefloor-driven.`},{genre:`Soulful House`,category:`House`,priority:`medium`,notes:`Vocal-led house with gospel, soul and R&B influence; rich chords, emotional vocals, uplifting messages and warm classic house feel.`},{genre:`Melodic House`,category:`House`,priority:`high`,notes:`Modern melodic, emotional house with polished production, arpeggios, atmospheric pads and deep/progressive feel; often Anjunadeep, sunset, rooftop or organic club energy.`},{genre:`Latin House`,category:`House`,priority:`medium`,notes:`House with Latin percussion, Spanish or Portuguese vocals, salsa, samba, reggaeton or Afro-Latin rhythmic influence; upbeat, percussive and dancefloor-friendly.`},{genre:`Techno`,category:`Techno`,priority:`core`,notes:`Broad 4/4 electronic club music rooted in Detroit and Berlin; repetitive, mechanical, driving, hypnotic or warehouse-focused; use when techno is named without a clearer subtype.`},{genre:`Melodic Techno`,category:`Techno`,priority:`core`,notes:`Emotional, cinematic techno with big synth melodies, arpeggios, dark builds and dramatic drops; often Afterlife, Tale Of Us, lasers, visuals or large-room events.`},{genre:`Hard Techno`,category:`Techno`,priority:`core`,notes:`Fast, aggressive techno with pounding kicks, distorted drums, high energy and rave/warehouse intensity; often 145+ BPM and associated with modern hard rave trends.`},{genre:`Industrial Techno`,category:`Techno`,priority:`high`,notes:`Dark, harsh techno with distorted kicks, metallic percussion, noise textures and warehouse or dystopian aesthetics; more abrasive than standard techno.`},{genre:`Minimal Techno`,category:`Techno`,priority:`high`,notes:`Stripped-back techno built from repetition, subtle changes, sparse drums and hypnotic grooves; less melodic and more mechanical than minimal house.`},{genre:`Detroit Techno`,category:`Techno`,priority:`medium`,notes:`Techno rooted in Detroit's futuristic, soulful and machine-funk sound; classic, purist, historical or old-school techno references.`},{genre:`Dub Techno`,category:`Techno`,priority:`medium`,notes:`Deep techno with dub chords, echo, reverb, spacious atmospheres and slow hypnotic movement; often smoky, deep, aquatic or meditative.`},{genre:`Acid Techno`,category:`Techno`,priority:`medium`,notes:`Techno driven by squelchy 303 acid lines, looping percussion and rave energy; harder and more driving than acid house.`},{genre:`Hypnotic Techno`,category:`Techno`,priority:`medium`,notes:`Repetitive, deep, rolling techno designed for trance-like immersion; subtle loops, long blends, minimal melody and underground warehouse feel.`},{genre:`Drum & Bass`,category:`Bass`,priority:`core`,notes:`Fast breakbeat music around 160-180 BPM with heavy basslines and chopped drums; use for D&B, drum and bass, rollers, jump-up or bass-heavy rave events.`},{genre:`Jungle`,category:`Bass`,priority:`core`,notes:`Breakbeat-heavy precursor to D&B with chopped amen breaks, reggae/dub samples, ragga vocals and 90s UK rave energy.`},{genre:`Dubstep`,category:`Bass`,priority:`core`,notes:`Bass-heavy UK-origin genre around 140 BPM; half-time drums, sub-bass, wobble bass, dark atmospheres or aggressive drops.`},{genre:`Bass House`,category:`Bass`,priority:`core`,notes:`House-tempo club music with heavy bass drops, punchy drums and EDM/festival energy; blends house groove with dubstep or bass music sound design.`},{genre:`Breakbeat`,category:`Bass`,priority:`core`,notes:`Electronic music built on syncopated broken drum patterns instead of straight 4/4; often rave, electro, UK club, breaks or old-school references.`},{genre:`UK Garage`,category:`Bass`,priority:`core`,notes:`Skippy UK club music with swung 2-step rhythms, chopped vocals, sub-bass and soulful/R&B influence; often "UKG", "garage", "2-step" or "speed garage".`},{genre:`Bassline`,category:`Bass`,priority:`high`,notes:`UK 4x4 garage-derived bass music with warping basslines, fast club energy and playful vocal chops; often northern UK or speed garage adjacent.`},{genre:`Grime`,category:`Bass`,priority:`high`,notes:`UK rap and electronic bass hybrid around 140 BPM; MC-led, sparse beats, aggressive flows, eski sounds and London street culture references.`},{genre:`Liquid DnB`,category:`Bass`,priority:`medium`,notes:`Melodic, smooth and soulful drum & bass; rolling breaks, warm bass, vocals, pads and emotional or uplifting atmosphere.`},{genre:`Neurofunk`,category:`Bass`,priority:`medium`,notes:`Technical, dark and aggressive drum & bass with complex bass sound design, precise drums and futuristic, intense energy.`},{genre:`Footwork`,category:`Bass`,priority:`medium`,notes:`Fast Chicago club style around 160 BPM with syncopated kicks, chopped vocal samples and jittery rhythms; related to juke and dance battles.`},{genre:`Jersey Club`,category:`Bass`,priority:`medium`,notes:`Fast, bouncy US club music with chopped samples, triplet kick patterns and call-and-response energy; often party, dance challenge or club edit focused.`},{genre:`Trance`,category:`Trance`,priority:`core`,notes:`Euphoric electronic dance music with emotional melodies, long builds, breakdowns and big climaxes; often 90s, festival, uplifting or hands-in-the-air language.`},{genre:`Psytrance`,category:`Trance`,priority:`core`,notes:`Fast psychedelic trance with rolling basslines, hypnotic repetition, alien/psychedelic sound design and outdoor festival or doof culture references.`},{genre:`Progressive Trance`,category:`Trance`,priority:`high`,notes:`Smoother, slower trance with gradual melodic builds, deep atmospheres and less explosive drops than uplifting trance; often journey-based and emotional.`},{genre:`Disco`,category:`Disco`,priority:`core`,notes:`Classic dance music with live-sounding drums, strings, funk bass, soul vocals and 70s/80s references; use for retro disco, disco party or classic dance events.`},{genre:`Nu Disco`,category:`Disco`,priority:`core`,notes:`Modern electronic disco with polished production, house tempo, funk basslines, synths and retro dancefloor feel; often contemporary disco edits or poolside energy.`},{genre:`Italo Disco`,category:`Disco`,priority:`medium`,notes:`European 80s disco style with synth bass, drum machines, dramatic vocals and retro-futurist melodies; often Italian, cult, synth-heavy or nostalgic.`},{genre:`Funk`,category:`Disco`,priority:`high`,notes:`Groove-based music with syncopated bass, live drums, brass, guitars and rhythmic vocals; often party, rare groove, soul-funk or dancefloor classics.`},{genre:`Soul`,category:`Disco`,priority:`medium`,notes:`Vocal-focused music rooted in R&B, gospel and Motown traditions; emotional vocals, warm instrumentation and classic groove; may overlap with disco and house roots.`},{genre:`Balearic`,category:`Disco`,priority:`medium`,notes:`Eclectic Ibiza-influenced sound blending downtempo, disco, house, pop, world and chillout; sunset, beach, terrace, poolside or open-air language.`},{genre:`Hardcore`,category:`Hard Dance`,priority:`high`,notes:`Very fast, intense rave music with distorted kicks, aggressive synths and high BPM; use when event says hardcore, ravecore or extreme hard dance.`},{genre:`Hardstyle`,category:`Hard Dance`,priority:`high`,notes:`Dutch-origin hard dance with distorted reverse-bass kicks, euphoric melodies, screeches and festival anthems; usually around 150 BPM.`},{genre:`Gabber`,category:`Hard Dance`,priority:`low`,notes:`Extreme Dutch hardcore style with very fast BPM, distorted kicks, raw rave energy and Rotterdam/hakken culture references.`},{genre:`Happy Hardcore`,category:`Hard Dance`,priority:`low`,notes:`Fast, euphoric hardcore with bright melodies, pitched-up vocals, piano riffs and 90s UK rave nostalgia; playful rather than dark.`},{genre:`Amapiano`,category:`Global`,priority:`core`,notes:`South African club music with log drums, shakers, jazzy chords, smooth vocals and laid-back but danceable grooves; often piano-led and percussive.`},{genre:`Gqom`,category:`Global`,priority:`high`,notes:`Dark, minimal South African club sound from Durban; heavy broken rhythms, raw percussion, sparse vocals and intense hypnotic energy.`},{genre:`Afrobeats`,category:`Global`,priority:`core`,notes:`West African pop and club sound, especially Nigerian/Ghanaian; melodic vocals, dancehall/highlife/hip-hop influence, warm rhythms and mainstream crossover.`},{genre:`Kuduro`,category:`Global`,priority:`medium`,notes:`Angolan and Portuguese club music with fast, hard percussion, energetic chants and raw dancefloor intensity; often Afro-Portuguese or Lisbon club references.`},{genre:`Singeli`,category:`Global`,priority:`low`,notes:`Extremely fast Tanzanian electronic dance music, often 180-220+ BPM; frantic rhythms, rapid vocals and high-energy East African street sound.`},{genre:`Baile Funk`,category:`Global`,priority:`high`,notes:`Brazilian funk carioca with heavy drums, MC vocals, Portuguese lyrics and raw party energy; often Rio, favela, proibidao or funk mandelao references.`},{genre:`Reggaeton`,category:`Global`,priority:`high`,notes:`Latin urban dance music with dembow rhythm, Spanish vocals, pop/hip-hop influence and mainstream club appeal; often perreo or Latin party events.`},{genre:`Dancehall`,category:`Global`,priority:`high`,notes:`Jamaican club music with riddims, patois vocals, reggae influence and sound system culture; can be party, bashment, Caribbean or crossover pop.`},{genre:`Dembow`,category:`Global`,priority:`medium`,notes:`Dominican-origin club style built on repetitive dembow rhythm, Spanish MC vocals and raw Latin street-party energy; more minimal and percussive than reggaeton.`},{genre:`Ambient`,category:`Downtempo`,priority:`high`,notes:`Atmospheric, beatless or low-rhythm electronic music focused on texture, mood and space; suited to listening rooms, chill rooms, sound baths or pre/post-event settings.`},{genre:`Downtempo`,category:`Downtempo`,priority:`high`,notes:`Slower electronic music with relaxed beats, warm textures and lounge/chillout feel; use for chill, sunset, listening, cafe, pre-party or afterhours decompression events.`},{genre:`Electronica`,category:`Downtempo`,priority:`high`,notes:`Broad non-club-focused electronic music; experimental, melodic, listening-oriented or pop-adjacent; use when event says electronic but not clearly house/techno/bass.`},{genre:`Trip Hop`,category:`Downtempo`,priority:`low`,notes:`Moody 90s Bristol sound blending hip-hop beats, dub, soul, jazz and atmospheric vocals; dark, smoky, cinematic or Massive Attack/Portishead references.`},{genre:`Lo-Fi`,category:`Downtempo`,priority:`medium`,notes:`Relaxed, hazy, imperfect-sounding beats with soft drums, samples, jazz chords and study/chill aesthetics; often lo-fi hip-hop or bedroom production references.`},{genre:`Electro`,category:`Electronic`,priority:`core`,notes:`Syncopated electronic music with 808 drums, robotic funk, vocoders, breakbeats and Detroit/80s futurism; distinct from electro-house.`},{genre:`Synth Pop`,category:`Electronic`,priority:`medium`,notes:`Pop-oriented electronic music with catchy vocals, 80s synths, drum machines and new wave influence; often retro, nostalgic or indie-pop crossover.`},{genre:`Industrial`,category:`Electronic`,priority:`medium`,notes:`Dark electronic or rock-influenced music with harsh textures, machine rhythms, noise and dystopian aesthetics; may overlap with EBM and industrial techno.`},{genre:`EBM`,category:`Electronic`,priority:`low`,notes:`Electronic Body Music: hard, repetitive industrial dance with shouted vocals, rigid basslines and militaristic rhythms; 80s/Belgian/German club references.`},{genre:`Indie Dance`,category:`Electronic`,priority:`high`,notes:`Danceable blend of indie rock, disco, synth pop and electronic production; often band/DJ crossover, nu-disco-adjacent, stylish or alternative club sound.`},{genre:`Experimental`,category:`Electronic`,priority:`medium`,notes:`Unconventional electronic music that avoids standard genre structures; abstract, avant-garde, noise, leftfield, art-focused or boundary-pushing events.`},{genre:`Hip-Hop`,category:`Non-Electronic`,priority:`high`,notes:`Rap-led music with beats, MCs, sampling, trap, boom bap or old-school references; use for hip-hop parties, rap nights or DJ sets centred on rap.`},{genre:`R&B`,category:`Non-Electronic`,priority:`high`,notes:`Smooth vocal-led music with soul, hip-hop and pop influence; 90s/2000s R&B, slow jams, contemporary R&B or club crossover events.`},{genre:`Jazz`,category:`Non-Electronic`,priority:`medium`,notes:`Improvised or live instrumental music with swing, bebop, fusion, soul-jazz or jazz club references; often live band or listening-focused.`},{genre:`Pop`,category:`Non-Electronic`,priority:`medium`,notes:`Mainstream, chart-focused music with recognisable hits, singalong vocals and broad commercial appeal; use for general pop parties or top-40 events.`},{genre:`Rock`,category:`Non-Electronic`,priority:`low`,notes:`Guitar-driven band music; indie rock, classic rock, punk, alternative or live venue references; usually non-electronic unless explicitly DJ edits.`},{genre:`Reggae`,category:`Non-Electronic`,priority:`medium`,notes:`Jamaican-origin music with offbeat guitar rhythms, dub influence, roots vocals and sound system culture; includes roots, dub and reggae parties.`},{genre:`Live`,category:`Non-Electronic`,priority:`medium`,notes:`Event is centred on live performance rather than DJ genre; bands, singers, instrumentalists or live electronic acts; use only when performance format is the key signal.`}].map(e=>e.genre)),yn=Us$1(vn).min(1).max(5).meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]});Us$1(vn).max(5).optional().meta({description:`Music genres for the event (up to 5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]});function O$1(e,t){return Xo$1().regex(RegExp(`^${e}_[0-9a-z]{26}$`),`Must be a valid ${t} ID`).describe(`Unique ${t} identifier`)}const k$1=O$1(`tem`,`team`),xn=O$1(`txp`,`tax profile`);O$1(`tnt`,`tenant`);const Cn=O$1(`tdl`,`team deletion operation`),A$1=O$1(`evt`,`event`),wn=O$1(`ven`,`venue`),Tn=O$1(`loc`,`location`),j$1=O$1(`usr`,`user`),En=O$1(`cnl`,`order cancellation`),Dn=O$1(`ord`,`order`),On=O$1(`tkt`,`ticket`),M$1=O$1(`pmt`,`promoter`);O$1(`cpn`,`coupon`);O$1(`cod`,`coupon code`);const jn=O$1(`cus`,`customer`),N$1=O$1(`adm`,`admission`),Mn=O$1(`sct`,`section`);O$1(`ben`,`beneficiary`);const Pn=O$1(`pyt`,`payout`),P$1=O$1(`mbr`,`team member`),Fn=O$1(`inv`,`team invite`),In=O$1(`ecl`,`event collaborator`),Ln=O$1(`psc`,`permission scope`),Rn=O$1(`prl`,`permission role`),zn=O$1(`ntf`,`notification`),Bn=O$1(`int`,`integration`),Vn=O$1(`ibf`,`integration backfill`),F$1=Gs$1({src:os$1().meta({examples:[`https://assets.session.services/my-image.jpg`]}),alt:Xo$1().meta({examples:[`My Image`]}),width:Cs$1().meta({examples:[1080]}),height:Cs$1().meta({examples:[1080]})}),Hn=`Limit cannot be 0. Use -1 for unlimited or a positive number for a specific limit`;function Un(){return Cs$1().min(-1)}function Wn(){return Cs$1().min(-1).refine(e=>e!==0,{message:Hn})}const Gn=Js$1([Xo$1(),Cs$1(),Ds$1(),js$1()]),Kn=Dc$1(()=>Js$1([Gn,Us$1(Kn),ec$1(Xo$1(),Kn)])),qn=ec$1(Xo$1().min(1).max(40).meta({description:`Metadata key. Must be 1-40 characters`}),Xo$1().max(500).meta({description:`Metadata value. Must not exceed 500 characters`})).refine(e=>Object.keys(e).length<=50,{message:`Metadata cannot exceed 50 keys`}).optional().meta({description:`Flexible key-value metadata storage for custom configuration. Similar to Stripe's metadata API. Maximum 50 keys, key names up to 40 characters, values up to 500 characters.`}),I$1=Xo$1().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/,`Must be a naive datetime without timezone (YYYY-MM-DDTHH:mm:ss)`).meta({description:`Wall clock time without timezone (displays same everywhere)`,examples:[`2025-03-15T19:30:00`]});function L$1(e){return T$1().int().min(1).max(100).prefault(20).meta({examples:[20],description:`Maximum number of ${e} to return per request (1-100, default: 20)`})}const Jn=Xo$1().meta({description:`Opaque cursor for pagination. Use the cursor from the previous response to continue fetching results.`}),Yn=`[a-z][a-z0-9-]*`,Xn=RegExp(`^-?(?:\\*|${`(?:${Yn})(?:\\.${Yn})*`}(?:\\.\\*|\\.bypass|\\.[a-z]{3}_[0-9a-z]{26})?)$`),Zn=/^[a-z]{3}_[0-9a-z]{26}$/,Qn=[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`,`cpn`],$n=`team.read,team.write,team.oauth.read,team.oauth.write,team.member.read,team.member.write,team.invite.read,team.invite.write,team.gateway.read,team.gateway.connect,team.gateway.write,team.tax.read,team.tax.write,team.performance.read,cms.read,cms.write,role.read,role.write,event.read,event.write,event.performance.read,promoter.read,promoter.write,promoter.performance.read,venue.read,venue.write,order.read,order.write,ticket.read,ticket.write,ticket.scan,coupon.read,coupon.write,membership.read,membership.write,beneficiary.read,beneficiary.write,payout.read,payout.write,*`.split(`,`),er=[`tenant`,`team`,`team.oauth`,`team.member`,`team.invite`,`team.gateway`,`team.tax`,`team.performance`,`cms`,`role`,`event`,`event.performance`,`promoter`,`promoter.performance`,`venue`,`order`,`ticket`,`coupon`,`membership`,`beneficiary`,`payout`],tr=new Set($n),nr=new Set(er),rr={"team.read":[`tem`],"team.write":[`tem`],"team.oauth.read":[`tem`],"team.oauth.write":[`tem`],"team.member.read":[`tem`],"team.member.write":[`tem`],"team.invite.read":[`tem`],"team.invite.write":[`tem`],"team.gateway.read":[`tem`,`pmt`],"team.gateway.connect":[`tem`],"team.gateway.write":[`tem`,`pmt`],"team.tax.read":[`tem`],"team.tax.write":[`tem`],"team.performance.read":[`tem`,`pmt`,`ven`,`evt`],"cms.read":[],"cms.write":[],"role.read":[`tem`],"role.write":[`tem`],"event.read":[`tem`,`pmt`,`ven`,`evt`],"event.write":[`tem`,`pmt`,`ven`,`evt`],"event.performance.read":[`tem`,`pmt`,`ven`,`evt`],"promoter.read":[`tem`,`pmt`,`evt`],"promoter.write":[`tem`,`pmt`,`evt`],"promoter.performance.read":[`tem`,`pmt`,`evt`],"venue.read":[`tem`,`ven`,`evt`],"venue.write":[`tem`,`ven`,`evt`],"order.read":[`tem`,`pmt`,`ven`,`evt`,`ord`],"order.write":[`tem`,`pmt`,`ven`,`evt`,`ord`],"ticket.read":[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`],"ticket.write":[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`],"ticket.scan":[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`],"coupon.read":[`tem`,`pmt`,`evt`,`cpn`],"coupon.write":[`tem`,`pmt`,`evt`,`cpn`],"membership.read":[`tem`],"membership.write":[`tem`],"beneficiary.read":[`tem`,`pmt`],"beneficiary.write":[`tem`,`pmt`],"payout.read":[`tem`,`pmt`,`ven`],"payout.write":[`tem`,`pmt`],"*":[]};function ir(e){let[t]=e.split(`_`);return t?Qn.includes(t):false}function ar(e){let[t]=e.split(`_`);return !t||!ir(e)?null:t}function or(e){return Zn.test(e)&&ir(e)}function sr(e,t){let n=ar(t);return n?(rr[e]??[]).includes(n):false}function cr(e,t){return !tr.has(e)||!or(t)?false:sr(e,t)}function lr(e){return e.startsWith(`-`)?e.slice(1):e}function ur(e){return tr.has(e)}function dr(e){return e.endsWith(`.bypass`)?tr.has(e.slice(0,-7)):false}function fr(e){let t=e.match(/^((?:[a-z][a-z0-9-]*)(?:\.[a-z][a-z0-9-]*)*)\.([a-z]{3}_[0-9a-z]{26})$/);return t?pr(t):null}function pr(e){let t=e[1],n=e[2];return !t||!n?null:{base:t,resourceId:n}}function mr(e){let t=fr(e);return t?cr(t.base,t.resourceId):false}function hr(e){if(!e.endsWith(`.*`))return false;let t=e.slice(0,-2);return nr.has(t)||tr.has(t)}const gr=[ur,dr,mr,hr];function _r(e){let t=lr(e);return gr.some(e=>e(t))}const R$1=Xo$1().regex(Xn,`Invalid permission node. Use lowercase dot notation with optional wildcard, resource target, bypass target, and deny prefix.`).refine(_r,{message:`Unsupported permission node. Only nodes from the canonical permission catalog are allowed.`}).meta({description:`Permission node in minecraft-style format. Supports exact, scoped wildcard, resource target, bypass target, and deny prefix.`,examples:[`team.read`,`team.member.write`,`ticket.scan`,`ticket.scan.*`,`ticket.scan.evt_01h8c3jm9zs2v6h2k9p9r8f5a1`,`team.gateway.connect.bypass`,`team.*`,`*`,`-team.gateway.write`,`-ticket.scan.evt_01h8c3jm9zs2v6h2k9p9r8f5a1`]}),vr=Us$1(R$1).meta({description:`Array of permission nodes. Supports wildcard and negation. Empty arrays are allowed.`,examples:[[],[`team.read`,`team.member.write`],[`event.read`,`event.write`],[`*`],[`-team.gateway.write`]]}),yr=vr.min(1).meta({description:`Non-empty array of permission nodes. Supports wildcard and negation.`,examples:[[`team.read`,`team.member.write`],[`event.read`,`event.write`],[`*`],[`-team.gateway.write`]]});const zr=1e4,Br=Xo$1().max(zr).meta({description:`Public-facing description with a maximum length of ${zr} characters`}),Vr=Xo$1().length(16).meta({examples:[C$1.signature],description:`HMAC signature for secure access (16 characters, base64url encoded)`}),Hr=Gs$1({promoterIds:Us$1(M$1).nullable().meta({description:`Null means team-wide promoter access. An array means access is restricted to those promoters.`})}).meta({description:`Promoter access assigned to a team member or invite.`}),Ur=Gs$1({promoterIds:Us$1(M$1).min(1).nullable().meta({description:`Null grants team-wide promoter access. A non-empty array restricts access to those promoters.`})}).meta({description:`Promoter access assignment input.`}),Wr=nc$1([`SALE_ENDED`,`SOLD_OUT`,`DOOR`]),Kr=Gs$1({booking:Cs$1().min(4).max(10).meta({examples:[7.5],description:`Booking fee percentage used to calculate the booking fee.`})}).meta({description:`Admission-level pricing override used to calculate derived fee amounts.`});function qr(e){return Gs$1({base:Ts$1().min(0).meta({examples:[C$1.Admission.price.base],description:`Organiser-entered ticket price before any added tax or booking fees, in cents`}),booking:Ts$1().min(0).meta({examples:[C$1.Admission.price.booking],description:e.booking}),tax:Ts$1().min(0).optional().meta({description:`Ticket tax component in cents. This excludes tax contained in booking fees.`}),total:Ts$1().min(0).optional().meta({description:`Customer-facing total in cents, including ticket tax and booking fees.`}),currency:D$1.meta({examples:[C$1.Admission.price.currency],description:e.currency}),override:Kr.optional().meta({description:`Optional pricing override used to calculate derived fee amounts.`})}).meta({examples:[C$1.Admission.price],description:e.price})}const z$1=Gs$1({id:N$1.readonly().meta({description:`A unique identifier for this admission`,examples:[C$1.Admission.id]}),name:Xo$1().meta({description:`The display name of the admission type shown to customers`,examples:[C$1.Admission.name]}),subtitle:Xo$1().max(100).optional().meta({description:`Short supporting text shown below the admission name`,examples:[C$1.Admission.subtitle]}),description:Xo$1().max(500).optional().meta({description:`Detailed information shown when customers expand 'More info'`,examples:[C$1.Admission.description]}),capacity:Un().prefault(-1).meta({examples:[C$1.Admission.capacity],description:`Maximum number of tickets that can be sold for this admission type. A value of -1 indicates unlimited`}),limit:Wn().prefault(-1).meta({examples:[C$1.Admission.limit??-1],description:`Maximum number of tickets of this admission type that can be purchased in a single order. A value of -1 indicates unlimited`}),available:Cs$1().min(-1).readonly().meta({examples:[C$1.Admission.available],description:`Current number of tickets available for purchase, calculated as capacity minus sold minus reserved. A value of -1 indicates unlimited`}),sold:Cs$1().min(0).readonly().meta({examples:[C$1.Admission.sold],description:`Total number of tickets of this admission type that have been purchased`}),reserved:Cs$1().min(0).readonly().meta({examples:[C$1.Admission.reserved],description:`Number of tickets held for customers during checkout and not available to others`}),order:Cs$1().min(0).meta({examples:[C$1.Admission.order],description:`Determines the position in which this admission type appears when listed. Lower values appear first`}),createdAt:w$1().readonly().meta({examples:[C$1.Admission.createdAt],description:`Timestamp in ISO 8601 format when this admission type was created`}),updatedAt:w$1().readonly().meta({examples:[C$1.Admission.updatedAt],description:`Timestamp in ISO 8601 format when this admission type was last updated`}),entryStartsAt:I$1.meta({examples:[C$1.Admission.entryStartsAt],description:`Wall clock time from which tickets of this type are valid for entry (no timezone)`}),entryEndsAt:I$1.meta({examples:[C$1.Admission.entryEndsAt],description:`Wall clock time until which tickets of this type are valid for entry (no timezone)`}),saleStartsAt:I$1.meta({examples:[C$1.Admission.saleStartsAt],description:`Wall clock time when ticket sales for this admission type begin (no timezone)`}),saleEndsAt:I$1.meta({examples:[C$1.Admission.saleEndsAt],description:`Wall clock time when ticket sales for this admission type end (no timezone)`}),saleEndsBehavior:Wr.default(`SALE_ENDED`).meta({examples:[C$1.Admission.saleEndsBehavior],description:`Label to display for this admission after ticket sales have ended`}),price:qr({booking:`Additional booking fee applied to the ticket price, in cents`,currency:`Three-letter ISO 4217 currency code for the ticket price`,price:`Pricing details for this admission type, including base cost and fees in cents, and currency`}),visibility:nc$1(rn$1).prefault(`ALWAYS`).meta({examples:[`ALWAYS`],description:`Controls whether this admission type is shown publicly, revealed by a scoped coupon, or unlocked after another admission.`}),visibleAfterAdmissionId:N$1.nullable().optional().meta({description:`Admission that must sell out or close before this admission can be purchased.`}),sectionId:Mn.nullable().optional().meta({examples:[C$1.Admission.sectionId],description:`Identifier of the section this admission type belongs to, if any`}),teamId:k$1.meta({description:`Team that owns this admission. Denormalized for efficient queries.`}),promoterId:M$1.meta({examples:[C$1.Admission.promoterId],description:`Identifier of the promoter responsible for this admission type`}),eventId:A$1.meta({examples:[C$1.Admission.eventId],description:`Identifier of the event to which this admission type is linked`}),eventSlug:Xo$1().meta({examples:[C$1.Admission.eventSlug],description:`URL-friendly slug for the event associated with this admission type`})}).meta({description:`Admission represents a specific type or category of ticket available for an event`,examples:[C$1.Admission]}),Jr=z$1.omit({id:true,createdAt:true,updatedAt:true,available:true,sold:true,reserved:true}).extend({price:z$1.shape.price.omit({tax:true,total:true}).strict()}).meta({description:`Schema for creating a new admission type for an event`}),Yr=z$1.pick({id:true}).extend({eventId:z$1.shape.eventId.meta({examples:[C$1.Admission.eventId],description:`Identifier of the event to which this admission type belongs`})}).meta({description:`Schema for deleting an admission type from an event. This performs a soft delete by setting the deletedAt timestamp`}),Xr=z$1.pick({id:true}).extend({eventId:A$1.meta({examples:[C$1.Admission.eventId],description:`Identifier of the event to which this admission type belongs`})}).meta({description:`Schema for retrieving a specific admission type`}),Zr=Ks$1({eventId:Xo$1().max(128).meta({examples:[C$1.Admission.eventId],description:`Identifier of the event to list admission types for`}),sectionId:Xo$1().max(128).optional().meta({examples:[C$1.Admission.sectionId],description:`Filter admission types by section identifier. If provided, only admissions for this section are returned`}),query:Xo$1().max(120).optional().meta({examples:[`Early Bird`],description:`Optional search query to filter admissions by name. When provided, search-backed pagination is used.`}),limit:L$1(`admission types`).optional(),cursor:Xo$1().max(768).optional().meta({examples:[`eyJpZCI6ImFkbV8wMWpwczVjZ3NlZTB4dmFwYms5MmU4ZWI0ZyJ9`],description:`Pagination cursor for retrieving the next set of results. Obtained from previous response`})}).meta({description:`Schema for listing admission types with pagination and filtering options`});function B$1(e,t){let n={[t]:Us$1(e).meta({description:`Array of ${t} for the current result set`})},r=Xo$1().nullish().meta({examples:[`eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNqIn19`],description:`Cursor for navigating backward in the result set. Omitted when there are no prior results.`}),i=Xo$1().nullish().meta({examples:[`eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNkIn19`],description:`Cursor for navigating forward in the result set. Omitted when there are no subsequent results.`});return Gs$1({...n,before:r,after:i,limit:T$1().min(1).meta({examples:[20],description:`Maximum number of items to return in each result set`})})}const Qr=B$1(z$1,`admissions`),$r=Gs$1({min:Ts$1().min(0).meta({description:`Minimum booking fee in the quote currency's minor units`}).optional(),max:Ts$1().min(0).meta({description:`Maximum booking fee in the quote currency's minor units`}).optional(),percent:Cs$1().min(0).meta({description:`Percentage applied when calculating the booking fee`}).optional()}),ei=z$1.pick({eventId:true}).extend({message:Xo$1().meta({examples:[`7.5% of the ticket price or $2 AUD, whichever is higher`],description:`Detailed explanation of the booking fee calculation applied to this admission type`}),source:nc$1([`EVENT`,`CUSTOM`]).meta({description:`Whether the quote uses the resolved event fee or an admission-level custom percentage.`}),rule:$r.meta({description:`Effective booking fee rule in the quote currency after conversion.`}),price:qr({booking:`Calculated booking fee applied to the ticket price, in cents`,currency:`Three-letter ISO 4217 currency code for the quoted price`,price:`Pricing quote for this admission type, showing base cost and calculated booking fee in cents`})}).meta({description:`Response schema for admission pricing quotes, including booking fee calculations and explanatory messages`}),ti=z$1.pick({eventId:true}).extend({base:Ts$1().min(0).meta({examples:[C$1.Admission.price.base],description:`Base cost of a ticket for this admission type before fees, in cents`}),currency:D$1.meta({examples:[C$1.Admission.price.currency],description:`Three-letter ISO 4217 currency code for the ticket price`}),override:Kr.optional().meta({description:`Optional admission-level booking fee percentage to preview instead of the event fee formula.`})}).meta({description:`Request schema for generating a pricing quote for an admission type, including booking fee calculations`}),ni=Gs$1({quote:ei}),ri=Gs$1({admission:z$1}),ii=Gs$1({id:z$1.shape.id,eventId:z$1.shape.eventId,name:z$1.shape.name.optional(),subtitle:z$1.shape.subtitle,description:z$1.shape.description,capacity:Un().optional(),limit:Wn().optional(),order:z$1.shape.order.optional(),entryStartsAt:z$1.shape.entryStartsAt.optional(),entryEndsAt:z$1.shape.entryEndsAt.optional(),saleStartsAt:z$1.shape.saleStartsAt.optional(),saleEndsAt:z$1.shape.saleEndsAt.optional(),saleEndsBehavior:Wr.optional(),price:z$1.shape.price.omit({tax:true,total:true}).strict().extend({override:Kr.nullable().optional().meta({description:`Admission pricing override. Pass null to clear it; omit to leave it unchanged.`})}).optional(),visibility:nc$1(rn$1).optional(),visibleAfterAdmissionId:N$1.nullable().optional(),sectionId:Mn.nullable().optional().meta({description:`Section ID. Pass null to unassign from section; omit to leave unchanged.`})}).meta({description:`Schema for updating an existing admission type.`}),ai=Gs$1({eventId:Xo$1().meta({description:`Event identifier`})}),oi=Gs$1({code:Xo$1().meta({description:`Coupon code captured on the order`}),totalTickets:Ts$1().min(0).meta({description:`Valid tickets purchased with this coupon code`}),checkedIn:Ts$1().min(0).meta({description:`Coupon tickets currently checked in`}),noShows:Ts$1().min(0).meta({description:`Coupon tickets not currently checked in`}),checkInRate:Cs$1().min(0).max(100).meta({description:`Percentage of coupon tickets checked in`})}),si=Gs$1({totalTickets:Ts$1().min(0).meta({description:`Total valid tickets purchased with a coupon code`}),checkedIn:Ts$1().min(0).meta({description:`Total coupon tickets currently checked in`}),noShows:Ts$1().min(0).meta({description:`Total coupon tickets not currently checked in`}),checkInRate:Cs$1().min(0).max(100).meta({description:`Overall percentage of coupon tickets checked in`}),coupons:Us$1(oi).meta({description:`Check-in attendance breakdown by coupon code, sorted by total tickets descending`})}),V$1=an$1().describe(`Date (YYYY-MM-DD)`),ci=Xo$1().min(1).max(128).optional().describe(`IANA time zone for interpreting date ranges`),li=Gs$1({startDate:V$1.describe(`Start date (YYYY-MM-DD)`),endDate:V$1.describe(`End date (YYYY-MM-DD)`),timeZone:ci}),ui={startDate:V$1.optional().describe(`Start date (YYYY-MM-DD)`),endDate:V$1.optional().describe(`End date (YYYY-MM-DD)`),timeZone:ci},di=e=>!e.startDate&&!e.endDate||!!(e.startDate&&e.endDate);Gs$1(ui).refine(di,{message:`Both startDate and endDate must be provided together, or omit both for all-time data`});function H$1(e){return Gs$1(e).extend(li.shape)}function pi(e){return Gs$1({...e,...ui}).refine(di,{message:`Both startDate and endDate must be provided together, or omit both for all-time data`})}const U$1=Gs$1({value:Cs$1().describe(`Current period value`),previous:Cs$1().describe(`Comparison period value`),change:Cs$1().describe(`Percentage change from previous period`),changeType:nc$1([`increase`,`decrease`,`unchanged`]).describe(`Direction of change`)}),mi=Gs$1({eventId:Xo$1().describe(`Event identifier`),eventName:Xo$1().describe(`Event name`),ticketCount:Cs$1().describe(`Number of tickets sold`),sharePercent:Cs$1().describe(`Percentage of total tickets`)}),W$1=Gs$1({start:Xo$1().describe(`Period start date`),end:Xo$1().describe(`Period end date`)}),hi=Gs$1({start:Xo$1().describe(`Comparison period start date`),end:Xo$1().describe(`Comparison period end date`)}),gi=nc$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]),_i=Gs$1({date:Xo$1().describe(`Date (YYYY-MM-DD)`),revenue:Cs$1().describe(`Revenue in cents`),tickets:Cs$1().describe(`Tickets sold`)}),vi=_i.extend({orders:Cs$1().describe(`Orders placed`)}),yi=Gs$1({revenue:Cs$1().describe(`Total revenue for period in cents`),tickets:Cs$1().describe(`Total tickets for period`)}),bi=yi.extend({orders:Cs$1().describe(`Total orders for period`)}),xi=Gs$1({revenue:U$1.describe(`Total revenue in cents`),ticketsSold:U$1.describe(`Number of tickets sold`),averageOrderValue:U$1.describe(`Average order value in cents`),conversionRate:U$1.describe(`Overall conversion rate (%)`),activeEvents:U$1.describe(`Number of active events in period`),uniqueCustomers:U$1.describe(`Unique customers (estimated)`),orderCount:U$1.describe(`Number of orders placed`),pageViews:U$1.describe(`Total page views from tracking`)}),Si=Gs$1({events:Us$1(mi),totalTickets:Cs$1().describe(`Total tickets across all events`)});function Ci(e,t){return H$1({...Di(e,t),currency:Xo$1().optional().describe(`Currency code for revenue metrics`)})}function wi(e){return Gs$1({meta:Gs$1({...e,currency:Xo$1().describe(`Primary currency code`),currencies:Us$1(Xo$1()).describe(`All currencies with transactions`),dateRange:W$1,comparisonRange:hi}),metrics:xi})}function Ti(e,t){return H$1({...Di(e,t),granularity:gi.optional().default(`DAY`).describe(`Time granularity`),currency:Xo$1().optional().describe(`Currency filter`)})}function Ei(e,t){return H$1({...Di(e,t),limit:Cs$1().optional().default(5).describe(`Maximum number of events to return`)})}function Di(e,t){return {[e]:Xo$1().describe(t)}}const Oi=pi({eventId:Xo$1().describe(`Event identifier`)}).meta({description:`Event performance summary request`}),ki=Gs$1({meta:Gs$1({eventId:Xo$1().describe(`Event identifier`),eventName:Xo$1().describe(`Event name`),currency:Xo$1().describe(`Currency code (e.g., USD, EUR)`),dateRange:W$1.optional().describe(`Present only when startDate/endDate are provided`),comparisonRange:hi.optional().describe(`Present only when startDate/endDate are provided`)}),metrics:Gs$1({revenue:U$1.describe(`Total revenue in cents`),ticketsSold:U$1.describe(`Number of tickets sold`),orderCount:U$1.describe(`Number of orders placed`),averageOrderValue:U$1.describe(`Average order value in cents`),conversionRate:U$1.extend({convertedVisitors:Cs$1().describe(`Unique eligible visitors who completed an order`).meta({description:`Unique eligible visitors who completed an order`}),eligibleVisitors:Cs$1().describe(`Unique visitors eligible for conversion`).meta({description:`Unique visitors eligible for conversion`})}).describe(`Visitor purchase conversion for the selected period`),pageViews:U$1.describe(`Total page/product views`),uniqueVisitors:U$1.describe(`Unique visitors (estimated)`),checkoutStarted:U$1.describe(`Number of checkout started events (external link clicks for external events)`)})}),Ai=H$1({eventId:Xo$1().describe(`Event identifier`),granularity:gi.optional().default(`DAY`).describe(`Time granularity for aggregation`),breakdown:nc$1([`TOTAL`]).optional().default(`TOTAL`).describe(`Breakdown type (always TOTAL for performance)`),includeBreakdowns:Ds$1().optional().default(true).describe(`Whether to include admission and section breakdowns in each time bucket`)}),ji=Gs$1({meta:Gs$1({eventId:Xo$1(),eventName:Xo$1().describe(`Event name`),currency:Xo$1().describe(`Currency code`),dateRange:W$1,granularity:gi}),series:Us$1(Gs$1({date:Xo$1().describe(`Date or timestamp`),tickets:Cs$1().describe(`Tickets sold in period`),revenue:Cs$1().describe(`Revenue in period (cents)`),admissions:Us$1(Gs$1({id:Xo$1(),name:Xo$1(),quantity:Cs$1()})),sections:Us$1(Gs$1({id:Xo$1(),name:Xo$1(),quantity:Cs$1()}))}))}),Mi=nc$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]).describe(`Time granularity for aggregation`),Ni=H$1({eventId:Xo$1().describe(`Event identifier`),granularity:Mi.optional().default(`DAY`)}).meta({description:`Event performance time series request`}),Pi=Gs$1({meta:Gs$1({eventId:Xo$1(),eventName:Xo$1().describe(`Event name`),currency:Xo$1().describe(`Currency code`),dateRange:W$1,granularity:Mi}),series:Us$1(Gs$1({date:Xo$1().describe(`Date or timestamp`),revenue:Cs$1().describe(`Net revenue in period (cents)`),tickets:Cs$1().describe(`Tickets sold in period`),orders:Cs$1().describe(`Completed orders in period`),pageViews:Cs$1().describe(`Product/page views in period`),visitors:Cs$1().describe(`Unique visitors in period (estimated)`),checkoutStarted:Cs$1().describe(`Checkout started events in period`),convertedVisitors:Cs$1().describe(`Unique visitors who completed an order in period`),eligibleVisitors:Cs$1().describe(`Unique visitors eligible for conversion in period`),conversionRate:Cs$1().describe(`Converted visitors divided by eligible visitors in period (%)`)}))}),Fi=H$1({eventId:Xo$1().describe(`Event identifier`)}),Ii=Gs$1({meta:Gs$1({eventId:Xo$1(),eventName:Xo$1().describe(`Event name`),currency:Xo$1().describe(`Currency code`),dateRange:W$1}),totals:Gs$1({entered:Cs$1().describe(`Total entered funnel (product viewed)`),completed:Cs$1().describe(`Total completed (orders)`),overallConversionRate:Cs$1().describe(`Overall conversion rate (%)`),totalDropped:Cs$1().describe(`Total dropped off`)}),stages:Us$1(Gs$1({id:Xo$1().describe(`Funnel stage identifier`),name:Xo$1().describe(`Human-readable stage name`),count:Cs$1().describe(`Number of events at this stage`),conversionRate:Cs$1().describe(`Conversion rate from first stage (%)`),dropoffRate:Cs$1().describe(`Dropoff rate from previous stage (%)`)}))});Gs$1({meta:Gs$1({eventId:Xo$1(),dimension:Xo$1().describe(`Dimension type`),dateRange:W$1,limit:Cs$1().optional()}),data:Us$1(Gs$1({name:Xo$1().describe(`Dimension value (e.g., campaign name)`),views:Cs$1().describe(`Page/product views`),clicks:Cs$1().describe(`Ticket link clicks`).optional(),conversions:Cs$1().describe(`Completed orders`),revenue:Cs$1().describe(`Total revenue in cents`),conversionRate:Cs$1().describe(`Conversion rate (%)`),share:Cs$1().describe(`Percentage share of total`).optional()})),totals:Gs$1({views:Cs$1(),conversions:Cs$1(),revenue:Cs$1()}).optional()});const Ri=nc$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]),zi=Gs$1({eventId:Xo$1().describe(`Event identifier`),eventName:Xo$1().describe(`Event name`),currency:Xo$1().describe(`Currency code (e.g., USD, EUR)`),dateRange:W$1}),Bi=zi.extend({limit:Cs$1().describe(`Maximum number of results returned`)}),Vi=nc$1([`MOBILE`,`DESKTOP`,`TABLET`,`Unknown`]),Hi=nc$1([`revenue`,`tickets`,`orders`,`pageViews`,`visitors`,`conversion`,`clicks`,`clickRate`]).describe(`Metric used to sort breakdown rows before limiting results`);H$1({eventId:Xo$1(),granularity:Ri.optional()});Gs$1({granularity:Ri,data:Us$1(Gs$1({date:Xo$1(),revenue:Cs$1(),ticketsSold:Cs$1()}))});const Gi=H$1({eventId:Xo$1(),limit:Cs$1().min(1).max(100).optional().default(10)}),Ki=Gs$1({meta:Bi,totals:Gs$1({uses:Cs$1().describe(`Total coupon uses across all coupons`),revenue:Cs$1().describe(`Total revenue from coupon-discounted orders (cents)`)}),coupons:Us$1(Gs$1({id:Xo$1().describe(`Coupon code identifier`),code:Xo$1().describe(`Coupon code`),uses:Cs$1().describe(`Number of times this coupon was used`),revenue:Cs$1().describe(`Revenue from this coupon (cents)`),discount:Xo$1().describe(`Discount amount or percentage`),share:Cs$1().describe(`Share of total coupon uses (%)`)})).describe(`Coupons sorted by uses descending`)}),qi=H$1({eventId:Xo$1(),limit:Cs$1().min(1).max(100).optional().default(10),sortBy:Hi.optional().default(`orders`)}),Ji=Gs$1({data:Us$1(Gs$1({campaign:Xo$1(),views:Cs$1(),visitors:Cs$1(),clicks:Cs$1().optional(),orders:Cs$1(),tickets:Cs$1(),revenue:Cs$1(),conversionRate:Cs$1(),sharePercent:Cs$1()})),totalOrders:Cs$1(),totalTickets:Cs$1(),totalRevenue:Cs$1()}),Yi=H$1({eventId:Xo$1(),limit:Cs$1().min(1).max(100).optional().default(10),sortBy:Hi.optional().default(`orders`)}),Xi=Gs$1({meta:Bi,totals:Gs$1({views:Cs$1().describe(`Total views across all mediums`),visitors:Cs$1().describe(`Total unique visitors across all mediums`),orders:Cs$1().describe(`Total orders across all mediums`),tickets:Cs$1().describe(`Total tickets across all mediums`),revenue:Cs$1().describe(`Total revenue across all mediums (cents)`)}),mediums:Us$1(Gs$1({id:Xo$1().describe(`Medium identifier (e.g., 'social', 'email')`),name:Xo$1().describe(`Medium name`),views:Cs$1().describe(`Views from this medium`),visitors:Cs$1().describe(`Unique visitors from this medium`),clicks:Cs$1().optional().describe(`Ticket link clicks`),orders:Cs$1().describe(`Orders from this medium`),tickets:Cs$1().describe(`Tickets from this medium`),revenue:Cs$1().describe(`Revenue from this medium (cents)`),conversionRate:Cs$1().describe(`Conversion rate (%)`),share:Cs$1().describe(`Share of total orders (%)`)})).describe(`Mediums sorted by orders descending`)}),Zi=H$1({eventId:Xo$1(),limit:Cs$1().min(1).max(100).optional().default(10),sortBy:Hi.optional().default(`orders`)}),Qi=Gs$1({meta:zi,totals:Gs$1({views:Cs$1().describe(`Total views across all devices`),visitors:Cs$1().describe(`Total unique visitors across all devices`),revenue:Cs$1().describe(`Total revenue across all devices (cents)`),orders:Cs$1().describe(`Total orders across all devices`),tickets:Cs$1().describe(`Total tickets across all devices`)}),devices:Us$1(Gs$1({id:Vi.describe(`Device type`),name:Xo$1().describe(`Human-readable device name`),views:Cs$1().optional().describe(`Page views from this device`),visitors:Cs$1().describe(`Unique visitors from this device`),revenue:Cs$1().describe(`Revenue from this device (cents)`),clicks:Cs$1().optional().describe(`Ticket link clicks`),orders:Cs$1().describe(`Orders from this device`),tickets:Cs$1().describe(`Tickets from this device`),conversionRate:Cs$1().describe(`Conversion rate (%)`),share:Cs$1().describe(`Share of total orders (%)`)})).describe(`Devices sorted by orders descending`)}),$i=H$1({eventId:Xo$1(),limit:Cs$1().min(1).max(100).optional().default(10),sortBy:Hi.optional().default(`visitors`)}),ea=Gs$1({meta:Bi,totals:Gs$1({views:Cs$1().describe(`Total views across all browsers`),visitors:Cs$1().describe(`Total unique visitors across all browsers`),orders:Cs$1().describe(`Total orders across all browsers`),tickets:Cs$1().describe(`Total tickets across all browsers`),revenue:Cs$1().describe(`Total revenue across all browsers (cents)`)}),browsers:Us$1(Gs$1({id:Xo$1().describe(`Browser identifier`),name:Xo$1().describe(`Human-readable browser name`),views:Cs$1().describe(`Page views from this browser`),clicks:Cs$1().optional().describe(`Ticket link clicks`),visitors:Cs$1().describe(`Unique visitors from this browser`),orders:Cs$1().describe(`Orders from this browser`),tickets:Cs$1().describe(`Tickets from this browser`),revenue:Cs$1().describe(`Revenue from this browser (cents)`),conversionRate:Cs$1().describe(`Conversion rate (%)`),share:Cs$1().describe(`Share of total visitors (%)`)})).describe(`Browsers sorted by visitors descending`)}),ta=H$1({eventId:Xo$1(),limit:Cs$1().min(1).max(100).optional().default(10),sortBy:Hi.optional().default(`pageViews`)}),na=Gs$1({meta:Bi,totals:Gs$1({views:Cs$1().describe(`Total views across all locations`),visitors:Cs$1().describe(`Total unique visitors across all locations`),orders:Cs$1().describe(`Total orders across all locations`),tickets:Cs$1().describe(`Total tickets across all locations`),revenue:Cs$1().describe(`Total revenue across all locations (cents)`)}),locations:Us$1(Gs$1({id:Xo$1().describe(`Location/region code (e.g., 'US-CA', 'GB')`),name:Xo$1().describe(`Human-readable location name`),views:Cs$1().describe(`Page views from this location`),visitors:Cs$1().describe(`Unique visitors from this location`),clicks:Cs$1().optional().describe(`Ticket link clicks`),orders:Cs$1().describe(`Orders from this location`),tickets:Cs$1().describe(`Tickets from this location`),revenue:Cs$1().describe(`Revenue from this location (cents)`),conversionRate:Cs$1().describe(`Conversion rate (%)`),share:Cs$1().describe(`Share of total views (%)`)})).describe(`Locations sorted by views descending`)}),ra=H$1({eventId:Xo$1(),limit:Cs$1().min(1).max(100).optional().default(10),sortBy:Hi.optional().default(`pageViews`)}),ia=Gs$1({meta:Bi,totals:Gs$1({sessions:Cs$1().describe(`Total sessions across all sources`),visitors:Cs$1().describe(`Total unique visitors across all sources`),orders:Cs$1().describe(`Total orders across all sources`),tickets:Cs$1().describe(`Total tickets across all sources`),revenue:Cs$1().describe(`Total revenue across all sources (cents)`)}),sources:Us$1(Gs$1({id:Xo$1().describe(`Traffic source identifier`),name:Xo$1().describe(`Traffic source name`),referrer:Xo$1().describe(`Referrer URL or domain`),sessions:Cs$1().describe(`Sessions from this source`),visitors:Cs$1().describe(`Unique visitors from this source`),clicks:Cs$1().optional().describe(`Ticket link clicks`),orders:Cs$1().describe(`Orders from this source`),tickets:Cs$1().describe(`Tickets from this source`),conversionRate:Cs$1().describe(`Conversion rate (%)`),revenue:Cs$1().describe(`Revenue from this source (cents)`),share:Cs$1().describe(`Share of total sessions (%)`)})).describe(`Traffic sources sorted by sessions descending`)}),aa=Gs$1({eventId:Xo$1(),includeAdmission:Ds$1().optional().default(true),includeSection:Ds$1().optional().default(true),granularity:nc$1([`HOUR`,`MINUTE`]).optional()}),oa=Gs$1({totalTickets:Cs$1(),checkedIn:Cs$1(),notCheckedIn:Cs$1(),checkinRate:Cs$1()}),sa=oa.extend({admissionId:Xo$1(),admissionName:Xo$1()}),ca=oa.extend({sectionId:Xo$1(),sectionName:Xo$1()}),la=Js$1([oa.extend({byAdmission:Us$1(sa),bySection:Us$1(ca)}),Gs$1({granularity:nc$1([`HOUR`,`MINUTE`]),totalTickets:Cs$1(),data:Us$1(Gs$1({timestamp:Xo$1(),checkedIn:Cs$1(),rate:Cs$1(),checkinsThisPeriod:Cs$1()})),byAdmission:Us$1(Gs$1({admissionId:Xo$1(),admissionName:Xo$1(),data:Us$1(Gs$1({timestamp:Xo$1(),checkedIn:Cs$1(),rate:Cs$1()}))})).optional(),bySection:Us$1(Gs$1({sectionId:Xo$1(),sectionName:Xo$1(),data:Us$1(Gs$1({timestamp:Xo$1(),checkedIn:Cs$1(),rate:Cs$1()}))})).optional()})]),ua=Gs$1({eventId:Xo$1(),limit:Cs$1().min(1).max(50).optional().default(10)}),da=Gs$1({totalCheckIns:Cs$1(),scanners:Us$1(Gs$1({userId:Xo$1(),name:Xo$1(),email:Xo$1(),checkIns:Cs$1(),sharePercent:Cs$1(),firstScanAt:Xo$1().nullable(),lastScanAt:Xo$1().nullable(),activeMinutes:Cs$1(),scansPerHour:Cs$1(),devices:Us$1(Gs$1({deviceId:Xo$1(),checkIns:Cs$1()}))})).describe(`Door staff sorted by check-ins descending`)}),fa=Gs$1({eventId:Xo$1(),includeAdmission:Ds$1().optional().default(true),includeSection:Ds$1().optional().default(true)}),pa=Gs$1({totalTickets:Cs$1(),checkedIn:Cs$1(),noShows:Cs$1(),checkInRate:Cs$1(),noShowRate:Cs$1()}),ma=pa.extend({admissionId:Xo$1(),admissionName:Xo$1()}),ha=pa.extend({sectionId:Xo$1(),sectionName:Xo$1()}),ga=pa.extend({byAdmission:Us$1(ma),bySection:Us$1(ha)}),_a=Gs$1({eventId:Xo$1(),granularity:nc$1([`MINUTE`,`FIFTEEN_MINUTE`,`HOUR`]).optional().default(`FIFTEEN_MINUTE`)}),va=Gs$1({granularity:nc$1([`MINUTE`,`FIFTEEN_MINUTE`,`HOUR`]),totalCheckIns:Cs$1(),peakWindow:Gs$1({start:Xo$1().nullable(),end:Xo$1().nullable(),checkIns:Cs$1()}),data:Us$1(Gs$1({timestamp:Xo$1(),checkIns:Cs$1(),cumulativeCheckIns:Cs$1(),cumulativeRate:Cs$1()}))}),ya=Ci(`promoterId`,`Promoter identifier`),ba=wi({promoterId:Xo$1().describe(`Promoter identifier`),promoterName:Xo$1().describe(`Promoter name`),teamId:Xo$1().describe(`Team identifier`),teamName:Xo$1().describe(`Team name`)}),xa=Ti(`promoterId`,`Promoter identifier`),Sa=Gs$1({meta:Gs$1({promoterId:Xo$1(),dateRange:W$1,granularity:gi}),currencies:Us$1(Gs$1({currency:Xo$1().describe(`Currency code (e.g., USD, EUR)`),series:Us$1(_i),totals:yi})).describe(`Time-series data grouped by currency`)}),Ca=Ei(`promoterId`,`Promoter identifier`),wa=Si,Ta=Ci(`teamId`,`Team identifier`),Ea=wi({teamId:Xo$1().describe(`Team identifier`),teamName:Xo$1().describe(`Team name`)}),Da=Ti(`teamId`,`Team identifier`),Oa=Gs$1({meta:Gs$1({teamId:Xo$1(),dateRange:W$1,granularity:gi}),currencies:Us$1(Gs$1({currency:Xo$1().describe(`Currency code (e.g., USD, EUR)`),series:Us$1(vi),totals:bi})).describe(`Time-series data grouped by currency`)});H$1({teamId:Xo$1().describe(`Team identifier`),limit:Cs$1().optional().default(10).describe(`Number of events to return`),sortBy:nc$1([`revenue`,`tickets`,`conversion`]).optional().default(`revenue`).describe(`Sort metric`)});Gs$1({meta:Gs$1({teamId:Xo$1(),dateRange:Gs$1({start:Xo$1(),end:Xo$1()}),limit:Cs$1(),sortBy:Xo$1()}),data:Us$1(Gs$1({eventId:Xo$1().describe(`Event identifier`),eventName:Xo$1().describe(`Event name`),eventDate:Xo$1().describe(`Event date`).optional(),status:Xo$1().describe(`Event status`),revenue:Cs$1().describe(`Total revenue in cents`),tickets:Cs$1().describe(`Tickets sold`),views:Cs$1().describe(`Page views`),conversionRate:Cs$1().describe(`Conversion rate (%)`),contribution:Cs$1().describe(`% of promoter's total revenue`)})),totals:Gs$1({events:Cs$1().describe(`Total events in period`),revenue:Cs$1().describe(`Combined revenue`),tickets:Cs$1().describe(`Combined tickets`)})});const ja=Ei(`teamId`,`Team identifier`),Ma=Si,Na=H$1({teamId:Xo$1().describe(`Team identifier`)}),Pa=Gs$1({stages:Us$1(Gs$1({stageId:Xo$1().describe(`Funnel stage identifier`),stageLabel:Xo$1().describe(`Human-readable stage name`),count:Cs$1().describe(`Number of events at this stage`),conversionRate:Cs$1().describe(`Conversion rate from first stage (%)`),dropoffPercent:Cs$1().describe(`Dropoff rate from previous stage (%)`)}))}),Fa=H$1({teamId:Xo$1().describe(`Team identifier`),groupBy:nc$1([`HOUR`,`DAY_OF_WEEK`,`DAY`,`WEEK`,`MONTH`]).optional().default(`HOUR`).describe(`Time breakdown for aggregation`),timeZone:Xo$1().optional().default(`UTC`).describe(`IANA timezone for hour/day aggregation (e.g., 'America/New_York')`)}),Ia=Gs$1({groupBy:nc$1([`HOUR`,`DAY_OF_WEEK`,`DAY`,`WEEK`,`MONTH`]).describe(`The grouping used for aggregation`),buckets:Us$1(Gs$1({key:Js$1([Cs$1(),Xo$1()]).describe(`Bucket key (hour 0-23, day 0-6, or date string)`),label:Xo$1().describe(`Human-readable label`),orderCount:Cs$1().describe(`Number of orders`),sharePercent:Cs$1().describe(`Percentage of total orders`)})),totalOrders:Cs$1().describe(`Total orders across all buckets`)}),La=H$1({teamId:Xo$1().describe(`Team identifier`),limit:Cs$1().optional().default(10).describe(`Maximum number of admissions to return`)}),Ra=Gs$1({admissions:Us$1(Gs$1({admissionId:Xo$1().describe(`Admission identifier`),admissionName:Xo$1().describe(`Admission name`),ticketCount:Cs$1().describe(`Number of tickets sold`),sharePercent:Cs$1().describe(`Percentage of total tickets`)})),totalTickets:Cs$1().describe(`Total tickets across all admissions`)}),za=H$1({teamId:Xo$1().describe(`Team identifier`),type:nc$1([`campaign`,`medium`,`source`]).describe(`Dimension type to analyze`),limit:Cs$1().optional().default(20).describe(`Maximum number of results to return`)}),Ba=Gs$1({dimensionType:nc$1([`campaign`,`medium`,`source`]).describe(`The dimension type analyzed`),data:Us$1(Gs$1({dimensionValue:Xo$1().describe(`The dimension value (e.g., campaign name)`),dimensionLabel:Xo$1().describe(`Human-readable label`),views:Cs$1().describe(`Total page views`),conversions:Cs$1().describe(`Total conversions (orders)`),conversionRate:Cs$1().describe(`Conversion rate (%)`),sharePercent:Cs$1().describe(`Share of total conversions (%)`)})),totalConversions:Cs$1().describe(`Total conversions across all dimensions`)}),Va=Gs$1({teamId:Xo$1().describe(`Team identifier`),startAt:w$1().describe(`Inclusive period start timestamp`),endAt:w$1().describe(`Exclusive period end timestamp`)}),Ha=Gs$1({currency:Xo$1().describe(`Currency code`),disputedOrders:Cs$1().describe(`Orders currently marked as disputed`),orderCount:Cs$1().describe(`Successful orders`),refunded:Cs$1().describe(`Refunded amount in cents`),refundCount:Cs$1().describe(`Orders with refunded value`),refundRate:Cs$1().describe(`Refunded order rate as a percentage`),revenue:Cs$1().describe(`Total order value in cents`),ticketsSold:Cs$1().describe(`Tickets sold`)}),Ua=Ha.omit({currency:true}),Wa=Gs$1({currencies:Us$1(Ha),comparison:Gs$1({totals:Ua}),meta:Gs$1({endAt:Xo$1().describe(`Exclusive period end timestamp`),startAt:Xo$1().describe(`Inclusive period start timestamp`),teamId:Xo$1().describe(`Team identifier`)}),totals:Ua}),Ga=Gs$1({teamId:Xo$1().describe(`Team identifier`)}),Ka=Js$1([Ga.extend({startDate:V$1.describe(`Start date (YYYY-MM-DD)`),endDate:V$1.describe(`End date (YYYY-MM-DD)`)}),Ga.extend({startDate:ks$1().optional(),endDate:ks$1().optional()})]),qa=Gs$1({amount:Cs$1().describe(`Payout net amount in cents`),count:Cs$1().describe(`Number of payouts in this currency`),currency:Xo$1().describe(`Currency code`)}),Ja=Gs$1({amount:Cs$1().describe(`Payout net amount in cents`),currency:Xo$1().nullable().describe(`Currency code`),dueAt:Xo$1().nullable().describe(`Payout due timestamp`),payoutId:Xo$1().nullable().describe(`Payout identifier`)}),Ya=Gs$1({amount:Cs$1().describe(`Payout net amount in cents`),currency:Xo$1().nullable().describe(`Currency code`),paidAt:Xo$1().nullable().describe(`Payout paid timestamp`),payoutId:Xo$1().nullable().describe(`Payout identifier`)}),Xa=Gs$1({upcoming:Gs$1({count:Cs$1().describe(`Upcoming payouts matching the request`),pendingApproval:Cs$1().describe(`Upcoming payouts still awaiting approval`),totals:Us$1(qa).describe(`Upcoming payout totals by currency`),next:Ja}),lastPaid:Ya}),Za=Gs$1({teamId:Xo$1().describe(`Team identifier`),startDate:V$1.describe(`Start date (YYYY-MM-DD)`),endDate:V$1.describe(`End date (YYYY-MM-DD)`),granularity:gi.optional().default(`DAY`).describe(`Time granularity`),currency:Xo$1().optional().describe(`Currency filter`)}),Qa=nc$1([`revenue`,`credits`,`refunds`,`disputes`,`payouts`]),$a=Gs$1({id:Xo$1().optional().describe(`Source identifier`),label:Xo$1().describe(`Human-readable source label`),kind:Qa,amount:Cs$1().describe(`Signed movement amount in cents`),eventId:Xo$1().optional().describe(`Related event identifier`),eventName:Xo$1().optional().describe(`Related event name`)}),eo=Gs$1({date:Xo$1().describe(`Bucket date`),label:Xo$1().describe(`Human-readable bucket label`),revenue:Cs$1().describe(`Successful order total after discounts in cents`),credits:Cs$1().describe(`Positive credit amount in cents`),refunds:Cs$1().describe(`Signed refund adjustment amount in cents`),disputes:Cs$1().describe(`Signed dispute principal and fee adjustment amount in cents`),payouts:Cs$1().describe(`Signed paid payout amount in cents`),movements:Us$1($a)}),to=Gs$1({revenue:Cs$1().describe(`Successful order total after discounts in cents`),credits:Cs$1().describe(`Positive credit amount in cents`),refunds:Cs$1().describe(`Signed refund adjustment amount in cents`),disputes:Cs$1().describe(`Signed dispute principal and fee adjustment amount in cents`),payouts:Cs$1().describe(`Signed paid payout amount in cents`),net:Cs$1().describe(`Net signed money movement in cents`)}),no=Gs$1({amount:Cs$1().describe(`Outstanding adjustment amount in cents`),count:Cs$1().describe(`Outstanding adjustment count`),currency:Xo$1().describe(`Currency code`)}),ro=Gs$1({meta:Gs$1({teamId:Xo$1(),dateRange:W$1,granularity:gi}),cards:Gs$1({upcomingPayouts:Gs$1({count:Cs$1(),pendingApproval:Cs$1(),totals:Us$1(qa)}),adjustments:Gs$1({count:Cs$1(),totals:Us$1(no)}),nextPayout:Ja,lastPaid:Ya}),currencies:Us$1(Gs$1({currency:Xo$1().describe(`Currency code`),series:Us$1(eo),totals:to}))}),io=H$1({teamId:Xo$1().describe(`Team identifier`),granularity:nc$1([`DAY`,`WEEK`,`MONTH`]).optional().default(`DAY`).describe(`Time granularity for aggregation`)}),ao=Gs$1({granularity:nc$1([`DAY`,`WEEK`,`MONTH`]).describe(`The granularity used`),series:Us$1(Gs$1({date:Xo$1().describe(`Date key (YYYY-MM-DD, YYYY-Www, or YYYY-MM)`),label:Xo$1().describe(`Human-readable label`),productViewed:Cs$1().describe(`Page views`),productAdded:Cs$1().describe(`Add to cart events`),checkoutStarted:Cs$1().describe(`Checkout started events`),orderCompleted:Cs$1().describe(`Completed orders`)})),totals:Gs$1({productViewed:Cs$1().describe(`Total page views`),productAdded:Cs$1().describe(`Total add to cart`),checkoutStarted:Cs$1().describe(`Total checkouts started`),orderCompleted:Cs$1().describe(`Total orders completed`),uniqueVisitors:Cs$1().describe(`Unique visitors (estimated via HyperLogLog, ~0.8% error)`)})}),oo=Gs$1({product_id:Xo$1().optional().describe(`admission_id in ticketing context`),sku:Xo$1().optional().describe(`admission_id or admission_name`),category:Xo$1().optional().describe(`event_name or "Admission"`),name:Xo$1().optional().describe(`admission_name`),brand:Xo$1().optional().describe(`promoter_name`),variant:Xo$1().optional().describe(`section_name`),price:Cs$1().optional().describe(`admission price (base + booking fee) in major currency units`),quantity:Cs$1().optional().describe(`number of tickets`),coupon:Xo$1().optional().describe(`coupon code applied`),position:Cs$1().optional().describe(`position in list`),url:Xo$1().optional().describe(`URL to event/admission page`),image_url:Xo$1().optional().describe(`event image`),admission_id:Xo$1().optional().describe(`Explicit admission ID`),section_id:Xo$1().optional().describe(`Section ID if applicable`),event_id:Xo$1().optional().describe(`Event ID for this admission`),promoter_id:Xo$1().optional().describe(`Promoter ID`),price_base:Cs$1().nullish().describe(`Base price before fees in minor currency units`),price_booking_fee:Cs$1().nullish().describe(`Booking fee in minor currency units`),capacity:Cs$1().optional().describe(`Total capacity for this admission`),available:Cs$1().optional().describe(`Remaining tickets available`),sold:Cs$1().optional().describe(`Tickets already sold`)}),so=Gs$1({type:Xo$1(),value:Xo$1()}),co=Gs$1({type:Xo$1(),value:Xo$1()}),lo=Gs$1({query:Js$1([Xo$1(),ec$1(Xo$1(),Fs$1())]).optional(),list_id:Xo$1().optional(),category:Xo$1().optional(),filters:Us$1(so).optional(),sorts:Us$1(co).optional(),promotion_id:Xo$1().optional(),creative:Xo$1().optional(),name:Xo$1().optional(),position:Js$1([Xo$1(),Cs$1()]).optional(),product_id:Xo$1().optional(),sku:Xo$1().optional(),brand:Xo$1().optional(),variant:Xo$1().optional(),price:Cs$1().optional().describe(`Product price in major currency units`),quantity:Cs$1().optional(),coupon:Xo$1().optional(),currency:Xo$1().optional().describe(`ISO 4217 currency code`),value:Cs$1().optional().describe(`Event value in major currency units`),url:Xo$1().optional(),image_url:Xo$1().optional(),cart_id:Xo$1().optional(),step:Cs$1().optional(),shipping_method:Xo$1().optional(),payment_method:Xo$1().optional(),ticketing_mode:nc$1([`internal`,`external`]).optional(),external_ticket_url:Xo$1().optional(),external_ticket_domain:Xo$1().optional(),cta_surface:Xo$1().optional(),order_id:Xo$1().optional(),affiliation:Xo$1().optional(),subtotal:Cs$1().optional().describe(`Order subtotal in major currency units`),total:Cs$1().optional().describe(`Order total in major currency units`),revenue:Cs$1().optional().describe(`Order revenue in major currency units`),shipping:Cs$1().optional().describe(`Shipping amount in major currency units`),tax:Cs$1().optional().describe(`Tax amount in major currency units`),discount:Cs$1().optional().describe(`Discount amount in major currency units`),coupon_id:Xo$1().optional(),coupon_name:Xo$1().optional(),reason:Xo$1().optional(),wishlist_id:Xo$1().optional(),wishlist_name:Xo$1().optional(),share_via:Xo$1().optional(),share_message:Xo$1().optional(),recipient:Xo$1().optional(),review_id:Xo$1().optional(),review_body:Xo$1().optional(),rating:Xo$1().optional(),products:Us$1(oo).optional(),event_id:Xo$1().optional().describe(`ID of the ticketed event (evt_xxx)`),event_name:Xo$1().optional().describe(`Name of the ticketed event`),event_slug:Xo$1().optional().describe(`URL slug of event`),event_starts_at:I$1.optional().describe(`When the event starts (naive datetime, no timezone)`),event_ends_at:I$1.optional().describe(`When the event ends (naive datetime, no timezone)`),event_status:nc$1([`UPCOMING`,`LIVE`,`ENDED`,`CANCELLED`]).optional(),event_visibility:nc$1([`PUBLIC`,`PRIVATE`]).optional(),event_location:Xo$1().optional().describe(`Venue name`),event_city:Xo$1().optional().describe(`Venue city`),event_country:Xo$1().optional().describe(`Venue country`),promoter_id:Xo$1().optional().describe(`ID of the promoter (pmt_xxx)`),promoter_name:Xo$1().optional().describe(`Name of the promoter`),promoter_slug:Xo$1().optional().describe(`URL slug of promoter`),admission_id:Xo$1().optional().describe(`ID of admission type (adm_xxx)`),admission_name:Xo$1().optional().describe(`Name of admission (e.g., "General Admission")`),admission_capacity:Cs$1().optional().describe(`Total capacity for this admission`),admission_available:Cs$1().optional().describe(`Tickets still available`),admission_sold:Cs$1().optional().describe(`Tickets already sold`),section_id:Xo$1().optional().describe(`ID of section (sct_xxx)`),section_name:Xo$1().optional().describe(`Name of section (e.g., "VIP", "General")`),section_capacity:Cs$1().optional().describe(`Total capacity for this section`),section_available:Cs$1().optional().describe(`Spots still available in section`),ticket_id:Xo$1().optional().describe(`Individual ticket ID (tkt_xxx)`),ticket_status:nc$1([`VALID`,`REDEEMED`,`CANCELLED`]).optional(),tickets_quantity:Cs$1().optional().describe(`Number of tickets in transaction`),customer_id:Xo$1().optional().describe(`Customer ID (cus_xxx)`),customer_email:Xo$1().optional().describe(`Customer email`),customer_first_name:Xo$1().optional(),customer_last_name:Xo$1().optional(),price_base:Cs$1().nullish().describe(`Base price before fees in minor currency units`),price_booking_fee:Cs$1().nullish().describe(`Booking fee amount in minor currency units`),price_discount_amount:Cs$1().nullish().describe(`Discount amount applied in minor currency units`),sale_starts_at:I$1.optional().describe(`When tickets go on sale (naive datetime, no timezone)`),sale_ends_at:I$1.optional().describe(`When ticket sales end (naive datetime, no timezone)`),entry_starts_at:I$1.optional().describe(`When entry to event begins (naive datetime, no timezone)`),entry_ends_at:I$1.optional().describe(`When entry to event ends (naive datetime, no timezone)`),funnel_step:Xo$1().optional().describe(`Current funnel step (e.g., "browse", "cart", "checkout")`),time_to_purchase:Cs$1().optional().describe(`Seconds from first view to purchase`),session_duration:Cs$1().optional().describe(`Total session duration in seconds`),referrer_type:nc$1([`DIRECT`,`SOCIAL`,`EMAIL`,`SEARCH`,`REFERRAL`,`AD`]).optional(),campaign_id:Xo$1().optional().describe(`Marketing campaign ID`),affiliate_id:Xo$1().optional().describe(`Affiliate partner ID`),promo_code_used:Xo$1().optional().describe(`Promotional code applied`),platform:nc$1([`WEB`,`MOBILE_WEB`,`IOS`,`ANDROID`]).optional(),app_version:Xo$1().optional(),device_type:nc$1([`MOBILE`,`TABLET`,`DESKTOP`]).optional(),anonymous_id:Xo$1().optional(),browser:Xo$1().optional(),browser_session_id:Xo$1().optional(),country:Xo$1().optional(),page_path:Xo$1().optional(),page_title:Xo$1().optional(),page_url:Xo$1().optional(),referrer:Xo$1().optional(),region:Xo$1().optional(),user_agent:Xo$1().optional(),utm_source:Xo$1().optional(),utm_medium:Xo$1().optional(),utm_campaign:Xo$1().optional(),utm_term:Xo$1().optional(),utm_content:Xo$1().optional()}),uo=Gs$1({session_id:Xo$1(),user_id:Xo$1().optional(),anonymous_id:Xo$1().optional(),utm_source:Xo$1().optional(),utm_medium:Xo$1().optional(),utm_campaign:Xo$1().optional(),utm_term:Xo$1().optional(),utm_content:Xo$1().optional(),page:Gs$1({url:Xo$1(),path:Xo$1(),title:Xo$1()}),referrer:Xo$1().optional(),user_agent:Xo$1().optional(),ip:Xo$1().optional(),geo:Gs$1({country:Xo$1().optional().describe(`Country code (e.g., "AU")`),countryName:Xo$1().optional().describe(`Country name (e.g., "Australia")`),region:Xo$1().optional().describe(`State/province code`),regionName:Xo$1().optional().describe(`State/province name (e.g., "New South Wales")`),city:Xo$1().optional().describe(`City name`),latitude:Xo$1().optional().describe(`Latitude`),longitude:Xo$1().optional().describe(`Longitude`)}).optional(),fbc:Xo$1().optional().describe(`Facebook click ID`),fbp:Xo$1().optional().describe(`Facebook browser ID`),ttclid:Xo$1().optional().describe(`TikTok click ID`)}),fo=Gs$1({id:Xo$1(),eventId:Xo$1().min(1).describe(`Event being tracked (evt_123)`),teamId:Xo$1().min(1).describe(`Team ID (team_123)`),promoterId:Xo$1().min(1).describe(`Promoter ID (pmt_123)`),eventType:hl,timestamp:Xo$1(),date:Xo$1().describe(`YYYY-MM-DD`),hour:Cs$1().int().min(0).max(23),properties:lo,context:uo,productId:Xo$1().optional(),createdAt:Xo$1(),updatedAt:Xo$1()}),po=fo.omit({id:true,timestamp:true,date:true,hour:true,createdAt:true,updatedAt:true}).extend({messageId:Xo$1().min(1).optional().meta({description:`Analytics message id for retry-safe event delivery and linking.`}),occurredAt:w$1().optional().meta({description:`Client-observed event time. Server ingest time remains authoritative for writes.`})}).meta({description:`Schema for tracking an analytics event. Excludes system-generated fields`}),mo=Gs$1({legacyOrgId:Xo$1().min(1),legacyEventId:Xo$1().min(1),legacyTeamId:Xo$1().min(1),legacyEventName:Xo$1().optional(),legacyEventSlug:Xo$1().optional(),legacyEventCreatedAt:Js$1([Xo$1(),Vs$1(),js$1()]).optional(),legacyTeamCreatedAt:Js$1([Xo$1(),Vs$1(),js$1()]).optional()}),ho=Gs$1({eventName:Xo$1().min(1).optional(),eventType:hl.optional(),eventId:Xo$1().min(1).optional(),teamId:Xo$1().min(1).optional(),promoterId:Xo$1().min(1).optional(),properties:ec$1(Xo$1(),Fs$1()).optional(),context:uo.partial().optional(),legacyContext:mo.optional()}).passthrough().meta({description:`Compatibility schema for legacy Sash analytics payloads that require server-side ID normalization`}),go=Js$1([po,ho]).meta({description:`Analytics ingress schema accepting both canonical payloads and legacy Sash-compatible payloads`});pi({eventId:Xo$1().meta({description:`Event ID to get tracking events for`}),limit:T$1().int().positive().optional().meta({description:`Maximum number of events to return`})}).meta({description:`Schema for retrieving tracking events for an event`});const vo=nc$1([`AIRWALLEX`,`STRIPE`]),bo=Gs$1({id:Xo$1().readonly().meta({examples:[C$1.Beneficiary.id],description:`A unique identifier for this beneficiary.`}),createdAt:w$1().readonly().meta({examples:[C$1.Beneficiary.createdAt],description:`Timestamp in ISO 8601 format when this beneficiary was created.`}),updatedAt:w$1().readonly().meta({examples:[C$1.Beneficiary.updatedAt],description:`Timestamp in ISO 8601 format when this beneficiary was last updated.`}),name:Xo$1().meta({examples:[C$1.Beneficiary.name],description:`The account name for this beneficiary.`}),currency:D$1.meta({examples:[C$1.Beneficiary.currency],description:`Three-letter ISO 4217 currency code for payouts.`}),gateway:vo.meta({examples:[`STRIPE`],description:`The payment gateway used for processing payouts.`}),gatewayId:Xo$1().meta({examples:[C$1.Beneficiary.gatewayId],description:`The identifier assigned by the payment gateway to this account.`}),teamId:Xo$1().meta({description:`Team that owns this beneficiary account.`}),teamIds:Us$1(Xo$1()).meta({examples:[[]],description:`List of team IDs this beneficiary is assigned to. Empty array means available to all teams.`}),venueIds:Us$1(Xo$1()).meta({examples:[[]],description:`List of venue IDs this beneficiary is assigned to. Empty array means team-level only (available to all venues).`})}).meta({description:`beneficiary`}),xo=Gs$1({city:Xo$1().optional(),country_code:Xo$1(),postcode:Xo$1().optional(),state:Xo$1().optional(),street_address:Xo$1().optional()}),So=Gs$1({account_currency:Xo$1(),account_name:Xo$1(),account_number:Xo$1().optional(),account_routing_type1:Xo$1().optional(),account_routing_value1:Xo$1().optional(),account_routing_type2:Xo$1().optional(),account_routing_value2:Xo$1().optional(),bank_account_category:Xo$1().optional(),bank_branch:Xo$1().optional(),bank_country_code:Xo$1(),bank_name:Xo$1().optional(),bank_street_address:Xo$1().optional(),binding_mobile_number:Xo$1().optional(),fingerprint:Xo$1().optional(),iban:Xo$1().optional(),local_clearing_system:Xo$1().optional(),swift_code:Xo$1().optional(),transaction_reference:Xo$1().optional(),account_identifier_type:Xo$1().optional(),account_identifier_value:Xo$1().optional()}),Co=Gs$1({transfer_methods:Us$1(nc$1([`SWIFT`,`LOCAL`])).meta({examples:[[`LOCAL`]],description:`Transfer methods supported for this beneficiary`}),beneficiary:Gs$1({company_name:Xo$1().optional(),date_of_birth:Xo$1().optional(),entity_type:Xo$1().meta({examples:[`COMPANY`],description:`Whether the beneficiary is PERSONAL or COMPANY`}),first_name:Xo$1().optional(),last_name:Xo$1().optional(),address:xo,bank_details:So,additional_info:Gs$1({personal_email:ns$1().optional()}).optional()}).meta({description:`Beneficiary details including personal/company info, address, and bank details`})}).meta({description:`Complete beneficiary request structure for Airwallex validation`}),wo=Co.extend({id:Xo$1().optional()}),To=bo.omit({id:true,createdAt:true,updatedAt:true,currency:true}).extend({currency:D$1.meta({examples:[C$1.Beneficiary.currency],description:`Three-letter ISO 4217 currency code for payouts to this beneficiary account`}),airwallex:wo.optional().meta({examples:[C$1.AirwallexBeneficiary],description:`Airwallex-specific beneficiary details including bank account information and address (required when gateway is AIRWALLEX)`}),teamIds:Us$1(Xo$1()).optional().default([]).meta({examples:[[]],description:`List of team IDs to assign this beneficiary to. Empty array or omitted means available to all teams.`}),venueIds:Us$1(Xo$1()).optional().default([]).meta({examples:[[]],description:`List of venue IDs to assign this beneficiary to. Empty array or omitted means team-level only.`})}).meta({description:`Schema for creating a new beneficiary account for receiving payouts`}),Eo=bo.pick({id:true}).meta({description:`Schema for retrieving a single beneficiary by its unique identifier`}),Do=Eo.meta({description:`Schema for deleting a beneficiary account - requires the beneficiary ID`}),Oo=Gs$1({teamId:Xo$1().optional().meta({examples:[C$1.Team.id],description:`Optional identifier of the team whose beneficiaries to list. When provided, only beneficiaries for that team are returned.`}),gateway:nc$1([`AIRWALLEX`,`STRIPE`]).optional().meta({examples:[C$1.Beneficiary.gateway],description:`Filter beneficiaries by payment gateway provider (optional)`}),currency:D$1.optional().meta({examples:[C$1.Beneficiary.currency],description:`Filter beneficiaries by currency code (optional)`}),query:Xo$1().optional().meta({examples:[`beneficiary`],description:`Optional search query to filter beneficiaries by name or gateway identifier. When provided, search-backed pagination is used.`}),limit:L$1(`beneficiaries`).optional(),cursor:Xo$1().optional().meta({examples:[`eyJpZCI6ImJlbl8wMWpwczVjZ3NlNW42bWcxeW1rZXc5dHNmaCJ9`],description:`Pagination cursor returned by a previous request. Omit on the first request.`})}).meta({description:`Query parameters for listing beneficiaries with pagination and optional filters`}),ko=B$1(bo,`beneficiaries`),Ao=Gs$1({beneficiary:bo}),jo=Gs$1({min:Cs$1().optional().meta({description:`Minimum number of time units for the transfer`}),max:Cs$1().optional().meta({description:`Maximum number of time units for the transfer`}),unit:Xo$1().optional().meta({examples:[`day`],description:`Time unit (e.g., 'day', 'hour')`})}).meta({description:`Expected transfer completion time range`}),Mo=Gs$1({min:Cs$1().optional().meta({description:`Minimum transfer amount`}),max:Cs$1().optional().meta({description:`Maximum transfer amount`})}).meta({description:`Transfer amount limits`}),No=Gs$1({label:Xo$1().meta({description:`Display label for the option`}),value:Xo$1().meta({description:`Value to submit when selected`}),flightTime:jo.optional().meta({description:`Expected transfer time for TRANSFER_METHOD options`}),transferLimit:Mo.optional().meta({description:`Transfer amount limits for TRANSFER_METHOD options`}),processingTime:Xo$1().optional().meta({description:`Human-readable processing time description`})}).meta({description:`A selectable option in a form field`}),Po=Gs$1({type:nc$1([`INPUT`,`SELECT`,`RADIO`,`TRANSFER_METHOD`,`DYNAMIC_SELECT`]).meta({examples:[`INPUT`],description:`The type of form input to render`}),label:Xo$1().optional().meta({description:`Display label for the field`}),placeholder:Xo$1().optional().meta({description:`Placeholder text for input fields`}),description:Xo$1().optional().meta({description:`Detailed description of the field`}),tip:Xo$1().optional().meta({description:`Tooltip information shown on hover`}),example:Xo$1().optional().meta({description:`Example value for the field`}),default:Xo$1().optional().meta({description:`Default value to pre-populate the field`}),key:Xo$1().optional().meta({description:`Unique key identifier for the field`}),options:Us$1(No).optional().meta({description:`Available options for SELECT and RADIO field types`}),refresh:Ds$1().optional().meta({description:`When true, changing this field's value should trigger a schema refresh. Note: only documented API parameters (transfer_method, local_clearing_system) actually update the schema.`})}).meta({description:`Field definition containing type, label, options, and metadata from Airwallex`}),Fo=Gs$1({pattern:Xo$1().optional().meta({description:`Regex pattern for field validation`}),type:Xo$1().optional().meta({description:`Validation type identifier`})}).meta({description:`Validation rules for a form field`}),Io=Gs$1({path:Xo$1().meta({examples:[`beneficiary.bank_details.account_number`],description:`Dot-notation path to the field in the beneficiary request object`}),enabled:Ds$1().meta({examples:[true],description:`Whether this field should be displayed`}),required:Ds$1().meta({examples:[true],description:`Whether this field is required for submission`}),field:Po.optional().meta({description:`Field definition with type, label, and options`}),rule:Fo.optional().meta({description:`Validation rules for the field`})}).meta({description:`A single field in the beneficiary form schema with display and validation rules`}),Lo=Gs$1({bankCountryCode:Xo$1().regex(/^[A-Z]{2}$/).meta({examples:[`AU`],description:`Two-letter ISO 3166-1 alpha-2 country code for the bank location`}),accountCurrency:D$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code for the beneficiary account`}),entityType:nc$1([`PERSONAL`,`COMPANY`]).meta({examples:[`COMPANY`],description:`Whether the beneficiary is an individual or a company`}),transferMethod:nc$1([`LOCAL`,`SWIFT`]).optional().meta({examples:[`LOCAL`],description:`Transfer method: SWIFT for international wire transfers, LOCAL for domestic transfers`}),localClearingSystem:Xo$1().optional().meta({examples:[`NPP`],description:`Local clearing system for domestic transfers (e.g., NPP, BANK_TRANSFER, BPAY for Australia). Only applicable when transferMethod is LOCAL.`}),fieldValues:ec$1(Xo$1(),Xo$1()).optional().meta({examples:[{"beneficiary.bank_details.account_routing_type1":`phone_number`}],description:`Current values of fields with refresh=true. Used to get dynamic schema updates based on user selections.`})}).superRefine((e,t)=>{e.localClearingSystem&&e.transferMethod===`SWIFT`&&t.addIssue({code:`custom`,path:[`localClearingSystem`],message:`Local clearing system requires LOCAL transfer method`});}).meta({description:`Parameters to fetch the form schema for a beneficiary.`}),Ro=Gs$1({unavailableReason:ic$1(`UNSUPPORTED_COMBINATION`).optional().meta({description:`When present, the selected country, currency, recipient type or transfer options are unsupported and fields is empty.`}),fields:Us$1(Io).meta({description:`Array of form fields with their display and validation configuration`}),selectedTransferMethod:nc$1([`LOCAL`,`SWIFT`]).optional().meta({examples:[`LOCAL`],description:`The transfer method used to generate this schema. When not provided in the request, LOCAL is auto-selected if available.`}),selectedLocalClearingSystem:Xo$1().optional().meta({examples:[`NPP`],description:`The local clearing system used to generate this schema, if applicable.`})}).meta({description:`Form schema response containing all fields needed to collect beneficiary details`}),zo=b$1.route({method:`GET`,path:`/beneficiaries/schema`,summary:`Get beneficiary form schema`,description:`Returns the form schema containing all fields required to create a beneficiary for the given country, currency, entity type, and transfer method combination. Use this to dynamically render the beneficiary creation form.`,tags:[`Beneficiaries`]}).input(Lo.strict()).output(Ro),Bo=Gs$1({source:Xo$1().meta({examples:[`beneficiary.bank_details.account_number`],description:`Dot-notation path to the field that failed validation`}),code:Xo$1().meta({examples:[`001`],description:`Airwallex validation error code`}),message:Xo$1().meta({examples:[`This field is required`],description:`Human-readable error message`})}).meta({description:`Details about a single validation error for a field`}),Vo=Co.meta({description:`Beneficiary request data to validate against Airwallex rules before creating`}),Ho=Gs$1({valid:Ds$1().meta({examples:[true],description:`Whether the beneficiary request passed all validation rules`}),errors:Us$1(Bo).optional().meta({description:`Array of validation errors when valid is false. Each error contains the field path, error code, and message.`})}).meta({description:`Validation result indicating whether the beneficiary request is valid for creation`}),Uo=b$1.route({method:`POST`,path:`/beneficiaries/validate`,summary:`Validate beneficiary request`,description:`Validates a beneficiary request against Airwallex rules without creating the beneficiary. Use this to provide real-time validation feedback before submission.`,tags:[`Beneficiaries`]}).input(Vo.strict()).output(Ho),Wo=nc$1([`AMOUNT`,`PERCENT`]),Ko=nc$1([`TEAM`,`PROMOTER`,`EVENTS`,`SECTIONS`,`ADMISSIONS`]),Jo=Gs$1({id:Xo$1().readonly().meta({examples:[C$1.Coupon.id],description:`A unique identifier for this coupon.`}),couponId:Xo$1().optional().readonly().meta({examples:[C$1.Coupon.couponId],description:`Duplicate of id field for GSI queries.`}),createdAt:w$1().readonly().meta({examples:[C$1.Coupon.createdAt],description:`Timestamp in ISO 8601 format when this coupon was created.`}),updatedAt:w$1().readonly().meta({examples:[C$1.Coupon.updatedAt],description:`Timestamp in ISO 8601 format when this coupon was last updated.`}),name:Xo$1().meta({examples:[C$1.Coupon.name],description:`Internal label for the coupon, visible to event organisers.`}),active:Ds$1().optional().meta({examples:[C$1.Coupon.active],description:`Whether this coupon is currently active.`}),showHidden:Ds$1().optional().meta({examples:[false],description:`Whether this coupon reveals hidden admissions and sections within its scope.`}),kind:Wo.meta({examples:[`PERCENT`],description:`Type of discount this coupon gives: a fixed amount or a percentage.`}),filter:Ko.meta({examples:[`EVENTS`],description:`Scope of the coupon. TEAM applies to all events in the team. PROMOTER applies to all events by specified promoters. EVENTS/SECTIONS/ADMISSIONS apply to specific items.`}),currency:D$1.optional().meta({examples:[C$1.Coupon.currency],description:`Three-letter ISO 4217 currency code. Required for AMOUNT coupons. Optional for PERCENT coupons - when omitted, applies to all currencies.`}),discount:Cs$1().min(0).meta({examples:[C$1.Coupon.discount],description:`The discount value. If kind is 'amount', this is a currency amount. If kind is 'percent', this is a percentage.`}),limit:Cs$1().meta({examples:[C$1.Coupon.limit],description:`Maximum number of times the coupon can be redeemed across all customers.`}),uses:Cs$1().optional().meta({examples:[C$1.Coupon.uses],description:`Number of times this coupon has been redeemed so far.`}),orderLimit:Cs$1().int().min(1).optional().meta({examples:[2],description:`Maximum number of admission units this coupon can discount within a single order. Omit to discount every eligible unit.`}),membersOnly:Ds$1().optional().meta({examples:[false],description:`Whether this coupon can only be redeemed by a signed-in user holding an active membership pass for the coupon's team.`}),promoters:Us$1(Gs$1({id:Xo$1().meta({description:`Identifier of a promoter this coupon applies to.`}),name:Xo$1().meta({description:`Name of a promoter this coupon applies to.`}),slug:Xo$1().meta({description:`URL slug of a promoter this coupon applies to.`})})).optional().meta({description:`List of promoters this coupon applies to when filter is PROMOTER.`}),events:Us$1(Gs$1({id:Xo$1().meta({description:`Identifier of an event this coupon applies to.`}),name:Xo$1().meta({description:`Name of an event this coupon applies to.`}),slug:Xo$1().meta({description:`URL slug of an event this coupon applies to.`})})).optional().meta({description:`List of events this coupon applies to when filter is EVENTS.`}),sections:Us$1(Gs$1({id:Xo$1().meta({description:`Identifier of a section this coupon applies to.`}),name:Xo$1().meta({description:`Name of a section this coupon applies to.`}),eventId:Xo$1().meta({description:`Identifier of the event this section belongs to.`})})).optional().meta({description:`List of sections this coupon applies to when filter is 'sections'.`}),admissions:Us$1(Gs$1({id:Xo$1().meta({description:`Identifier of an admission this coupon applies to.`}),name:Xo$1().meta({description:`Name of an admission this coupon applies to.`}),eventId:Xo$1().meta({description:`Identifier of the event this admission belongs to.`})})).optional().meta({description:`List of admissions this coupon applies to when filter is 'admissions'.`}),saleStartsAt:I$1.meta({examples:[C$1.Coupon.saleStartsAt],description:`Wall clock time when this coupon becomes valid (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)`}),saleEndsAt:I$1.optional().meta({examples:[C$1.Coupon.saleEndsAt],description:`Wall clock time when this coupon expires (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)`}),teamId:Xo$1().meta({description:`Team that created this coupon.`})}).meta({description:`coupon`}),Yo=Gs$1({id:Xo$1().readonly().meta({examples:[C$1.CouponCode.id],description:`A unique identifier for this coupon code.`}),createdAt:w$1().readonly().meta({examples:[C$1.CouponCode.createdAt],description:`Timestamp in ISO 8601 format when this coupon code was created.`}),updatedAt:w$1().readonly().meta({examples:[C$1.CouponCode.updatedAt],description:`Timestamp in ISO 8601 format when this coupon code was last updated.`}),name:Xo$1().meta({examples:[C$1.CouponCode.name],description:`The code string that customers enter to redeem the coupon.`}),active:Ds$1().meta({examples:[C$1.CouponCode.active],description:`Whether this coupon code is currently enabled for use.`}),couponId:Xo$1().meta({examples:[C$1.Coupon.id],description:`Identifier of the coupon to which this code belongs.`}),teamId:Xo$1().meta({description:`Team that created this coupon code.`}),uses:Cs$1().int().nonnegative().default(0).readonly().meta({examples:[0],description:`Number of times this specific coupon code has been used in successful orders.`})}).meta({description:`coupon-code`}),Xo=Yo.pick({id:true});Gs$1({couponId:Xo$1().meta({examples:[C$1.Coupon.id]})});Gs$1({name:Xo$1(),couponId:Xo$1().optional().meta({examples:[C$1.Coupon.id]})});const $o=Yo.omit({id:true,createdAt:true,updatedAt:true,uses:true}),es=Yo.omit({createdAt:true,updatedAt:true,couponId:true,teamId:true,uses:true}).partial().extend({id:Yo.shape.id}),ts=Xo,ns=Gs$1({couponId:Xo$1().optional().meta({examples:[C$1.Coupon.id],description:`Optional filter to retrieve coupon codes for a specific coupon`}),teamId:Xo$1().optional().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`Optional filter to retrieve coupon codes created by a specific team`}),active:sn().optional().meta({examples:[true],description:`Optional filter to retrieve only active or inactive coupon codes`}),query:Xo$1().optional().meta({examples:[`SUMMER`],description:`Optional search query to filter coupon codes by name. When provided, search-backed pagination is used.`}),limit:L$1(`coupon codes`).optional(),cursor:Xo$1().optional().meta({examples:[`eyJpZCI6ImNwY18wMWpwczVjZ3NmenR3N2h4Y3ZyMndmdGsyIn0`],description:`Pagination cursor returned by a previous request. Omit on the first request.`})}).meta({description:`Schema for listing coupon codes with optional filtering, search, and pagination`}),rs=B$1(Yo,`codes`),is=Gs$1({couponCode:Yo}),as=Jo.omit({id:true,createdAt:true,updatedAt:true}).strict().refine(e=>e.kind!==`PERCENT`||e.discount<=100,{path:[`discount`],message:`Discount must be 100 or less for PERCENT coupons`}).meta({description:`Schema for creating a new coupon without system-generated fields`}),os=Jo.pick({id:true}).meta({description:`Schema for retrieving a single coupon by ID`}),ss=os.meta({description:`Schema for deleting a coupon by ID with optional soft-delete filtering`}),cs=Gs$1({teamId:Xo$1().meta({examples:[C$1.Team.id],description:`Unique identifier of the team whose coupons to retrieve`}),active:sn().optional().meta({examples:[true],description:`Optional filter to retrieve only active or inactive coupons`}),query:Xo$1().optional().meta({examples:[`Half Price`],description:`Optional search query to filter coupons by name or description. When provided, search-backed pagination is used.`}),limit:L$1(`coupons`).optional(),cursor:Xo$1().optional().meta({examples:[`eyJpZCI6ImNwbl8wMWpwczVjZ3NmenMxa3NxYWV0NWhiYThhYyJ9`],description:`Pagination cursor returned by a previous request. Omit on the first request.`})}).meta({description:`Schema for listing coupons belonging to a specific team with optional filtering and pagination`}),ls=B$1(Jo,`coupons`),us=Gs$1({coupon:Jo}),ds=Jo.omit({createdAt:true,updatedAt:true,teamId:true}).partial().extend({id:Jo.shape.id.meta({examples:[C$1.Coupon.id],description:`Unique identifier of the coupon to update`}),saleEndsAt:I$1.nullable().optional().meta({examples:[C$1.Coupon.saleEndsAt],description:`Expiry time. Pass null to remove end date; omit to leave unchanged.`}),currency:D$1.nullable().optional().meta({examples:[`AUD`,`USD`,`GBP`],description:`Three-letter ISO 4217 currency code. Pass null to clear; omit to leave unchanged.`}),orderLimit:Jo.shape.orderLimit.unwrap().nullable().optional().meta({examples:[2],description:`Maximum number of admission units this coupon can discount within a single order. Pass null to remove the per-order limit; omit to leave unchanged.`})}).strict().refine(e=>e.kind!==`PERCENT`||e.discount===void 0||e.discount<=100,{path:[`discount`],message:`Discount must be 100 or less for PERCENT coupons`}).meta({description:`Schema for updating an existing coupon.`}),fs=Gs$1({address:Xo$1().meta({examples:[C$1.Location.address],description:`Complete formatted address`}),city:Xo$1().optional().meta({examples:[C$1.Location.city],description:`City or locality`}),state:Xo$1().optional().meta({examples:[C$1.Location.state],description:`State, province, or region`}),postcode:Xo$1().optional().meta({examples:[C$1.Location.postcode],description:`Postal code`}),country:Xo$1().meta({examples:[C$1.Location.country],description:`Country name`}),countryCode:un.optional().meta({description:`ISO country code when supplied by the location provider`})}).meta({description:`Provider-independent formatted address details`}),ps=Gs$1({id:Tn.readonly().meta({examples:[C$1.Location.id],description:`Location identifier`}),googlePlaceId:Xo$1().optional().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID for this location`}),createdAt:w$1().meta({examples:[C$1.Location.createdAt],description:`Timestamp in ISO 8601 format when the location was created`}),updatedAt:w$1().meta({examples:[C$1.Location.updatedAt],description:`Timestamp in ISO 8601 format when the location was last updated`}),name:Xo$1().meta({examples:[C$1.Location.name],description:`Location name`}),...fs.shape,latitude:Cs$1().min(-90).max(90).meta({examples:[C$1.Location.latitude],description:`Latitude coordinate`}),longitude:Cs$1().min(-180).max(180).meta({examples:[C$1.Location.longitude],description:`Longitude coordinate`}),timeZone:Xo$1().min(1).regex(/^[A-Za-z0-9_+-]+(\/[A-Za-z0-9_+-]+)*$/,{message:`Must be a valid IANA timezone identifier format`}).meta({examples:[C$1.Location.timeZone],description:`IANA timezone identifier (e.g., 'America/New_York', 'Europe/London', 'Australia/Sydney', 'UTC'). Must be validated against the IANA timezone database where used.`}),types:Us$1(Xo$1()).optional().meta({examples:[[`establishment`,`point_of_interest`,`stadium`]],description:`Google Place types indicating the category and nature of this location`}),description:Xo$1().optional().meta({examples:[`Historic outdoor amphitheater known for summer concerts`],description:`AI-generated description of the place, when available`}),image:F$1.optional().meta({description:`Primary location photo`}),venueId:wn.optional().meta({description:`Venue identifier if this location is a managed venue on the platform`})}).meta({description:`Location with full details including coordinates and timezone`}),ms=ps.omit({venueId:true}).extend({venue:Gs$1({id:wn.meta({description:`Venue identifier`}),name:Xo$1().meta({description:`Venue name`}),slug:Xo$1().meta({description:`URL-friendly venue slug`}),teamId:Xo$1().meta({description:`Team that owns this venue`}),approval:E$1.meta({description:`Venue approval status`}),image:F$1.optional().meta({description:`Venue image`}),description:Xo$1().optional().meta({description:`Venue description`})}).optional().meta({description:`Denormalized venue details if this location is a managed venue. Only included when venue is approved.`})}),hs=Xo$1().regex(/^G-[A-Z0-9]+$/,`Google Analytics Measurement ID must start with G-`),G$1=Gs$1({id:M$1.readonly().meta({examples:[C$1.Promoter.id],description:`Unique identifier for the promoter organization`}),createdAt:w$1().readonly().meta({examples:[C$1.Promoter.createdAt],description:`Timestamp in ISO 8601 format when the promoter was created`}),updatedAt:w$1().readonly().meta({examples:[C$1.Promoter.updatedAt],description:`Timestamp in ISO 8601 format when the promoter was last updated`}),name:Xo$1().min(3).max(30).meta({examples:[C$1.Promoter.name],description:`Display name of the promoter organization. Must be between 3 and 30 characters`}),slug:Xo$1().min(3).max(30).meta({examples:[C$1.Promoter.slug],description:`URL-friendly slug for the promoter organization. Must be unique and between 3 and 30 characters`}),teamId:k$1.meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`ID of the team that owns this promoter. Establishes team-based organization and permissions.`}),description:Xo$1().meta({examples:[C$1.Promoter.description],description:`Detailed description of the promoter organization and their events`}),approval:E$1.meta({examples:[C$1.Promoter.approval],description:`Approval status of the promoter. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate`}),image:F$1.optional().meta({description:`Optional promotional image for the promoter organization with dimensions and alt text`}),location:ms.meta({description:`Primary location details for the promoter including address, coordinates, and timezone`}),geohash:Xo$1().meta({examples:[C$1.Promoter.geohash],description:`Geohash encoding of the promoter's location for efficient spatial queries`}),tracking:Gs$1({fbId:Xo$1().optional().meta({examples:[C$1.Promoter.tracking.fbId],description:`Facebook pixel ID for tracking conversions and analytics`}),gaId:hs.optional().meta({examples:[C$1.Promoter.tracking.gaId],description:`Google Analytics 4 Measurement ID for web analytics`}),tikTokId:Xo$1().optional().meta({examples:[C$1.Promoter.tracking.tikTokId],description:`TikTok pixel ID for advertising and conversion tracking`})}).optional().meta({description:`Optional tracking configuration for analytics and advertising platforms`}),metadata:qn}).meta({description:`Promoter organization with location and approval status`}),K$1=Gs$1({id:Xo$1().readonly().meta({examples:[C$1.Section.id],description:`Unique identifier for the section`}),createdAt:w$1().readonly().meta({examples:[C$1.Section.createdAt],description:`Timestamp when the section was created in ISO 8601 format`}),updatedAt:w$1().readonly().meta({examples:[C$1.Section.updatedAt],description:`Timestamp when the section was last updated in ISO 8601 format`}),name:Xo$1().meta({examples:[C$1.Section.name],description:`Display name of the section (e.g., 'VIP Area', 'General Admission')`}),capacity:Un().prefault(-1).meta({examples:[C$1.Section.capacity],description:`Maximum number of attendees for this section. Use -1 for unlimited capacity`}),limit:Wn().prefault(-1).meta({examples:[C$1.Section.limit??-1],description:`Maximum number of tickets for this section that can be purchased in a single order. A value of -1 indicates unlimited`}),available:Cs$1().min(-1).readonly().meta({examples:[C$1.Section.available],description:`Number of tickets currently available for purchase in this section. Use -1 when capacity is unlimited`}),sold:Cs$1().min(0).readonly().meta({examples:[C$1.Section.sold],description:`Number of tickets sold for this section`}),reserved:Cs$1().readonly().meta({examples:[C$1.Section.reserved],description:`Number of tickets currently reserved (in pending orders) for this section`}),order:Cs$1().min(0).meta({examples:[C$1.Section.order],description:`Display order of the section. Lower numbers appear first in listings`}),visibility:nc$1([`ALWAYS`,`STACKED`,`HIDDEN`]).prefault(`ALWAYS`).meta({examples:[`ALWAYS`],description:`Controls how this section is shown: always list all visible admissions, stack to show the cheapest available admission, or hide until a scoped coupon reveals it.`}),location:ps.meta({description:`Physical location details for the section`}),teamId:Xo$1().meta({description:`Team that owns this section. Denormalized for efficient queries.`}),promoterId:Xo$1().meta({examples:[C$1.Section.promoterId],description:`Unique identifier of the promoter who owns this section`}),eventId:Xo$1().meta({examples:[C$1.Section.eventId],description:`Unique identifier of the event this section belongs to`}),eventSlug:Xo$1().meta({examples:[C$1.Section.eventSlug],description:`URL-friendly identifier of the event this section belongs to`})}).meta({description:`A section represents a distinct area or tier within an event venue with its own capacity and pricing`}),_s=[`AUD`,`NZD`,`USD`],vs=nc$1(_s),ys=nc$1([`FEATURE_DISABLED`,`UNSUPPORTED_CURRENCY`,`NOT_ROUTED`,`NO_CONNECTED_GATEWAY`,`CHARGES_DISABLED`,`INCOMPATIBLE_FEE_STRUCTURE`]),bs=Gs$1({available:Ds$1().meta({description:`Whether Stripe Connect can be used for the selected team, event, and currency.`}),reasons:Us$1(ys).meta({description:`Machine-readable reasons Stripe Connect is unavailable. Empty when available is true.`}),supportedCurrencies:Us$1(vs).meta({description:`Currencies currently supported for Stripe Connect routing in this tenant flow.`})}),xs=`STRIPE_CONNECT_UNAVAILABLE`;Gs$1({code:ic$1(xs).meta({description:`Stable error code returned when Stripe Connect is unavailable.`}),availability:bs.meta({description:`Detailed Stripe Connect availability result for UI filtering and recovery.`})});const Cs=nc$1([`UPCOMING`,`ENDED`]),Ts=nc$1([`PUBLIC`,`PRIVATE`,`SCHEDULED`,`PASSCODE`,`CANCELLED`]),Ds=nc$1([`HIDDEN`,`SCHEDULED`,`PUBLIC`]),ks=Gs$1({visibility:Ds.optional().meta({description:`Whether public event surfaces show the full location address. Missing values are treated as PUBLIC unless legacy location reveal data says otherwise.`}),publishAt:I$1.optional().meta({description:`Wall clock time when the location address becomes public. Required when location visibility is SCHEDULED.`}),sendAt:I$1.optional().meta({description:`Wall clock time when customers with successful orders can see the full location address and receive the notification.`}),instructions:Xo$1().max(2e3).optional().meta({description:`Arrival instructions shown to customers once the location address has been sent.`})}),As=ms.extend(ks.shape),js=Gs$1({id:A$1.readonly().meta({examples:[C$1.Event.id],description:`A unique identifier for this event`}),createdAt:w$1().readonly().meta({examples:[C$1.Event.createdAt],description:`Timestamp in ISO 8601 format when this event was created`}),updatedAt:w$1().readonly().meta({examples:[C$1.Event.updatedAt],description:`Timestamp in ISO 8601 format when this event was last updated`}),name:Xo$1().meta({examples:[C$1.Event.name],description:`The title of the event shown to attendees`}),slug:Xo$1().meta({examples:[C$1.Event.slug],description:`URL-friendly identifier for the event`}),description:Xo$1().meta({examples:[C$1.Event.description],description:`Detailed description of the event`}),approval:E$1.meta({examples:[`APPROVED`],description:`Approval status of the event`}),status:Cs.meta({examples:[`UPCOMING`,`ENDED`],description:`Current stage of the event lifecycle`}),visibility:Ts.meta({examples:[`PUBLIC`],description:`Who can see the event`}),currency:D$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code used for ticket prices`}),url:os$1().optional().meta({examples:[`https://example.com`],description:`External URL for the event website or ticket page`}),entryStartsAt:I$1.meta({examples:[C$1.Event.entryStartsAt],description:`Wall clock time when event entry begins (no timezone, displays same everywhere)`}),entryEndsAt:I$1.meta({examples:[C$1.Event.entryEndsAt],description:`Wall clock time when event entry ends (no timezone, displays same everywhere)`}),publishAt:I$1.meta({examples:[C$1.Event.publishAt],description:`Wall clock time when the event becomes publicly visible (no timezone)`}),locationRevealAt:I$1.optional().meta({description:`Deprecated. Use location.sendAt for customer access and location.publishAt for scheduled public address visibility.`}),entryInstructions:Xo$1().max(2e3).optional().meta({description:`Deprecated. Use location.instructions for customer-facing arrival instructions.`}),images:Gs$1({mobile:F$1.meta({description:`Mobile-optimized image for the event`}),desktop:F$1.meta({description:`Desktop-optimized image for the event`})}),geohash:Xo$1().meta({examples:[C$1.Event.geohash],description:`Geohash representing the event location`}),location:As.meta({description:`Structured location details for the event`}),teamId:k$1.meta({description:`Team that owns this event. Denormalized for efficient queries.`}),promoterId:M$1.meta({examples:[C$1.Promoter.id],description:`Promoter organizing the event. Must belong to the team.`}),taxProfileId:xn.optional().meta({description:`Team tax profile currently used for ticket sales`}),metadata:qn,genres:Us$1(Xo$1()).optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:Us$1(Xo$1()).optional().meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),featured:Ds$1().optional().meta({description:`Whether this event is an editorial pick`,examples:[true]}),likes:Cs$1().int().min(0).optional().meta({description:`Number of users who liked this event`,examples:[42]}),stripeConnectAvailability:bs.optional().meta({description:`Stripe Connect availability metadata for tenant event UI.`})}).meta({description:`event`}),Ms=G$1.pick({id:true,name:true,slug:true,description:true,image:true}),Ns=js.extend({passcode:Xo$1().optional().meta({description:`Plain-text event passcode. Included only on internal event detail responses for users with event.read access.`}),sections:Us$1(K$1),admissions:Us$1(z$1),promoter:Ms.optional().meta({description:`Public summary of the promoter organizing this event. Included on event detail responses only.`}),liked:Ds$1().optional().meta({description:`Whether the current user has liked this event`,examples:[true,false]})}),Ps=Gs$1({event:Ns}),Fs=nc$1([`APPROVED`,`REJECTED`]);nc$1([`CREATED`,`UPDATED`,`MANUAL`]);const Ls=Gs$1({key:Xo$1().meta({examples:[C$1.Event.id,C$1.Event.slug],description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`}),teamId:k$1.optional().meta({description:`Optional team scope. When provided, event must belong to this team.`})}).meta({description:`Schema for retrieving internal event approval state.`}),Rs=Gs$1({eventId:A$1,teamId:k$1,approval:E$1,reason:Xo$1().max(2e3).nullable(),requestedAt:w$1().nullable(),changedAt:w$1().nullable(),changedByUserId:Xo$1().nullable(),submittedByUserId:Xo$1().nullable()}).meta({description:`Internal approval workflow state for an event.`}),zs=Gs$1({approval:Rs}),Bs=Ls.meta({description:`Schema for requesting or resubmitting event approval.`}),Vs=Gs$1({key:Xo$1().meta({examples:[C$1.Event.id,C$1.Event.slug],description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`}),approval:Fs.meta({examples:[`APPROVED`],description:`Approval decision for the event`}),reason:Xo$1().max(2e3).optional().meta({description:`Optional reason shown to the event submitter when rejecting the event`}),requestedAt:w$1().optional().meta({description:`Approval request timestamp from an email action. When provided, the event must still be pending for that request.`})}).meta({description:`Schema for approving or rejecting an event.`}),Hs=1e6,Us=nc$1([`INCLUSIVE`,`EXCLUSIVE`]),Ws=fs.extend({address:Xo$1().trim().min(1).max(500).meta({description:`Complete formatted registered address`}),city:Xo$1().trim().min(1).max(100).optional().meta({description:`City or locality of the registered address`}),state:Xo$1().trim().min(1).max(100).optional().meta({description:`State, province, or region of the registered address`}),postcode:Xo$1().trim().min(1).max(32).optional().meta({description:`Postal code of the registered address`}),country:Xo$1().trim().min(1).max(100).meta({description:`Country name of the registered address`}),countryCode:un.meta({description:`Supplier country as an ISO 3166-1 alpha-2 code`,examples:[`AU`]})}).strict().meta({description:`Registered postal address used on customer receipts`}),Gs=Gs$1({legalName:Xo$1().trim().min(1).max(200).meta({description:`Legal or trading name of the ticket supplier`}),registrationNumber:Xo$1().trim().min(1).max(100).optional().meta({description:`Tax or business registration number shown on customer receipts`}),address:Ws.meta({description:`Registered address of the ticket supplier`})}).strict().meta({description:`Ticket supplier identity shown on customer receipts`}),Ks=Gs$1({taxName:Xo$1().trim().min(1).max(50).meta({description:`Customer-facing tax name, such as GST or VAT`,examples:[`GST`]}),ratePpm:Ts$1().min(1).max(Hs).meta({description:`Tax rate in parts per million, where 100000 represents 10%`,examples:[1e5]}),priceMode:Us.meta({description:`Whether organiser-entered ticket prices include or exclude tax`,examples:[`INCLUSIVE`]})}).strict().meta({description:`Tax collection and ticket price configuration`}),qs=Gs$1({supplier:Gs.meta({description:`Legal supplier details used on customer receipts`}),collection:Ks.meta({description:`Tax collection configuration for ticket sales`})}).strict();function Js(e,t){e.supplier.registrationNumber||t.addIssue({code:`custom`,message:`A registration number is required when collecting tax`,path:[`supplier`,`registrationNumber`]});}qs.superRefine(Js).meta({description:`Editable tax profile data`});const Xs=qs.extend({profileId:xn.readonly().meta({description:`Tax profile used for this ticket tax snapshot`}),profileUpdatedAt:w$1().readonly().meta({description:`Version timestamp of the snapshotted tax profile`})}).superRefine(Js).meta({description:`Tax profile snapshot stored on an order`}),Zs=Xs$1(`mode`,[Gs$1({mode:ic$1(`TEAM_DEFAULT`)}).strict().meta({description:`Use the team's current default tax profile`}),Gs$1({mode:ic$1(`PROFILE`),profileId:xn}).strict().meta({description:`Use a specific team tax profile`})]).meta({description:`Tax profile choice for an event`}),Qs=qs.extend({id:xn.readonly().meta({description:`Unique tax profile identifier`}),tenantId:Xo$1().readonly().meta({description:`Tenant that owns this tax profile`}),teamId:k$1.readonly().meta({description:`Team that owns this tax profile`}),createdAt:w$1().readonly().meta({description:`Timestamp when the tax profile was created`}),updatedAt:w$1().readonly().meta({description:`Timestamp when the tax profile was last updated`}),updatedByUserId:Xo$1().readonly().meta({description:`User who most recently updated the tax profile`})}).superRefine(Js).meta({description:`Reusable supplier and tax configuration for a team`}),$s=Gs$1({teamId:k$1.meta({description:`Team whose tax profiles should be retrieved`})}).strict().meta({description:`List the tax profiles configured for a team`}),ec=qs.extend({teamId:k$1.meta({description:`Team that owns the tax profile`})}),tc=ec.superRefine(Js).meta({description:`Create a reusable team tax profile`}),nc=ec.extend({profileId:xn.meta({description:`Tax profile to update`})}).superRefine(Js).meta({description:`Update a reusable team tax profile`}),rc=Gs$1({teamId:k$1,profileId:xn}).strict().meta({description:`Identify a tax profile owned by a team`}),ic=Gs$1({profiles:Us$1(Qs).meta({description:`Reusable tax profiles owned by the team`}),defaultProfileId:xn.nullable().meta({description:`Default profile selected for new events, or null when none exist`})}).strict().superRefine((e,t)=>{e.profiles.length===0&&e.defaultProfileId===null||e.defaultProfileId&&e.profiles.some(t=>t.id===e.defaultProfileId)||t.addIssue({code:`custom`,message:`The default tax profile must be one of the listed profiles`,path:[`defaultProfileId`]});}).meta({description:`Team tax profiles and the current default`}),ac=js.omit({id:true,teamId:true,createdAt:true,updatedAt:true,status:true,approval:true,geohash:true,location:true,likes:true,stripeConnectAvailability:true,taxProfileId:true}).extend({description:Br.meta({examples:[C$1.Event.description],description:`Detailed description of the event`}),slug:Xo$1().min(3).max(100).optional().meta({examples:[C$1.Event.slug],description:`URL-friendly slug for the event. If not provided, will be automatically generated from the name. Must be unique and between 3 and 100 characters`}),passcode:Xo$1().optional().meta({description:`Passcode for protected access to the event`}),locationId:Tn.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location. Either locationId or googlePlaceId must be provided.`}),googlePlaceId:Xo$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided.`}),location:ks.optional().meta({description:`Event-specific location visibility, customer send time, and arrival instructions.`}),taxSettingsSelection:Zs.optional().meta({description:`Tax profile to associate with the event. Omit to use the team's current default profile.`}),genres:yn.optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:_n.meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]})}).refine(e=>e.locationId||e.googlePlaceId,{message:`Either locationId or googlePlaceId must be provided`}),oc=Gs$1({key:Xo$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[C$1.Event.id,C$1.Event.slug]})}),sc=Gs$1({key:Xo$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[C$1.Event.id,C$1.Event.slug]}),name:Xo$1().min(1).meta({description:`Name for the duplicated event`,examples:[`${C$1.Event.name} (Copy)`]}),entryStartsAt:I$1.meta({description:`New event entry start time. Other copied event and admission datetimes are shifted by the same offset.`,examples:[C$1.Event.entryStartsAt]}),url:os$1().nullable().optional().meta({description:`External ticketing URL for the duplicated event. Pass null to create the copy without an external URL; omit to copy the source URL.`,examples:[`https://example.com/events/summer-festival-2025`]})}),cc=Gs$1({key:Xo$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[C$1.Event.id,C$1.Event.slug]}),featured:Ds$1().meta({description:`Whether the event should be featured (editorial pick)`,examples:[true,false]})}),lc=Gs$1({key:Xo$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[C$1.Event.id,C$1.Event.slug]}),passcode:Xo$1().optional().meta({description:`Passcode for accessing protected events`}),couponCode:Xo$1().optional().meta({description:`Coupon code used to reveal hidden admissions and sections when eligible.`}),teamId:Xo$1().optional().meta({description:`Optional team scope. When provided, event must belong to this team.`})}),uc=Gs$1({admissions:Cs$1().int().min(0).optional().meta({description:`Number of active admissions configured for the event`}),sold:Cs$1().min(0).meta({description:`Number of tickets sold (net of refunds)`}),reserved:Cs$1().min(0).meta({description:`Number of tickets reserved`}),available:Cs$1().min(-1).meta({description:`Number of tickets available (-1 for unlimited)`}),capacity:Cs$1().min(-1).meta({description:`Total capacity (-1 for unlimited)`})}),dc=nc$1([`entryStartsAt`,`distance`,`createdAt`]),fc=nc$1([`asc`,`desc`]),pc=Ks$1({status:nc$1([`UPCOMING`,`ENDED`]).optional().meta({examples:[`UPCOMING`],description:`Filter events by their current lifecycle status`}),approval:E$1.optional().meta({examples:[`APPROVED`],description:`Filter events by their approval status`}),visibility:nc$1([`PUBLIC`,`PRIVATE`,`SCHEDULED`,`PASSCODE`]).optional().meta({examples:[`PUBLIC`],description:`Filter events by their visibility setting`}),promoterId:Xo$1().max(128).optional().meta({examples:[C$1.Promoter.id],description:`Filter events to only those belonging to a specific promoter. If not provided, returns events from all promoters the user has access to`}),teamId:Xo$1().max(128).optional().meta({description:`Filter events to only those belonging to a specific team. If not provided, returns events from all teams the user has access to`}),venueId:Xo$1().max(128).optional().meta({description:`Filter events to only those at a specific venue. If not provided, returns events at all venues`}),limit:T$1().min(1).max(100).prefault(20).meta({examples:[20],description:`Maximum number of events to return in each result set. Must be between 1 and 100, defaults to 20`}),cursor:Xo$1().max(768).optional().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Cursor token for pagination. Provide the cursor from the previous response to continue fetching results`}),query:on$1().max(120).optional().meta({examples:[`Test Event`],description:`Search term to filter events by name, description, or location. Triggers full‑text search when provided`}),latitude:T$1().min(-90).max(90).optional().meta({examples:[C$1.Event.location.latitude],description:`Latitude coordinate for geographic search. Provide with longitude (and optional radius)`}),longitude:T$1().min(-180).max(180).optional().meta({examples:[C$1.Event.location.longitude],description:`Longitude coordinate for geographic search. Provide with latitude (and optional radius)`}),radius:T$1().positive().max(2e4).optional().meta({examples:[20],description:`Search radius in kilometers from the provided coordinates. Defaults to 20km`}),country:Xo$1().max(120).optional().meta({examples:[`australia`],description:`Filter by country region slug. Matches events where location.country equals the region name`}),state:Xo$1().max(120).optional().meta({examples:[`nsw`],description:`Filter by state/province region slug. Matches events where location.state equals the region name`}),city:Xo$1().max(120).optional().meta({examples:[`sydney`],description:`Filter by city region slug. Matches events where location.city equals the region name`}),from:Xo$1().date().optional().meta({examples:[`2024-01-01`],description:`Filter events that start on or after this date (YYYY-MM-DD format). Events with entryStartsAt >= from`}),to:Xo$1().date().optional().meta({examples:[`2024-12-31`],description:`Filter events that start on or before this date (YYYY-MM-DD format). Events with entryStartsAt <= to`}),sort:dc.optional().meta({examples:[`entryStartsAt`],description:"Optional list sort field. Defaults to event start time. Use `distance` with latitude and longitude to return nearest events first, or `createdAt` to return newest or oldest events first."}),direction:fc.optional().meta({examples:[`desc`],description:`Sort direction for event start or creation time. Defaults to lifecycle-aware event start order; distance sorting always returns nearest events first.`}),genres:jc$1(e=>typeof e==`string`?[e]:e,Us$1(vn).max(20,`Cannot filter by more than 20 genres`)).optional().meta({examples:[[`Tech House`,`Melodic Techno`]],description:`Filter events by music genre(s). Returns events matching ANY of the provided genres (OR logic). Maximum 20 genres`}),categories:jc$1(e=>typeof e==`string`?[e]:e,Us$1(gn).max(10,`Cannot filter by more than 10 categories`)).optional().meta({examples:[[`Day Party`,`Open Air`]],description:`Filter events by category(s). Returns events matching ANY of the provided categories (OR logic). Maximum 10 categories`}),featured:Ds$1().optional().meta({examples:[true],description:`Filter to only featured (editorial pick) events`})}).meta({description:`List events with filtering, full‑text search, geo queries, date range filtering, genre/category filtering, and cursor-based pagination`}),mc=pc,hc=qr({booking:`Booking fee for the cheapest publicly purchasable admission, in cents`,currency:`Three-letter ISO 4217 currency code for the cheapest publicly purchasable admission`,price:`Cheapest publicly purchasable admission price for this event, selected by customer-facing total`}),gc=B$1(js.extend({inventory:uc.optional(),liked:Ds$1().optional().meta({description:`Whether the current user has liked this event`,examples:[true,false]}),price:hc.nullable().meta({description:`Cheapest publicly purchasable admission price, or null when no public admission is currently available`})}),`events`),_c=Gs$1({event:js});nc$1([`ONLINE`,`DOOR`,`SALE_ENDED`,`SOLD_OUT`]);const bc=pc.omit({cursor:true,limit:true}).extend({limit:T$1().int().min(1).max(1e3).prefault(1e3).meta({examples:[1e3],description:`Maximum number of event slugs to return. Must be between 1 and 1000, defaults to 1000`}),skip:T$1().int().min(0).max(1e4).prefault(0).meta({examples:[0],description:`Number of matching event slugs to skip before returning results`})}),xc=Gs$1({slugs:Us$1(Xo$1()).meta({description:`Current event slugs for the matching event list`}),skip:T$1().int().min(0).meta({examples:[0],description:`Number of matching event slugs skipped`}),limit:T$1().int().min(1).max(1e3).meta({examples:[1e3],description:`Maximum number of event slugs returned`})}),Sc=Gs$1({visibility:Ds.optional().meta({description:`Whether public event surfaces show the full location address. Omit to leave unchanged.`}),publishAt:ks.shape.publishAt.nullable().optional().meta({description:`Public location address publish time. Pass null to clear; omit to leave unchanged.`}),sendAt:ks.shape.sendAt.nullable().optional().meta({description:`Customer location address send time. Pass null to clear; omit to leave unchanged.`}),instructions:ks.shape.instructions.nullable().optional().meta({description:`Arrival instructions for customers. Pass null to clear; omit to leave unchanged.`})}),Cc=js.omit({createdAt:true,updatedAt:true,geohash:true,status:true,approval:true,location:true,likes:true,stripeConnectAvailability:true,taxProfileId:true}).partial().extend({description:Br.optional().meta({examples:[C$1.Event.description],description:`Detailed description of the event. Omit to leave unchanged.`}),key:Xo$1().meta({examples:[C$1.Event.id,C$1.Event.slug],description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`}),slug:Xo$1().min(3).max(100).optional().meta({examples:[C$1.Event.slug],description:`URL-friendly slug for the event. Omit to leave unchanged. Must be unique and between 3 and 100 characters`}),passcode:Xo$1().nullable().optional().meta({description:`Passcode for protected access. Pass null to clear; changing visibility away from PASSCODE also clears it.`}),url:os$1().nullable().optional().meta({examples:[`https://example.com/events/summer-festival-2025`],description:`External event URL. Pass null to clear; omit to leave unchanged.`}),locationRevealAt:js.shape.locationRevealAt.nullable().optional().meta({description:`Wall clock time when the venue address becomes visible. Pass null to clear before reveal; omit to leave unchanged.`}),entryInstructions:js.shape.entryInstructions.nullable().optional().meta({description:`Entrance instructions sent when the location is revealed. Pass null to clear; omit to leave unchanged.`}),locationId:Tn.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:Xo$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`}),location:Sc.optional().meta({description:`Event-specific location visibility, public publish time, customer send time, and arrival instructions.`}),taxSettingsSelection:Zs.optional().meta({description:`Associate the event with the current default or a selected team tax profile.`}),genres:yn.optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:_n.meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),notify:Ds$1().optional().meta({description:`Whether attendees should be notified about this event update.`,examples:[true]})}).meta({description:`Schema for updating an existing event.`}),wc=Gs$1({id:In.readonly().meta({description:`Unique identifier for the event collaborator`}),createdAt:w$1().readonly().meta({description:`Timestamp in ISO 8601 format when the collaborator was added`}),updatedAt:w$1().readonly().meta({description:`Timestamp in ISO 8601 format when the collaborator was last updated`}),eventId:A$1.meta({description:`Event this collaboration applies to`}),promoterId:M$1.meta({description:`Promoter collaborating on the event`}),acceptedBy:j$1.meta({description:`User ID who accepted the invitation to collaborate`}),promoter:Gs$1({id:M$1.meta({description:`Unique identifier of the promoter`}),name:Xo$1().meta({description:`Name of the promoter`}),teamId:k$1.meta({description:`Team ID of the promoter`})}).optional().meta({description:`Populated promoter details. Only included when explicitly requested.`}),permissions:vr.meta({description:`Permissions granted to this collaborator. User must have permission in BOTH this grant AND their team membership (intersection).`,examples:[[],[`event.read`,`event.write`],[`order.read`],[`ticket.scan`],[`*`]]}),tenantId:Xo$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Active event collaborator. Created when a promoter accepts an invitation or is directly added to an event. Hard deleted when removed.`}),Tc=wc.pick({id:true,eventId:true}).meta({description:`Schema for accepting an event promoter collaboration invitation. User accepting must be a member of the invited promoter's team.`}),Ec=Gs$1({id:In.readonly().meta({description:`Unique identifier for the event collaboration invitation`}),createdAt:w$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was created`}),updatedAt:w$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was last updated`}),eventId:A$1.meta({description:`Event this invitation applies to`}),promoterId:M$1.meta({description:`Promoter being invited to collaborate on the event.`}),invitedByPromoterId:M$1.meta({description:`Promoter who sent this invitation (event owner or collaborator with permission).`}),permissions:vr.meta({description:`Permissions the promoter will receive upon accepting the invitation.`,examples:[[],[`event.read`,`event.write`],[`order.read`],[`ticket.scan`],[`*`]]}),token:Xo$1().readonly().meta({description:`Secure token for invite acceptance. Required to accept the invitation.`}),invitedBy:j$1.meta({description:`User ID who sent the invitation`}),expiresAt:Cs$1().int().positive().meta({description:`Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days.`}),tenantId:Xo$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Pending event collaborator invitation. Automatically deleted after 7 days via DynamoDB TTL. When accepted, creates an EventCollaborator record and deletes the invitation.`}),Dc=Ec.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,token:true,expiresAt:true,invitedByPromoterId:true}).meta({description:`Schema for inviting a promoter to collaborate on an event. Creates a pending invitation that the promoter can accept.`}),Oc=Gs$1({eventId:A$1.meta({description:`Event ID that the collaboration belongs to`}),id:In.meta({description:`Event team access grant ID to retrieve`})}),kc=Gs$1({invite:Ec}),Ac=Gs$1({eventId:Xo$1().meta({description:`Event ID to list collaborators for`}),accessPromoterId:Xo$1().optional().meta({description:`DEPRECATED: Use 'promoterId' instead. Filter by collaborating promoter ID (what events can this promoter access). Maintained for backward compatibility.`}),ownerPromoterId:Xo$1().optional().meta({description:`DEPRECATED: No longer used. Maintained for backward compatibility only.`}),limit:L$1(`event collaborators`),cursor:Xo$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing active event collaborations with pagination and filtering. Only returns accepted collaborations (not pending invitations). Use invite endpoints for pending invitations.`}),jc=B$1(wc,`grants`),Mc=Gs$1({collaborator:wc}),Nc=ic$1(`audience-republic`).meta({description:`Integration provider.`}),Pc=Gs$1({listName:Xo$1().trim().min(1).max(200).meta({description:`Shared Audience Republic mailing list name for email and SMS.`})}).strict(),Fc=Gs$1({id:Bn,teamId:k$1,provider:Nc,enabled:Ds$1().meta({description:`Whether this integration is connected.`}),configured:Ds$1().meta({description:`Whether an encrypted credential is stored. Credentials are never returned.`}),revision:Cs$1().int().positive().meta({description:`Version required for conditional updates.`}),activatedAt:w$1().meta({description:`Start of future-only team delivery for this connection.`}),settings:Pc,canManageTeam:Ds$1().meta({description:`Whether the caller may change credentials and the shared mailing list.`}),tenantDestination:Ds$1().meta({description:`Whether tenant configuration references this integration for tenant-wide delivery.`})}).meta({description:`Team-owned integration sharing one provider account and mailing list across all promoters.`}),Ic=Gs$1({teamId:k$1}).strict(),Lc=Gs$1({integrations:Us$1(Fc),canManageTeam:Ds$1()}).meta({description:`Integrations visible to the caller in this team.`}),Rc=Gs$1({id:Bn}).strict(),zc=Gs$1({teamId:k$1,provider:Nc,apiKey:Xo$1().trim().min(1).max(4096).meta({description:`Write-only shared provider API key.`}),settings:Pc}).strict(),Bc=Gs$1({id:Bn,revision:Cs$1().int().positive(),apiKey:Xo$1().trim().min(1).max(4096).optional().meta({description:`Replace the shared key. Omit to retain it; required to reconnect.`}),settings:Pc}).strict(),Vc=Rc.extend({revision:Cs$1().int().positive()}).strict(),Hc=Gs$1({id:Vn,integrationId:Bn,scope:nc$1([`team`,`tenant`]),status:nc$1([`QUEUED`,`RUNNING`,`PAUSED`,`COMPLETED`,`FAILED`,`CANCELLED`]),createdAt:w$1(),updatedAt:w$1(),processed:Cs$1().int().nonnegative(),skipped:Cs$1().int().nonnegative(),failed:Cs$1().int().nonnegative(),error:Xo$1().optional()}).meta({description:`Durable historical import progress. Counts refer to orders, not unique buyers.`}),Uc=Rc.extend({scope:nc$1([`team`,`tenant`]).default(`team`)}).strict(),Wc=Rc.extend({jobId:Vn}).strict(),Gc=Gs$1({key:Xo$1().min(1).meta({description:`Location key - either a location ID (loc_xxx format) or provider-specific identifier (e.g., Google Place ID)`,examples:[C$1.Location.id,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}),Kc=Gs$1({query:Xo$1().min(1).meta({examples:[`sydney opera`],description:`Search query for location search`}),latitude:T$1().min(-90).max(90).optional().meta({examples:[C$1.Location.latitude],description:`User's latitude for proximity-based results (optional for better relevance)`}),longitude:T$1().min(-180).max(180).optional().meta({examples:[C$1.Location.longitude],description:`User's longitude for proximity-based results (optional for better relevance)`}),types:Us$1(Xo$1()).optional().meta({examples:[[`establishment`]],description:`Filter results by Google Place types (e.g., 'establishment', 'night_club', 'bar')`})}).meta({description:`Parameters for searching locations`}),qc=Gs$1({googlePlaceId:Xo$1().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID for this location`}),name:Xo$1().meta({examples:[C$1.Location.name],description:`Primary name of the location`}),description:Xo$1().meta({examples:[C$1.Location.address],description:`Full formatted address`}),venue:Gs$1({id:wn.meta({examples:[C$1.Venue.id],description:`Venue ID if this location is a managed venue`}),name:Xo$1().meta({examples:[C$1.Venue.name],description:`Venue name`}),teamId:Xo$1().meta({description:`Team that manages this venue`}),image:F$1.optional().meta({description:`Primary venue image`})}).optional().meta({description:`Present if this location is a managed venue on the platform`})}).meta({description:`Single location search result with optional venue overlay`}),Jc=Gs$1({predictions:Us$1(qc).meta({description:`Array of location predictions`})}).meta({description:`Response containing location search results`}),Yc=Gs$1({location:ms}),Xc=nc$1([`DRAFT`,`ACTIVE`,`PAUSED`,`RETIRED`]),Zc=nc$1([`ACTIVE`,`SUSPENDED`,`INACTIVE`]),Qc=nc$1([`PENDING`,`COMPLETED`,`DUPLICATE`]),$c=Gs$1({id:Xo$1().meta({description:`Membership program ID`}),teamId:Xo$1().meta({description:`Team that owns the program`}),name:Xo$1().meta({description:`Name shown to members`,examples:[`S.A.S.H Membership`]}),state:Xc.meta({description:`Only an ACTIVE program can be bought. PAUSED and RETIRED programs keep honouring existing passes.`}),price:Cs$1().int().nonnegative().meta({description:`Tax-inclusive annual price in currency minor units`,examples:[14999]}),currency:Xo$1().length(3).meta({description:`ISO 4217 currency code`,examples:[`AUD`]}),termsUrl:os$1().meta({description:`Current membership terms the buyer must acknowledge`})}).meta({description:`An annual membership offer owned by a team`}),el=Gs$1({id:Xo$1().meta({description:`Membership pass ID`}),programId:Xo$1(),teamId:Xo$1(),userId:Xo$1(),memberNumber:Cs$1().int().meta({description:`Sequential number identifying the pass within its program. The first pass receives 200.`,examples:[200]}),state:Zc,active:Ds$1().meta({description:`True while the pass is ACTIVE and its paid term has not ended`}),paidThrough:w$1().meta({description:`End of the latest paid annual term`}),cancelAt:w$1().optional().meta({description:`Present when renewal is scheduled to stop. Benefits continue until paidThrough.`}),complimentary:Ds$1().meta({description:`True while the current term was granted by staff for free. It never renews; a paidThrough of MEMBERSHIP_NO_END means it has no end date.`}),createdAt:w$1()}).meta({description:`A durable membership owned by one user`}),tl=Gs$1({id:Xo$1().meta({description:`Membership purchase ID`}),programId:Xo$1(),teamId:Xo$1(),state:Qc.meta({description:`PENDING until the provider confirms payment. DUPLICATE means a payment arrived for a user who already held an active pass and needs a manual refund.`}),price:Cs$1().int().nonnegative(),currency:Xo$1().length(3),termsUrl:os$1(),expiresAt:w$1().meta({description:`When the provider abandons an unpaid attempt`}),passId:Xo$1().optional()}).meta({description:`A checkout attempt for a membership program`}),nl=Gs$1({provider:ic$1(`STRIPE`),clientSecret:Xo$1().meta({description:`Client secret that confirms the first invoice`}),stripeAccountId:Xo$1().meta({description:`Connected account the payment is taken on`})}).meta({description:`What the browser needs to collect the first payment`}),rl=Ks$1({programId:Xo$1().max(128)}),il=Gs$1({provider:ic$1(`STRIPE`),stripeAccountId:Xo$1().meta({description:`Connected account the payment form must be loaded for`}),customerSessionClientSecret:Xo$1().optional().meta({description:`Lets the payment form show the buyer's saved cards. Absent when the provider declined to issue one.`})}).meta({description:`What the payment form needs before the purchase starts`}),al=Ks$1({teamSlug:Xo$1().min(1).max(128).meta({description:`Slug of the team whose current program is wanted`,examples:[`sash`]})}),ol=Gs$1({program:$c,payment:Gs$1({provider:ic$1(`STRIPE`),stripeAccountId:Xo$1().meta({description:`Connected account the payment form must be loaded for`})}).optional().meta({description:`How the membership is paid for. Absent when the team cannot take membership payments right now.`}),team:Gs$1({id:Xo$1(),slug:Xo$1(),name:Xo$1(),image:F$1.optional().meta({description:`The team's avatar, shown beside the program at checkout`})})}),sl=Ks$1({programId:Xo$1().max(128),termsAccepted:ic$1(true).meta({description:`The buyer has acknowledged the program's current terms and the automatic annual renewal`})}),cl=Gs$1({purchase:tl,payment:nl}),ll=Ks$1({id:Xo$1().max(128)}),ul=Gs$1({purchase:tl,pass:el.optional()}),dl=Gs$1({reason:nc$1([`ALREADY_MEMBER`,`MEMBERSHIP_SUSPENDED`,`PROGRAM_NOT_ON_SALE`,`PAYMENT_UNAVAILABLE`])}),fl=Ks$1({teamId:Xo$1().max(128).optional()}),pl=Gs$1({passes:Us$1(el)}),ml=el.extend({member:Gs$1({firstName:Xo$1(),lastName:Xo$1(),email:Xo$1()}).optional().meta({description:`Absent when the user account no longer exists`})}).meta({description:`A membership pass with its owner, for staff`});const vl=Ks$1({teamId:Xo$1().max(128),memberNumber:Cs$1().int().min(1).max(99999).meta({description:`The serial printed on the keyring being handed over. It becomes the member number.`,examples:[42]}),email:ns$1().max(254).meta({description:`The member's email. Their existing account is used, or a new one is created that they sign in to with this email.`}),firstName:Xo$1().trim().min(1).max(100),lastName:Xo$1().trim().min(1).max(100),endsAt:w$1().nullable().meta({description:`When the free membership ends. Null for no end date. See defaultMembershipGrantEnd().`})}),yl=Ks$1({teamId:Xo$1().max(128),memberNumber:Cs$1().int().min(1).max(99999)}),bl=Gs$1({status:nc$1([`AVAILABLE`,`TAKEN`,`LAPSED`,`NO_KEYRING`]).meta({description:`AVAILABLE: free. TAKEN: a current or suspended member holds it. LAPSED: a lapsed member holds it, and only they can be given it again. NO_KEYRING: no imported keyring has this serial.`})}),xl=Ks$1({eventId:Xo$1().max(128),fobId:Xo$1().regex(/^fob_[0-9a-z]{26}$/).meta({description:`The QR value scanned from the member's keyring`})}),Sl=Gs$1({memberNumber:Cs$1().int(),member:Gs$1({firstName:Xo$1(),lastName:Xo$1()}).optional().meta({description:`Absent when the user account no longer exists`})}),Cl=Xs$1(`status`,[Sl.extend({status:ic$1(`REDEEMED`),passId:Xo$1(),discount:Gs$1({kind:nc$1([`AMOUNT`,`PERCENT`]),amount:Cs$1().int().meta({description:`Minor units for AMOUNT, whole percent for PERCENT`}),currency:Xo$1().optional()}),undoUntil:w$1().meta({description:`The scanning staff member may undo until this moment`})}),Sl.extend({status:ic$1(`ALREADY_USED`),source:nc$1([`ONLINE`,`DOOR`]),pending:Ds$1(),usedAt:w$1().optional(),orderId:Xo$1().optional(),usedBy:Gs$1({firstName:Xo$1()}).optional().meta({description:`The staff member who scanned it, for a door use`})}),Sl.extend({status:ic$1(`INACTIVE`),reason:nc$1([`EXPIRED`,`SUSPENDED`,`ENDED`])}),Sl.extend({status:ic$1(`NO_DISCOUNT`)}),Gs$1({status:ic$1(`NOT_A_MEMBER`),reason:nc$1([`UNKNOWN_KEYRING`,`OTHER_TEAM`,`UNASSIGNED`])})]).meta({description:`What door staff are told about a scanned keyring`}),wl=Ks$1({eventId:Xo$1().max(128),passId:Xo$1().max(128)}),Tl=Ks$1({teamId:Xo$1().max(128),passId:Xo$1().max(128)}),El=Gs$1({reason:nc$1([`ALREADY_MEMBER`,`MEMBERSHIP_SUSPENDED`,`NUMBER_TAKEN`,`MEMBER_NUMBER_MISMATCH`,`NO_KEYRING`,`NOT_COMPLIMENTARY`]),memberNumber:Cs$1().int().optional().meta({description:`The member number the account already holds, for ALREADY_MEMBER and MEMBER_NUMBER_MISMATCH`})}),Dl=Ks$1({teamId:Xo$1().max(128),limit:L$1(`members`),cursor:Xo$1().max(768).optional().meta({description:`Pagination cursor from the previous response`})}),Ol=B$1(ml,`members`).extend({program:$c.optional()}),kl=nc$1([`PROCESSING`,`TICKETS_CANCELLED`,`CANCELLED`]),Al=Xo$1().trim().min(1,`Enter a reason`).max(500,`Reason must be 500 characters or fewer`),jl=Gs$1({id:En,request:Gs$1({cancelOrder:Ds$1().optional().meta({description:`Whether this request closes the order to further ticket issuance.`}),idempotencyKey:Xo$1().meta({description:`Client key identifying the accepted cancellation request.`}),ticketIds:Us$1(On).optional().meta({description:`Original ticket selection for replaying the request. Omitted to select all tickets.`})}).meta({description:`Original request identity and selection.`}),ticketIds:Us$1(On).meta({description:`Tickets selected for this cancellation operation.`}),fullCancellation:Ds$1().meta({description:`Whether the request selected all tickets. Closing the order is controlled separately by request.cancelOrder.`}),reason:Al.meta({description:`Reason shared with the buyer.`}),actor:Gs$1({type:nc$1([`USER`,`SYSTEM`]).meta({description:`Actor responsible for the cancellation.`}),userId:j$1.optional(),name:Xo$1().optional().meta({description:`Actor name captured when the cancellation was requested.`})}),createdAt:w$1().meta({description:`Time the cancellation request was accepted.`}),completedAt:w$1().optional().meta({description:`Time ticket cancellation completed.`}),status:nc$1([`PROCESSING`,`SUCCEEDED`]).meta({description:`Ticket cancellation progress, independent of email delivery.`}),retryAction:nc$1([`RESUME_CANCELLATION`]).optional().meta({description:`Replay the original request to complete unfinished cancellation work.`}),notification:Gs$1({requested:Ds$1().meta({description:`Whether staff requested a buyer email. Delivery is tracked by the shared notification service.`})})}).meta({description:`Staff-only cancellation history, including notification preference.`}),Ml=Gs$1({cancellation:jl}),Nl=Gs$1({cancellations:Us$1(jl)}),Pl=Gs$1({id:En,reason:Al.meta({description:`Reason shared with the buyer.`}),ticketIds:Us$1(On).meta({description:`Tickets affected by this cancellation.`})}).meta({description:`Buyer-visible cancellation details.`}),Fl=Gs$1({name:Xo$1().meta({examples:[`tenant-web`,`team-web`,`api`,`partner`],description:`Free-form channel identifier describing where the order originated.`}),referrer:Xo$1().optional().meta({examples:[`https://sash.teams.mixmag.au/events/example-event`],description:`Optional referrer URL captured at order creation for redirect routing and attribution.`}),utmSource:Xo$1().optional().meta({examples:[`instagram`],description:`Optional UTM source captured from the originating URL.`}),utmMedium:Xo$1().optional().meta({examples:[`social`],description:`Optional UTM medium captured from the originating URL.`}),utmCampaign:Xo$1().optional().meta({examples:[`summer-launch`],description:`Optional UTM campaign captured from the originating URL.`}),deviceType:nc$1([`MOBILE`,`TABLET`,`DESKTOP`]).optional().meta({examples:[`MOBILE`],description:`Optional analytics device classification captured at order creation.`}),browser:Xo$1().optional().meta({examples:[`Chrome`],description:`Optional analytics browser classification captured at order creation.`}),country:Xo$1().optional().meta({examples:[`Australia`],description:`Optional viewer country captured at order creation for analytics attribution.`}),region:Xo$1().optional().meta({examples:[`Australia - New South Wales`],description:`Optional viewer region captured at order creation for analytics attribution.`}),sessionId:Xo$1().optional().meta({examples:[`ses_01HX...`],description:`Session ID captured at order creation for client/server analytics linking.`}),anonymousId:Xo$1().optional().meta({examples:[`aid_01HX...`],description:`Browser anonymous ID captured at order creation for attribution linking.`})}),Il=Gs$1({id:Xo$1().meta({examples:[C$1.CouponCode.id],description:`Unique identifier of the coupon code used in the order`}),name:Xo$1().meta({examples:[C$1.CouponCode.name],description:`The coupon code string that was entered by the customer`}),couponId:Xo$1().meta({examples:[C$1.CouponCode.couponId],description:`Unique identifier of the parent coupon configuration`})}),Ll=Gs$1({id:Xo$1().meta({examples:[C$1.Customer.id],description:`Unique identifier of the customer who placed the order`}),firstName:Xo$1().meta({examples:[C$1.Customer.firstName],description:`First name of the customer`}),lastName:Xo$1().meta({examples:[C$1.Customer.lastName],description:`Last name of the customer`}),email:ns$1().meta({examples:[C$1.Customer.email],description:`Email address of the customer`}),phone:Xo$1().meta({examples:[C$1.Customer.phone],description:`Customer phone number in E.164 format for SMS delivery`}).optional()}),Rl=Gs$1({id:Xo$1().meta({examples:[C$1.Event.id],description:`Unique identifier of the event associated with the order`}),name:Xo$1().meta({examples:[C$1.Event.name],description:`Display name of the event`}),slug:Xo$1().meta({examples:[C$1.Event.slug],description:`URL-friendly slug of the event`}),location:Xo$1().meta({examples:[C$1.Event.location.name],description:`Name of the venue or location where the event takes place`}).optional(),locationAddress:Xo$1().optional().meta({examples:[C$1.Event.location.address],description:`Full venue address, available once the event location is revealed.`}),locationLatitude:Cs$1().optional().meta({examples:[C$1.Event.location.latitude],description:`Venue latitude, available once the event location is revealed.`}),locationLongitude:Cs$1().optional().meta({examples:[C$1.Event.location.longitude],description:`Venue longitude, available once the event location is revealed.`}),entryInstructions:Xo$1().max(2e3).optional().meta({description:`Latest entry instructions for customers once the event location is revealed.`})}),zl=nc$1([`GATEWAY`,`SHIPPING`,`SMS_DELIVERY`]).meta({description:`Type of fee applied to an order`}),Bl=Gs$1({id:Xo$1().meta({examples:[C$1.OrderFee.id],description:`Unique identifier for this order fee`}),createdAt:w$1().readonly().meta({examples:[C$1.OrderFee.createdAt],description:`Timestamp in ISO 8601 format when this fee was created`}),reason:Xo$1().meta({examples:[C$1.OrderFee.reason],description:`Description explaining why this fee was applied to the order`}),amount:Cs$1().finite(`Amount must be a valid number`).meta({examples:[C$1.OrderFee.amount],description:`Fee amount in cents (positive value indicates charge to customer, negative value indicates credit or discount)`}),currency:D$1.meta({examples:[C$1.OrderFee.currency],description:`Currency code in ISO 4217 format`}),requestId:Xo$1().meta({examples:[C$1.OrderFee.requestId],description:`External payment processor request identifier for tracking this fee`}),kind:zl.optional().meta({examples:[`GATEWAY`],description:`Type of fee for categorization and reporting`})}),Vl=Gs$1({net:Ts$1().min(0).meta({examples:[C$1.OrderItem.price.net],description:`Total amount to pay to promoter in cents.
|
|
70
|
+
Calculated as: total - booking - refunded`}),total:Ts$1().min(0).meta({examples:[C$1.OrderItem.price.total],description:`Total amount the customer should pay in cents.
|
|
71
|
+
Calculated as: gross - discount`}),gross:Ts$1().min(0).meta({examples:[C$1.OrderItem.price.gross],description:`Total amount before refunds and discounts in cents.
|
|
72
|
+
Calculated as: base + tax added to the entered price + booking`}),base:Ts$1().min(0).meta({examples:[C$1.OrderItem.price.base],description:`Total ticket price in cents`}),booking:Ts$1().min(0).meta({examples:[C$1.OrderItem.price.booking],description:`Total booking fees in cents (non-refundable)`}),tax:Ts$1().min(0).optional().meta({description:`Ticket tax component in cents. Informational when already included in the entered price and included in total when added to it.`}),refunded:Ts$1().max(0).meta({examples:[C$1.OrderItem.price.refunded],description:`Total amount refunded in cents`}),discount:Ts$1().max(0).meta({examples:[C$1.OrderItem.price.discount],description:`Total amount discounted in cents`}),currency:D$1.meta({examples:[C$1.OrderItem.price.currency],description:`Currency code in ISO 4217 format.`})}),Hl={taxableAmount:Ts$1().min(0).meta({description:`Amount excluding collected tax, in minor currency units`}),amount:Ts$1().min(0).meta({description:`Collected tax amount in minor currency units`}),grossAmount:Ts$1().min(0).meta({description:`Amount including collected tax, in minor currency units`})};function Ul(e){return e.grossAmount===e.taxableAmount+e.amount}Gs$1(Hl).refine(Ul,{message:`Gross amount must equal taxable amount plus tax amount`,path:[`grossAmount`]});const Gl=Gs$1({...Hl,settings:Xs.meta({description:`Event tax settings snapshot used for this order item`})}).refine(Ul,{message:`Gross amount must equal taxable amount plus tax amount`,path:[`grossAmount`]}).meta({description:`Immutable ticket tax snapshot and calculated amount`}),Kl=Gs$1({supplierLegalName:Xo$1().trim().min(1).meta({description:`Legal entity supplying the platform booking service`}),registrationLabel:Xo$1().trim().min(1).max(50).optional().meta({description:`Label for the platform supplier registration number`}),registrationNumber:Xo$1().trim().min(1).max(100).meta({description:`Platform supplier tax or business registration number`}),taxName:Xo$1().trim().min(1).max(50).meta({description:`Customer-facing tax name for the platform booking fee`}),ratePpm:Ts$1().min(1).max(Hs).meta({description:`Platform fee tax rate in parts per million`}),priceMode:ic$1(`INCLUSIVE`).meta({description:`Platform booking fees are displayed inclusive of tax`})}).strict().meta({description:`Platform booking fee tax settings snapshot`}),ql=Gs$1({ticket:Xs.optional().meta({description:`Ticket supplier tax settings used for this order`}),platformFee:Kl.optional().meta({description:`Platform booking fee tax settings used for this order`})}).strict().refine(e=>e.ticket!==void 0||e.platformFee!==void 0,{message:`Include at least one tax settings snapshot`}).meta({description:`Immutable supplier tax settings used by the order`}),Jl=nc$1([`ADMISSION`,`ADDON`]),Xl=Gs$1({id:Xo$1().meta({examples:[C$1.OrderItem.id],description:`Unique identifier for this order item`}),kind:Jl.meta({examples:[C$1.OrderItem.kind],description:`Type of item: ADMISSION for tickets, ADDON for additional products or services`}),quantity:Ts$1().min(1).meta({examples:[C$1.OrderItem.quantity],description:`Number of items purchased (minimum 1)`}),admissionId:Xo$1().optional().meta({examples:[C$1.OrderItem.admissionId],description:`Unique identifier of the admission ticket type, required for ADMISSION items`}),sectionId:Xo$1().optional().meta({examples:[C$1.OrderItem.sectionId],description:`Unique identifier of the venue section for this admission`}),admission:z$1.optional().meta({examples:[C$1.Admission],description:`Complete admission details captured at time of purchase. This is a snapshot that preserves the exact ticket type information as it was when the order was placed`}),section:K$1.optional().meta({examples:[C$1.Section],description:`Complete section details captured at time of purchase. This is a snapshot that preserves the exact venue area or category information as it was when the order was placed`}),price:Vl.meta({description:`Pricing breakdown for this order item including all fees and discounts`}),tax:Gl.optional().meta({description:`Tax settings and amount fixed when this item was priced`})}),Zl=Xl.superRefine((e,t)=>{if(e.price.tax!==void 0!=(e.tax!==void 0)){t.addIssue({code:`custom`,message:`Price tax and item tax snapshot must be provided together`,path:[`price`,`tax`]});return}e.tax&&e.price.tax!==e.tax.amount&&t.addIssue({code:`custom`,message:`Price tax must equal the item tax amount`,path:[`price`,`tax`]});}),Ql=Gs$1({promoter:Ds$1(),tenant:Ds$1()}),$l=nc$1([`SMS_DELIVERY`]).meta({description:`Type of pre-computed offer available for this order`}),eu=Gs$1({amount:Ts$1().min(0).meta({examples:[200],description:`Offer price in the smallest currency unit (e.g. cents)`}),currency:D$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code`})}),tu=Gs$1({kind:$l.meta({examples:[`SMS_DELIVERY`],description:`Discriminator identifying the type of offer`}),label:Xo$1().meta({examples:[`SMS ticket delivery`],description:`Human-readable label for the offer`}),price:eu.meta({description:`Pre-computed price for this offer`})}),nu=nc$1([`FREE`,`AIRWALLEX`,`STRIPE`]),iu=nc$1([`AMERICAN_EXPRESS`,`CARTES_BANCAIRES`,`CHINA_UNION_PAY`,`DINERS_CLUB_INTERNATIONAL`,`DISCOVER`,`EFTPOS_AUSTRALIA`,`INTERAC`,`JCB`,`LINK`,`MAESTRO`,`MASTERCARD`,`OTHER`,`UNKNOWN`,`UNION_PAY`,`VISA`]),ou=nc$1(`ACH_DIRECT_DEBIT.ACSS_DEBIT.AFFIRM.AFTERPAY.ALFAMART.ALIPAY.ALIPAYCN.ALIPAYHK.ALMA.AMEX_EXPRESS_CHECKOUT.AMAZON_PAY.APPLEPAY.ATOME.BACS_DIRECT_DEBIT.BANCONTACT.BANK_TRANSFER.BECS_DIRECT_DEBIT.BILLIE.BITPAY.BLIK.BOLETO.BOOST.CARD.CARD_PRESENT.CASHAPP.CRYPTO.CUSTOM.CUSTOMER_BALANCE.DANA.DOKU_EWALLET.DRAGONPAY.DUIT_NOW.EFT_DIRECT_DEBIT.EPS.ESUN.FAMILY_MART.FPX.FPS.GCASH.GIROPAY.GOOGLEPAY.GO_PAY.GRABPAY.HI_LIFE.IDEAL.INDOMARET.INTERAC_PRESENT.JENIUS_PAY.KAKAOPAY.KLARNA.KONBINI.KOREAN_LOCAL_CARD.LINK.LINKAJA.MASTERPASS.MAXIMA.MB_WAY.MOBILEPAY.MULTIBANCO.MYBANK.NARVESEN.NAVER_PAY.NZ_BANK_ACCOUNT.ONLINE_BANKING.OVO.OXXO.P24.PAYBYBANKAPP.PAYCO.PAYEASY.PAYPAL.PAYPAY.PAYSAFECASH.PAYSAFECARD.PAYSERA.PAY_NOW.PERLAS_TERMINALS.PIX.PROMPTPAY.RABBIT_LINE_PAY.REVOLUT_PAY.SAMSUNG_PAY.SATISPAY.SEPA_DIRECT_DEBIT.SEVEN_ELEVEN.SHOPEE_PAY.SKRILL.SOFORT.SWISH.TNG.TOSS_PAY.TRUEMONEY.TRUSTLY.TWINT.VERKKOPANKKI.VISA_CHECKOUT.WECHATPAY.ZIP`.split(`.`)),cu=Gs$1({method:nu.meta({examples:[`FREE`],description:`Payment gateway used to process this order: FREE for no-cost orders, AIRWALLEX or STRIPE for paid orders`}),source:ou.optional().meta({examples:[`APPLEPAY`,`GOOGLEPAY`,`CARD`],description:`Payment method used by the customer such as ApplePay, GooglePay, or card-based payments`}),brand:iu.optional().meta({examples:[`VISA`,`MASTERCARD`,`AMERICAN_EXPRESS`],description:`Card brand when source is CARD (Visa, Mastercard, American Express, etc.)`}),last4:Xo$1().optional().meta({examples:[`4242`],description:`Last 4 digits of the card number when source is CARD`}),stripeId:Xo$1().optional().meta({examples:[`pi_1234567890abcdef`],description:`Stripe payment intent identifier when using Stripe gateway`}),stripeClientSecret:Xo$1().optional().meta({examples:[`pi_1234567890abcdef_secret_xyz`],description:`Stripe PaymentIntent client secret associated with the order, used to complete the payment flow`}),stripeCustomerSessionClientSecret:Xo$1().optional().meta({examples:[`cuss_1234567890abcdef_secret_xyz`],description:`Stripe CustomerSession client secret used by the Payment Element to offer and redisplay saved payment methods`}),stripeAccountId:Xo$1().optional().meta({examples:[`acct_1234567890abcdef`],description:`Connected Stripe account ID for direct charges. When present, payment is processed directly on the connected account rather than the platform account.`}),airwallexId:Xo$1().optional().meta({examples:[`int_hkdmr7v9rg1j8donpkmv96`],description:`Airwallex payment intent identifier when using Airwallex gateway`}),airwallexClientSecret:Xo$1().optional().meta({examples:[`eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiaW50ZW50X2lkIjoiaW50X2hrZG1yN3Y5cmcxajhkb25wa212OTYifQ.K8vLx2nPzQHdR5mT1wYcBfJkLmNpS3xG7aE9dH4qZvM`],description:`Airwallex client secret used to authenticate requests for payment initialization`}),airwallexCustomerId:Xo$1().optional().meta({examples:[`cus_hkdmrhkh8he4j3kvela`],description:`Airwallex customer ID attached to the PaymentIntent for saved cards functionality`}),airwallexCustomerClientSecret:Xo$1().optional().meta({examples:[`eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiY3VzdG9tZXJfaWQiOiJjdXNfaGtkbXJoa2g4aGU0ajNrdmVsYSJ9.abc123`],description:`Airwallex customer client secret for accessing saved payment methods in the Drop-in Element`})}),lu=Gs$1({total:Ts$1().meta({description:`Customer refunds in settlement minor units, negative for refunds.`}),items:Ts$1().meta({description:`Refunded ticket and product principal, negative for refunds.`}),shipping:Ts$1().meta({description:`Refunded shipping, negative for refunds.`}),fees:Ts$1().meta({description:`Refunded customer fees, reported separately from organiser principal.`}),count:Ts$1().nonnegative().meta({description:`Successful refunds included at the accounting cutoff.`}),tickets:Ts$1().nonnegative().meta({description:`Tickets cancelled by the included successful refunds.`})}),uu=Gs$1({refundBreakdown:lu.optional().meta({description:`Refund components at the settlement cutoff. Absent on legacy prices.`}),net:Ts$1().meta({examples:[C$1.Order.price.net],description:`Total amount to pay to promoter in cents.
|
|
73
|
+
Ticket and shipping revenue after organiser-funded refunds and disputes, excluding booking and SMS fees.`}),total:Ts$1().meta({examples:[C$1.Order.price.total],description:`Total amount the customer should pay in cents.
|
|
74
|
+
Calculated as: gross + discount + sms`}),gross:Ts$1().min(0).meta({examples:[C$1.Order.price.gross],description:`Total amount before refunds and discounts in cents.
|
|
75
|
+
Calculated as: base + tax added to entered prices + booking + shipping`}),base:Ts$1().min(0).meta({examples:[C$1.Order.price.base],description:`Total ticket price in cents`}),booking:Ts$1().min(0).meta({examples:[C$1.Order.price.booking],description:`Total booking fees in cents (non-refundable)`}),tax:Ts$1().min(0).optional().meta({description:`Total ticket tax component in cents. This excludes tax contained in platform booking fees.`}),shipping:Ts$1().min(0).meta({examples:[C$1.Order.price.shipping],description:`Total shipping amount in cents`}),sms:Ts$1().min(0).default(0).meta({examples:[C$1.Order.price.sms],description:`SMS delivery fee in cents (customer-facing price in event currency)`}),refunded:Ts$1().max(0).meta({examples:[C$1.Order.price.refunded],description:`Total amount refunded in cents (negative value)`}),discount:Ts$1().max(0).meta({examples:[C$1.Order.price.discount],description:`Total amount discounted in cents (negative value)`}),gateway:Ts$1().max(0).meta({examples:[C$1.Order.price.gateway],description:`Total absorbed payment gateway fees in cents (negative value)`}),dispute:Ts$1().max(0).meta({examples:[C$1.Order.price.dispute],description:`Total non-absorbed payment gateway fees in cents (negative value)`}),currency:D$1.meta({examples:[C$1.Order.price.currency],description:`Currency code in ISO 4217 format`})}),du=nc$1([`PENDING`,`PROCESSING`,`SUCCEEDED`,`FAILED`]),pu=nc$1([`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`,`OTHER`]),hu=nc$1([`USER`,`GATEWAY`,`SYSTEM`]),_u=Gs$1({orderItemId:Xo$1().meta({examples:[C$1.OrderRefundItem.orderItemId],description:`Identifier of the order item being refunded`}),quantity:Ts$1().min(1).meta({examples:[C$1.OrderRefundItem.quantity],description:`Number of units refunded for this item`}),amount:Ts$1().min(0).meta({examples:[C$1.OrderRefundItem.amount],description:`Refund amount for this item in cents, after discounts, including any exclusive ticket tax and excluding booking fees`}),taxAmount:Ts$1().min(0).optional().meta({description:`Ticket tax component reversed by this refund item`}),ticketIds:Us$1(Xo$1()).meta({examples:[C$1.OrderRefundItem.ticketIds],description:`Specific ticket identifiers that were refunded (selected via FIFO)`})}),vu=Gs$1({idempotencyKey:Xo$1().optional().meta({examples:[C$1.OrderRefund.request.idempotencyKey],description:`Client-provided key to prevent duplicate refund processing`})}),yu=Gs$1({currency:Xo$1().meta({examples:[`AUD`],description:`Currency used for all refund amounts`}),total:Ts$1().min(1).meta({examples:[C$1.OrderRefund.price.total],description:`Total refund amount in cents, including ticket, shipping, and fee portions.`}),items:Ts$1().min(0).meta({examples:[C$1.OrderRefund.price.items],description:`Ticket item portion of the refund in cents`}),shipping:Ts$1().min(0).meta({examples:[C$1.OrderRefund.price.shipping],description:`Shipping portion of the refund in cents`}),fees:Ts$1().min(0).meta({examples:[C$1.OrderRefund.price.fees],description:`Fee portion of the refund in cents`}),tax:Ts$1().min(0).optional().meta({description:`Ticket tax component reversed by this refund`})}),bu=Gs$1({cancelRequested:Ds$1().meta({examples:[C$1.OrderRefund.tickets.cancelRequested],description:`Whether ticket cancellation was requested for the refund`}),cancelled:Ds$1().meta({examples:[C$1.OrderRefund.tickets.cancelled],description:`Whether tickets were cancelled as part of this refund`}),cancelledCount:Ts$1().min(0).meta({examples:[C$1.OrderRefund.tickets.cancelledCount],description:`Number of tickets that were cancelled`})}),xu=Gs$1({provider:nu.meta({examples:[`STRIPE`,`AIRWALLEX`],description:`Payment gateway used to process the refund`}),refundId:Xo$1().optional().meta({examples:[C$1.OrderRefund.gateway.refundId],description:`Refund identifier from the payment gateway`}),idempotencyKey:Xo$1().optional().meta({examples:[C$1.OrderRefund.gateway.idempotencyKey],description:`Idempotency key sent to the payment gateway`})}),Su=Gs$1({type:hu.meta({examples:[`USER`,`GATEWAY`],description:`Who initiated the refund`}),userId:Xo$1().optional().meta({examples:[C$1.OrderRefund.actor.userId],description:`Identifier of the user who initiated the refund`})}),Cu=Gs$1({requested:Ds$1().meta({examples:[C$1.OrderRefund.notification.requested],description:`Whether a customer refund confirmation email was requested.`}),sentAt:w$1().optional().meta({examples:[C$1.OrderRefund.notification.sentAt],description:`Timestamp when the refund confirmation email was sent.`})}),wu=Gs$1({reason:Xo$1().meta({examples:[`Insufficient funds for refund`],description:`Gateway or system failure reason`}),message:Xo$1().optional().meta({examples:[`The refund could not be processed.`],description:`User-facing failure message when available`})}),Tu=Gs$1({id:Xo$1().meta({examples:[C$1.OrderRefund.id],description:`Unique identifier for this refund`}),request:vu.optional().meta({description:`Request metadata supplied by Sessions or API callers`}),status:du.meta({examples:[`PENDING`,`SUCCEEDED`],description:`Current processing status. PENDING: awaiting gateway confirmation or async processing (e.g., bank transfers). PROCESSING: gateway confirmed, ticket cancellation in progress. SUCCEEDED/FAILED: terminal states.`}),acceptedAt:w$1().optional().meta({examples:[C$1.OrderRefund.acceptedAt],description:`Timestamp when the payment gateway accepted the refund`}),failedAt:w$1().optional().meta({examples:[C$1.OrderRefund.failedAt],description:`Timestamp when the refund failed`}),failure:wu.optional().meta({description:`Failure details when the refund failed`}),price:yu.meta({description:`Refund amount breakdown`}),reason:pu.meta({examples:[`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`],description:`Categorized reason for the refund used for analytics`}),note:Xo$1().optional().meta({examples:[C$1.OrderRefund.note],description:`Free-form notes explaining the refund`}),items:Us$1(_u).meta({description:`Line items included in this refund with quantities and amounts`}),tickets:bu.meta({description:`Ticket cancellation state for the refund`}),gateway:xu.meta({description:`Gateway refund identifiers`}),actor:Su.meta({description:`Refund initiator`}),metadata:ec$1(Xo$1(),Xo$1()).optional().meta({examples:[{supportTicket:`#12345`}],description:`Custom key-value pairs passed through to the payment gateway`}),notification:Cu.meta({description:`Refund confirmation notification state`}),createdAt:w$1().meta({examples:[C$1.OrderRefund.createdAt],description:`Timestamp when the refund was created`})}),Eu=uu.extend({exchangeRate:Cs$1().meta({examples:[1.4],description:`Conversion rate applied from the original payment currency to the settlement currency. 1.0 when both currencies are the same`})}).meta({description:`Settled price breakdown in the payout currency. All amounts from the original order price are converted using the exchange rate. For same-currency orders the values match the order price with an exchange rate of 1.0`,examples:[{base:14e3,booking:700,shipping:0,sms:0,discount:0,refunded:0,gateway:0,dispute:0,gross:14700,total:14700,net:14e3,currency:`AUD`,exchangeRate:1.4}]});function Du(e,t,n={}){return Gs$1({id:Xo$1().meta({examples:t.idExamples,description:t.idDescription}),createdAt:w$1().readonly().meta({examples:t.createdAtExamples,description:`Timestamp in ISO 8601 format when this timeline entry was created`}),...n,kind:e.meta({examples:t.kindExamples,description:t.kindDescription}),editable:Ds$1().meta({examples:[false],description:`Whether this timeline entry can be edited by users`}),pinned:Ds$1().meta({examples:[false],description:`Whether this timeline entry is pinned to the top of the timeline`}),description:Xo$1().meta({examples:t.descriptionExamples,description:`Human-readable description of what happened in this timeline event`}),author:Xo$1().meta({examples:[`System`],description:`Name of the user or system that created this timeline entry`}),userId:Xo$1().optional().meta({examples:[C$1.User.id],description:t.userIdDescription??`Identifier of the user who created this timeline entry, when available`}),externalId:Xo$1().optional().meta({examples:t.externalIdExamples,description:t.externalIdDescription})})}const Ou=nc$1(`ORDER_STATUS_UPDATED.ORDER_EXPIRED.ORDER_COMPLETED.PAYMENT_INITIATED.PAYMENT_PROCESSING.PAYMENT_FAILED.PAYMENT_SUCCEEDED.REFUND_INITIATED.REFUND_PROCESSING.REFUND_SUCCEEDED.REFUND_SETTLED.REFUND_FAILED.CHARGEBACK_INITIATED.CHARGEBACK_EVIDENCE_SUBMITTED.CHARGEBACK_WON.CHARGEBACK_LOST.CHARGEBACK_FUNDS_WITHDRAWN.TICKETS_GENERATED.TICKET_ADDED.TICKETS_SCANNED.TICKET_EDITED.TICKET_STATUS_CHANGED.EMAIL_SENT.EMAIL_DELIVERED.EMAIL_OPENED.EMAIL_BOUNCED.EMAIL_COMPLAINED.EMAIL_FAILED.SMS_SENT.SMS_DELIVERED.SMS_FAILED.NOTE`.split(`.`)),ku=Du(Ou,{createdAtExamples:[C$1.Order.createdAt],descriptionExamples:[`Order was created successfully`],externalIdDescription:`External idempotency key for deduplication (e.g., SES messageId + eventType)`,externalIdExamples:[`ses:01234567-89ab-cdef-0123-456789abcdef:Delivery`],idDescription:`Unique identifier of the timeline entry`,idExamples:[C$1.Timeline.id],kindDescription:`Type of timeline event (ORDER_COMPLETED, PAYMENT_SUCCEEDED, REFUND_INITIATED, etc.)`,kindExamples:[`ORDER_COMPLETED`],userIdDescription:`Identifier of the user who created this timeline entry, when available.`},{status:Xo$1().optional().meta({examples:[`SUCCESSFUL`],description:`Order status associated with this timeline entry, when applicable.`})}),Au=nc$1([`PENDING`,`PROCESSING`,`SUCCESSFUL`,`DISPUTED`,`ABANDONED`]),q$1=Gs$1({id:Dn.readonly().meta({examples:[C$1.Order.id],description:`A unique identifier for this order.`}),createdAt:w$1().readonly().meta({examples:[C$1.Order.createdAt],description:`Timestamp in ISO 8601 format when this order was created.`}),updatedAt:w$1().readonly().meta({examples:[C$1.Order.updatedAt],description:`Timestamp in ISO 8601 format when this order was last updated.`}),status:Au.meta({examples:[`PENDING`],description:`Current payment lifecycle status. PENDING: awaiting payment. PROCESSING: payment in progress. SUCCESSFUL: payment confirmed. DISPUTED: chargeback filed. ABANDONED: expired or cancelled.`}),cancellationStatus:kl.optional().meta({description:`Ticket cancellation state, independent of payment status.`}),cancellations:Us$1(Pl).optional().meta({description:`Buyer-visible reasons and affected tickets. Available on order detail responses.`}),payment:cu.optional().meta({description:`Payment gateway details including method, card brand, and transaction identifiers. Absent for free orders.`}),items:Us$1(Zl).meta({description:`Line items in this order, each with a ticket type, quantity, and price breakdown.`}),fees:Us$1(Bl).meta({description:`Gateway fees recorded against this order from settlement processing (e.g. payment processing fees, dispute fees).`}),price:uu.meta({description:`Price breakdown in the event currency. This reflects what the customer was charged.`}),tax:ql.optional().meta({description:`Immutable ticket and platform fee tax settings used to calculate this order`}),settlement:Eu.optional().meta({description:`Price breakdown in the payout currency with the exchange rate applied. When the event currency differs from the settlement currency, all amounts are converted. For same-currency orders the values match the order price with an exchange rate of 1.0.`}),couponCode:Il.optional().meta({description:`Coupon code applied to this order for discount calculation.`}),customer:Ll.optional().meta({description:`Customer who placed this order. Absent for guest checkouts before customer details are captured.`}),marketingConsent:Ql.optional().meta({description:`Marketing opt-in choices captured during checkout.`}),timeline:Us$1(ku).optional().meta({description:`Chronological audit trail of events for this order (payments, refunds, emails, scans).`}),refunds:Us$1(Tu).default([]).meta({description:`Refunds processed for this order including pending, succeeded, and failed attempts.`}),offers:Us$1(tu).default([]).meta({description:`Pre-computed add-on offers available during checkout (e.g. SMS ticket delivery).`}),customerId:jn.optional().meta({examples:[C$1.Customer.id],description:`Identifier of the customer who placed this order.`}),createdBy:Ll.optional().meta({description:`Admin user who created this order on behalf of the customer.`}),teamId:k$1.meta({description:`Team that owns this order.`}),promoterId:M$1.meta({examples:[C$1.Promoter.id],description:`Promoter managing this order.`}),event:Rl.meta({description:`Snapshot of the event at time of purchase (name, slug, location).`}),payoutIds:Us$1(Pn.meta({examples:[`pay_01HQXYZ`],description:`Payout identifier.`})).meta({description:`Payout identifiers for settlements that included this order.`}),eventId:A$1.meta({examples:[C$1.Event.id],description:`Identifier of the event this order belongs to.`}),checkoutUrl:Xo$1().optional().readonly().meta({examples:[`https://example.com/checkout/ord_1234567890`],description:`Derived checkout URL where the customer can complete payment for this order.`}),returnUrl:Xo$1().optional().meta({examples:[`/orders`],description:`Frozen registered confirmation URL, tenant return, or approved native return. External web selection requires returnDestinationKey.`}),returnDestinationKey:Xo$1().optional(),channel:Fl.optional().meta({description:`Channel metadata captured at order creation to identify origin and redirect context.`}),reservedAt:w$1().optional().meta({examples:[new Date().toISOString()],description:`Timestamp when inventory was reserved for this order. Used for checkout countdown timer.`})}).meta({description:`A customer order for event tickets. Tracks the full lifecycle from checkout through payment, settlement, and payout.`}),Mu=Gs$1({id:Xo$1().meta({examples:[C$1.Admission.id],description:`Admission ID reference`}),name:Xo$1().meta({examples:[`VIP Access`,`General Admission`,`Early Bird`],description:`Admission type name at time of purchase`}),price:Gs$1({base:Cs$1().meta({description:`Base price in smallest currency unit (cents)`}),booking:Cs$1().meta({description:`Booking fee in smallest currency unit (cents)`}),currency:Xo$1().meta({examples:[`USD`,`EUR`,`GBP`],description:`ISO 4217 currency code`})}).meta({description:`Price snapshot at time of purchase`}),entryStartsAt:I$1.meta({description:`Wall clock time when ticket holder can enter (no timezone, displays same everywhere)`}),entryEndsAt:I$1.meta({description:`Wall clock time when entry period ends (no timezone, displays same everywhere)`})}).meta({description:`Admission details for this ticket`}),Nu=Gs$1({firstName:Xo$1().trim().min(1).meta({examples:[C$1.Customer.firstName],description:`First name of the ticket attendee`}),lastName:Xo$1().trim().min(1).meta({examples:[C$1.Customer.lastName],description:`Last name of the ticket attendee`}),email:ns$1().meta({examples:[C$1.Customer.email],description:`Email address of the ticket attendee`}),phone:Xo$1().meta({examples:[C$1.Customer.phone],description:`Phone number of the ticket attendee (optional)`}).optional()}).meta({description:`Attendee information for a ticket - can be edited by tenant admins. Defaults to the order customer details when ticket is created.`}),Pu=Gs$1({id:Xo$1().meta({examples:[C$1.Event.id],description:`Event ID reference`}),name:Xo$1().meta({examples:[C$1.Event.name],description:`The title of the event shown to attendees`}),slug:Xo$1().meta({examples:[C$1.Event.slug],description:`URL-friendly identifier for the event`}),location:ps.meta({description:`Structured location details for the event`}),entryStartsAt:I$1.meta({examples:[C$1.Event.entryStartsAt],description:`Wall clock time when event entry begins (no timezone, displays same everywhere)`}),entryEndsAt:I$1.meta({examples:[C$1.Event.entryEndsAt],description:`Wall clock time when event entry ends (no timezone, displays same everywhere)`}),images:Gs$1({mobile:F$1.meta({description:`Mobile-optimized image for the event`}),desktop:F$1.meta({description:`Desktop-optimized image for the event`})})}).meta({description:`Event details for this ticket`}),Fu=Gs$1({id:Xo$1().meta({examples:[C$1.User.id],description:`Unique identifier of the user who performed the ticket scan`}),firstName:Xo$1().meta({examples:[C$1.User.firstName],description:`First name of the user who performed the scan`}),lastName:Xo$1().meta({examples:[C$1.User.lastName],description:`Last name of the user who performed the scan`}),email:ns$1().meta({examples:[C$1.User.email],description:`Email address of the user who performed the scan`})}).meta({description:`Information about the user who scanned a ticket`}),Iu=nc$1([`CHECK_IN`,`CHECK_OUT`]),Ru=Gs$1({id:Xo$1().meta({examples:[C$1.TicketScan.id],description:`Unique identifier of the ticket scan record`}),scannedAt:w$1().readonly().meta({examples:[C$1.TicketScan.scannedAt],description:`Timestamp when the ticket was scanned in ISO 8601 format`}),scannedById:Xo$1().meta({examples:[C$1.TicketScan.scannedById],description:`Unique identifier of the user who performed the scan`}),scannedBy:Fu.meta({description:`Detailed information about the user who performed the scan`}),deviceId:Xo$1().meta({examples:[C$1.TicketScan.deviceId],description:`Unique identifier of the device used for scanning`}),kind:Iu.meta({examples:[`CHECK_IN`],description:`Type of scan operation: CHECK_IN for entry, CHECK_OUT for exit`})}).meta({description:`Record of a ticket scan operation including when, who, and what type of scan`}),zu=Gs$1({id:Xo$1().meta({examples:[C$1.Section.id],description:`Section ID reference`}),name:Xo$1().meta({examples:[`Floor Section A`,`Balcony Left`,`VIP Lounge`],description:`Section name at time of purchase`}),location:Gs$1({name:Xo$1().meta({description:`Venue or location name`}),address:Xo$1().optional().meta({description:`Street address`}),city:Xo$1().optional().meta({description:`City name`}),state:Xo$1().optional().meta({description:`State or province`}),postcode:Xo$1().optional().meta({description:`Postal/ZIP code`}),country:Xo$1().optional().meta({description:`ISO country code`}),latitude:Cs$1().optional().meta({description:`Geographic latitude coordinate`}),longitude:Cs$1().optional().meta({description:`Geographic longitude coordinate`}),timeZone:Xo$1().optional().meta({examples:[`America/New_York`,`Europe/London`],description:`IANA timezone identifier`})}).meta({description:`Physical location details`})}).meta({description:`Section details for this ticket`}),Bu=nc$1([`ACTIVE`,`REDEEMED`,`CANCELLED`]),J$1=Gs$1({id:Xo$1().readonly().meta({examples:[C$1.Ticket.id],description:`Unique identifier for the ticket`}),qrValue:os$1().optional().meta({description:`Signed QR payload. Private to authorized ticket readers.`}),createdAt:w$1().readonly().meta({examples:[C$1.Ticket.createdAt],description:`Timestamp when the ticket was created in ISO 8601 format`}),updatedAt:w$1().readonly().meta({examples:[C$1.Ticket.updatedAt],description:`Timestamp when the ticket was last updated in ISO 8601 format`}),scans:Us$1(Ru).meta({description:`Array of all scan records for this ticket (check-ins and check-outs)`}),status:Bu.meta({examples:[`ACTIVE`],description:`Current status of the ticket: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)`}),attendee:Nu.meta({description:`Attendee information for this ticket - editable by tenant admins`}),customerId:jn.meta({examples:[C$1.Ticket.customerId],description:`Unique identifier of the customer who purchased this ticket (read-only)`}),eventId:A$1.meta({examples:[C$1.Ticket.eventId],description:`Unique identifier of the event this ticket grants access to`}),event:Pu.meta({description:`Event details for this ticket`}),admissionId:N$1.meta({examples:[C$1.Ticket.admissionId],description:`Unique identifier of the admission type/tier this ticket represents`}),admission:Mu.meta({description:`Admission details for this ticket`}),section:zu.optional().meta({description:`Section details for this ticket (if assigned to a section)`}),orderId:Dn.meta({examples:[C$1.Ticket.orderId],description:`Unique identifier of the order this ticket was purchased in`}),orderItemId:Xo$1().meta({examples:[C$1.Ticket.orderItemId],description:`Unique identifier of the specific order item this ticket represents`}).optional(),teamId:k$1.meta({examples:[C$1.Ticket.teamId],description:`Identifier of the team that owns this ticket`}),promoterId:M$1.meta({examples:[C$1.Ticket.promoterId],description:`Unique identifier of the promoter/organizer who created this event`})}).meta({description:`A ticket represents a customer's admission to an event. It tracks the purchase, scanning history, and current status.`}),Hu=Gs$1({id:Xo$1().meta({examples:[C$1.Order.id],description:`Unique identifier of the order to retrieve`}),signature:Vr.optional().meta({description:`HMAC signature for public order access (16 characters, base64url encoded)`})}),Uu=Hu.required().extend({cursor:Xo$1().max(4096).optional().meta({description:`Opaque cursor from the previous page of tickets.`})}).strict().meta({description:`Signed request for an order's confirmation and its QR tickets.`}),Wu=Gs$1({expectedTicketCount:Cs$1().int().nonnegative().meta({description:`Total tickets this order will have once issuing completes, across all pages.`}),order:q$1.pick({id:true,status:true,event:true,createdAt:true,items:true,price:true,returnDestinationKey:true,returnUrl:true}).extend({refunds:Us$1(Tu.pick({id:true,status:true,price:true,createdAt:true}))}),tickets:Us$1(J$1.pick({id:true,status:true,admission:true}).extend({qrValue:os$1().meta({description:`Signed QR payload. Private to the ticket holder.`})})),nextCursor:Xo$1().optional().meta({description:`Cursor for the next page of tickets. Omitted on the last.`})}).meta({description:`An order's confirmation with its issued QR tickets and refund history.`}),Gu=q$1.pick({id:true,createdAt:true,status:true}).extend({price:q$1.shape.price.pick({total:true,currency:true,refunded:true}),event:q$1.shape.event.pick({id:true,name:true,slug:true})}).meta({description:`One purchase in the current buyer's history for the website's account Team.`}),Ku=Ks$1({cursor:Xo$1().max(16384).optional().meta({description:`Opaque cursor from the previous page.`}),limit:Cs$1().int().min(1).max(25).default(20).meta({description:`Maximum purchases to return.`})}).meta({description:`Page request for the current buyer's purchases.`}),qu=Gs$1({teamId:k$1,orders:Us$1(Gu),nextCursor:Xo$1().optional().meta({description:`Cursor for the next page. Omitted on the last page.`})}).meta({description:`A page of the current buyer's purchases for the website's account Team.`}),Ju=Ks$1({id:Dn,cursor:Xo$1().max(16384).optional().meta({description:`Opaque cursor from the purchase list.`})}).meta({description:`Reference to one of the current buyer's purchases.`}),Yu=Wu.extend({teamId:k$1,order:Gu.extend({event:q$1.shape.event,items:q$1.shape.items,refunds:Wu.shape.order.shape.refunds})}).meta({description:`Full detail for one purchase the current buyer owns.`}),Xu=Ju.omit({cursor:true}).extend({ticketId:On,provider:nc$1([`apple`,`google`]).meta({description:`Wallet provider the pass is requested for.`})}).meta({description:`Request for a wallet pass on a purchase the buyer owns.`}),Zu=Xs$1(`provider`,[Gs$1({teamId:k$1,provider:ic$1(`apple`),data:Xo$1().max(4e6).meta({description:`Base64-encoded Apple Wallet pass. Do not cache or log.`})}),Gs$1({teamId:k$1,provider:ic$1(`google`),url:os$1().meta({description:`Validated Google Wallet save URL.`})})]).meta({description:`An approved wallet pass, returned only to the buyer who owns the ticket.`}),Qu=Gs$1({id:Xo$1().meta({examples:[C$1.Order.id],description:`Unique identifier of the order to add a note to`}),note:Xo$1().min(1).max(1e3).meta({examples:[`Customer requested special seating arrangements`],description:`Note text content (1-1000 characters)`})}),$u=Gs$1({id:Dn,cancelOrder:Ds$1().optional().meta({description:`Close the order and cancel all its tickets. Omit or use false to cancel tickets while allowing replacement issuance.`}),ticketIds:Us$1(On).min(1).max(500).optional().meta({description:`Tickets to cancel. Omit to cancel every ticket on the order.`}),idempotencyKey:Xo$1().min(1).max(128).meta({description:`Stable key for this cancellation. Reuse when retrying.`}),reason:Al.meta({description:`Reason shown to the buyer and included in their email when notification is enabled, 1–500 characters after trimming.`}),notify:Ds$1().default(true).meta({description:`Email the order buyer after cancellation.`})}),ed=Xl.omit({id:true,price:true,kind:true}).extend({id:Xo$1().optional().meta({examples:[`itm_01jps5cgsfwyxj0516571eaf17`],description:`Unique identifier for this order item. When omitted, the server assigns an id during processing`})}),td=Gs$1({eventId:Xo$1().meta({description:`Unique identifier of the event for which to create a complimentary order`}),items:Us$1(ed).min(1).meta({description:`Admission items to include in the complimentary order`}),customer:Gs$1({firstName:Xo$1().min(1),lastName:Xo$1().min(1),email:ns$1()}),notifyCustomer:Ds$1().default(true).meta({description:`Whether to send the standard order confirmation email after tickets are generated`}),reason:Xo$1().min(1),idempotencyKey:Xo$1().trim().min(1).max(255).optional()}),nd=nc$1([`MEMBER_SIGN_IN_REQUIRED`,`MEMBERSHIP_REQUIRED`,`MEMBER_BENEFIT_USED`]);Gs$1({reason:nd}).meta({description:`Why a coupon code could not be applied, when the checkout can act on it`});const ad=Gs$1({postHogDistinctId:Xo$1().min(1).max(256).optional()}),od=Gs$1({eventId:Xo$1().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Unique identifier of the event for which to create the order`}),items:Us$1(ed).meta({description:`List of items to include in the new order`}),couponCode:Xo$1().optional().meta({examples:[`TEST50`],description:`Optional coupon code to apply discount to the order`}),returnUrl:Xo$1().optional().meta({examples:[`/orders`],description:`Optional tenant-relative, same-tenant-origin, or explicitly approved native return URL. External web returns require returnDestinationKey.`}),returnDestinationKey:Xo$1().min(1).max(80).optional().meta({description:`Registered checkout confirmation destination, fixed when the order is created.`}),channel:Fl.optional().meta({description:`Optional channel metadata for where the order originated (for attribution and redirect routing).`}),analytics:ad.optional().meta({description:`Optional browser analytics metadata used for cross-domain checkout attribution.`}),idempotencyKey:Xo$1().trim().min(1).max(255).optional().meta({description:`Optional key that makes repeated order creation requests return the same order.`})}),sd=Gs$1({id:Xo$1().meta({examples:[C$1.Order.id],description:`Unique identifier of the order`}),noteId:Xo$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to delete`})}),cd=nc$1([`EMAIL`,`SMS`]).meta({examples:[`EMAIL`],description:`Method used to deliver tickets to the customer: EMAIL or SMS`});Gs$1({id:Xo$1().meta({examples:[C$1.Order.id],description:`Unique identifier of the order to edit`}),signature:Vr.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for editing order items.`}),items:Us$1(ed).min(1).meta({description:`Updated list of items for the order (replaces existing items). Prices will be recalculated and payment intent updated.`})});const ud=nc$1([`STATUS`,`CANCELLATION_STATUS`,`DELIVERY_METHOD`,`CUSTOMER_EMAIL`,`CUSTOMER_PHONE`,`COUPON_CODE`,`PAYMENT_SOURCE`,`PAYMENT_METHOD`,`CURRENCY`,`CREATED_AT`,`UPDATED_AT`,`RESERVED_AT`,`TOTAL`,`TICKETS`,`ORDER_ID`,`CUSTOMER_ID`,`EVENT_ID`,`PROMOTER_ID`,`PAYOUT_ID`]),dd=nc$1([`IS`,`IS_NOT`,`IS_ANY_OF`,`CONTAINS`,`IS_EMPTY`,`IS_NOT_EMPTY`,`BETWEEN`,`GTE`,`LTE`]),fd=new Set([`IS_EMPTY`,`IS_NOT_EMPTY`]),pd=new Set([`IS_ANY_OF`]),md=new Set([`IS`,`IS_NOT`,`CONTAINS`,`GTE`,`LTE`]),hd=new Set([`BETWEEN`]),gd={CANCELLATION_STATUS:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`,`IS_EMPTY`]),STATUS:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`]),DELIVERY_METHOD:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`]),CUSTOMER_EMAIL:new Set([`IS`,`IS_NOT`,`CONTAINS`,`IS_EMPTY`,`IS_NOT_EMPTY`]),CUSTOMER_PHONE:new Set([`IS`,`IS_NOT`,`CONTAINS`,`IS_EMPTY`,`IS_NOT_EMPTY`]),COUPON_CODE:new Set([`IS`,`IS_NOT`,`CONTAINS`,`IS_EMPTY`,`IS_NOT_EMPTY`]),PAYMENT_SOURCE:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`,`IS_EMPTY`]),PAYMENT_METHOD:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`,`IS_EMPTY`]),CURRENCY:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`]),CREATED_AT:new Set([`BETWEEN`,`GTE`,`LTE`]),UPDATED_AT:new Set([`BETWEEN`,`GTE`,`LTE`]),RESERVED_AT:new Set([`BETWEEN`,`GTE`,`LTE`,`IS_EMPTY`,`IS_NOT_EMPTY`]),TOTAL:new Set([`BETWEEN`,`GTE`,`LTE`]),TICKETS:new Set([`BETWEEN`,`GTE`,`LTE`]),ORDER_ID:new Set([`IS`,`IS_NOT`,`CONTAINS`]),CUSTOMER_ID:new Set([`IS`,`IS_NOT`,`IS_EMPTY`,`IS_NOT_EMPTY`]),EVENT_ID:new Set([`IS`,`IS_NOT`]),PROMOTER_ID:new Set([`IS`,`IS_NOT`]),PAYOUT_ID:new Set([`IS`,`IS_NOT`,`IS_ANY_OF`,`IS_EMPTY`])},_d={STATUS:Au,CANCELLATION_STATUS:kl,DELIVERY_METHOD:cd,PAYMENT_SOURCE:ou,PAYMENT_METHOD:nu},vd=new Set([`CREATED_AT`,`UPDATED_AT`,`RESERVED_AT`]),yd=new Set([`TOTAL`,`TICKETS`]),bd=Gs$1({field:ud,operator:dd,values:Us$1(Xo$1()).max(20)}).superRefine((e,t)=>{gd[e.field].has(e.operator)||t.addIssue({code:`custom`,path:[`operator`],message:`${e.operator} is not supported for ${e.field}`}),xd(e,t),Sd(e,t),Cd(e,t),wd(e,t);});function xd(e,t){let n=e.values.length;fd.has(e.operator)&&n!==0&&t.addIssue({code:`custom`,path:[`values`],message:`${e.operator} does not accept values`}),md.has(e.operator)&&n!==1&&t.addIssue({code:`custom`,path:[`values`],message:`${e.operator} requires exactly one value`}),pd.has(e.operator)&&n<1&&t.addIssue({code:`custom`,path:[`values`],message:`${e.operator} requires at least one value`}),hd.has(e.operator)&&n!==2&&t.addIssue({code:`custom`,path:[`values`],message:`${e.operator} requires exactly two values`});}function Sd(e,t){let n=_d[e.field];n&&e.values.forEach((r,i)=>{n.safeParse(r).success||t.addIssue({code:`custom`,path:[`values`,i],message:`${r} is not valid for ${e.field}`});});}function Cd(e,t){vd.has(e.field)&&e.values.forEach((e,n)=>{Number.isNaN(Date.parse(e))&&t.addIssue({code:`custom`,path:[`values`,n],message:`${e} is not a valid date`});});}function wd(e,t){yd.has(e.field)&&e.values.forEach((e,n)=>{/^-?\d+$/.test(e)||t.addIssue({code:`custom`,path:[`values`,n],message:`${e} is not a valid integer`});});}const Td=`Either locationId or googlePlaceId must be provided`,Ed={locationId:Tn.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location. Either locationId or googlePlaceId must be provided.`}),googlePlaceId:Xo$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided.`})};function Dd(e){return !!(e.locationId||e.googlePlaceId)}const Od=K$1.omit({id:true,createdAt:true,updatedAt:true,order:true,available:true,sold:true,reserved:true,visibility:true,promoterId:true,eventSlug:true,location:true}).extend({order:Cs$1().optional().meta({examples:[C$1.Section.order],description:`Display order of the section. Lower numbers appear first in listings. Defaults to 0 if not specified`}),visibility:K$1.shape.visibility.optional(),...Ed}).refine(Dd,{message:Td}).meta({description:`Schema for creating a new section within an event venue. Excludes system-generated fields and fields derived from the event`}),kd=K$1.pick({id:true}).extend({eventId:Xo$1().meta({examples:[C$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`})}).meta({description:`Schema for soft-deleting a section by setting its deletedAt timestamp`}),Ad=K$1.pick({id:true}).extend({eventId:Xo$1().meta({examples:[C$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`})}).meta({description:`Schema for retrieving a specific section by ID`}),jd=Ks$1({eventId:K$1.shape.eventId,query:Xo$1().max(120).optional().meta({examples:[`VIP`],description:`Optional search query. When provided, automatically uses search-backed pagination for full-text search capabilities`}),limit:T$1().min(1).max(100).prefault(20).meta({examples:[20],description:`Maximum number of sections to return in each result set. Must be between 1 and 100, defaults to 20`}),cursor:Xo$1().max(768).optional().meta({examples:[`eyJpbnRlbnQiOnsicmVzb3VyY2UiOiJzZWN0aW9uLmxpc3QifSwicG9zaXRpb24iOnsiZW5naW5lIjoiZHluYW1vIiwgImN1cnNvciI6InNlY18wMWpwczVjZ3NlMGczcWo1NnZkODZ6N3FqIiwgImhpc3RvcnkiOltdfX0=`],description:`Opaque pagination cursor from a previous response. Provide to continue fetching subsequent results`})}).meta({description:`Schema for listing sections with cursor-based pagination. Automatically uses search-backed pagination when query parameter is provided`}),Md=B$1(K$1,`sections`),Nd=Gs$1({section:K$1}),Pd=K$1.omit({promoterId:true,createdAt:true,updatedAt:true,eventSlug:true,available:true,sold:true,reserved:true,location:true,teamId:true,name:true,capacity:true,limit:true,order:true}).extend({id:Xo$1().meta({examples:[C$1.Section.id],description:`Unique identifier of the section to update`}),eventId:Xo$1().meta({examples:[C$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`}),name:K$1.shape.name.optional(),capacity:Un().optional(),limit:Wn().optional(),order:K$1.shape.order.optional(),visibility:nc$1([`ALWAYS`,`STACKED`,`HIDDEN`]).optional(),locationId:Tn.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:Xo$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`})}).meta({description:`Schema for updating an existing section.`}),Fd=Zl.safeExtend({admission:z$1.optional().meta({description:`Complete admission details for this order item when available`}),section:K$1.optional().meta({description:`Complete section details for this order item when applicable`})}),Id=nc$1([`UPDATED_AT`,`CREATED_AT`,`EVENT_NAME`,`TOTAL`,`STATUS`,`CUSTOMER_NAME`,`PAYMENT_SOURCE`,`COUPON_CODE`,`TICKETS`,`DELIVERY_METHOD`,`CUSTOMER_EMAIL`,`CUSTOMER_PHONE`,`ORDER_ID`]),Ld=nc$1([`asc`,`desc`]),Rd=Gs$1({mine:Ds$1().optional().meta({examples:[true],description:`When true, returns only the authenticated user's orders. Can be combined with teamId or eventId to further filter results.`}),teamId:Xo$1().optional().meta({description:`Filter orders by team unique identifier`}),eventId:Xo$1().optional().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Filter orders by event unique identifier`}),status:Au.optional().meta({examples:[`SUCCESSFUL`],description:`Filter orders by payment status`}),query:Xo$1().optional().meta({examples:[`John Doe`],description:`Optional search query to filter orders by customer details. When provided, search-backed pagination is used.`}),includeEventTerms:Ds$1().optional().meta({examples:[true],description:`When true for authenticated user-owned order searches, also matches event name, slug, and location unless eventId is already provided.`}),filters:Us$1(bd).max(10).optional().meta({description:`Optional advanced filters for order lists.`}),sort:Id.optional().meta({examples:[`UPDATED_AT`,`CREATED_AT`,`CUSTOMER_NAME`],description:`Field to sort order lists by.`}),direction:Ld.optional().meta({examples:[`asc`,`desc`],description:"Sort direction for order lists. Defaults to `desc` when omitted."}),from:Xo$1().date().optional().meta({examples:[`2025-01-01`],description:`Filter orders created on or after this date (YYYY-MM-DD format). Inclusive of the entire day.`}),to:Xo$1().date().optional().meta({examples:[`2025-12-31`],description:`Filter orders created on or before this date (YYYY-MM-DD format). Inclusive of the entire day.`}),limit:L$1(`orders`),cursor:Xo$1().optional().meta({examples:[`eyJpZCI6Im9yZF8wMWpwczVjZ3NmZ3ZlNWI1ZzI2NjZreXJ5aCJ9`],description:`Pagination cursor for continuing to fetch subsequent results`})}),zd=B$1(q$1,`orders`),Bd=Gs$1({items:Us$1(Fd).meta({description:`List of order items with complete pricing and admission details`}),price:uu.meta({description:`Total pricing breakdown for the entire order quote`}),couponCode:Yo.optional().meta({description:`Applied coupon code details if a discount was used in this quote`}),stripeConnectAvailability:bs.optional().meta({description:`Stripe Connect availability metadata for tenant checkout UI.`})}),Vd=Gs$1({eventId:Xo$1().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Unique identifier of the event for which to generate a price quote`}),items:Us$1(ed).meta({description:`List of items to include in the price quote calculation`}),couponCode:Xo$1().optional().meta({examples:[`TEST50`],description:`Optional coupon code to apply discount to the quote`})}),Hd=Gs$1({quote:Bd}),Ud=Gs$1({orderItemId:Xo$1().meta({examples:[C$1.OrderRefundItem.orderItemId],description:`Identifier of the order item to refund`}),quantity:Ts$1().min(1).meta({examples:[C$1.OrderRefundItem.quantity],description:`Number of units to refund for this item`})}),Wd=Gs$1({id:Dn.meta({examples:[C$1.Order.id],description:`Identifier of the order to refund`}),fullRefund:Ds$1().default(false).meta({examples:[false],description:`When true, refunds all remaining refundable items. Mutually exclusive with items.`}),items:Us$1(Ud).optional().meta({description:`Specific items and quantities to refund. Required if fullRefund is false.`}),shippingAmount:Ts$1().min(0).optional().meta({examples:[500],description:`Amount of shipping to refund in cents. Cannot exceed remaining refundable shipping.`}),cancelTickets:Ds$1().default(true).meta({examples:[true],description:`Whether to cancel tickets associated with refunded items. Defaults to true.`}),notify:Ds$1().default(true).meta({examples:[true],description:`Whether to send a refund confirmation email to the customer. Defaults to true.`}),reason:pu.meta({examples:[`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`],description:`Categorized reason for the refund`}),note:Xo$1().optional().meta({examples:[`Customer requested refund due to schedule conflict`],description:`Free-form notes explaining the refund`}),idempotencyKey:Xo$1().optional().meta({examples:[`refund_12345_customer_request`],description:`Client-provided key to prevent duplicate refund processing. Recommended for programmatic refunds.`}),metadata:ec$1(Xo$1(),Xo$1()).optional().meta({examples:[{supportTicket:`#12345`}],description:`Custom key-value pairs passed through to the payment gateway`})}),Gd=Gs$1({refund:Tu}),Kd=Gs$1({id:Xo$1().meta({examples:[C$1.Order.id],description:`Order ID to resend tickets for`}),email:Xo$1().email().optional().meta({examples:[`customer@example.com`],description:`Email address to send tickets to. If not provided, uses order.customer.email`})}),qd=Gs$1({id:Xo$1().meta({examples:[C$1.Order.id],description:`Unique identifier of the order to reserve inventory for`}),signature:Vr.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded).`})}),Jd=`ORDER_NOT_RESERVABLE`,Yd=Gs$1({code:ic$1(Jd)}),Xd=Gs$1({order:q$1}),Zd=Gs$1({order:q$1.extend({userId:j$1.meta({description:`The verified buyer who owns this purchase`})})}).meta({description:`An order created for the authenticated buyer`});var Qd={version:4,country_calling_codes:{1:[`US`,`AG`,`AI`,`AS`,`BB`,`BM`,`BS`,`CA`,`DM`,`DO`,`GD`,`GU`,`JM`,`KN`,`KY`,`LC`,`MP`,`MS`,`PR`,`SX`,`TC`,`TT`,`VC`,`VG`,`VI`],7:[`RU`,`KZ`],20:[`EG`],27:[`ZA`],30:[`GR`],31:[`NL`],32:[`BE`],33:[`FR`],34:[`ES`],36:[`HU`],39:[`IT`,`VA`],40:[`RO`],41:[`CH`],43:[`AT`],44:[`GB`,`GG`,`IM`,`JE`],45:[`DK`],46:[`SE`],47:[`NO`,`SJ`],48:[`PL`],49:[`DE`],51:[`PE`],52:[`MX`],53:[`CU`],54:[`AR`],55:[`BR`],56:[`CL`],57:[`CO`],58:[`VE`],60:[`MY`],61:[`AU`,`CC`,`CX`],62:[`ID`],63:[`PH`],64:[`NZ`],65:[`SG`],66:[`TH`],81:[`JP`],82:[`KR`],84:[`VN`],86:[`CN`],90:[`TR`],91:[`IN`],92:[`PK`],93:[`AF`],94:[`LK`],95:[`MM`],98:[`IR`],211:[`SS`],212:[`MA`,`EH`],213:[`DZ`],216:[`TN`],218:[`LY`],220:[`GM`],221:[`SN`],222:[`MR`],223:[`ML`],224:[`GN`],225:[`CI`],226:[`BF`],227:[`NE`],228:[`TG`],229:[`BJ`],230:[`MU`],231:[`LR`],232:[`SL`],233:[`GH`],234:[`NG`],235:[`TD`],236:[`CF`],237:[`CM`],238:[`CV`],239:[`ST`],240:[`GQ`],241:[`GA`],242:[`CG`],243:[`CD`],244:[`AO`],245:[`GW`],246:[`IO`],247:[`AC`],248:[`SC`],249:[`SD`],250:[`RW`],251:[`ET`],252:[`SO`],253:[`DJ`],254:[`KE`],255:[`TZ`],256:[`UG`],257:[`BI`],258:[`MZ`],260:[`ZM`],261:[`MG`],262:[`RE`,`YT`],263:[`ZW`],264:[`NA`],265:[`MW`],266:[`LS`],267:[`BW`],268:[`SZ`],269:[`KM`],290:[`SH`,`TA`],291:[`ER`],297:[`AW`],298:[`FO`],299:[`GL`],350:[`GI`],351:[`PT`],352:[`LU`],353:[`IE`],354:[`IS`],355:[`AL`],356:[`MT`],357:[`CY`],358:[`FI`,`AX`],359:[`BG`],370:[`LT`],371:[`LV`],372:[`EE`],373:[`MD`],374:[`AM`],375:[`BY`],376:[`AD`],377:[`MC`],378:[`SM`],380:[`UA`],381:[`RS`],382:[`ME`],383:[`XK`],385:[`HR`],386:[`SI`],387:[`BA`],389:[`MK`],420:[`CZ`],421:[`SK`],423:[`LI`],500:[`FK`],501:[`BZ`],502:[`GT`],503:[`SV`],504:[`HN`],505:[`NI`],506:[`CR`],507:[`PA`],508:[`PM`],509:[`HT`],590:[`GP`,`BL`,`MF`],591:[`BO`],592:[`GY`],593:[`EC`],594:[`GF`],595:[`PY`],596:[`MQ`],597:[`SR`],598:[`UY`],599:[`CW`,`BQ`],670:[`TL`],672:[`NF`],673:[`BN`],674:[`NR`],675:[`PG`],676:[`TO`],677:[`SB`],678:[`VU`],679:[`FJ`],680:[`PW`],681:[`WF`],682:[`CK`],683:[`NU`],685:[`WS`],686:[`KI`],687:[`NC`],688:[`TV`],689:[`PF`],690:[`TK`],691:[`FM`],692:[`MH`],850:[`KP`],852:[`HK`],853:[`MO`],855:[`KH`],856:[`LA`],880:[`BD`],886:[`TW`],960:[`MV`],961:[`LB`],962:[`JO`],963:[`SY`],964:[`IQ`],965:[`KW`],966:[`SA`],967:[`YE`],968:[`OM`],970:[`PS`],971:[`AE`],972:[`IL`],973:[`BH`],974:[`QA`],975:[`BT`],976:[`MN`],977:[`NP`],992:[`TJ`],993:[`TM`],994:[`AZ`],995:[`GE`],996:[`KG`],998:[`UZ`]},countries:{AC:[`247`,`00`,`(?:[01589]\\d|[46])\\d{4}`,[5,6]],AD:[`376`,`00`,`(?:1|6\\d)\\d{7}|[135-9]\\d{5}`,[6,8,9],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`[135-9]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`1`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]]]],AE:[`971`,`00`,`(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}`,[5,6,7,8,9,10,11,12],[[`(\\d{3})(\\d{2,9})`,`$1 $2`,[`60|8`]],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[236]|[479][2-8]`],`0$1`],[`(\\d{3})(\\d)(\\d{5})`,`$1 $2 $3`,[`[479]`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`5`],`0$1`]],`0`],AF:[`93`,`00`,`[2-7]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-7]`],`0$1`]],`0`],AG:[`1`,`011`,`(?:268|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([457]\\d{6})$|1`,`268$1`,0,`268`],AI:[`1`,`011`,`(?:264|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2457]\\d{6})$|1`,`264$1`,0,`264`],AL:[`355`,`00`,`(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}`,[6,7,8,9],[[`(\\d{3})(\\d{3,4})`,`$1 $2`,[`80|9`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`4[2-6]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2358][2-5]|4`],`0$1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[23578]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`6`],`0$1`]],`0`],AM:[`374`,`00`,`(?:[1-489]\\d|55|60|77)\\d{6}`,[8],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[89]0`],`0 $1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`2|3[12]`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`1|47`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[3-9]`],`0$1`]],`0`],AO:[`244`,`00`,`[29]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[29]`]]]],AR:[`54`,`00`,`(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}`,[10,11],[[`(\\d{4})(\\d{2})(\\d{4})`,`$1 $2-$3`,[`2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])`,`2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)`,`2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]`,`2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]`],`0$1`,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2-$3`,[`1`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[68]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2-$3`,[`[23]`],`0$1`,1],[`(\\d)(\\d{4})(\\d{2})(\\d{4})`,`$2 15-$3-$4`,[`9(?:2[2-469]|3[3-578])`,`9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))`,`9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)`,`9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]`,`9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]`],`0$1`,0,`$1 $2 $3-$4`],[`(\\d)(\\d{2})(\\d{4})(\\d{4})`,`$2 15-$3-$4`,[`91`],`0$1`,0,`$1 $2 $3-$4`],[`(\\d{3})(\\d{3})(\\d{5})`,`$1-$2-$3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{4})`,`$2 15-$3-$4`,[`9`],`0$1`,0,`$1 $2 $3-$4`]],`0`,0,`0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?`,`9$1`],AS:[`1`,`011`,`(?:[58]\\d\\d|684|900)\\d{7}`,[10],0,`1`,0,`([267]\\d{6})$|1`,`684$1`,0,`684`],AT:[`43`,`00`,`1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}`,[4,5,6,7,8,9,10,11,12,13],[[`(\\d)(\\d{3,12})`,`$1 $2`,[`1(?:11|[2-9])`],`0$1`],[`(\\d{3})(\\d{2})`,`$1 $2`,[`517`],`0$1`],[`(\\d{2})(\\d{3,5})`,`$1 $2`,[`5[079]`],`0$1`],[`(\\d{3})(\\d{3,10})`,`$1 $2`,[`(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]`,`(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]`],`0$1`],[`(\\d{4})(\\d{3,9})`,`$1 $2`,[`[2-467]|5[2-6]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4,7})`,`$1 $2 $3`,[`5`],`0$1`]],`0`],AU:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}`,[5,6,7,8,9,10,12],[[`(\\d{2})(\\d{3,4})`,`$1 $2`,[`16`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`16`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`14|4`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[2378]`],`(0$1)`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1(?:30|[89])`]]],`0`,0,`(183[12])|0`,0,0,0,[[`(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,[`163\\d{2,6}`,[5,6,7,8,9]],[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],AW:[`297`,`00`,`(?:[25-79]\\d\\d|800)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[25-9]`]]]],AX:[`358`,`00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))`,`2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}`,[5,6,7,8,9,10,11,12],0,`0`,0,0,0,0,`18`,0,`00`],AZ:[`994`,`00`,`365\\d{6}|(?:[124579]\\d|60|88)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`90`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[28]|2|365|46`,`1[28]|2|365[45]|46`,`1[28]|2|365(?:4|5[02])|46`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[13-9]`],`0$1`]],`0`],BA:[`387`,`00`,`6\\d{8}|(?:[35689]\\d|49|70)\\d{6}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6[1-3]|[7-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2-$3`,[`[3-5]|6[56]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`6`],`0$1`]],`0`],BB:[`1`,`011`,`(?:246|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`246$1`,0,`246`],BD:[`880`,`00`,`[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}`,[6,7,8,9,10],[[`(\\d{2})(\\d{4,6})`,`$1-$2`,[`31[5-8]|[459]1`],`0$1`],[`(\\d{3})(\\d{3,7})`,`$1-$2`,[`3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]`],`0$1`],[`(\\d{4})(\\d{3,6})`,`$1-$2`,[`[13-9]|2[23]`],`0$1`],[`(\\d)(\\d{7,8})`,`$1-$2`,[`2`],`0$1`]],`0`],BE:[`32`,`00`,`4\\d{8}|[1-9]\\d{7}`,[8,9],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`(?:80|9)0`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[239]|4[23]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[15-8]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`4`],`0$1`]],`0`],BF:[`226`,`00`,`[024-7]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[024-7]`]]]],BG:[`359`,`00`,`00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}`,[6,7,8,9,12],[[`(\\d)(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`2`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`43[1-6]|70[1-9]`],`0$1`],[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,3})`,`$1 $2 $3`,[`[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`(?:70|8)0`],`0$1`],[`(\\d{3})(\\d{3})(\\d{2})`,`$1 $2 $3`,[`43[1-7]|7`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[48]|9[08]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],BH:[`973`,`00`,`[136-9]\\d{7}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[13679]|8[02-4679]`]]]],BI:[`257`,`00`,`(?:[267]\\d|31)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2367]`]]]],BJ:[`229`,`00`,`(?:01\\d|8)\\d{7}`,[8,10],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`0`]]]],BL:[`590`,`00`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],BM:[`1`,`011`,`(?:441|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`441$1`,0,`441`],BN:[`673`,`00`,`[2-578]\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-578]`]]]],BO:[`591`,`00(?:1\\d)?`,`(?:[2-7]\\d\\d|8001)\\d{5}`,[8,9],[[`(\\d)(\\d{7})`,`$1 $2`,[`[23]|4[46]|50`]],[`(\\d{8})`,`$1`,[`[5-7]`]],[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`8`]]],`0`,0,`0(1\\d)?`],BQ:[`599`,`00`,`(?:[34]1|7\\d)\\d{5}`,[7],0,0,0,0,0,0,`[347]`],BR:[`55`,`00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)`,`[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}`,[8,9,10,11],[[`(\\d{4})(\\d{4})`,`$1-$2`,[`300|4(?:0[02]|37|86)`,`300|4(?:0(?:0|20)|370|864)`]],[`(\\d{3})(\\d{2,3})(\\d{4})`,`$1 $2 $3`,[`(?:[358]|90)0`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2-$3`,[`(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]`],`($1)`],[`(\\d{2})(\\d{5})(\\d{4})`,`$1 $2-$3`,[`[16][1-9]|[2-57-9]`],`($1)`]],`0`,0,`(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?`,`$2`],BS:[`1`,`011`,`(?:242|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([3-8]\\d{6})$|1`,`242$1`,0,`242`],BT:[`975`,`00`,`[178]\\d{7}|[2-8]\\d{6}`,[7,8],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-6]|7[246]|8[2-4]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[67]|[78]`]]]],BW:[`267`,`00`,`(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}`,[7,8,10],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`90`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[24-6]|3[15-9]`]],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[37]`]],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`8`]]]],BY:[`375`,`810`,`(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}`,[6,7,8,9,10,11],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`800`],`8 $1`],[`(\\d{3})(\\d{2})(\\d{2,4})`,`$1 $2 $3`,[`800`],`8 $1`],[`(\\d{4})(\\d{2})(\\d{3})`,`$1 $2-$3`,[`1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])`,`1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])`],`8 0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`1(?:[56]|7[467])|2[1-3]`],`8 0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[1-4]`],`8 0$1`],[`(\\d{3})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`[89]`],`8 $1`]],`8`,0,`0|80?`,0,0,0,0,`8~10`],BZ:[`501`,`00`,`(?:0800\\d|[2-8])\\d{6}`,[7,11],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[2-8]`]],[`(\\d)(\\d{3})(\\d{4})(\\d{3})`,`$1-$2-$3-$4`,[`0`]]]],CA:[`1`,`011`,`[2-9]\\d{9}|3\\d{6}`,[7,10],0,`1`,0,0,0,0,0,[[`(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}`,[10]],[``,[10]],[`8(?:00|33|44|55|66|77|88)[2-9]\\d{6}`,[10]],[`900[2-9]\\d{6}`,[10]],[`52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}`,[10]],0,[`310\\d{4}`,[7]],0,[`600[2-9]\\d{6}`,[10]]]],CC:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}`,[6,7,8,9,10,12],0,`0`,0,`([59]\\d{7})$|0`,`8$1`,0,0,[[`8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,0,[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],CD:[`243`,`00`,`(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}`,[7,8,9,10],[[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`88`],`0$1`],[`(\\d{2})(\\d{5})`,`$1 $2`,[`[1-6]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`5`],`0$1`]],`0`],CF:[`236`,`00`,`8776\\d{4}|(?:[27]\\d|61)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[26-8]`]]]],CG:[`242`,`00`,`222\\d{6}|(?:0\\d|80)\\d{7}`,[9],[[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[02]`]]]],CH:[`41`,`00`,`8\\d{11}|[2-9]\\d{8}`,[9,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8[047]|90`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-79]|81`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`8`],`0$1`]],`0`],CI:[`225`,`00`,`[02]\\d{9}`,[10],[[`(\\d{2})(\\d{2})(\\d)(\\d{5})`,`$1 $2 $3 $4`,[`2`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3 $4`,[`0`]]]],CK:[`682`,`00`,`[2-578]\\d{4}`,[5],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`[2-578]`]]]],CL:[`56`,`(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0`,`12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}`,[9,10,11],[[`(\\d{5})(\\d{4})`,`$1 $2`,[`219`,`2196`],`($1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`60|809`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`44`]],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2[1-36]`],`($1)`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`9(?:10|[2-9])`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])`],`($1)`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`60|8`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]],[`(\\d{3})(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`60`]]]],CM:[`237`,`00`,`[26]\\d{8}|88\\d{6,7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`88`]],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[26]|88`]]]],CN:[`86`,`00|1(?:[12]\\d|79)\\d\\d00`,`(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}`,[7,8,9,10,11,12],[[`(\\d{2})(\\d{5,6})`,`$1 $2`,[`(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]`,`(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123`],`0$1`],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]`,`(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]`,`85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])`,`85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`(?:4|80)0`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`10|2(?:[02-57-9]|1[1-9])`,`10|2(?:[02-57-9]|1[1-9])`,`10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]`],`0$1`,1],[`(\\d{3})(\\d{7,8})`,`$1 $2`,[`9`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`80`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[3-578]`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`1[3-9]`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`[12]`],`0$1`,1]],`0`,0,`(1(?:[12]\\d|79)\\d\\d)|0`,0,0,0,0,`00`],CO:[`57`,`00(?:4(?:[14]4|56)|[579])`,`(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}`,[8,10,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`46`]],[`(\\d{3})(\\d{7})`,`$1 $2`,[`6|90`],`($1)`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`3[0-357]|9[14]`]],[`(\\d)(\\d{3})(\\d{7})`,`$1-$2-$3`,[`1`],`0$1`,0,`$1 $2 $3`]],`0`,0,`0([3579]|4(?:[14]4|56))?`],CR:[`506`,`00`,`(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}`,[8,10],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-7]|8[3-9]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[89]`]]],0,0,`(19(?:0[0-2468]|1[09]|20|66|77|99))`],CU:[`53`,`119`,`(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}`,[6,7,8,10],[[`(\\d{2})(\\d{4,6})`,`$1 $2`,[`2[1-4]|[34]`],`(0$1)`],[`(\\d)(\\d{6,7})`,`$1 $2`,[`7`],`(0$1)`],[`(\\d)(\\d{7})`,`$1 $2`,[`[56]`],`0$1`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`8`],`0$1`]],`0`],CV:[`238`,`0`,`(?:[2-59]\\d\\d|800)\\d{4}`,[7],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2-589]`]]]],CW:[`599`,`00`,`(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[3467]`]],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9[4-8]`]]],0,0,0,0,0,`[69]`],CX:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}`,[6,7,8,9,10,12],0,`0`,0,`([59]\\d{7})$|0`,`8$1`,0,0,[[`8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,0,[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],CY:[`357`,`00`,`(?:[279]\\d|[58]0)\\d{6}`,[8],[[`(\\d{2})(\\d{6})`,`$1 $2`,[`[257-9]`]]]],CZ:[`420`,`00`,`(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}`,[9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-8]|9[015-7]`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{2})`,`$1 $2 $3 $4`,[`96`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]]]],DE:[`49`,`00`,`[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}`,[4,5,6,7,8,9,10,11,12,13,14,15],[[`(\\d{2})(\\d{3,13})`,`$1 $2`,[`3[02]|40|[68]9`],`0$1`],[`(\\d{3})(\\d{3,12})`,`$1 $2`,[`2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1`,`2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1`],`0$1`],[`(\\d{4})(\\d{2,11})`,`$1 $2`,[`[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]`,`[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`138`],`0$1`],[`(\\d{5})(\\d{2,10})`,`$1 $2`,[`3`],`0$1`],[`(\\d{3})(\\d{5,11})`,`$1 $2`,[`181`],`0$1`],[`(\\d{3})(\\d)(\\d{4,10})`,`$1 $2 $3`,[`1(?:3|80)|9`],`0$1`],[`(\\d{3})(\\d{7,8})`,`$1 $2`,[`1[67]`],`0$1`],[`(\\d{3})(\\d{7,12})`,`$1 $2`,[`8`],`0$1`],[`(\\d{5})(\\d{6})`,`$1 $2`,[`185`,`1850`,`18500`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{4})(\\d{7})`,`$1 $2`,[`18[68]`],`0$1`],[`(\\d{4})(\\d{7})`,`$1 $2`,[`15[1279]`],`0$1`],[`(\\d{5})(\\d{6})`,`$1 $2`,[`15[03568]`,`15(?:[0568]|3[13])`],`0$1`],[`(\\d{3})(\\d{8})`,`$1 $2`,[`18`],`0$1`],[`(\\d{3})(\\d{2})(\\d{7,8})`,`$1 $2 $3`,[`1(?:6[023]|7)`],`0$1`],[`(\\d{4})(\\d{2})(\\d{7})`,`$1 $2 $3`,[`15[279]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{8})`,`$1 $2 $3`,[`15`],`0$1`]],`0`],DJ:[`253`,`00`,`(?:2\\d|77)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[27]`]]]],DK:[`45`,`00`,`[2-9]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-9]`]]]],DM:[`1`,`011`,`(?:[58]\\d\\d|767|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`767$1`,0,`767`],DO:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,0,0,0,`8001|8[024]9`],DZ:[`213`,`00`,`(?:[1-4]|[5-79]\\d|80)\\d{7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[1-4]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`9`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-8]`],`0$1`]],`0`],EC:[`593`,`00`,`1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}`,[8,9,10,11],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2-$3`,[`[2-7]`],`(0$1)`,0,`$1-$2-$3`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`1`]]],`0`],EE:[`372`,`00`,`8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}`,[7,8,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88`,`[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88`]],[`(\\d{4})(\\d{3,4})`,`$1 $2`,[`[45]|8(?:00|[1-49])`,`[45]|8(?:00[1-9]|[1-49])`]],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`7`]],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]]]],EG:[`20`,`00`,`[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}`,[8,9,10],[[`(\\d)(\\d{7,8})`,`$1 $2`,[`[23]`],`0$1`],[`(\\d{2})(\\d{6,7})`,`$1 $2`,[`1[35]|[4-6]|8[2468]|9[235-7]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{8})`,`$1 $2`,[`1`],`0$1`]],`0`],EH:[`212`,`00`,`[5-8]\\d{8}`,[9],0,`0`,0,0,0,0,0,[[`528[89]\\d{5}`],[`(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}`],[`80[0-7]\\d{6}`],[`89\\d{7}`],0,0,0,0,[`(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}`]]],ER:[`291`,`00`,`[178]\\d{6}`,[7],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[178]`],`0$1`]],`0`],ES:[`34`,`00`,`[5-9]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[89]00`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-9]`]]]],ET:[`251`,`00`,`(?:11|[2-57-9]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-57-9]`],`0$1`]],`0`],FI:[`358`,`00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))`,`[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}`,[5,6,7,8,9,10,11,12],[[`(\\d{5})`,`$1`,[`20[2-59]`],`0$1`],[`(\\d{3})(\\d{3,7})`,`$1 $2`,[`(?:[1-3]0|[68])0|70[07-9]`],`0$1`],[`(\\d{2})(\\d{4,8})`,`$1 $2`,[`[14]|2[09]|50|7[135]`],`0$1`],[`(\\d{2})(\\d{6,10})`,`$1 $2`,[`7`],`0$1`],[`(\\d)(\\d{4,9})`,`$1 $2`,[`(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9`],`0$1`]],`0`,0,0,0,0,`1[03-79]|[2-9]`,0,`00`],FJ:[`679`,`0(?:0|52)`,`45\\d{5}|(?:0800\\d|[235-9])\\d{6}`,[7,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[235-9]|45`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`0`]]],0,0,0,0,0,0,0,`00`],FK:[`500`,`00`,`[2-7]\\d{4}`,[5]],FM:[`691`,`00`,`(?:[39]\\d\\d|820)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[389]`]]]],FO:[`298`,`00`,`[2-9]\\d{5}`,[6],[[`(\\d{6})`,`$1`,[`[2-9]`]]],0,0,`(10(?:01|[12]0|88))`],FR:[`33`,`00`,`[1-9]\\d{8}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0 $1`],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[1-79]`],`0$1`]],`0`],GA:[`241`,`00`,`(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}`,[7,8],[[`(\\d)(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-7]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`0`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`11|[67]`],`0$1`]],0,0,`0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})`,`$1`],GB:[`44`,`00`,`[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}`,[7,9,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`800`,`8001`,`80011`,`800111`,`8001111`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`845`,`8454`,`84546`,`845464`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`800`],`0$1`],[`(\\d{5})(\\d{4,5})`,`$1 $2`,[`1(?:38|5[23]|69|76|94)`,`1(?:(?:38|69)7|5(?:24|39)|768|946)`,`1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)`],`0$1`],[`(\\d{4})(\\d{5,6})`,`$1 $2`,[`1(?:[2-69][02-9]|[78])`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[25]|7(?:0|6[02-9])`,`[25]|7(?:0|6(?:[03-9]|2[356]))`],`0$1`],[`(\\d{4})(\\d{6})`,`$1 $2`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1389]`],`0$1`]],`0`,0,`0|180020`,0,0,0,[[`(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}`,[9,10]],[`7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}`,[10]],[`80[08]\\d{7}|800\\d{6}|8001111`],[`(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d`,[7,10]],[`70\\d{8}`,[10]],0,[`(?:3[0347]|55)\\d{8}`,[10]],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`,[10]],[`56\\d{8}`,[10]]],0,` x`],GD:[`1`,`011`,`(?:473|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`473$1`,0,`473`],GE:[`995`,`00`,`(?:[3-57]\\d\\d|800)\\d{6}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`70`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`32`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[57]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[348]`],`0$1`]],`0`],GF:[`594`,`00`,`(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]|80[6-9]|9[47]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[89]`],`0$1`]],`0`],GG:[`44`,`00`,`(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?`,[7,9,10],0,`0`,0,`([25-9]\\d{5})$|0|180020`,`1481$1`,0,0,[[`1481[25-9]\\d{5}`,[10]],[`7(?:(?:781|839)\\d|911[17])\\d{5}`,[10]],[`80[08]\\d{7}|800\\d{6}|8001111`],[`(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d`,[7,10]],[`70\\d{8}`,[10]],0,[`(?:3[0347]|55)\\d{8}`,[10]],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`,[10]],[`56\\d{8}`,[10]]]],GH:[`233`,`00`,`[235]\\d{8}|800\\d{5,6}`,[8,9],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2358]`],`0$1`]],`0`],GI:[`350`,`00`,`(?:[25]\\d|60)\\d{6}`,[8],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`2`]]]],GL:[`299`,`00`,`(?:19|[2-689]\\d|70)\\d{4}`,[6],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`19|[2-9]`]]]],GM:[`220`,`00`,`[2-9]\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],GN:[`224`,`00`,`722\\d{6}|(?:3|6\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`3`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[67]`]]]],GP:[`590`,`00`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]|80[6-9]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`,0,0,0,0,0,[[`(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],GQ:[`240`,`00`,`222\\d{6}|(?:3\\d|55|[89]0)\\d{7}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235]`]],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[89]`]]]],GR:[`30`,`00`,`5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}`,[10,11,12],[[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`21|7`]],[`(\\d{4})(\\d{6})`,`$1 $2`,[`2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2689]`]],[`(\\d{3})(\\d{3,4})(\\d{5})`,`$1 $2 $3`,[`8`]]]],GT:[`502`,`00`,`80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}`,[8,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-8]`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]]]],GU:[`1`,`011`,`(?:[58]\\d\\d|671|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`671$1`,0,`671`],GW:[`245`,`00`,`[49]\\d{8}|4\\d{6}`,[7,9],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`40`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[49]`]]]],GY:[`592`,`001`,`(?:[2-8]\\d{3}|9008)\\d{3}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],HK:[`852`,`00(?:30|5[09]|[126-9]?)`,`8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}`,[5,6,7,8,9,11],[[`(\\d{3})(\\d{2,5})`,`$1 $2`,[`900`,`9003`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-7]|8[1-4]|9(?:0[1-9]|[1-8])`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{3})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]]],0,0,0,0,0,0,0,`00`],HN:[`504`,`00`,`8\\d{10}|[237-9]\\d{7}`,[8,11],[[`(\\d{4})(\\d{4})`,`$1-$2`,[`[237-9]`]]]],HR:[`385`,`00`,`[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}`,[7,8,9],[[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`6[01]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{4})(\\d{3})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`6|7[245]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-57]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],HT:[`509`,`00`,`[2-589]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`[2-589]`]]]],HU:[`36`,`00`,`[235-7]\\d{8}|[1-9]\\d{7}`,[8,9],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`(06 $1)`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]`],`(06 $1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-9]`],`06 $1`]],`06`],ID:[`62`,`00[89]`,`00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}`,[7,8,9,10,11,12,13,14,15,16,17],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`15`]],[`(\\d{2})(\\d{5,9})`,`$1 $2`,[`2[124]|[36]1`],`(0$1)`],[`(\\d{3})(\\d{5,7})`,`$1 $2`,[`800`],`0$1`],[`(\\d{3})(\\d{5,8})`,`$1 $2`,[`[2-79]`],`(0$1)`],[`(\\d{3})(\\d{3,4})(\\d{3})`,`$1-$2-$3`,[`8[1-35-9]`],`0$1`],[`(\\d{3})(\\d{6,8})`,`$1 $2`,[`1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`804`],`0$1`],[`(\\d{3})(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`80`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1-$2-$3`,[`8`],`0$1`]],`0`],IE:[`353`,`00`,`(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}`,[7,8,9,10],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`2[24-9]|47|58|6[237-9]|9[35-9]`],`(0$1)`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[45]0`],`(0$1)`],[`(\\d)(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`1`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2569]|4[1-69]|7[14]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`70`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`81`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[78]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`4`],`(0$1)`],[`(\\d{2})(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],IL:[`972`,`0(?:0|1[2-9])`,`1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}`,[7,8,9,10,11,12],[[`(\\d{4})(\\d{3})`,`$1-$2`,[`125`]],[`(\\d{4})(\\d{2})(\\d{2})`,`$1-$2-$3`,[`121`]],[`(\\d)(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[2-489]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[57]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1-$2-$3`,[`12`]],[`(\\d{4})(\\d{6})`,`$1-$2`,[`159`]],[`(\\d)(\\d{3})(\\d{3})(\\d{3})`,`$1-$2-$3-$4`,[`1[7-9]`]],[`(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})`,`$1-$2 $3-$4`,[`15`]]],`0`],IM:[`44`,`00`,`1624\\d{6}|(?:[3578]\\d|90)\\d{8}`,[10],0,`0`,0,`([25-8]\\d{5})$|0|180020`,`1624$1`,0,`74576|(?:16|7[56])24`],IN:[`91`,`00`,`(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}`,[8,9,10,11,12,13],[[`(\\d{8})`,`$1`,[`5(?:0|2[23]|3[03]|[67]1|88)`,`5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)`,`5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)`],0,1],[`(\\d{4})(\\d{4,5})`,`$1 $2`,[`180`,`1800`],0,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`140`],0,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`11|2[02]|33|4[04]|79[1-7]|80[2-46]`,`11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])`,`11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]`,`1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]`,`1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]`],`0$1`,1],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807`,`1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]`,`1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]`],`0$1`,1],[`(\\d{5})(\\d{5})`,`$1 $2`,[`16|[6-9]`],`0$1`,1],[`(\\d{4})(\\d{2,4})(\\d{4})`,`$1 $2 $3`,[`18[06]`,`18[06]0`],0,1],[`(\\d{4})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`18`],0,1]],`0`],IO:[`246`,`00`,`3\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`3`]]]],IQ:[`964`,`00`,`(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-6]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`]],`0`],IR:[`98`,`00`,`[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}`,[4,5,6,7,10],[[`(\\d{4,5})`,`$1`,[`96`],`0$1`],[`(\\d{2})(\\d{4,5})`,`$1 $2`,[`(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[1-8]`],`0$1`]],`0`],IS:[`354`,`00|1(?:0(?:01|[12]0)|100)`,`(?:38\\d|[4-9])\\d{6}`,[7,9],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[4-9]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`3`]]],0,0,0,0,0,0,0,`00`],IT:[`39`,`00`,`0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?`,[6,7,8,9,10,11,12],[[`(\\d{2})(\\d{4,6})`,`$1 $2`,[`0[26]`]],[`(\\d{3})(\\d{3,6})`,`$1 $2`,[`0[13-57-9][0159]|8(?:03|4[17]|9[2-5])`,`0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))`]],[`(\\d{4})(\\d{2,6})`,`$1 $2`,[`0(?:[13-579][2-46-8]|8[236-8])`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`894`]],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`0[26]|5`]],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`1(?:44|[679])|[378]|43`]],[`(\\d{3})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`0[13-57-9][0159]|14`]],[`(\\d{2})(\\d{4})(\\d{5})`,`$1 $2 $3`,[`0[26]`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`[03]`]]],0,0,0,0,0,0,[[`0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}`],[`3[2-9]\\d{7,8}|(?:31|43)\\d{8}`,[9,10]],[`80(?:0\\d{3}|3)\\d{3}`,[6,9]],[`(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}`,[6,8,9,10]],[`1(?:78\\d|99)\\d{6}`,[9,10]],[`3[2-8]\\d{9,10}`,[11,12]],0,0,[`55\\d{8}`,[10]],[`84(?:[08]\\d{3}|[17])\\d{3}`,[6,9]]]],JE:[`44`,`00`,`1534\\d{6}|(?:[3578]\\d|90)\\d{8}`,[10],0,`0`,0,`([0-24-8]\\d{5})$|0|180020`,`1534$1`,0,0,[[`1534[0-24-8]\\d{5}`],[`7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}`],[`80(?:07(?:35|81)|8901)\\d{4}`],[`(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}`],[`701511\\d{4}`],0,[`(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}`],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`],[`56\\d{8}`]]],JM:[`1`,`011`,`(?:[58]\\d\\d|658|900)\\d{7}`,[10],0,`1`,0,0,0,0,`658|876`],JO:[`962`,`00`,`(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}`,[8,9],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2356]|87`],`(0$1)`],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`70`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[47]`],`0$1`]],`0`],JP:[`81`,`010`,`00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}`,[8,9,10,11,12,13,14,15,16,17],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1-$2-$3`,[`(?:12|57|99)0`],`0$1`],[`(\\d{4})(\\d)(\\d{4})`,`$1-$2-$3`,[`1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])`,`1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]`,`1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`60`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1-$2-$3`,[`3|4(?:2[09]|7[01])|6[1-9]`,`3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])`,`1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]`,`1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{4})`,`$1-$2-$3`,[`[14]|[289][2-9]|5[3-9]|7[2-4679]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`800`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2-$3`,[`[25-9]`],`0$1`]],`0`,0,`(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0`,`$1`],KE:[`254`,`000`,`(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}`,[7,8,9,10],[[`(\\d{2})(\\d{5,7})`,`$1 $2`,[`[24-6]`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[17]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[89]`],`0$1`]],`0`],KG:[`996`,`00`,`8\\d{9}|[235-9]\\d{8}`,[9,10],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`3(?:1[346]|[24-79])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235-79]|88`],`0$1`],[`(\\d{3})(\\d{3})(\\d)(\\d{2,3})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],KH:[`855`,`00[14-9]`,`1\\d{9}|[1-9]\\d{7,8}`,[8,9,10],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-9]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],KI:[`686`,`00`,`(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}`,[5,8],0,`0`],KM:[`269`,`00`,`[3478]\\d{6}`,[7],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[3478]`]]]],KN:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`869$1`,0,`869`],KP:[`850`,`00|99`,`85\\d{6}|(?:19\\d|[2-7])\\d{7}`,[8,10],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-7]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`]],`0`],KR:[`82`,`00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))`,`00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}`,[5,6,8,9,10,11,12,13,14],[[`(\\d{2})(\\d{3,4})`,`$1-$2`,[`(?:3[1-3]|[46][1-4]|5[1-5])1`],`0$1`],[`(\\d{4})(\\d{4})`,`$1-$2`,[`1`]],[`(\\d)(\\d{3,4})(\\d{4})`,`$1-$2-$3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[36]0|8`],`0$1`],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1-$2-$3`,[`[1346]|5[1-5]`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2-$3`,[`[57]`],`0$1`],[`(\\d{2})(\\d{5})(\\d{4})`,`$1-$2-$3`,[`5`],`0$1`]],`0`,0,`0(8(?:[1-46-8]|5\\d\\d))?`],KW:[`965`,`00`,`18\\d{5}|(?:[2569]\\d|41)\\d{6}`,[7,8],[[`(\\d{4})(\\d{3,4})`,`$1 $2`,[`[169]|2(?:[235]|4[1-35-9])|52`]],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[245]`]]]],KY:[`1`,`011`,`(?:345|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`345$1`,0,`345`],KZ:[`7`,`810`,`8\\d{13}|[78]\\d{9}`,[10,14],0,`8`,0,0,0,0,`7`,0,`8~10`],LA:[`856`,`00`,`[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}`,[8,9,10],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2[13]|3[14]|[4-8]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`3`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[23]`],`0$1`]],`0`],LB:[`961`,`00`,`[27-9]\\d{7}|[13-9]\\d{6}`,[7,8],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[27-9]`]]],`0`],LC:[`1`,`011`,`(?:[58]\\d\\d|758|900)\\d{7}`,[10],0,`1`,0,`([2-8]\\d{6})$|1`,`758$1`,0,`758`],LI:[`423`,`00`,`[68]\\d{8}|(?:[2378]\\d|90)\\d{5}`,[7,9],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2379]|8(?:0[09]|7)`,`[2379]|8(?:0(?:02|9)|7)`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`69`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]]],`0`,0,`(1001)|0`],LK:[`94`,`00`,`[1-9]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[1-689]`],`0$1`]],`0`],LR:[`231`,`00`,`(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}`,[7,8,9],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`4[67]|[56]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-578]`],`0$1`]],`0`],LS:[`266`,`00`,`(?:[256]\\d\\d|800)\\d{5}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2568]`]]]],LT:[`370`,`00`,`(?:[3469]\\d|52|[78]0)\\d{6}`,[8],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`52[0-7]`],`(0-$1)`,1],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[7-9]`],`0 $1`,1],[`(\\d{2})(\\d{6})`,`$1 $2`,[`37|4(?:[15]|6[1-8])`],`(0-$1)`,1],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[3-6]`],`(0-$1)`,1]],`0`,0,`[08]`],LU:[`352`,`00`,`35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}`,[4,5,6,7,8,9,10,11],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])`]],[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])`]],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`20[2-689]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})`,`$1 $2 $3 $4`,[`20`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})`,`$1 $2 $3 $4`,[`[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]`]],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`80[01]|90[015]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`20`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})`,`$1 $2 $3 $4 $5`,[`20`]]],0,0,`(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)`],LV:[`371`,`00`,`(?:[268]\\d|78|90)\\d{6}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2679]|8[01]`]]]],LY:[`218`,`00`,`[2-9]\\d{8}`,[9],[[`(\\d{2})(\\d{7})`,`$1-$2`,[`[2-9]`],`0$1`]],`0`],MA:[`212`,`00`,`[5-8]\\d{8}`,[9],[[`(\\d{4})(\\d{5})`,`$1-$2`,[`892`],`0$1`],[`(\\d{2})(\\d{7})`,`$1-$2`,[`8(?:0[0-7]|9)`],`0$1`],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[5-8]`],`0$1`]],`0`,0,0,0,0,`[5-8]`],MC:[`377`,`00`,`(?:[3489]|[67]\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`4`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[389]`]],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[67]`],`0$1`]],`0`],MD:[`373`,`00`,`(?:[235-7]\\d|[89]0)\\d{6}`,[8],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`22|3`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[25-7]`],`0$1`]],`0`],ME:[`382`,`00`,`(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-9]`],`0$1`]],`0`],MF:[`590`,`00`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],MG:[`261`,`00`,`[23]\\d{8}`,[9],[[`(\\d{2})(\\d{2})(\\d{3})(\\d{2})`,`$1 $2 $3 $4`,[`[23]`],`0$1`]],`0`,0,`([24-9]\\d{6})$|0`,`20$1`],MH:[`692`,`011`,`329\\d{4}|(?:[256]\\d|45)\\d{5}`,[7],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[2-6]`]]],`1`],MK:[`389`,`00`,`[2-578]\\d{7}`,[8],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2|34[47]|4(?:[37]7|5[47]|64)`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[347]`],`0$1`],[`(\\d{3})(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[58]`],`0$1`]],`0`],ML:[`223`,`00`,`[24-9]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[24-9]`]]]],MM:[`95`,`00`,`1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}`,[6,7,8,9,10],[[`(\\d)(\\d{2})(\\d{3})`,`$1 $2 $3`,[`16|2`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]`],`0$1`],[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[12]|452|678|86`,`[12]|452|6788|86`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[4-7]|8[1-35]`],`0$1`],[`(\\d)(\\d{3})(\\d{4,6})`,`$1 $2 $3`,[`9(?:2[0-4]|[35-9]|4[137-9])`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`92`],`0$1`],[`(\\d)(\\d{5})(\\d{4})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],MN:[`976`,`001`,`[12]\\d{7,9}|[5-9]\\d{7}`,[8,9,10],[[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`11|2[16]`],`0$1`],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[5-9]`]],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`[12]2[1-3]`],`0$1`],[`(\\d{4})(\\d{5,6})`,`$1 $2`,[`[12](?:27|3[2-8]|4[2-68]|5[1-4689])`,`[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]`],`0$1`],[`(\\d{5})(\\d{4,5})`,`$1 $2`,[`[12]`],`0$1`]],`0`],MO:[`853`,`00`,`0800\\d{3}|(?:28|[68]\\d)\\d{6}`,[7,8],[[`(\\d{4})(\\d{3})`,`$1 $2`,[`0`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[268]`]]]],MP:[`1`,`011`,`[58]\\d{9}|(?:67|90)0\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`670$1`,0,`670`],MQ:[`596`,`00`,`7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]|8(?:0[6-9]|[36])`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],MR:[`222`,`00`,`(?:[2-4]\\d\\d|800)\\d{5}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-48]`]]]],MS:[`1`,`011`,`(?:[58]\\d\\d|664|900)\\d{7}`,[10],0,`1`,0,`([34]\\d{6})$|1`,`664$1`,0,`664`],MT:[`356`,`00`,`3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2357-9]`]]]],MU:[`230`,`0(?:0|[24-7]0|3[03])`,`(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}`,[7,8,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-46]|8[013]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[57]`]],[`(\\d{5})(\\d{5})`,`$1 $2`,[`8`]]],0,0,0,0,0,0,0,`020`],MV:[`960`,`0(?:0|19)`,`(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}`,[7,10],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[34679]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`]]],0,0,0,0,0,0,0,`00`],MW:[`265`,`00`,`(?:[1289]\\d|31|77)\\d{7}|1\\d{6}`,[7,9],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1[2-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[137-9]`],`0$1`]],`0`],MX:[`52`,`0[09]`,`[2-9]\\d{9}`,[10],[[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`33|5[56]|81`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-9]`]]],0,0,0,0,0,0,0,`00`],MY:[`60`,`00`,`1\\d{8,9}|(?:3\\d|[4-9])\\d{7}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1-$2 $3`,[`[4-79]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1-$2 $3`,[`1(?:[02469]|[378][1-9]|53)|8`,`1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1-$2 $3`,[`3`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{4})`,`$1-$2-$3-$4`,[`1(?:[367]|80)`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2 $3`,[`15`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2 $3`,[`1`],`0$1`]],`0`],MZ:[`258`,`00`,`(?:2|8\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2|8[2-79]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]]]],NA:[`264`,`00`,`[68]\\d{7,8}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`88`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`6`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`87`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],NC:[`687`,`00`,`(?:050|[2-57-9]\\d\\d)\\d{3}`,[6],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1.$2.$3`,[`[02-57-9]`]]]],NE:[`227`,`00`,`[027-9]\\d{7}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`08`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[089]|2[013]|7[0467]`]]]],NF:[`672`,`00`,`[13]\\d{5}`,[6],[[`(\\d{2})(\\d{4})`,`$1 $2`,[`1[0-3]`]],[`(\\d)(\\d{5})`,`$1 $2`,[`[13]`]]],0,0,`([0-258]\\d{4})$`,`3$1`],NG:[`234`,`009`,`(?:20|9\\d)\\d{8}|[78]\\d{9,13}`,[10,11,12,13,14],[[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[7-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`20[129]`],`0$1`],[`(\\d{4})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`[78]`],`0$1`],[`(\\d{3})(\\d{5})(\\d{5,6})`,`$1 $2 $3`,[`[78]`],`0$1`]],`0`],NI:[`505`,`00`,`(?:1800|[25-8]\\d{3})\\d{4}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[125-8]`]]]],NL:[`31`,`00`,`(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}`,[5,6,7,8,9,10,11],[[`(\\d{3})(\\d{4,7})`,`$1 $2`,[`[89]0`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`66`],`0$1`],[`(\\d)(\\d{8})`,`$1 $2`,[`6`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1[16-8]|2[259]|3[124]|4[17-9]|5[124679]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-578]|91`],`0$1`],[`(\\d{3})(\\d{3})(\\d{5})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],NO:[`47`,`00`,`(?:0|[2-9]\\d{3})\\d{4}`,[5,8],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-79]`]]],0,0,0,0,0,`[02-689]|7[0-8]`],NP:[`977`,`00`,`(?:1\\d|9)\\d{9}|[1-9]\\d{7}`,[8,10,11],[[`(\\d)(\\d{7})`,`$1-$2`,[`1[2-6]`],`0$1`],[`(\\d{2})(\\d{6})`,`$1-$2`,[`1[01]|[2-8]|9(?:[1-59]|[67][2-6])`],`0$1`],[`(\\d{3})(\\d{7})`,`$1-$2`,[`9`]]],`0`],NR:[`674`,`00`,`(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[24-9]`]]]],NU:[`683`,`00`,`(?:[4-7]|888\\d)\\d{3}`,[4,7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`8`]]]],NZ:[`64`,`0(?:0|161)`,`[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}`,[5,6,7,8,9,10],[[`(\\d{2})(\\d{3,8})`,`$1 $2`,[`8[1-79]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`50[036-8]|8|90`,`50(?:[0367]|88)|8|90`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`24|[346]|7[2-57-9]|9[2-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2(?:10|74)|[589]`],`0$1`],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`1|2[028]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,5})`,`$1 $2 $3`,[`2(?:[169]|7[0-35-9])|7`],`0$1`]],`0`,0,0,0,0,0,0,`00`],OM:[`968`,`00`,`(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}`,[7,8,9],[[`(\\d{3})(\\d{4,6})`,`$1 $2`,[`[58]`]],[`(\\d{2})(\\d{6})`,`$1 $2`,[`2`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[179]`]]]],PA:[`507`,`00`,`(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}`,[7,8,10,11],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[1-57-9]`]],[`(\\d{4})(\\d{4})`,`$1-$2`,[`[68]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]]]],PE:[`51`,`00|19(?:1[124]|77|90)00`,`(?:[14-8]|9\\d)\\d{7}`,[8,9],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`80`],`(0$1)`],[`(\\d)(\\d{7})`,`$1 $2`,[`1`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[4-8]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`]]],`0`,0,0,0,0,0,0,`00`,` Anexo `],PF:[`689`,`00`,`4\\d{5}(?:\\d{2})?|8\\d{7,8}`,[6,8,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`44`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`4|8[7-9]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]]]],PG:[`675`,`00|140[1-3]`,`(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`18|[2-69]|85`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[78]`]]],0,0,0,0,0,0,0,`00`],PH:[`63`,`00`,`(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}`,[6,8,9,10,11,12,13],[[`(\\d)(\\d{5})`,`$1 $2`,[`2`],`(0$1)`],[`(\\d{4})(\\d{4,6})`,`$1 $2`,[`3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2`,`3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))`],`(0$1)`],[`(\\d{5})(\\d{4})`,`$1 $2`,[`346|4(?:27|9[35])|883`,`3469|4(?:279|9(?:30|56))|8834`],`(0$1)`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[3-7]|8[2-8]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]],[`(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`1`]]],`0`],PK:[`92`,`00`,`122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}`,[8,9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{2,7})`,`$1 $2 $3`,[`[89]0`],`0$1`],[`(\\d{4})(\\d{5})`,`$1 $2`,[`1`]],[`(\\d{3})(\\d{6,7})`,`$1 $2`,[`2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])`,`9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]`],`(0$1)`],[`(\\d{2})(\\d{7,8})`,`$1 $2`,[`(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]`],`(0$1)`],[`(\\d{5})(\\d{5})`,`$1 $2`,[`58`],`(0$1)`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`3`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[24-9]`],`(0$1)`]],`0`],PL:[`48`,`00`,`(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}`,[6,7,8,9,10],[[`(\\d{5})`,`$1`,[`19`]],[`(\\d{3})(\\d{3})`,`$1 $2`,[`11|20|64`]],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1`,`30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19`]],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`64`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)`]],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[2-8]|[2-7]|8[1-79]|9[145]`]],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`8`]]]],PM:[`508`,`00`,`[78]\\d{8}|[2-9]\\d{5}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`7`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],PR:[`1`,`011`,`(?:[589]\\d\\d|787)\\d{7}`,[10],0,`1`,0,0,0,0,`787|939`],PS:[`970`,`00`,`[2489]2\\d{6}|(?:1\\d|5)\\d{8}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2489]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],PT:[`351`,`00`,`1693\\d{5}|(?:[26-9]\\d|30)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2[12]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`16|[236-9]`]]]],PW:[`680`,`01[12]`,`(?:[24-8]\\d\\d|345|900)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],PY:[`595`,`00`,`[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}`,[6,7,8,9,10,11],[[`(\\d{3})(\\d{3,6})`,`$1 $2`,[`[2-9]0`],`0$1`],[`(\\d{2})(\\d{5})`,`$1 $2`,[`3[289]|4[246-8]|61|7[1-3]|8[1-36]`],`(0$1)`],[`(\\d{3})(\\d{4,5})`,`$1 $2`,[`2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`87`]],[`(\\d{3})(\\d{6})`,`$1 $2`,[`9(?:[5-79]|8[1-7])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-8]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9`]]],`0`],QA:[`974`,`00`,`800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}`,[7,8,9,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`2[136]|8`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[3-7]`]]]],RE:[`262`,`00`,`709\\d{6}|(?:26|[689]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[26-9]`],`0$1`]],`0`,0,0,0,0,0,[[`2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}`],[`(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}`],[`80\\d{7}`],[`89[1-37-9]\\d{6}`],0,0,0,0,[`9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}`],[`8(?:1[019]|2[0156]|84|90)\\d{6}`]]],RO:[`40`,`00`,`(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}`,[6,9],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`2[3-6]`,`2[3-6]\\d9`],`0$1`],[`(\\d{2})(\\d{4})`,`$1 $2`,[`219|31`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[23]1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[236-9]`],`0$1`]],`0`,0,0,0,0,0,0,0,` int `],RS:[`381`,`00`,`38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}`,[6,7,8,9,10,11,12],[[`(\\d{3})(\\d{3,9})`,`$1 $2`,[`(?:2[389]|39)0|[7-9]`],`0$1`],[`(\\d{2})(\\d{5,10})`,`$1 $2`,[`[1-36]`],`0$1`]],`0`],RU:[`7`,`810`,`8\\d{13}|[347-9]\\d{9}`,[10,14],[[`(\\d{4})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`7(?:1[0-8]|2[1-9])`,`7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))`,`7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2`],`8 ($1)`,1],[`(\\d{5})(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`7(?:1[0-68]|2[1-9])`,`7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))`,`7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]`],`8 ($1)`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`8 ($1)`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[349]|8(?:[02-7]|1[1-8])`],`8 ($1)`,1],[`(\\d{4})(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`8`],`8 ($1)`]],`8`,0,0,0,0,`[3489]`,0,`8~10`],RW:[`250`,`00`,`(?:06|[27]\\d\\d|[89]00)\\d{6}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`0`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[7-9]`],`0$1`]],`0`],SA:[`966`,`00`,`(?:[15]\\d|800|92)\\d{7}`,[9,10],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`9`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]]],`0`],SB:[`677`,`0[01]`,`[6-9]\\d{6}|[1-6]\\d{4}`,[5,7],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])`]]]],SC:[`248`,`010|0[0-2]`,`(?:[2489]\\d|64)\\d{5}`,[7],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[246]|9[57]`]]],0,0,0,0,0,0,0,`00`],SD:[`249`,`00`,`[19]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[19]`],`0$1`]],`0`],SE:[`46`,`00`,`(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}`,[6,7,8,9,10,12],[[`(\\d{2})(\\d{2,3})(\\d{2})`,`$1-$2 $3`,[`20`],`0$1`,0,`$1 $2 $3`],[`(\\d{3})(\\d{4})`,`$1-$2`,[`9(?:00|39|44|9)`],`0$1`,0,`$1 $2`],[`(\\d{2})(\\d{3})(\\d{2})`,`$1-$2 $3`,[`[12][136]|3[356]|4[0246]|6[03]|90[1-9]`],`0$1`,0,`$1 $2 $3`],[`(\\d)(\\d{2,3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`8`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2,3})(\\d{2})`,`$1-$2 $3`,[`1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])`],`0$1`,0,`$1 $2 $3`],[`(\\d{3})(\\d{2,3})(\\d{3})`,`$1-$2 $3`,[`9(?:00|39|44)`],`0$1`,0,`$1 $2 $3`],[`(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`10|7`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d)(\\d{3})(\\d{3})(\\d{2})`,`$1-$2 $3 $4`,[`8`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{3})`,`$1-$2 $3 $4`,[`9`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4 $5`,[`[26]`],`0$1`,0,`$1 $2 $3 $4 $5`]],`0`],SG:[`65`,`0[0-3]\\d`,`(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}`,[8,10,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[369]|8(?:0[1-9]|[1-9])`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]],[`(\\d{4})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`7`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]]]],SH:[`290`,`00`,`(?:[256]\\d|8)\\d{3}`,[4,5],0,0,0,0,0,0,`[256]`],SI:[`386`,`00|10(?:22|66|88|99)`,`[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}`,[5,6,7,8],[[`(\\d{2})(\\d{3,6})`,`$1 $2`,[`8[09]|9`],`0$1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`59|8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[37][01]|4[0139]|51|6`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[1-57]`],`(0$1)`]],`0`,0,0,0,0,0,0,`00`],SJ:[`47`,`00`,`0\\d{4}|(?:[489]\\d|79)\\d{6}`,[5,8],0,0,0,0,0,0,`79`],SK:[`421`,`00`,`[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}`,[6,7,9],[[`(\\d)(\\d{2})(\\d{3,4})`,`$1 $2 $3`,[`21`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`[3-5][1-8]1`,`[3-5][1-8]1[67]`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{2})`,`$1 $2 $3 $4`,[`2`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[689]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[3-5]`],`0$1`]],`0`],SL:[`232`,`00`,`(?:[237-9]\\d|66)\\d{6}`,[8],[[`(\\d{2})(\\d{6})`,`$1 $2`,[`[236-9]`],`(0$1)`]],`0`],SM:[`378`,`00`,`(?:0549|[5-7]\\d)\\d{6}`,[8,10],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]`]],[`(\\d{4})(\\d{6})`,`$1 $2`,[`0`]]],0,0,`([89]\\d{5})$`,`0549$1`],SN:[`221`,`00`,`(?:[378]\\d|93)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[379]`]]]],SO:[`252`,`00`,`[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}`,[6,7,8,9],[[`(\\d{2})(\\d{4})`,`$1 $2`,[`8[125]`]],[`(\\d{6})`,`$1`,[`[134]`]],[`(\\d)(\\d{6})`,`$1 $2`,[`[15]|2[0-79]|3[0-46-8]|4[0-7]`]],[`(\\d{2})(\\d{5,7})`,`$1 $2`,[`1|28|9[2-9]`]],[`(\\d)(\\d{7})`,`$1 $2`,[`[267]|904`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[346-9]`]]],`0`],SR:[`597`,`00`,`(?:[2-5]|[6-9]\\d)\\d{5}`,[6,7],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1-$2-$3`,[`56`]],[`(\\d{3})(\\d{3})`,`$1-$2`,[`[2-5]`]],[`(\\d{3})(\\d{4})`,`$1-$2`,[`[6-9]`]]]],SS:[`211`,`00`,`[19]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[19]`],`0$1`]],`0`],ST:[`239`,`00`,`(?:22|9\\d)\\d{5}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[29]`]]]],SV:[`503`,`00`,`[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?`,[7,8,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[89]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[25-7]`]],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[89]`]]]],SX:[`1`,`011`,`7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`(5\\d{6})$|1`,`721$1`,0,`721`],SY:[`963`,`00`,`[1-359]\\d{8}|[1-5]\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-4]|5[1-3]`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[59]`],`0$1`,1]],`0`],SZ:[`268`,`00`,`0800\\d{4}|(?:[237]\\d|900)\\d{6}`,[8,9],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[0237]`]],[`(\\d{5})(\\d{4})`,`$1 $2`,[`9`]]]],TA:[`290`,`00`,`8\\d{3}`,[4],0,0,0,0,0,0,`8`],TC:[`1`,`011`,`(?:[58]\\d\\d|649|900)\\d{7}`,[10],0,`1`,0,`([2-479]\\d{6})$|1`,`649$1`,0,`649`],TD:[`235`,`00|16`,`(?:22|[3689]\\d|77)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[236-9]`]]],0,0,0,0,0,0,0,`00`],TG:[`228`,`00`,`[279]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[279]`]]]],TH:[`66`,`00[1-9]`,`(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}`,[8,9,10,13],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[13-9]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],TJ:[`992`,`810`,`(?:[0-57-9]\\d|66)\\d{7}`,[9],[[`(\\d{6})(\\d)(\\d{2})`,`$1 $2 $3`,[`331`,`3317`]],[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`44[02-479]|[34]7`]],[`(\\d{4})(\\d)(\\d{4})`,`$1 $2 $3`,[`3(?:[1245]|3[12])`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`\\d`]]],0,0,0,0,0,0,0,`8~10`],TK:[`690`,`00`,`[2-47]\\d{3,6}`,[4,5,6,7]],TL:[`670`,`00`,`7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-489]|70`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`7`]]]],TM:[`993`,`810`,`(?:[1-6]\\d|71)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`12`],`(8 $1)`],[`(\\d{3})(\\d)(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[1-5]`],`(8 $1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[67]`],`8 $1`]],`8`,0,0,0,0,0,0,`8~10`],TN:[`216`,`00`,`[2-57-9]\\d{7}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-57-9]`]]]],TO:[`676`,`00`,`(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}`,[5,7],[[`(\\d{2})(\\d{3})`,`$1-$2`,[`[2-4]|50|6[09]|7[0-24-69]|8[05]`]],[`(\\d{4})(\\d{3})`,`$1 $2`,[`0`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[5-9]`]]]],TR:[`90`,`00`,`4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}`,[7,10,12,13],[[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`512|8[01589]|90`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`5[0-79]`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[24][1-8]|3[1-9]`],`(0$1)`,1],[`(\\d{3})(\\d{3})(\\d{6,7})`,`$1 $2 $3`,[`80`],`0$1`,1]],`0`],TT:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-46-8]\\d{6})$|1`,`868$1`,0,`868`],TV:[`688`,`00`,`(?:2|7\\d\\d|90)\\d{4}`,[5,6,7],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`2`]],[`(\\d{2})(\\d{4})`,`$1 $2`,[`90`]],[`(\\d{2})(\\d{5})`,`$1 $2`,[`7`]]]],TW:[`886`,`0(?:0[25-79]|19)`,`[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}`,[7,8,9,10,11],[[`(\\d{2})(\\d)(\\d{4})`,`$1 $2 $3`,[`202`],`0$1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`826`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`83`],`0$1`],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`82`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[25]0|37|49|8[09]`],`0$1`],[`(\\d)(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`[23568]|4(?:0[02-48]|[1-478])|7[1-9]`,`[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[49]`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`7`],`0$1`]],`0`,0,0,0,0,0,0,0,`#`],TZ:[`255`,`00[056]`,`(?:[25-8]\\d|41|90)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[24]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`5`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[67]`],`0$1`]],`0`],UA:[`380`,`00`,`[89]\\d{9}|[3-9]\\d{8}`,[9,10],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]`,`6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]`],`0$1`],[`(\\d{4})(\\d{5})`,`$1 $2`,[`3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])`,`3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[3-7]|89|9[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[89]`],`0$1`]],`0`,0,0,0,0,0,0,`0~0`],UG:[`256`,`00[057]`,`800\\d{6}|(?:[29]0|[347]\\d)\\d{7}`,[9],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`202`,`2024`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[27-9]|4(?:6[45]|[7-9])`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`[34]`],`0$1`]],`0`],US:[`1`,`011`,`[2-9]\\d{9}|3\\d{6}`,[10],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`310`],0,1],[`(\\d{3})(\\d{3})(\\d{4})`,`($1) $2-$3`,[`[2-9]`],0,1,`$1-$2-$3`]],`1`,0,0,0,0,0,[[`(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}`],[``],[`8(?:00|33|44|55|66|77|88)[2-9]\\d{6}`],[`900[2-9]\\d{6}`],[`52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],UY:[`598`,`0(?:0|1[3-9]\\d)`,`0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}`,[4,5,6,7,8,9,10,11,12,13],[[`(\\d{4,5})`,`$1`,[`21`]],[`(\\d{3})(\\d{3,4})`,`$1 $2`,[`0`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[49]0|8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[124]`]],[`(\\d{3})(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})`,`$1 $2 $3 $4`,[`0`]]],`0`,0,0,0,0,0,0,`00`,` int. `],UZ:[`998`,`00`,`(?:20|33|[5-9]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[235-9]`]]]],VA:[`39`,`00`,`0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}`,[6,7,8,9,10,11,12],0,0,0,0,0,0,`06698`],VC:[`1`,`011`,`(?:[58]\\d\\d|784|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`784$1`,0,`784`],VE:[`58`,`00`,`[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}`,[10],[[`(\\d{3})(\\d{7})`,`$1-$2`,[`[24-689]`],`0$1`]],`0`],VG:[`1`,`011`,`(?:284|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-578]\\d{6})$|1`,`284$1`,0,`284`],VI:[`1`,`011`,`[58]\\d{9}|(?:34|90)0\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`340$1`,0,`340`],VN:[`84`,`00`,`[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}`,[7,8,9,10],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`80`],`0$1`,1],[`(\\d{4})(\\d{4,6})`,`$1 $2`,[`1(?:2[02]|[89])`],0,1],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[26]|6`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[357-9]`],`0$1`,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2[48]`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`,1]],`0`],VU:[`678`,`00`,`[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}`,[5,7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[57-9]`]]]],WF:[`681`,`00`,`(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[47-9]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]]]],WS:[`685`,`0`,`(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}`,[5,6,7,10],[[`(\\d{5})`,`$1`,[`[2-5]|6[1-9]`]],[`(\\d{3})(\\d{3,7})`,`$1 $2`,[`[68]`]],[`(\\d{2})(\\d{5})`,`$1 $2`,[`7`]]]],XK:[`383`,`00`,`2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}`,[8,9,10,11,12],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-4]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2|39`],`0$1`],[`(\\d{2})(\\d{7,10})`,`$1 $2`,[`3`],`0$1`]],`0`],YE:[`967`,`00`,`(?:1|7\\d)\\d{7}|[1-7]\\d{6}`,[7,8,9],[[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-6]|7(?:[24-6]|8[0-7])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`7`],`0$1`]],`0`],YT:[`262`,`00`,`(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}`],[`(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}`],[`80\\d{7}`],0,0,0,0,0,[`9(?:(?:39|47)8[01]|769\\d)\\d{4}`]]],ZA:[`27`,`00`,`[1-79]\\d{8}|8\\d{4,9}`,[5,6,7,8,9,10],[[`(\\d{2})(\\d{3,4})`,`$1 $2`,[`8[1-4]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,3})`,`$1 $2 $3`,[`8[1-4]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`860`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],ZM:[`260`,`00`,`800\\d{6}|(?:21|[579]\\d|63)\\d{7}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[28]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`[579]`],`0$1`]],`0`],ZW:[`263`,`00`,`2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}`,[5,6,7,8,9,10],[[`(\\d{3})(\\d{3,5})`,`$1 $2`,[`2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]`],`0$1`],[`(\\d)(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`[49]`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`80`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2`,`2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)`,`2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)`],`0$1`],[`(\\d{4})(\\d{6})`,`$1 $2`,[`8`],`0$1`],[`(\\d{2})(\\d{3,5})`,`$1 $2`,[`1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`29[013-9]|39|54`],`0$1`],[`(\\d{4})(\\d{3,5})`,`$1 $2`,[`(?:25|54)8`,`258|5483`],`0$1`]],`0`]},nonGeographic:{800:[`800`,0,`(?:00|[1-9]\\d)\\d{6}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`\\d`]]],0,0,0,0,0,0,[0,0,[`(?:00|[1-9]\\d)\\d{6}`]]],808:[`808`,0,`[1-9]\\d{7}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[1-9]`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,[`[1-9]\\d{7}`]]],870:[`870`,0,`7\\d{11}|[235-7]\\d{8}`,[9,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235-7]`]]],0,0,0,0,0,0,[0,[`(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}`],0,0,0,0,0,0,[`2\\d{8}`,[9]]]],878:[`878`,0,`10\\d{10}`,[12],[[`(\\d{2})(\\d{5})(\\d{5})`,`$1 $2 $3`,[`1`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[`10\\d{10}`]]],881:[`881`,0,`6\\d{9}|[0-36-9]\\d{8}`,[9,10],[[`(\\d)(\\d{3})(\\d{5})`,`$1 $2 $3`,[`[0-37-9]`]],[`(\\d)(\\d{3})(\\d{5,6})`,`$1 $2 $3`,[`6`]]],0,0,0,0,0,0,[0,[`6\\d{9}|[0-36-9]\\d{8}`]]],882:[`882`,0,`[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?`,[7,8,9,10,11,12],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`16|342`]],[`(\\d{2})(\\d{6})`,`$1 $2`,[`49`]],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`1[36]|9`]],[`(\\d{2})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`3[23]`]],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`16`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`10|23|3(?:[15]|4[57])|4|5[12]`]],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`34`]],[`(\\d{2})(\\d{4,5})(\\d{5})`,`$1 $2 $3`,[`[1-35]`]]],0,0,0,0,0,0,[0,[`342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}`,[7,8,9,10,12]],0,0,0,[`348[57]\\d{7}`,[11]],0,0,[`1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}`]]],883:[`883`,0,`(?:[1-4]\\d|51)\\d{6,10}`,[8,9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{2,8})`,`$1 $2 $3`,[`[14]|2[24-689]|3[02-689]|51[24-9]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`510`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`21`]],[`(\\d{4})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`51[13]`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[235]`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[`(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}`]]],888:[`888`,0,`\\d{11}`,[11],[[`(\\d{3})(\\d{3})(\\d{5})`,`$1 $2 $3`]],0,0,0,0,0,0,[0,0,0,0,0,0,[`\\d{11}`]]],979:[`979`,0,`[1359]\\d{8}`,[9],[[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[1359]`]]],0,0,0,0,0,0,[0,0,0,[`[1359]\\d{8}`]]]}};function $d(e,t){var n=Array.prototype.slice.call(t);return n.push(Qd),e.apply(this,n)}var ef={}.constructor;function tf(e){return e!=null&&e.constructor===ef}function nf(e){"@babel/helpers - typeof";return nf=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},nf(e)}function rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function af(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?rf(Object(n),true).forEach(function(t){of(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function of(e,t,n){return (t=sf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function sf(e){var t=cf(e,`string`);return nf(t)==`symbol`?t:t+``}function cf(e,t){if(nf(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nf(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function lf(e,t){return mf(e)||pf(e,t)||df(e,t)||uf()}function uf(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
76
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function df(e,t){if(e){if(typeof e==`string`)return ff(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ff(e,t):void 0}}function ff(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function pf(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=true,l=false;try{if(a=(n=n.call(e)).next,t===0);else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=true);}catch(e){l=true,i=e;}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function mf(e){if(Array.isArray(e))return e}function hf(e){var t=lf(Array.prototype.slice.call(e),4),n=t[0],r=t[1],i=t[2],a=t[3],o,s,c;if(typeof n==`string`)o=n;else throw TypeError(`A text for parsing must be a string.`);if(!r||typeof r==`string`)a?(s=i,c=a):(s=void 0,c=i),r&&(s=af({defaultCountry:r},s));else if(tf(r))i?(s=r,c=i):c=r;else throw Error(`Invalid second argument: ${r}`);return {text:o,options:s,metadata:c}}var Y$1=`0-90-9٠-٩۰-۹`,gf=`-‐-―−ー-//.. \xA0 ()()[]\\[\\]~⁓∼~`,_f=`++`;function vf(e){"@babel/helpers - typeof";return vf=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},vf(e)}function bf(e,t,n){return Object.defineProperty(e,"prototype",{writable:false}),e}function Cf(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function wf(e,t,n){return t=Nf(t),Tf(e,Af()?Reflect.construct(t,n||[],Nf(e).constructor):t.apply(e,n))}function Tf(e,t){if(t&&(vf(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Ef(e)}function Ef(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Df(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}}),Object.defineProperty(e,"prototype",{writable:false}),t&&Mf(e,t);}function Of(e){var t=typeof Map==`function`?new Map:void 0;return Of=function(e){if(e===null||!jf(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n);}function n(){return kf(e,arguments,Nf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:false,writable:true,configurable:true}}),Mf(n,e)},Of(e)}function kf(e,t,n){if(Af())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Mf(i,n.prototype),i}function Af(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch{}return (Af=function(){return !!e})()}function jf(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function Mf(e,t){return Mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mf(e,t)}function Nf(e){return Nf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nf(e)}var X$1=function(e){function t(e){var n;return Cf(this,t),n=wf(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return Df(t,e),bf(t)}(Of(Error));function Pf(e,t){e=e.split(`-`),t=t.split(`-`);for(var n=e[0].split(`.`),r=t[0].split(`.`),i=0;i<3;i++){var a=Number(n[i]),o=Number(r[i]);if(a>o)return 1;if(o>a)return -1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return -1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var Ff=/^\d+$/;function If(e){return Ff.test(e)}function Lf(e){"@babel/helpers - typeof";return Lf=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Lf(e)}function Rf(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function zf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false,r.configurable=true,`value`in r&&(r.writable=true),Object.defineProperty(e,Vf(r.key),r);}}function Bf(e,t,n){return t&&zf(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function Vf(e){var t=Hf(e,`string`);return Lf(t)==`symbol`?t:t+``}function Hf(e,t){if(Lf(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lf(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (String)(e)}var Uf=`1.2.0`,Wf=`1.7.35`,Gf=` ext. `,Z$1=function(){function e(t){Rf(this,e),Zf$1(t),this.metadata=t,tp$1.call(this,t);}return Bf(e,[{key:`getCountries`,value:function(){return Object.keys(this.metadata.countries).filter(function(e){return e!==`001`})}},{key:`getCountryMetadata`,value:function(e){return this.metadata.countries[e]}},{key:`nonGeographic`,value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:`hasCountry`,value:function(e){return this.getCountryMetadata(e)!==void 0}},{key:`hasCallingCode`,value:function(e){if(this.getCountryCodesForCallingCode(e))return true;if(this.nonGeographic()){if(this.nonGeographic()[e])return true}else {var t=this.countryCallingCodes()[e];if(t&&t.length===1&&t[0]===`001`)return true}}},{key:`isNonGeographicCallingCode`,value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:`country`,value:function(e){return this.selectNumberingPlan(e)}},{key:`selectNumberingPlan`,value:function(e,t){var n,r;if(e&&(If(e)?r=e:n=e),t&&(r=t),n&&n!==`001`){var i=this.getCountryMetadata(n);if(!i)throw Error(`Unknown country: ${n}`);this.numberingPlan=new Kf(i,this);}else if(r){if(!this.hasCallingCode(r))throw Error(`Unknown calling code: ${r}`);this.numberingPlan=new Kf(this.getNumberingPlanMetadata(r),this);}else this.numberingPlan=void 0;return this}},{key:`getCountryCodesForCallingCode`,value:function(e){var t=this.countryCallingCodes()[e];if(t)return t.length===1&&t[0].length===3?void 0:t}},{key:`getCountryCodeForCallingCode`,value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:`getNumberingPlanMetadata`,value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else {var r=this.countryCallingCodes()[e];if(r&&r.length===1&&r[0]===`001`)return this.metadata.countries[`001`]}}},{key:`countryCallingCode`,value:function(){return this.numberingPlan.callingCode()}},{key:`IDDPrefix`,value:function(){return this.numberingPlan.IDDPrefix()}},{key:`defaultIDDPrefix`,value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:`nationalNumberPattern`,value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:`possibleLengths`,value:function(){return this.numberingPlan.possibleLengths()}},{key:`formats`,value:function(){return this.numberingPlan.formats()}},{key:`nationalPrefixForParsing`,value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:`nationalPrefixTransformRule`,value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:`leadingDigits`,value:function(){return this.numberingPlan.leadingDigits()}},{key:`hasTypes`,value:function(){return this.numberingPlan.hasTypes()}},{key:`type`,value:function(e){return this.numberingPlan.type(e)}},{key:`ext`,value:function(){return this.numberingPlan.ext()}},{key:`countryCallingCodes`,value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:`chooseCountryByCountryCallingCode`,value:function(e){return this.selectNumberingPlan(e)}},{key:`hasSelectedNumberingPlan`,value:function(){return this.numberingPlan!==void 0}}])}(),Kf=function(){function e(t,n){Rf(this,e),this.globalMetadataObject=n,this.metadata=t,tp$1.call(this,n.metadata);}return Bf(e,[{key:`callingCode`,value:function(){return this.metadata[0]}},{key:`_getDefaultCountryMetadataForThisCallingCode`,value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:`getDefaultCountryMetadataForRegion`,value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:`IDDPrefix`,value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:`defaultIDDPrefix`,value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:`nationalNumberPattern`,value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:`possibleLengths`,value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:`_getFormats`,value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:`formats`,value:function(){var e=this;return (this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[]).map(function(t){return new qf(t,e)})}},{key:`nationalPrefix`,value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:`_getNationalPrefixFormattingRule`,value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:`nationalPrefixFormattingRule`,value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:`_nationalPrefixForParsing`,value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:`nationalPrefixForParsing`,value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:`nationalPrefixTransformRule`,value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:`_getNationalPrefixIsOptionalWhenFormatting`,value:function(){return !!this.metadata[this.v1?7:this.v2?8:9]}},{key:`nationalPrefixIsOptionalWhenFormattingInNationalFormat`,value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:`leadingDigits`,value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:`types`,value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:`hasTypes`,value:function(){return this.types()&&this.types().length===0?false:!!this.types()}},{key:`type`,value:function(e){if(this.hasTypes()&&Xf$1(this.types(),e))return new Yf$1(Xf$1(this.types(),e),this)}},{key:`ext`,value:function(){return this.v1||this.v2?Gf:this.metadata[13]||Gf}}])}(),qf=function(){function e(t,n){Rf(this,e),this._format=t,this.metadata=n;}return Bf(e,[{key:`pattern`,value:function(){return this._format[0]}},{key:`format`,value:function(){return this._format[1]}},{key:`leadingDigitsPatterns`,value:function(){return this._format[2]||[]}},{key:`nationalPrefixFormattingRule`,value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:`nationalPrefixIsOptionalWhenFormattingInNationalFormat`,value:function(){return !!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:`nationalPrefixIsMandatoryWhenFormattingInNationalFormat`,value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:`usesNationalPrefix`,value:function(){return !!(this.nationalPrefixFormattingRule()&&!Jf.test(this.nationalPrefixFormattingRule()))}},{key:`internationalFormat`,value:function(){return this._format[5]||this.format()}}])}(),Jf=/^\(?\$1\)?$/,Yf$1=function(){function e(t,n){Rf(this,e),this.type=t,this.metadata=n;}return Bf(e,[{key:`pattern`,value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:`possibleLengths`,value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function Xf$1(e,t){switch(t){case `FIXED_LINE`:return e[0];case `MOBILE`:return e[1];case `TOLL_FREE`:return e[2];case `PREMIUM_RATE`:return e[3];case `PERSONAL_NUMBER`:return e[4];case `VOICEMAIL`:return e[5];case `UAN`:return e[6];case `PAGER`:return e[7];case `VOIP`:return e[8];case `SHARED_COST`:return e[9]}}function Zf$1(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!tf(e)||!tf(e.countries))throw Error(`[libphonenumber-js] \`metadata\` argument was passed but it's not a valid metadata. Must be an object having \`.countries\` child object property. Got ${tf(e)?`an object of shape: { `+Object.keys(e).join(`, `)+` }`:`a `+Qf$1(e)+`: `+e}.`)}var Qf$1=function(e){return Lf(e)};function $f$1(e,t){var n=new Z$1(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw Error(`Unknown country: ${e}`)}function ep$1(e,t){return t.countries.hasOwnProperty(e)}function tp$1(e){var t=e.version;typeof t==`number`?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?Pf(t,Uf)===-1?this.v2=true:Pf(t,Wf)===-1?this.v3=true:this.v4=true:this.v1=true;}var np$1=`;ext=`,rp$1=function(e){return `([${Y$1}]{1,${e}})`};function ip$1(e){var t=`20`,n=`15`,r=`9`,i=`6`,a=`[ \xA0\\t,]*`,o=`[:\\..]?[ \xA0\\t,-]*`,s=`#?`,c=`(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)`,l=`(?:[xx##~~]|int|int)`,u=`[- ]+`,d=`[ \xA0\\t]*`,f=`(?:,{2}|;)`,p=np$1+rp$1(t),m=a+c+o+rp$1(t)+s,h=a+l+o+rp$1(r)+s,ee=u+rp$1(i)+`#`,te=d+f+o+rp$1(n)+s,ne=d+`(?:,)+`+o+rp$1(r)+s;return p+`|`+m+`|`+h+`|`+ee+`|`+te+`|`+ne}var ap$1=`[`+Y$1+`]{2}`,op$1=`[`+_f+`]{0,1}(?:[`+gf+`]*[`+Y$1+`]){3,}[`+gf+Y$1+`]*`,sp$1=RegExp(`^[`+_f+`]{0,1}(?:[`+gf+`]*[`+Y$1+`]){1,2}$`,`i`),cp$1=op$1+`(?:`+ip$1()+`)?`,lp$1=RegExp(`^`+ap$1+`$|^`+cp$1+`$`,`i`);function up$1(e){return e.length>=2&&lp$1.test(e)}function dp$1(e){return sp$1.test(e)}var fp$1=RegExp(`(?:`+ip$1()+`)$`,`i`);function pp$1(e){var t=e.search(fp$1);if(t<0)return {};for(var n=e.slice(0,t),r=e.match(fp$1),i=1;i<r.length;){if(r[i])return {number:n,ext:r[i]};i++;}}var mp$1={0:`0`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,"0":`0`,"1":`1`,"2":`2`,"3":`3`,"4":`4`,"5":`5`,"6":`6`,"7":`7`,"8":`8`,"9":`9`,"٠":`0`,"١":`1`,"٢":`2`,"٣":`3`,"٤":`4`,"٥":`5`,"٦":`6`,"٧":`7`,"٨":`8`,"٩":`9`,"۰":`0`,"۱":`1`,"۲":`2`,"۳":`3`,"۴":`4`,"۵":`5`,"۶":`6`,"۷":`7`,"۸":`8`,"۹":`9`};function hp$1(e){return mp$1[e]}function gp$1(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return (n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_p$1(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:true}:{done:false,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
77
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _p$1(e,t){if(e){if(typeof e==`string`)return vp$1(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vp$1(e,t):void 0}}function vp$1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yp$1(e){for(var t=``,n=gp$1(e.split(``)),r;!(r=n()).done;){var i=r.value;t+=bp$1(i,t)||``;}return t}function bp$1(e,t,n){if(e===`+`){if(t){return}return `+`}return hp$1(e)}function Tp(e,t,n){return Ep(e,void 0,t,n)}function Ep(e,t,n,r){n&&(r=new Z$1(r.metadata),r.selectNumberingPlan(n));var i=r.type(t),a=i&&i.possibleLengths()||r.possibleLengths();if(!a)return `IS_POSSIBLE`;var s=e.length,c=a[0];return c===s?`IS_POSSIBLE`:c>s?`TOO_SHORT`:a[a.length-1]<s?`TOO_LONG`:a.indexOf(s,1)>=0?`IS_POSSIBLE`:`INVALID_LENGTH`}function Dp$1(e,t,n){t===void 0&&(t={});var r=new Z$1(n);if(t.v2){if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);r.selectNumberingPlan(e.country||e.countryCallingCode);}else {if(!e.phone)return false;if(e.country){if(!r.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);r.selectNumberingPlan(e.country);}else {if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);r.selectNumberingPlan(e.countryCallingCode);}}if(r.possibleLengths())return Op$1(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return true;throw Error(`Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.`)}function Op$1(e,t){switch(Tp(e,void 0,t)){case `IS_POSSIBLE`:return true;default:return false}}function Q$2(e,t){return e||=``,RegExp(`^(?:`+t+`)$`).test(e)}function kp$1(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return (n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Ap$1(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:true}:{done:false,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
78
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ap$1(e,t){if(e){if(typeof e==`string`)return jp$1(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jp$1(e,t):void 0}}function jp$1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Mp$1=[`MOBILE`,`PREMIUM_RATE`,`TOLL_FREE`,`SHARED_COST`,`VOIP`,`PERSONAL_NUMBER`,`PAGER`,`UAN`,`VOICEMAIL`];function Np$1(e,t,n){if(t||={},!(!e.country&&!e.countryCallingCode)){var r=new Z$1(n);r.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(Q$2(i,r.nationalNumberPattern())){if(Pp$1(i,`FIXED_LINE`,r))return r.type(`MOBILE`)&&r.type(`MOBILE`).pattern()===``||!r.type(`MOBILE`)||Pp$1(i,`MOBILE`,r)?`FIXED_LINE_OR_MOBILE`:`FIXED_LINE`;for(var a=kp$1(Mp$1),o;!(o=a()).done;){var s=o.value;if(Pp$1(i,s,r))return s}}}}function Pp$1(e,t,n){var r=n.type(t);return !r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0?false:Q$2(e,r.pattern())}function Fp$1(e,t,n){t||={};var r=new Z$1(n);return r.selectNumberingPlan(e.country||e.countryCallingCode),r.hasTypes()?Np$1(e,t,r.metadata)!==void 0:Q$2(t.v2?e.nationalNumber:e.phone,r.nationalNumberPattern())}var Ip$1=/^[A-Z]{2}$/;function Lp$1(e){return Ip$1.test(e)}var Rp$1=false;function zp$1(e,t){var n,r,i=new Z$1(t);return Lp$1(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):(r=e,Rp$1),{country:n,callingCode:r}}function Bp$1(e,t,n){var r=new Z$1(n).getCountryCodesForCallingCode(e);return r?r.filter(function(e){return Vp$1(t,e,n)}):[]}function Vp$1(e,t,n){var r=new Z$1(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var Hp$1=RegExp(`([`+Y$1+`])`);function Up$1(e,t,n,r){if(t){var i=new Z$1(r);i.selectNumberingPlan(t||n);var a=new RegExp(i.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var o=e.match(Hp$1);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]===`0`))return e}}}function Wp$1(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=RegExp(`^(?:`+t.numberingPlan.nationalPrefixForParsing()+`)`),r=n.exec(e);if(r){var i,a,o=r.length-1,s=o>0&&r[o];if(t.nationalPrefixTransformRule()&&s)i=e.replace(n,t.nationalPrefixTransformRule()),o>1&&(a=r[1]);else {var c=r[0];i=e.slice(c.length),s&&(a=r[1]);}var l;if(s){var u=e.indexOf(r[1]);e.slice(0,u)===t.numberingPlan.nationalPrefix()&&(l=t.numberingPlan.nationalPrefix());}else l=r[0];return {nationalNumber:i,nationalPrefix:l,carrierCode:a}}}return {nationalNumber:e}}function Gp$1(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return (n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Kp$1(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:true}:{done:false,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
79
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kp$1(e,t){if(e){if(typeof e==`string`)return qp$1(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qp$1(e,t):void 0}}function qp$1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Jp$1(e,t,n){for(var r=new Z$1(n),i=Gp$1(t),a;!(a=i()).done;){var o=a.value;if(r.selectNumberingPlan(o),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return o}else if(Np$1({phone:e,country:o},void 0,r.metadata))return o}}function Xp$1(e,t){var n=t.nationalNumber,r=t.metadata;var i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:Jp$1(n,i,r.metadata)}function Zp$1(e,t,n){var r=Wp$1(e,n),i=r.carrierCode,a=r.nationalNumber;return a!==e&&(!Qp$1(e,a,n)||n.numberingPlan.possibleLengths()&&(t||=Xp$1(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n}),!$p$1(a,t,n)))?{nationalNumber:e}:{nationalNumber:a,carrierCode:i}}function Qp$1(e,t,n){return !(Q$2(e,n.nationalNumberPattern())&&!Q$2(t,n.nationalNumberPattern()))}function $p$1(e,t,n){switch(Tp(e,t,n)){case `TOO_SHORT`:case `INVALID_LENGTH`:return false;default:return true}}function em$1(e,t,n,r,i){if(!(n||r))return {number:e};var a=n?$f$1(n,i):r;if(e.indexOf(a)===0){var o=new Z$1(i);o.selectNumberingPlan(n||r);var s=e.slice(a.length),c=Zp$1(s,void 0,o).nationalNumber,l=Zp$1(e,void 0,o).nationalNumber;if(!Q$2(l,o.nationalNumberPattern())&&Q$2(c,o.nationalNumberPattern())||Tp(l,void 0,o)===`TOO_LONG`)return {countryCallingCode:a,number:s}}return {number:e}}function tm$1(e,t,n,r,i){if(!e)return {};var a;if(e[0]!==`+`){var o=Up$1(e,n,r,i);if(o&&o!==e)a=true,e=`+`+o;else {if(n||r){var s=em$1(e,t,n,r,i),c=s.countryCallingCode,l=s.number;if(c)return {countryCallingCodeSource:`FROM_NUMBER_WITHOUT_PLUS_SIGN`,countryCallingCode:c,number:l}}return {number:e}}}if(e[1]===`0`)return {};for(var u=new Z$1(i),d=2;d-1<=3&&d<=e.length;){var f=e.slice(1,d);if(u.hasCallingCode(f))return u.selectNumberingPlan(f),{countryCallingCodeSource:a?`FROM_NUMBER_WITH_IDD`:`FROM_NUMBER_WITH_PLUS_SIGN`,countryCallingCode:f,number:e.slice(d)};d++;}return {}}function nm$1(e){return e.replace(RegExp(`[${gf}]+`,`g`),` `).trim()}var rm$1=/(\$\d)/;function im$1(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;var a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(rm$1,t.nationalPrefixFormattingRule()):t.format());return r?nm$1(a):a}var am$1=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function om$1(e,t,n){var r=new Z$1(n);if(r.selectNumberingPlan(e||t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(am$1.test(r.IDDPrefix()))return r.IDDPrefix()}function sm$1(e){var t=e.number,n=e.ext;if(!t)return ``;if(t[0]!==`+`)throw Error(`"formatRFC3966()" expects "number" to be in E.164 format.`);return `tel:${t}${n?`;ext=`+n:``}`}var cm$1={formatExtension:function(e,t,n){return `${e}${n.ext()}${t}`}};function lm$1(e,t,n,r){n=n?mm$1({},cm$1,n):cm$1;var i=new Z$1(r);if(e.country&&e.country!==`001`){if(!i.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);i.selectNumberingPlan(e.country);}else if(e.countryCallingCode)i.selectNumberingPlan(e.countryCallingCode);else return e.phone||``;var a=i.countryCallingCode(),o=n.v2?e.nationalNumber:e.phone,s;switch(t){case `NATIONAL`:return o?(s=um$1(o,e.carrierCode,`NATIONAL`,i,n),fm$1(s,e.ext,i,n.formatExtension)):``;case `INTERNATIONAL`:return o?(s=um$1(o,null,`INTERNATIONAL`,i,n),s=`+${a} ${s}`,fm$1(s,e.ext,i,n.formatExtension)):`+${a}`;case `E.164`:return `+${a}${o}`;case `RFC3966`:return sm$1({number:`+${a}${o}`,ext:e.ext});case `IDD`:if(!n.fromCountry)return;var c=pm$1(o,e.carrierCode,a,n.fromCountry,i);return c?fm$1(c,e.ext,i,n.formatExtension):void 0;default:throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`)}}function um$1(e,t,n,r,i){var a=dm$1(r.formats(),e);return a?im$1(e,a,{useInternationalFormat:n===`INTERNATIONAL`,withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===false)}):e}function dm$1(e,t){return hm$1(e,function(e){if(e.leadingDigitsPatterns().length>0){var n=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(t.search(n)!==0)return false}return Q$2(t,e.pattern())})}function fm$1(e,t,n,r){return t?r(e,t,n):e}function pm$1(e,t,n,r,i){if($f$1(r,i.metadata)===n){var a=um$1(e,t,`NATIONAL`,i);return n===`1`?n+` `+a:a}var o=om$1(r,void 0,i.metadata);if(o)return `${o} ${n} ${um$1(e,null,`INTERNATIONAL`,i)}`}function mm$1(){for(var e=1,t=[...arguments];e<t.length;){if(t[e])for(var n in t[e])t[0][n]=t[e][n];e++;}return t[0]}function hm$1(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++;}}function gm$1(e){"@babel/helpers - typeof";return gm$1=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},gm$1(e)}function _m$1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function vm$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_m$1(Object(n),true).forEach(function(t){ym$1(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_m$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function ym$1(e,t,n){return (t=Cm$1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function bm$1(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function xm$1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false,r.configurable=true,`value`in r&&(r.writable=true),Object.defineProperty(e,Cm$1(r.key),r);}}function Sm$1(e,t,n){return t&&xm$1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:false}),e}function Cm$1(e){var t=wm$1(e,`string`);return gm$1(t)==`symbol`?t:t+``}function wm$1(e,t){if(gm$1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gm$1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (String)(e)}var Tm$1=function(){function e(t,n,r){if(bm$1(this,e),!t)throw TypeError(`First argument is required`);if(typeof t!=`string`)throw TypeError(`First argument must be a string`);if(t[0]===`+`&&!n)throw TypeError("`metadata` argument not passed");if(tf(n)&&tf(n.countries)){r=n;var i=t;if(!Em$1.test(i))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=tm$1(i,void 0,void 0,void 0,r),o=a.countryCallingCode;if(n=a.number,t=o,!n)throw Error("Invalid `number` argument passed: too short")}if(!n)throw TypeError("`nationalNumber` argument is required");if(typeof n!=`string`)throw TypeError("`nationalNumber` argument must be a string");Zf$1(r);var s=zp$1(t,r),c=s.country,l=s.callingCode;this.country=c,this.countryCallingCode=l,this.nationalNumber=n,this.number=`+`+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r};}return Sm$1(e,[{key:`setExt`,value:function(e){this.ext=e;}},{key:`getPossibleCountries`,value:function(){return this.country?[this.country]:Bp$1(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:`isPossible`,value:function(){return Dp$1(this,{v2:true},this.getMetadata())}},{key:`isValid`,value:function(){return Fp$1(this,{v2:true},this.getMetadata())}},{key:`isNonGeographic`,value:function(){return new Z$1(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:`isEqual`,value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:`getType`,value:function(){return Np$1(this,{v2:true},this.getMetadata())}},{key:`format`,value:function(e,t){return lm$1(this,e,t?vm$1(vm$1({},t),{},{v2:true}):{v2:true},this.getMetadata())}},{key:`formatNational`,value:function(e){return this.format(`NATIONAL`,e)}},{key:`formatInternational`,value:function(e){return this.format(`INTERNATIONAL`,e)}},{key:`getURI`,value:function(e){return this.format(`RFC3966`,e)}}])}(),Em$1=/^\+\d+$/,Dm$1=`([`+Y$1+`]|[\\-\\.\\(\\)]?)`,Om$1=`^\\+`+Dm$1+`*[`+Y$1+`]`+Dm$1+`*$`,km$1=new RegExp(Om$1,`g`),Am$1=Y$1,jm$1=`[`+Am$1+`]+((\\-)*[`+Am$1+`])*`,Mm$1=`[a-zA-Z]+((\\-)*[`+Am$1+`])*`,Nm$1=`^(`+jm$1+`\\.)*`+Mm$1+`\\.?$`,Pm$1=new RegExp(Nm$1,`g`),Fm$1=`tel:`,Im$1=`;phone-context=`,Lm$1=`;isub=`;function Rm$1(e){var t=e.indexOf(Im$1);if(t<0)return null;var n=t+Im$1.length;if(n>=e.length)return ``;var r=e.indexOf(`;`,n);return r>=0?e.substring(n,r):e.substring(n)}function zm$1(e){return e===null?true:e.length===0?false:km$1.test(e)||Pm$1.test(e)}function Bm$1(e,t){var n=t.extractFormattedPhoneNumber,r=Rm$1(e);if(!zm$1(r))throw new X$1(`NOT_A_NUMBER`);var i;if(r===null)i=n(e)||``;else {i=``,r.charAt(0)===`+`&&(i+=r);var a=e.indexOf(Fm$1),o=a>=0?a+Fm$1.length:0,s=e.indexOf(Im$1);i+=e.substring(o,s);}var c=i.indexOf(Lm$1);if(c>0&&(i=i.substring(0,c)),i!==``)return i}var Vm$1=250,Hm$1=RegExp(`[`+_f+Y$1+`]`),Um$1=RegExp(`[^`+Y$1+`#]+$`),Wm$1=false;function Gm$1(e,t,n){t||={};var r=new Z$1(n);if(t.defaultCountry&&!r.hasCountry(t.defaultCountry))throw t.v2?new X$1(`INVALID_COUNTRY`):Error(`Unknown country: ${t.defaultCountry}`);var i=qm$1(e,t.v2,t.extract),a=i.number,o=i.ext,s=i.error;if(!a){if(t.v2)throw s===`TOO_SHORT`?new X$1(`TOO_SHORT`):new X$1(`NOT_A_NUMBER`);return {}}var c=Ym$1(a,t.defaultCountry,t.defaultCallingCode,r),l=c.country,u=c.nationalNumber,d=c.countryCallingCode,f=c.countryCallingCodeSource,p=c.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new X$1(`INVALID_COUNTRY`);return {}}if(!u||u.length<2){if(t.v2)throw new X$1(`TOO_SHORT`);return {}}if(u.length>17){if(t.v2)throw new X$1(`TOO_LONG`);return {}}if(t.v2){var m=new Tm$1(d,u,r.metadata);return l&&(m.country=l),p&&(m.carrierCode=p),o&&(m.ext=o),m.__countryCallingCodeSource=f,m}var h=(t.extended?r.hasSelectedNumberingPlan():l)?Q$2(u,r.nationalNumberPattern()):false;return t.extended?{country:l,countryCallingCode:d,carrierCode:p,valid:h,possible:h?true:!!(t.extended===true&&r.possibleLengths()&&Op$1(u,r)),phone:u,ext:o}:h?Jm$1(l,u,o):{}}function Km$1(e,t,n){if(e){if(e.length>Vm$1){if(n)throw new X$1(`TOO_LONG`);return}if(t===false)return e;var r=e.search(Hm$1);if(!(r<0))return e.slice(r).replace(Um$1,``)}}function qm$1(e,t,n){var r=Bm$1(e,{extractFormattedPhoneNumber:function(e){return Km$1(e,n,t)}});if(!r)return {};if(!up$1(r))return dp$1(r)?{error:`TOO_SHORT`}:{};var i=pp$1(r);return i.ext?i:{number:r}}function Jm$1(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function Ym$1(e,t,n,r){var i=tm$1(yp$1(e),void 0,t,n,r.metadata),a=i.countryCallingCodeSource,o=i.countryCallingCode,s=i.number,c;if(o)r.selectNumberingPlan(o);else if(s&&(t||n))t?(c=t,r.selectNumberingPlan(t),o=r.numberingPlan.callingCode()):(r.selectNumberingPlan(n),o=n,Wm$1);else return {};if(!s)return {countryCallingCodeSource:a,countryCallingCode:o};var l=Zp$1(yp$1(s),void 0,r),u=l.nationalNumber,d=l.carrierCode,f=Xp$1(o,{nationalNumber:u,metadata:r});return f&&(c=f,f===`001`||r.selectNumberingPlan(c)),{country:c,countryCallingCode:o,countryCallingCodeSource:a,nationalNumber:u,carrierCode:d}}function Xm$1(e){"@babel/helpers - typeof";return Xm$1=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Xm$1(e)}function Zm$1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function Qm$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Zm$1(Object(n),true).forEach(function(t){$m$1(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zm$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function $m$1(e,t,n){return (t=eh$1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function eh$1(e){var t=th$1(e,`string`);return Xm$1(t)==`symbol`?t:t+``}function th$1(e,t){if(Xm$1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xm$1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function nh$1(e,t,n){return Gm$1(e,Qm$1(Qm$1({},t),{},{v2:true}),n)}function rh$1(e){"@babel/helpers - typeof";return rh$1=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},rh$1(e)}function ih$1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function ah$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ih$1(Object(n),true).forEach(function(t){oh$1(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ih$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function oh$1(e,t,n){return (t=sh$1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function sh$1(e){var t=ch$1(e,`string`);return rh$1(t)==`symbol`?t:t+``}function ch$1(e,t){if(rh$1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rh$1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function lh$1(e,t,n){t&&t.defaultCountry&&!ep$1(t.defaultCountry,n)&&(t=ah$1(ah$1({},t),{},{defaultCountry:void 0}));try{return nh$1(e,t,n)}catch(e){if(!(e instanceof X$1))throw e}}function uh$1(e){"@babel/helpers - typeof";return uh$1=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},uh$1(e)}function dh$1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r);}return n}function fh$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dh$1(Object(n),true).forEach(function(t){ph$1(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dh$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function ph$1(e,t,n){return (t=mh$1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function mh$1(e){var t=hh$1(e,`string`);return uh$1(t)==`symbol`?t:t+``}function hh$1(e,t){if(uh$1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uh$1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function gh$1(){var e=hf(arguments),t=e.text,n=e.options,r=e.metadata;n=fh$1(fh$1({},n),{},{extract:false});var i=lh$1(t,n,r);return i&&i.isValid()||false}function _h$1(){return $d(gh$1,arguments)}const vh$1=od.omit({eventId:true,channel:true,analytics:true}).partial().extend({id:Xo$1().meta({examples:[C$1.Order.id],description:`Unique identifier of the order to update`}),signature:Vr.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for all order updates.`}),items:Us$1(ed).min(1).optional().meta({description:`Updated list of items for the order. Requires signature. Prices will be recalculated and payment intent updated.`}),customer:Gs$1({firstName:Xo$1().meta({examples:[C$1.Customer.firstName],description:`Updated first name of the customer`}).optional(),lastName:Xo$1().meta({examples:[C$1.Customer.lastName],description:`Updated last name of the customer`}).optional(),email:ns$1().meta({examples:[C$1.Customer.email],description:`Updated email address of the customer`}).optional(),phone:Xo$1().refine(e=>!e||_h$1(e),{message:`Phone must be in E.164 format (e.g., +61412345678)`}).meta({examples:[C$1.Customer.phone],description:`Updated phone number in E.164 format (e.g., +61412345678)`}).optional(),deliveryMethod:cd.optional()}).optional().meta({description:`Updated customer information for the order. All fields are optional for partial updates.`}),marketingConsent:Ql.optional().meta({description:`Marketing opt-in choices captured during checkout.`})}),yh$1=Gs$1({id:Xo$1().meta({examples:[C$1.Order.id],description:`Unique identifier of the order`}),noteId:Xo$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to update`}),note:Xo$1().min(1).max(1e3).meta({examples:[`Updated: Customer confirmed special seating arrangements`],description:`Updated note text content (1-1000 characters)`})});Gs$1({success:Ds$1().meta({description:`Whether the payout approval was successful`}),message:Xo$1().optional().meta({description:`Optional message about the approval result`}),payoutId:Xo$1().meta({description:`ID of the payout that was approved`})});const xh$1=Gs$1({payoutId:Xo$1().meta({examples:[C$1.Payout.id],description:`Unique identifier of the payout for which to retrieve the detailed breakdown of orders and financial calculations.`})}),Sh$1=nc$1([`DISPUTE_REVERSAL_CREDIT`,`REFUND_REVERSAL_CREDIT`]),Ch$1=nc$1([`AIRWALLEX_SETTLEMENT_CREDIT`]),wh$1=Gs$1({source:Ch$1,kind:Sh$1,adjustmentId:Xo$1(),adjustmentUniqueKey:Xo$1(),sourceKey:Xo$1(),sourcePayoutId:Xo$1(),settlementId:Xo$1(),transactionId:Xo$1().optional(),paymentIntentId:Xo$1().optional(),paymentAttemptId:Xo$1().optional(),createdActionPublishedAt:w$1().optional()}),Th$1=Gs$1({id:Xo$1().readonly().meta({examples:[C$1.PayoutDeduction.id],description:`Unique identifier for this deduction record.`}),createdAt:w$1().readonly().meta({examples:[C$1.PayoutDeduction.createdAt],description:`Timestamp in ISO 8601 format when this deduction was created.`}),updatedAt:w$1().readonly().meta({examples:[C$1.PayoutDeduction.updatedAt],description:`Timestamp in ISO 8601 format when this deduction was last updated.`}),amount:Ts$1().max(0).meta({examples:[C$1.PayoutDeduction.amount],description:`Deprecated legacy deduction amount in cents. Negative values reduce the payout.`}),currency:D$1.meta({examples:[C$1.PayoutDeduction.currency],description:`Currency code in ISO 4217 format for the deduction amount.`}),description:Xo$1().meta({examples:[C$1.PayoutDeduction.description],description:`Human-readable description explaining the reason for this legacy deduction.`}),gateway:Xo$1().meta({examples:[C$1.PayoutDeduction.gateway],description:`Payment gateway identifier where this legacy deduction was processed.`}),gatewayId:Xo$1().meta({examples:[C$1.PayoutDeduction.gatewayId],description:`Unique identifier assigned by the payment gateway for this legacy deduction transaction.`}),beneficiary:Xo$1().meta({examples:[C$1.PayoutDeduction.beneficiary],description:`Human-readable name of the beneficiary account from which this legacy deduction was taken.`}),beneficiaryId:Xo$1().meta({examples:[C$1.PayoutDeduction.beneficiaryId],description:`Unique identifier of the beneficiary account from which this legacy deduction was taken.`}),transferId:Xo$1().optional().meta({description:`Optional reference to a transfer record when this legacy deduction resulted in money being moved to a future payout.`}),transferPayoutId:Xo$1().optional().meta({description:`Optional reference to a future payout where the legacy deducted amount was applied.`})}),Eh$1=Gs$1({id:Xo$1().meta({examples:[C$1.Event.id],description:`Unique identifier for the event associated with this payout.`}),name:Xo$1().meta({examples:[C$1.Event.name],description:`Human-readable name of the event.`}),slug:Xo$1().meta({examples:[C$1.Event.slug],description:`URL-friendly slug identifier for the event.`}),location:Xo$1().optional().meta({examples:[C$1.Event.location.name],description:`Optional human-readable location name where the event takes place.`})}),Dh$1=Gs$1({net:Ts$1().meta({examples:[C$1.Payout.price.net],description:`Total amount to pay to promoter.
|
|
80
|
+
Ticket and shipping revenue after organiser-funded refunds and disputes, excluding booking and SMS fees.`}),total:Ts$1().meta({examples:[C$1.Payout.price.total],description:`Customer charges including booking, shipping and SMS fees.
|
|
81
|
+
Calculated as: gross + discount + sms`}),gross:Ts$1().min(0).meta({examples:[C$1.Payout.price.gross],description:`Total amount before refunds, disputes and discounts.
|
|
82
|
+
Calculated as: base + booking + shipping`}),base:Ts$1().min(0).meta({examples:[C$1.Payout.price.base],description:`Total value of tickets.`}),booking:Ts$1().min(0).meta({examples:[C$1.Payout.price.booking],description:`Total value of booking fees (non-refundable).`}),shipping:Ts$1().min(0).meta({examples:[C$1.Payout.price.shipping],description:`Total value of shipping.`}),sms:Ts$1().min(0).default(0).meta({examples:[C$1.Payout.price.sms],description:`Total SMS delivery fees collected in cents (owed to Session Services, not the event organiser).`}),refunded:Ts$1().max(0).meta({examples:[C$1.Payout.price.refunded],description:`Total value of refunds (negative value).`}),discount:Ts$1().max(0).meta({examples:[C$1.Payout.price.discount],description:`Total value of discounts (negative value).`}),gateway:Ts$1().meta({examples:[C$1.Payout.price.gateway],description:`Total value of absorbed payment gateway fees. Negative values are charges; positive values are reversals.`}),dispute:Ts$1().meta({examples:[C$1.Payout.price.dispute],description:`Total value of non-absorbed payment gateway fees. Negative values are charges; positive values are reversals.`}),deductions:Ts$1().max(0).optional().meta({examples:[C$1.Payout.price.deductions],description:`Deprecated total value of legacy payout-level deductions. New recovery amounts are exposed through payout adjustments.`}),currency:D$1.meta({examples:[C$1.Payout.price.currency],description:`Currency code in ISO 4217 format.`})}),Oh$1=nc$1([`CREATED`,`APPROVED`,`REJECTED`,`PROCESSING`,`PAID`,`FAILED`,`CANCELLED`,`NOTE`]),kh$1=Du(Oh$1,{createdAtExamples:[C$1.Payout.createdAt],descriptionExamples:[`Payout was created after event settlement`],externalIdDescription:`External idempotency key for deduplication (e.g., Airwallex transfer events)`,externalIdExamples:[`airwallex:transfer_abc123:completed`],idDescription:`Unique identifier for this timeline entry`,idExamples:[`tl_01jgxyz123abc`],kindDescription:`Type of timeline event (CREATED, APPROVED, PROCESSING, PAID, NOTE, etc.)`,kindExamples:[`CREATED`,`APPROVED`,`PAID`]}),Ah$1=Gs$1({id:Xo$1().meta({examples:[C$1.PayoutTransfer.id],description:`Unique identifier for this transfer record.`}),createdAt:w$1().meta({examples:[C$1.PayoutTransfer.createdAt],description:`Timestamp in ISO 8601 format when this transfer was created.`}),kind:nc$1([`TICKETS`,`TENANT`,`VENUE`,`TEAM`,`SESSIONS`,`UNKNOWN`]).meta({examples:[`TICKETS`],description:`Type of transfer. TICKETS: revenue from ticket sales, TENANT: platform fees, VENUE: venue split, TEAM: team split, SESSIONS: platform commission, UNKNOWN: unclassified transfer.`}),amount:Ts$1().min(0).meta({examples:[C$1.PayoutTransfer.amount],description:`Transfer amount in cents. Positive values represent money being transferred to the beneficiary.`}),currency:D$1.meta({examples:[C$1.PayoutTransfer.currency],description:`Currency code in ISO 4217 format for the transfer amount.`}),fee:Ts$1().min(0).meta({examples:[C$1.PayoutTransfer.fee],description:`Gateway processing fee for this transfer in cents. This fee is deducted from the transfer amount.`}),feeCurrency:D$1.meta({examples:[C$1.PayoutTransfer.feeCurrency],description:`Currency code in ISO 4217 format for the gateway fee.`}),reference:Xo$1().meta({examples:[C$1.PayoutTransfer.reference],description:`External reference identifier for tracking this transfer with the payment gateway.`}),gateway:nc$1([`AIRWALLEX`,`STRIPE`]).meta({examples:[`AIRWALLEX`],description:`Payment gateway used to process this transfer.`}),gatewayId:Xo$1().meta({examples:[C$1.PayoutTransfer.gatewayId],description:`Unique identifier assigned by the payment gateway for this transfer.`}),beneficiary:Xo$1().meta({examples:[C$1.PayoutTransfer.beneficiary],description:`Human-readable name of the beneficiary receiving this transfer.`}),beneficiaryId:Xo$1().meta({examples:[C$1.PayoutTransfer.beneficiaryId],description:`Unique identifier of the beneficiary account receiving this transfer.`}),status:Xo$1().optional().meta({examples:[`SCHEDULED`],description:`Transfer status from the payment gateway (e.g. SCHEDULED, IN_PROGRESS, COMPLETED).`}),settlementAmount:Ts$1().min(0).optional().meta({examples:[3550],description:`Amount received by the beneficiary in their local currency, in cents. Present only for cross-currency transfers where the settlement currency differs from the source currency.`}),settlementCurrency:D$1.optional().meta({examples:[`USD`],description:`Currency code in ISO 4217 format for the settlement amount. Present only for cross-currency transfers.`}),deductionId:Xo$1().optional().meta({description:`Deprecated optional reference to a legacy deduction record.`}),deductionPayoutId:Xo$1().optional().meta({description:`Deprecated optional reference to the payout that originated a legacy deduction transfer.`})}),jh$1=nc$1([`UPCOMING`,`FAILED`,`PROCESSING`,`PAID`,`CANCELLED`]),Nh$1=nc$1([`AIRWALLEX`,`STRIPE`,`MANUAL`]),Fh$1=nc$1([`DAILY`,`WEEKLY`,`AFTER_EVENT`,`ON_DEMAND`]),$$2=Gs$1({id:Xo$1().readonly().meta({examples:[C$1.Payout.id],description:`A unique identifier for this payout.`}),createdAt:w$1().readonly().meta({examples:[C$1.Payout.createdAt],description:`Timestamp in ISO 8601 format when this payout was created.`}),updatedAt:w$1().readonly().meta({examples:[C$1.Payout.updatedAt],description:`Timestamp in ISO 8601 format when this payout was last updated.`}),statementPending:Ds$1().optional().meta({description:`Whether the completed payout is awaiting its accounting statement snapshot.`}),statementVersion:Ts$1().positive().optional().meta({description:`Version of the immutable issued statement, absent on legacy payouts.`}),paidAt:w$1().optional().meta({examples:[C$1.Payout.paidAt],description:`Timestamp in ISO 8601 format when this payout was completed.`}),dueAt:w$1().optional().meta({examples:[C$1.Payout.createdAt],description:`Earliest timestamp in ISO 8601 format when this payout can be picked up for processing. This is not a guaranteed bank arrival time.`}),status:jh$1.meta({examples:[`PAID`],description:`Current payment status of this payout.`}),method:Nh$1.meta({examples:[`MANUAL`],description:`The payout channel used for disbursing funds.`}),failedAttempts:Ts$1().nonnegative().optional().meta({description:`Failures since approval. After four failures an administrator must explicitly retry the payout. Absent on legacy payouts.`}),approval:E$1.meta({examples:[`APPROVED`],description:`Approval status for this payout.`}),frequency:Fh$1.default(`AFTER_EVENT`).meta({examples:[`AFTER_EVENT`],description:`Schedule on which this payout is generated.`}),structure:Xo$1().meta({examples:[C$1.Payout.structure],description:`Data structure defining how funds are allocated in this payout.`}),transfers:Us$1(Ah$1).meta({description:`List of individual transfer records included in this payout.`}),deductions:Us$1(Th$1).optional().meta({description:`Deprecated legacy deductions applied before calculating the payout total. New recovery amounts are exposed through payout adjustments.`}),price:Dh$1.meta({description:`Summary of event/order-derived amounts for this payout.`}),unsettled:Dh$1.optional().meta({description:`Completed sales assigned to this payout that are still awaiting settlement.`}),unsettledCount:Cs$1().int().nonnegative().optional().meta({description:`Number of orders still awaiting settlement.`}),recovery:wh$1.optional().meta({description:`Optional recovery metadata when this payout exists to return settlement-proven recovered funds.`}),event:Eh$1.meta({description:`Information about the event associated with this payout.`}),timeline:Us$1(kh$1).optional().meta({description:`Chronological list of status changes and notes for this payout.`}),eventId:Xo$1().meta({examples:[C$1.Payout.eventId],description:`Identifier of the event for which this payout was generated.`}),teamId:Xo$1().meta({description:`Team receiving this payout. BREAKING CHANGE: Replaced promoterId/promoterSlug.`})}).meta({description:`payout`});Gs$1({id:Xo$1().meta({examples:[C$1.Payout.id],description:`Unique identifier of the payout to approve for processing.`})});Gs$1({id:Xo$1().meta({examples:[C$1.Payout.id],description:`Unique identifier of the payout to reject.`}),reason:Xo$1().optional().meta({examples:[`Insufficient funds in account`],description:`Optional reason for rejecting the payout. This will be recorded for audit purposes.`})});Gs$1({id:Xo$1().meta({examples:[C$1.Payout.id],description:`Unique identifier of the payout to process and initiate transfers.`})});Gs$1({id:Xo$1().meta({examples:[C$1.Payout.id],description:`Unique identifier of the payout to retry transfer processing for.`})});const Vh$1=Gs$1({id:Xo$1().meta({examples:[C$1.Payout.id],description:`Unique identifier of the payout to add a note to`}),note:Xo$1().trim().min(1).max(1e3).meta({examples:[`Transfer confirmed via bank statement`],description:`Note text content (1-1000 characters)`})}),Hh$1=nc$1([`REFUND`,`DISPUTE_PRINCIPAL`,`DISPUTE_FEE`,`GATEWAY_FEE`,`NEGATIVE_PAYOUT_CARRY_FORWARD`,`LEGACY_ADJUSTMENT`]),Uh$1=nc$1([`RESERVED`,`OPEN`,`PARTIALLY_APPLIED`,`APPLIED`]),Wh$1=nc$1([`OUTSTANDING`,`APPLIED`,`ALL`]),Gh$1=nc$1([`event`,`payout`]),Kh$1=Gs$1({id:Xo$1(),name:Xo$1(),slug:Xo$1()}),qh$1=Gs$1({id:Xo$1(),status:jh$1,approval:E$1,method:Nh$1,dueAt:w$1().optional(),paidAt:w$1().optional(),event:Kh$1,price:Dh$1,unsettled:Dh$1.optional()}),Jh$1=Gs$1({id:Xo$1(),payoutId:Xo$1(),amount:Ts$1().min(0),currency:D$1,appliedAt:w$1(),transferId:Xo$1().optional(),payout:qh$1.optional()}),Yh$1=Gs$1({id:Xo$1(),createdAt:w$1(),updatedAt:w$1(),provenAt:w$1(),teamId:Xo$1(),eventId:Xo$1().optional(),orderId:Xo$1().optional(),payoutId:Xo$1().optional(),sourcePayoutId:Xo$1().optional(),gateway:Nh$1,kind:Hh$1,direction:ic$1(`DEBIT`),status:Uh$1,amount:Ts$1().min(0),appliedAmount:Ts$1().min(0),remainingAmount:Ts$1().min(0),currency:D$1,beneficiary:Xo$1(),beneficiaryId:Xo$1(),description:Xo$1(),settlementId:Xo$1().optional(),transactionId:Xo$1().optional(),feeType:Xo$1().optional(),feeSourceId:Xo$1().optional(),disputeId:Xo$1().optional(),refundId:Xo$1().optional(),paymentIntentId:Xo$1().optional(),paymentAttemptId:Xo$1().optional(),customer:Ll.optional(),event:Kh$1.optional(),sourcePayout:qh$1.optional(),applications:Us$1(Jh$1)}),Xh$1=Gs$1({id:Xo$1()}),Zh$1=Gs$1({adjustmentId:Xo$1(),amount:Ts$1().min(0),currency:D$1}),Qh$1=Gs$1({amount:Ts$1().min(0),appliedAmount:Ts$1().min(0),remainingAmount:Ts$1().min(0),projectedAmount:Ts$1().min(0),currency:D$1}),$h$1=Gs$1({id:Xo$1(),event:Kh$1.optional(),adjustments:Us$1(Yh$1),totals:Us$1(Qh$1)}),eg$1=Gs$1({id:Xo$1(),payout:qh$1,adjustments:Us$1(Yh$1),projections:Us$1(Zh$1),totals:Us$1(Qh$1),projectedNetAmount:Ts$1()}),tg$1=Gs$1({adjustmentCount:Ts$1().min(0),eventCount:Ts$1().min(0),upcomingPayoutCount:Ts$1().min(0),totals:Us$1(Qh$1)}),ng$1=Gs$1({teamId:Xo$1(),query:Xo$1().optional(),status:Wh$1.optional(),groupBy:Gh$1.optional(),eventId:Xo$1().optional(),currency:D$1.optional(),limit:L$1(`adjustments`).optional(),cursor:Jn.optional()}),rg$1=Gs$1({adjustments:Us$1(Yh$1),eventGroups:Us$1($h$1),payoutGroups:Us$1(eg$1),summary:tg$1,summaryScope:ic$1(`PAGE`),before:Xo$1().nullish(),after:Xo$1().nullish(),limit:Cs$1().int().min(1)}),ig$1=Gs$1({adjustment:Yh$1,adjustments:Us$1(Yh$1),eventGroups:Us$1($h$1),payoutGroups:Us$1(eg$1),summary:tg$1}),ag$1=Gs$1({name:Xo$1(),gateway:nc$1([`AIRWALLEX`,`STRIPE`,`FREE`]),message:Xo$1(),eventIds:Us$1(Xo$1()).optional(),venues:Us$1(Xo$1()).optional(),tenants:Us$1(Xo$1()).optional(),teams:Us$1(Xo$1()).optional(),ticketBeneficiaryTeamId:Xo$1().optional(),venueBeneficiaryTeamId:Xo$1().optional(),min:Cs$1().optional(),max:Cs$1().optional(),percent:Cs$1().optional(),split:Gs$1({tenant:Cs$1(),team:Cs$1(),venue:Cs$1(),sessions:Cs$1()})}).refine(e=>e.split.venue<=0||e.venueBeneficiaryTeamId!==void 0,{message:`Venue fee splits require a beneficiary team`,path:[`venueBeneficiaryTeamId`]}),og$1=`tem_01kach7nnvfvmbtfvgtgkb47kc`,sg$1=`tem_01kqbww0g2fersexg66rbsffmd`,cg$1=`tem_01kach7nntfvmbtfttvvqfgwbz`,lg$1=`tem_01kh7xaxpbebj9538fp9nn019f`;ag$1.array().parse([{name:`DEFAULT`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2 AUD, whichever is higher`,min:200,percent:7.5,split:{tenant:0,team:0,venue:0,sessions:1}},{name:`MIXMAG_ANZ_DEFAULT`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2 AUD, whichever is higher`,tenants:[`tnt_01hk153x00en6tvgwwwhn8xj1p`],min:200,percent:7.5,split:{tenant:.7,team:0,venue:0,sessions:.3}},{name:`MIXMAG_ASIA_DEFAULT`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2 AUD, whichever is higher`,tenants:[`tnt_01hk153x00ee4sgh15mp929k20`],min:200,percent:7.5,split:{tenant:.7,team:0,venue:0,sessions:.3}},{name:`MIXMAG_ANZ_SASH`,gateway:`AIRWALLEX`,message:`Controlled by S.A.S.H, flat rate of $5 AUD`,tenants:[`tnt_01hk153x00en6tvgwwwhn8xj1p`],teams:[cg$1],min:500,max:500,split:{team:1,tenant:0,venue:0,sessions:0}},{name:`MIXMAG_ANZ_SASH_FLAT_5`,gateway:`AIRWALLEX`,message:`Controlled by S.A.S.H, flat rate of $5 AUD`,eventIds:[`evt_01kztzvgvdecrt5xq7vn67vd5k`],tenants:[`tnt_01hk153x00en6tvgwwwhn8xj1p`],ticketBeneficiaryTeamId:cg$1,venueBeneficiaryTeamId:cg$1,min:500,max:500,split:{team:0,tenant:0,venue:1,sessions:0}},{name:`MIXMAG_ANZ_CAROUSEL_FLAT_5`,gateway:`AIRWALLEX`,message:`Controlled by Carousel, flat rate of $5 AUD`,eventIds:[`evt_01m0pz27j2fk7atvaa51e1sh8j`],tenants:[`tnt_01hk153x00en6tvgwwwhn8xj1p`],ticketBeneficiaryTeamId:og$1,venueBeneficiaryTeamId:og$1,min:500,max:500,split:{team:0,tenant:0,venue:1,sessions:0}},{name:`MIXMAG_ANZ_CAROUSEL`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2 AUD, whichever is higher`,tenants:[`tnt_01hk153x00en6tvgwwwhn8xj1p`],teams:[og$1,sg$1,lg$1],venues:[`Carousel Bar & Ballroom`,`Carousel`,`169 Oxford St`],ticketBeneficiaryTeamId:og$1,venueBeneficiaryTeamId:og$1,min:200,percent:7.5,split:{team:0,tenant:0,venue:1,sessions:0}}]),ag$1.array().parse([{name:`MIXMAG_ANZ_YAW_PLACE`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2.50 AUD, whichever is higher`,ticketBeneficiaryTeamId:og$1,venueBeneficiaryTeamId:lg$1,min:250,percent:7.5,split:{tenant:0,team:0,venue:1,sessions:0}},{name:`MIXMAG_ANZ_KANDY`,gateway:`AIRWALLEX`,message:`7.5% of the ticket price or $2.50 AUD, whichever is higher`,ticketBeneficiaryTeamId:og$1,venueBeneficiaryTeamId:sg$1,min:250,percent:7.5,split:{tenant:0,team:0,venue:1,sessions:0}}]);const ug$1=Gs$1({tenant:Cs$1().meta({examples:[5e4],description:`Amount allocated to the tenant (platform) in cents. This represents the platform's share of the revenue.`}),venue:Cs$1().meta({examples:[25e3],description:`Amount allocated to the venue in cents. This represents the venue's share of the revenue from events held at their location.`}),team:Cs$1().meta({examples:[2e4],description:`Amount allocated to the team in cents. This represents the team's share of the revenue after fees and other deductions.`}),sessions:Cs$1().meta({examples:[3e3],description:`Amount allocated to Sessions platform commission in cents. This represents the platform's service fees.`}),tickets:Cs$1().meta({examples:[2e3],description:`Amount allocated to ticketing fees in cents. This represents fees charged for ticket processing and management.`})});Gs$1({payout:$$2.meta({description:`Complete payout record containing all financial details and metadata for calculating beneficiary allocations.`}),feeStructure:ag$1.meta({description:`Fee structure configuration that defines how revenue is split between different parties (promoter, venue, platform, etc.).`}),split:ug$1.meta({description:`Calculated split amounts showing how the payout total is divided among the different beneficiaries in cents.`})});const fg$1=Gs$1({tickets:Ts$1().nonnegative().optional().meta({description:`Admission ticket count captured for this statement, retained when source orders are removed.`}),orders:Cs$1().meta({examples:[150],description:`Total number of orders included in this payout breakdown.`}),price:uu.meta({description:`Aggregated price information for all orders included in this payout, showing total revenue, fees, refunds, and disputes.`}),split:ug$1.meta({description:`How the total payout amount is split between different beneficiaries (tenant, venue, promoter, etc.) in cents.`}),structure:Xo$1().meta({examples:[`DEFAULT`],description:`Fee structure identifier that was used to calculate the payout split and allocations.`})}),pg$1=Gs$1({name:Xo$1().meta({description:`Captured fee structure name.`}),gateway:nc$1([`AIRWALLEX`,`STRIPE`,`FREE`]).meta({description:`Payment gateway.`}),message:Xo$1().meta({description:`Customer-facing fee description.`}),split:Gs$1({tenant:Cs$1().meta({description:`Tenant booking fee share.`}),team:Cs$1().meta({description:`Organiser booking fee share.`}),venue:Cs$1().meta({description:`Venue booking fee share.`}),sessions:Cs$1().meta({description:`Session Services booking fee share.`})}).meta({description:`Captured booking fee allocations.`}),ticketBeneficiaryTeamId:Xo$1().optional().meta({description:`Ticket revenue recipient override.`}),venueBeneficiaryTeamId:Xo$1().optional().meta({description:`Venue booking fee recipient.`})}).refine(e=>e.split.venue<=0||e.venueBeneficiaryTeamId!==void 0,{message:`Venue fee splits require a beneficiary team`,path:[`venueBeneficiaryTeamId`]}).meta({description:`Statement allocations without internal applicability selectors.`}),mg$1=Gs$1({statement:Gs$1({version:Ts$1().positive().meta({description:`Immutable statement version.`}),capturedAt:w$1().meta({description:`Statement accounting cutoff.`}),feeStructure:pg$1.meta({description:`Beneficiary allocations captured for this statement.`}),adjustments:Ts$1().meta({description:`Applied organiser adjustments in settlement minor units; debits are positive.`})}).optional().meta({description:`Frozen accounting basis for an issued payout statement.`}),total:fg$1.meta({description:`Summary totals for all orders included in this payout breakdown, including aggregated financial calculations.`}),orders:Us$1(Gs$1({order:q$1.meta({description:`Complete order information including customer details, items, and payment status.`}),price:uu.meta({description:`Settled price information for this specific order, showing final amounts after refunds and adjustments.`}),split:ug$1.meta({description:`How this individual order's revenue is split between different beneficiaries in cents.`}),structure:Xo$1().meta({examples:[`DEFAULT`],description:`Fee structure identifier used to calculate the split for this order.`})})).meta({description:`Detailed breakdown of individual orders included in this payout, showing how each order contributes to the total.`})});$$2.pick({id:true,eventId:true}).extend({id:Xo$1().meta({examples:[C$1.Payout.id],description:`Unique identifier of the payout for which to retrieve the detailed breakdown.`}),eventId:Xo$1().meta({examples:[C$1.Event.id],description:`Unique identifier of the event associated with the payout breakdown.`})});$$2.pick({eventId:true,teamId:true,method:true,frequency:true}).partial({method:true,frequency:true}).meta({description:`Schema for creating a new payout record`}).extend({eventId:Xo$1().meta({examples:[C$1.Event.id],description:`Unique identifier of the event for which the payout is being created`}),teamId:Xo$1().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`Unique identifier of the team who will receive the payout`}),method:nc$1([`AIRWALLEX`,`STRIPE`,`MANUAL`]).optional().meta({examples:[`AIRWALLEX`],description:`Optional payment method for the payout. Defaults to promoter's preferred method if not specified`}),frequency:nc$1([`DAILY`,`WEEKLY`,`AFTER_EVENT`]).optional().meta({examples:[`AFTER_EVENT`],description:`Optional payout frequency. Defaults to 'AFTER_EVENT' if not specified`})});const _g$1=Gs$1({id:Xo$1().meta({examples:[C$1.Payout.id],description:`Unique identifier of the payout`}),noteId:Xo$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to delete`})}),vg$1=$$2.pick({id:true}).extend({id:Xo$1().meta({examples:[C$1.Payout.id],description:`Unique identifier of the payout to retrieve.`})}),yg$1=nc$1([`createdAt`]),bg$1=nc$1([`asc`,`desc`]),xg=Gs$1({mine:Ds$1().optional().meta({examples:[true],description:"When true, returns payouts from teams where the authenticated user has payout access (for example, `payout.read` or `payout.write`)."}),teamId:Xo$1().optional().meta({description:`Filter payouts by specific team unique identifier. BREAKING CHANGE: Replaced promoterId filter.`}),eventId:Xo$1().optional().meta({examples:[C$1.Event.id],description:`Filter payouts by specific event unique identifier. When provided, only returns payouts for this event.`}),status:nc$1([`UPCOMING`,`FAILED`,`PROCESSING`,`PAID`,`CANCELLED`]).optional().meta({examples:[`PAID`],description:`Filter payouts by payment status. UPCOMING: scheduled but not yet processed, FAILED: failed processing and will retry, PROCESSING: currently being processed, PAID: successfully completed, CANCELLED: cancelled before completion.`}),approval:E$1.optional().meta({examples:[`APPROVED`],description:`Filter payouts by approval status. PENDING: awaiting approval, APPROVED: approved for processing, REJECTED: rejected and will not be processed.`}),manualApprovalOnly:Ds$1().optional().meta({description:`Only include manual payouts and recovery credits that require an operator approval decision.`}),query:Xo$1().optional().meta({examples:[`PAID venue:sydney`],description:`Optional search query to filter payouts by text fields. When provided, search-backed pagination is used.`}),sort:yg$1.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest payouts first."}),direction:bg$1.optional().meta({examples:[`desc`],description:"Sort direction for payout lists. Defaults to `desc` when `sort` is provided."}),limit:L$1(`payouts`).optional(),cursor:Xo$1().optional().meta({examples:[`eyJpZCI6InBheV8wMWpwczVjZ3NmdjJ3cmU2aGQwcmM0dzR0OCJ9`],description:`Pagination cursor for continuing to fetch subsequent results. Use the cursor from the previous response to continue.`})}).meta({description:`Schema for listing payouts with optional filtering, search, and cursor-based pagination`}),Sg=B$1($$2,`payouts`),Cg=nc$1([`VALID`,`FALLBACK`,`MISSING`]),wg=Gs$1({status:Cg.meta({examples:[`VALID`],description:`Resolution status for the beneficiary used by this split. FALLBACK indicates a non-strict match was used, MISSING means no beneficiary is configured.`}),warning:Xo$1().optional().meta({examples:[`Using fallback beneficiary with matching gateway only.`],description:`Optional warning message shown when fallback or missing beneficiary resolution was required.`}),beneficiary:Gs$1({id:Xo$1().optional().meta({examples:[C$1.Beneficiary.id],description:`Identifier for the beneficiary.`}),teamId:Xo$1().optional().meta({examples:[C$1.Team.id],description:`Team that owns this beneficiary configuration.`}),name:Xo$1().meta({examples:[C$1.Beneficiary.name],description:`Display name for the resolved beneficiary.`}),gateway:nc$1([`AIRWALLEX`,`STRIPE`]).optional().meta({examples:[C$1.Beneficiary.gateway],description:`Payment gateway for this beneficiary when available from configuration.`}),gatewayId:Xo$1().meta({examples:[C$1.Beneficiary.gatewayId],description:`Gateway-specific beneficiary identifier used for transfer creation.`}),currency:D$1.meta({examples:[C$1.Beneficiary.currency],description:`Currency configured for this beneficiary.`})}).optional()}),Tg=nc$1([`tickets`,`tenant`,`venue`,`team`,`sessions`]),Eg=Gs$1({kind:Tg.meta({examples:[`tickets`],description:`Split component represented by this row.`}),amount:Cs$1().int().meta({examples:[114500],description:`Amount in cents for this split component.`}),currency:D$1.meta({examples:[C$1.Payout.price.currency],description:`Currency code for this split component.`}),beneficiary:wg}),Dg=nc$1([`TRACKED`,`N_A`,`SKIPPED`]),Og=Gs$1({orders:Cs$1().int().meta({examples:[12],description:`Number of orders in this settlement bucket.`}),price:uu.meta({description:`Aggregated totals for the orders in this bucket, in the bucket's native currency.`})}),kg=Gs$1({state:Dg.meta({examples:[`TRACKED`],description:`Whether settlement tracking applies to this payout preview. Non-Airwallex payouts return N_A.`}),settled:Og.optional().meta({description:`Completed Airwallex orders that already have settlement data available.`}),awaitingSettlement:Og.optional().meta({description:`Completed Airwallex orders still waiting on settlement ingestion.`})}),Ag=Gs$1({payout:$$2.pick({id:true,status:true,approval:true,method:true,frequency:true,structure:true,createdAt:true,dueAt:true,teamId:true,eventId:true,event:true,price:true}).meta({description:`Lightweight payout summary used by approvals and payout queue UIs.`}),rows:Us$1(Eg).meta({description:`Non-zero split rows with beneficiary resolution status and warnings.`}),settlementSummary:kg.meta({description:`Settlement status summary for the payout event. Airwallex payouts expose settled vs awaiting-settlement buckets.`})}),jg=vg$1.extend({includeSettlementSummary:Ds$1().optional().meta({examples:[true],description:`When true, includes the Airwallex settlement summary for the payout preview.`})}),Mg=Gs$1({payout:$$2,breakdown:mg$1,appliedAdjustments:Us$1(Yh$1),projectedAdjustmentGroup:eg$1.optional(),canExportBookingFees:Ds$1()}),Ng=ec$1(Xo$1(),ec$1(Xo$1(),Gs$1({net:Cs$1(),total:Cs$1(),gross:Cs$1(),base:Cs$1(),booking:Cs$1(),shipping:Cs$1(),refunded:Cs$1(),discount:Cs$1(),gateway:Cs$1(),dispute:Cs$1(),deductions:Cs$1().default(0)}))).meta({description:`Payout statistics grouped by period (current/previous) and currency`,examples:[{current:{USD:{net:1e5,total:12e4,gross:115e3,base:11e4,booking:5e3,shipping:0,refunded:0,discount:5e3,gateway:3e3,dispute:0}},previous:{USD:{net:8e4,total:95e3,gross:9e4,base:85e3,booking:5e3,shipping:0,refunded:0,discount:5e3,gateway:2500,dispute:0}}}]}),Pg=Gs$1({teamId:Xo$1().optional().meta({description:`Filter stats by team ID`}),startDate:Xo$1().optional().meta({description:`Start date for stats period (YYYY-MM-DD)`}),endDate:Xo$1().optional().meta({description:`End date for stats period (YYYY-MM-DD)`})}),Fg=$$2.pick({id:true}).merge($$2.pick({status:true,approval:true}).partial()).extend({id:Xo$1().meta({examples:[C$1.Payout.id],description:`Unique identifier of the payout to update.`}),status:nc$1([`CANCELLED`]).optional().meta({examples:[`CANCELLED`],description:`Optional new payment status for the payout. Only CANCELLED is allowed for manual updates.`}),approval:E$1.optional().meta({examples:[`APPROVED`],description:`Optional new approval status for the payout. PENDING: awaiting approval, APPROVED: approved for processing, REJECTED: rejected.`})}),Ig=Gs$1({id:Xo$1().meta({examples:[C$1.Payout.id],description:`Unique identifier of the payout`}),noteId:Xo$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to update`}),note:Xo$1().trim().min(1).max(1e3).meta({examples:[`Updated: Transfer confirmed - reference #12345`],description:`Updated note text content (1-1000 characters)`})}),Lg=nc$1([`PROMOTER`,`VENUE`]).meta({description:`Type of permission scope. PROMOTER: applies to all events by a specific promoter. VENUE: applies to all events at a specific venue.`}),Rg=Gs$1({id:Xo$1().readonly().meta({description:`Unique identifier for the permission scope`}),createdAt:w$1().readonly().meta({description:`Timestamp in ISO 8601 format when the scope was created`}),updatedAt:w$1().readonly().meta({description:`Timestamp in ISO 8601 format when the scope was last updated`}),teamMemberId:Xo$1().meta({description:`Team member this scope applies to`}),teamId:Xo$1().meta({description:`Team the member belongs to`}),userId:Xo$1().meta({description:`ID of the user this permission scope applies to`}),permissions:Us$1(R$1).meta({description:`Scoped permissions. Can be empty array to remove all access. Replaces lower-tier permissions based on kind (VENUE overrides PROMOTER overrides BASE).`}),roleIds:Us$1(Xo$1()).optional().meta({description:`Optional role IDs applied at this scope. Role-derived permissions are merged with explicit scoped nodes.`}),tenantId:Xo$1().readonly().meta({description:`Tenant identifier`})}),zg=Xs$1(`kind`,[Rg.extend({kind:ic$1(`PROMOTER`).meta({description:`Scope type: PROMOTER-specific permissions`}),promoterId:Xo$1().meta({description:`Promoter this scope applies to. Replaces base permissions for all events by this promoter.`})}).meta({description:`PROMOTER-specific permission scope. Applies to all events by the specified promoter.`}),Rg.extend({kind:ic$1(`VENUE`).meta({description:`Scope type: VENUE-specific permissions`}),venueId:Xo$1().meta({description:`Venue this scope applies to. Replaces base/promoter permissions for all events at this venue.`})}).meta({description:`VENUE-specific permission scope. Applies to all events at the specified venue.`})]).meta({description:`Permission scope for a team member. Can be PROMOTER-specific (applies to all events by that promoter) or VENUE-specific (applies to all events at that venue). Replaces lower-tier permissions using REPLACE semantics.`}),Bg=Gs$1({permissions:Us$1(R$1).meta({description:`Scoped permissions. Can be empty array to remove all access. Replaces lower-tier permissions based on kind (VENUE overrides PROMOTER overrides BASE).`}),roleIds:Us$1(Xo$1()).optional().meta({description:`Optional role IDs to apply at this scope.`})}),Vg=Xs$1(`kind`,[Bg.extend({kind:ic$1(`PROMOTER`).meta({description:`Scope type: PROMOTER-specific permissions`}),promoterId:Xo$1().meta({description:`Promoter this scope applies to. Replaces base permissions for all events by this promoter.`})}).meta({description:`Create a PROMOTER-specific permission scope. Applies to all events by the specified promoter.`}),Bg.extend({kind:ic$1(`VENUE`).meta({description:`Scope type: VENUE-specific permissions`}),venueId:Xo$1().meta({description:`Venue this scope applies to. Replaces base/promoter permissions for all events at this venue.`})}).meta({description:`Create a VENUE-specific permission scope. Applies to all events at the specified venue.`})]).meta({description:`Schema for creating a new permission scope. Must specify kind (PROMOTER or VENUE) and corresponding ID.`}),Hg=Gs$1({id:Ln.meta({description:`Unique identifier for the permission scope`})}).meta({description:`Schema for retrieving a single permission scope by ID`}),Ug=Gs$1({teamMemberId:Xo$1().optional().meta({description:`Filter by team member ID`}),userId:Xo$1().optional().meta({description:`Filter by user ID`}),kind:Lg.optional().meta({description:`Filter by scope kind (PROMOTER or VENUE)`}),promoterId:Xo$1().optional().meta({description:`Filter by promoter ID (only for kind=PROMOTER scopes)`}),venueId:Xo$1().optional().meta({description:`Filter by venue ID (only for kind=VENUE scopes)`}),limit:L$1(`permission scopes`),cursor:Xo$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing permission scopes with pagination and filtering`}),Wg=B$1(zg,`items`).meta({description:`Paginated response containing permission scopes with cursor for next page`}),Gg=Bg.meta({description:`Schema for updating an existing permission scope. Only permissions array can be modified.`}),Kg=Gs$1({id:Rn.meta({description:`Permission role ID`}),teamId:k$1.meta({description:`Team that owns this role`}),name:Xo$1().min(1).meta({description:`Role display name`}),description:Xo$1().optional().meta({description:`Optional role description`}),permissions:yr.meta({description:`Permission nodes granted by this role`}),createdAt:w$1().meta({description:`Timestamp in ISO 8601 format when the role was created`}),updatedAt:w$1().meta({description:`Timestamp in ISO 8601 format when the role was last updated`})}).meta({description:`Team-scoped permission role`}),qg=Gs$1({role:Kg}),Jg=Gs$1({roles:Us$1(Kg)}),Yg=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`})}),Xg=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),roleId:Rn}),Zg=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),name:Xo$1().min(1).meta({description:`Role display name`}),description:Xo$1().optional().meta({description:`Optional role description`}),permissions:yr}),Qg=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),roleId:Rn,name:Xo$1().min(1).meta({description:`Role display name`}),description:Xo$1().optional().meta({description:`Optional role description`}),permissions:yr}),$g=Gs$1({memberId:P$1,permissions:Us$1(R$1),updatedAt:w$1()}),e_=Gs$1({member:$g}),t_=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1}),n_=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1,permissions:Us$1(R$1).meta({description:`Direct permission nodes for this member. Full-replace semantics; use an empty array to remove all direct grants.`})}),r_=Gs$1({memberId:P$1,roleIds:Us$1(Rn).meta({description:`Role IDs assigned to this member`}),updatedAt:w$1()}),i_=Gs$1({member:r_}),a_=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1}),o_=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1,roleIds:Us$1(Rn)}),s_=Gs$1({direct:Us$1(Xo$1()),fromRoles:Us$1(Xo$1()),effective:Us$1(Xo$1()),denied:Us$1(Xo$1())});Gs$1({memberId:P$1,permissions:s_});Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),memberId:P$1,domain:Xo$1().optional().meta({description:`Optional domain filter (for example: ticket, event)`}),action:Xo$1().optional().meta({description:`Optional action filter (for example: read, write, scan)`}),resourceId:Xo$1().optional().meta({description:`Optional resource ID filter`})});const d_=b$1.route({method:`GET`,path:`/teams/{key}/roles`,summary:`List team roles`,description:`Returns all roles configured for a team.`,tags:[`Permissions`]}).input(Yg.strict()).output(Jg),f_=b$1.route({method:`POST`,path:`/teams/{key}/roles`,summary:`Create team role`,description:`Creates a team-scoped permission role.`,tags:[`Permissions`]}).input(Zg.strict()).output(qg),p_=b$1.route({method:`GET`,path:`/teams/{key}/roles/{roleId}`,summary:`Get team role`,description:`Retrieves a team role by ID.`,tags:[`Permissions`]}).input(Xg.strict()).output(qg),m_=b$1.route({method:`PUT`,path:`/teams/{key}/roles/{roleId}`,summary:`Replace team role`,description:`Full-replace, idempotent update for role name, description, and permissions.`,tags:[`Permissions`]}).input(Qg.strict()).output(qg),h_=b$1.route({method:`DELETE`,path:`/teams/{key}/roles/{roleId}`,summary:`Delete team role`,description:`Deletes a team role.`,tags:[`Permissions`]}).input(Xg.strict()).output(qg),g_=b$1.route({method:`GET`,path:`/teams/{key}/members/{memberId}/permissions`,summary:`Get member direct permissions`,description:`Returns direct permission nodes assigned to a member.`,tags:[`Permissions`]}).input(t_.strict()).output(e_),__=b$1.route({method:`PUT`,path:`/teams/{key}/members/{memberId}/permissions`,summary:`Replace member direct permissions`,description:`Full-replace, idempotent update for direct permission nodes assigned to a member.`,tags:[`Permissions`]}).input(n_.strict()).output(e_),v_=b$1.route({method:`GET`,path:`/teams/{key}/members/{memberId}/roles`,summary:`Get member role assignments`,description:`Returns role IDs assigned to a member.`,tags:[`Permissions`]}).input(a_.strict()).output(i_),y_=b$1.route({method:`PUT`,path:`/teams/{key}/members/{memberId}/roles`,summary:`Replace member role assignments`,description:`Full-replace, idempotent update for role assignments on a member.`,tags:[`Permissions`]}).input(o_.strict()).output(i_);var b_={roles:{list:d_,create:f_,get:p_,update:m_,remove:h_},members:{permissions:{get:g_,replace:__},roles:{get:v_,replace:y_}}};const x_=Gs$1({key:Xo$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[C$1.Promoter.id,C$1.Promoter.slug]})}).meta({description:`Request schema for retrieving a promoter by either its unique ID or slug`});G$1.pick({slug:true});const C_=G$1.omit({id:true,createdAt:true,updatedAt:true,geohash:true,approval:true,location:true}).extend({description:Br.meta({examples:[C$1.Promoter.description],description:`Detailed description of the promoter organization and their events`}),teamId:Xo$1().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`ID of the team that will own this promoter. User must be a member of this team.`}),slug:Xo$1().min(3).max(30).optional().meta({examples:[C$1.Promoter.slug],description:`URL-friendly slug for the promoter organization. If not provided, will be automatically generated from the name. Must be unique and between 3 and 30 characters`}),...Ed}).refine(Dd,{message:Td}).meta({description:`Schema for creating a new promoter organization. The system automatically generates the ID, tenant association, geohash, and timestamps`}),w_=Gs$1({key:Xo$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[C$1.Promoter.id,C$1.Promoter.slug]})}).meta({description:`Schema for removing (soft deleting) a promoter organization by key (ID or slug)`});G$1.pick({id:true}).meta({description:`Schema for retrieving a specific promoter by ID`});const E_=nc$1([`createdAt`]),D_=nc$1([`asc`,`desc`]),O_=e=>{if(e!=null)return typeof e==`string`?k_(e):e};function k_(e){let t=e.trim();if(t.length===0)return;let n=Number(t);return Number.isNaN(n)?e:n}const A_=Ks$1({teamId:Xo$1().max(128).optional().meta({description:`Filter promoters to only those belonging to a specific team`}),approval:E$1.optional().meta({examples:[C$1.Promoter.approval],description:`Filter promoters by approval status. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate`}),query:Xo$1().max(120).optional().meta({examples:[`Session Services`],description:`Optional search query. When provided, results are fetched from search with unified cursor pagination.`}),latitude:T$1().min(-90).max(90).optional().meta({examples:[C$1.Promoter.location.latitude],description:`Latitude used with longitude and radius to filter promoters by proximity when searching.`}),longitude:T$1().min(-180).max(180).optional().meta({examples:[C$1.Promoter.location.longitude],description:`Longitude used with latitude and radius to filter promoters by proximity when searching.`}),radius:T$1().min(1).max(2e4).optional().meta({examples:[50],description:`Search radius in kilometers applied when latitude and longitude are provided.`}),mine:sn().optional().meta({examples:[true],description:`When true, limits results to promoters from teams the current user belongs to. When combined with teamId, returns only that team's promoters (bypassing tenant-wide admin scope).`}),sort:E_.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest promoters first."}),direction:D_.optional().meta({examples:[`desc`],description:"Sort direction for promoter lists. Defaults to `desc` when omitted."}),limit:jc$1(O_,Cs$1().min(1).max(100).prefault(20)).meta({examples:[20],description:`Maximum number of promoters to return (1-100, defaults to 20)`}).optional(),cursor:Xo$1().max(768).optional().meta({examples:[`eyJpZCI6InByb18wMWpxcGprc25zZW45dnBydzk1ZXQ2MHQybSJ9`],description:`Opaque cursor for pagination. Use the cursor from the previous response to continue fetching results.`})}).meta({description:`Schema for listing promoters with optional filtering by team, full-text search, and cursor pagination`}),j_=B$1(G$1,`promoters`),M_=Gs$1({promoter:G$1}),N_=G$1.omit({createdAt:true,updatedAt:true,id:true,location:true}).partial().extend({description:Br.optional().meta({examples:[C$1.Promoter.description],description:`Detailed description of the promoter organization. Omit to leave unchanged.`}),key:Xo$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[C$1.Promoter.id,C$1.Promoter.slug]}),locationId:Tn.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:Xo$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`}),image:F$1.nullable().optional().meta({description:`Promoter image. Pass null to clear; omit to leave unchanged.`,examples:[C$1.Promoter.image,null]}),tracking:Gs$1({fbId:Xo$1().optional(),gaId:hs.optional(),tikTokId:Xo$1().optional()}).nullable().optional().meta({description:`Analytics tracking config. Pass null to clear all tracking; omit to leave unchanged.`})}).meta({description:`Schema for updating an existing promoter.`}),P_=nc$1([`PAYOUT_STATEMENT`,`PAYOUT_ORDER_BREAKDOWN`,`PAYOUT_BOOKING_FEE_BREAKDOWN`,`PAYOUT_ADJUSTMENT_BREAKDOWN`,`EVENT_ORDERS`,`MEMBERSHIP_MEMBERS`]),F_=nc$1([`QUEUED`,`PROCESSING`,`COMPLETED`,`FAILED`]),I_=Gs$1({payoutId:Xo$1().describe(`Payout identifier`),teamId:Xo$1().optional().describe(`Requesting team identifier`)}),L_=Gs$1({eventId:Xo$1().describe(`Event identifier`)}),R_=Gs$1({teamId:Xo$1().describe(`Team whose current membership program is exported`)}),z_=Xs$1(`type`,[Gs$1({type:ic$1(`PAYOUT_STATEMENT`),params:I_}),Gs$1({type:ic$1(`PAYOUT_ORDER_BREAKDOWN`),params:I_}),Gs$1({type:ic$1(`PAYOUT_BOOKING_FEE_BREAKDOWN`),params:I_}),Gs$1({type:ic$1(`PAYOUT_ADJUSTMENT_BREAKDOWN`),params:I_}),Gs$1({type:ic$1(`EVENT_ORDERS`),params:L_}),Gs$1({type:ic$1(`MEMBERSHIP_MEMBERS`),params:R_})]),B_=Gs$1({id:Xo$1().describe(`Report job identifier`)}),V_=Gs$1({id:Xo$1(),type:P_,status:F_,createdAt:Xo$1(),updatedAt:Xo$1(),expiresAt:Xo$1().optional(),filename:Xo$1().optional(),contentType:Xo$1().optional(),sizeBytes:Cs$1().optional(),error:Xo$1().optional(),downloadUrl:Xo$1().optional()}),H_=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),inviteId:Xo$1().meta({description:`Team invite ID to accept`}),token:Xo$1().meta({description:`Secure token used to accept the team invite. This token must match the one sent in the invitation email.`})}),W_=nc$1([`TEAM`,`EVENTS`]),G_=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),scope:W_.meta({description:`Stripe Connect event routing scope. TEAM routes every team event through Stripe Connect. EVENTS routes selected events only.`,examples:[`EVENTS`]}),eventIds:Us$1(A$1).max(100).optional().meta({description:`Event IDs routed through Stripe Connect when scope is EVENTS. Omit or pass an empty array to keep Stripe Connect disabled for all events in EVENTS mode.`})}),K_=Gs$1({provider:nc$1([`STRIPE`,`AIRWALLEX`]).meta({description:`Payment gateway provider type`}),connectedAt:w$1().meta({description:`Timestamp when the payment gateway was connected to this team`}),connectedBy:Xo$1().meta({description:`User ID of the team member who connected the payment gateway`}),accountId:Xo$1().meta({description:`Connected account ID. For Stripe: acct_xxxxx. For Airwallex: business account open ID.`}),scope:W_.optional().meta({description:`Stripe Connect routing scope. TEAM routes all team events through Stripe Connect. EVENTS routes only selected events.`}),eventIds:Us$1(A$1).optional().meta({description:`Event IDs routed through Stripe Connect when scope is EVENTS.`}),chargesEnabled:Ds$1().optional().meta({description:`Whether the connected Stripe account can currently accept charges.`}),payoutsEnabled:Ds$1().optional().meta({description:`Whether the connected Stripe account can currently receive payouts.`}),requirementsDue:Us$1(Xo$1()).optional().meta({description:`Stripe Connect account requirements currently due before the account can remain fully enabled.`}),disabledReason:Xo$1().optional().meta({description:`Stripe disabled reason for the connected account, when Stripe reports one.`}),syncedAt:w$1().optional().meta({description:`Timestamp when gateway account status was last synced from the provider.`})}).meta({description:`Payment gateway configuration for direct payouts to the team's connected account`}),q_=Gs$1({id:k$1.readonly().meta({description:`Unique identifier for the team organization`}),createdAt:w$1().readonly().meta({description:`Timestamp in ISO 8601 format when the team was created`}),updatedAt:w$1().readonly().meta({description:`Timestamp in ISO 8601 format when the team was last updated`}),name:Xo$1().min(3).max(30).meta({description:`Display name of the team organization. Must be between 3 and 30 characters`}),slug:Xo$1().min(3).max(30).meta({description:`URL-friendly slug for the team organization. Must be unique within tenant and between 3 and 30 characters`}),supportEmail:Xo$1().email().optional().meta({description:`Support email address for customer inquiries. Used as reply-to address in order confirmation emails`}),publicBaseUrl:os$1().optional().meta({description:`Optional public website base URL for team-owned event and order links. When present, it overrides the tenant public base URL.`,examples:[`https://sash.net.au`]}),image:F$1.optional().meta({description:`Team image with dimensions and alt text for branding across the platform`}),metadata:qn,approval:E$1.meta({description:`Approval status of the team. PENDING: awaiting review, APPROVED: can create promoters/venues/events, REJECTED: cannot operate`}),deletedAt:w$1().optional().readonly().meta({description:`Timestamp in ISO 8601 format when the team was soft deleted. Only present for deleted teams.`}),tenantId:Xo$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`}),isAdmin:Ds$1().optional().meta({description:`Whether this team is the admin team for the tenant`}),isDemo:Ds$1().readonly().meta({description:`Whether this team is protected seeded demo data`}),gateway:K_.optional().meta({description:`Connected payment gateway for direct payouts. When connected, funds from ticket sales go directly to the team's account with platform fees deducted.`})}).meta({description:`Team organization that owns promoters and venues. Multiple brands can exist under one team.`});q_.extend({promoter:G$1.meta({description:`The primary promoter brand associated with this team`})}).meta({description:`Team organization with its primary promoter brand included for convenience`});const Y_=q_.extend({member:Gs$1({id:P$1.meta({description:`Current user's team member identifier for this team`}),permissions:vr.meta({description:`Permissions the current user has for this team. Controls access to team resources.`,examples:[[],[`team.read`,`team.write`],[`team.member.read`,`team.member.write`],[`ticket.scan`],[`*`]]}),isOwner:Ds$1().meta({description:`Whether the current user is the owner of this team. Owners have full control.`})}).optional().meta({description:`Current user's membership details for this team. Present when user is a member.`})}).meta({description:`Team organization with the current user's membership details`}),X_=Gs$1({key:Xo$1().min(1).meta({description:`Team key - either a unique ID (tem_xxx format) or URL-friendly slug`,examples:[C$1.Team.id,C$1.Team.slug]})}).meta({description:`Request schema for retrieving a team by either its unique ID or slug`}),Z_=q_.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,deletedAt:true,isAdmin:true,isDemo:true}).extend({slug:Xo$1().min(3).max(30).optional().meta({description:`URL-friendly slug for the team organization. If not provided, will be automatically generated from the name. Must be unique within tenant and between 3 and 30 characters`}),approval:q_.shape.approval.optional().meta({description:`Approval status of the team. Defaults to PENDING if not specified.`})}).meta({description:`Schema for creating a new team organization. The system automatically generates the ID, tenant association, and timestamps`});Gs$1({id:k$1.meta({description:`Team ID to delete`})});const $_=Gs$1({team:Y_.extend({isAdmin:Ds$1().optional().meta({description:`Whether this team is the tenant admin team`}),stripeConnectAvailability:bs.optional().meta({description:`Stripe Connect availability metadata for tenant payment settings UI.`})})}),ev=nc$1([`QUEUED`,`PROCESSING`,`BLOCKED`,`COMPLETED`,`FAILED`]).meta({description:`Current state of an asynchronous team deletion operation`}),tv=nc$1([`ADMIN_TEAM`,`DEMO_TEAM`,`EVENTS`,`ORDERS`,`EVENTS_AND_ORDERS`,`BUSINESS_RECORDS`,`SETUP_IN_USE`]).meta({description:`Stable business reason preventing team deletion`}),nv=Gs$1({reason:tv,hasEvents:Ds$1().meta({description:`Whether active events prevent deletion`}),hasOrders:Ds$1().meta({description:`Whether orders prevent deletion`})}).meta({description:`Structured business condition preventing team deletion`}),rv=Gs$1({id:Cn.readonly().meta({description:`Unique identifier for the deletion operation`}),teamId:k$1.readonly().meta({description:`Team being deleted`}),status:ev,createdAt:w$1().readonly().meta({description:`Timestamp when deletion was requested`}),updatedAt:w$1().readonly().meta({description:`Timestamp when deletion progress last changed`}),completedAt:w$1().optional().readonly().meta({description:`Timestamp when deletion completed`}),blocker:nv.optional(),error:Xo$1().optional().meta({description:`Safe failure description when manual recovery is needed`})}).meta({description:`Asynchronous team deletion operation`}),iv=Gs$1({id:Cn}).meta({description:`Request for the state of a team deletion operation`}),av=$_.extend({deletion:rv}).meta({description:`Accepted team deletion request and its operation state`});Gs$1({id:k$1.meta({description:`Team ID to retrieve`})});const sv=Gs$1({id:Fn.readonly().meta({description:`Unique identifier for the team invitation`}),createdAt:w$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was created`}),updatedAt:w$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was last updated`}),teamId:k$1.meta({description:`Team this invitation is for`}),email:ns$1().meta({description:`Email address of the invited user. Used for sending invitation.`}),permissions:Us$1(R$1).meta({description:`Permissions the user will receive upon accepting the invitation. Can be overridden per promoter or venue.`,examples:[[],[`event.read`,`event.write`,`order.read`],[`team.member.read`,`team.member.write`],[`ticket.scan`],[`*`]]}),roleIds:Us$1(Xo$1()).optional().meta({description:`Role IDs assigned on invite acceptance. Effective permissions are role + explicit nodes.`}),access:Hr.optional().meta({description:`Promoter access to apply when the invitation is accepted.`}),token:Xo$1().readonly().meta({description:`Secure token for invite acceptance. Required to accept the invitation.`}),expiresAt:Cs$1().int().positive().meta({description:`Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days.`}),invitedBy:j$1.meta({description:`User ID who sent the invitation`}),tenantId:Xo$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Pending team invitation. Automatically deleted after 7 days via DynamoDB TTL. When accepted, creates a TeamMember record and deletes the invitation.`}),cv=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),inviteId:Xo$1().meta({description:`Team invite ID to cancel`})}),lv=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),email:ns$1().meta({description:`Email address of the user to invite`}),roleIds:Us$1(Xo$1()).min(1).meta({description:`Role IDs to grant to the invited user.`}),access:Ur.optional().meta({description:`Optional promoter access assignment. Omit to preserve existing team-wide behavior.`})}),uv=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),inviteId:Fn.meta({description:`Team invite ID to retrieve`})}),dv=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),query:Xo$1().optional().meta({description:`Search query to filter invitations by email. Case-insensitive partial match`}),limit:Cs$1().int().min(1).max(100).default(20).optional().meta({description:`Maximum number of invitations to return per page`}),cursor:Xo$1().optional().meta({description:`Pagination cursor for fetching the next page`})}),fv=B$1(sv,`invites`),pv=Gs$1({invite:sv}),mv=nc$1([`createdAt`]),hv=nc$1([`asc`,`desc`]),gv=Gs$1({userId:j$1.optional().meta({description:`Filter teams by user membership. If omitted, returns all teams (tenant admin only). If provided, returns teams where the specified user is a member`}),approval:E$1.optional().meta({description:`Filter teams by approval status. PENDING: awaiting review, APPROVED: can operate, REJECTED: cannot operate`}),query:Xo$1().optional().meta({description:`Optional search query for filtering teams by name or slug`}),sort:mv.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest teams first."}),direction:hv.optional().meta({examples:[`desc`],description:"Sort direction for team lists. Defaults to `desc` when `sort` is provided."}),limit:L$1(`teams`),cursor:Xo$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing teams with pagination and filtering`}),_v=B$1(Y_,`teams`),vv=nc$1([`STRIPE`,`AIRWALLEX`]),yv=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),provider:vv.meta({description:`Payment processor to connect`,examples:[`STRIPE`,`AIRWALLEX`]})}),bv=Gs$1({authorizationUrl:Xo$1().url().meta({description:`URL to redirect the user to for OAuth authorization. Open in a new window or redirect the current page.`,examples:[`https://connect.stripe.com/oauth/authorize?response_type=code&client_id=ca_xxx&scope=read_write&redirect_uri=...`]})}),xv=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`})}),Sv=Gs$1({id:Xo$1().meta({description:`Role ID`}),teamId:Xo$1().meta({description:`Team ID this role belongs to`}),key:Xo$1().meta({description:`Role key`}),name:Xo$1().meta({description:`Role display name`}),description:Xo$1().optional().meta({description:`Role description`}),permissions:Us$1(Xo$1()).meta({description:`Permission nodes granted by this role`}),scope:ic$1(`TEAM`).meta({description:`Role scope`}),isPreset:Ds$1().meta({description:`Whether this role is a system preset role`}),presetKey:Xo$1().optional().meta({description:`Stable system preset identifier. It remains unchanged when a preset role is renamed.`})});Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`})});Gs$1({roles:Us$1(Sv)});const Tv=Gs$1({slug:Xo$1().min(3).max(30).meta({description:`Candidate team URL slug to check after server normalization.`}),key:Xo$1().min(1).optional().meta({description:`Current team key to exclude when checking availability during team edits.`})}).meta({description:`Request schema for checking team slug availability.`}),Ev=Gs$1({slug:Xo$1().min(3).max(30).meta({description:`Normalized team URL slug that was checked.`}),available:Ds$1().meta({description:`Whether the normalized slug is available in this tenant.`})}).meta({description:`Team slug availability result.`}),Dv=q_.omit({tenantId:true,createdAt:true,updatedAt:true,id:true,isAdmin:true,isDemo:true}).partial().extend({key:Xo$1().min(1).meta({description:`Team key - either a unique ID (tem_xxx format) or URL-friendly slug`,examples:[C$1.Team.id,C$1.Team.slug]}),supportEmail:Xo$1().email().nullable().optional().meta({description:`Support email for customer inquiries. Pass null to clear, omit to leave unchanged.`}),publicBaseUrl:os$1().nullable().optional().meta({description:`Public website base URL for team-owned event and order links. Pass null to clear, omit to leave unchanged.`}),image:F$1.nullable().optional().meta({description:`Team image. Pass null to clear, omit to leave unchanged.`})}).meta({description:`Schema for updating an existing team organization. Pass null to clear optional fields.`}),Ov=Gs$1({id:P$1.readonly().meta({description:`Unique identifier for the team member`}),createdAt:w$1().readonly().meta({description:`Timestamp in ISO 8601 format when the member was created`}),updatedAt:w$1().readonly().meta({description:`Timestamp in ISO 8601 format when the member was last updated`}),teamId:k$1.meta({description:`Team this member belongs to`}),userId:j$1.meta({description:`User ID of the team member`}),user:Gs$1({id:j$1.meta({description:`Unique identifier of the user`}),email:ns$1().meta({description:`Email address of the user`}),firstName:Xo$1().meta({description:`First name of the user`}),lastName:Xo$1().meta({description:`Last name of the user`}),imageUrl:Xo$1().optional().meta({description:`Profile image URL of the user`})}).meta({description:`Denormalized user details for quick access without additional queries.`}),permissions:Us$1(R$1).optional().meta({description:`Base permissions across the team. Can be overridden per promoter or venue. Undefined means no base permissions (permissions come from PermissionScope only).`,examples:[[`event.read`,`event.write`,`order.read`],[`team.member.read`,`team.member.write`],[`ticket.scan`],[`*`]]}),roleIds:Us$1(Xo$1()).optional().meta({description:`Role IDs assigned to this team member. Effective permissions are derived from role nodes plus explicit permission nodes.`}),isOwner:Ds$1().meta({description:`Whether this member is the owner of the team. Only one owner per team is allowed. Owner has full control and cannot be deleted.`}),access:Hr.optional().meta({description:`Promoter access summary. Omitted only for legacy/no-access records.`}),tenantId:Xo$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Active team member with base permissions. Permissions can be overridden per promoter or venue. Created when a user accepts an invitation or is directly added to a team.`}),kv=Gs$1({member:Ov}),Av=Ov.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,user:true,teamId:true,permissions:true,isOwner:true}).extend({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),roleIds:Us$1(Xo$1()).min(1).meta({description:`Role IDs assigned to this team member.`}),access:Ur.optional().meta({description:`Optional promoter access assignment. Omit to preserve existing team-wide behavior.`}),isOwner:ic$1(false).optional().meta({description:`Team ownership cannot be assigned when creating a member. External clients sending isOwner: true receive an input validation error; create the non-owner member first, then migrate ownership through POST /teams/{key}/transfer with newOwnerId.`})}).meta({description:`Schema for adding an existing user to a team. Requires userId of an existing user account.`}),jv=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),userId:Xo$1().meta({description:`User ID of the team member to retrieve`})}),Mv=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),query:Xo$1().optional().meta({description:`Search query to filter members by name or email. Case-insensitive partial match`}),limit:L$1(`team members`),cursor:Xo$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing active team members with pagination and search`}),Nv=B$1(Ov,`members`),Pv=Gs$1({key:Xo$1().meta({description:`Team identifier (ID or slug)`}),newOwnerId:Xo$1().meta({description:`Team member ID of the new owner. This member must already exist with ACTIVE status.`})}).meta({description:`Schema for making an active team member the sole owner of their team.`}),Fv=Gs$1({previousOwner:Ov.meta({description:`Primary previous owner retained for compatibility. This member keeps their existing access and loses isOwner status. On an idempotent retry after the transfer is already applied, this is the unchanged current owner.`}),newOwner:Ov.meta({description:`The new owner (now has isOwner: true)`}),demotedOwners:Us$1(Ov).meta({description:`All previous owners whose isOwner status was cleared by the transfer.`})}).meta({description:`Response payload for team ownership transfer operation`}),Iv=Gs$1({id:Xo$1().meta({description:`Team member ID to update`}),roleIds:Us$1(Xo$1()).min(1).meta({description:`Replace role assignments for this team member with the provided role IDs.`}),isOwner:Ds$1().optional().meta({description:`Whether this team member is an owner of the team`}),access:Ur.optional().meta({description:`Optional promoter access assignment. Omit to update only role assignments.`})}).meta({description:`Schema for updating team member roles. Cannot update teamId, userId, or owner status.`});const Rv=b$1.route({method:`GET`,path:`/teams/{key}/members/{userId}`,summary:`Get team member by user ID`,description:`Retrieve a team member using the team key (ID or slug) and user ID`,tags:[`Team Members`]}).input(jv.strict()).output(kv),zv=b$1.route({method:`GET`,path:`/teams/{key}/members`,summary:`List team members with cursor-based pagination`,description:`Returns active team members for a specific team with cursor pagination. Team key can be ID or slug. For pending invitations, use the team invites endpoint instead.`,tags:[`Team Members`]}).input(Mv.strict()).output(Nv),Bv=b$1.route({method:`POST`,path:`/teams/{key}/members`,summary:`Add an existing user to a team`,description:`Directly add an existing user to a team. Team key can be ID or slug. Requires at least one role ID. To invite a new user by email, use the team invites endpoint instead.`,tags:[`Team Members`]}).input(Av.strict()).output(kv),Vv=b$1.route({method:`PATCH`,path:`/teams/{key}/members/{userId}`,summary:`Update a team member's roles`,description:`Update an existing active team member. Team key can be ID or slug. Replaces role assignments. Cannot modify isOwner (use transfer endpoint instead).`,tags:[`Team Members`]}).input(Iv.extend({key:Xo$1(),userId:Xo$1()}).strict()).output(kv),Hv=b$1.route({method:`DELETE`,path:`/teams/{key}/members/{userId}`,summary:`Remove a team member`,description:`Remove an active member from a team. Team key can be ID or slug. Cannot remove the team owner (transfer ownership first). To cancel pending invitations, use the team invites endpoint.`,tags:[`Team Members`]}).input(jv.strict()).output(kv),Uv=b$1.route({method:`POST`,path:`/teams/{key}/transfer`,summary:`Transfer team ownership`,description:`Make an active team member the sole owner. Team key can be ID or slug. A current team owner or tenant administrator can perform this action. The new owner receives the team Admin role, while previous owners keep their existing access and lose only isOwner status.`,tags:[`Team Members`]}).input(Pv.strict()).output(Fv);var Wv={get:Rv,list:zv,create:Bv,update:Vv,remove:Hv,transfer:Uv};const Gv=nc$1([`ALL`,`COUNTRY`,`STATE`,`CITY`,`VENUE`]),Kv=Gs$1({id:Xo$1(),name:Xo$1(),slug:Xo$1(),kind:Gv,parentId:Xo$1().optional(),latitude:Cs$1().optional(),longitude:Cs$1().optional(),radius:Cs$1().optional(),enabled:Ds$1(),order:Cs$1(),zoom:Cs$1().optional(),heroImage:Xo$1().optional(),description:Xo$1().optional()}),qv=Gs$1({tenant:Gs$1({id:Xo$1(),name:Xo$1(),slug:Xo$1(),adminTeamId:Xo$1(),legacyTenantsToTeams:ec$1(Xo$1(),Xo$1()).optional(),features:ec$1(Xo$1(),Ds$1()).optional(),defaultCurrency:Xo$1(),logo:Gs$1({email:Gs$1({src:Xo$1(),width:Cs$1(),height:Cs$1()}),website:Gs$1({src:Xo$1(),width:Cs$1(),height:Cs$1()})}),baseUrl:Gs$1({dev:Xo$1().optional(),production:Xo$1().optional()}),publicBaseUrl:Gs$1({dev:Xo$1().optional(),sandbox:Xo$1().optional(),production:Xo$1().optional()}).optional()}),regions:Us$1(Kv)}),Jv=Gs$1({regions:Us$1(Kv)}),Yv=Gs$1({teamId:Xo$1().optional()}),Xv=Gs$1({counts:Gs$1({teams:Ds$1(),promoters:Ds$1(),venues:Ds$1(),events:Ds$1(),payouts:Ds$1()})}),Zv=Gs$1({kind:nc$1([`CHECK_IN`,`CHECK_OUT`]).meta({description:`The most recent attendee scan action.`}),scannedAt:w$1().meta({description:`Timestamp for the most recent attendee scan.`})}),Qv=nc$1(`#ABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``)).meta({description:`Alpha navigation bucket key for attendee roster jumps.`}),$v=Gs$1({key:Qv,count:T$1().int().min(0).meta({description:`Number of roster rows currently available in this bucket.`}),anchor:Xo$1().meta({description:`Server-issued bookmark for the first roster row in this bucket under the active filters.`})}),ey=Mu.pick({id:true,name:true,entryEndsAt:true}),ty=zu.pick({id:true,name:true}),ny=Gs$1({id:On.meta({examples:[C$1.Ticket.id],description:`Ticket identifier for this attendee roster row.`}),orderId:Dn.meta({examples:[C$1.Ticket.orderId],description:`Order identifier used to navigate to order details.`}),status:Bu.meta({description:`Current ticket status for the attendee row.`}),attendee:Nu.meta({description:`Editable attendee identity fields for this ticket.`}),admission:ey.meta({description:`Admission snapshot needed for roster labels and expiry state.`}),section:ty.optional().meta({description:`Optional section label shown in the roster row.`}),lastScan:Zv.optional().meta({description:`Most recent scan event for compact roster activity text.`}),lastCheckInAt:w$1().optional().meta({description:`Timestamp for the most recent check-in scan, used for checked-in labels.`})}),ry=Gs$1({eventId:A$1.meta({examples:[C$1.Event.id],description:`Event identifier for the attendee roster.`}),since:w$1().meta({examples:[`2026-09-25T10:00:00.000Z`],description:`Return roster rows updated at or after this instant. Pass the previous response's serverTime.`}),admissionIds:Us$1(N$1).optional().meta({examples:[[C$1.Admission.id]],description:`Optional admission filters, matching the roster list.`}),sectionIds:Us$1(Mn).optional().meta({examples:[[C$1.Section.id]],description:`Optional section filters, matching the roster list.`})}),iy=Gs$1({tickets:Us$1(ny).meta({description:`Roster rows changed since the requested instant, oldest change first.`}),truncated:Ds$1().meta({description:`True when more rows changed than one response carries; reload the roster window instead of applying these rows.`}),serverTime:w$1().meta({description:"Server time for this response; pass it as `since` on the next poll."})}),ay=Gs$1({buckets:Us$1($v).meta({description:`Available attendee alpha buckets for the active filter set.`})}),oy=Gs$1({eventId:A$1.meta({examples:[C$1.Event.id],description:`Event identifier for the attendee alpha index.`}),admissionIds:Us$1(N$1).optional().meta({examples:[[C$1.Admission.id]],description:`Optional admission filters used when computing available attendee buckets.`}),sectionIds:Us$1(Mn).optional().meta({examples:[[C$1.Section.id]],description:`Optional section filters used when computing available attendee buckets.`})}),sy=T$1().int().min(1).max(100).prefault(100).meta({examples:[100],description:`Maximum number of attendee roster rows to return per request (1-100, default: 100).`}),cy=Gs$1({eventId:A$1.meta({examples:[C$1.Event.id],description:`Event identifier for the attendee roster.`}),admissionIds:Us$1(N$1).optional().meta({examples:[[C$1.Admission.id]],description:`Optional admission filters. When provided, only matching ticket admissions are included.`}),sectionIds:Us$1(Mn).optional().meta({examples:[[C$1.Section.id]],description:`Optional section filters. When provided, only matching ticket sections are included.`}),query:Xo$1().optional().meta({examples:[`John`,`john@example.com`,`+61400000000`],description:`Optional attendee search query. Matches attendee name, email, and phone.`}),cursor:Jn.optional(),before:Jn.optional().meta({description:`Cursor for loading roster rows before the current window. Mutually exclusive with cursor and anchor.`}),anchor:Xo$1().optional().meta({description:`Server-issued bookmark used to jump to a roster bucket. Mutually exclusive with cursor and before.`}),limit:sy.optional()}),ly=B$1(ny,`tickets`),uy=J$1.pick({status:true,admissionId:true,orderItemId:true}).extend({orderId:Xo$1().meta({examples:[C$1.Order.id],description:`The order this ticket belongs to`}),customerId:Xo$1().meta({examples:[C$1.Customer.id],description:`The customer who purchased this ticket`}),attendee:Nu.optional().meta({description:`Optional attendee information - defaults to order customer details if not provided`})}).meta({description:`Schema for creating a new ticket - caller provides minimal input; derived fields are populated by the service`}),dy=J$1.pick({id:true}).extend({signature:Vr.optional().meta({description:`HMAC signature for public ticket access (16 characters, base64url encoded)`})}).meta({description:`Schema for retrieving a specific ticket by ID with optional signature validation`}),fy=Gs$1({promoterId:Xo$1().optional().meta({examples:[C$1.Promoter.id],description:`Filter tickets by promoter/organizer unique identifier (optional)`}),eventId:Xo$1().optional().meta({examples:[C$1.Event.id],description:`Filter tickets by event unique identifier (optional)`}),customerId:Xo$1().optional().meta({examples:[C$1.Customer.id],description:`Filter tickets by customer unique identifier (optional)`}),orderId:Xo$1().optional().meta({examples:[C$1.Order.id],description:`Filter tickets by order unique identifier (optional)`}),status:Bu.optional().meta({examples:[`ACTIVE`],description:`Filter tickets by status: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)`}),orderSignature:Vr.optional().meta({description:`Order signature used to access tickets for a specific order without permissions (16 characters, base64url encoded)`}),query:Xo$1().optional().meta({examples:[`John Doe`],description:`Optional search query to filter tickets by customer details. When provided, search-backed pagination is used.`}),limit:L$1(`tickets`).optional(),cursor:Xo$1().optional().meta({examples:[`eyJpZCI6InRrdF8wMWpwczVjZ3NnMHMzMncycHI3M3ZiY2NkZSJ9`],description:`Pagination cursor for continuing to fetch subsequent results (optional)`})}).meta({description:`Schema for listing tickets with optional filtering, search, and cursor-based pagination`}),py=B$1(J$1,`tickets`),my=Gs$1({ticket:J$1}),hy=J$1.pick({id:true,eventId:true}).extend({key:J$1.shape.id.meta({description:`Transition key. Supports canonical ticket IDs (tkt_*) and order IDs (ord_*).`}),deviceId:J$1.shape.scans.element.shape.deviceId.optional().meta({description:`Unique identifier of the scanning device (optional).`}),eventId:J$1.shape.eventId.optional().meta({description:`Optional event scope guard for check-in transitions. When provided, check-in fails if the ticket/order event does not match.`}),allowPartialOrderCheckIn:Ds$1().optional().meta({description:`Confirms an order-level check-in when some tickets are already redeemed and some remain active.`}),admissionIds:Us$1(N$1).optional().meta({description:`Optional scanner admission filters. When provided, check-in only applies to matching ticket admissions.`}),sectionIds:Us$1(Mn).optional().meta({description:`Optional scanner section filters. When provided, check-in only applies to matching ticket sections.`}),idempotencyKey:Xo$1().trim().min(1).max(255).optional().meta({description:`Stable client-generated key used to replay a scan request without turning a timed-out success into a duplicate denial.`})}).omit({id:true}).meta({description:`Schema for check-in/check-out transitions addressed by key, where key may resolve to a ticket or order identifier.`}),gy=nc$1([`ticket`,`order`]),_y=nc$1([`NOOP_TRANSITION`]),vy=nc$1([`PARTIAL_ORDER_CONFIRMATION_REQUIRED`]),yy=nc$1([`EVENT_MISMATCH`]),by=nc$1([`FILTERED_OUT`]),xy=Gs$1({id:J$1.shape.orderId,checkedInCount:Cs$1().int().nonnegative().optional(),items:Us$1(Gs$1({quantity:Cs$1().int().positive()}))}),Sy=Pu.pick({id:true,name:true,slug:true,entryStartsAt:true}).extend({teamId:J$1.shape.teamId}),Cy=Gs$1({reason:_y,kind:nc$1([`CHECK_IN`,`CHECK_OUT`]),targetType:gy,order:xy.optional(),ticket:J$1.optional()}),wy=Gs$1({reason:yy,kind:nc$1([`CHECK_IN`,`CHECK_OUT`]),targetType:gy,requestedEventId:J$1.shape.eventId.optional(),event:Sy,order:xy.optional(),ticket:J$1.optional()}),Ty=Gs$1({reason:vy,kind:ic$1(`CHECK_IN`),targetType:ic$1(`order`),order:xy,ticket:J$1.optional()}),Ey=Gs$1({reason:by,kind:ic$1(`CHECK_IN`),targetType:gy,order:xy.optional(),ticket:J$1.optional()}),Dy=Js$1([Cy,wy,Ty,Ey]),Oy=Gs$1({tickets:Us$1(J$1).meta({description:`Transition result tickets. Single-item array for ticket targets and full order tickets for order targets.`}),targetType:gy.meta({description:`Resolved target scope from the provided key.`}),order:xy.optional()}),ky=nc$1([`ACTIVE`,`CANCELLED`]).describe(`Status updates allowed via PATCH: ACTIVE (reactivate), CANCELLED (void). REDEEMED is set via scan endpoint.`),Ay=Gs$1({id:Xo$1().meta({examples:[C$1.Ticket.id],description:`Unique identifier of the ticket to update`}),status:ky.optional().meta({description:`Update ticket status: CANCELLED to void, ACTIVE to reactivate`}),attendee:Nu.partial().nullable().optional().meta({description:`Attendee info. Pass object to set/update, null to clear, or omit to leave unchanged.`}),admissionId:Xo$1().optional().meta({examples:[C$1.Admission.id],description:`Change ticket type/admission (admission and section objects will be fetched from event and stored)`})}).meta({description:`Schema for updating a ticket.`}),jy={id:C$1.User.id,createdAt:C$1.User.createdAt,updatedAt:C$1.User.updatedAt,email:C$1.User.email,firstName:C$1.User.firstName,lastName:C$1.User.lastName,imageUrl:`https://assets.session.services/examples/avatar.jpg`,tenantId:C$1.User.tenantId},My=Gs$1({id:Xo$1().readonly().meta({description:`Unique identifier for the user`,examples:[C$1.User.id]}),createdAt:w$1().readonly().meta({description:`ISO 8601 timestamp when the user account was created`,examples:[C$1.User.createdAt]}),updatedAt:w$1().readonly().meta({description:`ISO 8601 timestamp when the user account was last updated`,examples:[C$1.User.updatedAt]}),email:ns$1().meta({description:`User's email address, used for authentication and communication`,examples:[C$1.User.email]}),firstName:Xo$1().min(1).meta({description:`User's first name`,examples:[C$1.User.firstName]}),lastName:Xo$1().min(1).meta({description:`User's last name`,examples:[C$1.User.lastName]}),imageUrl:os$1().optional().meta({description:`Optional URL to the user's profile image or avatar`,examples:[`https://assets.session.services/examples/avatar.jpg`]}),metadata:ec$1(Xo$1(),Kn).optional().meta({description:`Arbitrary key-value metadata for storing user preferences and settings`,examples:[{"widgets:team_abc123":{visibleWidgets:[`revenue`]}}]})}).meta({ref:`User`,description:`User entity containing profile and audit information scoped to a specific tenant`,examples:[jy]}),Ny=Gs$1({kind:nc$1([`PROMOTER`,`VENUE`]).meta({description:`Resource type that the permission scope applies to.`}),resourceId:Xo$1().meta({description:`Promoter or venue identifier for this permission scope.`}),permissions:Us$1(R$1).meta({description:`Effective permissions for this resource, including role permissions assigned at the scope.`})}).meta({ref:`MePermissionScope`,description:`Effective resource-specific permissions for the current user.`}),Py=Ov.extend({scopes:Us$1(Ny).optional().meta({description:`Resource-specific permissions. Omitted when the membership has no promoter or venue scopes.`})}).meta({ref:`MeTeamMember`,description:`Team membership for the current user with role-expanded team permissions and separate resource scopes.`}),Fy=Gs$1({access:Xo$1().meta({description:`JWT access token with updated user data`}),refresh:Xo$1().meta({description:`Refresh token for obtaining new access tokens`})}).meta({ref:`Tokens`,description:`Authentication tokens for client session management`}),Iy=Gs$1({user:My.meta({description:`The updated user profile`}),tokens:Fy.optional().meta({description:`New JWT tokens with updated user data. Present when refresh token was provided in request.`})}).meta({ref:`UserUpdateResponse`,description:`Response payload for PATCH /users/me containing the updated user profile.`}),Ly=Gs$1({deleted:ic$1(true).meta({description:`Whether the current user account was deleted.`})}).meta({ref:`UserDeleteResponse`,description:`Response payload for DELETE /users/me after deleting the current account.`}),Ry=Gs$1({user:My.nullable().meta({description:`Current authenticated user profile, null if not authenticated`}),isAdmin:Ds$1().meta({description:`Whether the current user has admin privileges for the tenant`}),members:Us$1(Py).meta({description:`All team memberships for the current user within this tenant.`})}).meta({ref:`MeResponse`,description:`Response payload for GET /users/me providing the current user, tenant admin status, and team memberships.`,examples:[{user:{id:`usr_01k5hbpkfje048zccqmqfhjpep`,createdAt:`2025-09-19T16:07:46.418Z`,updatedAt:`2025-09-19T16:07:46.418Z`,email:`j@1f.io`,firstName:`Jay`,lastName:`McMullen`,imageUrl:`https://assets.session.services/examples/avatar.jpg`},isAdmin:true,members:[{id:`mbr_01jps5cgsec5ge0b1bxa6gzkkk`,createdAt:`2025-09-25T03:25:46.080Z`,updatedAt:`2025-09-25T03:25:46.080Z`,teamId:`tem_01jqpjksnsen9vprw95et60t2m`,userId:`usr_01k5hbpkfje048zccqmqfhjpep`,user:{id:`usr_01k5hbpkfje048zccqmqfhjpep`,email:`j@1f.io`,firstName:`Jay`,lastName:`McMullen`,imageUrl:`https://assets.session.services/examples/avatar.jpg`},permissions:[`*`],isOwner:true,tenantId:`tnt_01abc123`}]}]}),zy=Gs$1({id:Xo$1().readonly().meta({description:`Unique identifier for the venue`}),createdAt:w$1().readonly().meta({description:`Timestamp in ISO 8601 format when the venue was created`}),updatedAt:w$1().readonly().meta({description:`Timestamp in ISO 8601 format when the venue was last updated`}),teamId:Xo$1().meta({description:`Team that manages this venue`}),locationId:Tn.meta({examples:[`loc_01h2xk3j9k8m2n5p7q9r1s3t4v`],description:`Location identifier for this venue`}),googlePlaceId:Xo$1().optional().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID when this venue is linked to a Google Places location`}),approval:E$1.meta({examples:[`APPROVED`],description:`Approval status of the venue`}),name:Xo$1().min(3).max(100).meta({description:`Display name of the venue. Must be between 3 and 100 characters`}),slug:Xo$1().min(3).meta({description:`URL-friendly slug for the venue. Must be unique within tenant`}),description:Xo$1().optional().meta({description:`Short description of the venue for listings and discovery`}),image:F$1.optional().meta({description:`Venue image`}),contact:Gs$1({email:ns$1().optional().meta({description:`Public contact email for venue inquiries`}),phone:Xo$1().optional().meta({description:`Public contact phone number`}),website:os$1().optional().meta({description:`Venue website URL`}),instagram:Xo$1().optional().meta({description:`Instagram profile URL`}),facebook:Xo$1().optional().meta({description:`Facebook page URL`}),twitter:Xo$1().optional().meta({description:`Twitter/X profile URL`}),tiktok:Xo$1().optional().meta({description:`TikTok profile URL`}),youtube:Xo$1().optional().meta({description:`YouTube channel URL`})}).optional().meta({description:`Public contact information and social media links`}),location:ps.omit({venueId:true}).meta({description:`Physical location details including address, coordinates, and timezone`}),geohash:Xo$1().meta({description:`Geohash encoding of the venue's location for efficient spatial queries`}),capacity:Cs$1().int().min(1).optional().meta({description:`Maximum capacity of the venue (number of attendees)`}),metadata:qn,deletedAt:w$1().readonly().optional().meta({description:`Timestamp in ISO 8601 format when the venue was soft-deleted. Null if not deleted`}),tenantId:Xo$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`})}).meta({description:`Managed venue with custom branding and details. Teams can claim venues which then appear in location search results.`}),By=zy.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,geohash:true,deletedAt:true,location:true,googlePlaceId:true,approval:true}).extend({description:Br.optional().meta({description:`Short description of the venue for listings and discovery`}),slug:Xo$1().min(3).optional().meta({description:`URL-friendly slug for the venue. If not provided, will be automatically generated from the name. Must be unique within tenant`})}).meta({description:`Schema for creating a new venue. The system automatically derives location details and Google Place ID from the locationId`}),Vy=Gs$1({key:Xo$1().min(1).meta({description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`,examples:[C$1.Venue.id,C$1.Venue.slug]})}),Hy=Gs$1({key:Xo$1().meta({examples:[C$1.Venue.id,C$1.Venue.slug],description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`})}),Uy=nc$1([`createdAt`]),Wy=nc$1([`asc`,`desc`]),Gy=Ks$1({teamId:Xo$1().max(128).optional().meta({description:`Filter venues by owner team ID`}),approval:E$1.optional().meta({description:`Filter venues by approval status. PENDING: awaiting review, APPROVED: can be used for events, REJECTED: cannot be used`}),query:Xo$1().max(120).optional().meta({description:`Optional search query for filtering venues by name or slug`}),latitude:T$1().min(-90).max(90).optional().meta({description:`Latitude for location-based search. Must be used with longitude`}),longitude:T$1().min(-180).max(180).optional().meta({description:`Longitude for location-based search. Must be used with latitude`}),radius:T$1().min(1).max(2e4).optional().meta({description:`Search radius in kilometers (1-20000). Requires latitude and longitude`}),sort:Uy.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest venues first."}),direction:Wy.optional().meta({examples:[`desc`],description:"Sort direction for venue lists. Defaults to `desc` when `sort` is provided."}),limit:L$1(`venues`),cursor:Xo$1().max(768).optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing venues with pagination, filtering, and location-based search`}),Ky=B$1(zy,`venues`).meta({description:`Paginated response containing venues with cursor for next page`}),qy=Gs$1({venue:zy}),Jy=zy.omit({id:true,tenantId:true,teamId:true,createdAt:true,updatedAt:true,deletedAt:true,geohash:true}).partial().extend({key:Xo$1().meta({examples:[C$1.Venue.id,C$1.Venue.slug],description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`}),description:Br.nullable().optional().meta({description:`Short description of the venue. Pass null to clear, omit to leave unchanged.`}),image:F$1.nullable().optional().meta({description:`Venue image. Pass null to clear, omit to leave unchanged.`}),capacity:Cs$1().int().min(1).nullable().optional().meta({description:`Maximum capacity. Pass null to clear, omit to leave unchanged.`}),contact:Gs$1({email:ns$1().optional(),phone:Xo$1().optional(),website:os$1().optional(),instagram:Xo$1().optional(),facebook:Xo$1().optional(),twitter:Xo$1().optional(),tiktok:Xo$1().optional(),youtube:Xo$1().optional()}).nullable().optional().meta({description:`Contact information. Pass null to clear all contact fields, omit to leave unchanged.`}),googlePlaceId:Xo$1().nullable().optional().meta({description:`Google Place ID. Pass null to unlink from Google Places, omit to leave unchanged.`})}).meta({description:`Schema for updating an existing venue. Cannot change teamId (owner). Pass null to clear optional fields.`});Ks$1({id:Xo$1(),email:ns$1(),firstName:Xo$1(),lastName:Xo$1(),imageUrl:Xo$1().url().optional(),tenantId:Xo$1(),createdAt:Xo$1().datetime(),updatedAt:Xo$1().datetime()});const cb=nc$1([`ORDER`,`EVENT`,`TEAM`,`TEAM_INVITE`]).meta({description:`Aggregate type this notification belongs to`}),lb=nc$1([`ORDER_CONFIRMATION`,`REFUND_CONFIRMATION`,`TICKET_CANCELLATION`,`ORDER_REMINDER`,`ORDER_CANCELLATION`,`ORDER_TIME_CHANGE`,`ORDER_VENUE_CHANGE`,`ORDER_TIME_AND_VENUE_CHANGE`,`ORDER_LOCATION_REVEAL`,`EVENT_APPROVAL_REQUEST`,`EVENT_APPROVAL_DECISION`,`TEAM_INVITE`,`ORDER_TICKETS_RESEND`,`INTERNAL_FEEDBACK`]).meta({description:`Notification kind`}),ub=nc$1([`SMS`,`EMAIL`]).meta({description:`Delivery channel`}),db=nc$1([`PENDING`,`PROCESSING`,`SENT`,`DELIVERED`,`FAILED`,`CANCELLED`]).meta({description:`Current notification status`});Gs$1({id:zn.meta({examples:[C$1.Notification.id],description:`Unique notification identifier`}),createdAt:w$1().readonly().meta({examples:[C$1.Notification.createdAt],description:`Timestamp when notification was created`}),updatedAt:w$1().readonly().meta({examples:[C$1.Notification.updatedAt],description:`Timestamp when notification was last updated`}),aggregateType:cb.meta({examples:[C$1.Notification.aggregateType]}),aggregateId:Js$1([Dn,A$1,k$1,Fn]).meta({examples:[C$1.Notification.aggregateId],description:`Aggregate identifier for the notification owner`}),eventId:A$1.optional().meta({examples:[C$1.Notification.eventId],description:`Associated event identifier when applicable`}),kind:lb.meta({examples:[C$1.Notification.kind]}),channel:ub.meta({examples:[C$1.Notification.channel]}),status:db.meta({examples:[C$1.Notification.status]}),providerMessageId:Xo$1().optional().meta({examples:[C$1.Notification.providerMessageId],description:`Provider message identifier`}),sentAt:w$1().optional().meta({examples:[C$1.Notification.sentAt],description:`Timestamp when provider accepted send request`}),deliveredAt:w$1().optional().meta({examples:[C$1.Notification.deliveredAt],description:`Timestamp when provider confirmed delivery`}),failedAt:w$1().optional().meta({examples:[C$1.Notification.failedAt],description:`Timestamp when notification failed`}),failureCode:Xo$1().optional().meta({examples:[C$1.Notification.failureCode],description:`Failure code when notification is FAILED`}),failureReason:Xo$1().optional().meta({examples:[C$1.Notification.failureReason],description:`Failure reason when notification is FAILED`})}).meta({description:`Notification delivery record`});Gs$1({id:P$1.meta({description:`Team member ID to delete`})});
|
|
83
|
+
|
|
84
|
+
function Yf(e,t={}){let n=(e?.pipeThrough(new TextDecoderStream).pipeThrough(new st$1))?.getReader(),r,a=false;return new De$1(async()=>{r??=be$1(`consume_event_iterator_stream`);try{for(;;){if(n===void 0)return {done:true,value:void 0};let{done:e,value:t}=await we$1(r,()=>n.read());if(e){if(a)throw new ge$1(`Stream was cancelled`);return {done:true,value:void 0}}switch(t.event??(t.data===void 0?void 0:`message`)){case `message`:{let e=Ae$1(t.data);return Pe$1(e)&&(e=yt$1(e,t)),r?.addEvent(`message`),{done:false,value:e}}case `error`:{let e=new tt$1({data:Ae$1(t.data)});throw e=yt$1(e,t),r?.addEvent(`error`),e}case `done`:case `close`:{let e=Ae$1(t.data);return Pe$1(e)&&(e=yt$1(e,t)),r?.addEvent(`done`),{done:true,value:e}}default:r?.addEvent(`maybe_keepalive`);}}}catch(e){throw e instanceof tt$1||xe$1(r,e,t),e}},async e=>{try{e!==`next`&&(a=true,r?.addEvent(`cancelled`)),await we$1(r,()=>n?.cancel());}catch(e){throw xe$1(r,e,t),e}finally{r?.end();}})}function Xf(e,t={}){let n=t.eventIteratorKeepAliveEnabled??true,r=t.eventIteratorKeepAliveInterval??5e3,i=t.eventIteratorKeepAliveComment??``,a=t.eventIteratorInitialCommentEnabled??true,o=t.eventIteratorInitialComment??``,s=false,c,l;return new ReadableStream({start(e){l=be$1(`stream_event_iterator`),a&&e.enqueue(_t$1({comments:[o]}));},async pull(t){try{n&&(c=setInterval(()=>{t.enqueue(_t$1({comments:[i]})),l?.addEvent(`keepalive`);},r));let a=await we$1(l,()=>e.next());if(clearInterval(c),s)return;let o=bt$1(a.value);if(!a.done||a.value!==void 0||o!==void 0){let e=a.done?`done`:`message`;t.enqueue(_t$1({...o,event:e,data:je$1(a.value)})),l?.addEvent(e);}a.done&&(t.close(),l?.end());}catch(e){if(clearInterval(c),s)return;e instanceof tt$1?(t.enqueue(_t$1({...bt$1(e),event:`error`,data:je$1(e.data)})),l?.addEvent(`error`),t.close()):(xe$1(l,e),t.error(e)),l?.end();}},async cancel(){try{s=true,clearInterval(c),l?.addEvent(`cancelled`),await we$1(l,()=>e.return?.());}catch(e){throw xe$1(l,e),e}finally{l?.end();}}}).pipeThrough(new TextEncoderStream)}function Zf(e,t={}){return Ce$1({name:`parse_standard_body`,signal:t.signal},async()=>{let n=e.headers.get(`content-disposition`);if(typeof n==`string`){let t=St$1(n)??`blob`,r=await e.blob();return new File([r],t,{type:r.type})}let r=e.headers.get(`content-type`);if(!r||r.startsWith(`application/json`))return Ae$1(await e.text());if(r.startsWith(`multipart/form-data`))return await e.formData();if(r.startsWith(`application/x-www-form-urlencoded`)){let t=await e.text();return new URLSearchParams(t)}if(r.startsWith(`text/event-stream`))return Yf(e.body,t);if(r.startsWith(`text/plain`))return await e.text();let i=await e.blob();return new File([i],`blob`,{type:i.type})})}function Qf(e,t,n={}){if(e instanceof ReadableStream)return e;let r=t.get(`content-disposition`);if(t.delete(`content-type`),t.delete(`content-disposition`),e!==void 0)return e instanceof Blob?(t.set(`content-type`,e.type),t.set(`content-length`,e.size.toString()),t.set(`content-disposition`,r??xt$1(e instanceof File?e.name:`blob`)),e):e instanceof FormData||e instanceof URLSearchParams?e:Te$1(e)?(t.set(`content-type`,`text/event-stream`),Xf(e,n)):(t.set(`content-type`,`application/json`),je$1(e))}function $f(e,t={}){return e.forEach((e,n)=>{Array.isArray(t[n])?t[n].push(e):t[n]===void 0?t[n]=e:t[n]=[t[n],e];}),t}function ep(e,t=new Headers){for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e);else r!==void 0&&t.append(n,r);return t}function tp(e,t={}){let n=ep(e.headers),r=Qf(e.body,n,t);return new Request(e.url,{signal:e.signal,method:e.method,headers:n,body:r})}function np(e,t={}){return {body:_e$1(()=>Zf(e,t)),status:e.status,get headers(){let t=$f(e.headers);return Object.defineProperty(this,"headers",{value:t,writable:true}),t},set headers(e){Object.defineProperty(this,"headers",{value:e,writable:true});}}}var rp=class{plugins;constructor(e=[]){this.plugins=[...e].sort((e,t)=>(e.order??0)-(t.order??0));}init(e){for(let t of this.plugins)t.init?.(e);}},ip=class{constructor(e,t,n={}){this.codec=e,this.sender=t,new rp(n.plugins).init(n),this.interceptors=me$1(n.interceptors),this.clientInterceptors=me$1(n.clientInterceptors);}interceptors;clientInterceptors;call(e,t,n){return Ce$1({name:`${he$1}.${e.join(`/`)}`,signal:n.signal},r=>(r?.setAttribute(`rpc.system`,he$1),r?.setAttribute(`rpc.method`,e.join(`.`)),Te$1(t)&&(t=Oe$1({name:`consume_event_iterator_input`,signal:n.signal},t)),ke$1(this.interceptors,{...n,path:e,input:t},async({path:e,input:t,...n})=>{let i=ye$1(),a,o=i?.trace.getActiveSpan()??r;o&&i&&(a=i?.trace.setSpan(i.context.active(),o));let s=await Ce$1({name:`encode_request`,context:a},()=>this.codec.encode(e,t,n)),c=await ke$1(this.clientInterceptors,{...n,input:t,path:e,request:s},({input:e,path:t,request:n,...r})=>Ce$1({name:`send_request`,signal:r.signal,context:a},()=>this.sender.call(n,r,t,e))),l=await Ce$1({name:`decode_response`,context:a},()=>this.codec.decode(c,n,e,t));return Te$1(l)?Oe$1({name:`consume_event_iterator_output`,signal:n.signal},l):l})))}};new Set(Object.values({BIGINT:0,DATE:1,NAN:2,UNDEFINED:3,URL:4,REGEXP:5,SET:6,MAP:7}));function ap(e){return `/${e.map(encodeURIComponent).join(`/`)}`}function op(e){return typeof e.forEach==`function`?$f(e):e}function sp(e){return Object.entries(Ue$1).find(([,t])=>t.status===e)?.[0]??`MALFORMED_ORPC_ERROR_RESPONSE`}var cp=class extends rp{initRuntimeAdapter(e){for(let t of this.plugins)t.initRuntimeAdapter?.(e);}},lp=class{fetch;toFetchRequestOptions;adapterInterceptors;constructor(e){new cp(e.plugins).initRuntimeAdapter(e),this.fetch=e.fetch??globalThis.fetch.bind(globalThis),this.toFetchRequestOptions=e,this.adapterInterceptors=me$1(e.adapterInterceptors);}async call(e,t,n,r){let i=tp(e,this.toFetchRequestOptions);return np(await ke$1(this.adapterInterceptors,{...t,request:i,path:n,input:r,init:{redirect:`manual`}},({request:e,path:t,input:n,init:r,...i})=>this.fetch(e,r,i,t,n)),{signal:i.signal})}},up=class{maxArrayIndex;constructor(e={}){this.maxArrayIndex=e.maxBracketNotationArrayIndex??9999;}serialize(e,t=[],n=[]){if(Array.isArray(e))e.forEach((e,r)=>{this.serialize(e,[...t,r],n);});else if(Ne$1(e))for(let r in e)this.serialize(e[r],[...t,r],n);else n.push([this.stringifyPath(t),e]);return n}deserialize(e){if(e.length===0)return {};let t=new WeakSet,n={value:[]};for(let[r,i]of e){let e=this.parsePath(r),a=n,o=`value`;e.forEach((n,r)=>{!Array.isArray(a[o])&&!Ne$1(a[o])&&(a[o]=[]),r===e.length-1?Array.isArray(a[o])&&(n===``?a[o].length&&!t.has(a[o])&&(a[o]=fp(a[o])):t.has(a[o])?(t.delete(a[o]),a[o]=pp(a[o])):dp(n,this.maxArrayIndex)||(a[o]=fp(a[o]))):Array.isArray(a[o])&&!dp(n,this.maxArrayIndex)&&(t.has(a[o])?(t.delete(a[o]),a[o]=pp(a[o])):a[o]=fp(a[o])),a=a[o],o=n;}),Array.isArray(a)&&o===``?(t.add(a),a.push(i)):o in a?Array.isArray(a[o])?a[o].push(i):a[o]=[a[o],i]:a[o]=i;}return n.value}stringifyPath(e){return e.map(e=>e.toString().replace(/[\\[\]]/g,e=>{switch(e){case `\\`:return `\\\\`;case `[`:return `\\[`;case `]`:return `\\]`;default:return e}})).reduce((e,t,n)=>n===0?t:`${e}[${t}]`,``)}parsePath(e){let t=[],n=false,r=``,i=0;for(let a=0;a<e.length;a++){let o=e[a],s=e[a+1];n&&o===`]`&&(s===void 0||s===`[`)&&i%2==0?(s===void 0&&(n=false),t.push(r),r=``,a++):t.length===0&&o===`[`&&i%2==0?(n=true,t.push(r),r=``):o===`\\`?i++:(r+=`\\`.repeat(i/2)+o,i=0);}return n||t.length===0?[e]:t}};function dp(e,t){return /^0$|^[1-9]\d*$/.test(e)&&Number(e)<=t}function fp(e){let t=new Ie$1;return e.forEach((e,n)=>{t[n]=e;}),t}function pp(e){let t=new Ie$1;return t[``]=e.length===1?e[0]:e,t}var mp=class{customSerializers;constructor(e={}){this.customSerializers=e.customJsonSerializers??[];}serialize(e,t={value:false}){for(let n of this.customSerializers)if(n.condition(e))return this.serialize(n.serialize(e),t);if(e instanceof Blob)return t.value=true,[e,t.value];if(e instanceof Set)return this.serialize(Array.from(e),t);if(e instanceof Map)return this.serialize(Array.from(e.entries()),t);if(Array.isArray(e))return [e.map(e=>e===void 0?null:this.serialize(e,t)[0]),t.value];if(Ne$1(e)){let n={};for(let r in e)r===`toJSON`&&typeof e[r]==`function`||(n[r]=this.serialize(e[r],t)[0]);return [n,t.value]}return typeof e==`bigint`||e instanceof RegExp||e instanceof URL?[e.toString(),t.value]:e instanceof Date?[Number.isNaN(e.getTime())?null:e.toISOString(),t.value]:Number.isNaN(e)?[null,t.value]:[e,t.value]}};function hp(e,t){return !Ne$1(e)||e.status!==void 0||typeof e.code!=`string`?e:{...e,status:We$1(e.code,t)}}function gp(e){return `/${e.replace(/\/{2,}/g,`/`).replace(/^\/|\/$/g,``)}`}function _p(e){return e?gp(e).match(/\/\{[^}]+\}/g)?.map(e=>({raw:e,name:e.match(/\{\+?([^}]+)\}/)[1]})):void 0}var vp=class{constructor(e,t,n){this.contract=e,this.serializer=t,this.baseUrl=n.url,this.headers=n.headers??{},this.customErrorResponseBodyDecoder=n.customErrorResponseBodyDecoder;}baseUrl;headers;customErrorResponseBodyDecoder;async encode(e,t,n){let r=op(await Le$1(this.headers,n,e,t));n.lastEventId!==void 0&&(r=Ct$1(r,{"last-event-id":n.lastEventId}));let i=await Le$1(this.baseUrl,n,e,t),a=Fe$1(this.contract,e);if(!jt$1(a))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${e.join(`.`)}`);return Vt$1(`defaultInputStructure`,a[`~orpc`].route.inputStructure)===`compact`?this.#e(a,e,t,n,i,r):this.#t(a,e,t,n,i,r)}#e(e,t,n,r,i,a){let o=gp(e[`~orpc`].route.path??ap(t)),s=n,c=_p(o);if(c?.length){if(!Ne$1(n))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "compact" structure when has dynamic params at ${t.join(`.`)}.`);let e={...n};for(let t of c){let r=n[t.name];o=o.replace(t.raw,`/${encodeURIComponent(`${this.serializer.serialize(r)}`)}`),delete e[t.name];}s=Object.keys(e).length?e:void 0;}let l=Vt$1(`defaultMethod`,e[`~orpc`].route.method),u=new URL(i);if(u.pathname=`${u.pathname.replace(/\/$/,``)}${o}`,l===`GET`){let e=this.serializer.serialize(s,{outputFormat:`URLSearchParams`});for(let[t,n]of e)u.searchParams.append(t,n);return {url:u,method:l,headers:a,body:void 0,signal:r.signal}}return {url:u,method:l,headers:a,body:this.serializer.serialize(s),signal:r.signal}}#t(e,t,n,r,i,a){let o=gp(e[`~orpc`].route.path??ap(t)),s=_p(o);if(!Ne$1(n)&&n!==void 0)throw TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "detailed" structure at ${t.join(`.`)}.`);if(s?.length){if(!Ne$1(n?.params))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input.params shape for "detailed" structure when has dynamic params at ${t.join(`.`)}.`);for(let e of s){let t=n.params[e.name];o=o.replace(e.raw,`/${encodeURIComponent(`${this.serializer.serialize(t)}`)}`);}}let c=a;if(n?.headers!==void 0){if(!Ne$1(n.headers))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input.headers shape for "detailed" structure at ${t.join(`.`)}.`);c=Ct$1(n.headers,a);}let l=Vt$1(`defaultMethod`,e[`~orpc`].route.method),u=new URL(i);if(u.pathname=`${u.pathname.replace(/\/$/,``)}${o}`,n?.query!==void 0){let e=this.serializer.serialize(n.query,{outputFormat:`URLSearchParams`});for(let[t,n]of e)u.searchParams.append(t,n);}return l===`GET`?{url:u,method:l,headers:c,body:void 0,signal:r.signal}:{url:u,method:l,headers:c,body:this.serializer.serialize(n?.body),signal:r.signal}}async decode(e,t,n){let r=!Xe$1(e.status),i=await(async()=>{let t=false;try{let n=await e.body();return t=true,this.serializer.deserialize(n)}catch(e){throw Error(t?`Invalid OpenAPI response format.`:`Cannot parse response body, please check the response body and content-type.`,{cause:e})}})();if(!r){let t=this.customErrorResponseBodyDecoder?.(i,e);if(t!=null)throw t;let n=hp(i,e.status);throw Ze$1(n)?Qe$1(n):new qe$1(sp(e.status),{status:e.status,data:{...e,body:i}})}let a=Fe$1(this.contract,n);if(!jt$1(a))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${n.join(`.`)}`);return Vt$1(`defaultOutputStructure`,a[`~orpc`].route.outputStructure)===`compact`?i:{status:e.status,headers:e.headers,body:i}}},yp=class{constructor(e,t){this.jsonSerializer=e,this.bracketNotation=t;}serialize(e,t={}){return Te$1(e)&&!t.outputFormat?wt$1(e,{value:async e=>this.#e(e,{outputFormat:`plain`}),error:async e=>new tt$1({data:this.#e(Ye$1(e).toJSON(),{outputFormat:`plain`}),cause:e})}):this.#e(e,t)}#e(e,t){let[n,r]=this.jsonSerializer.serialize(e);if(t.outputFormat===`plain`)return n;if(t.outputFormat===`URLSearchParams`){let e=new URLSearchParams;for(let[t,r]of this.bracketNotation.serialize(n))(typeof r==`string`||typeof r==`number`||typeof r==`boolean`)&&e.append(t,r.toString());return e}if(n instanceof Blob||n===void 0||!r)return n;let i=new FormData;for(let[e,t]of this.bracketNotation.serialize(n))typeof t==`string`||typeof t==`number`||typeof t==`boolean`?i.append(e,t.toString()):t instanceof Blob&&i.append(e,t);return i}deserialize(e){return e instanceof URLSearchParams||e instanceof FormData?this.bracketNotation.deserialize(Array.from(e.entries())):Te$1(e)?wt$1(e,{value:async e=>e,error:async e=>{if(e instanceof tt$1){let t=hp(e.data);if(Ze$1(t))return Qe$1(t,{cause:e})}return e}}):e}},bp=class extends ip{constructor(e,t,n){let r=new vp(e,new yp(new mp(n),new up({maxBracketNotationArrayIndex:4294967294})),n);super(r,t,n);}},xp=class extends bp{constructor(e,t){let n=new lp(t);super(e,n,t);}};const Dp=b$1.route({method:`GET`,path:`/events/{eventId}/admissions/{id}`,summary:`Get admission by ID`,tags:[`Admissions`]}).input(Xr.strict()).output(ri),Op=b$1.route({method:`POST`,path:`/events/{eventId}/admissions`,summary:`Create a new admission`,tags:[`Admissions`]}).input(Jr.strict()).output(ri),kp=b$1.route({method:`PUT`,path:`/events/{eventId}/admissions/{id}`,summary:`Update an admission`,tags:[`Admissions`]}).input(ii.strict()).output(ri);var Ap={get:Dp,list:b$1.route({method:`GET`,path:`/events/{eventId}/admissions`,summary:`List admissions`,description:`Returns admissions with cursor-based pagination. Automatically uses search-backed pagination when query parameter is provided for full-text search capabilities.`,tags:[`Admissions`]}).input(Zr.strict()).output(Qr),create:Op,update:kp,remove:b$1.route({method:`DELETE`,path:`/events/{eventId}/admissions/{id}`,summary:`Delete an admission`,tags:[`Admissions`]}).input(Yr.strict()).output(ri),quote:b$1.route({method:`POST`,path:`/events/{eventId}/admissions/quote`,summary:`Create an admission quote`,tags:[`Admissions`]}).input(ti.strict()).output(ni)};const Z={BAD_REQUEST:{status:400,data:Gs$1({unresolvedRequired:Us$1(Xo$1()),unresolvedOptional:Us$1(Xo$1()).optional(),issues:Us$1(Xo$1()).optional()}).optional()}};var jp={track:b$1.route({method:`POST`,path:`/analytics/track`,summary:`Track event`,tags:[`Analytics`]}).input(go).errors(Z).output(fo),page:b$1.route({method:`POST`,path:`/analytics/page`,summary:`Page event`,tags:[`Analytics`]}).input(go).errors(Z).output(fo),identify:b$1.route({method:`POST`,path:`/analytics/identify`,summary:`Identify event`,tags:[`Analytics`]}).input(go).errors(Z).output(fo),alias:b$1.route({method:`POST`,path:`/analytics/alias`,summary:`Alias event`,tags:[`Analytics`]}).input(go).errors(Z).output(fo),group:b$1.route({method:`POST`,path:`/analytics/group`,summary:`Group event`,tags:[`Analytics`]}).input(go).errors(Z).output(fo),screen:b$1.route({method:`POST`,path:`/analytics/screen`,summary:`Screen event`,tags:[`Analytics`]}).input(go).errors(Z).output(fo)};const Mp=Gs$1({expected:Xo$1(),actual:Xo$1()}),Np=Gs$1({currency:D$1.meta({description:`Currency already assigned to another payout account`})}).meta({description:`Details about a conflicting beneficiary payout account`}),Pp=b$1.route({method:`GET`,path:`/beneficiaries/{id}`,summary:`Get beneficiary by ID`,tags:[`Beneficiaries`]}).input(Eo.strict()).output(Ao),Fp=b$1.route({method:`POST`,path:`/beneficiaries`,summary:`Create a new beneficiary`,tags:[`Beneficiaries`]}).input(To.strict()).errors({BAD_REQUEST:{status:400,data:Mp.optional()},CONFLICT:{status:409,data:Np}}).output(Ao);var Ip={get:Pp,list:b$1.route({method:`GET`,path:`/beneficiaries`,summary:`List beneficiaries with cursor-based pagination`,description:"Returns beneficiary data with cursor-based pagination and optional full-text search via the `query` parameter.",tags:[`Beneficiaries`]}).input(Oo.strict()).output(ko),create:Fp,remove:b$1.route({method:`DELETE`,path:`/beneficiaries/{id}`,summary:`Delete a beneficiary`,tags:[`Beneficiaries`]}).input(Do.strict()).output(Ao),schema:zo,validate:Uo};const Lp=Js$1([Gs$1({field:ic$1(`code`),reason:ic$1(`taken`),value:Xo$1()}),Gs$1({code:Xo$1()})]),Rp=b$1.route({method:`GET`,path:`/coupon-codes/{id}`,summary:`Get coupon code by ID`,tags:[`Coupon Codes`]}).input(Xo.strict()).output(is),zp=b$1.route({method:`POST`,path:`/coupon-codes`,summary:`Create a new coupon code`,tags:[`Coupon Codes`]}).input($o.strict()).errors({CONFLICT:{status:409,data:Lp.optional()}}).output(is),Bp=b$1.route({method:`PUT`,path:`/coupon-codes/{id}`,summary:`Update a coupon code`,tags:[`Coupon Codes`]}).input(es.strict()).output(is);var Vp={get:Rp,list:b$1.route({method:`GET`,path:`/coupon-codes`,summary:`List coupon codes with cursor-based pagination`,description:"Returns coupon code data with cursor-based pagination and optional full-text search via the `query` parameter.",tags:[`Coupon Codes`]}).input(ns.strict()).output(rs),create:zp,update:Bp,remove:b$1.route({method:`DELETE`,path:`/coupon-codes/{id}`,summary:`Delete a coupon code`,tags:[`Coupon Codes`]}).input(ts.strict()).output(is)};const Hp=Gs$1({committedAndHeldUses:Cs$1(),requestedLimit:Cs$1()}),Up=b$1.route({method:`GET`,path:`/coupons/{id}`,summary:`Get coupon by ID`,tags:[`Coupons`]}).input(os.strict()).output(us),Wp=b$1.route({method:`POST`,path:`/coupons`,summary:`Create a new coupon`,tags:[`Coupons`]}).input(as).output(us),Gp=b$1.route({method:`PUT`,path:`/coupons/{id}`,summary:`Update a coupon`,tags:[`Coupons`]}).input(ds).errors({BAD_REQUEST:{status:400,data:Hp.optional()}}).output(us);var Kp={get:Up,list:b$1.route({method:`GET`,path:`/coupons`,summary:`List coupons with cursor-based pagination`,description:"Returns coupon data with cursor-based pagination and optional full-text search via the `query` parameter.",tags:[`Coupons`]}).input(cs.strict()).output(ls),create:Wp,update:Gp,remove:b$1.route({method:`DELETE`,path:`/coupons/{id}`,summary:`Delete a coupon`,tags:[`Coupons`]}).input(ss.strict()).output(us),code:Vp};const qp=Gs$1({eventId:A$1.optional().meta({description:`Event ID for rate limiting and change detection. If provided, suggestions are limited to once per day per event and only if the description changed significantly.`,examples:[C$1.Event.id]}),description:Xo$1().min(100).max(1e4).meta({description:`Event description to analyze for genre and category suggestions. Minimum 100 characters required for meaningful AI analysis.`,examples:[`Join us for an all-night warehouse party featuring the best in tech house and melodic techno. BYO drinks, intimate vibes, and a killer sound system.`]}),eventName:Xo$1().optional().meta({description:`Optional event name for additional context`,examples:[`Warehouse Sessions Vol. 5`]}),imageUrl:os$1().optional().meta({description:`Optional event artwork URL for visual analysis (multimodal)`,examples:[`https://assets.session.services/events/poster.jpg`]})}).meta({description:`Input for AI-powered event tag suggestions`}),Jp=Gs$1({genres:Us$1(vn).max(5).meta({description:`Suggested music genres based on event description and artwork`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:Us$1(gn).max(10).meta({description:`Suggested event categories based on description and artwork`,examples:[[`Warehouse`,`Underground`,`BYO`]]}),confidence:Cs$1().min(0).max(1).meta({description:`AI confidence score for the suggestions (0-1)`,examples:[.85]}),startDate:Xo$1().optional().meta({description:`Event start date/time. Either ISO 8601 format (if specific date found) or natural language hint for relative dates (e.g., 'next Saturday 9pm').`,examples:[`2025-02-15T21:00:00`,`next Saturday 9pm`]}),endDate:Xo$1().optional().meta({description:`Event end date/time. Either ISO 8601 format (if specific date found) or natural language hint.`,examples:[`2025-02-16T04:00:00`,`6am Sunday`]}),venueName:Xo$1().optional().meta({description:`Venue or location name extracted from the description or artwork. Used to search for and prefill the event location.`,examples:[`Warehouse 21`,`The Metro Theatre`]}),ticketUrl:os$1().optional().meta({description:`External ticket purchase URL if found in the description. Only extracted if different from the host platform.`,examples:[`https://www.eventbrite.com/e/warehouse-sessions-tickets-123`]})}).meta({description:`AI-generated genre and category suggestions for an event`});Gs$1({estimatedInputTokens:Cs$1().int().meta({description:`Estimated input tokens for the request`,examples:[500]}),estimatedOutputTokens:Cs$1().int().meta({description:`Estimated output tokens for the response`,examples:[100]}),estimatedCostUsd:Cs$1().meta({description:`Estimated cost in USD`,examples:[.002]}),includesImage:Ds$1().meta({description:`Whether the estimate includes image analysis`,examples:[true]})}).meta({description:`Cost estimate for an AI tag suggestion request`});var Yp={suggestTags:b$1.route({method:`POST`,path:`/events/tags`,summary:`Suggest event genres and categories`,description:`Uses AI to analyze event description and optional artwork to suggest relevant music genres and event categories. Returns up to 5 genres and 10 categories with a confidence score.`,tags:[`Events`]}).input(qp.strict()).output(Jp)};const Xp=Gs$1({eventId:A$1.meta({description:`Event to like`})}).meta({description:`Request to like an event`}),Zp=Gs$1({limit:L$1(`likes`),cursor:Xo$1().optional().meta({description:`Pagination cursor from previous response. Used to fetch next page of results`})}).meta({description:`Query parameters for listing the current user's liked events with pagination. Returns events sorted by most recently liked first.`}),Qp=Gs$1({tenantId:Xo$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`}),userId:j$1.readonly().meta({description:`User who liked the event`}),eventId:A$1.meta({description:`Event the user liked`}),createdAt:w$1().readonly().meta({description:`Timestamp when the user liked the event`})}).meta({description:`Represents a user's like on an event. Used for tracking popular events and building personalized recommendations.`}),$p=B$1(Qp,`likes`).meta({description:`Paginated list of event likes. Use cursor-based pagination to navigate through results.`}),em=Gs$1({eventId:A$1.meta({description:`Event to remove like from`})}).meta({description:`Request to remove the current user's like from an event`}),tm=Gs$1({like:Qp});var nm={add:b$1.route({method:`POST`,path:`/events/{eventId}/like`,summary:`Like an event`,description:`Like an event as the current user. Atomically increments the event's likes counter.`,tags:[`Events`]}).input(Xp).output(tm),remove:b$1.route({method:`DELETE`,path:`/events/{eventId}/like`,summary:`Remove like from an event`,description:`Remove the current user's like from an event. Atomically decrements the event's likes counter.`,tags:[`Events`]}).input(em).output(zs$1()),list:b$1.route({method:`GET`,path:`/events/likes`,summary:`List liked events`,description:`List all events the current user has liked, with cursor-based pagination.`,tags:[`Events`]}).input(Zp).output($p)};const rm=qi.extend({limit:T$1().min(1).max(100).optional().default(10)}),im=Gi.extend({limit:T$1().min(1).max(100).optional().default(10)}),am=$i.extend({limit:T$1().min(1).max(100).optional().default(10)}),om=Yi.extend({limit:T$1().min(1).max(100).optional().default(10)}),sm=Zi.extend({limit:T$1().min(1).max(100).optional().default(10)}),cm=ta.extend({limit:T$1().min(1).max(100).optional().default(10)}),lm=ra.extend({limit:T$1().min(1).max(100).optional().default(10)}),um=ua.extend({limit:T$1().min(1).max(50).optional().default(10)}),dm=fa.extend({includeAdmission:sn().optional().default(true),includeSection:sn().optional().default(true)}),fm=_a.extend({}),pm=b$1.route({method:`GET`,path:`/events/{eventId}/performance/summary`,summary:`Get event performance summary`,description:`Top-level KPI metrics with period comparison based on tracking events`,tags:[`Event Performance`]}).input(Oi).output(ki),mm=b$1.route({method:`GET`,path:`/events/{eventId}/performance/tickets`,summary:`Get ticket sales performance`,description:`Time series of sold tickets and successful-order revenue by period, with admission and section breakdowns`,tags:[`Event Performance`]}).input(Ai).output(ji),hm=b$1.route({method:`GET`,path:`/events/{eventId}/performance/timeseries`,summary:`Get event metric time series`,description:`Per-bucket series of revenue, tickets, orders, page views, visitors, and conversion rate for the selected range`,tags:[`Event Performance`]}).input(Ni).output(Pi),gm=b$1.route({method:`GET`,path:`/events/{eventId}/performance/funnel`,summary:`Get sales funnel performance`,description:`Conversion funnel showing drop-off at each stage from tracking events`,tags:[`Event Performance`]}).input(Fi).output(Ii),_m=b$1.route({method:`GET`,path:`/events/{eventId}/performance/campaigns`,summary:`Get campaign performance`,description:`Marketing campaign metrics from tracking events (UTM campaign parameter)`,tags:[`Event Performance`]}).input(rm).output(Ji),vm=b$1.route({method:`GET`,path:`/events/{eventId}/performance/coupons`,summary:`Get coupon performance`,description:`Coupon usage and revenue from actual order data`,tags:[`Event Performance`]}).input(im).output(Ki),ym=b$1.route({method:`GET`,path:`/events/{eventId}/performance/mediums`,summary:`Get traffic medium performance`,description:`Performance by traffic medium (social, email, cpc) from tracking events`,tags:[`Event Performance`]}).input(om).output(Xi),bm=b$1.route({method:`GET`,path:`/events/{eventId}/performance/devices`,summary:`Get device performance`,description:`Performance breakdown by device type from tracking events`,tags:[`Event Performance`]}).input(sm).output(Qi),xm=b$1.route({method:`GET`,path:`/events/{eventId}/performance/browsers`,summary:`Get browser performance`,description:`Traffic breakdown by browser from tracking events`,tags:[`Event Performance`]}).input(am).output(ea),Sm=b$1.route({method:`GET`,path:`/events/{eventId}/performance/locations`,summary:`Get geographic performance`,description:`Performance by geographic location from tracking events`,tags:[`Event Performance`]}).input(cm).output(na),Cm=b$1.route({method:`GET`,path:`/events/{eventId}/performance/traffic`,summary:`Get traffic source performance`,description:`Top referral sources and channels from tracking events`,tags:[`Event Performance`]}).input(lm).output(ia),wm=b$1.route({method:`GET`,path:`/events/{eventId}/performance/attendance`,summary:`Get event attendance statistics`,description:`Check-in statistics and attendance breakdown by admission and section`,tags:[`Event Performance`]}).input(aa).output(la),Tm=b$1.route({method:`GET`,path:`/events/{eventId}/performance/scanners`,summary:`Get door staff scanner activity`,description:`Ranked check-in activity by scanner for post-event door staff analytics`,tags:[`Event Performance`]}).input(um).output(da),Em=b$1.route({method:`GET`,path:`/events/{eventId}/performance/turnout`,summary:`Get event turnout analysis`,description:`Post-event sold versus checked-in tickets by admission and section`,tags:[`Event Performance`]}).input(dm).output(ga),Dm=b$1.route({method:`GET`,path:`/events/{eventId}/performance/pace`,summary:`Get event check-in pace`,description:`Post-event check-in flow over the admission entry window with peak door volume`,tags:[`Event Performance`]}).input(fm).output(va);var Om={couponAttendance:b$1.route({method:`GET`,path:`/events/{eventId}/performance/coupon-attendance`,summary:`Get check-in attendance by coupon code`,tags:[`Event Performance`]}).input(ai).output(si),summary:pm,tickets:mm,timeseries:hm,funnel:gm,campaigns:_m,coupons:vm,mediums:ym,devices:bm,browsers:xm,locations:Sm,traffic:Cm,attendance:wm,scanners:Tm,turnout:Em,pace:Dm};const km=b$1.route({method:`GET`,path:`/events/slugs`,summary:`List event slugs`,description:`List current event slugs with the same filters and access rules as event lists. Supports skip/limit pagination for sitemap generation.`,tags:[`Events`]}).input(bc).output(xc),Am=b$1.route({method:`GET`,path:`/events/{key}`,summary:`Get event by ID or slug`,description:`Retrieve an event using either its unique ID or URL-friendly slug`,tags:[`Events`]}).input(lc).output(Ps),jm=b$1.route({method:`POST`,path:`/events`,summary:`Create a new event`,tags:[`Events`]}).input(ac.strict()).output(_c),Mm=b$1.route({method:`POST`,path:`/events/{key}/duplicate`,summary:`Duplicate an event`,description:`Create a new event by copying event details, sections, and admissions from an existing event.`,tags:[`Events`]}).input(sc.strict()).output(_c),Nm=b$1.route({method:`PUT`,path:`/events/{key}`,summary:`Update an event`,description:`Update an event using either its unique ID or URL-friendly slug`,tags:[`Events`]}).input(Cc.strict()).output(_c),Pm={get:b$1.route({method:`GET`,path:`/events/{key}/approval`,summary:`Get event approval status`,description:`Get internal event approval status and reviewer feedback. Requires event.read permission on the event owner team.`,tags:[`Events`]}).input(Ls.strict()).output(zs),request:b$1.route({method:`POST`,path:`/events/{key}/approval/request`,summary:`Request event approval`,description:`Request or resubmit event approval. Requires event.write permission on the event owner team.`,tags:[`Events`]}).input(Bs.strict()).output(_c),update:b$1.route({method:`PUT`,path:`/events/{key}/approval`,summary:`Approve or reject an event`,description:`Approve or reject an event. Requires event.write permission on the tenant admin team.`,tags:[`Events`]}).input(Vs.strict()).output(_c)};var Fm={slugs:km,get:Am,list:b$1.route({method:`GET`,path:`/events`,summary:`List events`,description:`List events with filters for status, approval, visibility, and promoter. Supports full‑text search (query), geo search (latitude/longitude/radius), and cursor-based pagination.`,tags:[`Events`]}).input(mc).output(gc),create:jm,duplicate:Mm,update:Nm,approval:Pm,remove:b$1.route({method:`DELETE`,path:`/events/{key}`,summary:`Delete an event`,description:`Delete an event using either its unique ID or URL-friendly slug`,tags:[`Events`]}).input(oc.strict()).output(_c),feature:b$1.route({method:`POST`,path:`/events/{key}/feature`,summary:`Toggle event featured status`,description:`Set or remove featured status on an event. Tenant admin only.`,tags:[`Events`]}).input(cc.strict()).output(_c),like:nm,performance:Om,tags:Yp.suggestTags},Im={get:b$1.route({method:`GET`,path:`/events/{eventId}/collaborators/{id}`,summary:`Get event collaborator by ID`,description:`Retrieve an active event collaboration by its unique ID. Returns the collaborator record with promoter and permission details.`,tags:[`Event Collaborators`]}).input(Oc.strict()).output(Mc),list:b$1.route({method:`GET`,path:`/events/{eventId}/collaborators`,summary:`List active event collaborators with cursor-based pagination`,description:`Returns active event collaborations for a specific event with cursor pagination. Only shows accepted collaborators. For pending invitations, use the invite endpoints.`,tags:[`Event Collaborators`]}).input(Ac.strict()).output(jc),create:b$1.route({method:`POST`,path:`/events/{eventId}/collaborators`,summary:`Invite a promoter to collaborate on an event`,description:`Send a collaboration invitation to a promoter (can be from a different team). Enables cross-team promoter-to-promoter collaboration. Creates a pending invitation with a secure token that expires in 7 days. The invited promoter must accept to create an active collaboration.`,tags:[`Event Collaborators`]}).input(Dc.strict()).output(kc),accept:b$1.route({method:`POST`,path:`/events/{eventId}/collaborators/{id}/accept`,summary:`Accept an event collaboration invitation`,description:`Accept a pending event collaboration invitation. User must be a member of the invited promoter's team. Deletes the invitation and creates an active collaboration record.`,tags:[`Event Collaborators`]}).input(Tc.strict()).output(Mc),remove:b$1.route({method:`DELETE`,path:`/events/{eventId}/collaborators/{id}`,summary:`Remove active event collaboration`,description:`Remove an active collaboration (hard delete). Can be done by event team members or the collaborating team members. This completely removes access.`,tags:[`Event Collaborators`]}).input(Oc.strict()).output(zs$1())},Lm={list:b$1.route({method:`GET`,path:`/integrations`,tags:[`Integrations`],summary:`List team integrations`}).input(Ic).output(Lc),get:b$1.route({method:`GET`,path:`/integrations/{id}`,tags:[`Integrations`],summary:`Get an integration`}).input(Rc).output(Fc),create:b$1.route({method:`POST`,path:`/integrations`,tags:[`Integrations`],summary:`Connect a team integration`}).input(zc).output(Fc).errors({BAD_GATEWAY:{status:502}}),update:b$1.route({method:`PATCH`,path:`/integrations/{id}`,tags:[`Integrations`],summary:`Update the shared integration settings`}).input(Bc).output(Fc).errors({BAD_GATEWAY:{status:502}}),remove:b$1.route({method:`DELETE`,path:`/integrations/{id}`,tags:[`Integrations`],summary:`Disconnect an integration`}).input(Vc).output(Fc),backfills:b$1.route({method:`GET`,path:`/integrations/{id}/backfills`,tags:[`Integrations`],summary:`Get recent import progress`}).input(Rc).output(Us$1(Hc)),requestBackfill:b$1.route({method:`POST`,path:`/integrations/{id}/backfills`,tags:[`Integrations`],summary:`Request a historical import`}).input(Uc).output(Hc),retryBackfill:b$1.route({method:`POST`,path:`/integrations/{id}/backfills/{jobId}/retry`,tags:[`Integrations`],summary:`Retry an interrupted import`}).input(Wc).output(Hc)};const Rm=Gs$1({language:Xo$1().trim().max(80).optional(),platform:Xo$1().trim().max(120).optional(),timezone:Xo$1().trim().max(120).optional(),userAgent:Xo$1().trim().max(800).optional(),viewport:Gs$1({width:Cs$1().int().positive().max(1e4),height:Cs$1().int().positive().max(1e4),devicePixelRatio:Cs$1().positive().max(10).optional()}).optional()}),zm=Gs$1({key:Xo$1().trim().min(1),message:Xo$1().trim().min(10).max(4e3),pageUrl:os$1().max(2e3),pageTitle:Xo$1().trim().max(300).optional(),browser:Rm.optional()}),Bm=Gs$1({ok:ic$1(true)}),Vm=Gs$1({file:Ns$1().describe(`Image file to upload (max 10MB)`),folder:nc$1([`avatars`,`events`,`teams`,`promoters`,`venues`]).describe(`Folder to upload to`),width:T$1().int().positive().optional().describe(`Target width in pixels`),height:T$1().int().positive().optional().describe(`Target height in pixels`)}),Hm=F$1,Um=b$1.route({method:`POST`,path:`/internal/upload/image`,summary:`Upload and compress image`,description:`Upload an image file (PNG, JPEG, or SVG), optionally resize it, and compress it for web. SVG files are rasterized before publication. Returns the uploaded image URL and metadata.`,tags:[`Internal`]}).input(Vm.strict()).output(Hm);var Wm={shareFeedback:b$1.route({method:`POST`,path:`/internal/feedback`,summary:`Share product feedback`,description:`Send authenticated tenant dashboard feedback to the Sessions team.`,tags:[`Internal`]}).input(zm.strict()).output(Bm),uploadImage:Um},Gm={list:b$1.route({method:`GET`,path:`/locations`,summary:`Search for locations`,description:`Search for locations by query. Returns predictions with venue badges for locations that are managed venues on the platform. The query parameter is required.`,tags:[`Locations`]}).input(Kc.strict()).output(Jc).errors({BAD_GATEWAY:{status:502}}),get:b$1.route({method:`GET`,path:`/locations/{key}`,summary:`Get location details`,description:`Fetch full location details including coordinates, timezone, and photo. Accepts location ID or provider identifier (e.g., Google Place ID). Uses cache-first strategy.`,tags:[`Locations`]}).input(Gc.strict()).output(Yc).errors({BAD_GATEWAY:{status:502}})};const Km=b$1.route({method:`POST`,path:`/membership/programs/current`,summary:`Get a team's current membership program`,description:`Returns the one non-retired membership program for a team. Responds NOT_FOUND when the team sells no membership.`,tags:[`Membership`]}).input(al).output(ol),qm=b$1.route({method:`POST`,path:`/account/membership/payment-session`,summary:`Prepare the payment form for the current buyer`,description:`Ensures the signed-in buyer exists as a customer on the team's connected account and returns a customer session so the payment form can show their saved cards.`,tags:[`Membership`]}).input(rl).errors({CONFLICT:{status:409,data:dl.optional()}}).output(il),Jm=b$1.route({method:`POST`,path:`/account/membership/purchases`,summary:`Start a membership purchase for the current buyer`,description:`Creates the provider subscription for the signed-in buyer and returns what the browser needs to collect the first annual payment. A pending attempt for the same program is reused.`,tags:[`Membership`]}).input(sl).errors({CONFLICT:{status:409,data:dl.optional()}}).output(cl),Ym=b$1.route({method:`POST`,path:`/account/membership/purchases/{id}/detail`,summary:`Get one of the current buyer's membership purchases`,description:`Returns the purchase and, once payment is confirmed, the membership pass with its member number.`,tags:[`Membership`]}).input(ll).output(ul),Xm=b$1.route({method:`POST`,path:`/account/membership/passes/query`,summary:`List the current buyer's membership passes`,tags:[`Membership`]}).input(fl).output(pl),Zm=b$1.route({method:`POST`,path:`/membership/members/query`,summary:`List a team's members in member number order`,description:`Staff view of the passes in the team's current membership program. Requires membership.read.`,tags:[`Membership`]}).input(Dl).output(Ol),Qm=b$1.route({method:`POST`,path:`/membership/members`,summary:`Grant a free membership`,description:`Staff give a member a complimentary membership on the keyring they hand over. The keyring's serial becomes the member number. Requires membership.write.`,tags:[`Membership`]}).input(vl).errors({CONFLICT:{status:409,data:El},NOT_FOUND:{status:404,data:El.optional()}}).output(ml),$m=b$1.route({method:`POST`,path:`/membership/members/number`,summary:`Check a keyring number`,description:`Whether a keyring's number can be given to someone, before their details are entered. Requires membership.write.`,tags:[`Membership`]}).input(yl).output(bl),eh=b$1.route({method:`POST`,path:`/membership/door/redeem`,summary:`Use a member's discount at the door`,description:`Door staff scan a member's keyring when they pay cash. The member's one discount for the event is used, shared with online use, and nothing is sold. Requires ticket.scan for the event.`,tags:[`Membership`]}).input(xl).output(Cl),th=b$1.route({method:`POST`,path:`/membership/door/undo`,summary:`Undo a door discount just given`,description:`Gives back a door use the same staff member made in the last few minutes, such as a keyring scanned by mistake. Requires ticket.scan for the event.`,tags:[`Membership`]}).input(wl).errors({CONFLICT:{status:409}}).output(Gs$1({undone:ic$1(true)}));var nh={program:Km,paymentSession:qm,startPurchase:Jm,getPurchase:Ym,myPasses:Xm,members:Zm,grant:Qm,checkNumber:$m,end:b$1.route({method:`POST`,path:`/membership/members/{passId}/end`,summary:`End a free membership`,description:`Ends a complimentary membership now. The member keeps their number. Paid memberships end through a refund or cancellation instead. Requires membership.write.`,tags:[`Membership`]}).input(Tl).errors({CONFLICT:{status:409,data:El}}).output(ml),redeemAtDoor:eh,undoDoorRedemption:th};const Q$1=Ks$1({clientId:Xo$1().min(1).meta({description:`Immutable OAuth client identifier.`}),teamId:k$1,tenantId:Xo$1().min(1).meta({description:`Tenant this application belongs to.`}),name:Xo$1().trim().min(1).max(100).meta({description:`Operator-facing name for this website.`}),redirectUris:Us$1(os$1().max(2048)).min(1).max(10).meta({description:`Exact HTTPS callback URLs. HTTP is allowed only for non-production loopback.`}),enabled:Ds$1().meta({description:`Disabled applications stop authenticating immediately.`}),revision:Cs$1().int().positive().meta({description:`Optimistic concurrency token. Send the value you read.`}),credentials:Us$1(Ks$1({id:Xo$1().meta({description:`Opaque credential identifier. It reveals nothing about the secret.`}),expiresAt:Cs$1().int().nonnegative().optional().meta({description:`Credential expiry as Unix milliseconds. Omitted for credentials that do not expire.`})}))}).meta({description:`A Team-owned website login application. Credential secrets are never included.`}),rh=Ks$1({teamId:k$1}).meta({description:`Lists the website applications a Team owns.`}),ih=Q$1.pick({teamId:true,name:true,redirectUris:true}).extend({requestId:is$1().meta({description:`Caller-generated idempotency key. Reusing it returns a conflict rather than a second application.`})}).meta({description:`Registration request for a new Team website.`}),ah=Q$1.pick({teamId:true,clientId:true,revision:true}).meta({description:`Reference to one Team website application at a known revision. A stale revision is rejected.`}),oh=ah.extend({name:Q$1.shape.name,redirectUris:Q$1.shape.redirectUris,enabled:Ds$1()}).meta({description:`Full replacement of a Team website's settings.`}),sh=ah.extend({credentialId:Xo$1().min(1).meta({description:`Credential to revoke. Revoking a credential that is already gone succeeds unchanged.`})}).meta({description:`Revocation request for one website credential.`}),ch=Ks$1({application:Q$1,clientSecret:Xo$1().meta({description:`New credential. Display once and store only on the website server.`})}).meta({description:`One-time credential issuance response. Must not be logged or cached.`}),$$1=b$1.errors({CONFLICT:{status:409},SERVICE_UNAVAILABLE:{status:503}}),lh={create:$$1.route({method:`POST`,path:`/oauth-applications/{clientId}/credentials`,tags:[`OAuth applications`],summary:`Issue a replacement credential`,description:`Issues a second credential so the website can roll over without downtime. Revoke the old one once it is out of use.`}).input(ah).output(ch),delete:$$1.route({method:`DELETE`,path:`/oauth-applications/{clientId}/credentials/{credentialId}`,tags:[`OAuth applications`],summary:`Revoke a website credential`,description:`Revokes one credential. Revoking a credential that is already gone succeeds without changing the application, and the last credential of an enabled application cannot be revoked.`}).input(sh).output(Q$1)};var uh={list:$$1.route({method:`GET`,path:`/oauth-applications`,tags:[`OAuth applications`],summary:`List Team website clients`,description:`Lists the website applications a Team owns. Credential secrets are never returned.`}).input(rh).output(Us$1(Q$1)),create:$$1.route({method:`POST`,path:`/oauth-applications`,tags:[`OAuth applications`],summary:`Register a Team website`,description:`Registers a website login client for a Team and returns its first credential once.`}).input(ih).output(ch),update:$$1.route({method:`PATCH`,path:`/oauth-applications/{clientId}`,tags:[`OAuth applications`],summary:`Update a Team website`,description:`Replaces a website's name, callbacks and enabled state at a known revision.`}).input(oh).output(Q$1),credentials:lh},dh={create:b$1.route({method:`POST`,path:`/account/orders`,summary:`Create an order for the current buyer`,description:`Creates an order owned by the signed-in buyer. The order is attributed to the verified website client's account Team.`,tags:[`Account`]}).input(od.strict()).output(Zd),list:b$1.route({method:`POST`,path:`/account/orders/query`,summary:`List the current buyer's website-Team purchase history`,description:`Returns the signed-in buyer's purchases for the verified website client's account Team, newest first.`,tags:[`Account`]}).input(Ku).output(qu),get:b$1.route({method:`POST`,path:`/account/orders/{id}/detail`,summary:`Get one of the current buyer's purchases`,description:`Returns full detail for a purchase the signed-in buyer owns within the website client's account Team.`,tags:[`Account`]}).input(Ju).output(Yu),wallet:b$1.route({method:`POST`,path:`/account/orders/{id}/wallet`,summary:`Get a wallet pass for one of the current buyer's tickets`,description:`Returns an Apple Wallet pass or a validated Google Wallet URL for a ticket on a purchase the signed-in buyer owns.`,tags:[`Account`]}).input(Xu).output(Zu)},fh={create:b$1.route({method:`POST`,path:`/orders/{id}/notes`,summary:`Add note to order timeline (promoter only)`,description:`Add a user note to the order timeline. Note will be marked as editable by the author.`,tags:[`Orders`]}).input(Qu.strict()).output(Xd),update:b$1.route({method:`PATCH`,path:`/orders/{id}/notes/{noteId}`,summary:`Update timeline note (author only)`,description:`Update a timeline note. Only the author can edit their own notes. System-generated entries cannot be edited.`,tags:[`Orders`]}).input(yh$1.strict()).output(Xd),remove:b$1.route({method:`DELETE`,path:`/orders/{id}/notes/{noteId}`,summary:`Delete timeline note (author only)`,description:`Delete a timeline note. Only the author can delete their own notes. System-generated entries cannot be deleted.`,tags:[`Orders`]}).input(sd.strict()).output(zs$1())};const ph=b$1.route({method:`POST`,path:`/orders/{id}/confirmation`,summary:`Read signed order confirmation and QR tickets`,tags:[`Orders`]}).input(Uu).output(Wu),mh=b$1.route({method:`GET`,path:`/orders/{id}`,summary:`Get order by ID`,tags:[`Orders`]}).input(Hu.strict()).output(Xd),hh=b$1.route({method:`GET`,path:`/orders`,summary:`List orders with cursor-based pagination`,description:"Returns order data with cursor-based pagination, optional full-text search via `query`, advanced filters, and deterministic sorting.",tags:[`Orders`]}).input(Rd.strict()).output(zd),gh=b$1.route({method:`POST`,path:`/orders/quote`,summary:`Create order quote`,tags:[`Orders`]}).input(Vd.strict()).output(Hd),_h=b$1.route({method:`POST`,path:`/orders`,summary:`Create a new order`,tags:[`Orders`]}).input(od.strict()).output(Xd),vh=b$1.route({method:`POST`,path:`/orders/complimentary`,summary:`Create a complimentary order`,tags:[`Orders`]}).input(td.strict()).output(Xd),yh=b$1.route({method:`PUT`,path:`/orders/{id}`,summary:`Update an order`,tags:[`Orders`]}).input(vh$1.strict()).output(Xd),bh=b$1.route({method:`POST`,path:`/orders/{id}/reserve`,summary:`Re-reserve inventory for an abandoned order`,description:`Attempts to re-reserve inventory for an abandoned order. If inventory is available, the order status is set back to PENDING with a new reservation timer. Returns the updated order with a new reservedAt timestamp if successful.`,tags:[`Orders`]}).input(qd.strict()).errors({BAD_REQUEST:{status:400,data:Yd.optional()}}).output(Xd),xh=b$1.route({method:`POST`,path:`/orders/{id}/resend`,summary:`Resend tickets to customer`,description:`Resend order tickets to the customer's email. Optionally provide a different email address.`,tags:[`Orders`]}).input(Kd.strict()).output(Xd),Sh=b$1.route({method:`POST`,path:`/orders/{id}/refund`,summary:`Refund order items`,description:`Process a refund for order items. Supports full or partial refunds with optional ticket cancellation.`,tags:[`Orders`]}).input(Wd.strict()).output(Gd);var Ch={account:dh,cancel:b$1.route({method:`POST`,path:`/orders/{id}/cancel`,summary:`Cancel tickets or close an order without a refund`,tags:[`Orders`]}).input($u.strict()).output(Ml),cancellations:b$1.route({method:`GET`,path:`/orders/{id}/cancellations`,summary:`Get staff cancellation history`,tags:[`Orders`]}).input(Hu.pick({id:true}).strict()).output(Nl),confirmation:ph,get:mh,list:hh,create:_h,createComplimentary:vh,update:yh,reserve:bh,quote:gh,resend:xh,refund:Sh,note:fh};const wh=Gs$1({payout:$$2});var Th={create:b$1.route({method:`POST`,path:`/payouts/{id}/notes`,summary:"Add note to payout timeline (`payout.write` required)",description:`Add a user note to the payout timeline. Note will be marked as editable by the author.`,tags:[`Payouts`]}).input(Vh$1.strict()).output(wh),update:b$1.route({method:`PATCH`,path:`/payouts/{id}/notes/{noteId}`,summary:`Update timeline note (author only)`,description:`Update a timeline note. Only the author can edit their own notes. System-generated entries cannot be edited.`,tags:[`Payouts`]}).input(Ig.strict()).output(wh),remove:b$1.route({method:`DELETE`,path:`/payouts/{id}/notes/{noteId}`,summary:`Delete timeline note (author only)`,description:`Delete a timeline note. Only the author can delete their own notes. System-generated entries cannot be deleted.`,tags:[`Payouts`]}).input(_g$1.strict()).output(wh)},Eh={get:b$1.route({method:`GET`,path:`/payouts/{id}`,summary:`Get payout by ID with breakdown`,tags:[`Payouts`]}).input(vg$1.strict()).output(Mg),list:b$1.route({method:`GET`,path:`/payouts`,summary:`List payouts with cursor-based pagination`,description:"Returns payout data with cursor-based pagination and optional full-text search via the `query` parameter.",tags:[`Payouts`]}).input(xg.strict()).output(Sg),preview:b$1.route({method:`GET`,path:`/payouts/{id}/preview`,summary:`Get payout preview for approvals`,description:`Returns lightweight payout split rows and beneficiary resolution status used by approvals dropdowns.`,tags:[`Payouts`]}).input(jg.strict()).output(Ag),adjustments:b$1.route({method:`GET`,path:`/payouts/adjustments`,summary:`List Airwallex payout adjustments`,description:`Returns settlement-proven Airwallex refund and dispute adjustments grouped for tenant payout review.`,tags:[`Payouts`]}).input(ng$1.strict()).output(rg$1),adjustment:b$1.route({method:`GET`,path:`/payouts/adjustments/{id}`,summary:`Get payout adjustment by ID`,description:`Returns a payout adjustment detail payload with related adjustment rows, applications, and upcoming payout projections.`,tags:[`Payouts`]}).input(Xh$1.strict()).output(ig$1),stats:b$1.route({method:`POST`,path:`/payouts/stats`,summary:`Get payout statistics`,tags:[`Payouts`]}).input(Pg.strict()).output(Ng),breakdown:b$1.route({method:`GET`,path:`/payouts/{payoutId}/breakdown`,summary:`Get payout breakdown`,tags:[`Payouts`]}).input(xh$1.strict()).output(mg$1),update:b$1.route({method:`PATCH`,path:`/payouts/{id}`,summary:`Update a payout`,description:`Update payout status or approval. Use approval field to approve or reject payouts.`,tags:[`Payouts`]}).input(Fg.strict()).output($$2),note:Th};const Dh=Gs$1({key:Xo$1(),memberId:Xo$1()}),Oh=Dh.merge(Hg).strict();var kh={get:b$1.route({method:`GET`,path:`/teams/{key}/members/{memberId}/permission-scopes/{id}`,summary:`Get permission scope by ID`,description:`Retrieve a permission scope using its unique ID`,tags:[`Permission Scopes`]}).input(Oh).output(zg),list:b$1.route({method:`GET`,path:`/teams/{key}/members/{memberId}/permission-scopes`,summary:`List permission scopes with cursor-based pagination`,description:`Returns permission scopes for a specific team member with cursor pagination. Can filter by kind (PROMOTER or VENUE).`,tags:[`Permission Scopes`]}).input(Dh.merge(Ug).strict()).output(Wg),create:b$1.route({method:`POST`,path:`/teams/{key}/members/{memberId}/permission-scopes`,summary:`Create a new permission scope`,description:`Create a permission scope for a team member. Can be PROMOTER-specific (applies to all events by that promoter) or VENUE-specific (applies to all events at that venue). Replaces lower-tier permissions.`,tags:[`Permission Scopes`]}).input(Dh.and(Vg)).output(zg),update:b$1.route({method:`PATCH`,path:`/teams/{key}/members/{memberId}/permission-scopes/{id}`,summary:`Update a permission scope`,description:`Update an existing permission scope. Only the permissions array can be modified.`,tags:[`Permission Scopes`]}).input(Dh.extend({id:Xo$1()}).merge(Gg).strict()).output(zg),remove:b$1.route({method:`DELETE`,path:`/teams/{key}/members/{memberId}/permission-scopes/{id}`,summary:`Delete a permission scope`,description:`Remove a permission scope. Team member will revert to lower-tier permissions for the affected resource.`,tags:[`Permission Scopes`]}).input(Oh).output(zg)},Ah={summary:b$1.route({method:`GET`,path:`/promoters/{promoterId}/performance/summary`,summary:`Get promoter performance summary`,description:`Overview KPIs for a single promoter based on tracking data (excludes entity-based data like payouts)`,tags:[`Promoter Performance`]}).input(ya).output(ba),revenue:b$1.route({method:`GET`,path:`/promoters/{promoterId}/performance/revenue`,summary:`Get promoter revenue over time`,description:`Time-series data for revenue and tickets sold for a single promoter`,tags:[`Promoter Performance`]}).input(xa).output(Sa),events:b$1.route({method:`GET`,path:`/promoters/{promoterId}/performance/events`,summary:`Get promoter top events by tickets`,description:`Top events by ticket count for a single promoter`,tags:[`Promoter Performance`]}).input(Ca).output(wa)};const jh=Gs$1({eventCount:Cs$1().optional()}),Mh=b$1.route({method:`GET`,path:`/promoters/{key}`,summary:`Get promoter by ID or slug`,description:`Retrieve a promoter using either its unique ID or URL-friendly slug`,tags:[`Promoters`]}).input(x_.strict()).output(M_),Nh=b$1.route({method:`POST`,path:`/promoters`,summary:`Create a new promoter`,description:`Create a new promoter brand within a team`,tags:[`Promoters`]}).input(C_.strict()).output(M_),Ph=b$1.route({method:`PUT`,path:`/promoters/{key}`,summary:`Update a promoter`,description:`Update a promoter using either its unique ID or URL-friendly slug`,tags:[`Promoters`]}).input(N_.strict()).output(M_);var Fh={get:Mh,list:b$1.route({method:`GET`,path:`/promoters`,summary:`List promoters with cursor-based pagination`,description:`Returns promoters with cursor pagination. Filter by teamId to see promoters for a specific team.`,tags:[`Promoters`]}).input(A_.strict()).output(j_),create:Nh,update:Ph,remove:b$1.route({method:`DELETE`,path:`/promoters/{key}`,summary:`Delete a promoter`,description:`Delete a promoter using either its unique ID or URL-friendly slug`,tags:[`Promoters`]}).input(w_.strict()).errors({CONFLICT:{status:409,data:jh.optional()}}).output(M_),performance:Ah},Ih={create:b$1.route({method:`POST`,path:`/reports`,summary:`Create report generation job`,description:`Creates an asynchronous report job. Download the report once the job status is COMPLETED.`,tags:[`Reports`]}).input(z_).output(V_),get:b$1.route({method:`GET`,path:`/reports/{id}`,summary:`Get report generation job`,tags:[`Reports`]}).input(B_.strict()).output(V_)};const Lh=b$1.route({method:`GET`,path:`/events/{eventId}/sections/{id}`,summary:`Get section by ID`,tags:[`Sections`]}).input(Ad.strict()).output(Nd),Rh=b$1.route({method:`POST`,path:`/events/{eventId}/sections`,summary:`Create a new section`,tags:[`Sections`]}).input(Od.strict()).output(Nd),zh=b$1.route({method:`PUT`,path:`/events/{eventId}/sections/{id}`,summary:`Update a section`,tags:[`Sections`]}).input(Pd.strict()).output(Nd);var Bh={get:Lh,list:b$1.route({method:`GET`,path:`/events/{eventId}/sections`,summary:`List sections`,description:`Returns sections with cursor-based pagination. Automatically uses search-backed pagination when query parameter is provided for full-text search capabilities.`,tags:[`Sections`]}).input(jd.strict()).output(Md),create:Rh,update:zh,remove:b$1.route({method:`DELETE`,path:`/events/{eventId}/sections/{id}`,summary:`Delete a section`,tags:[`Sections`]}).input(kd.strict()).output(Nd)};const Vh=b$1.route({method:`GET`,path:`/teams/{teamId}/tax-profiles`,summary:`List team tax profiles`,description:`Retrieve reusable organiser tax profiles and the default.`,tags:[`Team Tax`]}).input($s).output(ic),Hh=b$1.route({method:`POST`,path:`/teams/{teamId}/tax-profiles`,summary:`Create a team tax profile`,description:`Create a reusable organiser tax profile.`,tags:[`Team Tax`]}).input(tc).output(ic),Uh=b$1.route({method:`PUT`,path:`/teams/{teamId}/tax-profiles/{profileId}`,summary:`Update a team tax profile`,description:`Update a reusable organiser tax profile.`,tags:[`Team Tax`]}).input(nc).output(ic);var Wh={create:Hh,list:Vh,remove:b$1.route({method:`DELETE`,path:`/teams/{teamId}/tax-profiles/{profileId}`,summary:`Delete a team tax profile`,description:`Delete a tax profile that is not the required default and is not used by an event.`,tags:[`Team Tax`]}).input(rc).output(ic),setDefault:b$1.route({method:`PUT`,path:`/teams/{teamId}/tax-profiles/{profileId}/default`,summary:`Set the default team tax profile`,description:`Use this profile by default for future events.`,tags:[`Team Tax`]}).input(rc).output(ic),update:Uh},Gh={summary:b$1.route({method:`GET`,path:`/teams/{teamId}/performance/summary`,summary:`Get team performance summary`,description:`Overview KPIs aggregated across all promoters in the team, based on tracking data (excludes entity-based data like payouts)`,tags:[`Team Performance`]}).input(Ta).output(Ea),revenue:b$1.route({method:`GET`,path:`/teams/{teamId}/performance/revenue`,summary:`Get team revenue over time`,description:`Time-series data for revenue and tickets sold aggregated across all promoters in the team`,tags:[`Team Performance`]}).input(Da).output(Oa),funnel:b$1.route({method:`GET`,path:`/teams/{teamId}/performance/funnel`,summary:`Get team conversion funnel`,description:`Conversion funnel showing drop-off rates from product view to purchase, aggregated across all events in the team`,tags:[`Team Performance`]}).input(Na).output(Pa),traffic:b$1.route({method:`GET`,path:`/teams/{teamId}/performance/traffic`,summary:`Get team traffic sources`,description:`Traffic source breakdown by campaign, medium, or source, aggregated across all events in the team`,tags:[`Team Performance`]}).input(za).output(Ba),insights:b$1.route({method:`GET`,path:`/teams/{teamId}/performance/insights`,summary:`Get team performance insights`,description:`Order-backed revenue, tickets, refund, and dispute totals for an exact time window`,tags:[`Team Performance`]}).input(Va).output(Wa),payouts:b$1.route({method:`GET`,path:`/teams/{teamId}/performance/payouts`,summary:`Get team payout performance`,description:`Upcoming and recently paid payout totals aggregated across the team`,tags:[`Team Performance`]}).input(Ka).output(Xa),finance:b$1.route({method:`GET`,path:`/teams/{teamId}/performance/finance`,summary:`Get team finance overview`,description:`Finance overview combining gross order value with payout and adjustment data`,tags:[`Team Performance`]}).input(Za).output(ro),events:b$1.route({method:`GET`,path:`/teams/{teamId}/performance/events`,summary:`Get team top events by tickets`,description:`Top events by ticket count, aggregated across all events in the team`,tags:[`Team Performance`]}).input(ja).output(Ma),admissions:b$1.route({method:`GET`,path:`/teams/{teamId}/performance/admissions`,summary:`Get team top admissions by tickets`,description:`Top admission types by ticket count, aggregated across all events in the team`,tags:[`Team Performance`]}).input(La).output(Ra),orders:b$1.route({method:`GET`,path:`/teams/{teamId}/performance/orders`,summary:`Get team orders distribution`,description:`Order counts grouped by time breakdown (hour, day of week, day, week, month)`,tags:[`Team Performance`]}).input(Fa).output(Ia),tracking:b$1.route({method:`GET`,path:`/teams/{teamId}/performance/tracking`,summary:`Get team tracking time series`,description:`Time-series tracking data (page views, add to cart, checkout, orders) aggregated at team or tenant level`,tags:[`Team Performance`]}).input(io).output(ao)};const Kh=nv.meta({description:`Business records that prevent a team from being deleted`});var qh={get:b$1.route({method:`GET`,path:`/teams/{key}`,summary:`Get team by ID or slug`,description:`Retrieve a team with membership details. User must be a member of the team.`,tags:[`Teams`]}).input(X_.strict()).output($_),list:b$1.route({method:`GET`,path:`/teams`,summary:`List teams with cursor-based pagination`,description:`Returns teams the current user has access to with cursor pagination`,tags:[`Teams`]}).input(gv.strict()).output(_v),create:b$1.route({method:`POST`,path:`/teams`,summary:`Create a new team`,description:`Create a new team organization`,tags:[`Teams`]}).input(Z_.strict()).output($_),slugAvailability:b$1.route({method:`GET`,path:`/teams/slugs/{slug}/availability`,summary:`Check team slug availability`,description:`Check whether a team URL slug is available within the current tenant.`,tags:[`Teams`]}).input(Tv.strict()).output(Ev),update:b$1.route({method:`PATCH`,path:`/teams/{key}`,summary:`Update a team`,description:`Update an existing team by ID or slug`,tags:[`Teams`]}).input(Dv.strict()).output($_),remove:b$1.route({method:`DELETE`,path:`/teams/{key}`,summary:`Start team deletion`,description:`Soft-delete a team immediately and queue its asynchronous cleanup by ID or slug`,tags:[`Teams`]}).input(X_.strict()).errors({CONFLICT:{status:409,data:Kh.optional()},FORBIDDEN:{status:403}}).output(av),deletion:{get:b$1.route({method:`GET`,path:`/team-deletions/{id}`,summary:`Get team deletion status`,description:`Retrieve progress for an asynchronous team deletion request`,tags:[`Teams`]}).input(iv.strict()).errors({FORBIDDEN:{status:403},NOT_FOUND:{status:404}}).output(rv)},performance:Gh},Jh={list:b$1.route({method:`GET`,path:`/teams/{key}/invites`,summary:`List pending team invitations with cursor-based pagination`,description:`Returns pending team invitations for a specific team. Team key can be ID or slug. These are email-based invitations that have not yet been accepted.`,tags:[`Team Invites`]}).input(dv.strict()).output(fv),get:b$1.route({method:`GET`,path:`/teams/{key}/invites/{inviteId}`,summary:`Get pending invitation by ID`,description:`Retrieve a pending team invitation by its ID. Team key can be ID or slug.`,tags:[`Team Invites`]}).input(uv.strict()).output(pv),create:b$1.route({method:`POST`,path:`/teams/{key}/invites`,summary:`Create a team invitation`,description:`Invite a user to join a team by email. Team key can be ID or slug. Creates a pending invitation with a secure token that expires in 7 days. The invited user will receive an email with an acceptance link.`,tags:[`Team Invites`]}).input(lv.strict()).output(pv),accept:b$1.route({method:`PATCH`,path:`/teams/{key}/invites/{inviteId}`,summary:`Accept a team invitation`,description:`Accept a pending team invitation using the secure token. Team key can be ID or slug. This deletes the invitation and creates an active TeamMember record. Returns the newly created team member.`,tags:[`Team Invites`]}).input(H_.strict()).output(kv),resend:b$1.route({method:`POST`,path:`/teams/{key}/invites/{inviteId}/resend`,summary:`Resend invitation email`,description:`Resend the invitation email with a new token and extended expiry. Team key can be ID or slug. Useful when the original invitation has expired or was not received.`,tags:[`Team Invites`]}).input(uv.strict()).output(pv),cancel:b$1.route({method:`DELETE`,path:`/teams/{key}/invites/{inviteId}`,summary:`Cancel a pending invitation`,description:`Cancel a pending team invitation before it is accepted. Team key can be ID or slug. Deletes the invitation record.`,tags:[`Team Invites`]}).input(cv.strict()).output(pv)},Yh={connect:b$1.route({method:`POST`,path:`/teams/{key}/payment/connect`,summary:`Initiate payment processor connection`,description:`Start the OAuth flow to connect a team's payment processor account. Returns an authorization URL to redirect the user to the payment provider's OAuth page. The OAuth callback is handled directly by the payment gateway.`,tags:[`Team Payments`]}).input(yv.strict()).output(bv),disconnect:b$1.route({method:`POST`,path:`/teams/{key}/payment/disconnect`,summary:`Disconnect payment processor`,description:`Remove the payment processor connection from a team. Future ticket sales will use the platform account. Only the team owner can disconnect the payment processor.`,tags:[`Team Payments`]}).input(xv.strict()).output(q_),gateway:{update:b$1.route({method:`PATCH`,path:`/teams/{key}/payment/gateway`,summary:`Update Stripe Connect event routing`,description:`Configure whether Stripe Connect applies to every team event or only selected events.`,tags:[`Team Payments`]}).input(G_.strict()).output(q_)}};const Xh=b$1.route({method:`GET`,path:`/tenant/config`,summary:`Get tenant configuration`,tags:[`Tenant`],description:`Returns tenant configuration including features and regions. Requires x-tenant-id header.`}).output(qv),Zh=b$1.route({method:`GET`,path:`/tenant/regions`,summary:`Get tenant regions`,tags:[`Tenant`],description:`Returns available regions for the tenant. Requires x-tenant-id header.`}).output(Jv);var Qh={approvals:b$1.route({method:`GET`,path:`/tenant/approvals`,summary:`Get tenant approval badges`,tags:[`Tenant`],description:`Returns lightweight booleans for pending approvals. Requires tenant admin access.`}).input(Yv).output(Xv),config:Xh,regions:Zh};const $h=b$1.route({method:`GET`,path:`/tickets/{id}`,summary:`Get ticket by ID`,tags:[`Tickets`]}).input(dy.strict()).output(my),eg=b$1.route({method:`POST`,path:`/tickets`,summary:`Create a new ticket`,tags:[`Tickets`]}).input(uy.strict()).output(my),tg=b$1.route({method:`PUT`,path:`/tickets/{id}`,summary:`Update a ticket`,tags:[`Tickets`]}).input(Ay.strict()).output(my),ng=b$1.route({method:`GET`,path:`/tickets`,summary:`List tickets with cursor-based pagination`,description:"Returns ticket data with cursor-based pagination, optional full-text search via `query`, and a fixed attendee-name ascending order for non-search list paths.",tags:[`Tickets`]}).input(fy.strict()).output(py),rg=b$1.route({method:`GET`,path:`/tickets/attendees`,summary:`List event attendees with alpha-navigation support`,description:`Returns ticket-backed attendee roster rows for an event. Supports bounded browsing, alpha jump bookmarks, and attendee search.`,tags:[`Tickets`]}).input(cy.strict()).output(ly),ig=b$1.route({method:`GET`,path:`/tickets/attendees/index`,summary:`Get attendee alpha-navigation buckets`,description:`Returns available alpha buckets and server-issued bookmarks for the ticket attendee roster.`,tags:[`Tickets`]}).input(oy.strict()).output(ay),ag=b$1.route({method:`GET`,path:`/tickets/attendees/changes`,summary:`List attendee roster rows changed since an instant`,description:"Returns roster rows updated since `since`, so clients can keep a loaded roster window current without reloading it.",tags:[`Tickets`]}).input(ry.strict()).output(iy),og=b$1.route({method:`PUT`,path:`/tickets/{key}/check-in`,summary:`Check in tickets by key`,tags:[`Tickets`]}).input(hy.strict()).errors({BAD_REQUEST:{status:400,data:Dy.optional()}}).output(Oy),sg=b$1.route({method:`PUT`,path:`/tickets/{key}/check-out`,summary:`Check out tickets by key`,tags:[`Tickets`]}).input(hy.strict()).errors({BAD_REQUEST:{status:400,data:Dy.optional()}}).output(Oy);var cg={get:$h,list:ng,attendees:{list:rg,index:ig,changes:ag},create:eg,update:tg,checkInByKey:og,checkOutByKey:sg};const lg=b$1.route({method:`GET`,path:`/users/me`,summary:`Get the current user and their team memberships`,tags:[`Users`]}).output(Ry),ug=Gs$1({firstName:Xo$1().min(1).optional(),lastName:Xo$1().min(1).optional(),imageUrl:os$1().nullable().optional(),metadata:ec$1(Xo$1(),Kn).optional(),refreshToken:Xo$1().optional().meta({description:`Current refresh token. When provided, new tokens with updated user data will be returned.`})}).meta({ref:`UpdateUserInput`,description:`Input for updating the current user's profile`}),dg=b$1.route({method:`PATCH`,path:`/users/me`,summary:`Update the current user's profile`,tags:[`Users`]}).input(ug).output(Iy);var fg={me:lg,remove:b$1.route({method:`DELETE`,path:`/users/me`,summary:`Delete the current user's account`,tags:[`Users`]}).output(Ly),update:dg};const pg={oauthApplication:uh,integration:Lm,analytics:jp,beneficiary:Ip,section:Bh,event:Fm,eventCollaborator:Im,admission:Ap,order:Ch,ticket:cg,location:Gm,coupon:Kp,payout:Eh,teams:b_,permissionScope:kh,promoter:Fh,report:Ih,team:qh,teamInvite:Jh,teamPayment:Yh,teamMember:Wv,teamTax:Wh,tenant:Qh,venue:{get:b$1.route({method:`GET`,path:`/venues/{key}`,summary:`Get venue by ID or slug`,description:`Retrieve a venue using its unique ID or slug`,tags:[`Venues`]}).input(Hy.strict()).output(qy),list:b$1.route({method:`GET`,path:`/venues`,summary:`List venues with cursor-based pagination`,description:`Returns venues with cursor pagination. Supports filtering by team, location-based search, and text query`,tags:[`Venues`]}).input(Gy.strict()).output(Ky),create:b$1.route({method:`POST`,path:`/venues`,summary:`Create a new venue`,description:`Create a new venue. Venue will be owned by the specified team but can be used by all teams for their events`,tags:[`Venues`]}).input(By.strict()).output(qy),update:b$1.route({method:`PATCH`,path:`/venues/{key}`,summary:`Update a venue`,description:`Update an existing venue. Cannot change venue ownership (teamId)`,tags:[`Venues`]}).input(Jy.strict()).output(qy),remove:b$1.route({method:`DELETE`,path:`/venues/{key}`,summary:`Delete a venue`,description:`Soft delete a venue`,tags:[`Venues`]}).input(Vy.strict()).output(qy),linkLocation:b$1.route({method:`POST`,path:`/venues/{key}/locations`,summary:`Link location to venue`,description:"Link a location to this venue. Allows the venue to be discovered when users search for this location. A venue can have multiple linked locations (e.g., different addresses, branded names). Requires venue access on the owning team (for example, `venue.write`).",tags:[`Venues`]}).input(Hy.extend({locationKey:Xo$1().meta({description:`Location ID (loc_xxx) or Google Place ID to link to this venue`,examples:[`loc_01jps5cgsm7qxvh6watsons0eq`,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}).strict()).output(qy),unlinkLocation:b$1.route({method:`DELETE`,path:`/venues/{key}/locations/{locationKey}`,summary:`Unlink location from venue`,description:"Remove a location link from this venue. The location will no longer show this venue's branding. Requires venue access on the owning team (for example, `venue.write`).",tags:[`Venues`]}).input(Hy.extend({locationKey:Xo$1().meta({description:`Location ID (loc_xxx) or Google Place ID to unlink from this venue`,examples:[`loc_01jps5cgsm7qxvh6watsons0eq`,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}).strict()).output(qy)},user:fg},mg={...pg,internal:Wm,membership:nh};function hg(e){return b$1.errors(mn).router(e)}const gg=hg(pg);hg(mg);const _g=gg,vg={sandbox:`https://api.sandbox.session.services`,prod:`https://api.session.services`};function yg(e){return e in vg?vg[e]:e}function bg(e){return Dt$1(new xp(_g,{url:yg(e.environment),headers:{"x-tenant-id":e.tenantId??`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`,...e.headers??{}}}))}
|
|
85
|
+
|
|
86
|
+
function i(e){let t=e.toLowerCase();return t?a(t)?`TABLET`:o(t)?`MOBILE`:`DESKTOP`:`DESKTOP`}function a(e){return /ipad|tablet|playbook|silk|kindle|sm-t|tab/.test(e)?true:/android/.test(e)&&!/mobile/.test(e)}function o(e){return /iphone|ipod|android|windows phone|blackberry|bb10|mobile/.test(e)}function s(e){let t=e.toLowerCase();return t?t.includes(`instagram`)?`Instagram App`:/fban|fbav|fb_iab|fbios|facebook/.test(t)?`Facebook App`:/tiktok|musical_ly|bytedance|bytelo/.test(t)?`TikTok App`:t.includes(`snapchat`)?`Snapchat App`:t.includes(`pinterest`)?`Pinterest App`:t.includes(`linkedin`)?`LinkedIn App`:/twitter|twitterandroid/.test(t)?`X App`:t.includes(`micromessenger`)?`WeChat App`:/\bline\//.test(t)?`LINE App`:t.includes(`gsa/`)?`Google App`:/edg\/|edge|edgios|edga/.test(t)?`Edge`:t.includes(`samsungbrowser`)?`Samsung Internet`:/opr\/|opera|opios/.test(t)?`Opera`:/firefox|fxios/.test(t)?`Firefox`:t.includes(`crios`)?`Chrome`:/iphone|ipod|ipad/.test(t)&&t.includes(`safari`)?`Mobile Safari`:t.includes(`android`)&&t.includes(`wv`)?`Android WebView`:/chrome|chromium/.test(t)?`Chrome`:t.includes(`safari`)?`Safari`:`Other`:`Unknown`}const c=`sessions_attribution`;function l(e,t){return e.get(t)||void 0}function u(e){return {source:l(e,`utm_source`),medium:l(e,`utm_medium`),name:l(e,`utm_campaign`),term:l(e,`utm_term`),content:l(e,`utm_content`)}}function d(e){return !!(e&&Object.values(e).some(Boolean))}function f(){try{let e=window.localStorage?.getItem(c);if(!e)return;let t=JSON.parse(e);if(!t||typeof t!=`object`){window.localStorage?.removeItem(c);return}let n=t;if(!n.expiresAt||n.expiresAt<=Date.now()){window.localStorage?.removeItem(c);return}return n}catch{return}}function p(){let e=f();if(!e)return;let t={source:m(e.utm_source),medium:m(e.utm_medium),name:m(e.utm_campaign),term:m(e.utm_term),content:m(e.utm_content)};return d(t)?t:void 0}function m(e){return typeof e==`string`&&e.length>0?e:void 0}function h(e){if(d(e))try{window.localStorage?.setItem(c,JSON.stringify({...f(),expiresAt:Date.now()+2592e6,utm_campaign:e?.name,utm_content:e?.content,utm_medium:e?.medium,utm_source:e?.source,utm_term:e?.term}));}catch{return}}function g(){if(typeof window>`u`)return;let e=u(new URLSearchParams(window.location.search));return d(e)?(h(e),e):p()}function ee(e){return {anonymous_id:e.anonymousId,browser:s(e.context.userAgent),browser_session_id:e.sessionId,device_type:i(e.context.userAgent),page_path:e.context.page.path,page_title:e.context.page.title,page_url:e.context.page.url,referrer:e.context.page.referrer,user_agent:e.context.userAgent||void 0,utm_campaign:e.context.campaign?.name,utm_content:e.context.campaign?.content,utm_medium:e.context.campaign?.medium,utm_source:e.context.campaign?.source,utm_term:e.context.campaign?.term}}function _(){return typeof window>`u`?{page:{url:``,path:``,title:``,referrer:void 0},userAgent:``,campaign:void 0}:{page:{url:window.location.href,path:window.location.pathname,title:document.title,referrer:document.referrer||void 0},userAgent:navigator.userAgent,campaign:g()}}function v(e,t,n){n==null||n===``||(e[t]=n);}function y(...e){return e.find(e=>e!=null&&e!==``)}function te(e,t){v(e,`content_name`,t.name),v(e,`value`,y(t.value,t.price)),e.content_type=`product`;}function b(e){return (t,n)=>{e(t,n.product_id),te(t,n);}}function ne(e){return (t,n)=>{e(t,n),v(t,`content_category`,n.category);}}function re(e,t){v(e,`value`,y(t.value,t.total));}function ie(e,t){v(e,`value`,y(t.value,t.total,t.revenue));}function ae(e,t){if(Array.isArray(e))return e.map(t)}const oe={"Product Viewed":`ViewContent`,"Product Added":`AddToCart`,"Checkout Started":`InitiateCheckout`,"Payment Info Entered":`AddPaymentInfo`,"Order Completed":`Purchase`},se=new Set([`AddPaymentInfo`,`AddToCart`,`AddToWishlist`,`CompleteRegistration`,`Contact`,`CustomizeProduct`,`Donate`,`FindLocation`,`InitiateCheckout`,`Lead`,`Purchase`,`Schedule`,`Search`,`StartTrial`,`SubmitApplication`,`Subscribe`,`ViewContent`]),x=new Set,S=new Map;function ce(){return Array.from(document.scripts??[]).some(e=>e.src.includes(`connect.facebook.net/en_US/fbevents.js`))}function le(e){if(ce())return true;let t=document.createElement(`script`);t.async=true,t.src=`https://connect.facebook.net/en_US/fbevents.js`,t.addEventListener?.(`load`,()=>{w(e,`[Facebook Pixel] fbevents.js loaded`);}),t.addEventListener?.(`error`,()=>{w(e,`[Facebook Pixel] fbevents.js failed to load`);});let n=document.getElementsByTagName(`script`)[0],r=n?.parentNode??document.head??document.body;return r?(r.insertBefore(t,n??null),w(e,`[Facebook Pixel] inserted fbevents.js`),true):false}function C(e,t){!t||!Array.isArray(t)||(e.content_ids=t.flatMap(e=>e.product_id?[e.product_id]:[]),e.num_items=t.length,e.contents=ae(t,e=>({id:e.product_id,quantity:e.quantity||1,item_price:e.price})));}function ue(e){if(typeof window>`u`)return false;let t=window;if(t.fbq)return le(e);let n=((...e)=>{n.callMethod?n.callMethod(...e):n.queue.push(e);});return n.push=n,n.loaded=true,n.version=`2.0`,n.queue=[],t.fbq=n,t._fbq||=n,le(e)}function de(e,t){let n=window;typeof window>`u`||!n.fbq||(t?n.fbq(`init`,e,{external_id:t}):n.fbq(`init`,e));}function fe(e,t,n){let r=window;typeof window>`u`||!r.fbq||r.fbq(e,t,n);}function w(e,...t){e&&console.log(...t);}function pe(e,t,n){let r=S.get(e);return !t||t===r?false:(de(e,t),S.set(e,t),x.add(e),w(n,`[Facebook Pixel] Re-initialized pixel ${e} with userId ${t}`),true)}function me(e,t,n){de(e,t),x.add(e),t&&S.set(e,t),w(n,`[Facebook Pixel] Initialized pixel ${e}`);}function T(e,t,n){return ue(n)?(pe(e,t,n)||x.has(e)||me(e,t,n),true):false}function he(e,t){t&&(e.content_ids=[t]);}const ge=b(he),_e=ne(ge);function ve(e,t){ge(e,t),t.product_id&&(e.contents=[{id:t.product_id,quantity:t.quantity||1,item_price:t.price}]);}function ye(e,t){C(e,t.products),e.content_type=`product`;}function E(e,t){C(e,t.products),re(e,t),e.content_type=`product`,v(e,`order_id`,t.order_id);}function be(e,t){C(e,t.products),ie(e,t),e.content_type=`product`,v(e,`order_id`,t.order_id);}function xe(e,t){v(e,`value`,t.value),t.product_id&&(e.content_ids=[t.product_id]);}const D={ViewContent:_e,AddToCart:ve,InitiateCheckout:E,AddPaymentInfo:E,Purchase:be,"Product List Viewed":ye,"Product Removed":ve,"Cart Viewed":E,"Coupon Applied":E,"Coupon Removed":E};function Se(e,t){let n={};return v(n,`currency`,t.currency),v(n,`event_id`,t.event_id),(D[e.name]??D[e.sourceName]??xe)(n,t),n}function Ce(e){return e.name||`Unknown`}function O(e,t=2){let n=e.trim();if(!n.includes(`%`)||t===0)return n;try{return O(decodeURIComponent(n),t-1)}catch{return n}}function we(e){let t=e.match(/[A-Za-z0-9]+/g);return t?t.map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``):`Unknown`}function Te(e){let t=O(Ce(e)),n=oe[t]||t;return se.has(n)?{method:`track`,name:n,sourceName:t}:{method:`trackCustom`,name:we(n),sourceName:t}}function Ee(e=false){let t=(t,n)=>{n.fbId&&T(n.fbId,t.userId,e);},n=(t,n)=>{if(!n.fbId||!T(n.fbId,t.userId,e))return;let r=Te(t),i=Se(r,t.properties);fe(r.method,r.name,i),w(e,`[Facebook Pixel] Sent ${r.name}:`,i);},r=(t,n)=>{n.fbId&&T(n.fbId,t.userId,e)&&(fe(`track`,`PageView`,{}),w(e,`[Facebook Pixel] Sent PageView`));};return {name:`Facebook Pixel`,preload:t,track:n,page:r,screen:r,identify:(t,n)=>{!n.fbId||!t.userId||(T(n.fbId,t.userId,e),w(e,`[Facebook Pixel] Identity synced: ${t.userId}`));}}}const De={"Product Viewed":`view_item`,"Product Added":`add_to_cart`,"Product Removed":`remove_from_cart`,"Checkout Started":`begin_checkout`,"Payment Info Entered":`add_payment_info`,"Order Completed":`purchase`,"Product List Viewed":`view_item_list`,"Cart Viewed":`view_cart`,"Coupon Entered":`coupon_entered`,"Coupon Applied":`coupon_applied`,"Coupon Denied":`coupon_denied`,"Coupon Removed":`coupon_removed`},k=new Set;function Oe(e){return !!(e&&/^G-[A-Z0-9]+$/.test(e))}function A(e){return `google-analytics-${e}`}function ke(e){if(document.getElementById(A(e)))return;let t=document.createElement(`script`);t.id=A(e),t.async=true,t.src=`https://www.googletagmanager.com/gtag/js?id=${e}`;let n=document.getElementsByTagName(`script`)[0];n?.parentNode?.insertBefore(t,n);}function Ae(e,t){if(typeof window>`u`)return false;let n=window;return n.dataLayer=n.dataLayer||[],n.gtag||(n.gtag=function(){n.dataLayer?.push(arguments);},n.gtag(`js`,new Date)),ke(e),k.has(e)?true:(n.gtag(`config`,e,{send_page_view:false}),k.add(e),N(t,`[Google Analytics] Initialized ${e}`),true)}function j(e,t,n){if(typeof window>`u`)return;let r=window;r.gtag&&r.gtag(`event`,t,{...n,send_to:e});}function M(e,t,n){if(typeof window>`u`)return;let r=window;!r.gtag||!e||(r.gtag(`config`,e,{user_id:t,send_page_view:false}),N(n,`[Google Analytics] User ID updated`));}function N(e,...t){e&&console.log(...t);}function P(e){return typeof e==`string`&&e.length>0?e:void 0}function F(e,t,n){n==null||n===``||(e[t]=n);}function je(e){return e.find(e=>typeof e==`number`)}function Me(e){return typeof e.quantity==`number`?e.quantity:1}function Ne(e){return typeof e.price==`number`}function Pe(e){let t=e.filter(Ne);if(t.length!==0)return t.reduce((e,t)=>e+t.price*Me(t),0)}function Fe(e,t){return je([e.value,e.total,e.revenue,Pe(t)])}function Ie(e){return P(e.transaction_id)??P(e.order_id)}function Le(e){return {item_id:e.product_id||e.sku,item_name:e.name,item_category:e.category,item_variant:P(e.variant),price:e.price,quantity:e.quantity??1}}function Re(e){return !e.product_id||e.products?[]:[{item_id:e.product_id,item_name:e.name,item_category:e.category,item_variant:P(e.variant),price:e.price,quantity:e.quantity??1}]}function ze(e){return Array.isArray(e.products)?e.products.map(Le):[]}function Be(e){return [...Re(e),...ze(e)]}function Ve(e,t=2){let n=e.trim();if(!n.includes(`%`)||t===0)return n;try{return Ve(decodeURIComponent(n),t-1)}catch{return n}}function He(e){let t=e.match(/[A-Za-z0-9]+/g)?.join(`_`).toLowerCase()||`custom_event`;return /^[a-z]/.test(t)?t:`event_${t}`}function Ue(e){let t=Ve(e.name||`Unknown`);return De[t]||He(t)}function I(e,t){F(e,`event_id`,t.properties.event_id),F(e,`team_id`,t.properties.team_id),F(e,`promoter_id`,t.properties.promoter_id),F(e,`order_id`,t.properties.order_id);}function We(e,t){let n={},r=Be(t.properties);return I(n,t),r.length>0&&(n.items=r),F(n,`currency`,t.properties.currency),F(n,`value`,Fe(t.properties,r)),F(n,`coupon`,t.properties.coupon),F(n,`payment_type`,P(t.properties.payment_type)??P(t.properties.payment_method)),F(n,`item_list_id`,t.properties.list_id),F(n,`item_list_name`,t.properties.list_name),e===`purchase`&&F(n,`transaction_id`,Ie(t.properties)),n}function L(e,t){if(Oe(e.gaId))return Ae(e.gaId,t)?e.gaId:void 0}function Ge(e=false){let t;return {name:`Google Analytics`,preload:(t,n)=>{L(n,e);},track:(t,n)=>{let r=L(n,e);if(!r)return;let i=Ue(t),a=We(i,t);j(r,i,a),N(e,`[Google Analytics] Sent ${i}:`,a);},page:(t,n)=>{let r=L(n,e);if(!r)return;let i={page_location:t.context.page.url,page_path:t.context.page.path,page_title:t.context.page.title};I(i,t),F(i,`page_referrer`,t.context.page.referrer),j(r,`page_view`,i),N(e,`[Google Analytics] Sent page_view:`,i);},screen:(t,n)=>{let r=L(n,e);if(!r)return;let i={};I(i,t),F(i,`screen_name`,t.name||`Unknown`),j(r,`screen_view`,i),N(e,`[Google Analytics] Sent screen_view:`,i);},identify:(n,r)=>{if(!n.userId)return;let i=L(r,e);i&&(t=i,M(i,n.userId,e),N(e,`[Google Analytics] Identity available`));},reset:()=>{M(t,null,e),t=void 0;}}}const Ke=new Set(Object.values(gl));function qe(e){return e.messageId??`msg_${e.timestamp.toString(36)}`}function Je(e){let t=e.context.campaign??{};return {session_id:e.sessionId,anonymous_id:e.anonymousId,user_id:e.userId,page:{url:e.context.page.url,path:e.context.page.path,title:e.context.page.title},referrer:e.context.page.referrer,user_agent:e.context.userAgent,utm_source:t.source,utm_medium:t.medium,utm_campaign:t.name,utm_term:t.term,utm_content:t.content}}function Ye(e){let{event_id:t,team_id:n,promoter_id:r,...i}=e;return {eventId:t,teamId:n,promoterId:r,rest:i}}function Xe(e){return !!(e.eventId&&e.teamId&&e.promoterId)}function Ze(e,t,n){e&&console.warn(`[Sessions API] Missing required fields, skipping ${t}:`,{eventId:n.eventId,teamId:n.teamId,promoterId:n.promoterId});}function Qe(e){return !!(e&&Ke.has(e))}function $e(e,t,n){e&&console.warn(`[Sessions API] Invalid or missing eventType "${n}", skipping ${t}`);}function et(e,t,n){return n&&t?{...e,name:t}:e}function tt(e,t,n,r){return {eventId:t.eventId,teamId:t.teamId,promoterId:t.promoterId,eventType:n,messageId:qe(e),occurredAt:new Date(e.timestamp).toISOString(),properties:et(t.rest,e.name,r),context:Je(e)}}function nt(e,t,n){e&&console.log(`[Sessions API] Sending ${t}:`,n);}function rt(e,t=false){let n=(e,n)=>{t&&console.log(`[Sessions API] Preload received (no-op)`);},r=async(n,r,i)=>{let a=Ye(r.properties);if(!Xe(a)){Ze(t,n,a);return}let o=i??r.name;if(!Qe(o)){$e(t,n,o);return}let s=tt(r,a,o,i);nt(t,n,s),await e.analytics[n](s);};return {name:`Sessions API`,preload:n,track:(e,n)=>r(`track`,e).catch(e=>{t&&console.error(`[Sessions API] track error:`,e);}),page:(e,n)=>r(`page`,e,`Page Viewed`).catch(e=>{t&&console.error(`[Sessions API] page error:`,e);}),screen:(e,n)=>r(`screen`,e,`Screen Viewed`).catch(e=>{t&&console.error(`[Sessions API] screen error:`,e);}),identify:(e,n)=>{t&&console.log(`[Sessions API] Identify received (logged only):`,{userId:e.userId,traits:e.traits});}}}const it={"Product Viewed":`ViewContent`,"Product Added":`AddToCart`,"Checkout Started":`InitiateCheckout`,"Payment Info Entered":`AddPaymentInfo`,"Order Completed":`Purchase`},at=new Set([`AddPaymentInfo`,`AddToCart`,`AddToWishlist`,`ApplicationApproval`,`CompleteRegistration`,`Contact`,`CustomizeProduct`,`Download`,`FindLocation`,`InitiateCheckout`,`Purchase`,`Schedule`,`Search`,`StartTrial`,`SubmitApplication`,`SubmitForm`,`Subscribe`,`ViewContent`]),ot=new Set,R=`https://analytics.tiktok.com/i18n/pixel/events.js`;function st(e){return Array.from(document.scripts??[]).some(t=>t.src.includes(R)&&t.src.includes(`sdkid=${e}`))}function ct(e){if(st(e))return;let t=document.createElement(`script`);t.async=true,t.src=`${R}?sdkid=${e}&lib=ttq`;let n=document.getElementsByTagName(`script`)[0];n?.parentNode?.insertBefore(t,n);}function z(){return []}function lt(){if(typeof window>`u`)return false;let e=window;if(e.ttq)return true;e.TiktokAnalyticsObject=`ttq`;let t=z();t.methods=[`page`,`track`,`identify`,`instances`,`debug`,`on`,`off`,`once`,`ready`,`alias`,`group`,`enableCookie`,`disableCookie`],t.setAndDefer=(e,t)=>{e[t]=(...n)=>{e.push([t,...n]);};};for(let e of t.methods)t.setAndDefer(t,e);return t.instance=e=>{let n=t._i[e]??z();for(let e of t.methods)t.setAndDefer(n,e);return n},t._i={},t._t={},t._o={},t.load=(e,n={})=>{t._i[e]=t._i[e]??z(),t._i[e]._u=R,t._t[e]=Date.now(),t._o[e]=n,ct(e);},e.ttq=t,true}function ut(e){let t=window;typeof window>`u`||!t.ttq||t.ttq.load(e);}function dt(e,t){let n=window;typeof window>`u`||!n.ttq||n.ttq.instance(e).identify?.({external_id:t});}function ft(e){let t={};return v(t,`event_id`,e),Object.keys(t).length>0?t:void 0}function pt(e,t,n,r){let i=window;if(typeof window>`u`||!i.ttq)return;let a=i.ttq.instance(e).track;if(!a)return;let o=ft(r);if(o){a(t,n,o);return}a(t,n);}function mt(e,t){let n=window;if(typeof window>`u`||!n.ttq)return;let r=n.ttq.instance(e).page;if(!r)return;let i=ft(t);if(i){r(i);return}r();}function B(e,...t){e&&console.log(...t);}function V(e,t){return lt()?ot.has(e)?true:(ut(e),ot.add(e),B(t,`[TikTok Pixel] Initialized pixel ${e}`),true):false}function ht(e,t){v(e,`content_ids`,t?[t]:void 0);}function gt(e){return e.find(e=>typeof e==`number`)}function H(e){return typeof e.quantity==`number`?e.quantity:1}function _t(e){if(typeof e.price==`number`)return e.price*H(e)}function vt(e){let t=e.filter(e=>typeof e.price==`number`);if(t.length!==0)return t.reduce((e,t)=>e+Number(t.price)*H(t),0)}function yt(e){return Array.isArray(e)?vt(e):void 0}function U(e){return gt([e.value,e.total,e.revenue,yt(e.products),_t(e)])}function bt(e,t){ht(e,t.product_id),v(e,`content_name`,t.name),v(e,`price`,t.price),v(e,`quantity`,t.product_id?H(t):void 0),v(e,`value`,U(t)),e.content_type=`product`;}function xt(e,t){bt(e,t),v(e,`content_category`,t.category);}function St(e,t){bt(e,t);}function Ct(e){let t={content_type:`product`};return v(t,`content_id`,e.product_id),v(t,`content_name`,e.name),v(t,`quantity`,H(e)),v(t,`price`,e.price),t}function wt(e){return e.flatMap(e=>e.product_id?[e.product_id]:[])}function Tt(e){return e.reduce((e,t)=>e+H(t),0)}function Et(e,t){Array.isArray(t)&&(v(e,`contents`,t.map(Ct)),v(e,`content_ids`,wt(t)),v(e,`quantity`,Tt(t)),e.content_type=`product`);}function Dt(e,t){Et(e,t.products),v(e,`value`,U(t));}function Ot(e,t){Et(e,t.products),v(e,`value`,U(t)),v(e,`order_id`,t.order_id);}function kt(e,t){v(e,`value`,t.value);}const At={ViewContent:xt,AddToCart:St,InitiateCheckout:Dt,AddPaymentInfo:Dt,Purchase:Ot};function jt(e,t){let n={};return v(n,`currency`,t.currency),(At[e]??kt)(n,t),n}function Mt(e){return e.name||`Unknown`}function Nt(e,t=2){let n=e.trim();if(!n.includes(`%`)||t===0)return n;try{return Nt(decodeURIComponent(n),t-1)}catch{return n}}function Pt(e){let t=e.match(/[A-Za-z0-9]+/g)?.join(``)||`CustomEvent`;return /^[A-Za-z]/.test(t)?t.slice(0,50):`Event${t}`.slice(0,50)}function Ft(e){let t=Nt(Mt(e)),n=it[t]||t;return at.has(n)?n:Pt(n)}function W(e){return e.tikTokId}function It(e=false){let t=(t,n)=>{let r=W(n);r&&V(r,e)&&t.userId&&dt(r,t.userId);},n=(t,n)=>{let r=W(n);if(!r||!V(r,e))return;let i=Ft(t),a=jt(i,t.properties);pt(r,i,a,t.properties.event_id),B(e,`[TikTok Pixel] Sent ${i}:`,a);},r=(t,n)=>{let r=W(n);r&&V(r,e)&&(mt(r,t.properties.event_id),B(e,`[TikTok Pixel] Sent page view`));};return {name:`TikTok Pixel`,preload:t,track:n,page:r,screen:r,identify:(t,n)=>{let r=W(n);!r||!t.userId||V(r,e)&&(dt(r,t.userId),B(e,`[TikTok Pixel] Identity synced`));}}}const Lt={preload:(e,t,n)=>e.preload(t,n),track:(e,t,n)=>e.track(t,n),page:(e,t,n)=>e.page(t,n),screen:(e,t,n)=>e.screen(t,n),identify:(e,t,n)=>e.identify(t,n)},Rt=[`fbId`,`gaId`,`tikTokId`];function zt(e){return e||void 0}function Bt(e){let t=e??{};return Object.fromEntries(Rt.map(e=>[e,zt(t[e])]))}function Vt(e){return Rt.some(t=>!!e[t])}function Ht(e,t,n){e&&console.log(`[DestinationManager] Fetched config for promoter ${t}:`,n);}function Ut(e,t,n){e&&console.warn(`[DestinationManager] Failed to fetch promoter ${t} config:`,n);}function Wt(e,t=false,n={}){let r=new Map,i=new Map,a=n.sessions===false?null:rt(e,t),o=[n.facebook===false?null:Ee(t),n.googleAnalytics===false?null:Ge(t),n.tikTok===false?null:It(t)].filter(e=>!!e),s=async n=>{try{let r=Bt((await e.promoter.get({key:n})).promoter?.tracking);return Ht(t,n,r),r}catch(e){return Ut(t,n,e),{}}},c=async(e,n,r)=>{try{await d(e,n,r);}catch(n){t&&console.error(`[DestinationManager] ${e.name} error:`,n);}},l=e=>{try{e.reset?.();}catch(n){t&&console.error(`[DestinationManager] ${e.name} reset error:`,n);}},u=async e=>{let t=r.get(e);if(t)return t;let n=i.get(e);if(n)return n;n=s(e),i.set(e,n);try{let t=await n;return r.set(e,t),t}finally{i.delete(e);}},d=(e,t,n)=>Lt[t.type]?.(e,t,n);return {sendEvent:async(e,t)=>{if(!a&&o.length===0)return;let n=a?c(a,e,{}):Promise.resolve();if(o.length===0){await n;return}let r=await u(t);if(!Vt(r)){await n;return}let i=Promise.all(o.map(t=>c(t,e,r)));await Promise.all([n,i]);},clearCache:()=>{r.clear(),i.clear();for(let e of o)l(e);}}}var G={},Gt;function Kt(){if(Gt)return G;Gt=1,Object.defineProperty(G,"__esModule",{value:true}),G.parseCookie=s,G.parse=s,G.stringifyCookie=c,G.stringifySetCookie=l,G.serialize=l,G.parseSetCookie=u,G.stringifySetCookie=l,G.serialize=l;let e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=/^-?\d+$/,a=Object.prototype.toString,o=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function s(e,t){let n=new o,r=e.length;if(r<2)return n;let i=t?.decode||m,a=0;do{let t=f(e,a,r);if(t===-1)break;let o=d(e,a,r);if(t>o){a=e.lastIndexOf(`;`,t-1)+1;continue}let s=p(e,a,t);n[s]===void 0&&(n[s]=i(p(e,t+1,o))),a=o+1;}while(a<r);return n}function c(n,r){let i=r?.encode||encodeURIComponent,a=[];for(let r of Object.keys(n)){let o=n[r];if(o===void 0)continue;if(!e.test(r))throw TypeError(`cookie name is invalid: ${r}`);let s=i(o);if(!t.test(s))throw TypeError(`cookie val is invalid: ${o}`);a.push(`${r}=${s}`);}return a.join(`; `)}function l(i,a,o){let s=typeof i==`object`?i:{...o,name:i,value:String(a)},c=(typeof a==`object`?a:o)?.encode||encodeURIComponent;if(!e.test(s.name))throw TypeError(`argument name is invalid: ${s.name}`);let l=s.value?c(s.value):``;if(!t.test(l))throw TypeError(`argument val is invalid: ${s.value}`);let u=s.name+`=`+l;if(s.maxAge!==void 0){if(!Number.isInteger(s.maxAge))throw TypeError(`option maxAge is invalid: ${s.maxAge}`);u+=`; Max-Age=`+s.maxAge;}if(s.domain){if(!n.test(s.domain))throw TypeError(`option domain is invalid: ${s.domain}`);u+=`; Domain=`+s.domain;}if(s.path){if(!r.test(s.path))throw TypeError(`option path is invalid: ${s.path}`);u+=`; Path=`+s.path;}if(s.expires){if(!h(s.expires)||!Number.isFinite(s.expires.valueOf()))throw TypeError(`option expires is invalid: ${s.expires}`);u+=`; Expires=`+s.expires.toUTCString();}if(s.httpOnly&&(u+=`; HttpOnly`),s.secure&&(u+=`; Secure`),s.partitioned&&(u+=`; Partitioned`),s.priority)switch(typeof s.priority==`string`?s.priority.toLowerCase():void 0){case `low`:u+=`; Priority=Low`;break;case `medium`:u+=`; Priority=Medium`;break;case `high`:u+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid: ${s.priority}`)}if(s.sameSite)switch(typeof s.sameSite==`string`?s.sameSite.toLowerCase():s.sameSite){case true:case `strict`:u+=`; SameSite=Strict`;break;case `lax`:u+=`; SameSite=Lax`;break;case `none`:u+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid: ${s.sameSite}`)}return u}function u(e,t){let n=t?.decode||m,r=e.length,a=d(e,0,r),o=f(e,0,a),s=o===-1?{name:``,value:n(p(e,0,a))}:{name:p(e,0,o),value:n(p(e,o+1,a))},c=a+1;for(;c<r;){let t=d(e,c,r),n=f(e,c,t),a=n===-1?p(e,c,t):p(e,c,n),o=n===-1?void 0:p(e,n+1,t);switch(a.toLowerCase()){case `httponly`:s.httpOnly=true;break;case `secure`:s.secure=true;break;case `partitioned`:s.partitioned=true;break;case `domain`:s.domain=o;break;case `path`:s.path=o;break;case `max-age`:o&&i.test(o)&&(s.maxAge=Number(o));break;case `expires`:if(!o)break;let e=new Date(o);Number.isFinite(e.valueOf())&&(s.expires=e);break;case `priority`:if(!o)break;let t=o.toLowerCase();(t===`low`||t===`medium`||t===`high`)&&(s.priority=t);break;case `samesite`:if(!o)break;let n=o.toLowerCase();(n===`lax`||n===`strict`||n===`none`)&&(s.sameSite=n);break}c=t+1;}return s}function d(e,t,n){let r=e.indexOf(`;`,t);return r===-1?n:r}function f(e,t,n){let r=e.indexOf(`=`,t);return r<n?r:-1}function p(e,t,n){let r=t,i=n;do{let t=e.charCodeAt(r);if(t!==32&&t!==9)break}while(++r<i);for(;i>r;){let t=e.charCodeAt(i-1);if(t!==32&&t!==9)break;i--;}return e.slice(r,i)}function m(e){if(e.indexOf(`%`)===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function h(e){return a.call(e)===`[object Date]`}return G}var K=Kt();function qt(){let e=typeof globalThis>`u`?void 0:globalThis.TEST_HAS_DOCUMENT_COOKIE;return typeof e==`boolean`?e:typeof document==`object`&&typeof document.cookie==`string`}function Jt(e){return typeof e==`string`?K.parse(e):typeof e==`object`&&e?e:{}}function q(e,t={}){let n=Yt(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function Yt(e){return e&&e[0]===`j`&&e[1]===`:`?e.substr(2):e}var Xt=class{constructor(e,t={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=false,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;let e=this.cookies;this.cookies=K.parse(document.cookie),this._checkChanges(e);};let n=typeof document>`u`?``:document.cookie;this.cookies=Jt(e||n),this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=qt();}_emitChange(e){for(let t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e);}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach(t=>{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:q(this.cookies[t])});});}_startPolling(){this.pollingInterval=setInterval(this.update,300);}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval);}get(e,t={}){return t.doNotUpdate||this.update(),q(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();let t={};for(let n in this.cookies)t[n]=q(this.cookies[n],e);return t}set(e,t,n){n=n?Object.assign(Object.assign({},this.defaultSetOptions),n):this.defaultSetOptions;let r=typeof t==`string`?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:r}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=K.serialize(e,r,n)),this._emitChange({name:e,value:t,options:n});}remove(e,t){let n=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=K.serialize(e,``,n)),this._emitChange({name:e,value:void 0,options:t});}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window==`object`&&`cookieStore`in window?window.cookieStore.addEventListener(`change`,this.update):this._startPolling());}removeChangeListener(e){let t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window==`object`&&`cookieStore`in window?window.cookieStore.removeEventListener(`change`,this.update):this._stopPolling());}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0]);}};function J(){return typeof document>`u`?null:new Xt}function Zt(e){return J()?.get(e)??null}function Qt(e,t){let n=J();n&&n.set(e,t,{path:`/`,sameSite:`lax`,secure:window.location.protocol===`https:`});}function $t(e){let t=J();t&&t.remove(e,{path:`/`});}function en(e){if(typeof localStorage>`u`)return null;try{return localStorage.getItem(e)}catch{return null}}function tn(e,t){if(!(typeof localStorage>`u`))try{localStorage.setItem(e,t);}catch{}}function nn(e){if(!(typeof localStorage>`u`))try{localStorage.removeItem(e);}catch{}}const Y={deleteCookie:$t,getCookie:Zt,getItem:en,removeItem:nn,setCookie:Qt,setItem:tn};function X(){return dl$1(Y)}function rn(){return fl$1(Y)}function an(){return pl$1(Y)}function on(e){if(typeof document>`u`||!document.body)return e;let t;try{t=document.createElement(`a`),t.href=e,t.style.display=`none`,document.body.appendChild(t);let n=t.href;t.dispatchEvent(new MouseEvent(`mousedown`,{bubbles:true}));let r=t.href;return r!==n&&r.includes(`_gl=`)?r:e}catch{return e}finally{t?.remove();}}function Q(){return globalThis.crypto?.randomUUID?.()??`msg_${Date.now().toString(36)}_${Math.random().toString(36).slice(2)}`}function dn(e=`tenant-web`){let t=_(),n=ee({anonymousId:rn(),context:t,sessionId:X()});return {name:e,referrer:t.page.referrer,utmSource:t.campaign?.source,utmMedium:t.campaign?.medium,utmCampaign:t.campaign?.name,browser:$(n.browser),deviceType:fn(n.device_type),sessionId:$(n.browser_session_id),anonymousId:$(n.anonymous_id)}}function $(e){return typeof e==`string`&&e.length>0?e:void 0}function fn(e){return e===`MOBILE`||e===`TABLET`||e===`DESKTOP`?e:void 0}function pn(e){let t=e.debug??false,n=Wt(e.client,t,e.destinations),r=X(),i=rn(),a;t&&console.log(`[Analytics] Initialized:`,{sessionId:r,anonymousId:i});let o=(e,t,n)=>{let o=_();return {type:e,name:t,properties:{...ee({anonymousId:i,context:o,sessionId:r}),...n},context:o,timestamp:Date.now(),messageId:Q(),sessionId:r,anonymousId:i,userId:a}},s=async(e,r)=>{try{await n.sendEvent(e,r);}catch(e){t&&console.error(`[Analytics] Failed to send event:`,e);}},c=(e,n)=>{let r=e.promoter_id;return !r&&t&&console.warn(`[Analytics] ${n}() called without promoter_id, skipping`),r},l=async(e,t={})=>{let n=c(t,`track`);n&&await s(o(`track`,e,t),n);},u=async(e={})=>{let t=c(e,`preload`);t&&await s(o(`preload`,`Preload`,e),t);},d=(e={})=>{u(e);},f=(e,t={})=>{l(e,t);},p=async(e,t={})=>{let n=c(t,`page`);n&&await s(o(`page`,e||`Page Viewed`,t),n);},m=(e,t={})=>{p(e,t);},h=async(e,t={})=>{let n=c(t,`screen`);n&&await s(o(`screen`,e||`Screen Viewed`,t),n);},g=(e,t={})=>{h(e,t);},v=async(e,n={})=>{a=e;let o=n.promoter_id;o&&await s({type:`identify`,properties:{},context:_(),timestamp:Date.now(),messageId:Q(),sessionId:r,anonymousId:i,userId:e,traits:n},o),t&&console.log(`[Analytics] User identified:`,e);},y=(e,t={})=>{v(e,t);},te=(e,n)=>{t&&console.log(`[Analytics] Alias called:`,{userId:e,previousId:n});},b=async(e,n={})=>{let o=n.promoter_id;o&&await s({type:`group`,properties:{},context:_(),timestamp:Date.now(),messageId:Q(),sessionId:r,anonymousId:i,userId:a,groupId:e,traits:n},o),t&&console.log(`[Analytics] Group called:`,{groupId:e,traits:n});};return {preload:d,preloadAsync:u,track:f,trackAsync:l,page:m,pageAsync:p,screen:g,screenAsync:h,identify:y,identifyAsync:v,alias:te,group:(e,t={})=>{b(e,t);},groupAsync:b,reset:()=>{let e=an();r=e.sessionId,i=e.anonymousId,a=void 0,n.clearCache(),t&&console.log(`[Analytics] Session reset:`,{sessionId:r,anonymousId:i});}}}
|
|
102
87
|
|
|
103
88
|
const currencies = {
|
|
104
89
|
// Airwallex-supported currencies
|
|
@@ -2725,7 +2710,7 @@ const SessionsTicketing = class {
|
|
|
2725
2710
|
this.finishInitialLoad(initial);
|
|
2726
2711
|
return;
|
|
2727
2712
|
}
|
|
2728
|
-
this.client =
|
|
2713
|
+
this.client = bg({
|
|
2729
2714
|
environment: this.apiUrl,
|
|
2730
2715
|
tenantId: this.tenantId,
|
|
2731
2716
|
});
|