@session-services/web-elements 0.1.24 → 0.1.26

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.
@@ -1,22 +1,22 @@
1
1
  import { t as transformTag, p as proxyCustomElement, H as H$3, c as createEvent, h as h$2, a as Host } from './index.js';
2
2
 
3
- function n(e){return e[0]??{}}function r(e){return Array.isArray(e)?e:e==null?[]:[e]}const i=`orpc`;var a$1=class a extends Error{constructor(...e){super(...e),this.name=`AbortError`;}};function o$1(e){let t;return ()=>{if(t)return t.result;let n=e();return t={result:n},n}}function s$1(e){let t=Promise.resolve();return (...n)=>t=t.catch(()=>{}).then(()=>e(...n))}function c$1(){return globalThis[`__@orpc/shared@1.13.7/otel/config__`]}function l$1(e,t={},n){return (c$1()?.tracer)?.startSpan(e,t,n)}function u$1(e,t,n={}){if(!e)return;let r=d$1(t);e.recordException(r),(!n.signal?.aborted||n.signal.reason!==t)&&e.setStatus({code:2,message:r.message});}function d$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 f$1({name:e,context:t,...n},r){let i=c$1()?.tracer;if(!i)return r();let a=async e=>{try{return await r(e)}catch(t){throw u$1(e,t,n),t}finally{e.end();}};return t?i.startActiveSpan(e,n,t,a):i.startActiveSpan(e,n,a)}async function p$1(e,t){let n=c$1();if(!e||!n)return t();let r=n.trace.setSpan(n.context.active(),e);return n.context.with(r,t)}function m$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.for(`asyncDispose`),te$1=Symbol.asyncDispose??ee$1;var ne$1=class ne{#e=false;#t=false;#n;#r;constructor(e,t){this.#n=t,this.#r=s$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[te$1](){this.#e=true,this.#t||(this.#t=true,await this.#n(`dispose`));}[Symbol.asyncIterator](){return this}};function h$1({name:e,...t},n){let r;return new ne$1(async()=>{r??=l$1(e);try{let e=await p$1(r,()=>n.next());return r?.addEvent(e.done?`completed`:`yielded`),e}catch(e){throw u$1(r,e,t),e}},async e=>{try{e!==`next`&&await p$1(r,()=>n.return?.());}catch(e){throw u$1(r,e,t),e}finally{r?.end();}})}function re$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 ie$1(e){if(e)return JSON.parse(e)}function ae$1(e){return JSON.stringify(e)}function oe$1(e){return ce$1(e)?Object.getPrototypeOf(e)?.constructor:null}function se$1(e){if(!e||typeof e!=`object`)return false;let t=Object.getPrototypeOf(e);return t===Object.prototype||!t||!t.constructor}function ce$1(e){return !!e&&(typeof e==`object`||typeof e==`function`)}function le$1(e,t){let n=e;for(let e of t){if(!ce$1(n))return;n=n[e];}return n}const ue$1=(()=>{let e=function(){};return e.prototype=Object.create(null),Object.freeze(e.prototype),e})();function de$1(e,...t){return typeof e==`function`?e(...t):e}function fe$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=>!me$1(e)))return Reflect.apply(t,n,r);let i=true;r[0].call(n,fe$1(new Proxy(e,{get:(e,t,n)=>{if(i&&t===`then`){i=false;return}return Reflect.get(e,t,n)}})));}})}})}const pe$1=/^\s*function\s*\(\)\s*\{\s*\[native code\]\s*\}\s*$/;function me$1(e){return typeof e==`function`&&pe$1.test(e.toString())}function he$1(e){try{return decodeURIComponent(e)}catch{return e}}const ge$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 _e$1(e,t){return t??ge$1[e]?.status??500}function ve$1(e,t){return t||ge$1[e]?.message||e}const ye$1=Symbol.for(`__@orpc/client@1.13.7/error/ORPC_ERROR_CONSTRUCTORS__`);globalThis[ye$1]??=new WeakSet;const be$1=globalThis[ye$1];var xe$1=class xe extends Error{defined;code;status;data;constructor(e,...t){let r=n(t);if(r.status!==void 0&&!we$1(r.status))throw Error(`[ORPCError] Invalid error status code.`);let i=ve$1(e,r.message);super(i,r),this.code=e,this.status=_e$1(e,r.status),this.defined=r.defined??false,this.data=r.data;}toJSON(){return {defined:this.defined,code:this.code,status:this.status,message:this.message,data:this.data}}static[Symbol.hasInstance](e){if(be$1.has(this)){let t=oe$1(e);if(t&&be$1.has(t))return true}return super[Symbol.hasInstance](e)}};be$1.add(xe$1);function Ce$1(e){return e instanceof xe$1?e:new xe$1(`INTERNAL_SERVER_ERROR`,{message:`Internal server error`,cause:e})}function we$1(e){return e<200||e>=400}function Te$1(e){if(!se$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`&&we$1(e.status)&&`message`in e&&typeof e.message==`string`}function Ee$1(e,t={}){return new xe$1(e.code,{...t,...e})}var De$1=class De extends TypeError{},g$1=class g extends TypeError{},Oe$1=class Oe extends Error{data;constructor(e){super(e?.message??`An error event was received`,e),this.data=e?.data;}};function ke$1(e){let t=e.replace(/\n+$/,``).split(/\n/),n={data:void 0,event:void 0,id:void 0,retry:void 0,comments:[]};for(let e of t){let t=e.indexOf(`:`),r=t===-1?e:e.slice(0,t),i=t===-1?``:e.slice(t+1).replace(/^\s/,``);if(t===0)n.comments.push(i);else if(r===`data`)n.data??=``,n.data+=`${i}
4
- `;else if(r===`event`)n.event=i;else if(r===`id`)n.id=i;else if(r===`retry`){let e=Number.parseInt(i);Number.isInteger(e)&&e>=0&&e.toString()===i&&(n.retry=e);}}return n.data=n.data?.replace(/\n$/,``),n}var Ae$1=class Ae{constructor(e={}){this.options=e;}incomplete=``;feed(e){this.incomplete+=e;let t=this.incomplete.lastIndexOf(`
5
-
6
- `);if(t===-1)return;let n=this.incomplete.slice(0,t).split(/\n\n/);this.incomplete=this.incomplete.slice(t+2);for(let e of n){let t=ke$1(`${e}
7
-
8
- `);this.options.onEvent&&this.options.onEvent(t);}}end(){if(this.incomplete)throw new g$1(`Event Iterator ended before complete`)}},je$1=class je extends TransformStream{constructor(){let e;super({start(t){e=new Ae$1({onEvent:e=>{t.enqueue(e);}});},transform(t){e.feed(t);},flush(){e.end();}});}};function Me$1(e){if(e.includes(`
9
- `))throw new De$1(`Event's id must not contain a newline character`)}function Ne$1(e){if(e.includes(`
10
- `))throw new De$1(`Event's event must not contain a newline character`)}function _$1(e){if(!Number.isInteger(e)||e<0)throw new De$1(`Event's retry must be a integer and >= 0`)}function Pe$1(e){if(e.includes(`
11
- `))throw new De$1(`Event's comment must not contain a newline character`)}function Fe$1(e){let t=e?.split(/\n/)??[],n=``;for(let e of t)n+=`data: ${e}
12
- `;return n}function Ie$1(e){let t=``;for(let n of e??[])Pe$1(n),t+=`: ${n}
13
- `;return t}function Le$1(e){let t=``;return t+=Ie$1(e.comments),e.event!==void 0&&(Ne$1(e.event),t+=`event: ${e.event}
14
- `),e.retry!==void 0&&(_$1(e.retry),t+=`retry: ${e.retry}
15
- `),e.id!==void 0&&(Me$1(e.id),t+=`id: ${e.id}
16
- `),t+=Fe$1(e.data),t+=`
17
- `,t}const Re$1=Symbol(`ORPC_EVENT_SOURCE_META`);function ze$1(e,t){if(t.id===void 0&&t.retry===void 0&&!t.comments?.length)return e;if(t.id!==void 0&&Me$1(t.id),t.retry!==void 0&&_$1(t.retry),t.comments!==void 0)for(let e of t.comments)Pe$1(e);return new Proxy(e,{get(e,n,r){return n===Re$1?t:Reflect.get(e,n,r)}})}function Be$1(e){return ce$1(e)?Reflect.get(e,Re$1):void 0}function Ve$1(e){return `inline; filename="${e.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 He$1(e){let t=e.match(/filename\*=(UTF-8'')?([^;]*)/i);if(t&&typeof t[2]==`string`)return he$1(t[2]);let n=e.match(/filename="((?:\\"|[^"])*)"/i);if(n&&typeof n[1]==`string`)return n[1].replace(/\\"/g,`"`)}function Ue$1(e,t){let n={...e};for(let e in t)Array.isArray(t[e])?n[e]=[...r(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 We$1(e,t){let n=async e=>{let n=await t.error(e);if(n!==e){let t=Be$1(e);t&&ce$1(n)&&(n=ze$1(n,t));}return n};return new ne$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=Be$1(i);e&&ce$1(a)&&(a=ze$1(a,e));}return {done:r,value:a}},async()=>{try{await e.return?.();}catch(e){throw await n(e)}})}function Ke$1(e){return {...e,context:e.context??{}}}function qe$1(e,t={}){let n=t.path??[];return fe$1(new Proxy(async(...[t,r={}])=>await e.call(n,t,Ke$1(r)),{get(r,i){return typeof i==`string`?qe$1(e,{path:[...n,i]}):Reflect.get(r,i)}}))}function Ye$1(e,t={}){let n=(e?.pipeThrough(new TextDecoderStream).pipeThrough(new je$1))?.getReader(),r,i=false;return new ne$1(async()=>{r??=l$1(`consume_event_iterator_stream`);try{for(;;){if(n===void 0)return {done:true,value:void 0};let{done:e,value:t}=await p$1(r,()=>n.read());if(e){if(i)throw new a$1(`Stream was cancelled`);return {done:true,value:void 0}}switch(t.event){case `message`:{let e=ie$1(t.data);return ce$1(e)&&(e=ze$1(e,t)),r?.addEvent(`message`),{done:false,value:e}}case `error`:{let e=new Oe$1({data:ie$1(t.data)});throw e=ze$1(e,t),r?.addEvent(`error`),e}case `done`:{let e=ie$1(t.data);return ce$1(e)&&(e=ze$1(e,t)),r?.addEvent(`done`),{done:true,value:e}}default:r?.addEvent(`maybe_keepalive`);}}}catch(e){throw e instanceof Oe$1||u$1(r,e,t),e}},async e=>{try{e!==`next`&&(i=true,r?.addEvent(`cancelled`)),await p$1(r,()=>n?.cancel());}catch(e){throw u$1(r,e,t),e}finally{r?.end();}})}function Xe$1(e,t={}){let n=t.eventIteratorKeepAliveEnabled??true,r=t.eventIteratorKeepAliveInterval??5e3,i=t.eventIteratorKeepAliveComment??``,a=t.eventIteratorInitialCommentEnabled??true,o=t.eventIteratorInitialComment??``,s=false,c,d;return new ReadableStream({start(e){d=l$1(`stream_event_iterator`),a&&e.enqueue(Le$1({comments:[o]}));},async pull(t){try{n&&(c=setInterval(()=>{t.enqueue(Le$1({comments:[i]})),d?.addEvent(`keepalive`);},r));let a=await p$1(d,()=>e.next());if(clearInterval(c),s)return;let o=Be$1(a.value);if(!a.done||a.value!==void 0||o!==void 0){let e=a.done?`done`:`message`;t.enqueue(Le$1({...o,event:e,data:ae$1(a.value)})),d?.addEvent(e);}a.done&&(t.close(),d?.end());}catch(e){if(clearInterval(c),s)return;e instanceof Oe$1?(t.enqueue(Le$1({...Be$1(e),event:`error`,data:ae$1(e.data)})),d?.addEvent(`error`),t.close()):(u$1(d,e),t.error(e)),d?.end();}},async cancel(){try{s=true,clearInterval(c),d?.addEvent(`cancelled`),await p$1(d,()=>e.return?.());}catch(e){throw u$1(d,e),e}finally{d?.end();}}}).pipeThrough(new TextEncoderStream)}function Ze$1(e,t={}){return f$1({name:`parse_standard_body`,signal:t.signal},async()=>{let n=e.headers.get(`content-disposition`);if(typeof n==`string`){let t=He$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 ie$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 Ye$1(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 Qe$1(e,t,n={}){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??Ve$1(e instanceof File?e.name:`blob`)),e):e instanceof FormData||e instanceof URLSearchParams?e:m$1(e)?(t.set(`content-type`,`text/event-stream`),Xe$1(e,n)):(t.set(`content-type`,`application/json`),ae$1(e))}function $e$1(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 et$1(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 tt$1(e,t={}){let n=et$1(e.headers),r=Qe$1(e.body,n,t);return new Request(e.url,{signal:e.signal,method:e.method,headers:n,body:r})}function nt$1(e,t={}){return {body:o$1(()=>Ze$1(e,t)),status:e.status,get headers(){let t=$e$1(e.headers);return Object.defineProperty(this,`headers`,{value:t,writable:true}),t},set headers(e){Object.defineProperty(this,`headers`,{value:e,writable:true});}}}var rt$1=class rt{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);}},it$1=class it{constructor(e,t,n={}){this.codec=e,this.sender=t,new rt$1(n.plugins).init(n),this.interceptors=r(n.interceptors),this.clientInterceptors=r(n.clientInterceptors);}interceptors;clientInterceptors;call(e,t,n){return f$1({name:`${i}.${e.join(`/`)}`,signal:n.signal},r=>(r?.setAttribute(`rpc.system`,i),r?.setAttribute(`rpc.method`,e.join(`.`)),m$1(t)&&(t=h$1({name:`consume_event_iterator_input`,signal:n.signal},t)),re$1(this.interceptors,{...n,path:e,input:t},async({path:e,input:t,...n})=>{let i=c$1(),a,o=i?.trace.getActiveSpan()??r;o&&i&&(a=i?.trace.setSpan(i.context.active(),o));let s=await f$1({name:`encode_request`,context:a},()=>this.codec.encode(e,t,n)),l=await re$1(this.clientInterceptors,{...n,input:t,path:e,request:s},({input:e,path:t,request:n,...r})=>f$1({name:`send_request`,signal:r.signal,context:a},()=>this.sender.call(n,r,t,e))),u=await f$1({name:`decode_response`,context:a},()=>this.codec.decode(l,n,e,t));return m$1(u)?h$1({name:`consume_event_iterator_output`,signal:n.signal},u):u})))}};function at$1(e){return `/${e.map(encodeURIComponent).join(`/`)}`}function ot(e){return typeof e.forEach==`function`?$e$1(e):e}function st(e){return Object.entries(ge$1).find(([,t])=>t.status===e)?.[0]??`MALFORMED_ORPC_ERROR_RESPONSE`}function ct(e,t){return {...e,...t}}var lt=class{"~orpc";constructor(e){if(e.route?.successStatus&&we$1(e.route.successStatus))throw Error(`[ContractProcedure] Invalid successStatus.`);if(Object.values(e.errorMap).some(e=>e&&e.status&&!we$1(e.status)))throw Error(`[ContractProcedure] Invalid error status code.`);this[`~orpc`]=e;}};function ut(e){return e instanceof lt?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 dt(e,t){return {...e,...t}}function ft(e,t){return {...e,...t}}function pt(e,t){return e.path?{...e,path:`${t}${e.path}`}:e}function mt(e,t){return {...e,tags:[...t,...e.tags??[]]}}function ht(e,t){return e?`${e}${t}`:t}function gt(e,t){return e?[...e,...t]:t}function _t(e,t){let n=e;return t.prefix&&(n=pt(n,t.prefix)),t.tags?.length&&(n=mt(n,t.tags)),n}function vt(e,t){if(ut(e))return new lt({...e[`~orpc`],errorMap:ct(t.errorMap,e[`~orpc`].errorMap),route:_t(e[`~orpc`].route,t)});let n={};for(let r in e)n[r]=vt(e[r],t);return n}const v$1=new class e extends lt{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:ct(this[`~orpc`].errorMap,t)})}meta(t){return new e({...this[`~orpc`],meta:dt(this[`~orpc`].meta,t)})}route(t){return new e({...this[`~orpc`],route:ft(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:ht(this[`~orpc`].prefix,t)})}tag(...t){return new e({...this[`~orpc`],tags:gt(this[`~orpc`].tags,t)})}router(e){return vt(e,this[`~orpc`])}}({errorMap:{},route:{},meta:{}}),yt={defaultMethod:`POST`,defaultSuccessStatus:200,defaultSuccessDescription:`OK`,defaultInputStructure:`compact`,defaultOutputStructure:`compact`};function bt(e,t){return t===void 0?yt[e]:t}const St=Symbol.for(`constructDateFrom`);function Ct(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&St in e?e[St](t):e instanceof Date?new e.constructor(t):new Date(t)}function wt(e,t){return Ct(e,e)}function Tt(e,t,n){let r=wt(e);return isNaN(t)?Ct(e,NaN):(t&&r.setDate(r.getDate()+t),r)}const Et={},Dt={};function Ot(e,t){try{let n=(Et[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in Dt?Dt[n]:At(n,n.split(`:`))}catch{if(e in Dt)return Dt[e];let t=e?.match(kt);return t?At(e,t.slice(1)):NaN}}const kt=/([+-]\d\d):?(\d\d)?/;function At(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return Dt[e]=n*60+r>0?n*60+r+i:n*60-r-i}var jt=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(Ot(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)),Ft(this),Nt(this)):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=-Ot(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Nt(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}};const Mt=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Mt.test(e))return;let t=e.replace(Mt,`$1UTC`);jt.prototype[t]&&(e.startsWith(`get`)?jt.prototype[e]=function(){return this.internal[t]()}:(jt.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Pt(this),+this},jt.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Nt(this),+this}));});function Nt(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Ot(e.timeZone,e)*60));}function Pt(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()),Ft(e);}function Ft(e){let t=Ot(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);let i=-new Date(+e).getTimezoneOffset(),a=i- -new Date(+r).getTimezoneOffset(),o=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&o&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);let s=i-n;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);let c=new Date(+e);c.setUTCSeconds(0);let l=i>0?c.getSeconds():(c.getSeconds()-60)%60,u=Math.round(-(Ot(e.timeZone,e)*60))%60;(u||l)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+u),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+u+l));let d=Ot(e.timeZone,e),f=d>0?Math.floor(d):Math.ceil(d),p=-new Date(+e).getTimezoneOffset()-f,m=f!==n,ee=p-s;if(m&&ee){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+ee);let t=Ot(e.timeZone,e),n=f-(t>0?Math.floor(t):Math.ceil(t));n&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n));}}function y$1(e){return (typeof e==`string`?new Date(e):e).toISOString().replace(/\.\d{3}Z$/,``)}let b$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`,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`,gtmId:`GTM-K8WPM5N`,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(Tt(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:Tt(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:Tt(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:y$1(Tt(new Date,1)),entryEndsAt:y$1(Tt(new Date,2)),publishAt:y$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,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:y$1(Tt(new Date,1)),entryEndsAt:y$1(Tt(new Date,2)),saleStartsAt:y$1(new Date),saleEndsAt:y$1(Tt(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,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},ee=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},te=e.PayoutDeduction={id:`pad_01jq90naksfzf8gt2xnn71h21h`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),amount:100,currency:`AUD`,description:`Minimum bar spend not met`,reference:`XYZ`,gateway:`AIRWALLEX`,gatewayId:`1221bbbc-cc97-4119-a597-69019e9d8a93`,beneficiary:u.name,beneficiaryId:u.id},ne=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:[ee],deductions:[te],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,shipping:0,sms:0,deductions:0,currency:`AUD`},eventId:s.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id},h=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 re=e.OrderOffer={kind:`SMS_DELIVERY`,label:`SMS ticket delivery`,price:{amount:200,currency:`AUD`}},ie=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:[h],customer:b$1.Customer,customerId:b$1.Customer.id,teamId:b$1.Team.id,promoterId:b$1.Promoter.id,promoterSlug:b$1.Promoter.slug,eventId:b$1.Event.id,eventSlug:b$1.Event.slug,payment:{method:`AIRWALLEX`,source:`CARD`},payoutIds:[ne.id],refunds:[],offers:[re],tenantId:b$1.Tenant.id,checkoutUrl:`${t.baseUrl.dev}/checkout/ord_01jps5cgsfgve5b5g2666kyryh`,signature:`Q2hXbG9uZ1NpZzE2`},ae=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`,idempotencyKey:`refund_12345_customer_request`,status:`SUCCEEDED`,processedAt:new Date().toISOString(),amount:1200,shippingRefunded:0,reason:`CUSTOMER_REQUEST`,note:`Customer requested refund due to schedule conflict`,ticketsCancelled:true,ticketsCancelledCount:2,gateway:`STRIPE`,gatewayRefundId:`re_1234567890abcdef`,initiatedBy:`USER`,userId:n.id,createdAt:new Date().toISOString()},e.OrderRefundItem={orderItemId:h.id,quantity:2,amount:1200,ticketIds:[`tkt_01jps5cgsg0s32w2pr73vbccde`]},e.Notification={id:`ntf_01jps5cgsfgve5b5g2666kyryh`,aggregateType:`ORDER`,aggregateId:ie.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:[ae],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:ie.id,orderItemId:h.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id};}))(b$1||={});function x$1(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 It=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);}},Lt=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`;}};const Rt={};function zt(e){return Rt}function Bt(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 Vt(e,t){return typeof t==`bigint`?t.toString():t}function Ht(e){return {get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}}}}function Ut(e){return e==null}function Wt(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Gt(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]));}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}const Kt=Symbol(`evaluating`);function S$1(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Kt)return r===void 0&&(r=Kt,r=n()),r},set(n){Object.defineProperty(e,t,{value:n});},configurable:true});}function qt(e,t,n){Object.defineProperty(e,t,{value:n,writable:true,enumerable:true,configurable:true});}function Jt(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e);}return Object.defineProperties({},t)}function Yt(e){return JSON.stringify(e)}function Xt(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}const Zt=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function Qt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const $t=Ht(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return false;try{return Function(``),true}catch{return false}});function en(e){if(Qt(e)===false)return false;let t=e.constructor;if(t===void 0||typeof t!=`function`)return true;let n=t.prototype;return !(Qt(n)===false||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===false)}function tn(e){return en(e)?{...e}:Array.isArray(e)?[...e]:e}const nn=new Set([`string`,`number`,`symbol`]);function rn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function an(e,t,n){let r=new e._zod.constr(t??e._zod.def);return (!t||n?.parent)&&(r._zod.parent=e),r}function C$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 on(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}const sn={safeint:[-9007199254740991,2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function cn(e,t){let n=e._zod.def;return an(e,Jt(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 qt(this,`shape`,e),e},checks:[]}))}function ln(e,t){let n=e._zod.def;return an(e,Jt(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 qt(this,`shape`,r),r},checks:[]}))}function un(e,t){if(!en(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0)throw Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");return an(e,Jt(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return qt(this,`shape`,n),n},checks:[]}))}function dn(e,t){if(!en(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return an(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return qt(this,`shape`,n),n},checks:e._zod.def.checks})}function fn(e,t){return an(e,Jt(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return qt(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function pn(e,t,n){return an(t,Jt(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 qt(this,`shape`,i),i},checks:[]}))}function mn(e,t,n){return an(t,Jt(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 qt(this,`shape`,i),i},checks:[]}))}function hn(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 gn(e,t){return t.map(t=>{var n;return (n=t).path??(n.path=[]),t.path.unshift(e),t})}function _n(e){return typeof e==`string`?e:e?.message}function vn(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=_n(e.inst?._zod.def?.error?.(e))??_n(t?.error?.(e))??_n(n.customError?.(e))??_n(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function yn(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function bn(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}const xn=(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,Vt,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:false});},Sn=x$1(`$ZodError`,xn),Cn=x$1(`$ZodError`,xn,{Parent:Error});function wn(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 Tn(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else {let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++;}}};return r(e),n}const En=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:false}):{async:false},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new It;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>vn(e,a,zt())));throw Zt(t,i?.callee),t}return o.value},Dn=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:true}):{async:true},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>vn(e,a,zt())));throw Zt(t,i?.callee),t}return o.value},On=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 It;return a.issues.length?{success:false,error:new(e??Sn)(a.issues.map(e=>vn(e,i,zt())))}:{success:true,data:a.value}},kn=On(Cn),An=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:true}):{async:true},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:false,error:new e(a.issues.map(e=>vn(e,i,zt())))}:{success:true,data:a.value}},jn=An(Cn),Mn=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return En(e)(t,n,i)},Nn=e=>(t,n,r)=>En(e)(t,n,r),Pn=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Dn(e)(t,n,i)},Fn=e=>async(t,n,r)=>Dn(e)(t,n,r),In=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return On(e)(t,n,i)},Ln=e=>(t,n,r)=>On(e)(t,n,r),Rn=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return An(e)(t,n,i)},zn=e=>async(t,n,r)=>An(e)(t,n,r),Bn=/^[cC][^\s-]{8,}$/,Vn=/^[0-9a-z]+$/,Hn=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Un=/^[0-9a-vA-V]{20}$/,Wn=/^[A-Za-z0-9]{27}$/,Gn=/^[a-zA-Z0-9_-]{21}$/,Kn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,qn=/^([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})$/,Jn=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)$/,Yn=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function Xn(){return RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)}const Zn=/^(?:(?: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])$/,Qn=/^(([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}|:))$/,$n=/^((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])$/,er=/^(([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])$/,tr=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,nr=/^[A-Za-z0-9_-]*$/,rr=/^\+(?:[0-9]){6,14}[0-9]$/,ir=`(?:(?:\\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])))`,ar=RegExp(`^${ir}$`);function or(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 sr(e){return RegExp(`^${or(e)}$`)}function cr(e){let t=or({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(`^${ir}T(?:${r})$`)}const lr=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},ur=/^-?\d+$/,dr=/^-?\d+(?:\.\d+)?/,fr=/^(?:true|false)$/i,pr=/^null$/i,mr=/^[^A-Z]*$/,hr=/^[^a-z]*$/,w$1=x$1(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[]);}),gr={number:`number`,bigint:`bigint`,object:`date`},_r=x$1(`$ZodCheckLessThan`,(e,t)=>{w$1.init(e,t);let n=gr[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:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),vr=x$1(`$ZodCheckGreaterThan`,(e,t)=>{w$1.init(e,t);let n=gr[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:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),yr=x$1(`$ZodCheckMultipleOf`,(e,t)=>{w$1.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):Gt(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});};}),br=x$1(`$ZodCheckNumberFormat`,(e,t)=>{w$1.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=sn[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=ur);}),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,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,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,inst:e});};}),xr=x$1(`$ZodCheckMaxLength`,(e,t)=>{var n;w$1.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !Ut(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=yn(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),Sr=x$1(`$ZodCheckMinLength`,(e,t)=>{var n;w$1.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !Ut(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=yn(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),Cr=x$1(`$ZodCheckLengthEquals`,(e,t)=>{var n;w$1.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !Ut(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=yn(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});};}),wr=x$1(`$ZodCheckStringFormat`,(e,t)=>{var n,r;w$1.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=()=>{});}),Tr=x$1(`$ZodCheckRegex`,(e,t)=>{wr.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});};}),Er=x$1(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=mr,wr.init(e,t);}),Dr=x$1(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=hr,wr.init(e,t);}),Or=x$1(`$ZodCheckIncludes`,(e,t)=>{w$1.init(e,t);let n=rn(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});};}),kr=x$1(`$ZodCheckStartsWith`,(e,t)=>{w$1.init(e,t);let n=RegExp(`^${rn(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});};}),Ar=x$1(`$ZodCheckEndsWith`,(e,t)=>{w$1.init(e,t);let n=RegExp(`.*${rn(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});};}),jr=x$1(`$ZodCheckOverwrite`,(e,t)=>{w$1.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value);};});var Mr=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e);}indented(e){this.indent+=1,e(this),--this.indent;}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
3
+ function n(e){return e[0]??{}}function r(e){return Array.isArray(e)?e:e==null?[]:[e]}const i=`orpc`;var a$1=class a extends Error{constructor(...e){super(...e),this.name=`AbortError`;}};function o$1(e){let t;return ()=>{if(t)return t.result;let n=e();return t={result:n},n}}function s$1(e){let t=Promise.resolve();return (...n)=>t=t.catch(()=>{}).then(()=>e(...n))}function c$1(){return globalThis[`__@orpc/shared@1.14.3/otel/config__`]}function l$1(e,t={},n){return (c$1()?.tracer)?.startSpan(e,t,n)}function u$1(e,t,n={}){if(!e)return;let r=d$1(t);e.recordException(r),(!n.signal?.aborted||n.signal.reason!==t)&&e.setStatus({code:2,message:r.message});}function d$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 f$1({name:e,context:t,...n},r){let i=c$1()?.tracer;if(!i)return r();let a=async e=>{try{return await r(e)}catch(t){throw u$1(e,t,n),t}finally{e.end();}};return t?i.startActiveSpan(e,n,t,a):i.startActiveSpan(e,n,a)}async function p$1(e,t){let n=c$1();if(!e||!n)return t();let r=n.trace.setSpan(n.context.active(),e);return n.context.with(r,t)}function ee$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 te$1=Symbol.for(`asyncDispose`),ne$1=Symbol.asyncDispose??te$1;var re$1=class re{#e=false;#t=false;#n;#r;constructor(e,t){this.#n=t,this.#r=s$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[ne$1](){this.#e=true,this.#t||(this.#t=true,await this.#n(`dispose`));}[Symbol.asyncIterator](){return this}};function m$1({name:e,...t},n){let r;return new re$1(async()=>{r??=l$1(e);try{let e=await p$1(r,()=>n.next());return r?.addEvent(e.done?`completed`:`yielded`),e}catch(e){throw u$1(r,e,t),e}},async e=>{try{e!==`next`&&await p$1(r,()=>n.return?.());}catch(e){throw u$1(r,e,t),e}finally{r?.end();}})}function ie$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 oe$1(e){return JSON.stringify(e)}function se$1(e){return le$1(e)?Object.getPrototypeOf(e)?.constructor:null}function ce$1(e){if(!e||typeof e!=`object`)return false;let t=Object.getPrototypeOf(e);return t===Object.prototype||!t||!t.constructor}function le$1(e){return !!e&&(typeof e==`object`||typeof e==`function`)}function ue$1(e,t){let n=e;for(let e of t){if(!le$1(n))return;n=n[e];}return n}const de$1=(()=>{let e=function(){};return e.prototype=Object.create(null),Object.freeze(e.prototype),e})();function fe$1(e,...t){return typeof e==`function`?e(...t):e}function pe$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=>!he$1(e)))return Reflect.apply(t,n,r);let i=true;r[0].call(n,pe$1(new Proxy(e,{get:(e,t,n)=>{if(i&&t===`then`){i=false;return}return Reflect.get(e,t,n)}})));}})}})}const me$1=/^\s*function\s*\(\)\s*\{\s*\[native code\]\s*\}\s*$/;function he$1(e){return typeof e==`function`&&me$1.test(e.toString())}function ge$1(e){try{return decodeURIComponent(e)}catch{return e}}const _e$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 ve$1(e,t){return t??_e$1[e]?.status??500}function ye$1(e,t){return t||_e$1[e]?.message||e}const be$1=Symbol.for(`__@orpc/client@1.14.3/error/ORPC_ERROR_CONSTRUCTORS__`);globalThis[be$1]??=new WeakSet;const xe$1=globalThis[be$1];var Se$1=class Se extends Error{defined;code;status;data;constructor(e,...t){let r=n(t);if(r.status!==void 0&&!Te$1(r.status))throw Error(`[ORPCError] Invalid error status code.`);let i=ye$1(e,r.message);super(i,r),this.code=e,this.status=ve$1(e,r.status),this.defined=r.defined??false,this.data=r.data;}toJSON(){return {defined:this.defined,code:this.code,status:this.status,message:this.message,data:this.data}}static[Symbol.hasInstance](e){if(xe$1.has(this)){let t=se$1(e);if(t&&xe$1.has(t))return true}return super[Symbol.hasInstance](e)}};xe$1.add(Se$1);function we$1(e){return e instanceof Se$1?e:new Se$1(`INTERNAL_SERVER_ERROR`,{message:`Internal server error`,cause:e})}function Te$1(e){return e<200||e>=400}function Ee$1(e){if(!ce$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`&&Te$1(e.status)&&`message`in e&&typeof e.message==`string`}function De$1(e,t={}){return new Se$1(e.code,{...t,...e})}var Oe$1=class Oe extends TypeError{},h$1=class h extends TypeError{},ke$1=class ke extends Error{data;constructor(e){super(e?.message??`An error event was received`,e),this.data=e?.data;}};function Ae$1(e){let t=e.replace(/\n+$/,``).split(/\n/),n={data:void 0,event:void 0,id:void 0,retry:void 0,comments:[]};for(let e of t){let t=e.indexOf(`:`),r=t===-1?e:e.slice(0,t),i=t===-1?``:e.slice(t+1).replace(/^\s/,``);if(t===0)n.comments.push(i);else if(r===`data`)n.data??=``,n.data+=`${i}
4
+ `;else if(r===`event`)n.event=i;else if(r===`id`)n.id=i;else if(r===`retry`){let e=Number.parseInt(i);Number.isInteger(e)&&e>=0&&e.toString()===i&&(n.retry=e);}}return n.data=n.data?.replace(/\n$/,``),n}var je$1=class je{constructor(e={}){this.options=e;}incomplete=``;feed(e){this.incomplete+=e;let t=this.incomplete.lastIndexOf(`
5
+
6
+ `);if(t===-1)return;let n=this.incomplete.slice(0,t).split(/\n\n/);this.incomplete=this.incomplete.slice(t+2);for(let e of n){let t=Ae$1(`${e}
7
+
8
+ `);this.options.onEvent&&this.options.onEvent(t);}}end(){if(this.incomplete)throw new h$1(`Event Iterator ended before complete`)}},Me$1=class Me extends TransformStream{constructor(){let e;super({start(t){e=new je$1({onEvent:e=>{t.enqueue(e);}});},transform(t){e.feed(t);},flush(){e.end();}});}};function Ne$1(e){if(e.includes(`
9
+ `))throw new Oe$1(`Event's id must not contain a newline character`)}function Pe$1(e){if(e.includes(`
10
+ `))throw new Oe$1(`Event's event must not contain a newline character`)}function g$1(e){if(!Number.isInteger(e)||e<0)throw new Oe$1(`Event's retry must be a integer and >= 0`)}function Fe$1(e){if(e.includes(`
11
+ `))throw new Oe$1(`Event's comment must not contain a newline character`)}function Ie$1(e){let t=e?.split(/\n/)??[],n=``;for(let e of t)n+=`data: ${e}
12
+ `;return n}function Le$1(e){let t=``;for(let n of e??[])Fe$1(n),t+=`: ${n}
13
+ `;return t}function Re$1(e){let t=``;return t+=Le$1(e.comments),e.event!==void 0&&(Pe$1(e.event),t+=`event: ${e.event}
14
+ `),e.retry!==void 0&&(g$1(e.retry),t+=`retry: ${e.retry}
15
+ `),e.id!==void 0&&(Ne$1(e.id),t+=`id: ${e.id}
16
+ `),t+=Ie$1(e.data),t+=`
17
+ `,t}const ze$1=Symbol(`ORPC_EVENT_SOURCE_META`);function Be$1(e,t){if(t.id===void 0&&t.retry===void 0&&!t.comments?.length)return e;if(t.id!==void 0&&Ne$1(t.id),t.retry!==void 0&&g$1(t.retry),t.comments!==void 0)for(let e of t.comments)Fe$1(e);return new Proxy(e,{get(e,n,r){return n===ze$1?t:Reflect.get(e,n,r)}})}function Ve$1(e){return le$1(e)?Reflect.get(e,ze$1):void 0}function He$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 Ue$1(e){let t=e.match(/filename\*=(UTF-8'')?([^;]*)/i);if(t&&typeof t[2]==`string`)return ge$1(t[2]);let n=e.match(/filename="((?:\\"|[^"])*)"/i);if(n&&typeof n[1]==`string`)return n[1].replace(/\\"/g,`"`)}function We$1(e,t){let n={...e};for(let e in t)Array.isArray(t[e])?n[e]=[...r(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 Ge$1(e,t){let n=async e=>{let n=await t.error(e);if(n!==e){let t=Ve$1(e);t&&le$1(n)&&(n=Be$1(n,t));}return n};return new re$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=Ve$1(i);e&&le$1(a)&&(a=Be$1(a,e));}return {done:r,value:a}},async()=>{try{await e.return?.();}catch(e){throw await n(e)}})}function qe$1(e){return {...e,context:e.context??{}}}function Je$1(e,t={}){let n=t.path??[];return pe$1(new Proxy(async(...[t,r={}])=>await e.call(n,t,qe$1(r)),{get(r,i){return typeof i==`string`?Je$1(e,{path:[...n,i]}):Reflect.get(r,i)}}))}function Xe$1(e,t){return {...e,...t}}var Ze$1=class Ze{"~orpc";constructor(e){if(e.route?.successStatus&&Te$1(e.route.successStatus))throw Error(`[ContractProcedure] Invalid successStatus.`);if(Object.values(e.errorMap).some(e=>e&&e.status&&!Te$1(e.status)))throw Error(`[ContractProcedure] Invalid error status code.`);this[`~orpc`]=e;}};function Qe$1(e){return e instanceof Ze$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 $e$1(e,t){return {...e,...t}}function et$1(e,t){return {...e,...t}}function tt$1(e,t){return e.path?{...e,path:`${t}${e.path}`}:e}function nt$1(e,t){return {...e,tags:[...t,...e.tags??[]]}}function rt$1(e,t){return e?`${e}${t}`:t}function it$1(e,t){return e?[...e,...t]:t}function at$1(e,t){let n=e;return t.prefix&&(n=tt$1(n,t.prefix)),t.tags?.length&&(n=nt$1(n,t.tags)),n}function ot$1(e,t){if(Qe$1(e))return new Ze$1({...e[`~orpc`],errorMap:Xe$1(t.errorMap,e[`~orpc`].errorMap),route:at$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 _$1=new class e extends Ze$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:Xe$1(this[`~orpc`].errorMap,t)})}meta(t){return new e({...this[`~orpc`],meta:$e$1(this[`~orpc`].meta,t)})}route(t){return new e({...this[`~orpc`],route:et$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:rt$1(this[`~orpc`].prefix,t)})}tag(...t){return new e({...this[`~orpc`],tags:it$1(this[`~orpc`].tags,t)})}router(e){return ot$1(e,this[`~orpc`])}}({errorMap:{},route:{},meta:{}}),st$1={defaultMethod:`POST`,defaultSuccessStatus:200,defaultSuccessDescription:`OK`,defaultInputStructure:`compact`,defaultOutputStructure:`compact`};function ct$1(e,t){return t===void 0?st$1[e]:t}const ut$1=Symbol.for(`constructDateFrom`);function dt$1(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&ut$1 in e?e[ut$1](t):e instanceof Date?new e.constructor(t):new Date(t)}function ft$1(e,t){return dt$1(e,e)}function v$1(e,t,n){let r=ft$1(e);return isNaN(t)?dt$1(e,NaN):(t&&r.setDate(r.getDate()+t),r)}const pt$1={},mt$1={};function ht$1(e,t){try{let n=(pt$1[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in mt$1?mt$1[n]:_t(n,n.split(`:`))}catch{if(e in mt$1)return mt$1[e];let t=e?.match(gt);return t?_t(e,t.slice(1)):NaN}}const gt=/([+-]\d\d):?(\d\d)?/;function _t(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 vt=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(ht$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)),St(this),bt(this)):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=-ht$1(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),bt(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}};const yt=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!yt.test(e))return;let t=e.replace(yt,`$1UTC`);vt.prototype[t]&&(e.startsWith(`get`)?vt.prototype[e]=function(){return this.internal[t]()}:(vt.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),xt(this),+this},vt.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),bt(this),+this}));});function bt(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-ht$1(e.timeZone,e)*60));}function xt(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()),St(e);}function St(e){let t=ht$1(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);let i=-new Date(+e).getTimezoneOffset(),a=i- -new Date(+r).getTimezoneOffset(),o=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&o&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);let s=i-n;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);let c=new Date(+e);c.setUTCSeconds(0);let l=i>0?c.getSeconds():(c.getSeconds()-60)%60,u=Math.round(-(ht$1(e.timeZone,e)*60))%60;(u||l)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+u),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+u+l));let d=ht$1(e.timeZone,e),f=d>0?Math.floor(d):Math.ceil(d),p=-new Date(+e).getTimezoneOffset()-f,ee=f!==n,te=p-s;if(ee&&te){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+te);let t=ht$1(e.timeZone,e),n=f-(t>0?Math.floor(t):Math.ceil(t));n&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n));}}function y$1(e){return (typeof e==`string`?new Date(e):e).toISOString().replace(/\.\d{3}Z$/,``)}let b$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`,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`,gtmId:`GTM-K8WPM5N`,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(v$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:v$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:v$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:y$1(v$1(new Date,1)),entryEndsAt:y$1(v$1(new Date,2)),publishAt:y$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:y$1(v$1(new Date,1)),entryEndsAt:y$1(v$1(new Date,2)),saleStartsAt:y$1(new Date),saleEndsAt:y$1(v$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,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 ee=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},te=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},ne=e.PayoutDeduction={id:`pad_01jq90naksfzf8gt2xnn71h21h`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),amount:100,currency:`AUD`,description:`Minimum bar spend not met`,reference:`XYZ`,gateway:`AIRWALLEX`,gatewayId:`1221bbbc-cc97-4119-a597-69019e9d8a93`,beneficiary:u.name,beneficiaryId:u.id},re=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:[te],deductions:[ne],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,shipping:0,sms:0,deductions:0,currency:`AUD`},eventId:s.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id},m=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 ie=e.OrderOffer={kind:`SMS_DELIVERY`,label:`SMS ticket delivery`,price:{amount:200,currency:`AUD`}},ae=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:[m],customer:b$1.Customer,customerId:b$1.Customer.id,teamId:b$1.Team.id,promoterId:b$1.Promoter.id,promoterSlug:b$1.Promoter.slug,eventId:b$1.Event.id,eventSlug:b$1.Event.slug,payment:{method:`AIRWALLEX`,source:`CARD`},payoutIds:[re.id],refunds:[],offers:[ie],tenantId:b$1.Tenant.id,checkoutUrl:`${t.baseUrl.dev}/checkout/ord_01jps5cgsfgve5b5g2666kyryh`,signature:`Q2hXbG9uZ1NpZzE2`},oe=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`,idempotencyKey:`refund_12345_customer_request`,status:`SUCCEEDED`,processedAt:new Date().toISOString(),amount:1200,shippingRefunded:0,feesRefunded:0,reason:`CUSTOMER_REQUEST`,note:`Customer requested refund due to schedule conflict`,ticketsCancelled:true,ticketsCancelledCount:2,gateway:`STRIPE`,gatewayRefundId:`re_1234567890abcdef`,initiatedBy:`USER`,userId:n.id,notify:true,createdAt:new Date().toISOString()},e.OrderRefundItem={orderItemId:m.id,quantity:2,amount:1200,ticketIds:[`tkt_01jps5cgsg0s32w2pr73vbccde`]},e.Notification={id:`ntf_01jps5cgsfgve5b5g2666kyryh`,aggregateType:`ORDER`,aggregateId:ae.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:[oe],token:`7b81e13025f78f9935d5933eec3ab25e3c2bb811c99f2470182dd6ba4394ff82`,attendee:{email:ee.email,firstName:ee.firstName,lastName:ee.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:ee.id,orderId:ae.id,orderItemId:m.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id};}))(b$1||={});function x$1(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 Ct=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);}},wt=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`;}};const Tt={};function Et(e){return Tt}function Dt(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 Ot(e,t){return typeof t==`bigint`?t.toString():t}function kt(e){return {get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}}}}function At(e){return e==null}function jt(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function Mt(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]));}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}const Nt=Symbol(`evaluating`);function S$1(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Nt)return r===void 0&&(r=Nt,r=n()),r},set(n){Object.defineProperty(e,t,{value:n});},configurable:true});}function Pt(e,t,n){Object.defineProperty(e,t,{value:n,writable:true,enumerable:true,configurable:true});}function Ft(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e);}return Object.defineProperties({},t)}function It(e){return JSON.stringify(e)}function Lt(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}const Rt=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function zt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}const Bt=kt(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return false;try{return Function(``),true}catch{return false}});function Vt(e){if(zt(e)===false)return false;let t=e.constructor;if(t===void 0||typeof t!=`function`)return true;let n=t.prototype;return !(zt(n)===false||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===false)}function Ht(e){return Vt(e)?{...e}:Array.isArray(e)?[...e]:e}const Ut=new Set([`string`,`number`,`symbol`]);function Wt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Gt(e,t,n){let r=new e._zod.constr(t??e._zod.def);return (!t||n?.parent)&&(r._zod.parent=e),r}function C$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 Kt(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}const qt={safeint:[-9007199254740991,2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Jt(e,t){let n=e._zod.def;return Gt(e,Ft(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 Pt(this,`shape`,e),e},checks:[]}))}function Yt(e,t){let n=e._zod.def;return Gt(e,Ft(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 Pt(this,`shape`,r),r},checks:[]}))}function Xt(e,t){if(!Vt(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0)throw Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");return Gt(e,Ft(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Pt(this,`shape`,n),n},checks:[]}))}function Zt(e,t){if(!Vt(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Gt(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return Pt(this,`shape`,n),n},checks:e._zod.def.checks})}function Qt(e,t){return Gt(e,Ft(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Pt(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function $t(e,t,n){return Gt(t,Ft(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 Pt(this,`shape`,i),i},checks:[]}))}function en(e,t,n){return Gt(t,Ft(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 Pt(this,`shape`,i),i},checks:[]}))}function tn(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 nn(e,t){return t.map(t=>{var n;return (n=t).path??(n.path=[]),t.path.unshift(e),t})}function rn(e){return typeof e==`string`?e:e?.message}function an(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=rn(e.inst?._zod.def?.error?.(e))??rn(t?.error?.(e))??rn(n.customError?.(e))??rn(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function on(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function sn(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}const cn=(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,Ot,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:false});},ln=x$1(`$ZodError`,cn),un=x$1(`$ZodError`,cn,{Parent:Error});function dn(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 fn(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else {let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++;}}};return r(e),n}const pn=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:false}):{async:false},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new Ct;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>an(e,a,Et())));throw Rt(t,i?.callee),t}return o.value},mn=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:true}):{async:true},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>an(e,a,Et())));throw Rt(t,i?.callee),t}return o.value},hn=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 Ct;return a.issues.length?{success:false,error:new(e??ln)(a.issues.map(e=>an(e,i,Et())))}:{success:true,data:a.value}},gn=hn(un),_n=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:true}):{async:true},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:false,error:new e(a.issues.map(e=>an(e,i,Et())))}:{success:true,data:a.value}},vn=_n(un),yn=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return pn(e)(t,n,i)},bn=e=>(t,n,r)=>pn(e)(t,n,r),xn=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return mn(e)(t,n,i)},Sn=e=>async(t,n,r)=>mn(e)(t,n,r),Cn=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return hn(e)(t,n,i)},wn=e=>(t,n,r)=>hn(e)(t,n,r),Tn=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return _n(e)(t,n,i)},En=e=>async(t,n,r)=>_n(e)(t,n,r),Dn=/^[cC][^\s-]{8,}$/,On=/^[0-9a-z]+$/,kn=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,An=/^[0-9a-vA-V]{20}$/,jn=/^[A-Za-z0-9]{27}$/,Mn=/^[a-zA-Z0-9_-]{21}$/,Nn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Pn=/^([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})$/,Fn=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)$/,In=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;function Ln(){return RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)}const Rn=/^(?:(?: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])$/,zn=/^(([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}|:))$/,Bn=/^((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])$/,Vn=/^(([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])$/,Hn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Un=/^[A-Za-z0-9_-]*$/,Wn=/^\+(?:[0-9]){6,14}[0-9]$/,Gn=`(?:(?:\\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])))`,Kn=RegExp(`^${Gn}$`);function qn(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 Jn(e){return RegExp(`^${qn(e)}$`)}function Yn(e){let t=qn({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(`^${Gn}T(?:${r})$`)}const Xn=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Zn=/^-?\d+$/,Qn=/^-?\d+(?:\.\d+)?/,$n=/^(?:true|false)$/i,er=/^null$/i,tr=/^undefined$/i,nr=/^[^A-Z]*$/,rr=/^[^a-z]*$/,w$1=x$1(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[]);}),ir={number:`number`,bigint:`bigint`,object:`date`},ar=x$1(`$ZodCheckLessThan`,(e,t)=>{w$1.init(e,t);let n=ir[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:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),or=x$1(`$ZodCheckGreaterThan`,(e,t)=>{w$1.init(e,t);let n=ir[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:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort});};}),sr=x$1(`$ZodCheckMultipleOf`,(e,t)=>{w$1.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):Mt(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});};}),cr=x$1(`$ZodCheckNumberFormat`,(e,t)=>{w$1.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=qt[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=Zn);}),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,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,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,inst:e});};}),lr=x$1(`$ZodCheckMaxLength`,(e,t)=>{var n;w$1.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !At(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=on(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),ur=x$1(`$ZodCheckMinLength`,(e,t)=>{var n;w$1.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !At(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=on(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:true,input:r,inst:e,continue:!t.abort});};}),dr=x$1(`$ZodCheckLengthEquals`,(e,t)=>{var n;w$1.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return !At(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=on(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});};}),fr=x$1(`$ZodCheckStringFormat`,(e,t)=>{var n,r;w$1.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=()=>{});}),pr=x$1(`$ZodCheckRegex`,(e,t)=>{fr.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});};}),mr=x$1(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=nr,fr.init(e,t);}),hr=x$1(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=rr,fr.init(e,t);}),gr=x$1(`$ZodCheckIncludes`,(e,t)=>{w$1.init(e,t);let n=Wt(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});};}),_r=x$1(`$ZodCheckStartsWith`,(e,t)=>{w$1.init(e,t);let n=RegExp(`^${Wt(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});};}),vr=x$1(`$ZodCheckEndsWith`,(e,t)=>{w$1.init(e,t);let n=RegExp(`.*${Wt(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});};}),yr=x$1(`$ZodCheckOverwrite`,(e,t)=>{w$1.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value);};});var br=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e);}indented(e){this.indent+=1,e(this),--this.indent;}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
18
18
  `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e);}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
19
- `))}};const Nr={major:4,minor:1,patch:13},T$1=x$1(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Nr;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse;});else {let t=(e,t,n)=>{let r=hn(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===false)throw new It;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=hn(e,t));});else {if(e.issues.length===t)continue;r||=hn(e,t);}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(hn(n))return n.aborted=true,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===false)throw new It;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:true});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===false)throw new It;return o.then(e=>t(e,r,a))}return t(o,r,a)};}e[`~standard`]={validate:t=>{try{let n=kn(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return jn(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1};}),Pr=x$1(`$ZodString`,(e,t)=>{T$1.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??lr(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};}),E$1=x$1(`$ZodStringFormat`,(e,t)=>{wr.init(e,t),Pr.init(e,t);}),Fr=x$1(`$ZodGUID`,(e,t)=>{t.pattern??=qn,E$1.init(e,t);}),Ir=x$1(`$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??=Jn(e);}else t.pattern??=Jn();E$1.init(e,t);}),Lr=x$1(`$ZodEmail`,(e,t)=>{t.pattern??=Yn,E$1.init(e,t);}),Rr=x$1(`$ZodURL`,(e,t)=>{E$1.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern: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});}};}),zr=x$1(`$ZodEmoji`,(e,t)=>{t.pattern??=Xn(),E$1.init(e,t);}),Br=x$1(`$ZodNanoID`,(e,t)=>{t.pattern??=Gn,E$1.init(e,t);}),Vr=x$1(`$ZodCUID`,(e,t)=>{t.pattern??=Bn,E$1.init(e,t);}),Hr=x$1(`$ZodCUID2`,(e,t)=>{t.pattern??=Vn,E$1.init(e,t);}),Ur=x$1(`$ZodULID`,(e,t)=>{t.pattern??=Hn,E$1.init(e,t);}),Wr=x$1(`$ZodXID`,(e,t)=>{t.pattern??=Un,E$1.init(e,t);}),Gr=x$1(`$ZodKSUID`,(e,t)=>{t.pattern??=Wn,E$1.init(e,t);}),Kr=x$1(`$ZodISODateTime`,(e,t)=>{t.pattern??=cr(t),E$1.init(e,t);}),qr=x$1(`$ZodISODate`,(e,t)=>{t.pattern??=ar,E$1.init(e,t);}),Jr=x$1(`$ZodISOTime`,(e,t)=>{t.pattern??=sr(t),E$1.init(e,t);}),Yr=x$1(`$ZodISODuration`,(e,t)=>{t.pattern??=Kn,E$1.init(e,t);}),Xr=x$1(`$ZodIPv4`,(e,t)=>{t.pattern??=Zn,E$1.init(e,t),e._zod.bag.format=`ipv4`;}),Zr=x$1(`$ZodIPv6`,(e,t)=>{t.pattern??=Qn,E$1.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});}};}),Qr=x$1(`$ZodCIDRv4`,(e,t)=>{t.pattern??=$n,E$1.init(e,t);}),$r=x$1(`$ZodCIDRv6`,(e,t)=>{t.pattern??=er,E$1.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 ei(e){if(e===``)return true;if(e.length%4!=0)return false;try{return atob(e),true}catch{return false}}const ti=x$1(`$ZodBase64`,(e,t)=>{t.pattern??=tr,E$1.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{ei(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort});};});function ni(e){if(!nr.test(e))return false;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return ei(t.padEnd(Math.ceil(t.length/4)*4,`=`))}const ri=x$1(`$ZodBase64URL`,(e,t)=>{t.pattern??=nr,E$1.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{ni(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort});};}),ii=x$1(`$ZodE164`,(e,t)=>{t.pattern??=rr,E$1.init(e,t);});function ai(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 oi=x$1(`$ZodJWT`,(e,t)=>{E$1.init(e,t),e._zod.check=n=>{ai(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort});};}),si=x$1(`$ZodNumber`,(e,t)=>{T$1.init(e,t),e._zod.pattern=e._zod.bag.pattern??dr,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};}),ci=x$1(`$ZodNumberFormat`,(e,t)=>{br.init(e,t),si.init(e,t);}),li=x$1(`$ZodBoolean`,(e,t)=>{T$1.init(e,t),e._zod.pattern=fr,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};}),ui=x$1(`$ZodNull`,(e,t)=>{T$1.init(e,t),e._zod.pattern=pr,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};}),di=x$1(`$ZodAny`,(e,t)=>{T$1.init(e,t),e._zod.parse=e=>e;}),fi=x$1(`$ZodUnknown`,(e,t)=>{T$1.init(e,t),e._zod.parse=e=>e;}),pi=x$1(`$ZodNever`,(e,t)=>{T$1.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t);}),mi=x$1(`$ZodVoid`,(e,t)=>{T$1.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};}),hi=x$1(`$ZodDate`,(e,t)=>{T$1.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 gi(e,t,n){e.issues.length&&t.issues.push(...gn(n,e.issues)),t.value[n]=e.value;}const _i=x$1(`$ZodArray`,(e,t)=>{T$1.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=>gi(t,n,e))):gi(s,n,e);}return a.length?Promise.all(a).then(()=>n):n};});function vi(e,t,n,r){e.issues.length&&t.issues.push(...gn(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value;}function yi(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=on(e.shape);return {...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function bi(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>vi(e,n,i,t))):vi(a,n,i,t);}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const xi=x$1(`$ZodObject`,(e,t)=>{if(T$1.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=Ht(()=>yi(t));S$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=Qt,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e]._zod.run({value:s[e],issues:[]},o);n instanceof Promise?c.push(n.then(n=>vi(n,t,e,s))):vi(n,t,e,s);}return i?bi(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t};}),Si=x$1(`$ZodObjectJIT`,(e,t)=>{xi.init(e,t);let n=e._zod.parse,r=Ht(()=>yi(t)),i=e=>{let t=new Mr([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=Yt(e);return `shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let e of n.keys){let n=a[e],r=Yt(e);t.write(`const ${n} = ${i(e)};`),t.write(`
19
+ `))}};const xr={major:4,minor:1,patch:13},T$1=x$1(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=xr;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse;});else {let t=(e,t,n)=>{let r=tn(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===false)throw new Ct;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=tn(e,t));});else {if(e.issues.length===t)continue;r||=tn(e,t);}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(tn(n))return n.aborted=true,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===false)throw new Ct;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:true});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===false)throw new Ct;return o.then(e=>t(e,r,a))}return t(o,r,a)};}e[`~standard`]={validate:t=>{try{let n=gn(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return vn(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1};}),Sr=x$1(`$ZodString`,(e,t)=>{T$1.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Xn(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};}),E$1=x$1(`$ZodStringFormat`,(e,t)=>{fr.init(e,t),Sr.init(e,t);}),Cr=x$1(`$ZodGUID`,(e,t)=>{t.pattern??=Pn,E$1.init(e,t);}),wr=x$1(`$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??=Fn(e);}else t.pattern??=Fn();E$1.init(e,t);}),Tr=x$1(`$ZodEmail`,(e,t)=>{t.pattern??=In,E$1.init(e,t);}),Er=x$1(`$ZodURL`,(e,t)=>{E$1.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern: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});}};}),Dr=x$1(`$ZodEmoji`,(e,t)=>{t.pattern??=Ln(),E$1.init(e,t);}),Or=x$1(`$ZodNanoID`,(e,t)=>{t.pattern??=Mn,E$1.init(e,t);}),kr=x$1(`$ZodCUID`,(e,t)=>{t.pattern??=Dn,E$1.init(e,t);}),Ar=x$1(`$ZodCUID2`,(e,t)=>{t.pattern??=On,E$1.init(e,t);}),jr=x$1(`$ZodULID`,(e,t)=>{t.pattern??=kn,E$1.init(e,t);}),Mr=x$1(`$ZodXID`,(e,t)=>{t.pattern??=An,E$1.init(e,t);}),Nr=x$1(`$ZodKSUID`,(e,t)=>{t.pattern??=jn,E$1.init(e,t);}),Pr=x$1(`$ZodISODateTime`,(e,t)=>{t.pattern??=Yn(t),E$1.init(e,t);}),Fr=x$1(`$ZodISODate`,(e,t)=>{t.pattern??=Kn,E$1.init(e,t);}),Ir=x$1(`$ZodISOTime`,(e,t)=>{t.pattern??=Jn(t),E$1.init(e,t);}),Lr=x$1(`$ZodISODuration`,(e,t)=>{t.pattern??=Nn,E$1.init(e,t);}),Rr=x$1(`$ZodIPv4`,(e,t)=>{t.pattern??=Rn,E$1.init(e,t),e._zod.bag.format=`ipv4`;}),zr=x$1(`$ZodIPv6`,(e,t)=>{t.pattern??=zn,E$1.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});}};}),Br=x$1(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Bn,E$1.init(e,t);}),Vr=x$1(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Vn,E$1.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 Hr(e){if(e===``)return true;if(e.length%4!=0)return false;try{return atob(e),true}catch{return false}}const Ur=x$1(`$ZodBase64`,(e,t)=>{t.pattern??=Hn,E$1.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{Hr(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort});};});function Wr(e){if(!Un.test(e))return false;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Hr(t.padEnd(Math.ceil(t.length/4)*4,`=`))}const Gr=x$1(`$ZodBase64URL`,(e,t)=>{t.pattern??=Un,E$1.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{Wr(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort});};}),Kr=x$1(`$ZodE164`,(e,t)=>{t.pattern??=Wn,E$1.init(e,t);});function qr(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 Jr=x$1(`$ZodJWT`,(e,t)=>{E$1.init(e,t),e._zod.check=n=>{qr(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort});};}),Yr=x$1(`$ZodNumber`,(e,t)=>{T$1.init(e,t),e._zod.pattern=e._zod.bag.pattern??Qn,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};}),Xr=x$1(`$ZodNumberFormat`,(e,t)=>{cr.init(e,t),Yr.init(e,t);}),Zr=x$1(`$ZodBoolean`,(e,t)=>{T$1.init(e,t),e._zod.pattern=$n,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};}),Qr=x$1(`$ZodUndefined`,(e,t)=>{T$1.init(e,t),e._zod.pattern=tr,e._zod.values=new Set([void 0]),e._zod.optin=`optional`,e._zod.optout=`optional`,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};}),$r=x$1(`$ZodNull`,(e,t)=>{T$1.init(e,t),e._zod.pattern=er,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};}),ei=x$1(`$ZodAny`,(e,t)=>{T$1.init(e,t),e._zod.parse=e=>e;}),ti=x$1(`$ZodUnknown`,(e,t)=>{T$1.init(e,t),e._zod.parse=e=>e;}),ni=x$1(`$ZodNever`,(e,t)=>{T$1.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t);}),ri=x$1(`$ZodVoid`,(e,t)=>{T$1.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};}),ii=x$1(`$ZodDate`,(e,t)=>{T$1.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 ai(e,t,n){e.issues.length&&t.issues.push(...nn(n,e.issues)),t.value[n]=e.value;}const oi=x$1(`$ZodArray`,(e,t)=>{T$1.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=>ai(t,n,e))):ai(s,n,e);}return a.length?Promise.all(a).then(()=>n):n};});function si(e,t,n,r){e.issues.length&&t.issues.push(...nn(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value;}function ci(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=Kt(e.shape);return {...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function li(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>si(e,n,i,t))):si(a,n,i,t);}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const ui=x$1(`$ZodObject`,(e,t)=>{if(T$1.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=kt(()=>ci(t));S$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=zt,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e]._zod.run({value:s[e],issues:[]},o);n instanceof Promise?c.push(n.then(n=>si(n,t,e,s))):si(n,t,e,s);}return i?li(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t};}),di=x$1(`$ZodObjectJIT`,(e,t)=>{ui.init(e,t);let n=e._zod.parse,r=kt(()=>ci(t)),i=e=>{let t=new br([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=It(e);return `shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let e of n.keys){let n=a[e],r=It(e);t.write(`const ${n} = ${i(e)};`),t.write(`
20
20
  if (${n}.issues.length) {
21
21
  payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
22
22
  ...iss,
@@ -33,22 +33,22 @@ function n(e){return e[0]??{}}function r(e){return Array.isArray(e)?e:e==null?[]
33
33
  newResult[${r}] = ${n}.value;
34
34
  }
35
35
 
36
- `);}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return (t,n)=>s(e,t,n)},a,o=Qt,s=!Rt.jitless,c=s&&$t.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===false&&f.jitless!==true?(a||=i(t.shape),d=a(d,f),l?bi([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)};});function Ci(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=>!hn(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=>vn(e,r,zt())))}),t)}const wi=x$1(`$ZodUnion`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),S$1(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),S$1(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),S$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=>Wt(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=false,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=true;else {if(t.issues.length===0)return t;s.push(t);}}return o?Promise.all(s).then(t=>Ci(t,i,e,a)):Ci(s,i,e,a)};}),Ti=x$1(`$ZodDiscriminatedUnion`,(e,t)=>{wi.init(e,t);let n=e._zod.parse;S$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=Ht(()=>{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(!Qt(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?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)};}),Ei=x$1(`$ZodIntersection`,(e,t)=>{T$1.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])=>Oi(e,t,n)):Oi(e,i,a)};});function Di(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return {valid:true,data:e};if(en(e)&&en(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=Di(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=Di(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 Oi(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),hn(e))return e;let r=Di(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const ki=x$1(`$ZodRecord`,(e,t)=>{T$1.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!en(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let e of o)if(typeof e==`string`||typeof e==`number`||typeof e==`symbol`){s.add(typeof e==`number`?e.toString():e);let o=t.valueType._zod.run({value:i[e],issues:[]},r);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&n.issues.push(...gn(e,t.issues)),n.value[e]=t.value;})):(o.issues.length&&n.issues.push(...gn(e,o.issues)),n.value[e]=o.value);}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c});}else {n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`)continue;let s=t.keyType._zod.run({value:o,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=>vn(e,r,zt())),input:o,path:[o],inst:e}),n.value[s.value]=s.value;continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...gn(o,e.issues)),n.value[s.value]=e.value;})):(c.issues.length&&n.issues.push(...gn(o,c.issues)),n.value[s.value]=c.value);}}return a.length?Promise.all(a).then(()=>n):n};}),Ai=x$1(`$ZodEnum`,(e,t)=>{T$1.init(e,t);let n=Bt(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>nn.has(typeof e)).map(e=>typeof e==`string`?rn(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};}),ji=x$1(`$ZodLiteral`,(e,t)=>{if(T$1.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`?rn(e):e?rn(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};}),Mi=x$1(`$ZodTransform`,(e,t)=>{T$1.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Lt(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 It;return n.value=i,n};});function Ni(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Pi=x$1(`$ZodOptional`,(e,t)=>{T$1.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,S$1(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),S$1(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Wt(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Ni(t,e.value)):Ni(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)};}),Fi=x$1(`$ZodNullable`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`optin`,()=>t.innerType._zod.optin),S$1(e._zod,`optout`,()=>t.innerType._zod.optout),S$1(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Wt(e.source)}|null)$`):void 0}),S$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);}),Ii=x$1(`$ZodDefault`,(e,t)=>{T$1.init(e,t),e._zod.optin=`optional`,S$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=>Li(e,t)):Li(r,t)};});function Li(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Ri=x$1(`$ZodPrefault`,(e,t)=>{T$1.init(e,t),e._zod.optin=`optional`,S$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));}),zi=x$1(`$ZodNonOptional`,(e,t)=>{T$1.init(e,t),S$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=>Bi(t,e)):Bi(i,e)};});function Bi(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 Vi=x$1(`$ZodCatch`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`optin`,()=>t.innerType._zod.optin),S$1(e._zod,`optout`,()=>t.innerType._zod.optout),S$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=>vn(e,n,zt()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>vn(e,n,zt()))},input:e.value}),e.issues=[]),e)};}),Hi=x$1(`$ZodPipe`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`values`,()=>t.in._zod.values),S$1(e._zod,`optin`,()=>t.in._zod.optin),S$1(e._zod,`optout`,()=>t.out._zod.optout),S$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=>Ui(e,t.in,n)):Ui(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Ui(e,t.out,n)):Ui(r,t.out,n)};});function Ui(e,t,n){return e.issues.length?(e.aborted=true,e):t._zod.run({value:e.value,issues:e.issues},n)}const Wi=x$1(`$ZodReadonly`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`propValues`,()=>t.innerType._zod.propValues),S$1(e._zod,`values`,()=>t.innerType._zod.values),S$1(e._zod,`optin`,()=>t.innerType?._zod?.optin),S$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(Gi):Gi(r)};});function Gi(e){return e.value=Object.freeze(e.value),e}const Ki=x$1(`$ZodLazy`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`innerType`,()=>t.getter()),S$1(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),S$1(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),S$1(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),S$1(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n);}),qi=x$1(`$ZodCustom`,(e,t)=>{w$1.init(e,t),T$1.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=>Ji(t,n,r,e));Ji(i,n,r,e);};});function Ji(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(bn(e));}}var Yi,Xi=class{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&typeof n==`object`&&`id`in n){if(this._idmap.has(n.id))throw Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e);}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Zi(){return new Xi}(Yi=globalThis).__zod_globalRegistry??(Yi.__zod_globalRegistry=Zi());const Qi=globalThis.__zod_globalRegistry;function $i(e,t){return new e({type:`string`,...C$1(t)})}function ea(e,t){return new e({type:`string`,coerce:true,...C$1(t)})}function ta(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:false,...C$1(t)})}function na(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:false,...C$1(t)})}function ra(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,...C$1(t)})}function ia(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v4`,...C$1(t)})}function aa(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v6`,...C$1(t)})}function oa(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v7`,...C$1(t)})}function sa(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:false,...C$1(t)})}function ca(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:false,...C$1(t)})}function la(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:false,...C$1(t)})}function ua(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:false,...C$1(t)})}function da(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:false,...C$1(t)})}function fa(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:false,...C$1(t)})}function pa(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:false,...C$1(t)})}function ma(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:false,...C$1(t)})}function ha(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:false,...C$1(t)})}function ga(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:false,...C$1(t)})}function _a(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:false,...C$1(t)})}function va(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:false,...C$1(t)})}function ya(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:false,...C$1(t)})}function ba(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:false,...C$1(t)})}function xa(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:false,...C$1(t)})}function Sa(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:false,...C$1(t)})}function Ca(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:false,local:false,precision:null,...C$1(t)})}function wa(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...C$1(t)})}function Ta(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...C$1(t)})}function Ea(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...C$1(t)})}function Da(e,t){return new e({type:`number`,checks:[],...C$1(t)})}function Oa(e,t){return new e({type:`number`,coerce:true,checks:[],...C$1(t)})}function ka(e,t){return new e({type:`number`,check:`number_format`,abort:false,format:`safeint`,...C$1(t)})}function Aa(e,t){return new e({type:`boolean`,...C$1(t)})}function ja(e,t){return new e({type:`boolean`,coerce:true,...C$1(t)})}function Ma(e,t){return new e({type:`null`,...C$1(t)})}function Na(e){return new e({type:`any`})}function Pa(e){return new e({type:`unknown`})}function Fa(e,t){return new e({type:`never`,...C$1(t)})}function Ia(e,t){return new e({type:`void`,...C$1(t)})}function La(e,t){return new e({type:`date`,...C$1(t)})}function Ra(e,t){return new _r({check:`less_than`,...C$1(t),value:e,inclusive:false})}function za(e,t){return new _r({check:`less_than`,...C$1(t),value:e,inclusive:true})}function Ba(e,t){return new vr({check:`greater_than`,...C$1(t),value:e,inclusive:false})}function Va(e,t){return new vr({check:`greater_than`,...C$1(t),value:e,inclusive:true})}function Ha(e,t){return new yr({check:`multiple_of`,...C$1(t),value:e})}function Ua(e,t){return new xr({check:`max_length`,...C$1(t),maximum:e})}function Wa(e,t){return new Sr({check:`min_length`,...C$1(t),minimum:e})}function Ga(e,t){return new Cr({check:`length_equals`,...C$1(t),length:e})}function Ka(e,t){return new Tr({check:`string_format`,format:`regex`,...C$1(t),pattern:e})}function qa(e){return new Er({check:`string_format`,format:`lowercase`,...C$1(e)})}function Ja(e){return new Dr({check:`string_format`,format:`uppercase`,...C$1(e)})}function Ya(e,t){return new Or({check:`string_format`,format:`includes`,...C$1(t),includes:e})}function Xa(e,t){return new kr({check:`string_format`,format:`starts_with`,...C$1(t),prefix:e})}function Za(e,t){return new Ar({check:`string_format`,format:`ends_with`,...C$1(t),suffix:e})}function Qa(e){return new jr({check:`overwrite`,tx:e})}function $a(e){return Qa(t=>t.normalize(e))}function eo(){return Qa(e=>e.trim())}function to(){return Qa(e=>e.toLowerCase())}function no(){return Qa(e=>e.toUpperCase())}function ro(){return Qa(e=>Xt(e))}function io(e,t,n){return new e({type:`array`,element:t,...C$1(n)})}function ao(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...C$1(n)})}function oo(e){let t=so(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(bn(e,n.value,t._zod.def));else {let r=e;r.fatal&&(r.continue=false),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(bn(r));}},e(n.value,n)));return t}function so(e,t){let n=new w$1({check:`custom`,...C$1(t)});return n._zod.check=e,n}const co=x$1(`ZodISODateTime`,(e,t)=>{Kr.init(e,t),A$1.init(e,t);});function D$1(e){return Ca(co,e)}const lo=x$1(`ZodISODate`,(e,t)=>{qr.init(e,t),A$1.init(e,t);});function uo(e){return wa(lo,e)}const fo=x$1(`ZodISOTime`,(e,t)=>{Jr.init(e,t),A$1.init(e,t);});function po(e){return Ta(fo,e)}const mo=x$1(`ZodISODuration`,(e,t)=>{Yr.init(e,t),A$1.init(e,t);});function ho(e){return Ea(mo,e)}const go=(e,t)=>{Sn.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Tn(e,t)},flatten:{value:t=>wn(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Vt,2);}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Vt,2);}},isEmpty:{get(){return e.issues.length===0}}});};x$1(`ZodError`,go);const _o=x$1(`ZodError`,go,{Parent:Error}),vo=En(_o),yo=Dn(_o),bo=On(_o),xo=An(_o),So=Mn(_o),Co=Nn(_o),wo=Pn(_o),To=Fn(_o),Eo=In(_o),Do=Ln(_o),Oo=Rn(_o),ko=zn(_o),O$1=x$1(`ZodType`,(e,t)=>(T$1.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(Jt(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]})),e.clone=(t,n)=>an(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>vo(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>bo(e,t,n),e.parseAsync=async(t,n)=>yo(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>xo(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>So(e,t,n),e.decode=(t,n)=>Co(e,t,n),e.encodeAsync=async(t,n)=>wo(e,t,n),e.decodeAsync=async(t,n)=>To(e,t,n),e.safeEncode=(t,n)=>Eo(e,t,n),e.safeDecode=(t,n)=>Do(e,t,n),e.safeEncodeAsync=async(t,n)=>Oo(e,t,n),e.safeDecodeAsync=async(t,n)=>ko(e,t,n),e.refine=(t,n)=>e.check(Js(t,n)),e.superRefine=t=>e.check(Ys(t)),e.overwrite=t=>e.check(Qa(t)),e.optional=()=>As(e),e.nullable=()=>Ms(e),e.nullish=()=>As(Ms(e)),e.nonoptional=t=>Rs(e,t),e.array=()=>P$1(e),e.or=t=>_s([e,t]),e.and=t=>xs(e,t),e.transform=t=>Hs(e,Os(t)),e.default=t=>Ps(e,t),e.prefault=t=>Is(e,t),e.catch=t=>Bs(e,t),e.pipe=t=>Hs(e,t),e.readonly=()=>Ws(e),e.describe=t=>{let n=e.clone();return Qi.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return Qi.get(e)?.description},configurable:true}),e.meta=(...t)=>{if(t.length===0)return Qi.get(e);let n=e.clone();return Qi.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Ao=x$1(`_ZodString`,(e,t)=>{Pr.init(e,t),O$1.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(Ka(...t)),e.includes=(...t)=>e.check(Ya(...t)),e.startsWith=(...t)=>e.check(Xa(...t)),e.endsWith=(...t)=>e.check(Za(...t)),e.min=(...t)=>e.check(Wa(...t)),e.max=(...t)=>e.check(Ua(...t)),e.length=(...t)=>e.check(Ga(...t)),e.nonempty=(...t)=>e.check(Wa(1,...t)),e.lowercase=t=>e.check(qa(t)),e.uppercase=t=>e.check(Ja(t)),e.trim=()=>e.check(eo()),e.normalize=(...t)=>e.check($a(...t)),e.toLowerCase=()=>e.check(to()),e.toUpperCase=()=>e.check(no()),e.slugify=()=>e.check(ro());}),jo=x$1(`ZodString`,(e,t)=>{Pr.init(e,t),Ao.init(e,t),e.email=t=>e.check(ta(Mo,t)),e.url=t=>e.check(sa(Io,t)),e.jwt=t=>e.check(Sa(Qo,t)),e.emoji=t=>e.check(ca(Ro,t)),e.guid=t=>e.check(na(Po,t)),e.uuid=t=>e.check(ra(Fo,t)),e.uuidv4=t=>e.check(ia(Fo,t)),e.uuidv6=t=>e.check(aa(Fo,t)),e.uuidv7=t=>e.check(oa(Fo,t)),e.nanoid=t=>e.check(la(zo,t)),e.guid=t=>e.check(na(Po,t)),e.cuid=t=>e.check(ua(Bo,t)),e.cuid2=t=>e.check(da(Vo,t)),e.ulid=t=>e.check(fa(Ho,t)),e.base64=t=>e.check(ya(Yo,t)),e.base64url=t=>e.check(ba(Xo,t)),e.xid=t=>e.check(pa(Uo,t)),e.ksuid=t=>e.check(ma(Wo,t)),e.ipv4=t=>e.check(ha(Go,t)),e.ipv6=t=>e.check(ga(Ko,t)),e.cidrv4=t=>e.check(_a(qo,t)),e.cidrv6=t=>e.check(va(Jo,t)),e.e164=t=>e.check(xa(Zo,t)),e.datetime=t=>e.check(D$1(t)),e.date=t=>e.check(uo(t)),e.time=t=>e.check(po(t)),e.duration=t=>e.check(ho(t));});function k$1(e){return $i(jo,e)}const A$1=x$1(`ZodStringFormat`,(e,t)=>{E$1.init(e,t),Ao.init(e,t);}),Mo=x$1(`ZodEmail`,(e,t)=>{Lr.init(e,t),A$1.init(e,t);});function No(e){return ta(Mo,e)}const Po=x$1(`ZodGUID`,(e,t)=>{Fr.init(e,t),A$1.init(e,t);}),Fo=x$1(`ZodUUID`,(e,t)=>{Ir.init(e,t),A$1.init(e,t);}),Io=x$1(`ZodURL`,(e,t)=>{Rr.init(e,t),A$1.init(e,t);});function Lo(e){return sa(Io,e)}const Ro=x$1(`ZodEmoji`,(e,t)=>{zr.init(e,t),A$1.init(e,t);}),zo=x$1(`ZodNanoID`,(e,t)=>{Br.init(e,t),A$1.init(e,t);}),Bo=x$1(`ZodCUID`,(e,t)=>{Vr.init(e,t),A$1.init(e,t);}),Vo=x$1(`ZodCUID2`,(e,t)=>{Hr.init(e,t),A$1.init(e,t);}),Ho=x$1(`ZodULID`,(e,t)=>{Ur.init(e,t),A$1.init(e,t);}),Uo=x$1(`ZodXID`,(e,t)=>{Wr.init(e,t),A$1.init(e,t);}),Wo=x$1(`ZodKSUID`,(e,t)=>{Gr.init(e,t),A$1.init(e,t);}),Go=x$1(`ZodIPv4`,(e,t)=>{Xr.init(e,t),A$1.init(e,t);}),Ko=x$1(`ZodIPv6`,(e,t)=>{Zr.init(e,t),A$1.init(e,t);}),qo=x$1(`ZodCIDRv4`,(e,t)=>{Qr.init(e,t),A$1.init(e,t);}),Jo=x$1(`ZodCIDRv6`,(e,t)=>{$r.init(e,t),A$1.init(e,t);}),Yo=x$1(`ZodBase64`,(e,t)=>{ti.init(e,t),A$1.init(e,t);}),Xo=x$1(`ZodBase64URL`,(e,t)=>{ri.init(e,t),A$1.init(e,t);}),Zo=x$1(`ZodE164`,(e,t)=>{ii.init(e,t),A$1.init(e,t);}),Qo=x$1(`ZodJWT`,(e,t)=>{oi.init(e,t),A$1.init(e,t);}),$o=x$1(`ZodNumber`,(e,t)=>{si.init(e,t),O$1.init(e,t),e.gt=(t,n)=>e.check(Ba(t,n)),e.gte=(t,n)=>e.check(Va(t,n)),e.min=(t,n)=>e.check(Va(t,n)),e.lt=(t,n)=>e.check(Ra(t,n)),e.lte=(t,n)=>e.check(za(t,n)),e.max=(t,n)=>e.check(za(t,n)),e.int=t=>e.check(M$1(t)),e.safe=t=>e.check(M$1(t)),e.positive=t=>e.check(Ba(0,t)),e.nonnegative=t=>e.check(Va(0,t)),e.negative=t=>e.check(Ra(0,t)),e.nonpositive=t=>e.check(za(0,t)),e.multipleOf=(t,n)=>e.check(Ha(t,n)),e.step=(t,n)=>e.check(Ha(t,n)),e.finite=()=>e;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 j$1(e){return Da($o,e)}const es=x$1(`ZodNumberFormat`,(e,t)=>{ci.init(e,t),$o.init(e,t);});function M$1(e){return ka(es,e)}const ts=x$1(`ZodBoolean`,(e,t)=>{li.init(e,t),O$1.init(e,t);});function N$1(e){return Aa(ts,e)}const ns=x$1(`ZodNull`,(e,t)=>{ui.init(e,t),O$1.init(e,t);});function rs(e){return Ma(ns,e)}const is=x$1(`ZodAny`,(e,t)=>{di.init(e,t),O$1.init(e,t);});function as(){return Na(is)}const os=x$1(`ZodUnknown`,(e,t)=>{fi.init(e,t),O$1.init(e,t);});function ss(){return Pa(os)}const cs=x$1(`ZodNever`,(e,t)=>{pi.init(e,t),O$1.init(e,t);});function ls(e){return Fa(cs,e)}const us=x$1(`ZodVoid`,(e,t)=>{mi.init(e,t),O$1.init(e,t);});function ds(e){return Ia(us,e)}const fs=x$1(`ZodDate`,(e,t)=>{hi.init(e,t),O$1.init(e,t),e.min=(t,n)=>e.check(Va(t,n)),e.max=(t,n)=>e.check(za(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 ps(e){return La(fs,e)}const ms=x$1(`ZodArray`,(e,t)=>{_i.init(e,t),O$1.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(Wa(t,n)),e.nonempty=t=>e.check(Wa(1,t)),e.max=(t,n)=>e.check(Ua(t,n)),e.length=(t,n)=>e.check(Ga(t,n)),e.unwrap=()=>e.element;});function P$1(e,t){return io(ms,e,t)}const hs=x$1(`ZodObject`,(e,t)=>{Si.init(e,t),O$1.init(e,t),S$1(e,`shape`,()=>t.shape),e.keyof=()=>I$1(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ss()}),e.loose=()=>e.clone({...e._zod.def,catchall:ss()}),e.strict=()=>e.clone({...e._zod.def,catchall:ls()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>un(e,t),e.safeExtend=t=>dn(e,t),e.merge=t=>fn(e,t),e.pick=t=>cn(e,t),e.omit=t=>ln(e,t),e.partial=(...t)=>pn(ks,e,t[0]),e.required=(...t)=>mn(Ls,e,t[0]);});function F$1(e,t){return new hs({type:`object`,shape:e??{},...C$1(t)})}const gs=x$1(`ZodUnion`,(e,t)=>{wi.init(e,t),O$1.init(e,t),e.options=t.options;});function _s(e,t){return new gs({type:`union`,options:e,...C$1(t)})}const vs=x$1(`ZodDiscriminatedUnion`,(e,t)=>{gs.init(e,t),Ti.init(e,t);});function ys(e,t,n){return new vs({type:`union`,options:t,discriminator:e,...C$1(n)})}const bs=x$1(`ZodIntersection`,(e,t)=>{Ei.init(e,t),O$1.init(e,t);});function xs(e,t){return new bs({type:`intersection`,left:e,right:t})}const Ss=x$1(`ZodRecord`,(e,t)=>{ki.init(e,t),O$1.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType;});function Cs(e,t,n){return new Ss({type:`record`,keyType:e,valueType:t,...C$1(n)})}const ws=x$1(`ZodEnum`,(e,t)=>{Ai.init(e,t),O$1.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new ws({...t,checks:[],...C$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 ws({...t,checks:[],...C$1(r),entries:i})};});function I$1(e,t){return new ws({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...C$1(t)})}const Ts=x$1(`ZodLiteral`,(e,t)=>{ji.init(e,t),O$1.init(e,t),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 Es(e,t){return new Ts({type:`literal`,values:Array.isArray(e)?e:[e],...C$1(t)})}const Ds=x$1(`ZodTransform`,(e,t)=>{Mi.init(e,t),O$1.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Lt(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(bn(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(bn(t));}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)};});function Os(e){return new Ds({type:`transform`,transform:e})}const ks=x$1(`ZodOptional`,(e,t)=>{Pi.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function As(e){return new ks({type:`optional`,innerType:e})}const js=x$1(`ZodNullable`,(e,t)=>{Fi.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Ms(e){return new js({type:`nullable`,innerType:e})}const Ns=x$1(`ZodDefault`,(e,t)=>{Ii.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function Ps(e,t){return new Ns({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():tn(t)}})}const Fs=x$1(`ZodPrefault`,(e,t)=>{Ri.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Is(e,t){return new Fs({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():tn(t)}})}const Ls=x$1(`ZodNonOptional`,(e,t)=>{zi.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Rs(e,t){return new Ls({type:`nonoptional`,innerType:e,...C$1(t)})}const zs=x$1(`ZodCatch`,(e,t)=>{Vi.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function Bs(e,t){return new zs({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const Vs=x$1(`ZodPipe`,(e,t)=>{Hi.init(e,t),O$1.init(e,t),e.in=t.in,e.out=t.out;});function Hs(e,t){return new Vs({type:`pipe`,in:e,out:t})}const Us=x$1(`ZodReadonly`,(e,t)=>{Wi.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Ws(e){return new Us({type:`readonly`,innerType:e})}const Gs=x$1(`ZodLazy`,(e,t)=>{Ki.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.getter();});function Ks(e){return new Gs({type:`lazy`,getter:e})}const qs=x$1(`ZodCustom`,(e,t)=>{qi.init(e,t),O$1.init(e,t);});function Js(e,t={}){return ao(qs,e,t)}function Ys(e){return oo(e)}function Xs(e,t){return Hs(Os(e),t)}function Zs(e){return ea(jo,e)}function L$1(e){return Oa($o,e)}function Qs(e){return ja(ts,e)}const $s=I$1([`PENDING`,`APPROVED`,`REJECTED`]).meta({description:`Approval status. PENDING: awaiting review, APPROVED: approved for operation, REJECTED: rejected and cannot operate`}),tc=`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(`.`),R$1=I$1(tc).meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code for transactions and payouts`}),nc=I$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:`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:`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:`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)),rc=P$1(nc).max(10).optional().meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10 categories)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),ic=I$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)),ac=P$1(ic).min(1).max(5).meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]});P$1(ic).max(5).optional().meta({description:`Music genres for the event (up to 5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]});function z$1(e,t){return k$1().regex(RegExp(`^${e}_[0-9a-z]{26}$`),`Must be a valid ${t} ID`).describe(`Unique ${t} identifier`)}const sc=z$1(`tem`,`team`),B$1=z$1(`evt`,`event`),cc=z$1(`ven`,`venue`),lc=z$1(`loc`,`location`),uc=z$1(`usr`,`user`),dc=z$1(`ord`,`order`),fc=z$1(`tkt`,`ticket`),pc=z$1(`pmt`,`promoter`);z$1(`cpn`,`coupon`);z$1(`cod`,`coupon code`);const gc=z$1(`cus`,`customer`),_c=z$1(`adm`,`admission`),vc=z$1(`sct`,`section`);z$1(`ben`,`beneficiary`);const bc=z$1(`pyt`,`payout`),xc=z$1(`mbr`,`team member`),Sc=z$1(`inv`,`team invite`),Cc=z$1(`ecl`,`event collaborator`),wc=z$1(`psc`,`permission scope`),Tc=z$1(`prl`,`permission role`),Ec=z$1(`ntf`,`notification`),V$1=F$1({src:Lo().meta({examples:[`https://assets.session.services/my-image.jpg`]}),alt:k$1().meta({examples:[`My Image`]}),width:j$1().meta({examples:[1080]}),height:j$1().meta({examples:[1080]})}),Dc=`Limit cannot be 0. Use -1 for unlimited or a positive number for a specific limit`;function Oc(){return j$1().min(-1)}function kc(){return j$1().min(-1).refine(e=>e!==0,{message:Dc})}const Ac=_s([k$1(),j$1(),N$1(),rs()]),jc=Ks(()=>_s([Ac,P$1(jc),Cs(k$1(),jc)])),Mc=Cs(k$1().min(1).max(40).meta({description:`Metadata key. Must be 1-40 characters`}),k$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.`}),H$2=k$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 U$2(e){return L$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 Nc=k$1().meta({description:`Opaque cursor for pagination. Use the cursor from the previous response to continue fetching results.`}),Pc=`[a-z][a-z0-9-]*`,Fc=`(?:${Pc})(?:\\.${Pc})*`,Ic=RegExp(`^-?(?:\\*|${Fc}(?:\\.\\*|\\.bypass|\\.[a-z]{3}_[0-9a-z]{26})?)$`),Lc=/^[a-z]{3}_[0-9a-z]{26}$/,Rc=[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`,`cpn`],zc=`tenant.masquerade,team.read,team.write,team.member.read,team.member.write,team.invite.read,team.invite.write,team.gateway.read,team.gateway.connect,team.gateway.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,beneficiary.read,beneficiary.write,payout.read,payout.write,*`.split(`,`),Bc=[`tenant`,`team`,`team.member`,`team.invite`,`team.gateway`,`team.performance`,`cms`,`role`,`event`,`event.performance`,`promoter`,`promoter.performance`,`venue`,`order`,`ticket`,`coupon`,`beneficiary`,`payout`],Vc=new Set(zc),Hc=new Set(Bc),Uc={"tenant.masquerade":[],"team.read":[`tem`],"team.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.performance.read":[`tem`,`pmt`,`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`],"beneficiary.read":[`tem`,`pmt`],"beneficiary.write":[`tem`,`pmt`],"payout.read":[`tem`,`pmt`],"payout.write":[`tem`,`pmt`],"*":[]};function Wc(e){let[t]=e.split(`_`);return t?Rc.includes(t):false}function Gc(e){let[t]=e.split(`_`);return !t||!Wc(e)?null:t}function Kc(e){return Lc.test(e)&&Wc(e)}function qc$1(e,t){let n=Gc(t);return n?(Uc[e]??[]).includes(n):false}function Jc$1(e,t){return !Vc.has(e)||!Kc(t)?false:qc$1(e,t)}function Yc$1(e){return e.startsWith(`-`)?e.slice(1):e}function Xc$1(e){return Vc.has(e)}function Zc$1(e){return e.endsWith(`.bypass`)?Vc.has(e.slice(0,-7)):false}function Qc$1(e){let t=e.match(/^((?:[a-z][a-z0-9-]*)(?:\.[a-z][a-z0-9-]*)*)\.([a-z]{3}_[0-9a-z]{26})$/);return t?$c$1(t):null}function $c$1(e){let t=e[1],n=e[2];return !t||!n?null:{base:t,resourceId:n}}function el$1(e){let t=Qc$1(e);return t?Jc$1(t.base,t.resourceId):false}function tl(e){if(!e.endsWith(`.*`))return false;let t=e.slice(0,-2);return Hc.has(t)||Vc.has(t)}const nl=[Xc$1,Zc$1,el$1,tl];function rl(e){let t=Yc$1(e);return nl.some(e=>e(t))}const il=k$1().regex(Ic,`Invalid permission node. Use lowercase dot notation with optional wildcard, resource target, bypass target, and deny prefix.`).refine(rl,{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`]}),al$1=P$1(il).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`]]}),ol=al$1.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 wl=k$1().length(16).meta({examples:[b$1.signature],description:`HMAC signature for secure access (16 characters, base64url encoded)`}),Tl=I$1([`SALE_ENDED`,`SOLD_OUT`,`DOOR`]);function Dl(e){return F$1({base:M$1().min(0).meta({examples:[b$1.Admission.price.base],description:`Base cost of a ticket for this admission type before fees, in cents`}),booking:M$1().min(0).meta({examples:[b$1.Admission.price.booking],description:e.booking}),currency:R$1.meta({examples:[b$1.Admission.price.currency],description:e.currency})}).meta({examples:[b$1.Admission.price],description:e.price})}const W$2=F$1({id:_c.readonly().meta({description:`A unique identifier for this admission`,examples:[b$1.Admission.id]}),name:k$1().meta({description:`The display name of the admission type shown to customers`,examples:[b$1.Admission.name]}),subtitle:k$1().max(100).optional().meta({description:`Short supporting text shown below the admission name`,examples:[b$1.Admission.subtitle]}),description:k$1().max(500).optional().meta({description:`Detailed information shown when customers expand 'More info'`,examples:[b$1.Admission.description]}),capacity:Oc().prefault(-1).meta({examples:[b$1.Admission.capacity],description:`Maximum number of tickets that can be sold for this admission type. A value of -1 indicates unlimited`}),limit:kc().prefault(-1).meta({examples:[b$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:j$1().min(-1).readonly().meta({examples:[b$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:j$1().min(0).readonly().meta({examples:[b$1.Admission.sold],description:`Total number of tickets of this admission type that have been purchased`}),reserved:j$1().min(0).readonly().meta({examples:[b$1.Admission.reserved],description:`Number of tickets held for customers during checkout and not available to others`}),order:j$1().min(0).meta({examples:[b$1.Admission.order],description:`Determines the position in which this admission type appears when listed. Lower values appear first`}),createdAt:D$1().readonly().meta({examples:[b$1.Admission.createdAt],description:`Timestamp in ISO 8601 format when this admission type was created`}),updatedAt:D$1().readonly().meta({examples:[b$1.Admission.updatedAt],description:`Timestamp in ISO 8601 format when this admission type was last updated`}),entryStartsAt:H$2.meta({examples:[b$1.Admission.entryStartsAt],description:`Wall clock time from which tickets of this type are valid for entry (no timezone)`}),entryEndsAt:H$2.meta({examples:[b$1.Admission.entryEndsAt],description:`Wall clock time until which tickets of this type are valid for entry (no timezone)`}),saleStartsAt:H$2.meta({examples:[b$1.Admission.saleStartsAt],description:`Wall clock time when ticket sales for this admission type begin (no timezone)`}),saleEndsAt:H$2.meta({examples:[b$1.Admission.saleEndsAt],description:`Wall clock time when ticket sales for this admission type end (no timezone)`}),saleEndsBehavior:Tl.default(`SALE_ENDED`).meta({examples:[b$1.Admission.saleEndsBehavior],description:`Label to display for this admission after ticket sales have ended`}),price:Dl({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:I$1([`ALWAYS`,`STACKED`,`HIDDEN`]).prefault(`ALWAYS`).meta({examples:[`ALWAYS`],description:`Controls how this admission type is displayed: 'ALWAYS' shows it at all times, 'STACKED' reveals it when higher-priority tiers sell out, 'HIDDEN' requires a passcode to view`}),passcode:k$1().optional().meta({examples:[`VIPACCESS`],description:`Code required to reveal this admission type when visibility is 'HIDDEN'. Case-insensitive comparison`}),sectionId:vc.nullable().optional().meta({examples:[b$1.Admission.sectionId],description:`Identifier of the section this admission type belongs to, if any`}),teamId:sc.meta({description:`Team that owns this admission. Denormalized for efficient queries.`}),promoterId:pc.meta({examples:[b$1.Admission.promoterId],description:`Identifier of the promoter responsible for this admission type`}),eventId:B$1.meta({examples:[b$1.Admission.eventId],description:`Identifier of the event to which this admission type is linked`}),eventSlug:k$1().meta({examples:[b$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:[b$1.Admission]}),Ol=W$2.omit({id:true,createdAt:true,updatedAt:true,available:true,sold:true,reserved:true}).meta({description:`Schema for creating a new admission type for an event`}),kl=W$2.pick({id:true}).extend({eventId:W$2.shape.eventId.meta({examples:[b$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`}),Al=W$2.pick({id:true}).extend({eventId:B$1.meta({examples:[b$1.Admission.eventId],description:`Identifier of the event to which this admission type belongs`})}).meta({description:`Schema for retrieving a specific admission type`}),jl=F$1({eventId:k$1().meta({examples:[b$1.Admission.eventId],description:`Identifier of the event to list admission types for`}),sectionId:k$1().optional().meta({examples:[b$1.Admission.sectionId],description:`Filter admission types by section identifier. If provided, only admissions for this section are returned`}),query:k$1().optional().meta({examples:[`Early Bird`],description:`Optional search query to filter admissions by name. When provided, search-backed pagination is used.`}),limit:U$2(`admission types`).optional(),cursor:k$1().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 G$2(e,t){let n={[t]:P$1(e).meta({description:`Array of ${t} for the current result set`})},r=k$1().nullish().meta({examples:[`eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNqIn19`],description:`Cursor for navigating backward in the result set. Omitted when there are no prior results.`}),i=k$1().nullish().meta({examples:[`eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNkIn19`],description:`Cursor for navigating forward in the result set. Omitted when there are no subsequent results.`});return F$1({...n,before:r,after:i,limit:L$1().min(1).meta({examples:[20],description:`Maximum number of items to return in each result set`})})}const Ml=G$2(W$2,`admissions`),Nl=W$2.pick({eventId:true}).extend({message:k$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`}),price:Dl({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`}),Pl=W$2.pick({eventId:true}).extend({base:M$1().min(0).meta({examples:[b$1.Admission.price.base],description:`Base cost of a ticket for this admission type before fees, in cents`}),currency:R$1.meta({examples:[b$1.Admission.price.currency],description:`Three-letter ISO 4217 currency code for the ticket price`})}).meta({description:`Request schema for generating a pricing quote for an admission type, including booking fee calculations`}),Fl=F$1({quote:Nl}),Il=F$1({admission:W$2}),Ll=F$1({id:W$2.shape.id,eventId:W$2.shape.eventId,name:W$2.shape.name.optional(),subtitle:W$2.shape.subtitle,description:W$2.shape.description,capacity:Oc().optional(),limit:kc().optional(),order:W$2.shape.order.optional(),entryStartsAt:W$2.shape.entryStartsAt.optional(),entryEndsAt:W$2.shape.entryEndsAt.optional(),saleStartsAt:W$2.shape.saleStartsAt.optional(),saleEndsAt:W$2.shape.saleEndsAt.optional(),saleEndsBehavior:Tl.optional(),price:W$2.shape.price.optional(),visibility:I$1([`ALWAYS`,`STACKED`,`HIDDEN`]).optional(),passcode:k$1().optional(),sectionId:vc.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.`}),Rl=F$1({eventId:B$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:[b$1.Event.id]}),description:k$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:k$1().optional().meta({description:`Optional event name for additional context`,examples:[`Warehouse Sessions Vol. 5`]}),imageUrl:Lo().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`}),zl=F$1({genres:P$1(ic).max(5).meta({description:`Suggested music genres based on event description and artwork`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:P$1(nc).max(10).meta({description:`Suggested event categories based on description and artwork`,examples:[[`Warehouse`,`Underground`,`BYO`]]}),confidence:j$1().min(0).max(1).meta({description:`AI confidence score for the suggestions (0-1)`,examples:[.85]}),startDate:k$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:k$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:k$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:Lo().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`});F$1({estimatedInputTokens:j$1().int().meta({description:`Estimated input tokens for the request`,examples:[500]}),estimatedOutputTokens:j$1().int().meta({description:`Estimated output tokens for the response`,examples:[100]}),estimatedCostUsd:j$1().meta({description:`Estimated cost in USD`,examples:[.002]}),includesImage:N$1().meta({description:`Whether the estimate includes image analysis`,examples:[true]})}).meta({description:`Cost estimate for an AI tag suggestion request`});var Bl=/^(?:[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 Vl(e){return typeof e==`string`&&Bl.test(e)}for(var Hl=Vl,K$2=[],Ul=0;Ul<256;++Ul)K$2.push((Ul+256).toString(16).slice(1));function Wl(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 Gl(e,t=0){var n=Wl(e,t);if(!Hl(n))throw TypeError(`Stringified UUID is invalid`);return n}var Kl=Gl,ql,Jl=new Uint8Array(16);function Yl(){if(!ql&&(ql=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ql))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return ql(Jl)}var Xl=null,Zl=null,Ql=0;function $l(e,t,n){e||={};var r=t&&n||0,i=t||new Uint8Array(16),a=e.random||(e.rng||Yl)(),o=e.msecs===void 0?Date.now():e.msecs,s=e.seq===void 0?null:e.seq,c=Zl,l=Xl;return o>Ql&&e.msecs===void 0&&(Ql=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>Ql&&s===null?++l>524287&&(l=0,++c>4095&&(c=0,Ql++)):Ql=o,Zl=c,Xl=l,i[r++]=Ql/1099511627776&255,i[r++]=Ql/4294967296&255,i[r++]=Ql/16777216&255,i[r++]=Ql/65536&255,i[r++]=Ql/256&255,i[r++]=Ql&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||Wl(i)}var eu=$l;function tu(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$1=`0123456789abcdefghjkmnpqrstvwxyz`,J$1=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 nu(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$1[(e[0]&224)>>5],t[1]=q$1[e[0]&31],t[2]=q$1[(e[1]&248)>>3],t[3]=q$1[(e[1]&7)<<2|(e[2]&192)>>6],t[4]=q$1[(e[2]&62)>>1],t[5]=q$1[(e[2]&1)<<4|(e[3]&240)>>4],t[6]=q$1[(e[3]&15)<<1|(e[4]&128)>>7],t[7]=q$1[(e[4]&124)>>2],t[8]=q$1[(e[4]&3)<<3|(e[5]&224)>>5],t[9]=q$1[e[5]&31],t[10]=q$1[(e[6]&248)>>3],t[11]=q$1[(e[6]&7)<<2|(e[7]&192)>>6],t[12]=q$1[(e[7]&62)>>1],t[13]=q$1[(e[7]&1)<<4|(e[8]&240)>>4],t[14]=q$1[(e[8]&15)<<1|(e[9]&128)>>7],t[15]=q$1[(e[9]&124)>>2],t[16]=q$1[(e[9]&3)<<3|(e[10]&224)>>5],t[17]=q$1[e[10]&31],t[18]=q$1[(e[11]&248)>>3],t[19]=q$1[(e[11]&7)<<2|(e[12]&192)>>6],t[20]=q$1[(e[12]&62)>>1],t[21]=q$1[(e[12]&1)<<4|(e[13]&240)>>4],t[22]=q$1[(e[13]&15)<<1|(e[14]&128)>>7],t[23]=q$1[(e[14]&124)>>2],t[24]=q$1[(e[14]&3)<<3|(e[15]&224)>>5],t[25]=q$1[e[15]&31],t.join(``)}function ru(e){if(e.length!==26)throw Error(`Invalid length. Expected 26 bytes, got ${e.length}. Input: ${e}`);let t=new TextEncoder().encode(e);if(J$1[t[0]]===255||J$1[t[1]]===255||J$1[t[2]]===255||J$1[t[3]]===255||J$1[t[4]]===255||J$1[t[5]]===255||J$1[t[6]]===255||J$1[t[7]]===255||J$1[t[8]]===255||J$1[t[9]]===255||J$1[t[10]]===255||J$1[t[11]]===255||J$1[t[12]]===255||J$1[t[13]]===255||J$1[t[14]]===255||J$1[t[15]]===255||J$1[t[16]]===255||J$1[t[17]]===255||J$1[t[18]]===255||J$1[t[19]]===255||J$1[t[20]]===255||J$1[t[21]]===255||J$1[t[22]]===255||J$1[t[23]]===255||J$1[t[24]]===255||J$1[t[25]]===255)throw Error(`Invalid base32 character`);let n=new Uint8Array(16);return n[0]=J$1[t[0]]<<5|J$1[t[1]],n[1]=J$1[t[2]]<<3|J$1[t[3]]>>2,n[2]=(J$1[t[3]]&3)<<6|J$1[t[4]]<<1|J$1[t[5]]>>4,n[3]=(J$1[t[5]]&15)<<4|J$1[t[6]]>>1,n[4]=(J$1[t[6]]&1)<<7|J$1[t[7]]<<2|J$1[t[8]]>>3,n[5]=(J$1[t[8]]&7)<<5|J$1[t[9]],n[6]=J$1[t[10]]<<3|J$1[t[11]]>>2,n[7]=(J$1[t[11]]&3)<<6|J$1[t[12]]<<1|J$1[t[13]]>>4,n[8]=(J$1[t[13]]&15)<<4|J$1[t[14]]>>1,n[9]=(J$1[t[14]]&1)<<7|J$1[t[15]]<<2|J$1[t[16]]>>3,n[10]=(J$1[t[16]]&7)<<5|J$1[t[17]],n[11]=J$1[t[18]]<<3|J$1[t[19]]>>2,n[12]=(J$1[t[19]]&3)<<6|J$1[t[20]]<<1|J$1[t[21]]>>4,n[13]=(J$1[t[21]]&15)<<4|J$1[t[22]]>>1,n[14]=(J$1[t[22]]&1)<<7|J$1[t[23]]<<2|J$1[t[24]]>>3,n[15]=(J$1[t[24]]&7)<<5|J$1[t[25]],n}function iu(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 au=class extends Error{constructor(e){super(`Invalid prefix "${e}". Must be at most 63 ASCII letters [a-z_]`),this.name=`InvalidPrefixError`;}},ou=class extends Error{constructor(e,t){super(`Invalid TypeId. Prefix mismatch. Expected ${e}, got ${t}`),this.name=`PrefixMismatchError`;}},su=class extends Error{constructor(e){super(`Invalid TypeId. Prefix cannot be empty when there's a separator: ${e}`),this.name=`EmptyPrefixError`;}},cu=class extends Error{constructor(e){super(`Invalid length. Suffix should have 26 characters, got ${e}`),this.name=`InvalidSuffixLengthError`;}},lu=class extends Error{constructor(e){super(`Invalid suffix. First character "${e}" must be in the range [0-7]`),this.name=`InvalidSuffixCharacterError`;}},uu=class extends Error{constructor(e,t){super(`Cannot convert TypeID of type ${e} to type ${t}`),this.name=`TypeIDConversionError`;}};function du(e=``,t=``){if(!iu(e))throw new au(e);let n;if(t)n=t;else {let e=new Uint8Array(16);eu(void 0,e),n=nu(e);}if(n.length!==26)throw new cu(n.length);if(n[0]>`7`)throw new lu(n[0]);return ru(n),e===``?n:`${e}_${n}`}function fu(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 su(e);if(!r)throw new cu(0);if(t&&n!==t)throw new ou(t,n);return du(n,r)}function pu(e){let t=e.lastIndexOf(`_`);return t===-1?``:e.substring(0,t)}function mu(e){let t=e.lastIndexOf(`_`);return t===-1?e:e.substring(t+1)}var hu=class{constructor(e,t=``){this.prefix=e,this.suffix=t;let n=du(e,t);this.prefix=pu(n),this.suffix=mu(n);}getType(){return this.prefix}getSuffix(){return this.suffix}asType(e){let t=this;if(t.prefix!==e)throw new uu(t.prefix,e);return t}toUUIDBytes(){return ru(this.suffix)}toUUID(){return Kl(this.toUUIDBytes())}toString(){return this.prefix===``?this.suffix:`${this.prefix}_${this.suffix}`}static fromString(e,t){let n=fu(e,t);return new hu(pu(n),mu(n))}static fromUUIDBytes(e,t){return new hu(e,nu(t))}static fromUUID(e,t){return new hu(e,nu(tu(t)))}};function gu(e=``,t=``){return new hu(e,t)}const _u={admission:`adm`,anonymous:`anon`,beneficiary:`ben`,coupon:`cpn`,couponCode:`cod`,customer:`cus`,event:`evt`,eventCollaborator:`ecl`,eventCollaboratorInvite:`evi`,membership:`mem`,order:`ord`,orderItem:`itm`,orderFee:`fee`,permissionScope:`psc`,permissionRole:`prl`,permissionSnapshot:`pss`,payout:`pyt`,payoutDeduction:`pad`,payoutTransfer:`xfr`,promoter:`pmt`,refund:`rfd`,section:`sct`,scan:`scn`,team:`tem`,teamMember:`mbr`,teamInvite:`inv`,teamGateway:`tgw`,tenant:`tnt`,ticket:`tkt`,user:`usr`,venue:`ven`,location:`loc`,request:`req`,walletDevice:`wdv`,schedule:`sch`,session:`ssn`,trackingEvent:`tev`,trackingStats:`sta`,hllShard:`shr`,timeline:`tln`,notification:`ntf`};function vu(e){return gu(_u[e])}const yu=`ses_sid`,bu=`ses_aid`;function xu(){return vu(`session`).toString()}function Su(){return vu(`anonymous`).toString()}function Cu(e){let t=e.getCookie(yu);if(t)return t;let n=xu();return e.setCookie(yu,n),n}function wu(e){let t=e.getItem(bu);if(t)return t;let n=Su();return e.setItem(bu,n),n}function Tu(e){let t=xu(),n=Su();return e.setCookie(yu,t),e.setItem(bu,n),{sessionId:t,anonymousId:n}}const Du=uo().describe(`Date (YYYY-MM-DD)`),Ou=F$1({startDate:Du.describe(`Start date (YYYY-MM-DD)`),endDate:Du.describe(`End date (YYYY-MM-DD)`)}),ku=F$1({startDate:Du.optional().describe(`Start date (YYYY-MM-DD)`),endDate:Du.optional().describe(`End date (YYYY-MM-DD)`)}).refine(e=>!e.startDate&&!e.endDate||!!(e.startDate&&e.endDate),{message:`Both startDate and endDate must be provided together, or omit both for all-time data`});function Y$1(e){return F$1(e).extend(Ou.shape)}function Au(e){return xs(F$1(e),ku)}const X$1=F$1({value:j$1().describe(`Current period value`),previous:j$1().describe(`Comparison period value`),change:j$1().describe(`Percentage change from previous period`),changeType:I$1([`increase`,`decrease`,`unchanged`]).describe(`Direction of change`)}),ju=F$1({eventId:k$1().describe(`Event identifier`),eventName:k$1().describe(`Event name`),ticketCount:j$1().describe(`Number of tickets sold`),sharePercent:j$1().describe(`Percentage of total tickets`)}),Mu=F$1({start:k$1().describe(`Period start date`),end:k$1().describe(`Period end date`)}),Nu=F$1({start:k$1().describe(`Comparison period start date`),end:k$1().describe(`Comparison period end date`)}),Pu=I$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]),Fu=F$1({date:k$1().describe(`Date (YYYY-MM-DD)`),revenue:j$1().describe(`Revenue in cents`),tickets:j$1().describe(`Tickets sold`)}),Iu=Fu.extend({orders:j$1().describe(`Orders placed`)}),Lu=F$1({revenue:j$1().describe(`Total revenue for period in cents`),tickets:j$1().describe(`Total tickets for period`)}),Ru=Lu.extend({orders:j$1().describe(`Total orders for period`)}),zu=F$1({revenue:X$1.describe(`Total revenue in cents`),ticketsSold:X$1.describe(`Number of tickets sold`),averageOrderValue:X$1.describe(`Average order value in cents`),conversionRate:X$1.describe(`Overall conversion rate (%)`),activeEvents:X$1.describe(`Number of active events in period`),uniqueCustomers:X$1.describe(`Unique customers (estimated)`),orderCount:X$1.describe(`Number of orders placed`),pageViews:X$1.describe(`Total page views from tracking`)}),Bu=F$1({events:P$1(ju),totalTickets:j$1().describe(`Total tickets across all events`)});function Vu(e,t){return Y$1({...Gu(e,t),currency:k$1().optional().describe(`Currency code for revenue metrics`)})}function Hu(e){return F$1({meta:F$1({...e,currency:k$1().describe(`Primary currency code`),currencies:P$1(k$1()).describe(`All currencies with transactions`),dateRange:Mu,comparisonRange:Nu}),metrics:zu})}function Uu(e,t){return Y$1({...Gu(e,t),granularity:Pu.optional().default(`DAY`).describe(`Time granularity`),currency:k$1().optional().describe(`Currency filter`)})}function Wu(e,t){return Y$1({...Gu(e,t),limit:j$1().optional().default(5).describe(`Maximum number of events to return`)})}function Gu(e,t){return {[e]:k$1().describe(t)}}const Ku=Au({eventId:k$1().describe(`Event identifier`)}).meta({description:`Event performance summary request`}),qu=F$1({meta:F$1({eventId:k$1().describe(`Event identifier`),eventName:k$1().describe(`Event name`),currency:k$1().describe(`Currency code (e.g., USD, EUR)`),dateRange:Mu.optional().describe(`Present only when startDate/endDate are provided`),comparisonRange:Nu.optional().describe(`Present only when startDate/endDate are provided`)}),metrics:F$1({revenue:X$1.describe(`Total revenue in cents`),ticketsSold:X$1.describe(`Number of tickets sold`),orderCount:X$1.describe(`Number of orders placed`),averageOrderValue:X$1.describe(`Average order value in cents`),conversionRate:X$1.describe(`Conversion rate as percentage`),pageViews:X$1.describe(`Total page/product views`),uniqueVisitors:X$1.describe(`Unique visitors (estimated)`),checkoutStarted:X$1.describe(`Number of checkout started events (external link clicks for external events)`)})}),Ju=Y$1({eventId:k$1().describe(`Event identifier`),granularity:Pu.optional().default(`DAY`).describe(`Time granularity for aggregation`),breakdown:I$1([`TOTAL`]).optional().default(`TOTAL`).describe(`Breakdown type (always TOTAL for performance)`),includeBreakdowns:N$1().optional().default(true).describe(`Whether to include admission and section breakdowns in each time bucket`)}),Yu=F$1({meta:F$1({eventId:k$1(),eventName:k$1().describe(`Event name`),currency:k$1().describe(`Currency code`),dateRange:Mu,granularity:Pu}),series:P$1(F$1({date:k$1().describe(`Date or timestamp`),tickets:j$1().describe(`Tickets sold in period`),revenue:j$1().describe(`Revenue in period (cents)`),admissions:P$1(F$1({id:k$1(),name:k$1(),quantity:j$1()})),sections:P$1(F$1({id:k$1(),name:k$1(),quantity:j$1()}))}))}),Xu=Y$1({eventId:k$1().describe(`Event identifier`)}),Zu=F$1({meta:F$1({eventId:k$1(),eventName:k$1().describe(`Event name`),currency:k$1().describe(`Currency code`),dateRange:Mu}),totals:F$1({entered:j$1().describe(`Total entered funnel (product viewed)`),completed:j$1().describe(`Total completed (orders)`),overallConversionRate:j$1().describe(`Overall conversion rate (%)`),totalDropped:j$1().describe(`Total dropped off`)}),stages:P$1(F$1({id:k$1().describe(`Funnel stage identifier`),name:k$1().describe(`Human-readable stage name`),count:j$1().describe(`Number of events at this stage`),conversionRate:j$1().describe(`Conversion rate from first stage (%)`),dropoffRate:j$1().describe(`Dropoff rate from previous stage (%)`)}))});F$1({meta:F$1({eventId:k$1(),dimension:k$1().describe(`Dimension type`),dateRange:Mu,limit:j$1().optional()}),data:P$1(F$1({name:k$1().describe(`Dimension value (e.g., campaign name)`),views:j$1().describe(`Page/product views`),conversions:j$1().describe(`Completed orders`),revenue:j$1().describe(`Total revenue in cents`),conversionRate:j$1().describe(`Conversion rate (%)`),share:j$1().describe(`Percentage share of total`).optional()})),totals:F$1({views:j$1(),conversions:j$1(),revenue:j$1()}).optional()});const $u=I$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]),ed=F$1({eventId:k$1().describe(`Event identifier`),eventName:k$1().describe(`Event name`),currency:k$1().describe(`Currency code (e.g., USD, EUR)`),dateRange:Mu}),td=ed.extend({limit:j$1().describe(`Maximum number of results returned`)});Y$1({eventId:k$1(),granularity:$u.optional()});F$1({granularity:$u,data:P$1(F$1({date:k$1(),revenue:j$1(),ticketsSold:j$1()}))});const id=Y$1({eventId:k$1(),limit:j$1().min(1).max(100).optional().default(10)}),ad=F$1({meta:td,totals:F$1({uses:j$1().describe(`Total coupon uses across all coupons`),revenue:j$1().describe(`Total revenue from coupon-discounted orders (cents)`)}),coupons:P$1(F$1({id:k$1().describe(`Coupon code identifier`),code:k$1().describe(`Coupon code`),uses:j$1().describe(`Number of times this coupon was used`),revenue:j$1().describe(`Revenue from this coupon (cents)`),discount:k$1().describe(`Discount amount or percentage`),share:j$1().describe(`Share of total coupon uses (%)`)})).describe(`Coupons sorted by uses descending`)}),od=Y$1({eventId:k$1(),limit:j$1().min(1).max(100).optional().default(10)}),sd=F$1({data:P$1(F$1({campaign:k$1(),views:j$1(),conversions:j$1(),conversionRate:j$1(),sharePercent:j$1()})),totalConversions:j$1()}),cd=Y$1({eventId:k$1(),limit:j$1().min(1).max(100).optional().default(10)}),ld=F$1({meta:td,totals:F$1({views:j$1().describe(`Total views across all mediums`),conversions:j$1().describe(`Total conversions across all mediums`)}),mediums:P$1(F$1({id:k$1().describe(`Medium identifier (e.g., 'social', 'email')`),name:k$1().describe(`Medium name`),views:j$1().describe(`Views from this medium`),conversions:j$1().describe(`Conversions from this medium`),conversionRate:j$1().describe(`Conversion rate (%)`),share:j$1().describe(`Share of total conversions (%)`)})).describe(`Mediums sorted by conversions descending`)}),ud=Y$1({eventId:k$1()}),dd=F$1({meta:ed,totals:F$1({revenue:j$1().describe(`Total revenue across all devices (cents)`),orders:j$1().describe(`Total orders across all devices`)}),devices:P$1(F$1({id:I$1([`MOBILE`,`DESKTOP`,`TABLET`]).describe(`Device type`),name:k$1().describe(`Human-readable device name`),revenue:j$1().describe(`Revenue from this device (cents)`),orders:j$1().describe(`Orders from this device`),conversionRate:j$1().describe(`Conversion rate (%)`),share:j$1().describe(`Share of total revenue (%)`)})).describe(`Devices sorted by revenue descending`)}),fd=Y$1({eventId:k$1(),limit:j$1().min(1).max(100).optional().default(10)}),pd=F$1({meta:td,totals:F$1({tickets:j$1().describe(`Total tickets across all locations`),revenue:j$1().describe(`Total revenue across all locations (cents)`)}),locations:P$1(F$1({id:k$1().describe(`Location/region code (e.g., 'US-CA', 'GB')`),name:k$1().describe(`Human-readable location name`),views:j$1().describe(`Page views from this location`),tickets:j$1().describe(`Tickets from this location`),revenue:j$1().describe(`Revenue from this location (cents)`),share:j$1().describe(`Share of total views (%)`)})).describe(`Locations sorted by views descending`)}),md=Y$1({eventId:k$1(),limit:j$1().min(1).max(100).optional().default(10)}),hd=F$1({meta:td,totals:F$1({sessions:j$1().describe(`Total sessions across all sources`),conversions:j$1().describe(`Total conversions across all sources`),revenue:j$1().describe(`Total revenue across all sources (cents)`)}),sources:P$1(F$1({id:k$1().describe(`Traffic source identifier`),name:k$1().describe(`Traffic source name`),referrer:k$1().describe(`Referrer URL or domain`),sessions:j$1().describe(`Sessions from this source`),conversions:j$1().describe(`Conversions from this source`),conversionRate:j$1().describe(`Conversion rate (%)`),revenue:j$1().describe(`Revenue from this source (cents)`),share:j$1().describe(`Share of total conversions (%)`)})).describe(`Traffic sources sorted by conversions descending`)}),gd=F$1({eventId:k$1(),includeAdmission:N$1().optional().default(true),includeSection:N$1().optional().default(true),granularity:I$1([`HOUR`,`MINUTE`]).optional()}),_d=F$1({totalTickets:j$1(),checkedIn:j$1(),notCheckedIn:j$1(),checkinRate:j$1()}),vd=_d.extend({admissionId:k$1(),admissionName:k$1()}),yd=_d.extend({sectionId:k$1(),sectionName:k$1()}),bd=_s([_d.extend({byAdmission:P$1(vd),bySection:P$1(yd)}),F$1({granularity:I$1([`HOUR`,`MINUTE`]),totalTickets:j$1(),data:P$1(F$1({timestamp:k$1(),checkedIn:j$1(),rate:j$1(),checkinsThisPeriod:j$1()})),byAdmission:P$1(F$1({admissionId:k$1(),admissionName:k$1(),data:P$1(F$1({timestamp:k$1(),checkedIn:j$1(),rate:j$1()}))})).optional(),bySection:P$1(F$1({sectionId:k$1(),sectionName:k$1(),data:P$1(F$1({timestamp:k$1(),checkedIn:j$1(),rate:j$1()}))})).optional()})]),xd=Vu(`promoterId`,`Promoter identifier`),Sd=Hu({promoterId:k$1().describe(`Promoter identifier`),promoterName:k$1().describe(`Promoter name`),teamId:k$1().describe(`Team identifier`),teamName:k$1().describe(`Team name`)}),Cd=Uu(`promoterId`,`Promoter identifier`),wd=F$1({meta:F$1({promoterId:k$1(),dateRange:Mu,granularity:Pu}),currencies:P$1(F$1({currency:k$1().describe(`Currency code (e.g., USD, EUR)`),series:P$1(Fu),totals:Lu})).describe(`Time-series data grouped by currency`)}),Td=Wu(`promoterId`,`Promoter identifier`),Ed=Bu,Dd=Vu(`teamId`,`Team identifier`),Od=Hu({teamId:k$1().describe(`Team identifier`),teamName:k$1().describe(`Team name`)}),kd=Uu(`teamId`,`Team identifier`),Ad=F$1({meta:F$1({teamId:k$1(),dateRange:Mu,granularity:Pu}),currencies:P$1(F$1({currency:k$1().describe(`Currency code (e.g., USD, EUR)`),series:P$1(Iu),totals:Ru})).describe(`Time-series data grouped by currency`)});Y$1({teamId:k$1().describe(`Team identifier`),limit:j$1().optional().default(10).describe(`Number of events to return`),sortBy:I$1([`revenue`,`tickets`,`conversion`]).optional().default(`revenue`).describe(`Sort metric`)});F$1({meta:F$1({teamId:k$1(),dateRange:F$1({start:k$1(),end:k$1()}),limit:j$1(),sortBy:k$1()}),data:P$1(F$1({eventId:k$1().describe(`Event identifier`),eventName:k$1().describe(`Event name`),eventDate:k$1().describe(`Event date`).optional(),status:k$1().describe(`Event status`),revenue:j$1().describe(`Total revenue in cents`),tickets:j$1().describe(`Tickets sold`),views:j$1().describe(`Page views`),conversionRate:j$1().describe(`Conversion rate (%)`),contribution:j$1().describe(`% of promoter's total revenue`)})),totals:F$1({events:j$1().describe(`Total events in period`),revenue:j$1().describe(`Combined revenue`),tickets:j$1().describe(`Combined tickets`)})});const Nd=Wu(`teamId`,`Team identifier`),Pd=Bu,Fd=Y$1({teamId:k$1().describe(`Team identifier`)}),Id=F$1({stages:P$1(F$1({stageId:k$1().describe(`Funnel stage identifier`),stageLabel:k$1().describe(`Human-readable stage name`),count:j$1().describe(`Number of events at this stage`),conversionRate:j$1().describe(`Conversion rate from first stage (%)`),dropoffPercent:j$1().describe(`Dropoff rate from previous stage (%)`)}))}),Ld=Y$1({teamId:k$1().describe(`Team identifier`),groupBy:I$1([`HOUR`,`DAY_OF_WEEK`,`DAY`,`WEEK`,`MONTH`]).optional().default(`HOUR`).describe(`Time breakdown for aggregation`),timeZone:k$1().optional().default(`UTC`).describe(`IANA timezone for hour/day aggregation (e.g., 'America/New_York')`)}),Rd=F$1({groupBy:I$1([`HOUR`,`DAY_OF_WEEK`,`DAY`,`WEEK`,`MONTH`]).describe(`The grouping used for aggregation`),buckets:P$1(F$1({key:_s([j$1(),k$1()]).describe(`Bucket key (hour 0-23, day 0-6, or date string)`),label:k$1().describe(`Human-readable label`),orderCount:j$1().describe(`Number of orders`),sharePercent:j$1().describe(`Percentage of total orders`)})),totalOrders:j$1().describe(`Total orders across all buckets`)}),zd=Y$1({teamId:k$1().describe(`Team identifier`),limit:j$1().optional().default(10).describe(`Maximum number of admissions to return`)}),Bd=F$1({admissions:P$1(F$1({admissionId:k$1().describe(`Admission identifier`),admissionName:k$1().describe(`Admission name`),ticketCount:j$1().describe(`Number of tickets sold`),sharePercent:j$1().describe(`Percentage of total tickets`)})),totalTickets:j$1().describe(`Total tickets across all admissions`)}),Vd=Y$1({teamId:k$1().describe(`Team identifier`),type:I$1([`campaign`,`medium`,`source`]).describe(`Dimension type to analyze`),limit:j$1().optional().default(20).describe(`Maximum number of results to return`)}),Hd=F$1({dimensionType:I$1([`campaign`,`medium`,`source`]).describe(`The dimension type analyzed`),data:P$1(F$1({dimensionValue:k$1().describe(`The dimension value (e.g., campaign name)`),dimensionLabel:k$1().describe(`Human-readable label`),views:j$1().describe(`Total page views`),conversions:j$1().describe(`Total conversions (orders)`),conversionRate:j$1().describe(`Conversion rate (%)`),sharePercent:j$1().describe(`Share of total conversions (%)`)})),totalConversions:j$1().describe(`Total conversions across all dimensions`)}),Ud=Y$1({teamId:k$1().describe(`Team identifier`),granularity:I$1([`DAY`,`WEEK`,`MONTH`]).optional().default(`DAY`).describe(`Time granularity for aggregation`)}),Wd=F$1({granularity:I$1([`DAY`,`WEEK`,`MONTH`]).describe(`The granularity used`),series:P$1(F$1({date:k$1().describe(`Date key (YYYY-MM-DD, YYYY-Www, or YYYY-MM)`),label:k$1().describe(`Human-readable label`),productViewed:j$1().describe(`Page views`),productAdded:j$1().describe(`Add to cart events`),checkoutStarted:j$1().describe(`Checkout started events`),orderCompleted:j$1().describe(`Completed orders`)})),totals:F$1({productViewed:j$1().describe(`Total page views`),productAdded:j$1().describe(`Total add to cart`),checkoutStarted:j$1().describe(`Total checkouts started`),orderCompleted:j$1().describe(`Total orders completed`),uniqueVisitors:j$1().describe(`Unique visitors (estimated via HyperLogLog, ~0.8% error)`)})}),Gd=I$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(`.`)),Kd=Gd.enum,qd=F$1({product_id:k$1().optional().describe(`admission_id in ticketing context`),sku:k$1().optional().describe(`admission_id or admission_name`),category:k$1().optional().describe(`event_name or "Admission"`),name:k$1().optional().describe(`admission_name`),brand:k$1().optional().describe(`promoter_name`),variant:k$1().optional().describe(`section_name`),price:j$1().optional().describe(`admission price (base + booking fee)`),quantity:j$1().optional().describe(`number of tickets`),coupon:k$1().optional().describe(`coupon code applied`),position:j$1().optional().describe(`position in list`),url:k$1().optional().describe(`URL to event/admission page`),image_url:k$1().optional().describe(`event image`),admission_id:k$1().optional().describe(`Explicit admission ID`),section_id:k$1().optional().describe(`Section ID if applicable`),event_id:k$1().optional().describe(`Event ID for this admission`),promoter_id:k$1().optional().describe(`Promoter ID`),price_base:j$1().nullish().describe(`Base price before fees`),price_booking_fee:j$1().nullish().describe(`Booking fee`),capacity:j$1().optional().describe(`Total capacity for this admission`),available:j$1().optional().describe(`Remaining tickets available`),sold:j$1().optional().describe(`Tickets already sold`)}),Jd=F$1({type:k$1(),value:k$1()}),Yd=F$1({type:k$1(),value:k$1()}),Xd=F$1({query:_s([k$1(),Cs(k$1(),ss())]).optional(),list_id:k$1().optional(),category:k$1().optional(),filters:P$1(Jd).optional(),sorts:P$1(Yd).optional(),promotion_id:k$1().optional(),creative:k$1().optional(),name:k$1().optional(),position:_s([k$1(),j$1()]).optional(),product_id:k$1().optional(),sku:k$1().optional(),brand:k$1().optional(),variant:k$1().optional(),price:j$1().optional(),quantity:j$1().optional(),coupon:k$1().optional(),currency:k$1().optional(),value:j$1().optional(),url:k$1().optional(),image_url:k$1().optional(),cart_id:k$1().optional(),checkout_id:k$1().optional(),step:j$1().optional(),shipping_method:k$1().optional(),payment_method:k$1().optional(),order_id:k$1().optional(),affiliation:k$1().optional(),subtotal:j$1().optional(),total:j$1().optional(),revenue:j$1().optional(),shipping:j$1().optional(),tax:j$1().optional(),discount:j$1().optional(),coupon_id:k$1().optional(),coupon_name:k$1().optional(),reason:k$1().optional(),wishlist_id:k$1().optional(),wishlist_name:k$1().optional(),share_via:k$1().optional(),share_message:k$1().optional(),recipient:k$1().optional(),review_id:k$1().optional(),review_body:k$1().optional(),rating:k$1().optional(),products:P$1(qd).optional(),event_id:k$1().optional().describe(`ID of the ticketed event (evt_xxx)`),event_name:k$1().optional().describe(`Name of the ticketed event`),event_slug:k$1().optional().describe(`URL slug of event`),event_starts_at:H$2.optional().describe(`When the event starts (naive datetime, no timezone)`),event_ends_at:H$2.optional().describe(`When the event ends (naive datetime, no timezone)`),event_status:I$1([`UPCOMING`,`LIVE`,`ENDED`,`CANCELLED`]).optional(),event_visibility:I$1([`PUBLIC`,`PRIVATE`]).optional(),event_location:k$1().optional().describe(`Venue name`),event_city:k$1().optional().describe(`Venue city`),event_country:k$1().optional().describe(`Venue country`),promoter_id:k$1().optional().describe(`ID of the promoter (pmt_xxx)`),promoter_name:k$1().optional().describe(`Name of the promoter`),promoter_slug:k$1().optional().describe(`URL slug of promoter`),admission_id:k$1().optional().describe(`ID of admission type (adm_xxx)`),admission_name:k$1().optional().describe(`Name of admission (e.g., "General Admission")`),admission_capacity:j$1().optional().describe(`Total capacity for this admission`),admission_available:j$1().optional().describe(`Tickets still available`),admission_sold:j$1().optional().describe(`Tickets already sold`),section_id:k$1().optional().describe(`ID of section (sct_xxx)`),section_name:k$1().optional().describe(`Name of section (e.g., "VIP", "General")`),section_capacity:j$1().optional().describe(`Total capacity for this section`),section_available:j$1().optional().describe(`Spots still available in section`),ticket_id:k$1().optional().describe(`Individual ticket ID (tkt_xxx)`),ticket_status:I$1([`VALID`,`REDEEMED`,`CANCELLED`]).optional(),tickets_quantity:j$1().optional().describe(`Number of tickets in transaction`),customer_id:k$1().optional().describe(`Customer ID (cus_xxx)`),customer_email:k$1().optional().describe(`Customer email`),customer_first_name:k$1().optional(),customer_last_name:k$1().optional(),price_base:j$1().nullish().describe(`Base price before fees`),price_booking_fee:j$1().nullish().describe(`Booking fee amount`),price_discount_amount:j$1().nullish().describe(`Discount amount applied`),sale_starts_at:H$2.optional().describe(`When tickets go on sale (naive datetime, no timezone)`),sale_ends_at:H$2.optional().describe(`When ticket sales end (naive datetime, no timezone)`),entry_starts_at:H$2.optional().describe(`When entry to event begins (naive datetime, no timezone)`),entry_ends_at:H$2.optional().describe(`When entry to event ends (naive datetime, no timezone)`),funnel_step:k$1().optional().describe(`Current funnel step (e.g., "browse", "cart", "checkout")`),time_to_purchase:j$1().optional().describe(`Seconds from first view to purchase`),session_duration:j$1().optional().describe(`Total session duration in seconds`),referrer_type:I$1([`DIRECT`,`SOCIAL`,`EMAIL`,`SEARCH`,`REFERRAL`,`AD`]).optional(),campaign_id:k$1().optional().describe(`Marketing campaign ID`),affiliate_id:k$1().optional().describe(`Affiliate partner ID`),promo_code_used:k$1().optional().describe(`Promotional code applied`),platform:I$1([`WEB`,`MOBILE_WEB`,`IOS`,`ANDROID`]).optional(),app_version:k$1().optional(),device_type:I$1([`MOBILE`,`TABLET`,`DESKTOP`]).optional()}),Zd=F$1({session_id:k$1(),user_id:k$1().optional(),anonymous_id:k$1().optional(),utm_source:k$1().optional(),utm_medium:k$1().optional(),utm_campaign:k$1().optional(),utm_term:k$1().optional(),utm_content:k$1().optional(),page:F$1({url:k$1(),path:k$1(),title:k$1()}),referrer:k$1().optional(),user_agent:k$1().optional(),ip:k$1().optional(),geo:F$1({country:k$1().optional().describe(`Country code (e.g., "AU")`),countryName:k$1().optional().describe(`Country name (e.g., "Australia")`),region:k$1().optional().describe(`State/province code`),regionName:k$1().optional().describe(`State/province name (e.g., "New South Wales")`),city:k$1().optional().describe(`City name`),latitude:k$1().optional().describe(`Latitude`),longitude:k$1().optional().describe(`Longitude`)}).optional(),fbc:k$1().optional().describe(`Facebook click ID`),fbp:k$1().optional().describe(`Facebook browser ID`),ttclid:k$1().optional().describe(`TikTok click ID`)}),Qd=F$1({id:k$1(),eventId:k$1().min(1).describe(`Event being tracked (evt_123)`),teamId:k$1().min(1).describe(`Team ID (team_123)`),promoterId:k$1().min(1).describe(`Promoter ID (pmt_123)`),eventType:Gd,timestamp:k$1(),date:k$1().describe(`YYYY-MM-DD`),hour:j$1().int().min(0).max(23),properties:Xd,context:Zd,productId:k$1().optional(),createdAt:k$1(),updatedAt:k$1()}),$d=Qd.omit({id:true,timestamp:true,date:true,hour:true,createdAt:true,updatedAt:true}).meta({description:`Schema for tracking an analytics event. Excludes system-generated fields`}),ef=F$1({legacyOrgId:k$1().min(1),legacyEventId:k$1().min(1),legacyTeamId:k$1().min(1),legacyEventName:k$1().optional(),legacyEventSlug:k$1().optional(),legacyEventCreatedAt:_s([k$1(),ps(),rs()]).optional(),legacyTeamCreatedAt:_s([k$1(),ps(),rs()]).optional()}),tf=F$1({eventName:k$1().min(1).optional(),eventType:Gd.optional(),eventId:k$1().min(1).optional(),teamId:k$1().min(1).optional(),promoterId:k$1().min(1).optional(),properties:Cs(k$1(),ss()).optional(),context:Zd.partial().optional(),legacyContext:ef.optional()}).passthrough().meta({description:`Compatibility schema for legacy Sash analytics payloads that require server-side ID normalization`}),nf=_s([$d,tf]).meta({description:`Analytics ingress schema accepting both canonical payloads and legacy Sash-compatible payloads`});Au({eventId:k$1().meta({description:`Event ID to get tracking events for`}),limit:L$1().int().positive().optional().meta({description:`Maximum number of events to return`})}).meta({description:`Schema for retrieving tracking events for an event`});F$1({id:k$1(),email:No(),firstName:k$1(),lastName:k$1(),imageUrl:k$1().url().optional(),tenantId:k$1(),createdAt:k$1().datetime(),updatedAt:k$1().datetime()});const vf=I$1([`AIRWALLEX`,`STRIPE`]),bf=F$1({id:k$1().readonly().meta({examples:[b$1.Beneficiary.id],description:`A unique identifier for this beneficiary.`}),createdAt:D$1().readonly().meta({examples:[b$1.Beneficiary.createdAt],description:`Timestamp in ISO 8601 format when this beneficiary was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.Beneficiary.updatedAt],description:`Timestamp in ISO 8601 format when this beneficiary was last updated.`}),name:k$1().meta({examples:[b$1.Beneficiary.name],description:`The account name for this beneficiary.`}),currency:R$1.meta({examples:[b$1.Beneficiary.currency],description:`Three-letter ISO 4217 currency code for payouts.`}),gateway:vf.meta({examples:[`STRIPE`],description:`The payment gateway used for processing payouts.`}),gatewayId:k$1().meta({examples:[b$1.Beneficiary.gatewayId],description:`The identifier assigned by the payment gateway to this account.`}),teamId:k$1().meta({description:`Team that owns this beneficiary account.`}),teamIds:P$1(k$1()).meta({examples:[[]],description:`List of team IDs this beneficiary is assigned to. Empty array means available to all teams.`}),venueIds:P$1(k$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`}),xf=F$1({city:k$1().optional(),country_code:k$1(),postcode:k$1().optional(),state:k$1().optional(),street_address:k$1().optional()}),Sf=F$1({account_currency:k$1(),account_name:k$1(),account_number:k$1().optional(),account_routing_type1:k$1().optional(),account_routing_value1:k$1().optional(),account_routing_type2:k$1().optional(),account_routing_value2:k$1().optional(),bank_account_category:k$1().optional(),bank_branch:k$1().optional(),bank_country_code:k$1(),bank_name:k$1().optional(),bank_street_address:k$1().optional(),binding_mobile_number:k$1().optional(),fingerprint:k$1().optional(),iban:k$1().optional(),local_clearing_system:k$1().optional(),swift_code:k$1().optional(),transaction_reference:k$1().optional(),account_identifier_type:k$1().optional(),account_identifier_value:k$1().optional()}),Cf=F$1({transfer_methods:P$1(I$1([`SWIFT`,`LOCAL`])).meta({examples:[[`LOCAL`]],description:`Transfer methods supported for this beneficiary`}),beneficiary:F$1({company_name:k$1().optional(),date_of_birth:k$1().optional(),entity_type:k$1().meta({examples:[`COMPANY`],description:`Whether the beneficiary is PERSONAL or COMPANY`}),first_name:k$1().optional(),last_name:k$1().optional(),address:xf,bank_details:Sf,additional_info:F$1({personal_email:No().optional()}).optional()}).meta({description:`Beneficiary details including personal/company info, address, and bank details`})}).meta({description:`Complete beneficiary request structure for Airwallex validation`}),wf=Cf.extend({id:k$1().optional()}),Tf=bf.omit({id:true,createdAt:true,updatedAt:true,currency:true}).extend({currency:R$1.meta({examples:[b$1.Beneficiary.currency],description:`Three-letter ISO 4217 currency code for payouts to this beneficiary account`}),airwallex:wf.optional().meta({examples:[b$1.AirwallexBeneficiary],description:`Airwallex-specific beneficiary details including bank account information and address (required when gateway is AIRWALLEX)`}),teamIds:P$1(k$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:P$1(k$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`}),Ef=bf.pick({id:true}).meta({description:`Schema for retrieving a single beneficiary by its unique identifier`}),Df=Ef.meta({description:`Schema for deleting a beneficiary account - requires the beneficiary ID`}),Of=F$1({teamId:k$1().optional().meta({examples:[b$1.Team.id],description:`Optional identifier of the team whose beneficiaries to list. When provided, only beneficiaries for that team are returned.`}),gateway:I$1([`AIRWALLEX`,`STRIPE`]).optional().meta({examples:[b$1.Beneficiary.gateway],description:`Filter beneficiaries by payment gateway provider (optional)`}),currency:R$1.optional().meta({examples:[b$1.Beneficiary.currency],description:`Filter beneficiaries by currency code (optional)`}),query:k$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:U$2(`beneficiaries`).optional(),cursor:k$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`}),kf=G$2(bf,`beneficiaries`),Af=F$1({beneficiary:bf}),jf=F$1({min:j$1().optional().meta({description:`Minimum number of time units for the transfer`}),max:j$1().optional().meta({description:`Maximum number of time units for the transfer`}),unit:k$1().optional().meta({examples:[`day`],description:`Time unit (e.g., 'day', 'hour')`})}).meta({description:`Expected transfer completion time range`}),Mf=F$1({min:j$1().optional().meta({description:`Minimum transfer amount`}),max:j$1().optional().meta({description:`Maximum transfer amount`})}).meta({description:`Transfer amount limits`}),Nf=F$1({label:k$1().meta({description:`Display label for the option`}),value:k$1().meta({description:`Value to submit when selected`}),flightTime:jf.optional().meta({description:`Expected transfer time for TRANSFER_METHOD options`}),transferLimit:Mf.optional().meta({description:`Transfer amount limits for TRANSFER_METHOD options`}),processingTime:k$1().optional().meta({description:`Human-readable processing time description`})}).meta({description:`A selectable option in a form field`}),Pf=F$1({type:I$1([`INPUT`,`SELECT`,`RADIO`,`TRANSFER_METHOD`,`DYNAMIC_SELECT`]).meta({examples:[`INPUT`],description:`The type of form input to render`}),label:k$1().optional().meta({description:`Display label for the field`}),placeholder:k$1().optional().meta({description:`Placeholder text for input fields`}),description:k$1().optional().meta({description:`Detailed description of the field`}),tip:k$1().optional().meta({description:`Tooltip information shown on hover`}),example:k$1().optional().meta({description:`Example value for the field`}),default:k$1().optional().meta({description:`Default value to pre-populate the field`}),key:k$1().optional().meta({description:`Unique key identifier for the field`}),options:P$1(Nf).optional().meta({description:`Available options for SELECT and RADIO field types`}),refresh:N$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`}),Ff=F$1({pattern:k$1().optional().meta({description:`Regex pattern for field validation`}),type:k$1().optional().meta({description:`Validation type identifier`})}).meta({description:`Validation rules for a form field`}),If=F$1({path:k$1().meta({examples:[`beneficiary.bank_details.account_number`],description:`Dot-notation path to the field in the beneficiary request object`}),enabled:N$1().meta({examples:[true],description:`Whether this field should be displayed`}),required:N$1().meta({examples:[true],description:`Whether this field is required for submission`}),field:Pf.optional().meta({description:`Field definition with type, label, and options`}),rule:Ff.optional().meta({description:`Validation rules for the field`})}).meta({description:`A single field in the beneficiary form schema with display and validation rules`}),Lf=F$1({bankCountryCode:k$1().regex(/^[A-Z]{2}$/).meta({examples:[`AU`],description:`Two-letter ISO 3166-1 alpha-2 country code for the bank location`}),accountCurrency:R$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code for the beneficiary account`}),entityType:I$1([`PERSONAL`,`COMPANY`]).meta({examples:[`COMPANY`],description:`Whether the beneficiary is an individual or a company`}),transferMethod:I$1([`LOCAL`,`SWIFT`]).optional().meta({examples:[`LOCAL`],description:`Transfer method: SWIFT for international wire transfers, LOCAL for domestic transfers`}),localClearingSystem:k$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:Cs(k$1(),k$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.`})}).meta({description:`Parameters to fetch the form schema for a beneficiary.`}),Rf=F$1({fields:P$1(If).meta({description:`Array of form fields with their display and validation configuration`}),selectedTransferMethod:I$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:k$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`}),zf=v$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(Lf.strict()).output(Rf),Bf=F$1({source:k$1().meta({examples:[`beneficiary.bank_details.account_number`],description:`Dot-notation path to the field that failed validation`}),code:k$1().meta({examples:[`001`],description:`Airwallex validation error code`}),message:k$1().meta({examples:[`This field is required`],description:`Human-readable error message`})}).meta({description:`Details about a single validation error for a field`}),Vf=Cf.meta({description:`Beneficiary request data to validate against Airwallex rules before creating`}),Hf=F$1({valid:N$1().meta({examples:[true],description:`Whether the beneficiary request passed all validation rules`}),errors:P$1(Bf).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`}),Uf=v$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(Vf.strict()).output(Hf),Wf=v$1.route({method:`GET`,path:`/events/{eventId}/admissions/{id}`,summary:`Get admission by ID`,tags:[`Admissions`]}).input(Al.strict()).output(Il),Gf=v$1.route({method:`POST`,path:`/events/{eventId}/admissions`,summary:`Create a new admission`,tags:[`Admissions`]}).input(Ol.strict()).output(Il),Kf=v$1.route({method:`PUT`,path:`/events/{eventId}/admissions/{id}`,summary:`Update an admission`,tags:[`Admissions`]}).input(Ll.strict()).output(Il);var qf={get:Wf,list:v$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(jl.strict()).output(Ml),create:Gf,update:Kf,remove:v$1.route({method:`DELETE`,path:`/events/{eventId}/admissions/{id}`,summary:`Delete an admission`,tags:[`Admissions`]}).input(kl.strict()).output(Il),quote:v$1.route({method:`POST`,path:`/events/{eventId}/admissions/quote`,summary:`Create an admission quote`,tags:[`Admissions`]}).input(Pl.strict()).output(Fl)},Jf={track:v$1.route({method:`POST`,path:`/analytics/track`,summary:`Track event`,tags:[`Analytics`]}).input(nf).output(Qd),page:v$1.route({method:`POST`,path:`/analytics/page`,summary:`Page event`,tags:[`Analytics`]}).input(nf).output(Qd),identify:v$1.route({method:`POST`,path:`/analytics/identify`,summary:`Identify event`,tags:[`Analytics`]}).input(nf).output(Qd),alias:v$1.route({method:`POST`,path:`/analytics/alias`,summary:`Alias event`,tags:[`Analytics`]}).input(nf).output(Qd),group:v$1.route({method:`POST`,path:`/analytics/group`,summary:`Group event`,tags:[`Analytics`]}).input(nf).output(Qd),screen:v$1.route({method:`POST`,path:`/analytics/screen`,summary:`Screen event`,tags:[`Analytics`]}).input(nf).output(Qd)};const Yf=v$1.route({method:`GET`,path:`/beneficiaries/{id}`,summary:`Get beneficiary by ID`,tags:[`Beneficiaries`]}).input(Ef.strict()).output(Af),Xf=v$1.route({method:`POST`,path:`/beneficiaries`,summary:`Create a new beneficiary`,tags:[`Beneficiaries`]}).input(Tf.strict()).output(Af);var Zf={get:Yf,list:v$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(Of.strict()).output(kf),create:Xf,remove:v$1.route({method:`DELETE`,path:`/beneficiaries/{id}`,summary:`Delete a beneficiary`,tags:[`Beneficiaries`]}).input(Df.strict()).output(Af),schema:zf,validate:Uf};const Qf=I$1([`AMOUNT`,`PERCENT`]),ep=I$1([`TEAM`,`PROMOTER`,`EVENTS`,`SECTIONS`,`ADMISSIONS`]),np=F$1({id:k$1().readonly().meta({examples:[b$1.Coupon.id],description:`A unique identifier for this coupon.`}),couponId:k$1().optional().readonly().meta({examples:[b$1.Coupon.couponId],description:`Duplicate of id field for GSI queries.`}),createdAt:D$1().readonly().meta({examples:[b$1.Coupon.createdAt],description:`Timestamp in ISO 8601 format when this coupon was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.Coupon.updatedAt],description:`Timestamp in ISO 8601 format when this coupon was last updated.`}),name:k$1().meta({examples:[b$1.Coupon.name],description:`Internal label for the coupon, visible to event organisers.`}),active:N$1().optional().meta({examples:[b$1.Coupon.active],description:`Whether this coupon is currently active.`}),kind:Qf.meta({examples:[`PERCENT`],description:`Type of discount this coupon gives: a fixed amount or a percentage.`}),filter:ep.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:R$1.optional().meta({examples:[b$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:j$1().min(0).meta({examples:[b$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:j$1().meta({examples:[b$1.Coupon.limit],description:`Maximum number of times the coupon can be redeemed across all customers.`}),uses:j$1().optional().meta({examples:[b$1.Coupon.uses],description:`Number of times this coupon has been redeemed so far.`}),promoters:P$1(F$1({id:k$1().meta({description:`Identifier of a promoter this coupon applies to.`}),name:k$1().meta({description:`Name of a promoter this coupon applies to.`}),slug:k$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:P$1(F$1({id:k$1().meta({description:`Identifier of an event this coupon applies to.`}),name:k$1().meta({description:`Name of an event this coupon applies to.`}),slug:k$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:P$1(F$1({id:k$1().meta({description:`Identifier of a section this coupon applies to.`}),name:k$1().meta({description:`Name of a section this coupon applies to.`}),eventId:k$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:P$1(F$1({id:k$1().meta({description:`Identifier of an admission this coupon applies to.`}),name:k$1().meta({description:`Name of an admission this coupon applies to.`}),eventId:k$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:H$2.meta({examples:[b$1.Coupon.saleStartsAt],description:`Wall clock time when this coupon becomes valid (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)`}),saleEndsAt:H$2.optional().meta({examples:[b$1.Coupon.saleEndsAt],description:`Wall clock time when this coupon expires (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)`}),teamId:k$1().meta({description:`Team that created this coupon.`})}).meta({description:`coupon`}),rp=F$1({id:k$1().readonly().meta({examples:[b$1.CouponCode.id],description:`A unique identifier for this coupon code.`}),createdAt:D$1().readonly().meta({examples:[b$1.CouponCode.createdAt],description:`Timestamp in ISO 8601 format when this coupon code was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.CouponCode.updatedAt],description:`Timestamp in ISO 8601 format when this coupon code was last updated.`}),name:k$1().meta({examples:[b$1.CouponCode.name],description:`The code string that customers enter to redeem the coupon.`}),active:N$1().meta({examples:[b$1.CouponCode.active],description:`Whether this coupon code is currently enabled for use.`}),couponId:k$1().meta({examples:[b$1.Coupon.id],description:`Identifier of the coupon to which this code belongs.`}),teamId:k$1().meta({description:`Team that created this coupon code.`}),uses:j$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`}),ip=rp.pick({id:true});F$1({couponId:k$1().meta({examples:[b$1.Coupon.id]})});F$1({name:k$1(),couponId:k$1().optional().meta({examples:[b$1.Coupon.id]})});const sp=rp.omit({id:true,createdAt:true,updatedAt:true,uses:true}),cp=rp.omit({createdAt:true,updatedAt:true,couponId:true,teamId:true,uses:true}).partial().extend({id:rp.shape.id}),lp=ip,up=F$1({couponId:k$1().optional().meta({examples:[b$1.Coupon.id],description:`Optional filter to retrieve coupon codes for a specific coupon`}),teamId:k$1().optional().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`Optional filter to retrieve coupon codes created by a specific team`}),active:Qs().optional().meta({examples:[true],description:`Optional filter to retrieve only active or inactive coupon codes`}),query:k$1().optional().meta({examples:[`SUMMER`],description:`Optional search query to filter coupon codes by name. When provided, search-backed pagination is used.`}),limit:U$2(`coupon codes`).optional(),cursor:k$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`}),dp=G$2(rp,`codes`),fp=F$1({couponCode:rp}),pp=np.omit({id:true,createdAt:true,updatedAt:true}).meta({description:`Schema for creating a new coupon without system-generated fields`}),mp=np.pick({id:true}).meta({description:`Schema for retrieving a single coupon by ID`}),hp=mp.meta({description:`Schema for deleting a coupon by ID with optional soft-delete filtering`}),gp=F$1({teamId:k$1().meta({examples:[b$1.Team.id],description:`Unique identifier of the team whose coupons to retrieve`}),active:Qs().optional().meta({examples:[true],description:`Optional filter to retrieve only active or inactive coupons`}),query:k$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:U$2(`coupons`).optional(),cursor:k$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`}),_p=G$2(np,`coupons`),vp=F$1({coupon:np}),yp=np.omit({createdAt:true,updatedAt:true,teamId:true}).partial().extend({id:np.shape.id.meta({examples:[b$1.Coupon.id],description:`Unique identifier of the coupon to update`}),saleEndsAt:H$2.nullable().optional().meta({examples:[b$1.Coupon.saleEndsAt],description:`Expiry time. Pass null to remove end date; omit to leave unchanged.`}),currency:R$1.nullable().optional().meta({examples:[`AUD`,`USD`,`GBP`],description:`Three-letter ISO 4217 currency code. Pass null to clear; omit to leave unchanged.`})}).meta({description:`Schema for updating an existing coupon.`}),bp=v$1.route({method:`GET`,path:`/coupon-codes/{id}`,summary:`Get coupon code by ID`,tags:[`Coupon Codes`]}).input(ip.strict()).output(fp),xp=v$1.route({method:`POST`,path:`/coupon-codes`,summary:`Create a new coupon code`,tags:[`Coupon Codes`]}).input(sp.strict()).output(fp),Sp=v$1.route({method:`PUT`,path:`/coupon-codes/{id}`,summary:`Update a coupon code`,tags:[`Coupon Codes`]}).input(cp.strict()).output(fp);var Cp={get:bp,list:v$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(up.strict()).output(dp),create:xp,update:Sp,remove:v$1.route({method:`DELETE`,path:`/coupon-codes/{id}`,summary:`Delete a coupon code`,tags:[`Coupon Codes`]}).input(lp.strict()).output(fp)};const wp=v$1.route({method:`GET`,path:`/coupons/{id}`,summary:`Get coupon by ID`,tags:[`Coupons`]}).input(mp.strict()).output(vp),Tp=v$1.route({method:`POST`,path:`/coupons`,summary:`Create a new coupon`,tags:[`Coupons`]}).input(pp.strict()).output(vp),Ep=v$1.route({method:`PUT`,path:`/coupons/{id}`,summary:`Update a coupon`,tags:[`Coupons`]}).input(yp.strict()).output(vp);var Dp={get:wp,list:v$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(gp.strict()).output(_p),create:Tp,update:Ep,remove:v$1.route({method:`DELETE`,path:`/coupons/{id}`,summary:`Delete a coupon`,tags:[`Coupons`]}).input(hp.strict()).output(vp),code:Cp},Op={suggestTags:v$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(Rl.strict()).output(zl)};const kp=F$1({eventId:B$1.meta({description:`Event to like`})}).meta({description:`Request to like an event`}),Ap=F$1({limit:U$2(`likes`),cursor:k$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.`}),jp=F$1({tenantId:k$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`}),userId:uc.readonly().meta({description:`User who liked the event`}),eventId:B$1.meta({description:`Event the user liked`}),createdAt:D$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.`}),Mp=G$2(jp,`likes`).meta({description:`Paginated list of event likes. Use cursor-based pagination to navigate through results.`}),Np=F$1({eventId:B$1.meta({description:`Event to remove like from`})}).meta({description:`Request to remove the current user's like from an event`}),Pp=F$1({like:jp});var Fp={add:v$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(kp).output(Pp),remove:v$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(Np).output(ds()),list:v$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(Ap).output(Mp)};const Ip=F$1({id:lc.readonly().meta({examples:[b$1.Location.id],description:`Location identifier`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID for this location`}),createdAt:D$1().meta({examples:[b$1.Location.createdAt],description:`Timestamp in ISO 8601 format when the location was created`}),updatedAt:D$1().meta({examples:[b$1.Location.updatedAt],description:`Timestamp in ISO 8601 format when the location was last updated`}),name:k$1().meta({examples:[b$1.Location.name],description:`Location name`}),address:k$1().meta({examples:[b$1.Location.address],description:`Formatted address`}),city:k$1().optional().meta({examples:[b$1.Location.city],description:`City name`}),state:k$1().optional().meta({examples:[b$1.Location.state],description:`State or region`}),postcode:k$1().optional().meta({examples:[b$1.Location.postcode],description:`Postal code`}),country:k$1().meta({examples:[b$1.Location.country],description:`Country name`}),latitude:j$1().min(-90).max(90).meta({examples:[b$1.Location.latitude],description:`Latitude coordinate`}),longitude:j$1().min(-180).max(180).meta({examples:[b$1.Location.longitude],description:`Longitude coordinate`}),timeZone:k$1().min(1).regex(/^[A-Za-z0-9_+-]+(\/[A-Za-z0-9_+-]+)*$/,{message:`Must be a valid IANA timezone identifier format`}).meta({examples:[b$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:P$1(k$1()).optional().meta({examples:[[`establishment`,`point_of_interest`,`stadium`]],description:`Google Place types indicating the category and nature of this location`}),description:k$1().optional().meta({examples:[`Historic outdoor amphitheater known for summer concerts`],description:`AI-generated description of the place, when available`}),image:V$1.optional().meta({description:`Primary location photo`}),venueId:cc.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`}),Lp=Ip.omit({venueId:true}).extend({venue:F$1({id:cc.meta({description:`Venue identifier`}),name:k$1().meta({description:`Venue name`}),slug:k$1().meta({description:`URL-friendly venue slug`}),teamId:k$1().meta({description:`Team that owns this venue`}),approval:$s.meta({description:`Venue approval status`}),image:V$1.optional().meta({description:`Venue image`}),description:k$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.`})}),Rp=F$1({id:pc.readonly().meta({examples:[b$1.Promoter.id],description:`Unique identifier for the promoter organization`}),createdAt:D$1().readonly().meta({examples:[b$1.Promoter.createdAt],description:`Timestamp in ISO 8601 format when the promoter was created`}),updatedAt:D$1().readonly().meta({examples:[b$1.Promoter.updatedAt],description:`Timestamp in ISO 8601 format when the promoter was last updated`}),name:k$1().min(3).max(30).meta({examples:[b$1.Promoter.name],description:`Display name of the promoter organization. Must be between 3 and 30 characters`}),slug:k$1().min(3).max(30).meta({examples:[b$1.Promoter.slug],description:`URL-friendly slug for the promoter organization. Must be unique and between 3 and 30 characters`}),teamId:sc.meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`ID of the team that owns this promoter. Establishes team-based organization and permissions.`}),description:k$1().meta({examples:[b$1.Promoter.description],description:`Detailed description of the promoter organization and their events`}),approval:$s.meta({examples:[b$1.Promoter.approval],description:`Approval status of the promoter. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate`}),image:V$1.optional().meta({description:`Optional promotional image for the promoter organization with dimensions and alt text`}),location:Lp.meta({description:`Primary location details for the promoter including address, coordinates, and timezone`}),geohash:k$1().meta({examples:[b$1.Promoter.geohash],description:`Geohash encoding of the promoter's location for efficient spatial queries`}),tracking:F$1({fbId:k$1().optional().meta({examples:[b$1.Promoter.tracking.fbId],description:`Facebook pixel ID for tracking conversions and analytics`}),gtmId:k$1().optional().meta({examples:[b$1.Promoter.tracking.gtmId],description:`Google Tag Manager container ID for web analytics`}),tikTokId:k$1().optional().meta({examples:[b$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:Mc}).meta({description:`Promoter organization with location and approval status`}),zp=F$1({id:k$1().readonly().meta({examples:[b$1.Section.id],description:`Unique identifier for the section`}),createdAt:D$1().readonly().meta({examples:[b$1.Section.createdAt],description:`Timestamp when the section was created in ISO 8601 format`}),updatedAt:D$1().readonly().meta({examples:[b$1.Section.updatedAt],description:`Timestamp when the section was last updated in ISO 8601 format`}),name:k$1().meta({examples:[b$1.Section.name],description:`Display name of the section (e.g., 'VIP Area', 'General Admission')`}),capacity:Oc().prefault(-1).meta({examples:[b$1.Section.capacity],description:`Maximum number of attendees for this section. Use -1 for unlimited capacity`}),limit:kc().prefault(-1).meta({examples:[b$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:j$1().min(-1).readonly().meta({examples:[b$1.Section.available],description:`Number of tickets currently available for purchase in this section. Use -1 when capacity is unlimited`}),sold:j$1().min(0).readonly().meta({examples:[b$1.Section.sold],description:`Number of tickets sold for this section`}),reserved:j$1().readonly().meta({examples:[b$1.Section.reserved],description:`Number of tickets currently reserved (in pending orders) for this section`}),order:j$1().min(0).meta({examples:[b$1.Section.order],description:`Display order of the section. Lower numbers appear first in listings`}),location:Ip.meta({description:`Physical location details for the section`}),passcode:k$1().optional().meta({examples:[`VIPACCESS`],description:`Code required to reveal all admissions within this section. Case-insensitive comparison`}),teamId:k$1().meta({description:`Team that owns this section. Denormalized for efficient queries.`}),promoterId:k$1().meta({examples:[b$1.Section.promoterId],description:`Unique identifier of the promoter who owns this section`}),eventId:k$1().meta({examples:[b$1.Section.eventId],description:`Unique identifier of the event this section belongs to`}),eventSlug:k$1().meta({examples:[b$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`}),Bp=I$1([`UPCOMING`,`ENDED`]),Hp=I$1([`PUBLIC`,`PRIVATE`,`SCHEDULED`,`PASSCODE`,`CANCELLED`]),Wp=F$1({id:B$1.readonly().meta({examples:[b$1.Event.id],description:`A unique identifier for this event`}),createdAt:D$1().readonly().meta({examples:[b$1.Event.createdAt],description:`Timestamp in ISO 8601 format when this event was created`}),updatedAt:D$1().readonly().meta({examples:[b$1.Event.updatedAt],description:`Timestamp in ISO 8601 format when this event was last updated`}),name:k$1().meta({examples:[b$1.Event.name],description:`The title of the event shown to attendees`}),slug:k$1().meta({examples:[b$1.Event.slug],description:`URL-friendly identifier for the event`}),description:k$1().meta({examples:[b$1.Event.description],description:`Detailed description of the event`}),approval:$s.meta({examples:[`APPROVED`],description:`Approval status of the event`}),status:Bp.meta({examples:[`UPCOMING`,`ENDED`],description:`Current stage of the event lifecycle`}),visibility:Hp.meta({examples:[`PUBLIC`],description:`Who can see the event`}),currency:R$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code used for ticket prices`}),url:Lo().optional().meta({examples:[`https://example.com`],description:`External URL for the event website or ticket page`}),entryStartsAt:H$2.meta({examples:[b$1.Event.entryStartsAt],description:`Wall clock time when event entry begins (no timezone, displays same everywhere)`}),entryEndsAt:H$2.meta({examples:[b$1.Event.entryEndsAt],description:`Wall clock time when event entry ends (no timezone, displays same everywhere)`}),publishAt:H$2.meta({examples:[b$1.Event.publishAt],description:`Wall clock time when the event becomes publicly visible (no timezone)`}),images:F$1({mobile:V$1.meta({description:`Mobile-optimized image for the event`}),desktop:V$1.meta({description:`Desktop-optimized image for the event`})}),geohash:k$1().meta({examples:[b$1.Event.geohash],description:`Geohash representing the event location`}),location:Lp.meta({description:`Structured location details for the event`}),teamId:sc.meta({description:`Team that owns this event. Denormalized for efficient queries.`}),promoterId:pc.meta({examples:[b$1.Promoter.id],description:`Promoter organizing the event. Must belong to the team.`}),metadata:Mc,genres:P$1(k$1()).optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:P$1(k$1()).optional().meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),featured:N$1().optional().meta({description:`Whether this event is an editorial pick`,examples:[true]}),likes:j$1().int().min(0).optional().meta({description:`Number of users who liked this event`,examples:[42]})}).meta({description:`event`}),Gp=Rp.pick({id:true,name:true,slug:true,description:true,image:true}),Kp=Wp.extend({sections:P$1(zp),admissions:P$1(W$2),promoter:Gp.optional().meta({description:`Public summary of the promoter organizing this event. Included on event detail responses only.`}),liked:N$1().optional().meta({description:`Whether the current user has liked this event`,examples:[true,false]})}),qp=F$1({event:Kp}),Jp=Wp.omit({id:true,teamId:true,createdAt:true,updatedAt:true,status:true,approval:true,geohash:true,location:true,featured:true,likes:true}).extend({slug:k$1().min(3).max(100).optional().meta({examples:[b$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:k$1().optional().meta({description:`Passcode for protected access to the event`}),locationId:lc.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location. Either locationId or googlePlaceId must be provided.`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided.`}),genres:ac.optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:rc.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`}),Yp=F$1({key:k$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[b$1.Event.id,b$1.Event.slug]})}),Xp=F$1({key:k$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[b$1.Event.id,b$1.Event.slug]}),featured:N$1().meta({description:`Whether the event should be featured (editorial pick)`,examples:[true,false]})}),Zp=F$1({key:k$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[b$1.Event.id,b$1.Event.slug]}),passcode:k$1().optional().meta({description:`Passcode for accessing protected events`}),teamId:k$1().optional().meta({description:`Optional team scope. When provided, event must belong to this team.`})}),Qp=F$1({sold:j$1().min(0).meta({description:`Number of tickets sold (net of refunds)`}),reserved:j$1().min(0).meta({description:`Number of tickets reserved`}),available:j$1().min(-1).meta({description:`Number of tickets available (-1 for unlimited)`}),capacity:j$1().min(-1).meta({description:`Total capacity (-1 for unlimited)`})}),$p=F$1({status:I$1([`UPCOMING`,`ENDED`]).optional().meta({examples:[`UPCOMING`],description:`Filter events by their current lifecycle status`}),approval:$s.optional().meta({examples:[`APPROVED`],description:`Filter events by their approval status`}),visibility:I$1([`PUBLIC`,`PRIVATE`,`SCHEDULED`,`PASSCODE`]).optional().meta({examples:[`PUBLIC`],description:`Filter events by their visibility setting`}),promoterId:k$1().optional().meta({examples:[b$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:k$1().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:k$1().optional().meta({description:`Filter events to only those at a specific venue. If not provided, returns events at all venues`}),limit:L$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:k$1().optional().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Cursor token for pagination. Provide the cursor from the previous response to continue fetching results`}),query:Zs().optional().meta({examples:[`Test Event`],description:`Search term to filter events by name, description, or location. Triggers full‑text search when provided`}),latitude:L$1().min(-90).max(90).optional().meta({examples:[b$1.Event.location.latitude],description:`Latitude coordinate for geographic search. Provide with longitude (and optional radius)`}),longitude:L$1().min(-180).max(180).optional().meta({examples:[b$1.Event.location.longitude],description:`Longitude coordinate for geographic search. Provide with latitude (and optional radius)`}),radius:L$1().optional().meta({examples:[20],description:`Search radius in kilometers from the provided coordinates. Defaults to 20km`}),country:k$1().optional().meta({examples:[`australia`],description:`Filter by country region slug. Matches events where location.country equals the region name`}),state:k$1().optional().meta({examples:[`nsw`],description:`Filter by state/province region slug. Matches events where location.state equals the region name`}),city:k$1().optional().meta({examples:[`sydney`],description:`Filter by city region slug. Matches events where location.city equals the region name`}),from:k$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:k$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`}),genres:P$1(ic).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:P$1(nc).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:N$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`}),em=$p,tm=Dl({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 base price`}),nm=G$2(Wp.extend({inventory:Qp.optional(),liked:N$1().optional().meta({description:`Whether the current user has liked this event`,examples:[true,false]}),price:tm.nullable().meta({description:`Cheapest publicly purchasable admission price, or null when no public admission is currently available`})}),`events`),rm=F$1({event:Wp});I$1([`ONLINE`,`DOOR`,`SALE_ENDED`,`SOLD_OUT`]);const om=Wp.omit({createdAt:true,updatedAt:true,promoterId:true,geohash:true,status:true,location:true,featured:true,likes:true}).partial().extend({key:k$1().meta({examples:[b$1.Event.id,b$1.Event.slug],description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`}),passcode:k$1().nullable().optional().meta({description:`Passcode for protected access. Pass null to clear; omit to leave unchanged.`}),url:Lo().nullable().optional().meta({examples:[`https://example.com/events/summer-festival-2025`],description:`External event URL. Pass null to clear; omit to leave unchanged.`}),locationId:lc.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`}),genres:ac.optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:rc.meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),notify:N$1().optional().meta({description:`Whether attendees should be notified about this event update.`,examples:[true]})}).meta({description:`Schema for updating an existing event.`}),sm=od.extend({limit:L$1().min(1).max(100).optional().default(10)}),cm=id.extend({limit:L$1().min(1).max(100).optional().default(10)}),lm=cd.extend({limit:L$1().min(1).max(100).optional().default(10)}),um=fd.extend({limit:L$1().min(1).max(100).optional().default(10)}),dm=md.extend({limit:L$1().min(1).max(100).optional().default(10)});var fm={summary:v$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(Ku).output(qu),tickets:v$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(Ju).output(Yu),funnel:v$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(Xu).output(Zu),campaigns:v$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(sm).output(sd),coupons:v$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(cm).output(ad),mediums:v$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(lm).output(ld),devices:v$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(ud).output(dd),locations:v$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(um).output(pd),traffic:v$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(dm).output(hd),attendance:v$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(gd).output(bd)};const pm=v$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(Zp).output(qp),mm=v$1.route({method:`POST`,path:`/events`,summary:`Create a new event`,tags:[`Events`]}).input(Jp.strict()).output(rm),hm=v$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(om.strict()).output(rm);var gm={get:pm,list:v$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(em).output(nm),create:mm,update:hm,remove:v$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(Yp.strict()).output(rm),feature:v$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(Xp.strict()).output(rm),like:Fp,performance:fm,tags:Op.suggestTags};const _m=F$1({id:Cc.readonly().meta({description:`Unique identifier for the event collaborator`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the collaborator was added`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the collaborator was last updated`}),eventId:B$1.meta({description:`Event this collaboration applies to`}),promoterId:pc.meta({description:`Promoter collaborating on the event`}),acceptedBy:uc.meta({description:`User ID who accepted the invitation to collaborate`}),promoter:F$1({id:pc.meta({description:`Unique identifier of the promoter`}),name:k$1().meta({description:`Name of the promoter`}),teamId:sc.meta({description:`Team ID of the promoter`})}).optional().meta({description:`Populated promoter details. Only included when explicitly requested.`}),permissions:al$1.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:k$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.`}),vm=_m.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.`}),ym=F$1({id:Cc.readonly().meta({description:`Unique identifier for the event collaboration invitation`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was last updated`}),eventId:B$1.meta({description:`Event this invitation applies to`}),promoterId:pc.meta({description:`Promoter being invited to collaborate on the event.`}),invitedByPromoterId:pc.meta({description:`Promoter who sent this invitation (event owner or collaborator with permission).`}),permissions:al$1.meta({description:`Permissions the promoter will receive upon accepting the invitation.`,examples:[[],[`event.read`,`event.write`],[`order.read`],[`ticket.scan`],[`*`]]}),token:k$1().readonly().meta({description:`Secure token for invite acceptance. Required to accept the invitation.`}),invitedBy:uc.meta({description:`User ID who sent the invitation`}),expiresAt:j$1().int().positive().meta({description:`Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days.`}),tenantId:k$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.`}),bm=ym.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.`}),xm=F$1({eventId:B$1.meta({description:`Event ID that the collaboration belongs to`}),id:Cc.meta({description:`Event team access grant ID to retrieve`})}),Sm=F$1({invite:ym}),Cm=F$1({eventId:k$1().meta({description:`Event ID to list collaborators for`}),accessPromoterId:k$1().optional().meta({description:`DEPRECATED: Use 'promoterId' instead. Filter by collaborating promoter ID (what events can this promoter access). Maintained for backward compatibility.`}),ownerPromoterId:k$1().optional().meta({description:`DEPRECATED: No longer used. Maintained for backward compatibility only.`}),limit:U$2(`event collaborators`),cursor:k$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.`}),wm=G$2(_m,`grants`),Tm=F$1({collaborator:_m});var Em={get:v$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(xm.strict()).output(Tm),list:v$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(Cm.strict()).output(wm),create:v$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(bm.strict()).output(Sm),accept:v$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(vm.strict()).output(Tm),remove:v$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(xm.strict()).output(ds())};const Dm=I$1([`default`,`custom`]),Om=I$1([`active`,`pending`,`pending_certificate`,`pending_dns_validation`,`pending_cloudfront`,`cloudfront_deploying`,`pending_activation`,`failed`]),km=I$1([`pending_validation`,`issued`,`failed`,`expired`]),Am=F$1({domain:k$1(),name:k$1(),value:k$1(),type:k$1(),purpose:I$1([`ssl_validation`,`traffic_routing`]).optional()}),jm=F$1({domain:k$1(),type:Dm,status:Om,isPrimary:N$1(),teamId:k$1(),tenantId:k$1(),certificateArn:k$1().optional(),certificateStatus:km.optional(),distributionId:k$1().optional(),distributionDomain:k$1().optional(),dnsRecords:P$1(Am).optional(),dnsValidationRecords:P$1(Am).optional(),errorMessage:k$1().optional(),verifiedAt:D$1().optional(),createdAt:D$1(),updatedAt:D$1()}),Mm=F$1({host:k$1()}),Nm=ys(`type`,[F$1({type:Es(`resolved`),data:F$1({teamId:k$1(),tenantId:k$1()})}),F$1({type:Es(`pending`),data:F$1({status:Om.exclude([`active`,`pending`]),errorMessage:k$1().optional()})}),F$1({type:Es(`not_found`)})]),Pm=F$1({file:as().describe(`Image file to upload (max 10MB)`),folder:I$1([`avatars`,`events`,`teams`,`promoters`,`venues`]).describe(`Folder to upload to`),width:L$1().int().positive().optional().describe(`Target width in pixels`),height:L$1().int().positive().optional().describe(`Target height in pixels`)}),Fm=V$1,Im=F$1({language:k$1().trim().max(80).optional(),platform:k$1().trim().max(120).optional(),timezone:k$1().trim().max(120).optional(),userAgent:k$1().trim().max(800).optional(),viewport:F$1({width:j$1().int().positive().max(1e4),height:j$1().int().positive().max(1e4),devicePixelRatio:j$1().positive().max(10).optional()}).optional()}),Lm=F$1({key:k$1().trim().min(1),message:k$1().trim().min(10).max(4e3),pageUrl:Lo().max(2e3),pageTitle:k$1().trim().max(300).optional(),browser:Im.optional()}),Rm=F$1({ok:Es(true)}),zm=v$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 uploaded as-is without compression. Returns the uploaded image URL and metadata.`,tags:[`Internal`]}).input(Pm.strict()).output(Fm);var Bm={resolveDomain:v$1.route({method:`GET`,path:`/internal/domains/resolve`,summary:`Resolve host to team and tenant context`,tags:[`Internal`]}).input(Mm.strict()).output(Nm),shareFeedback:v$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:zm};const Vm=F$1({key:k$1().min(1).meta({description:`Location key - either a location ID (loc_xxx format) or provider-specific identifier (e.g., Google Place ID)`,examples:[b$1.Location.id,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}),Hm=F$1({query:k$1().min(1).meta({examples:[`sydney opera`],description:`Search query for location search`}),latitude:L$1().min(-90).max(90).optional().meta({examples:[b$1.Location.latitude],description:`User's latitude for proximity-based results (optional for better relevance)`}),longitude:L$1().min(-180).max(180).optional().meta({examples:[b$1.Location.longitude],description:`User's longitude for proximity-based results (optional for better relevance)`}),types:P$1(k$1()).optional().meta({examples:[[`establishment`]],description:`Filter results by Google Place types (e.g., 'establishment', 'night_club', 'bar')`})}).meta({description:`Parameters for searching locations`}),Um=F$1({googlePlaceId:k$1().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID for this location`}),name:k$1().meta({examples:[b$1.Location.name],description:`Primary name of the location`}),description:k$1().meta({examples:[b$1.Location.address],description:`Full formatted address`}),venue:F$1({id:cc.meta({examples:[b$1.Venue.id],description:`Venue ID if this location is a managed venue`}),name:k$1().meta({examples:[b$1.Venue.name],description:`Venue name`}),teamId:k$1().meta({description:`Team that manages this venue`}),image:V$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`}),Wm=F$1({predictions:P$1(Um).meta({description:`Array of location predictions`})}).meta({description:`Response containing location search results`}),Gm=F$1({location:Lp});var Km={list:v$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(Hm.strict()).output(Wm),get:v$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(Vm.strict()).output(Gm)};const qm=F$1({name:k$1().meta({examples:[`tenant-web`,`team-web`,`api`,`partner`],description:`Free-form channel identifier describing where the order originated.`}),referrer:k$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:k$1().optional().meta({examples:[`instagram`],description:`Optional UTM source captured from the originating URL.`}),utmMedium:k$1().optional().meta({examples:[`social`],description:`Optional UTM medium captured from the originating URL.`}),utmCampaign:k$1().optional().meta({examples:[`summer-launch`],description:`Optional UTM campaign captured from the originating URL.`}),deviceType:I$1([`MOBILE`,`TABLET`,`DESKTOP`]).optional().meta({examples:[`MOBILE`],description:`Optional analytics device classification captured at order creation.`}),country:k$1().optional().meta({examples:[`Australia`],description:`Optional viewer country captured at order creation for analytics attribution.`}),region:k$1().optional().meta({examples:[`Australia - New South Wales`],description:`Optional viewer region captured at order creation for analytics attribution.`})}),Jm=F$1({id:k$1().meta({examples:[b$1.CouponCode.id],description:`Unique identifier of the coupon code used in the order`}),name:k$1().meta({examples:[b$1.CouponCode.name],description:`The coupon code string that was entered by the customer`}),couponId:k$1().meta({examples:[b$1.CouponCode.couponId],description:`Unique identifier of the parent coupon configuration`})}),Ym=F$1({id:k$1().meta({examples:[b$1.Customer.id],description:`Unique identifier of the customer who placed the order`}),firstName:k$1().meta({examples:[b$1.Customer.firstName],description:`First name of the customer`}),lastName:k$1().meta({examples:[b$1.Customer.lastName],description:`Last name of the customer`}),email:No().meta({examples:[b$1.Customer.email],description:`Email address of the customer`}),phone:k$1().meta({examples:[b$1.Customer.phone],description:`Customer phone number in E.164 format for SMS delivery`}).optional()}),Xm=F$1({id:k$1().meta({examples:[b$1.Event.id],description:`Unique identifier of the event associated with the order`}),name:k$1().meta({examples:[b$1.Event.name],description:`Display name of the event`}),slug:k$1().meta({examples:[b$1.Event.slug],description:`URL-friendly slug of the event`}),location:k$1().meta({examples:[b$1.Event.location.name],description:`Name of the venue or location where the event takes place`}).optional()}),Zm=I$1([`GATEWAY`,`SHIPPING`,`SMS_DELIVERY`]).meta({description:`Type of fee applied to an order`}),Qm=F$1({id:k$1().meta({examples:[b$1.OrderFee.id],description:`Unique identifier for this order fee`}),createdAt:D$1().readonly().meta({examples:[b$1.OrderFee.createdAt],description:`Timestamp in ISO 8601 format when this fee was created`}),reason:k$1().meta({examples:[b$1.OrderFee.reason],description:`Description explaining why this fee was applied to the order`}),amount:j$1().finite(`Amount must be a valid number`).meta({examples:[b$1.OrderFee.amount],description:`Fee amount in cents (positive value indicates charge to customer, negative value indicates credit or discount)`}),currency:R$1.meta({examples:[b$1.OrderFee.currency],description:`Currency code in ISO 4217 format`}),requestId:k$1().meta({examples:[b$1.OrderFee.requestId],description:`External payment processor request identifier for tracking this fee`}),kind:Zm.optional().meta({examples:[`GATEWAY`],description:`Type of fee for categorization and reporting`})});function $m(){return {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}}}const eh=e=>({id:e.id,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:e.name,slug:e.slug,description:e.description,approval:`APPROVED`,status:`UPCOMING`,visibility:`PUBLIC`,currency:`AUD`,entryStartsAt:y$1(Tt(new Date,1)),entryEndsAt:y$1(Tt(new Date,2)),publishAt:y$1(new Date),images:$m(),geohash:`r3gx1`,location:e.location,teamId:e.teamId,promoterId:e.promoterId,tenantId:e.tenantId}),th=e=>({id:e.id,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),...e.sectionId?{sectionId:e.sectionId}:{},...e.teamId?{teamId:e.teamId}:{},promoterId:e.promoterId,eventId:e.eventId,eventSlug:e.eventSlug,name:e.name,capacity:100,limit:-1,available:100,entryStartsAt:y$1(Tt(new Date,1)),entryEndsAt:y$1(Tt(new Date,2)),saleStartsAt:y$1(new Date),saleEndsAt:y$1(Tt(new Date,2)),price:{base:1e3,booking:200,currency:`AUD`},tenantId:e.tenantId}),nh=e=>({id:`tkt_01jps5cgsh51kzg7534pzap7gk`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`REDEEMED`,scans:[],token:e.token,attendee:{email:Z$1.Customer.email,firstName:Z$1.Customer.firstName,lastName:Z$1.Customer.lastName},event:{id:Z$1.WrongEvent.id,name:Z$1.WrongEvent.name,slug:Z$1.WrongEvent.slug,location:Z$1.WrongEvent.location,entryStartsAt:Z$1.WrongEvent.entryStartsAt,entryEndsAt:Z$1.WrongEvent.entryEndsAt,images:Z$1.WrongEvent.images},admission:{id:Z$1.WrongAdmission.id,name:Z$1.WrongAdmission.name,price:Z$1.WrongAdmission.price,entryStartsAt:Z$1.WrongAdmission.entryStartsAt,entryEndsAt:Z$1.WrongAdmission.entryEndsAt},eventId:Z$1.WrongEvent.id,customerId:Z$1.Customer.id,orderId:Z$1.WrongOrder.id,orderItemId:Z$1.WrongOrderItem.id,admissionId:Z$1.WrongOrderItem.admissionId,...e.teamId?{teamId:e.teamId}:{},promoterId:Z$1.WrongPromoter.id,promoterSlug:Z$1.WrongPromoter.slug,tenantId:Z$1.Tenant.id}),rh=e=>{let t=new Date(2020,1,1);return {...b$1.Event,id:e.id,status:e.status,createdAt:t.toISOString(),updatedAt:t.toISOString(),publishAt:y$1(t),entryStartsAt:y$1(t),entryEndsAt:y$1(new Date(2020,1,2)),slug:e.slug,name:e.name}};let Z$1;(function(e){let{Tenant:t,Team:n,TeamMember:r,TeamInvite:i,Venue:a,User:o,Session:s,EmailVerification:c,PasswordReset:l,Promoter:u,PromoterMember:d,CurrentSession:f,Event:p,DetailedEvent:m,Location:ee,CarouselLocation:te,Section:ne,Admission:h,Beneficiary:re,AirwallexBeneficiary:ie,Coupon:ae,CouponCode:oe,AmountCoupon:se,AmountCouponCode:ce,Customer:le,Payout:ue,Order:de,OrderItem:fe,OrderFee:pe,Ticket:me}=b$1;e.Tenant=t,e.Team=n,e.TeamMember=r,e.TeamInvite=i,e.Venue=a,e.User=o,e.Session=s,e.EmailVerification=c,e.PasswordReset=l,e.Promoter=u,e.PromoterMember=d,e.CurrentSession=f,e.Event=p,e.DetailedEvent=m,e.Location=ee,e.CarouselLocation=te,e.Section=ne,e.Admission=h,e.Beneficiary=re,e.AirwallexBeneficiary=ie,e.Coupon=ae,e.CouponCode=oe,e.AmountCoupon=se,e.AmountCouponCode=ce,e.Customer=le,e.Payout=ue,e.Order=de,e.OrderItem=fe,e.OrderFee=pe,e.Ticket=me,e.JayUser={...o,id:`usr_01k5hbpkfje048zccqmqfhjpep`,email:`j@1f.io`,firstName:`Jay`,lastName:`McMullen`};let he=e.TestUser={id:`usr_01k5wcss3gf24advd4av43s96m`,email:`test@e2e.session.services`,firstName:`Test`,lastName:`User`,createdAt:`2025-09-23T22:58:37.808Z`,updatedAt:`2025-09-23T22:58:37.808Z`,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`};e.TestPromoterMember={id:`mbr_01k6s0t3f3f6cak0066dy5n1dm`,createdAt:`2025-10-05T01:47:04.035Z`,updatedAt:`2025-10-05T01:47:04.035Z`,teamId:n.id,userId:he.id,user:he,permissions:[`*`],isOwner:false,tenantId:t.id},e.SystemUser={...o,id:`usr_01jps5cgsgn1ee4txxn0fz81f2`,email:`system@session.services`,firstName:`Session`,lastName:`Services`},e.DeletedAdmission={...h,id:`adm_01jps5cgsg63gr2s1g2d87cqfy`,deletedAt:new Date().toISOString(),deleted:true},e.SoloAdmission={...h,id:`adm_01jpsf2h7r4z8kmd9x1q3w4vty`,name:`Solo Admission`,sectionId:void 0},e.DeletedCoupon={...ae,id:`cpn_01jps5cgsgzxf6xvmx3dnt9h1p`,couponId:`cpn_01jps5cgsgzxf6xvmx3dnt9h1p`,deletedAt:new Date().toISOString(),deleted:true},e.DeletedCouponCode={...oe,id:`cod_01jps5cgsg7ep2gvwzghp1ppv6`,deletedAt:new Date().toISOString(),deleted:true},e.DeletedSection={...ne,id:`sct_01jps5cgsgy7681swwcvf01wxh`,deletedAt:new Date().toISOString(),deleted:true},e.DeletedEvent={...p,id:`evt_01jps5cgsg8pyd64pc89tcbg9j`,slug:`deleted-event`,name:`Deleted Event`,deletedAt:new Date().toISOString(),deleted:true},e.PastEvent=rh({id:`evt_01jqqt1ztw4676fdrr27z7de1c`,status:`ENDED`,slug:`past-event`,name:`Past Event`}),e.CancelledEvent=rh({id:`evt_01jt0tfntmfk1sgn72q8c02v7a`,status:`CANCELLED`,slug:`cancelled-event`,name:`Cancelled Event`}),e.DeletedPromoter={...u,id:`pmt_01jps5cgsg4xem309j6sxj01aw`,slug:`deleted-promoter`,name:`Deleted Promoter`,deletedAt:new Date().toISOString(),deleted:true},e.DeletedPromoterMember={...d,userId:Z$1.User.id,user:Z$1.User,id:`mbr_01jpwzceh3zvab64kwq633q4cc`},e.SmsOrder={...de,id:b$1.SmsOrder.id,status:`SUCCESSFUL`,price:{...de.price,sms:200},customer:{...le,phone:`+61412345678`},offers:[]},e.ExpiredOrder={...de,id:`ord_01jq0xwysx1hzs3wqt2fns4578`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,status:`PENDING`,createdAt:new Date(2020,1,1).toISOString(),updatedAt:new Date(2020,1,1).toISOString()},e.AbandonedOrder={...de,id:`ord_01jq0xdzwsfjpd329r8gv3txr2`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,status:`ABANDONED`,createdAt:new Date(2020,1,1).toISOString(),updatedAt:new Date(2020,1,1).toISOString()},e.ProcessingOrder={...de,id:`ord_01jq289n4kcz2tnre24x3v2get`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,status:`PROCESSING`,customer:b$1.Customer,customerId:b$1.Customer.id},e.FreeAdmission={...h,id:`adm_01jpykjbrdgy8jxmz57hmampww`,price:{base:0,booking:0,currency:`AUD`}},e.SoldOutAdmission={...h,id:`adm_01jps5cgse6m3567vzvk69hkrm`,name:`First Release`,capacity:100,available:0,sold:100,reserved:0},e.UnlimitedAdmission={...h,id:`adm_01jsr09narf6d83vyk3hs8q9cf`,name:`First Release`,capacity:-1,available:-1,sold:100,reserved:0},e.UnlimitedSection={id:`sct_01jsr09narf6d83vytx3cng55e`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:n.id,promoterId:u.id,eventId:p.id,eventSlug:p.slug,name:`Sold Out Section`,capacity:-1,limit:-1,available:-1,sold:200,reserved:0,order:0,location:ee,tenantId:t.id};let ge=e.SoldOutSection={id:`sct_01jq1rcqbkzqbbakgwy8ptpmvq`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:n.id,promoterId:u.id,eventId:p.id,eventSlug:p.slug,name:`Sold Out Section`,capacity:200,limit:-1,sold:200,available:0,reserved:0,order:0,location:ee,tenantId:t.id};e.SoldOutSectionAdmission={...h,sectionId:ge.id,id:`adm_01jq1rcjah79628zsafg3k8wyz`,name:`First Release`,capacity:100,available:100,sold:0,reserved:0,order:0};let _e=e.MaxReservedSection={id:`sct_01jq1rcqbkzrkea9ng8e4kngvq`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:n.id,promoterId:u.id,eventId:p.id,eventSlug:p.slug,name:`Max Reserved Section`,capacity:200,limit:-1,sold:0,available:0,reserved:200,location:ee,tenantId:t.id,order:0};e.MaxReservedAdmission={...h,id:`adm_01jq1rcqbk5s86df68xvz66fh4`,name:`First Release`,capacity:100,available:0,sold:0,reserved:100},e.MaxReservedSectionAdmission={...h,sectionId:_e.id,id:`adm_01jq1rcqbkhkxq67e9rs8rpngt`,name:`First Release`,capacity:100,available:100,sold:0,reserved:0},e.SessionsBeneficiary={...re,id:`ben_01jps5cgse5n6mg1ymkew9tsss`,promoterId:`pmt_01jqpjksnsen9vprw95et60t2m`},e.AnotherBeneficiary={...re,id:`ben_01jpsbxdthxadywamz2yj4zt75`,currency:`USD`,name:`Another Bank Account`},e.AnotherSection={...ne,id:`sct_01jps5cgsg3spk97pwwp4352z9`},e.AnotherEvent={...p,id:`evt_01jps5cgsgkegpptzf3dsmkbpy`,slug:`another-event`,name:`Another Event`,visibility:`PUBLIC`},e.AnotherCouponCode={...oe,name:`ANOTHER`,id:`cod_01jps5cgsghcvnjsf5nax5d7z7`},e.PrivateEvent={...p,id:`evt_01jps5cgsgavb91qw967y3d64f`,slug:`private-event`,name:`Private Event`,visibility:`PRIVATE`},e.PendingEvent={...p,id:`evt_01jps5cgsh7mpevnq8pngdqs8q`,slug:`pending-event`,name:`Pending Event`,approval:`PENDING`};let ve=e.WrongUser={id:`usr_01jps5cgshwa2sts0fj53pksk0`,email:`wrong@session.services`,firstName:`Wrong`,lastName:`User`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tenantId:t.id},ye=e.WrongTeam={id:`tem_01jps5cgshfgkvmjhfkev542en`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Wrong Team`,slug:`wrong-team`,description:`This is the wrong team...`,type:`PROMOTER`,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`},be=e.WrongPromoter={id:`pmt_01jps5cgshfgkvmjhfkev542en`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Wrong Promoter`,slug:`wrong-promoter`,description:`This is the wrong promoter...`,payoutFrequency:`AFTER_EVENT`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,type:`PROMOTER`,teamId:ye.id,geohash:`r3gx1`,location:{id:`loc_01jps5cgshfgkvmjhfkev542ep`,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.8688,longitude:151.2093,timeZone:`Australia/Sydney`},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`};e.WrongPromoterMember={id:`mbr_01jps5cgsec5ge0b1bxa6gzkkk`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),promoterId:be.id,userId:ve.id,user:{id:ve.id,email:ve.email,firstName:ve.firstName,lastName:ve.lastName},permissions:[`*`],tenantId:t.id};let xe=e.WrongEvent=eh({id:`evt_01jps5cgshm2v14zzykna678fd`,name:`Wrong Event`,slug:`wrong-event`,description:`This is the wrong event...`,location:{id:`loc_01jps5cgshm2v14zzykna678fe`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),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`,image:{src:`https://assets.session.services/locations/watsons-eq.jpg`,alt:`Watson's EQ`,width:1200,height:800}},teamId:ye.id,promoterId:be.id,tenantId:t.id}),Se=e.WrongAdmission=th({id:`adm_01jps5cgshfggkvmjhfkevy5en`,sectionId:(e.WrongSection={id:`sct_01jps5cgsh6asm2d0ghfqq6br2`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:ye.id,promoterId:be.id,eventId:xe.id,eventSlug:xe.slug,name:`Wrong Admission`,capacity:200,limit:-1,available:200,reserved:0,order:0,sold:0,location:ee,tenantId:t.id}).id,teamId:ye.id,promoterId:be.id,eventId:xe.id,eventSlug:xe.slug,name:`Wrong Release`,tenantId:t.id});e.ExpiredAdmission={...h,id:`adm_01jq6cazzbswynyvg8d0hpx1n5`,entryStartsAt:y$1(new Date(2020,0,1)),entryEndsAt:y$1(Tt(new Date(2020,0,1),2))};let Ce=e.WrongBeneficiary={id:`ben_01jps5cgshfgnzwvcyck0y4sdg`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`My Bank Account`,currency:`AUD`,gatewayId:`ben_12345abcde67890`,gateway:`AIRWALLEX`,assignment:`PROMOTER`,teamId:ye.id,promoterId:be.id,tenantId:t.id},we=e.WrongCoupon={id:`cpn_01jps5cgsh4fy01mvwvzn7xbc9`,couponId:`cpn_01jps5cgsh4fy01mvwvzn7xbc9`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Wrong Price`,active:true,kind:`PERCENT`,filter:`TEAM`,currency:`AUD`,discount:50,uses:0,limit:-1,saleStartsAt:y$1(new Date(2025,1,10,3,0,0)),saleEndsAt:void 0,deletedAt:void 0,teamId:ye.id,tenantId:t.id},Te=e.WrongCouponCode={id:`cod_01jps5cgsh2hevcp6av50kbgyf`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),active:true,name:`WRONG`,tenantId:t.id,couponId:we.id,teamId:ye.id},Ee=e.WrongPayout={id:`pyt_01jps5cgshynssderz1k0fd7z3`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),paidAt:new Date().toISOString(),structure:`default`,items:{tickets:{beneficiaryId:Ce.id,feeAmount:0,feeCurrency:`AUD`,transferAmount:1e3,transferCurrency:`AUD`},sessions:{beneficiaryId:Ce.id,feeAmount:0,feeCurrency:`AUD`,transferAmount:650,transferCurrency:`AUD`}},eventId:xe.id,teamId:ye.id,promoterId:be.id},De=e.WrongOrder={id:`ord_01jps5cgshxhcpy2djnr8e04s3`,token:`51126f93491f3bda92235ade2d87baec7935610e52b64d4252a3c721dfc6016a`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`PENDING`,payment:{method:`FREE`},price:{total:0,base:0,booking:0,discount:0,processor:0,currency:`AUD`},code:{id:Te.id,name:Te.name},customer:le,teamId:ye.id,promoterId:be.id,eventId:xe.id,paymentId:``,payoutIds:[Ee.id]};e.WrongOrderItem={id:`itm_01jps5cgsh14bjvyywkvt6f37e`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:De.id,kind:`ADMISSION`,quantity:2,admissionId:Se.id,price:{base:Se.price.base,booking:Se.price.booking,discount:0,currency:Se.price.currency}},e.WrongOrderFee={id:`fee_01jps5cgshgebpv67sppjfrgb8`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:De.id,reason:`Gateway Fee`,amount:-30,currency:`AUD`,requestId:`att_sgpdz4v2ph1axmdmdx8_m8w6qv`},e.WrongTicket=nh({token:`a1b2c3d4e5f6789012345678901234567890123456789012345678901234abcd`,teamId:ye.id}),e.AnotherTicket={...me,id:`tkt_01jq6v4gmad9m28kzw8g8910jw`},e.ExpiredTicket=nh({token:`e1f2a3b4c5d6789012345678901234567890123456789012345678901234efab`}),e.UpcomingPayout={...ue,id:`pyt_01jq9cvaxvatez34jmwn11rzt8`,status:`UPCOMING`,transfers:[],deductions:[]},e.PayoutNotePayout={...ue,id:`pyt_01kr2note0000000000000001`,transfers:[],deductions:[]};let g=e.MixmagTenant={id:`tnt_01hk153x00en6tvgwwwhn8xj1p`,oldId:`p8npi2s3t24arpunzp2e7dzaq`,name:`Mixmag ANZ`,slug:`mixmag-anz`,email:`hello@mixmag.net.au`,adminTeamId:`tem_01hr9kk2pgez2s8jzb3gs5nwsf`,legacyTenantsToTeams:{clhvrnqph0000m9rq039hkw7s:`tem_01k5sashm1xmaganzteam0001`,"6kh3sj8ih5tvg927rz5elm90o":`tem_01k6blankm1xmaganzteam002`,vc8vrjrv5arhabnk8ainx0ycb:`tem_01k7prowlm1xmaganzteam003`,clkwbixsi0000m9coi7i5b65z:`tem_01k8crousm1xmaganzteam004`},defaultCurrency:`AUD`,smsSenderId:`MIXMAG`,baseUrl:{dev:`http://mixmag-au.local:3000`,production:`https://mixmag-anz.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/mixmag-anz/qr.svg`}},favicon:`https://assets.session.services/tenants/mixmag-anz/favicon.svg`},Oe=e.MixmagUser={id:`usr_01jps5cgsmh2d4ez6xz2t23fsf`,email:`mixmag@session.services`,firstName:`Mixmag`,lastName:`User`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tenantId:g.id},ke=e.MixmagTeam={id:`tem_01hr9kk2pgez2s8jzb3gs5nwsf`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag Team`,slug:`mixmag-team`,description:`This is Mixmag team...`,type:`PROMOTER`,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`},Ae=e.MixmagPromoter={id:`pmt_01hr9kk2pgez2s8jzb3gs5nwsf`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),payoutFrequency:`AFTER_EVENT`,name:`Mixmag Promoter`,slug:`mixmag-promoter`,description:`This is Mixmag...`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,type:`PROMOTER`,geohash:`r3gx1`,location:{id:`loc_01hr9kk2pgez2s8jzb3gs5nwsg`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag`,address:`169 Oxford St, Darlinghurst NSW 2010, Australia`,city:`Darlinghurst`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8774,longitude:151.2196,timeZone:`Australia/Sydney`},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},teamId:ke.id,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`},je=e.MixmagSashPromoter={id:`pmt_01jps5cgsm15cfwrtat68b2vq5`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),payoutFrequency:`WEEKLY`,name:`SASH Mixmag Promoter`,slug:`sash-mixmag-promoter`,description:`This is SASH on Mixmag...`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,type:`PROMOTER`,geohash:`r3gx1`,location:{id:`loc_01jps5cgsm15cfwrtat68b2vq6`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag`,address:`169 Oxford St, Darlinghurst NSW 2010, Australia`,city:`Darlinghurst`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8774,longitude:151.2196,timeZone:`Australia/Sydney`},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},tenantId:g.id},Me=e.MixmagSashTeam={id:`tem_01ha3fnp48ekdst2ezkgxm3zem`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Sash Team`,slug:`sash`,description:`SASH team for Mixmag ANZ fixtures`,type:`PROMOTER`,tenantId:g.id},Ne=e.MixmagSashFixturePromoter={id:`pmt_01ha3fnp48ekdst2ezkgxm3zem`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),payoutFrequency:`WEEKLY`,name:`Sash Fixture Promoter`,slug:`sash-fixture-promoter`,description:`Fixture promoter for SASH test event`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,type:`PROMOTER`,geohash:`r3gx3`,location:{...te,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},teamId:Me.id,tenantId:g.id};e.MixmagSashFixtureEvent={id:`evt_01hj8xw1e0em7vjns3zjtc9q9g`,createdAt:`2023-12-22T14:11:36.000Z`,updatedAt:`2024-12-13T07:53:26.000Z`,name:`Test Event`,slug:`test-event`,description:`This is an event for testing`,approval:`APPROVED`,status:`ENDED`,visibility:`PRIVATE`,currency:`AUD`,entryStartsAt:`2024-12-30T21:00:56`,entryEndsAt:`2024-12-31T03:00:08`,publishAt:`2024-12-13T18:49:56`,images:{mobile:{src:`https://assets.session.services/uploads/images/1771573094836-test-event-1734076207200-mobile.jpg`,alt:`test-event-1734076207200-mobile.jpg`,width:1080,height:1350},desktop:{src:`https://assets.session.services/uploads/images/1771573095056-test-event-1734076207200-desktop.jpg`,alt:`test-event-1734076207200-desktop.jpg`,width:1920,height:1005}},geohash:`r3gx3`,location:{...te,createdAt:`2025-12-12T08:13:11.004Z`,updatedAt:`2025-12-12T08:13:11.171Z`},teamId:Me.id,promoterId:Ne.id,tenantId:g.id},e.MixmagPromoterMember={id:`mbr_01jps5cgsmk2femegmakpgrjdq`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),promoterId:Ae.id,promoterSlug:Ae.slug,userId:Oe.id,user:{id:Oe.id,email:Oe.email,firstName:Oe.firstName,lastName:Oe.lastName},permissions:[`*`],tenantId:g.id};let _=e.MixmagEvent=eh({id:`evt_01jps5cgsmwksmhse1gr2jrq7x`,name:`Mixmag Event`,slug:`wrong-event`,description:`This is the wrong event...`,location:{id:`loc_01jps5cgsmkp1bdr7hgfmmhr4e`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag`,address:`169 Oxford St, Darlinghurst NSW 2010, Australia`,city:`Darlinghurst`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8774,longitude:151.2196,timeZone:`Australia/Sydney`},teamId:ke.id,promoterId:Ae.id,tenantId:g.id}),Pe=e.MixmagSashEvent=eh({id:`evt_01kb1ve66keh4rntf96rq5wpk2`,name:`Mixmag SASH Event`,slug:`mixmag-sash-event`,description:`This is a sash on mixmag event...`,location:{id:`loc_01jps5cgsm7qxvh6watsons0eq`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Watson's EQ`,address:`The, Entertainment Quarter, 1 Bent St, Moore Park NSW 2021, Australia`,city:`Moore Park`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8944593,longitude:151.2252255,timeZone:`Australia/Sydney`},teamId:ke.id,promoterId:Ae.id,tenantId:g.id}),Fe=e.MixmagAdmission=th({id:`adm_01jps5cgsmbepdasrtxvh9xa0k`,sectionId:(e.MixmagSection={id:`sct_01jps5cgsmhrfxjn18y9bfdqc2`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:ke.id,promoterId:Ae.id,eventId:_.id,eventSlug:_.slug,name:`Mixmag Admission`,capacity:200,limit:-1,available:200,reserved:0,order:0,sold:0,location:ee,tenantId:g.id}).id,teamId:ke.id,promoterId:Ae.id,eventId:_.id,eventSlug:_.slug,name:`Mixmag Release`,tenantId:g.id});e.MixmagSashAdmission=th({id:`adm_01jps5cgsm5c3scpdyf25bhntd`,promoterId:je.id,eventId:Pe.id,eventSlug:Pe.slug,name:`Final Release`,tenantId:g.id});let Ie=e.MixmagBeneficiary={id:`ben_01jps5cgsmgxsdv4nxjk51s5by`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`My Bank Account`,currency:`AUD`,gatewayId:`ben_12345abcde67890`,gateway:`AIRWALLEX`,assignment:`PROMOTER`,teamId:ke.id,promoterId:Ae.id,tenantId:g.id},Le=e.MixmagCoupon={id:`cpn_01kb1vvpa0ecrbpyh2j5mvzdp9`,couponId:`cpn_01kb1vvpa0ecrbpyh2j5mvzdp9`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag Price`,active:true,kind:`PERCENT`,filter:`TEAM`,currency:`AUD`,discount:50,uses:0,limit:-1,saleStartsAt:y$1(new Date(2025,1,10,3,0,0)),saleEndsAt:void 0,deletedAt:void 0,teamId:ke.id,tenantId:g.id},Re=e.MixmagCouponCode={id:`cod_01jps5cgsmc53405wk7t2v8ka7`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),active:true,name:`MIXMAG`,tenantId:g.id,couponId:Le.id,teamId:ke.id},ze=e.MixmagPayout={id:`pyt_01jps5cgsmx1x39hnrmvvtcets`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),paidAt:new Date().toISOString(),structure:`default`,items:{tickets:{beneficiaryId:Ie.id,feeAmount:0,feeCurrency:`AUD`,transferAmount:1e3,transferCurrency:`AUD`},sessions:{beneficiaryId:Ie.id,feeAmount:0,feeCurrency:`AUD`,transferAmount:650,transferCurrency:`AUD`}},eventId:_.id,promoterId:Ae.id},Be=e.MixmagOrder={id:`ord_01jps5cgsmtxt8e0985tstqe5h`,token:`16a761b251a2368027c6c08453eca1a97f7e7fcbf714b789c8aa96033d199b90`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`PENDING`,payment:{method:`FREE`},price:{total:0,base:0,booking:0,discount:0,processor:0,currency:`AUD`},code:{id:Re.id,name:Re.name},customer:le,promoterId:Ae.id,eventId:_.id,paymentId:``,payoutIds:[ze.id]},Ve=e.MixmagOrderItem={id:`itm_01jps5cgsmqrkg0btn7khdyjyg`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:Be.id,kind:`ADMISSION`,quantity:2,admissionId:Fe.id,price:{base:Fe.price.base,booking:Fe.price.booking,discount:0,currency:Fe.price.currency}};e.MixmagOrderFee={id:`fee_01jps5cgsm4jgpnfqxahmwm7he`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:Be.id,reason:`Gateway Fee`,amount:30,currency:`AUD`,requestId:`att_sgpdz4v2ph1axmdmdx8_m8w6qv`},e.MixmagTicket={id:`tkt_01jps5cgsmycbvfrqw5h3zt9bp`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`REDEEMED`,scans:[],token:`m1i2x3m4a5g6789012345678901234567890123456789012345678901234mixm`,attendee:{email:le.email,firstName:le.firstName,lastName:le.lastName},event:{id:_.id,name:_.name,slug:_.slug,location:_.location,entryStartsAt:_.entryStartsAt,entryEndsAt:_.entryEndsAt,images:_.images},admission:{id:Fe.id,name:Fe.name,price:Fe.price,entryStartsAt:Fe.entryStartsAt,entryEndsAt:Fe.entryEndsAt},eventId:_.id,customerId:le.id,orderId:Be.id,orderItemId:Ve.id,admissionId:Fe.id,promoterId:Ae.id,promoterSlug:Ae.slug,tenantId:g.id},e.InactiveCoupon={...ae,id:`cpn_01kb1ve66keh4rntfm5z89yskj`,couponId:`cpn_01kb1ve66keh4rntfm5z89yskj`,name:`Inactive Coupon`,active:false};let He=e.MelbourneLocation={id:`loc_01hk153x00ebfrn7y8v7z8emew`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),googlePlaceId:`ChIJc4QL47ZC1moRFW-PYdhx-O0`,name:`Federation Square`,address:`Federation Square, Melbourne VIC 3000, Australia`,city:`Melbourne`,state:`Victoria`,postcode:`3000`,country:`Australia`,latitude:-37.8179789,longitude:144.9690576,timeZone:`Australia/Melbourne`};e.MelbourneVenue={...a,id:`ven_01kb1ve66heh4rntebeywafbwj`,name:`Melbourne Convention Centre`,slug:`melbourne-convention-centre`,description:`Premier convention and exhibition venue in Melbourne`,locationId:He.id,location:He,geohash:`r1r0f`};let Ue=e.MelbournePromoter={...u,id:`pmt_01kb1ve66keh4rntehghtb8j43`,name:`Melbourne Promoter`,slug:`melbourne-promoter`,description:`A promoter based in Melbourne`,geohash:`r1r0f`,location:He};e.MelbourneEvent={...p,id:`evt_01kb1ve66keh4rnteypq587crh`,name:`Melbourne Event`,slug:`melbourne-event`,description:`An event in Melbourne for geo testing`,promoterId:Ue.id,geohash:`r1r0f`,location:He},e.PendingVenue={...a,id:`ven_01kb1ve66keh4rntf3crpmdyaw`,name:`Pending Venue`,slug:`pending-venue`,description:`A venue pending approval`,approval:`PENDING`},e.Locations={sydneyOperaHouse:{id:`loc_01hk153x00fpxv6cjp99qawkcs`,googlePlaceId:`ChIJ3S-JXmauEmsRUcIaWtf4MzE`,name:`Sydney Opera House`,address:`Bennelong Point, Sydney NSW 2000, Australia`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8567844,longitude:151.2152967,timeZone:`Australia/Sydney`,types:[`establishment`,`point_of_interest`,`tourist_attraction`],image:{src:`https://assets.session.services/locations/loc_01hk153x00fpxv6cjp99qawkcs.jpg`,alt:`Sydney Opera House`,width:1200,height:800}},carouselBarBallroom:{...te,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),types:[...te.types],image:te.image},homeTheVenue:{id:`loc_01hk153x00eqbb7qm3b7fjxh7j`,googlePlaceId:`ChIJLaRY2DuuEmsRkgiW8LMz2Hs`,name:`Home The Venue`,address:`101/1-5 Wheat Rd, Sydney NSW 2000, Australia`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8725457,longitude:151.201907,timeZone:`Australia/Sydney`,types:[`establishment`,`food`,`night_club`,`point_of_interest`,`restaurant`],image:{src:`https://assets.session.services/locations/loc_01hk153x00eqbb7qm3b7fjxh7j.jpg`,alt:`Home The Venue`,width:1200,height:800}},greenwoodHotel:{id:`loc_01hk153x00eerbxb70s9fwbmc9`,googlePlaceId:`ChIJPZiEA_OuEmsRWKYZIBL58QU`,name:`Greenwood Hotel`,address:`The Greenwood Plaza Rooftop, 36 Blue St, North Sydney NSW 2060, Australia`,city:`North Sydney`,state:`New South Wales`,postcode:`2060`,country:`Australia`,latitude:-33.8401485,longitude:151.2074803,timeZone:`Australia/Sydney`,types:[`bar`,`establishment`,`food`,`point_of_interest`,`restaurant`],image:{src:`https://assets.session.services/locations/loc_01hk153x00eerbxb70s9fwbmc9.jpg`,alt:`Greenwood Hotel`,width:1200,height:800}},sydneyRacquetClub:{id:`loc_01hk153x00f26trt0z9kmm5pm4`,googlePlaceId:`ChIJB3Dai2SvEmsR904tdDsfGWs`,name:`Sydney Racquet Club`,address:`17 Park Rd N, Moore Park NSW 2021, Australia`,city:`Moore Park`,state:`New South Wales`,postcode:`2021`,country:`Australia`,latitude:-33.89344310000001,longitude:151.2260224,timeZone:`Australia/Sydney`,types:[`establishment`,`point_of_interest`],image:{src:`https://assets.session.services/locations/loc_01hk153x00f26trt0z9kmm5pm4.jpg`,alt:`Sydney Racquet Club`,width:1200,height:800}},centralStation:{id:`loc_01hk153x00fypv7sxqvby33hsg`,googlePlaceId:`ChIJpcfaaCGuEmsRcTRNZkqb51U`,name:`Central Station`,address:`Eddy Ave, Haymarket NSW 2000, Australia`,city:`Haymarket`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8826465,longitude:151.2064744,timeZone:`Australia/Sydney`,types:[`establishment`,`point_of_interest`,`subway_station`,`train_station`,`transit_station`],image:{src:`https://assets.session.services/locations/loc_01hk153x00fypv7sxqvby33hsg.jpg`,alt:`Central Station`,width:1200,height:800}},federationSquare:{id:`loc_01hk153x00ebfrn7y8v7z8emew`,googlePlaceId:`ChIJc4QL47ZC1moRFW-PYdhx-O0`,name:`Federation Square`,address:`Federation Square, Melbourne VIC 3000, Australia`,city:`Melbourne`,state:`Victoria`,postcode:`3000`,country:`Australia`,latitude:-37.8179789,longitude:144.9690576,timeZone:`Australia/Melbourne`,types:[`town_square`],image:{src:`https://assets.session.services/locations/loc_01hk153x00ebfrn7y8v7z8emew.jpg`,alt:`Federation Square`,width:1200,height:800}},bondiBeach:{id:`loc_01hk153x00er59hr0dvf9t4mpy`,googlePlaceId:`ChIJWTi8xgGyEmsRgK0yFmh9AQU`,name:`Bondi Beach`,address:`Bondi Beach NSW 2026, Australia`,city:`Bondi Beach`,state:`New South Wales`,postcode:`2026`,country:`Australia`,latitude:-33.8891201,longitude:151.2703991,timeZone:`Australia/Sydney`,types:[`locality`,`political`],image:{src:`https://assets.session.services/locations/loc_01hk153x00er59hr0dvf9t4mpy.jpg`,alt:`Bondi Beach`,width:1200,height:800}},sydney:{id:`loc_01hk153x00fyrr4gttg9psr5cv`,googlePlaceId:`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`,name:`Sydney`,address:`Sydney NSW, Australia`,city:`Sydney`,state:`New South Wales`,postcode:void 0,country:`Australia`,latitude:-33.8727409,longitude:151.2057136,timeZone:`Australia/Sydney`,types:[`colloquial_area`,`locality`,`political`],image:{src:`https://assets.session.services/locations/loc_01hk153x00fyrr4gttg9psr5cv.jpg`,alt:`Sydney`,width:1200,height:800}}};})(Z$1||={});const ih=F$1({net:M$1().min(0).meta({examples:[b$1.OrderItem.price.net],description:`Total amount to pay to promoter in cents.
36
+ `);}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return (t,n)=>s(e,t,n)},a,o=zt,s=!Tt.jitless,c=s&&Bt.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===false&&f.jitless!==true?(a||=i(t.shape),d=a(d,f),l?li([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)};});function fi(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=>!tn(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=>an(e,r,Et())))}),t)}const pi=x$1(`$ZodUnion`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),S$1(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),S$1(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),S$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=>jt(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=false,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=true;else {if(t.issues.length===0)return t;s.push(t);}}return o?Promise.all(s).then(t=>fi(t,i,e,a)):fi(s,i,e,a)};}),mi=x$1(`$ZodDiscriminatedUnion`,(e,t)=>{pi.init(e,t);let n=e._zod.parse;S$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=kt(()=>{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(!zt(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?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)};}),hi=x$1(`$ZodIntersection`,(e,t)=>{T$1.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])=>_i(e,t,n)):_i(e,i,a)};});function gi(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return {valid:true,data:e};if(Vt(e)&&Vt(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=gi(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=gi(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 _i(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),tn(e))return e;let r=gi(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const vi=x$1(`$ZodRecord`,(e,t)=>{T$1.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Vt(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let e of o)if(typeof e==`string`||typeof e==`number`||typeof e==`symbol`){s.add(typeof e==`number`?e.toString():e);let o=t.valueType._zod.run({value:i[e],issues:[]},r);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&n.issues.push(...nn(e,t.issues)),n.value[e]=t.value;})):(o.issues.length&&n.issues.push(...nn(e,o.issues)),n.value[e]=o.value);}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c});}else {n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`)continue;let s=t.keyType._zod.run({value:o,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=>an(e,r,Et())),input:o,path:[o],inst:e}),n.value[s.value]=s.value;continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...nn(o,e.issues)),n.value[s.value]=e.value;})):(c.issues.length&&n.issues.push(...nn(o,c.issues)),n.value[s.value]=c.value);}}return a.length?Promise.all(a).then(()=>n):n};}),yi=x$1(`$ZodEnum`,(e,t)=>{T$1.init(e,t);let n=Dt(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Ut.has(typeof e)).map(e=>typeof e==`string`?Wt(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};}),bi=x$1(`$ZodLiteral`,(e,t)=>{if(T$1.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`?Wt(e):e?Wt(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};}),xi=x$1(`$ZodTransform`,(e,t)=>{T$1.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new wt(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 Ct;return n.value=i,n};});function Si(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Ci=x$1(`$ZodOptional`,(e,t)=>{T$1.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,S$1(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),S$1(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${jt(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Si(t,e.value)):Si(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)};}),wi=x$1(`$ZodNullable`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`optin`,()=>t.innerType._zod.optin),S$1(e._zod,`optout`,()=>t.innerType._zod.optout),S$1(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${jt(e.source)}|null)$`):void 0}),S$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);}),Ti=x$1(`$ZodDefault`,(e,t)=>{T$1.init(e,t),e._zod.optin=`optional`,S$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=>Ei(e,t)):Ei(r,t)};});function Ei(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Di=x$1(`$ZodPrefault`,(e,t)=>{T$1.init(e,t),e._zod.optin=`optional`,S$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));}),Oi=x$1(`$ZodNonOptional`,(e,t)=>{T$1.init(e,t),S$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=>ki(t,e)):ki(i,e)};});function ki(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 Ai=x$1(`$ZodCatch`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`optin`,()=>t.innerType._zod.optin),S$1(e._zod,`optout`,()=>t.innerType._zod.optout),S$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=>an(e,n,Et()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>an(e,n,Et()))},input:e.value}),e.issues=[]),e)};}),ji=x$1(`$ZodPipe`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`values`,()=>t.in._zod.values),S$1(e._zod,`optin`,()=>t.in._zod.optin),S$1(e._zod,`optout`,()=>t.out._zod.optout),S$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=>Mi(e,t.in,n)):Mi(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Mi(e,t.out,n)):Mi(r,t.out,n)};});function Mi(e,t,n){return e.issues.length?(e.aborted=true,e):t._zod.run({value:e.value,issues:e.issues},n)}const Ni=x$1(`$ZodReadonly`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`propValues`,()=>t.innerType._zod.propValues),S$1(e._zod,`values`,()=>t.innerType._zod.values),S$1(e._zod,`optin`,()=>t.innerType?._zod?.optin),S$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(Pi):Pi(r)};});function Pi(e){return e.value=Object.freeze(e.value),e}const Fi=x$1(`$ZodLazy`,(e,t)=>{T$1.init(e,t),S$1(e._zod,`innerType`,()=>t.getter()),S$1(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),S$1(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),S$1(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),S$1(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n);}),Ii=x$1(`$ZodCustom`,(e,t)=>{w$1.init(e,t),T$1.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=>Li(t,n,r,e));Li(i,n,r,e);};});function Li(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(sn(e));}}var Ri,zi=class{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&typeof n==`object`&&`id`in n){if(this._idmap.has(n.id))throw Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e);}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Bi(){return new zi}(Ri=globalThis).__zod_globalRegistry??(Ri.__zod_globalRegistry=Bi());const Vi=globalThis.__zod_globalRegistry;function Hi(e,t){return new e({type:`string`,...C$1(t)})}function Ui(e,t){return new e({type:`string`,coerce:true,...C$1(t)})}function Wi(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:false,...C$1(t)})}function Gi(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:false,...C$1(t)})}function Ki(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,...C$1(t)})}function qi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v4`,...C$1(t)})}function Ji(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v6`,...C$1(t)})}function Yi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:false,version:`v7`,...C$1(t)})}function Xi(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:false,...C$1(t)})}function Zi(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:false,...C$1(t)})}function Qi(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:false,...C$1(t)})}function $i(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:false,...C$1(t)})}function ea(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:false,...C$1(t)})}function ta(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:false,...C$1(t)})}function na(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:false,...C$1(t)})}function ra(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:false,...C$1(t)})}function ia(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:false,...C$1(t)})}function aa(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:false,...C$1(t)})}function oa(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:false,...C$1(t)})}function sa(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:false,...C$1(t)})}function ca(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:false,...C$1(t)})}function la(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:false,...C$1(t)})}function ua(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:false,...C$1(t)})}function da(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:false,...C$1(t)})}function fa(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:false,local:false,precision:null,...C$1(t)})}function pa(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...C$1(t)})}function ma(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...C$1(t)})}function ha(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...C$1(t)})}function ga(e,t){return new e({type:`number`,checks:[],...C$1(t)})}function _a(e,t){return new e({type:`number`,coerce:true,checks:[],...C$1(t)})}function va(e,t){return new e({type:`number`,check:`number_format`,abort:false,format:`safeint`,...C$1(t)})}function ya(e,t){return new e({type:`boolean`,...C$1(t)})}function ba(e,t){return new e({type:`boolean`,coerce:true,...C$1(t)})}function xa(e,t){return new e({type:`undefined`,...C$1(t)})}function Sa(e,t){return new e({type:`null`,...C$1(t)})}function Ca(e){return new e({type:`any`})}function wa(e){return new e({type:`unknown`})}function Ta(e,t){return new e({type:`never`,...C$1(t)})}function Ea(e,t){return new e({type:`void`,...C$1(t)})}function Da(e,t){return new e({type:`date`,...C$1(t)})}function Oa(e,t){return new ar({check:`less_than`,...C$1(t),value:e,inclusive:false})}function ka(e,t){return new ar({check:`less_than`,...C$1(t),value:e,inclusive:true})}function Aa(e,t){return new or({check:`greater_than`,...C$1(t),value:e,inclusive:false})}function ja(e,t){return new or({check:`greater_than`,...C$1(t),value:e,inclusive:true})}function Ma(e,t){return new sr({check:`multiple_of`,...C$1(t),value:e})}function Na(e,t){return new lr({check:`max_length`,...C$1(t),maximum:e})}function Pa(e,t){return new ur({check:`min_length`,...C$1(t),minimum:e})}function Fa(e,t){return new dr({check:`length_equals`,...C$1(t),length:e})}function Ia(e,t){return new pr({check:`string_format`,format:`regex`,...C$1(t),pattern:e})}function La(e){return new mr({check:`string_format`,format:`lowercase`,...C$1(e)})}function Ra(e){return new hr({check:`string_format`,format:`uppercase`,...C$1(e)})}function za(e,t){return new gr({check:`string_format`,format:`includes`,...C$1(t),includes:e})}function Ba(e,t){return new _r({check:`string_format`,format:`starts_with`,...C$1(t),prefix:e})}function Va(e,t){return new vr({check:`string_format`,format:`ends_with`,...C$1(t),suffix:e})}function Ha(e){return new yr({check:`overwrite`,tx:e})}function Ua(e){return Ha(t=>t.normalize(e))}function Wa(){return Ha(e=>e.trim())}function Ga(){return Ha(e=>e.toLowerCase())}function Ka(){return Ha(e=>e.toUpperCase())}function qa(){return Ha(e=>Lt(e))}function Ja(e,t,n){return new e({type:`array`,element:t,...C$1(n)})}function Ya(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...C$1(n)})}function Xa(e){let t=Za(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(sn(e,n.value,t._zod.def));else {let r=e;r.fatal&&(r.continue=false),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(sn(r));}},e(n.value,n)));return t}function Za(e,t){let n=new w$1({check:`custom`,...C$1(t)});return n._zod.check=e,n}const Qa=x$1(`ZodISODateTime`,(e,t)=>{Pr.init(e,t),A$1.init(e,t);});function D$1(e){return fa(Qa,e)}const $a=x$1(`ZodISODate`,(e,t)=>{Fr.init(e,t),A$1.init(e,t);});function eo(e){return pa($a,e)}const to=x$1(`ZodISOTime`,(e,t)=>{Ir.init(e,t),A$1.init(e,t);});function no(e){return ma(to,e)}const ro=x$1(`ZodISODuration`,(e,t)=>{Lr.init(e,t),A$1.init(e,t);});function io(e){return ha(ro,e)}const ao=(e,t)=>{ln.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>fn(e,t)},flatten:{value:t=>dn(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Ot,2);}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Ot,2);}},isEmpty:{get(){return e.issues.length===0}}});};x$1(`ZodError`,ao);const oo=x$1(`ZodError`,ao,{Parent:Error}),so=pn(oo),co=mn(oo),lo=hn(oo),uo=_n(oo),fo=yn(oo),po=bn(oo),mo=xn(oo),ho=Sn(oo),go=Cn(oo),_o=wn(oo),vo=Tn(oo),yo=En(oo),O$1=x$1(`ZodType`,(e,t)=>(T$1.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(Ft(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]})),e.clone=(t,n)=>Gt(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>so(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>lo(e,t,n),e.parseAsync=async(t,n)=>co(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>uo(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>fo(e,t,n),e.decode=(t,n)=>po(e,t,n),e.encodeAsync=async(t,n)=>mo(e,t,n),e.decodeAsync=async(t,n)=>ho(e,t,n),e.safeEncode=(t,n)=>go(e,t,n),e.safeDecode=(t,n)=>_o(e,t,n),e.safeEncodeAsync=async(t,n)=>vo(e,t,n),e.safeDecodeAsync=async(t,n)=>yo(e,t,n),e.refine=(t,n)=>e.check(Bs(t,n)),e.superRefine=t=>e.check(Vs(t)),e.overwrite=t=>e.check(Ha(t)),e.optional=()=>Ss(e),e.nullable=()=>ws(e),e.nullish=()=>Ss(ws(e)),e.nonoptional=t=>As(e,t),e.array=()=>P$1(e),e.or=t=>ls([e,t]),e.and=t=>ps(e,t),e.transform=t=>Ps(e,bs(t)),e.default=t=>Es(e,t),e.prefault=t=>Os(e,t),e.catch=t=>Ms(e,t),e.pipe=t=>Ps(e,t),e.readonly=()=>Is(e),e.describe=t=>{let n=e.clone();return Vi.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return Vi.get(e)?.description},configurable:true}),e.meta=(...t)=>{if(t.length===0)return Vi.get(e);let n=e.clone();return Vi.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),bo=x$1(`_ZodString`,(e,t)=>{Sr.init(e,t),O$1.init(e,t);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(Ia(...t)),e.includes=(...t)=>e.check(za(...t)),e.startsWith=(...t)=>e.check(Ba(...t)),e.endsWith=(...t)=>e.check(Va(...t)),e.min=(...t)=>e.check(Pa(...t)),e.max=(...t)=>e.check(Na(...t)),e.length=(...t)=>e.check(Fa(...t)),e.nonempty=(...t)=>e.check(Pa(1,...t)),e.lowercase=t=>e.check(La(t)),e.uppercase=t=>e.check(Ra(t)),e.trim=()=>e.check(Wa()),e.normalize=(...t)=>e.check(Ua(...t)),e.toLowerCase=()=>e.check(Ga()),e.toUpperCase=()=>e.check(Ka()),e.slugify=()=>e.check(qa());}),xo=x$1(`ZodString`,(e,t)=>{Sr.init(e,t),bo.init(e,t),e.email=t=>e.check(Wi(So,t)),e.url=t=>e.check(Xi(Eo,t)),e.jwt=t=>e.check(da(Ho,t)),e.emoji=t=>e.check(Zi(Oo,t)),e.guid=t=>e.check(Gi(wo,t)),e.uuid=t=>e.check(Ki(To,t)),e.uuidv4=t=>e.check(qi(To,t)),e.uuidv6=t=>e.check(Ji(To,t)),e.uuidv7=t=>e.check(Yi(To,t)),e.nanoid=t=>e.check(Qi(ko,t)),e.guid=t=>e.check(Gi(wo,t)),e.cuid=t=>e.check($i(Ao,t)),e.cuid2=t=>e.check(ea(jo,t)),e.ulid=t=>e.check(ta(Mo,t)),e.base64=t=>e.check(ca(zo,t)),e.base64url=t=>e.check(la(Bo,t)),e.xid=t=>e.check(na(No,t)),e.ksuid=t=>e.check(ra(Po,t)),e.ipv4=t=>e.check(ia(Fo,t)),e.ipv6=t=>e.check(aa(Io,t)),e.cidrv4=t=>e.check(oa(Lo,t)),e.cidrv6=t=>e.check(sa(Ro,t)),e.e164=t=>e.check(ua(Vo,t)),e.datetime=t=>e.check(D$1(t)),e.date=t=>e.check(eo(t)),e.time=t=>e.check(no(t)),e.duration=t=>e.check(io(t));});function k$1(e){return Hi(xo,e)}const A$1=x$1(`ZodStringFormat`,(e,t)=>{E$1.init(e,t),bo.init(e,t);}),So=x$1(`ZodEmail`,(e,t)=>{Tr.init(e,t),A$1.init(e,t);});function Co(e){return Wi(So,e)}const wo=x$1(`ZodGUID`,(e,t)=>{Cr.init(e,t),A$1.init(e,t);}),To=x$1(`ZodUUID`,(e,t)=>{wr.init(e,t),A$1.init(e,t);}),Eo=x$1(`ZodURL`,(e,t)=>{Er.init(e,t),A$1.init(e,t);});function Do(e){return Xi(Eo,e)}const Oo=x$1(`ZodEmoji`,(e,t)=>{Dr.init(e,t),A$1.init(e,t);}),ko=x$1(`ZodNanoID`,(e,t)=>{Or.init(e,t),A$1.init(e,t);}),Ao=x$1(`ZodCUID`,(e,t)=>{kr.init(e,t),A$1.init(e,t);}),jo=x$1(`ZodCUID2`,(e,t)=>{Ar.init(e,t),A$1.init(e,t);}),Mo=x$1(`ZodULID`,(e,t)=>{jr.init(e,t),A$1.init(e,t);}),No=x$1(`ZodXID`,(e,t)=>{Mr.init(e,t),A$1.init(e,t);}),Po=x$1(`ZodKSUID`,(e,t)=>{Nr.init(e,t),A$1.init(e,t);}),Fo=x$1(`ZodIPv4`,(e,t)=>{Rr.init(e,t),A$1.init(e,t);}),Io=x$1(`ZodIPv6`,(e,t)=>{zr.init(e,t),A$1.init(e,t);}),Lo=x$1(`ZodCIDRv4`,(e,t)=>{Br.init(e,t),A$1.init(e,t);}),Ro=x$1(`ZodCIDRv6`,(e,t)=>{Vr.init(e,t),A$1.init(e,t);}),zo=x$1(`ZodBase64`,(e,t)=>{Ur.init(e,t),A$1.init(e,t);}),Bo=x$1(`ZodBase64URL`,(e,t)=>{Gr.init(e,t),A$1.init(e,t);}),Vo=x$1(`ZodE164`,(e,t)=>{Kr.init(e,t),A$1.init(e,t);}),Ho=x$1(`ZodJWT`,(e,t)=>{Jr.init(e,t),A$1.init(e,t);}),Uo=x$1(`ZodNumber`,(e,t)=>{Yr.init(e,t),O$1.init(e,t),e.gt=(t,n)=>e.check(Aa(t,n)),e.gte=(t,n)=>e.check(ja(t,n)),e.min=(t,n)=>e.check(ja(t,n)),e.lt=(t,n)=>e.check(Oa(t,n)),e.lte=(t,n)=>e.check(ka(t,n)),e.max=(t,n)=>e.check(ka(t,n)),e.int=t=>e.check(M$1(t)),e.safe=t=>e.check(M$1(t)),e.positive=t=>e.check(Aa(0,t)),e.nonnegative=t=>e.check(ja(0,t)),e.negative=t=>e.check(Oa(0,t)),e.nonpositive=t=>e.check(ka(0,t)),e.multipleOf=(t,n)=>e.check(Ma(t,n)),e.step=(t,n)=>e.check(Ma(t,n)),e.finite=()=>e;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 j$1(e){return ga(Uo,e)}const Wo=x$1(`ZodNumberFormat`,(e,t)=>{Xr.init(e,t),Uo.init(e,t);});function M$1(e){return va(Wo,e)}const Go=x$1(`ZodBoolean`,(e,t)=>{Zr.init(e,t),O$1.init(e,t);});function N$1(e){return ya(Go,e)}const Ko=x$1(`ZodUndefined`,(e,t)=>{Qr.init(e,t),O$1.init(e,t);});function qo(e){return xa(Ko,e)}const Jo=x$1(`ZodNull`,(e,t)=>{$r.init(e,t),O$1.init(e,t);});function Yo(e){return Sa(Jo,e)}const Xo=x$1(`ZodAny`,(e,t)=>{ei.init(e,t),O$1.init(e,t);});function Zo(){return Ca(Xo)}const Qo=x$1(`ZodUnknown`,(e,t)=>{ti.init(e,t),O$1.init(e,t);});function $o(){return wa(Qo)}const es=x$1(`ZodNever`,(e,t)=>{ni.init(e,t),O$1.init(e,t);});function ts(e){return Ta(es,e)}const ns=x$1(`ZodVoid`,(e,t)=>{ri.init(e,t),O$1.init(e,t);});function rs(e){return Ea(ns,e)}const is=x$1(`ZodDate`,(e,t)=>{ii.init(e,t),O$1.init(e,t),e.min=(t,n)=>e.check(ja(t,n)),e.max=(t,n)=>e.check(ka(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 as(e){return Da(is,e)}const os=x$1(`ZodArray`,(e,t)=>{oi.init(e,t),O$1.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(Pa(t,n)),e.nonempty=t=>e.check(Pa(1,t)),e.max=(t,n)=>e.check(Na(t,n)),e.length=(t,n)=>e.check(Fa(t,n)),e.unwrap=()=>e.element;});function P$1(e,t){return Ja(os,e,t)}const ss=x$1(`ZodObject`,(e,t)=>{di.init(e,t),O$1.init(e,t),S$1(e,`shape`,()=>t.shape),e.keyof=()=>I$1(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:$o()}),e.loose=()=>e.clone({...e._zod.def,catchall:$o()}),e.strict=()=>e.clone({...e._zod.def,catchall:ts()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>Xt(e,t),e.safeExtend=t=>Zt(e,t),e.merge=t=>Qt(e,t),e.pick=t=>Jt(e,t),e.omit=t=>Yt(e,t),e.partial=(...t)=>$t(xs,e,t[0]),e.required=(...t)=>en(ks,e,t[0]);});function F$1(e,t){return new ss({type:`object`,shape:e??{},...C$1(t)})}const cs=x$1(`ZodUnion`,(e,t)=>{pi.init(e,t),O$1.init(e,t),e.options=t.options;});function ls(e,t){return new cs({type:`union`,options:e,...C$1(t)})}const us=x$1(`ZodDiscriminatedUnion`,(e,t)=>{cs.init(e,t),mi.init(e,t);});function ds(e,t,n){return new us({type:`union`,options:t,discriminator:e,...C$1(n)})}const fs=x$1(`ZodIntersection`,(e,t)=>{hi.init(e,t),O$1.init(e,t);});function ps(e,t){return new fs({type:`intersection`,left:e,right:t})}const ms=x$1(`ZodRecord`,(e,t)=>{vi.init(e,t),O$1.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType;});function hs(e,t,n){return new ms({type:`record`,keyType:e,valueType:t,...C$1(n)})}const gs=x$1(`ZodEnum`,(e,t)=>{yi.init(e,t),O$1.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new gs({...t,checks:[],...C$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 gs({...t,checks:[],...C$1(r),entries:i})};});function I$1(e,t){return new gs({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...C$1(t)})}const _s=x$1(`ZodLiteral`,(e,t)=>{bi.init(e,t),O$1.init(e,t),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 vs(e,t){return new _s({type:`literal`,values:Array.isArray(e)?e:[e],...C$1(t)})}const ys=x$1(`ZodTransform`,(e,t)=>{xi.init(e,t),O$1.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new wt(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(sn(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(sn(t));}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)};});function bs(e){return new ys({type:`transform`,transform:e})}const xs=x$1(`ZodOptional`,(e,t)=>{Ci.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Ss(e){return new xs({type:`optional`,innerType:e})}const Cs=x$1(`ZodNullable`,(e,t)=>{wi.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function ws(e){return new Cs({type:`nullable`,innerType:e})}const Ts=x$1(`ZodDefault`,(e,t)=>{Ti.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function Es(e,t){return new Ts({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ht(t)}})}const Ds=x$1(`ZodPrefault`,(e,t)=>{Di.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Os(e,t){return new Ds({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ht(t)}})}const ks=x$1(`ZodNonOptional`,(e,t)=>{Oi.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function As(e,t){return new ks({type:`nonoptional`,innerType:e,...C$1(t)})}const js=x$1(`ZodCatch`,(e,t)=>{Ai.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function Ms(e,t){return new js({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}const Ns=x$1(`ZodPipe`,(e,t)=>{ji.init(e,t),O$1.init(e,t),e.in=t.in,e.out=t.out;});function Ps(e,t){return new Ns({type:`pipe`,in:e,out:t})}const Fs=x$1(`ZodReadonly`,(e,t)=>{Ni.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.innerType;});function Is(e){return new Fs({type:`readonly`,innerType:e})}const Ls=x$1(`ZodLazy`,(e,t)=>{Fi.init(e,t),O$1.init(e,t),e.unwrap=()=>e._zod.def.getter();});function Rs(e){return new Ls({type:`lazy`,getter:e})}const zs=x$1(`ZodCustom`,(e,t)=>{Ii.init(e,t),O$1.init(e,t);});function Bs(e,t={}){return Ya(zs,e,t)}function Vs(e){return Xa(e)}function Hs(e,t){return Ps(bs(e),t)}function Us(e){return Ui(xo,e)}function L$1(e){return _a(Uo,e)}function Ws(e){return ba(Go,e)}const R$1=I$1([`PENDING`,`APPROVED`,`REJECTED`]).meta({description:`Approval status. PENDING: awaiting review, APPROVED: approved for operation, REJECTED: rejected and cannot operate`}),Ks=`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(`.`),z$2=I$1(Ks).meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code for transactions and payouts`}),qs=I$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:`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:`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:`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)),Js=P$1(qs).max(10).optional().meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10 categories)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),Ys=I$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)),Xs=P$1(Ys).min(1).max(5).meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]});P$1(Ys).max(5).optional().meta({description:`Music genres for the event (up to 5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]});function B$2(e,t){return k$1().regex(RegExp(`^${e}_[0-9a-z]{26}$`),`Must be a valid ${t} ID`).describe(`Unique ${t} identifier`)}const Qs=B$2(`tem`,`team`),V$2=B$2(`evt`,`event`),$s=B$2(`ven`,`venue`),ec=B$2(`loc`,`location`),tc=B$2(`usr`,`user`),nc=B$2(`ord`,`order`),rc=B$2(`tkt`,`ticket`),ic=B$2(`pmt`,`promoter`);B$2(`cpn`,`coupon`);B$2(`cod`,`coupon code`);const sc=B$2(`cus`,`customer`),cc=B$2(`adm`,`admission`),lc=B$2(`sct`,`section`);B$2(`ben`,`beneficiary`);const dc=B$2(`pyt`,`payout`),fc=B$2(`mbr`,`team member`),pc=B$2(`inv`,`team invite`),mc=B$2(`ecl`,`event collaborator`),hc=B$2(`psc`,`permission scope`),gc=B$2(`prl`,`permission role`),_c=B$2(`ntf`,`notification`),H$2=F$1({src:Do().meta({examples:[`https://assets.session.services/my-image.jpg`]}),alt:k$1().meta({examples:[`My Image`]}),width:j$1().meta({examples:[1080]}),height:j$1().meta({examples:[1080]})}),vc=`Limit cannot be 0. Use -1 for unlimited or a positive number for a specific limit`;function yc(){return j$1().min(-1)}function bc(){return j$1().min(-1).refine(e=>e!==0,{message:vc})}const xc=ls([k$1(),j$1(),N$1(),Yo()]),Sc=Rs(()=>ls([xc,P$1(Sc),hs(k$1(),Sc)])),Cc=hs(k$1().min(1).max(40).meta({description:`Metadata key. Must be 1-40 characters`}),k$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.`}),U$2=k$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 wc(e){return L$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 Tc=k$1().meta({description:`Opaque cursor for pagination. Use the cursor from the previous response to continue fetching results.`}),Ec=`[a-z][a-z0-9-]*`,Dc=`(?:${Ec})(?:\\.${Ec})*`,Oc=RegExp(`^-?(?:\\*|${Dc}(?:\\.\\*|\\.bypass|\\.[a-z]{3}_[0-9a-z]{26})?)$`),kc=/^[a-z]{3}_[0-9a-z]{26}$/,Ac=[`tem`,`pmt`,`ven`,`evt`,`ord`,`tkt`,`cpn`],jc=`tenant.masquerade,team.read,team.write,team.member.read,team.member.write,team.invite.read,team.invite.write,team.gateway.read,team.gateway.connect,team.gateway.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,beneficiary.read,beneficiary.write,payout.read,payout.write,*`.split(`,`),Mc=[`tenant`,`team`,`team.member`,`team.invite`,`team.gateway`,`team.performance`,`cms`,`role`,`event`,`event.performance`,`promoter`,`promoter.performance`,`venue`,`order`,`ticket`,`coupon`,`beneficiary`,`payout`],Nc=new Set(jc),Pc=new Set(Mc),Fc={"tenant.masquerade":[],"team.read":[`tem`],"team.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.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`],"beneficiary.read":[`tem`,`pmt`],"beneficiary.write":[`tem`,`pmt`],"payout.read":[`tem`,`pmt`,`ven`],"payout.write":[`tem`,`pmt`],"*":[]};function Ic(e){let[t]=e.split(`_`);return t?Ac.includes(t):false}function Lc(e){let[t]=e.split(`_`);return !t||!Ic(e)?null:t}function Rc(e){return kc.test(e)&&Ic(e)}function zc(e,t){let n=Lc(t);return n?(Fc[e]??[]).includes(n):false}function Bc(e,t){return !Nc.has(e)||!Rc(t)?false:zc(e,t)}function Vc(e){return e.startsWith(`-`)?e.slice(1):e}function Hc(e){return Nc.has(e)}function Uc(e){return e.endsWith(`.bypass`)?Nc.has(e.slice(0,-7)):false}function Wc(e){let t=e.match(/^((?:[a-z][a-z0-9-]*)(?:\.[a-z][a-z0-9-]*)*)\.([a-z]{3}_[0-9a-z]{26})$/);return t?Gc(t):null}function Gc(e){let t=e[1],n=e[2];return !t||!n?null:{base:t,resourceId:n}}function Kc(e){let t=Wc(e);return t?Bc(t.base,t.resourceId):false}function qc(e){if(!e.endsWith(`.*`))return false;let t=e.slice(0,-2);return Pc.has(t)||Nc.has(t)}const Jc=[Hc,Uc,Kc,qc];function Yc(e){let t=Vc(e);return Jc.some(e=>e(t))}const Xc=k$1().regex(Oc,`Invalid permission node. Use lowercase dot notation with optional wildcard, resource target, bypass target, and deny prefix.`).refine(Yc,{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`]}),Zc=P$1(Xc).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`]]}),Qc=Zc.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 gl$1=k$1().length(16).meta({examples:[b$1.signature],description:`HMAC signature for secure access (16 characters, base64url encoded)`}),_l$1=I$1([`SALE_ENDED`,`SOLD_OUT`,`DOOR`]);function yl$1(e){return F$1({base:M$1().min(0).meta({examples:[b$1.Admission.price.base],description:`Base cost of a ticket for this admission type before fees, in cents`}),booking:M$1().min(0).meta({examples:[b$1.Admission.price.booking],description:e.booking}),currency:z$2.meta({examples:[b$1.Admission.price.currency],description:e.currency})}).meta({examples:[b$1.Admission.price],description:e.price})}const W$2=F$1({id:cc.readonly().meta({description:`A unique identifier for this admission`,examples:[b$1.Admission.id]}),name:k$1().meta({description:`The display name of the admission type shown to customers`,examples:[b$1.Admission.name]}),subtitle:k$1().max(100).optional().meta({description:`Short supporting text shown below the admission name`,examples:[b$1.Admission.subtitle]}),description:k$1().max(500).optional().meta({description:`Detailed information shown when customers expand 'More info'`,examples:[b$1.Admission.description]}),capacity:yc().prefault(-1).meta({examples:[b$1.Admission.capacity],description:`Maximum number of tickets that can be sold for this admission type. A value of -1 indicates unlimited`}),limit:bc().prefault(-1).meta({examples:[b$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:j$1().min(-1).readonly().meta({examples:[b$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:j$1().min(0).readonly().meta({examples:[b$1.Admission.sold],description:`Total number of tickets of this admission type that have been purchased`}),reserved:j$1().min(0).readonly().meta({examples:[b$1.Admission.reserved],description:`Number of tickets held for customers during checkout and not available to others`}),order:j$1().min(0).meta({examples:[b$1.Admission.order],description:`Determines the position in which this admission type appears when listed. Lower values appear first`}),createdAt:D$1().readonly().meta({examples:[b$1.Admission.createdAt],description:`Timestamp in ISO 8601 format when this admission type was created`}),updatedAt:D$1().readonly().meta({examples:[b$1.Admission.updatedAt],description:`Timestamp in ISO 8601 format when this admission type was last updated`}),entryStartsAt:U$2.meta({examples:[b$1.Admission.entryStartsAt],description:`Wall clock time from which tickets of this type are valid for entry (no timezone)`}),entryEndsAt:U$2.meta({examples:[b$1.Admission.entryEndsAt],description:`Wall clock time until which tickets of this type are valid for entry (no timezone)`}),saleStartsAt:U$2.meta({examples:[b$1.Admission.saleStartsAt],description:`Wall clock time when ticket sales for this admission type begin (no timezone)`}),saleEndsAt:U$2.meta({examples:[b$1.Admission.saleEndsAt],description:`Wall clock time when ticket sales for this admission type end (no timezone)`}),saleEndsBehavior:_l$1.default(`SALE_ENDED`).meta({examples:[b$1.Admission.saleEndsBehavior],description:`Label to display for this admission after ticket sales have ended`}),price:yl$1({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:I$1([`ALWAYS`,`HIDDEN`]).prefault(`ALWAYS`).meta({examples:[`ALWAYS`],description:`Controls whether this admission type is shown publicly or only revealed by a scoped coupon.`}),sectionId:lc.nullable().optional().meta({examples:[b$1.Admission.sectionId],description:`Identifier of the section this admission type belongs to, if any`}),teamId:Qs.meta({description:`Team that owns this admission. Denormalized for efficient queries.`}),promoterId:ic.meta({examples:[b$1.Admission.promoterId],description:`Identifier of the promoter responsible for this admission type`}),eventId:V$2.meta({examples:[b$1.Admission.eventId],description:`Identifier of the event to which this admission type is linked`}),eventSlug:k$1().meta({examples:[b$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:[b$1.Admission]}),bl$1=W$2.omit({id:true,createdAt:true,updatedAt:true,available:true,sold:true,reserved:true}).meta({description:`Schema for creating a new admission type for an event`}),xl$1=W$2.pick({id:true}).extend({eventId:W$2.shape.eventId.meta({examples:[b$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`}),Sl$1=W$2.pick({id:true}).extend({eventId:V$2.meta({examples:[b$1.Admission.eventId],description:`Identifier of the event to which this admission type belongs`})}).meta({description:`Schema for retrieving a specific admission type`}),Cl$1=F$1({eventId:k$1().meta({examples:[b$1.Admission.eventId],description:`Identifier of the event to list admission types for`}),sectionId:k$1().optional().meta({examples:[b$1.Admission.sectionId],description:`Filter admission types by section identifier. If provided, only admissions for this section are returned`}),query:k$1().optional().meta({examples:[`Early Bird`],description:`Optional search query to filter admissions by name. When provided, search-backed pagination is used.`}),limit:wc(`admission types`).optional(),cursor:k$1().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 G$2(e,t){let n={[t]:P$1(e).meta({description:`Array of ${t} for the current result set`})},r=k$1().nullish().meta({examples:[`eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNqIn19`],description:`Cursor for navigating backward in the result set. Omitted when there are no prior results.`}),i=k$1().nullish().meta({examples:[`eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNkIn19`],description:`Cursor for navigating forward in the result set. Omitted when there are no subsequent results.`});return F$1({...n,before:r,after:i,limit:L$1().min(1).meta({examples:[20],description:`Maximum number of items to return in each result set`})})}const wl$1=G$2(W$2,`admissions`),Tl$1=W$2.pick({eventId:true}).extend({message:k$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`}),price:yl$1({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`}),El$1=W$2.pick({eventId:true}).extend({base:M$1().min(0).meta({examples:[b$1.Admission.price.base],description:`Base cost of a ticket for this admission type before fees, in cents`}),currency:z$2.meta({examples:[b$1.Admission.price.currency],description:`Three-letter ISO 4217 currency code for the ticket price`})}).meta({description:`Request schema for generating a pricing quote for an admission type, including booking fee calculations`}),Dl$1=F$1({quote:Tl$1}),Ol=F$1({admission:W$2}),kl=F$1({id:W$2.shape.id,eventId:W$2.shape.eventId,name:W$2.shape.name.optional(),subtitle:W$2.shape.subtitle,description:W$2.shape.description,capacity:yc().optional(),limit:bc().optional(),order:W$2.shape.order.optional(),entryStartsAt:W$2.shape.entryStartsAt.optional(),entryEndsAt:W$2.shape.entryEndsAt.optional(),saleStartsAt:W$2.shape.saleStartsAt.optional(),saleEndsAt:W$2.shape.saleEndsAt.optional(),saleEndsBehavior:_l$1.optional(),price:W$2.shape.price.optional(),visibility:I$1([`ALWAYS`,`HIDDEN`]).optional(),sectionId:lc.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.`}),Al=F$1({eventId:V$2.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:[b$1.Event.id]}),description:k$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:k$1().optional().meta({description:`Optional event name for additional context`,examples:[`Warehouse Sessions Vol. 5`]}),imageUrl:Do().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`}),jl=F$1({genres:P$1(Ys).max(5).meta({description:`Suggested music genres based on event description and artwork`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:P$1(qs).max(10).meta({description:`Suggested event categories based on description and artwork`,examples:[[`Warehouse`,`Underground`,`BYO`]]}),confidence:j$1().min(0).max(1).meta({description:`AI confidence score for the suggestions (0-1)`,examples:[.85]}),startDate:k$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:k$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:k$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:Do().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`});F$1({estimatedInputTokens:j$1().int().meta({description:`Estimated input tokens for the request`,examples:[500]}),estimatedOutputTokens:j$1().int().meta({description:`Estimated output tokens for the response`,examples:[100]}),estimatedCostUsd:j$1().meta({description:`Estimated cost in USD`,examples:[.002]}),includesImage:N$1().meta({description:`Whether the estimate includes image analysis`,examples:[true]})}).meta({description:`Cost estimate for an AI tag suggestion request`});var Ml$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 Nl(e){return typeof e==`string`&&Ml$1.test(e)}for(var Pl=Nl,K$2=[],Fl=0;Fl<256;++Fl)K$2.push((Fl+256).toString(16).slice(1));function Il(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 Ll(e,t=0){var n=Il(e,t);if(!Pl(n))throw TypeError(`Stringified UUID is invalid`);return n}var Rl=Ll,zl,Bl=new Uint8Array(16);function Vl(){if(!zl&&(zl=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!zl))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return zl(Bl)}var Hl=null,Ul=null,Wl=0;function Gl(e,t,n){e||={};var r=t&&n||0,i=t||new Uint8Array(16),a=e.random||(e.rng||Vl)(),o=e.msecs===void 0?Date.now():e.msecs,s=e.seq===void 0?null:e.seq,c=Ul,l=Hl;return o>Wl&&e.msecs===void 0&&(Wl=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>Wl&&s===null?++l>524287&&(l=0,++c>4095&&(c=0,Wl++)):Wl=o,Ul=c,Hl=l,i[r++]=Wl/1099511627776&255,i[r++]=Wl/4294967296&255,i[r++]=Wl/16777216&255,i[r++]=Wl/65536&255,i[r++]=Wl/256&255,i[r++]=Wl&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||Il(i)}var Kl=Gl;function ql(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$1=`0123456789abcdefghjkmnpqrstvwxyz`,J$1=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 Jl(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$1[(e[0]&224)>>5],t[1]=q$1[e[0]&31],t[2]=q$1[(e[1]&248)>>3],t[3]=q$1[(e[1]&7)<<2|(e[2]&192)>>6],t[4]=q$1[(e[2]&62)>>1],t[5]=q$1[(e[2]&1)<<4|(e[3]&240)>>4],t[6]=q$1[(e[3]&15)<<1|(e[4]&128)>>7],t[7]=q$1[(e[4]&124)>>2],t[8]=q$1[(e[4]&3)<<3|(e[5]&224)>>5],t[9]=q$1[e[5]&31],t[10]=q$1[(e[6]&248)>>3],t[11]=q$1[(e[6]&7)<<2|(e[7]&192)>>6],t[12]=q$1[(e[7]&62)>>1],t[13]=q$1[(e[7]&1)<<4|(e[8]&240)>>4],t[14]=q$1[(e[8]&15)<<1|(e[9]&128)>>7],t[15]=q$1[(e[9]&124)>>2],t[16]=q$1[(e[9]&3)<<3|(e[10]&224)>>5],t[17]=q$1[e[10]&31],t[18]=q$1[(e[11]&248)>>3],t[19]=q$1[(e[11]&7)<<2|(e[12]&192)>>6],t[20]=q$1[(e[12]&62)>>1],t[21]=q$1[(e[12]&1)<<4|(e[13]&240)>>4],t[22]=q$1[(e[13]&15)<<1|(e[14]&128)>>7],t[23]=q$1[(e[14]&124)>>2],t[24]=q$1[(e[14]&3)<<3|(e[15]&224)>>5],t[25]=q$1[e[15]&31],t.join(``)}function Yl(e){if(e.length!==26)throw Error(`Invalid length. Expected 26 bytes, got ${e.length}. Input: ${e}`);let t=new TextEncoder().encode(e);if(J$1[t[0]]===255||J$1[t[1]]===255||J$1[t[2]]===255||J$1[t[3]]===255||J$1[t[4]]===255||J$1[t[5]]===255||J$1[t[6]]===255||J$1[t[7]]===255||J$1[t[8]]===255||J$1[t[9]]===255||J$1[t[10]]===255||J$1[t[11]]===255||J$1[t[12]]===255||J$1[t[13]]===255||J$1[t[14]]===255||J$1[t[15]]===255||J$1[t[16]]===255||J$1[t[17]]===255||J$1[t[18]]===255||J$1[t[19]]===255||J$1[t[20]]===255||J$1[t[21]]===255||J$1[t[22]]===255||J$1[t[23]]===255||J$1[t[24]]===255||J$1[t[25]]===255)throw Error(`Invalid base32 character`);let n=new Uint8Array(16);return n[0]=J$1[t[0]]<<5|J$1[t[1]],n[1]=J$1[t[2]]<<3|J$1[t[3]]>>2,n[2]=(J$1[t[3]]&3)<<6|J$1[t[4]]<<1|J$1[t[5]]>>4,n[3]=(J$1[t[5]]&15)<<4|J$1[t[6]]>>1,n[4]=(J$1[t[6]]&1)<<7|J$1[t[7]]<<2|J$1[t[8]]>>3,n[5]=(J$1[t[8]]&7)<<5|J$1[t[9]],n[6]=J$1[t[10]]<<3|J$1[t[11]]>>2,n[7]=(J$1[t[11]]&3)<<6|J$1[t[12]]<<1|J$1[t[13]]>>4,n[8]=(J$1[t[13]]&15)<<4|J$1[t[14]]>>1,n[9]=(J$1[t[14]]&1)<<7|J$1[t[15]]<<2|J$1[t[16]]>>3,n[10]=(J$1[t[16]]&7)<<5|J$1[t[17]],n[11]=J$1[t[18]]<<3|J$1[t[19]]>>2,n[12]=(J$1[t[19]]&3)<<6|J$1[t[20]]<<1|J$1[t[21]]>>4,n[13]=(J$1[t[21]]&15)<<4|J$1[t[22]]>>1,n[14]=(J$1[t[22]]&1)<<7|J$1[t[23]]<<2|J$1[t[24]]>>3,n[15]=(J$1[t[24]]&7)<<5|J$1[t[25]],n}function Xl(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 Zl=class extends Error{constructor(e){super(`Invalid prefix "${e}". Must be at most 63 ASCII letters [a-z_]`),this.name=`InvalidPrefixError`;}},Ql=class extends Error{constructor(e,t){super(`Invalid TypeId. Prefix mismatch. Expected ${e}, got ${t}`),this.name=`PrefixMismatchError`;}},$l=class extends Error{constructor(e){super(`Invalid TypeId. Prefix cannot be empty when there's a separator: ${e}`),this.name=`EmptyPrefixError`;}},eu=class extends Error{constructor(e){super(`Invalid length. Suffix should have 26 characters, got ${e}`),this.name=`InvalidSuffixLengthError`;}},tu=class extends Error{constructor(e){super(`Invalid suffix. First character "${e}" must be in the range [0-7]`),this.name=`InvalidSuffixCharacterError`;}},nu=class extends Error{constructor(e,t){super(`Cannot convert TypeID of type ${e} to type ${t}`),this.name=`TypeIDConversionError`;}};function ru(e=``,t=``){if(!Xl(e))throw new Zl(e);let n;if(t)n=t;else {let e=new Uint8Array(16);Kl(void 0,e),n=Jl(e);}if(n.length!==26)throw new eu(n.length);if(n[0]>`7`)throw new tu(n[0]);return Yl(n),e===``?n:`${e}_${n}`}function iu(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 $l(e);if(!r)throw new eu(0);if(t&&n!==t)throw new Ql(t,n);return ru(n,r)}function au(e){let t=e.lastIndexOf(`_`);return t===-1?``:e.substring(0,t)}function ou(e){let t=e.lastIndexOf(`_`);return t===-1?e:e.substring(t+1)}var su=class{constructor(e,t=``){this.prefix=e,this.suffix=t;let n=ru(e,t);this.prefix=au(n),this.suffix=ou(n);}getType(){return this.prefix}getSuffix(){return this.suffix}asType(e){let t=this;if(t.prefix!==e)throw new nu(t.prefix,e);return t}toUUIDBytes(){return Yl(this.suffix)}toUUID(){return Rl(this.toUUIDBytes())}toString(){return this.prefix===``?this.suffix:`${this.prefix}_${this.suffix}`}static fromString(e,t){let n=iu(e,t);return new su(au(n),ou(n))}static fromUUIDBytes(e,t){return new su(e,Jl(t))}static fromUUID(e,t){return new su(e,Jl(ql(t)))}};function cu(e=``,t=``){return new su(e,t)}const lu={admission:`adm`,anonymous:`anon`,beneficiary:`ben`,coupon:`cpn`,couponCode:`cod`,customer:`cus`,event:`evt`,eventCollaborator:`ecl`,eventCollaboratorInvite:`evi`,membership:`mem`,order:`ord`,orderItem:`itm`,orderFee:`fee`,permissionScope:`psc`,permissionRole:`prl`,permissionSnapshot:`pss`,payout:`pyt`,payoutDeduction:`pad`,payoutTransfer:`xfr`,promoter:`pmt`,refund:`rfd`,section:`sct`,scan:`scn`,team:`tem`,teamMember:`mbr`,teamInvite:`inv`,teamGateway:`tgw`,tenant:`tnt`,ticket:`tkt`,user:`usr`,venue:`ven`,location:`loc`,request:`req`,walletDevice:`wdv`,schedule:`sch`,session:`ssn`,trackingEvent:`tev`,trackingStats:`sta`,hllShard:`shr`,timeline:`tln`,notification:`ntf`};function uu(e){return cu(lu[e])}const du=`ses_sid`,fu=`ses_aid`;function pu(){return uu(`session`).toString()}function mu(){return uu(`anonymous`).toString()}function hu(e){let t=e.getCookie(du);if(t)return t;let n=pu();return e.setCookie(du,n),n}function gu(e){let t=e.getItem(fu);if(t)return t;let n=mu();return e.setItem(fu,n),n}function _u(e){let t=pu(),n=mu();return e.setCookie(du,t),e.setItem(fu,n),{sessionId:t,anonymousId:n}}const yu=eo().describe(`Date (YYYY-MM-DD)`),bu=k$1().min(1).max(128).optional().describe(`IANA time zone for interpreting date ranges`),xu=F$1({startDate:yu.describe(`Start date (YYYY-MM-DD)`),endDate:yu.describe(`End date (YYYY-MM-DD)`),timeZone:bu}),Su={startDate:yu.optional().describe(`Start date (YYYY-MM-DD)`),endDate:yu.optional().describe(`End date (YYYY-MM-DD)`),timeZone:bu},Cu=e=>!e.startDate&&!e.endDate||!!(e.startDate&&e.endDate);F$1(Su).refine(Cu,{message:`Both startDate and endDate must be provided together, or omit both for all-time data`});function Y$1(e){return F$1(e).extend(xu.shape)}function Tu(e){return F$1({...e,...Su}).refine(Cu,{message:`Both startDate and endDate must be provided together, or omit both for all-time data`})}const X$1=F$1({value:j$1().describe(`Current period value`),previous:j$1().describe(`Comparison period value`),change:j$1().describe(`Percentage change from previous period`),changeType:I$1([`increase`,`decrease`,`unchanged`]).describe(`Direction of change`)}),Eu=F$1({eventId:k$1().describe(`Event identifier`),eventName:k$1().describe(`Event name`),ticketCount:j$1().describe(`Number of tickets sold`),sharePercent:j$1().describe(`Percentage of total tickets`)}),Du=F$1({start:k$1().describe(`Period start date`),end:k$1().describe(`Period end date`)}),Ou=F$1({start:k$1().describe(`Comparison period start date`),end:k$1().describe(`Comparison period end date`)}),ku=I$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]),Au=F$1({date:k$1().describe(`Date (YYYY-MM-DD)`),revenue:j$1().describe(`Revenue in cents`),tickets:j$1().describe(`Tickets sold`)}),ju=Au.extend({orders:j$1().describe(`Orders placed`)}),Mu=F$1({revenue:j$1().describe(`Total revenue for period in cents`),tickets:j$1().describe(`Total tickets for period`)}),Nu=Mu.extend({orders:j$1().describe(`Total orders for period`)}),Pu=F$1({revenue:X$1.describe(`Total revenue in cents`),ticketsSold:X$1.describe(`Number of tickets sold`),averageOrderValue:X$1.describe(`Average order value in cents`),conversionRate:X$1.describe(`Overall conversion rate (%)`),activeEvents:X$1.describe(`Number of active events in period`),uniqueCustomers:X$1.describe(`Unique customers (estimated)`),orderCount:X$1.describe(`Number of orders placed`),pageViews:X$1.describe(`Total page views from tracking`)}),Fu=F$1({events:P$1(Eu),totalTickets:j$1().describe(`Total tickets across all events`)});function Iu(e,t){return Y$1({...Bu(e,t),currency:k$1().optional().describe(`Currency code for revenue metrics`)})}function Lu(e){return F$1({meta:F$1({...e,currency:k$1().describe(`Primary currency code`),currencies:P$1(k$1()).describe(`All currencies with transactions`),dateRange:Du,comparisonRange:Ou}),metrics:Pu})}function Ru(e,t){return Y$1({...Bu(e,t),granularity:ku.optional().default(`DAY`).describe(`Time granularity`),currency:k$1().optional().describe(`Currency filter`)})}function zu(e,t){return Y$1({...Bu(e,t),limit:j$1().optional().default(5).describe(`Maximum number of events to return`)})}function Bu(e,t){return {[e]:k$1().describe(t)}}const Vu=Tu({eventId:k$1().describe(`Event identifier`)}).meta({description:`Event performance summary request`}),Hu=F$1({meta:F$1({eventId:k$1().describe(`Event identifier`),eventName:k$1().describe(`Event name`),currency:k$1().describe(`Currency code (e.g., USD, EUR)`),dateRange:Du.optional().describe(`Present only when startDate/endDate are provided`),comparisonRange:Ou.optional().describe(`Present only when startDate/endDate are provided`)}),metrics:F$1({revenue:X$1.describe(`Total revenue in cents`),ticketsSold:X$1.describe(`Number of tickets sold`),orderCount:X$1.describe(`Number of orders placed`),averageOrderValue:X$1.describe(`Average order value in cents`),conversionRate:X$1.describe(`Conversion rate as percentage`),pageViews:X$1.describe(`Total page/product views`),uniqueVisitors:X$1.describe(`Unique visitors (estimated)`),checkoutStarted:X$1.describe(`Number of checkout started events (external link clicks for external events)`)})}),Uu=Y$1({eventId:k$1().describe(`Event identifier`),granularity:ku.optional().default(`DAY`).describe(`Time granularity for aggregation`),breakdown:I$1([`TOTAL`]).optional().default(`TOTAL`).describe(`Breakdown type (always TOTAL for performance)`),includeBreakdowns:N$1().optional().default(true).describe(`Whether to include admission and section breakdowns in each time bucket`)}),Wu=F$1({meta:F$1({eventId:k$1(),eventName:k$1().describe(`Event name`),currency:k$1().describe(`Currency code`),dateRange:Du,granularity:ku}),series:P$1(F$1({date:k$1().describe(`Date or timestamp`),tickets:j$1().describe(`Tickets sold in period`),revenue:j$1().describe(`Revenue in period (cents)`),admissions:P$1(F$1({id:k$1(),name:k$1(),quantity:j$1()})),sections:P$1(F$1({id:k$1(),name:k$1(),quantity:j$1()}))}))}),Gu=I$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]).describe(`Time granularity for aggregation`),Ku=Y$1({eventId:k$1().describe(`Event identifier`),granularity:Gu.optional().default(`DAY`)}).meta({description:`Event performance time series request`}),qu=F$1({meta:F$1({eventId:k$1(),eventName:k$1().describe(`Event name`),currency:k$1().describe(`Currency code`),dateRange:Du,granularity:Gu}),series:P$1(F$1({date:k$1().describe(`Date or timestamp`),revenue:j$1().describe(`Net revenue in period (cents)`),tickets:j$1().describe(`Tickets sold in period`),orders:j$1().describe(`Completed orders in period`),pageViews:j$1().describe(`Product/page views in period`),visitors:j$1().describe(`Unique visitors in period (estimated)`),checkoutStarted:j$1().describe(`Checkout started events in period`),conversionRate:j$1().describe(`Orders divided by page views in period (%)`)}))}),Ju=Y$1({eventId:k$1().describe(`Event identifier`)}),Yu=F$1({meta:F$1({eventId:k$1(),eventName:k$1().describe(`Event name`),currency:k$1().describe(`Currency code`),dateRange:Du}),totals:F$1({entered:j$1().describe(`Total entered funnel (product viewed)`),completed:j$1().describe(`Total completed (orders)`),overallConversionRate:j$1().describe(`Overall conversion rate (%)`),totalDropped:j$1().describe(`Total dropped off`)}),stages:P$1(F$1({id:k$1().describe(`Funnel stage identifier`),name:k$1().describe(`Human-readable stage name`),count:j$1().describe(`Number of events at this stage`),conversionRate:j$1().describe(`Conversion rate from first stage (%)`),dropoffRate:j$1().describe(`Dropoff rate from previous stage (%)`)}))});F$1({meta:F$1({eventId:k$1(),dimension:k$1().describe(`Dimension type`),dateRange:Du,limit:j$1().optional()}),data:P$1(F$1({name:k$1().describe(`Dimension value (e.g., campaign name)`),views:j$1().describe(`Page/product views`),clicks:j$1().describe(`Ticket link clicks`).optional(),conversions:j$1().describe(`Completed orders`),revenue:j$1().describe(`Total revenue in cents`),conversionRate:j$1().describe(`Conversion rate (%)`),share:j$1().describe(`Percentage share of total`).optional()})),totals:F$1({views:j$1(),conversions:j$1(),revenue:j$1()}).optional()});const Zu=I$1([`HOUR`,`DAY`,`WEEK`,`MONTH`]),Qu=F$1({eventId:k$1().describe(`Event identifier`),eventName:k$1().describe(`Event name`),currency:k$1().describe(`Currency code (e.g., USD, EUR)`),dateRange:Du}),$u=Qu.extend({limit:j$1().describe(`Maximum number of results returned`)});Y$1({eventId:k$1(),granularity:Zu.optional()});F$1({granularity:Zu,data:P$1(F$1({date:k$1(),revenue:j$1(),ticketsSold:j$1()}))});const nd=Y$1({eventId:k$1(),limit:j$1().min(1).max(100).optional().default(10)}),rd=F$1({meta:$u,totals:F$1({uses:j$1().describe(`Total coupon uses across all coupons`),revenue:j$1().describe(`Total revenue from coupon-discounted orders (cents)`)}),coupons:P$1(F$1({id:k$1().describe(`Coupon code identifier`),code:k$1().describe(`Coupon code`),uses:j$1().describe(`Number of times this coupon was used`),revenue:j$1().describe(`Revenue from this coupon (cents)`),discount:k$1().describe(`Discount amount or percentage`),share:j$1().describe(`Share of total coupon uses (%)`)})).describe(`Coupons sorted by uses descending`)}),id=Y$1({eventId:k$1(),limit:j$1().min(1).max(100).optional().default(10)}),ad=F$1({data:P$1(F$1({campaign:k$1(),views:j$1(),visitors:j$1(),clicks:j$1().optional(),orders:j$1(),tickets:j$1(),revenue:j$1(),conversionRate:j$1(),sharePercent:j$1()})),totalOrders:j$1(),totalTickets:j$1(),totalRevenue:j$1()}),od=Y$1({eventId:k$1(),limit:j$1().min(1).max(100).optional().default(10)}),sd=F$1({meta:$u,totals:F$1({views:j$1().describe(`Total views across all mediums`),visitors:j$1().describe(`Total unique visitors across all mediums`),orders:j$1().describe(`Total orders across all mediums`),tickets:j$1().describe(`Total tickets across all mediums`),revenue:j$1().describe(`Total revenue across all mediums (cents)`)}),mediums:P$1(F$1({id:k$1().describe(`Medium identifier (e.g., 'social', 'email')`),name:k$1().describe(`Medium name`),views:j$1().describe(`Views from this medium`),visitors:j$1().describe(`Unique visitors from this medium`),clicks:j$1().optional().describe(`Ticket link clicks`),orders:j$1().describe(`Orders from this medium`),tickets:j$1().describe(`Tickets from this medium`),revenue:j$1().describe(`Revenue from this medium (cents)`),conversionRate:j$1().describe(`Conversion rate (%)`),share:j$1().describe(`Share of total orders (%)`)})).describe(`Mediums sorted by orders descending`)}),cd=Y$1({eventId:k$1()}),ld=F$1({meta:Qu,totals:F$1({views:j$1().describe(`Total views across all devices`),visitors:j$1().describe(`Total unique visitors across all devices`),revenue:j$1().describe(`Total revenue across all devices (cents)`),orders:j$1().describe(`Total orders across all devices`),tickets:j$1().describe(`Total tickets across all devices`)}),devices:P$1(F$1({id:I$1([`MOBILE`,`DESKTOP`,`TABLET`]).describe(`Device type`),name:k$1().describe(`Human-readable device name`),views:j$1().optional().describe(`Page views from this device`),visitors:j$1().describe(`Unique visitors from this device`),revenue:j$1().describe(`Revenue from this device (cents)`),clicks:j$1().optional().describe(`Ticket link clicks`),orders:j$1().describe(`Orders from this device`),tickets:j$1().describe(`Tickets from this device`),conversionRate:j$1().describe(`Conversion rate (%)`),share:j$1().describe(`Share of total orders (%)`)})).describe(`Devices sorted by orders descending`)}),ud=Y$1({eventId:k$1(),limit:j$1().min(1).max(100).optional().default(10)}),dd=F$1({meta:$u,totals:F$1({views:j$1().describe(`Total views across all browsers`),visitors:j$1().describe(`Total unique visitors across all browsers`),orders:j$1().describe(`Total orders across all browsers`),tickets:j$1().describe(`Total tickets across all browsers`),revenue:j$1().describe(`Total revenue across all browsers (cents)`)}),browsers:P$1(F$1({id:k$1().describe(`Browser identifier`),name:k$1().describe(`Human-readable browser name`),views:j$1().describe(`Page views from this browser`),clicks:j$1().optional().describe(`Ticket link clicks`),visitors:j$1().describe(`Unique visitors from this browser`),orders:j$1().describe(`Orders from this browser`),tickets:j$1().describe(`Tickets from this browser`),revenue:j$1().describe(`Revenue from this browser (cents)`),conversionRate:j$1().describe(`Conversion rate (%)`),share:j$1().describe(`Share of total visitors (%)`)})).describe(`Browsers sorted by visitors descending`)}),fd=Y$1({eventId:k$1(),limit:j$1().min(1).max(100).optional().default(10)}),pd=F$1({meta:$u,totals:F$1({views:j$1().describe(`Total views across all locations`),visitors:j$1().describe(`Total unique visitors across all locations`),orders:j$1().describe(`Total orders across all locations`),tickets:j$1().describe(`Total tickets across all locations`),revenue:j$1().describe(`Total revenue across all locations (cents)`)}),locations:P$1(F$1({id:k$1().describe(`Location/region code (e.g., 'US-CA', 'GB')`),name:k$1().describe(`Human-readable location name`),views:j$1().describe(`Page views from this location`),visitors:j$1().describe(`Unique visitors from this location`),clicks:j$1().optional().describe(`Ticket link clicks`),orders:j$1().describe(`Orders from this location`),tickets:j$1().describe(`Tickets from this location`),revenue:j$1().describe(`Revenue from this location (cents)`),conversionRate:j$1().describe(`Conversion rate (%)`),share:j$1().describe(`Share of total views (%)`)})).describe(`Locations sorted by views descending`)}),md=Y$1({eventId:k$1(),limit:j$1().min(1).max(100).optional().default(10)}),hd=F$1({meta:$u,totals:F$1({sessions:j$1().describe(`Total sessions across all sources`),visitors:j$1().describe(`Total unique visitors across all sources`),orders:j$1().describe(`Total orders across all sources`),tickets:j$1().describe(`Total tickets across all sources`),revenue:j$1().describe(`Total revenue across all sources (cents)`)}),sources:P$1(F$1({id:k$1().describe(`Traffic source identifier`),name:k$1().describe(`Traffic source name`),referrer:k$1().describe(`Referrer URL or domain`),sessions:j$1().describe(`Sessions from this source`),visitors:j$1().describe(`Unique visitors from this source`),clicks:j$1().optional().describe(`Ticket link clicks`),orders:j$1().describe(`Orders from this source`),tickets:j$1().describe(`Tickets from this source`),conversionRate:j$1().describe(`Conversion rate (%)`),revenue:j$1().describe(`Revenue from this source (cents)`),share:j$1().describe(`Share of total sessions (%)`)})).describe(`Traffic sources sorted by sessions descending`)}),gd=F$1({eventId:k$1(),includeAdmission:N$1().optional().default(true),includeSection:N$1().optional().default(true),granularity:I$1([`HOUR`,`MINUTE`]).optional()}),_d=F$1({totalTickets:j$1(),checkedIn:j$1(),notCheckedIn:j$1(),checkinRate:j$1()}),vd=_d.extend({admissionId:k$1(),admissionName:k$1()}),yd=_d.extend({sectionId:k$1(),sectionName:k$1()}),bd=ls([_d.extend({byAdmission:P$1(vd),bySection:P$1(yd)}),F$1({granularity:I$1([`HOUR`,`MINUTE`]),totalTickets:j$1(),data:P$1(F$1({timestamp:k$1(),checkedIn:j$1(),rate:j$1(),checkinsThisPeriod:j$1()})),byAdmission:P$1(F$1({admissionId:k$1(),admissionName:k$1(),data:P$1(F$1({timestamp:k$1(),checkedIn:j$1(),rate:j$1()}))})).optional(),bySection:P$1(F$1({sectionId:k$1(),sectionName:k$1(),data:P$1(F$1({timestamp:k$1(),checkedIn:j$1(),rate:j$1()}))})).optional()})]),xd=Iu(`promoterId`,`Promoter identifier`),Sd=Lu({promoterId:k$1().describe(`Promoter identifier`),promoterName:k$1().describe(`Promoter name`),teamId:k$1().describe(`Team identifier`),teamName:k$1().describe(`Team name`)}),Cd=Ru(`promoterId`,`Promoter identifier`),wd=F$1({meta:F$1({promoterId:k$1(),dateRange:Du,granularity:ku}),currencies:P$1(F$1({currency:k$1().describe(`Currency code (e.g., USD, EUR)`),series:P$1(Au),totals:Mu})).describe(`Time-series data grouped by currency`)}),Td=zu(`promoterId`,`Promoter identifier`),Ed=Fu,Dd=Iu(`teamId`,`Team identifier`),Od=Lu({teamId:k$1().describe(`Team identifier`),teamName:k$1().describe(`Team name`)}),kd=Ru(`teamId`,`Team identifier`),Ad=F$1({meta:F$1({teamId:k$1(),dateRange:Du,granularity:ku}),currencies:P$1(F$1({currency:k$1().describe(`Currency code (e.g., USD, EUR)`),series:P$1(ju),totals:Nu})).describe(`Time-series data grouped by currency`)});Y$1({teamId:k$1().describe(`Team identifier`),limit:j$1().optional().default(10).describe(`Number of events to return`),sortBy:I$1([`revenue`,`tickets`,`conversion`]).optional().default(`revenue`).describe(`Sort metric`)});F$1({meta:F$1({teamId:k$1(),dateRange:F$1({start:k$1(),end:k$1()}),limit:j$1(),sortBy:k$1()}),data:P$1(F$1({eventId:k$1().describe(`Event identifier`),eventName:k$1().describe(`Event name`),eventDate:k$1().describe(`Event date`).optional(),status:k$1().describe(`Event status`),revenue:j$1().describe(`Total revenue in cents`),tickets:j$1().describe(`Tickets sold`),views:j$1().describe(`Page views`),conversionRate:j$1().describe(`Conversion rate (%)`),contribution:j$1().describe(`% of promoter's total revenue`)})),totals:F$1({events:j$1().describe(`Total events in period`),revenue:j$1().describe(`Combined revenue`),tickets:j$1().describe(`Combined tickets`)})});const Nd=zu(`teamId`,`Team identifier`),Pd=Fu,Fd=Y$1({teamId:k$1().describe(`Team identifier`)}),Id=F$1({stages:P$1(F$1({stageId:k$1().describe(`Funnel stage identifier`),stageLabel:k$1().describe(`Human-readable stage name`),count:j$1().describe(`Number of events at this stage`),conversionRate:j$1().describe(`Conversion rate from first stage (%)`),dropoffPercent:j$1().describe(`Dropoff rate from previous stage (%)`)}))}),Ld=Y$1({teamId:k$1().describe(`Team identifier`),groupBy:I$1([`HOUR`,`DAY_OF_WEEK`,`DAY`,`WEEK`,`MONTH`]).optional().default(`HOUR`).describe(`Time breakdown for aggregation`),timeZone:k$1().optional().default(`UTC`).describe(`IANA timezone for hour/day aggregation (e.g., 'America/New_York')`)}),Rd=F$1({groupBy:I$1([`HOUR`,`DAY_OF_WEEK`,`DAY`,`WEEK`,`MONTH`]).describe(`The grouping used for aggregation`),buckets:P$1(F$1({key:ls([j$1(),k$1()]).describe(`Bucket key (hour 0-23, day 0-6, or date string)`),label:k$1().describe(`Human-readable label`),orderCount:j$1().describe(`Number of orders`),sharePercent:j$1().describe(`Percentage of total orders`)})),totalOrders:j$1().describe(`Total orders across all buckets`)}),zd=Y$1({teamId:k$1().describe(`Team identifier`),limit:j$1().optional().default(10).describe(`Maximum number of admissions to return`)}),Bd=F$1({admissions:P$1(F$1({admissionId:k$1().describe(`Admission identifier`),admissionName:k$1().describe(`Admission name`),ticketCount:j$1().describe(`Number of tickets sold`),sharePercent:j$1().describe(`Percentage of total tickets`)})),totalTickets:j$1().describe(`Total tickets across all admissions`)}),Vd=Y$1({teamId:k$1().describe(`Team identifier`),type:I$1([`campaign`,`medium`,`source`]).describe(`Dimension type to analyze`),limit:j$1().optional().default(20).describe(`Maximum number of results to return`)}),Hd=F$1({dimensionType:I$1([`campaign`,`medium`,`source`]).describe(`The dimension type analyzed`),data:P$1(F$1({dimensionValue:k$1().describe(`The dimension value (e.g., campaign name)`),dimensionLabel:k$1().describe(`Human-readable label`),views:j$1().describe(`Total page views`),conversions:j$1().describe(`Total conversions (orders)`),conversionRate:j$1().describe(`Conversion rate (%)`),sharePercent:j$1().describe(`Share of total conversions (%)`)})),totalConversions:j$1().describe(`Total conversions across all dimensions`)}),Ud=F$1({teamId:k$1().describe(`Team identifier`),startAt:D$1().describe(`Inclusive period start timestamp`),endAt:D$1().describe(`Exclusive period end timestamp`)}),Wd=F$1({currency:k$1().describe(`Currency code`),disputedOrders:j$1().describe(`Orders currently marked as disputed`),orderCount:j$1().describe(`Successful orders`),refunded:j$1().describe(`Refunded amount in cents`),refundCount:j$1().describe(`Orders with refunded value`),refundRate:j$1().describe(`Refunded order rate as a percentage`),revenue:j$1().describe(`Total order value in cents`),ticketsSold:j$1().describe(`Tickets sold`)}),Gd=Wd.omit({currency:true}),Kd=F$1({currencies:P$1(Wd),comparison:F$1({totals:Gd}),meta:F$1({endAt:k$1().describe(`Exclusive period end timestamp`),startAt:k$1().describe(`Inclusive period start timestamp`),teamId:k$1().describe(`Team identifier`)}),totals:Gd}),qd=F$1({teamId:k$1().describe(`Team identifier`)}),Jd=ls([qd.extend({startDate:yu.describe(`Start date (YYYY-MM-DD)`),endDate:yu.describe(`End date (YYYY-MM-DD)`)}),qd.extend({startDate:qo().optional(),endDate:qo().optional()})]),Yd=F$1({amount:j$1().describe(`Payout net amount in cents`),count:j$1().describe(`Number of payouts in this currency`),currency:k$1().describe(`Currency code`)}),Xd=F$1({amount:j$1().describe(`Payout net amount in cents`),currency:k$1().nullable().describe(`Currency code`),dueAt:k$1().nullable().describe(`Payout due timestamp`),payoutId:k$1().nullable().describe(`Payout identifier`)}),Zd=F$1({amount:j$1().describe(`Payout net amount in cents`),currency:k$1().nullable().describe(`Currency code`),paidAt:k$1().nullable().describe(`Payout paid timestamp`),payoutId:k$1().nullable().describe(`Payout identifier`)}),Qd=F$1({upcoming:F$1({count:j$1().describe(`Upcoming payouts matching the request`),pendingApproval:j$1().describe(`Upcoming payouts still awaiting approval`),totals:P$1(Yd).describe(`Upcoming payout totals by currency`),next:Xd}),lastPaid:Zd}),$d=Y$1({teamId:k$1().describe(`Team identifier`),granularity:I$1([`DAY`,`WEEK`,`MONTH`]).optional().default(`DAY`).describe(`Time granularity for aggregation`)}),ef=F$1({granularity:I$1([`DAY`,`WEEK`,`MONTH`]).describe(`The granularity used`),series:P$1(F$1({date:k$1().describe(`Date key (YYYY-MM-DD, YYYY-Www, or YYYY-MM)`),label:k$1().describe(`Human-readable label`),productViewed:j$1().describe(`Page views`),productAdded:j$1().describe(`Add to cart events`),checkoutStarted:j$1().describe(`Checkout started events`),orderCompleted:j$1().describe(`Completed orders`)})),totals:F$1({productViewed:j$1().describe(`Total page views`),productAdded:j$1().describe(`Total add to cart`),checkoutStarted:j$1().describe(`Total checkouts started`),orderCompleted:j$1().describe(`Total orders completed`),uniqueVisitors:j$1().describe(`Unique visitors (estimated via HyperLogLog, ~0.8% error)`)})}),tf=I$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(`.`)),nf=tf.enum,rf=F$1({product_id:k$1().optional().describe(`admission_id in ticketing context`),sku:k$1().optional().describe(`admission_id or admission_name`),category:k$1().optional().describe(`event_name or "Admission"`),name:k$1().optional().describe(`admission_name`),brand:k$1().optional().describe(`promoter_name`),variant:k$1().optional().describe(`section_name`),price:j$1().optional().describe(`admission price (base + booking fee)`),quantity:j$1().optional().describe(`number of tickets`),coupon:k$1().optional().describe(`coupon code applied`),position:j$1().optional().describe(`position in list`),url:k$1().optional().describe(`URL to event/admission page`),image_url:k$1().optional().describe(`event image`),admission_id:k$1().optional().describe(`Explicit admission ID`),section_id:k$1().optional().describe(`Section ID if applicable`),event_id:k$1().optional().describe(`Event ID for this admission`),promoter_id:k$1().optional().describe(`Promoter ID`),price_base:j$1().nullish().describe(`Base price before fees`),price_booking_fee:j$1().nullish().describe(`Booking fee`),capacity:j$1().optional().describe(`Total capacity for this admission`),available:j$1().optional().describe(`Remaining tickets available`),sold:j$1().optional().describe(`Tickets already sold`)}),af=F$1({type:k$1(),value:k$1()}),of=F$1({type:k$1(),value:k$1()}),sf=F$1({query:ls([k$1(),hs(k$1(),$o())]).optional(),list_id:k$1().optional(),category:k$1().optional(),filters:P$1(af).optional(),sorts:P$1(of).optional(),promotion_id:k$1().optional(),creative:k$1().optional(),name:k$1().optional(),position:ls([k$1(),j$1()]).optional(),product_id:k$1().optional(),sku:k$1().optional(),brand:k$1().optional(),variant:k$1().optional(),price:j$1().optional(),quantity:j$1().optional(),coupon:k$1().optional(),currency:k$1().optional(),value:j$1().optional(),url:k$1().optional(),image_url:k$1().optional(),cart_id:k$1().optional(),step:j$1().optional(),shipping_method:k$1().optional(),payment_method:k$1().optional(),ticketing_mode:I$1([`internal`,`external`]).optional(),external_ticket_url:k$1().optional(),external_ticket_domain:k$1().optional(),cta_surface:k$1().optional(),order_id:k$1().optional(),affiliation:k$1().optional(),subtotal:j$1().optional(),total:j$1().optional(),revenue:j$1().optional(),shipping:j$1().optional(),tax:j$1().optional(),discount:j$1().optional(),coupon_id:k$1().optional(),coupon_name:k$1().optional(),reason:k$1().optional(),wishlist_id:k$1().optional(),wishlist_name:k$1().optional(),share_via:k$1().optional(),share_message:k$1().optional(),recipient:k$1().optional(),review_id:k$1().optional(),review_body:k$1().optional(),rating:k$1().optional(),products:P$1(rf).optional(),event_id:k$1().optional().describe(`ID of the ticketed event (evt_xxx)`),event_name:k$1().optional().describe(`Name of the ticketed event`),event_slug:k$1().optional().describe(`URL slug of event`),event_starts_at:U$2.optional().describe(`When the event starts (naive datetime, no timezone)`),event_ends_at:U$2.optional().describe(`When the event ends (naive datetime, no timezone)`),event_status:I$1([`UPCOMING`,`LIVE`,`ENDED`,`CANCELLED`]).optional(),event_visibility:I$1([`PUBLIC`,`PRIVATE`]).optional(),event_location:k$1().optional().describe(`Venue name`),event_city:k$1().optional().describe(`Venue city`),event_country:k$1().optional().describe(`Venue country`),promoter_id:k$1().optional().describe(`ID of the promoter (pmt_xxx)`),promoter_name:k$1().optional().describe(`Name of the promoter`),promoter_slug:k$1().optional().describe(`URL slug of promoter`),admission_id:k$1().optional().describe(`ID of admission type (adm_xxx)`),admission_name:k$1().optional().describe(`Name of admission (e.g., "General Admission")`),admission_capacity:j$1().optional().describe(`Total capacity for this admission`),admission_available:j$1().optional().describe(`Tickets still available`),admission_sold:j$1().optional().describe(`Tickets already sold`),section_id:k$1().optional().describe(`ID of section (sct_xxx)`),section_name:k$1().optional().describe(`Name of section (e.g., "VIP", "General")`),section_capacity:j$1().optional().describe(`Total capacity for this section`),section_available:j$1().optional().describe(`Spots still available in section`),ticket_id:k$1().optional().describe(`Individual ticket ID (tkt_xxx)`),ticket_status:I$1([`VALID`,`REDEEMED`,`CANCELLED`]).optional(),tickets_quantity:j$1().optional().describe(`Number of tickets in transaction`),customer_id:k$1().optional().describe(`Customer ID (cus_xxx)`),customer_email:k$1().optional().describe(`Customer email`),customer_first_name:k$1().optional(),customer_last_name:k$1().optional(),price_base:j$1().nullish().describe(`Base price before fees`),price_booking_fee:j$1().nullish().describe(`Booking fee amount`),price_discount_amount:j$1().nullish().describe(`Discount amount applied`),sale_starts_at:U$2.optional().describe(`When tickets go on sale (naive datetime, no timezone)`),sale_ends_at:U$2.optional().describe(`When ticket sales end (naive datetime, no timezone)`),entry_starts_at:U$2.optional().describe(`When entry to event begins (naive datetime, no timezone)`),entry_ends_at:U$2.optional().describe(`When entry to event ends (naive datetime, no timezone)`),funnel_step:k$1().optional().describe(`Current funnel step (e.g., "browse", "cart", "checkout")`),time_to_purchase:j$1().optional().describe(`Seconds from first view to purchase`),session_duration:j$1().optional().describe(`Total session duration in seconds`),referrer_type:I$1([`DIRECT`,`SOCIAL`,`EMAIL`,`SEARCH`,`REFERRAL`,`AD`]).optional(),campaign_id:k$1().optional().describe(`Marketing campaign ID`),affiliate_id:k$1().optional().describe(`Affiliate partner ID`),promo_code_used:k$1().optional().describe(`Promotional code applied`),platform:I$1([`WEB`,`MOBILE_WEB`,`IOS`,`ANDROID`]).optional(),app_version:k$1().optional(),device_type:I$1([`MOBILE`,`TABLET`,`DESKTOP`]).optional()}),cf=F$1({session_id:k$1(),user_id:k$1().optional(),anonymous_id:k$1().optional(),utm_source:k$1().optional(),utm_medium:k$1().optional(),utm_campaign:k$1().optional(),utm_term:k$1().optional(),utm_content:k$1().optional(),page:F$1({url:k$1(),path:k$1(),title:k$1()}),referrer:k$1().optional(),user_agent:k$1().optional(),ip:k$1().optional(),geo:F$1({country:k$1().optional().describe(`Country code (e.g., "AU")`),countryName:k$1().optional().describe(`Country name (e.g., "Australia")`),region:k$1().optional().describe(`State/province code`),regionName:k$1().optional().describe(`State/province name (e.g., "New South Wales")`),city:k$1().optional().describe(`City name`),latitude:k$1().optional().describe(`Latitude`),longitude:k$1().optional().describe(`Longitude`)}).optional(),fbc:k$1().optional().describe(`Facebook click ID`),fbp:k$1().optional().describe(`Facebook browser ID`),ttclid:k$1().optional().describe(`TikTok click ID`)}),lf=F$1({id:k$1(),eventId:k$1().min(1).describe(`Event being tracked (evt_123)`),teamId:k$1().min(1).describe(`Team ID (team_123)`),promoterId:k$1().min(1).describe(`Promoter ID (pmt_123)`),eventType:tf,timestamp:k$1(),date:k$1().describe(`YYYY-MM-DD`),hour:j$1().int().min(0).max(23),properties:sf,context:cf,productId:k$1().optional(),createdAt:k$1(),updatedAt:k$1()}),uf=lf.omit({id:true,timestamp:true,date:true,hour:true,createdAt:true,updatedAt:true}).extend({messageId:k$1().min(1).optional().meta({description:`Analytics message id for retry-safe event delivery and linking.`}),occurredAt:D$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`}),df=F$1({legacyOrgId:k$1().min(1),legacyEventId:k$1().min(1),legacyTeamId:k$1().min(1),legacyEventName:k$1().optional(),legacyEventSlug:k$1().optional(),legacyEventCreatedAt:ls([k$1(),as(),Yo()]).optional(),legacyTeamCreatedAt:ls([k$1(),as(),Yo()]).optional()}),ff=F$1({eventName:k$1().min(1).optional(),eventType:tf.optional(),eventId:k$1().min(1).optional(),teamId:k$1().min(1).optional(),promoterId:k$1().min(1).optional(),properties:hs(k$1(),$o()).optional(),context:cf.partial().optional(),legacyContext:df.optional()}).passthrough().meta({description:`Compatibility schema for legacy Sash analytics payloads that require server-side ID normalization`}),pf=ls([uf,ff]).meta({description:`Analytics ingress schema accepting both canonical payloads and legacy Sash-compatible payloads`});Tu({eventId:k$1().meta({description:`Event ID to get tracking events for`}),limit:L$1().int().positive().optional().meta({description:`Maximum number of events to return`})}).meta({description:`Schema for retrieving tracking events for an event`});F$1({id:k$1(),email:Co(),firstName:k$1(),lastName:k$1(),imageUrl:k$1().url().optional(),tenantId:k$1(),createdAt:k$1().datetime(),updatedAt:k$1().datetime()});const Of=I$1([`AIRWALLEX`,`STRIPE`]),Af=F$1({id:k$1().readonly().meta({examples:[b$1.Beneficiary.id],description:`A unique identifier for this beneficiary.`}),createdAt:D$1().readonly().meta({examples:[b$1.Beneficiary.createdAt],description:`Timestamp in ISO 8601 format when this beneficiary was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.Beneficiary.updatedAt],description:`Timestamp in ISO 8601 format when this beneficiary was last updated.`}),name:k$1().meta({examples:[b$1.Beneficiary.name],description:`The account name for this beneficiary.`}),currency:z$2.meta({examples:[b$1.Beneficiary.currency],description:`Three-letter ISO 4217 currency code for payouts.`}),gateway:Of.meta({examples:[`STRIPE`],description:`The payment gateway used for processing payouts.`}),gatewayId:k$1().meta({examples:[b$1.Beneficiary.gatewayId],description:`The identifier assigned by the payment gateway to this account.`}),teamId:k$1().meta({description:`Team that owns this beneficiary account.`}),teamIds:P$1(k$1()).meta({examples:[[]],description:`List of team IDs this beneficiary is assigned to. Empty array means available to all teams.`}),venueIds:P$1(k$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`}),jf=F$1({city:k$1().optional(),country_code:k$1(),postcode:k$1().optional(),state:k$1().optional(),street_address:k$1().optional()}),Mf=F$1({account_currency:k$1(),account_name:k$1(),account_number:k$1().optional(),account_routing_type1:k$1().optional(),account_routing_value1:k$1().optional(),account_routing_type2:k$1().optional(),account_routing_value2:k$1().optional(),bank_account_category:k$1().optional(),bank_branch:k$1().optional(),bank_country_code:k$1(),bank_name:k$1().optional(),bank_street_address:k$1().optional(),binding_mobile_number:k$1().optional(),fingerprint:k$1().optional(),iban:k$1().optional(),local_clearing_system:k$1().optional(),swift_code:k$1().optional(),transaction_reference:k$1().optional(),account_identifier_type:k$1().optional(),account_identifier_value:k$1().optional()}),Nf=F$1({transfer_methods:P$1(I$1([`SWIFT`,`LOCAL`])).meta({examples:[[`LOCAL`]],description:`Transfer methods supported for this beneficiary`}),beneficiary:F$1({company_name:k$1().optional(),date_of_birth:k$1().optional(),entity_type:k$1().meta({examples:[`COMPANY`],description:`Whether the beneficiary is PERSONAL or COMPANY`}),first_name:k$1().optional(),last_name:k$1().optional(),address:jf,bank_details:Mf,additional_info:F$1({personal_email:Co().optional()}).optional()}).meta({description:`Beneficiary details including personal/company info, address, and bank details`})}).meta({description:`Complete beneficiary request structure for Airwallex validation`}),Pf=Nf.extend({id:k$1().optional()}),Ff=Af.omit({id:true,createdAt:true,updatedAt:true,currency:true}).extend({currency:z$2.meta({examples:[b$1.Beneficiary.currency],description:`Three-letter ISO 4217 currency code for payouts to this beneficiary account`}),airwallex:Pf.optional().meta({examples:[b$1.AirwallexBeneficiary],description:`Airwallex-specific beneficiary details including bank account information and address (required when gateway is AIRWALLEX)`}),teamIds:P$1(k$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:P$1(k$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`}),If=Af.pick({id:true}).meta({description:`Schema for retrieving a single beneficiary by its unique identifier`}),Lf=If.meta({description:`Schema for deleting a beneficiary account - requires the beneficiary ID`}),Rf=F$1({teamId:k$1().optional().meta({examples:[b$1.Team.id],description:`Optional identifier of the team whose beneficiaries to list. When provided, only beneficiaries for that team are returned.`}),gateway:I$1([`AIRWALLEX`,`STRIPE`]).optional().meta({examples:[b$1.Beneficiary.gateway],description:`Filter beneficiaries by payment gateway provider (optional)`}),currency:z$2.optional().meta({examples:[b$1.Beneficiary.currency],description:`Filter beneficiaries by currency code (optional)`}),query:k$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:wc(`beneficiaries`).optional(),cursor:k$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`}),zf=G$2(Af,`beneficiaries`),Bf=F$1({beneficiary:Af}),Vf=F$1({min:j$1().optional().meta({description:`Minimum number of time units for the transfer`}),max:j$1().optional().meta({description:`Maximum number of time units for the transfer`}),unit:k$1().optional().meta({examples:[`day`],description:`Time unit (e.g., 'day', 'hour')`})}).meta({description:`Expected transfer completion time range`}),Hf=F$1({min:j$1().optional().meta({description:`Minimum transfer amount`}),max:j$1().optional().meta({description:`Maximum transfer amount`})}).meta({description:`Transfer amount limits`}),Uf=F$1({label:k$1().meta({description:`Display label for the option`}),value:k$1().meta({description:`Value to submit when selected`}),flightTime:Vf.optional().meta({description:`Expected transfer time for TRANSFER_METHOD options`}),transferLimit:Hf.optional().meta({description:`Transfer amount limits for TRANSFER_METHOD options`}),processingTime:k$1().optional().meta({description:`Human-readable processing time description`})}).meta({description:`A selectable option in a form field`}),Wf=F$1({type:I$1([`INPUT`,`SELECT`,`RADIO`,`TRANSFER_METHOD`,`DYNAMIC_SELECT`]).meta({examples:[`INPUT`],description:`The type of form input to render`}),label:k$1().optional().meta({description:`Display label for the field`}),placeholder:k$1().optional().meta({description:`Placeholder text for input fields`}),description:k$1().optional().meta({description:`Detailed description of the field`}),tip:k$1().optional().meta({description:`Tooltip information shown on hover`}),example:k$1().optional().meta({description:`Example value for the field`}),default:k$1().optional().meta({description:`Default value to pre-populate the field`}),key:k$1().optional().meta({description:`Unique key identifier for the field`}),options:P$1(Uf).optional().meta({description:`Available options for SELECT and RADIO field types`}),refresh:N$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`}),Gf=F$1({pattern:k$1().optional().meta({description:`Regex pattern for field validation`}),type:k$1().optional().meta({description:`Validation type identifier`})}).meta({description:`Validation rules for a form field`}),Kf=F$1({path:k$1().meta({examples:[`beneficiary.bank_details.account_number`],description:`Dot-notation path to the field in the beneficiary request object`}),enabled:N$1().meta({examples:[true],description:`Whether this field should be displayed`}),required:N$1().meta({examples:[true],description:`Whether this field is required for submission`}),field:Wf.optional().meta({description:`Field definition with type, label, and options`}),rule:Gf.optional().meta({description:`Validation rules for the field`})}).meta({description:`A single field in the beneficiary form schema with display and validation rules`}),qf=F$1({bankCountryCode:k$1().regex(/^[A-Z]{2}$/).meta({examples:[`AU`],description:`Two-letter ISO 3166-1 alpha-2 country code for the bank location`}),accountCurrency:z$2.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code for the beneficiary account`}),entityType:I$1([`PERSONAL`,`COMPANY`]).meta({examples:[`COMPANY`],description:`Whether the beneficiary is an individual or a company`}),transferMethod:I$1([`LOCAL`,`SWIFT`]).optional().meta({examples:[`LOCAL`],description:`Transfer method: SWIFT for international wire transfers, LOCAL for domestic transfers`}),localClearingSystem:k$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:hs(k$1(),k$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.`})}).meta({description:`Parameters to fetch the form schema for a beneficiary.`}),Jf=F$1({fields:P$1(Kf).meta({description:`Array of form fields with their display and validation configuration`}),selectedTransferMethod:I$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:k$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`}),Yf=_$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(qf.strict()).output(Jf),Xf=F$1({source:k$1().meta({examples:[`beneficiary.bank_details.account_number`],description:`Dot-notation path to the field that failed validation`}),code:k$1().meta({examples:[`001`],description:`Airwallex validation error code`}),message:k$1().meta({examples:[`This field is required`],description:`Human-readable error message`})}).meta({description:`Details about a single validation error for a field`}),Zf=Nf.meta({description:`Beneficiary request data to validate against Airwallex rules before creating`}),Qf=F$1({valid:N$1().meta({examples:[true],description:`Whether the beneficiary request passed all validation rules`}),errors:P$1(Xf).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`}),$f=_$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(Zf.strict()).output(Qf),ep=_$1.route({method:`GET`,path:`/events/{eventId}/admissions/{id}`,summary:`Get admission by ID`,tags:[`Admissions`]}).input(Sl$1.strict()).output(Ol),tp=_$1.route({method:`POST`,path:`/events/{eventId}/admissions`,summary:`Create a new admission`,tags:[`Admissions`]}).input(bl$1.strict()).output(Ol),np=_$1.route({method:`PUT`,path:`/events/{eventId}/admissions/{id}`,summary:`Update an admission`,tags:[`Admissions`]}).input(kl.strict()).output(Ol);var rp={get:ep,list:_$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(Cl$1.strict()).output(wl$1),create:tp,update:np,remove:_$1.route({method:`DELETE`,path:`/events/{eventId}/admissions/{id}`,summary:`Delete an admission`,tags:[`Admissions`]}).input(xl$1.strict()).output(Ol),quote:_$1.route({method:`POST`,path:`/events/{eventId}/admissions/quote`,summary:`Create an admission quote`,tags:[`Admissions`]}).input(El$1.strict()).output(Dl$1)},ip={track:_$1.route({method:`POST`,path:`/analytics/track`,summary:`Track event`,tags:[`Analytics`]}).input(pf).output(lf),page:_$1.route({method:`POST`,path:`/analytics/page`,summary:`Page event`,tags:[`Analytics`]}).input(pf).output(lf),identify:_$1.route({method:`POST`,path:`/analytics/identify`,summary:`Identify event`,tags:[`Analytics`]}).input(pf).output(lf),alias:_$1.route({method:`POST`,path:`/analytics/alias`,summary:`Alias event`,tags:[`Analytics`]}).input(pf).output(lf),group:_$1.route({method:`POST`,path:`/analytics/group`,summary:`Group event`,tags:[`Analytics`]}).input(pf).output(lf),screen:_$1.route({method:`POST`,path:`/analytics/screen`,summary:`Screen event`,tags:[`Analytics`]}).input(pf).output(lf)};const ap=_$1.route({method:`GET`,path:`/beneficiaries/{id}`,summary:`Get beneficiary by ID`,tags:[`Beneficiaries`]}).input(If.strict()).output(Bf),op=_$1.route({method:`POST`,path:`/beneficiaries`,summary:`Create a new beneficiary`,tags:[`Beneficiaries`]}).input(Ff.strict()).output(Bf);var sp={get:ap,list:_$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(Rf.strict()).output(zf),create:op,remove:_$1.route({method:`DELETE`,path:`/beneficiaries/{id}`,summary:`Delete a beneficiary`,tags:[`Beneficiaries`]}).input(Lf.strict()).output(Bf),schema:Yf,validate:$f};const cp=I$1([`AMOUNT`,`PERCENT`]),up=I$1([`TEAM`,`PROMOTER`,`EVENTS`,`SECTIONS`,`ADMISSIONS`]),fp=F$1({id:k$1().readonly().meta({examples:[b$1.Coupon.id],description:`A unique identifier for this coupon.`}),couponId:k$1().optional().readonly().meta({examples:[b$1.Coupon.couponId],description:`Duplicate of id field for GSI queries.`}),createdAt:D$1().readonly().meta({examples:[b$1.Coupon.createdAt],description:`Timestamp in ISO 8601 format when this coupon was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.Coupon.updatedAt],description:`Timestamp in ISO 8601 format when this coupon was last updated.`}),name:k$1().meta({examples:[b$1.Coupon.name],description:`Internal label for the coupon, visible to event organisers.`}),active:N$1().optional().meta({examples:[b$1.Coupon.active],description:`Whether this coupon is currently active.`}),showHidden:N$1().optional().meta({examples:[false],description:`Whether this coupon reveals hidden admissions and sections within its scope.`}),kind:cp.meta({examples:[`PERCENT`],description:`Type of discount this coupon gives: a fixed amount or a percentage.`}),filter:up.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:z$2.optional().meta({examples:[b$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:j$1().min(0).meta({examples:[b$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:j$1().meta({examples:[b$1.Coupon.limit],description:`Maximum number of times the coupon can be redeemed across all customers.`}),uses:j$1().optional().meta({examples:[b$1.Coupon.uses],description:`Number of times this coupon has been redeemed so far.`}),promoters:P$1(F$1({id:k$1().meta({description:`Identifier of a promoter this coupon applies to.`}),name:k$1().meta({description:`Name of a promoter this coupon applies to.`}),slug:k$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:P$1(F$1({id:k$1().meta({description:`Identifier of an event this coupon applies to.`}),name:k$1().meta({description:`Name of an event this coupon applies to.`}),slug:k$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:P$1(F$1({id:k$1().meta({description:`Identifier of a section this coupon applies to.`}),name:k$1().meta({description:`Name of a section this coupon applies to.`}),eventId:k$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:P$1(F$1({id:k$1().meta({description:`Identifier of an admission this coupon applies to.`}),name:k$1().meta({description:`Name of an admission this coupon applies to.`}),eventId:k$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:U$2.meta({examples:[b$1.Coupon.saleStartsAt],description:`Wall clock time when this coupon becomes valid (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)`}),saleEndsAt:U$2.optional().meta({examples:[b$1.Coupon.saleEndsAt],description:`Wall clock time when this coupon expires (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)`}),teamId:k$1().meta({description:`Team that created this coupon.`})}).meta({description:`coupon`}),pp=F$1({id:k$1().readonly().meta({examples:[b$1.CouponCode.id],description:`A unique identifier for this coupon code.`}),createdAt:D$1().readonly().meta({examples:[b$1.CouponCode.createdAt],description:`Timestamp in ISO 8601 format when this coupon code was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.CouponCode.updatedAt],description:`Timestamp in ISO 8601 format when this coupon code was last updated.`}),name:k$1().meta({examples:[b$1.CouponCode.name],description:`The code string that customers enter to redeem the coupon.`}),active:N$1().meta({examples:[b$1.CouponCode.active],description:`Whether this coupon code is currently enabled for use.`}),couponId:k$1().meta({examples:[b$1.Coupon.id],description:`Identifier of the coupon to which this code belongs.`}),teamId:k$1().meta({description:`Team that created this coupon code.`}),uses:j$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`}),mp=pp.pick({id:true});F$1({couponId:k$1().meta({examples:[b$1.Coupon.id]})});F$1({name:k$1(),couponId:k$1().optional().meta({examples:[b$1.Coupon.id]})});const _p=pp.omit({id:true,createdAt:true,updatedAt:true,uses:true}),vp=pp.omit({createdAt:true,updatedAt:true,couponId:true,teamId:true,uses:true}).partial().extend({id:pp.shape.id}),yp=mp,bp=F$1({couponId:k$1().optional().meta({examples:[b$1.Coupon.id],description:`Optional filter to retrieve coupon codes for a specific coupon`}),teamId:k$1().optional().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`Optional filter to retrieve coupon codes created by a specific team`}),active:Ws().optional().meta({examples:[true],description:`Optional filter to retrieve only active or inactive coupon codes`}),query:k$1().optional().meta({examples:[`SUMMER`],description:`Optional search query to filter coupon codes by name. When provided, search-backed pagination is used.`}),limit:wc(`coupon codes`).optional(),cursor:k$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`}),xp=G$2(pp,`codes`),Sp=F$1({couponCode:pp}),Cp=fp.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`}),wp=fp.pick({id:true}).meta({description:`Schema for retrieving a single coupon by ID`}),Tp=wp.meta({description:`Schema for deleting a coupon by ID with optional soft-delete filtering`}),Ep=F$1({teamId:k$1().meta({examples:[b$1.Team.id],description:`Unique identifier of the team whose coupons to retrieve`}),active:Ws().optional().meta({examples:[true],description:`Optional filter to retrieve only active or inactive coupons`}),query:k$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:wc(`coupons`).optional(),cursor:k$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`}),Dp=G$2(fp,`coupons`),Op=F$1({coupon:fp}),kp=fp.omit({createdAt:true,updatedAt:true,teamId:true}).partial().extend({id:fp.shape.id.meta({examples:[b$1.Coupon.id],description:`Unique identifier of the coupon to update`}),saleEndsAt:U$2.nullable().optional().meta({examples:[b$1.Coupon.saleEndsAt],description:`Expiry time. Pass null to remove end date; omit to leave unchanged.`}),currency:z$2.nullable().optional().meta({examples:[`AUD`,`USD`,`GBP`],description:`Three-letter ISO 4217 currency code. Pass null to clear; 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.`}),Ap=_$1.route({method:`GET`,path:`/coupon-codes/{id}`,summary:`Get coupon code by ID`,tags:[`Coupon Codes`]}).input(mp.strict()).output(Sp),jp=_$1.route({method:`POST`,path:`/coupon-codes`,summary:`Create a new coupon code`,tags:[`Coupon Codes`]}).input(_p.strict()).output(Sp),Mp=_$1.route({method:`PUT`,path:`/coupon-codes/{id}`,summary:`Update a coupon code`,tags:[`Coupon Codes`]}).input(vp.strict()).output(Sp);var Np={get:Ap,list:_$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(bp.strict()).output(xp),create:jp,update:Mp,remove:_$1.route({method:`DELETE`,path:`/coupon-codes/{id}`,summary:`Delete a coupon code`,tags:[`Coupon Codes`]}).input(yp.strict()).output(Sp)};const Pp=_$1.route({method:`GET`,path:`/coupons/{id}`,summary:`Get coupon by ID`,tags:[`Coupons`]}).input(wp.strict()).output(Op),Fp=_$1.route({method:`POST`,path:`/coupons`,summary:`Create a new coupon`,tags:[`Coupons`]}).input(Cp).output(Op),Ip=_$1.route({method:`PUT`,path:`/coupons/{id}`,summary:`Update a coupon`,tags:[`Coupons`]}).input(kp).output(Op);var Lp={get:Pp,list:_$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(Ep.strict()).output(Dp),create:Fp,update:Ip,remove:_$1.route({method:`DELETE`,path:`/coupons/{id}`,summary:`Delete a coupon`,tags:[`Coupons`]}).input(Tp.strict()).output(Op),code:Np},Rp={suggestTags:_$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(Al.strict()).output(jl)};const zp=F$1({eventId:V$2.meta({description:`Event to like`})}).meta({description:`Request to like an event`}),Bp=F$1({limit:wc(`likes`),cursor:k$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.`}),Vp=F$1({tenantId:k$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`}),userId:tc.readonly().meta({description:`User who liked the event`}),eventId:V$2.meta({description:`Event the user liked`}),createdAt:D$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.`}),Hp=G$2(Vp,`likes`).meta({description:`Paginated list of event likes. Use cursor-based pagination to navigate through results.`}),Up=F$1({eventId:V$2.meta({description:`Event to remove like from`})}).meta({description:`Request to remove the current user's like from an event`}),Wp=F$1({like:Vp});var Gp={add:_$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(zp).output(Wp),remove:_$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(Up).output(rs()),list:_$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(Bp).output(Hp)};const Kp=F$1({id:ec.readonly().meta({examples:[b$1.Location.id],description:`Location identifier`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID for this location`}),createdAt:D$1().meta({examples:[b$1.Location.createdAt],description:`Timestamp in ISO 8601 format when the location was created`}),updatedAt:D$1().meta({examples:[b$1.Location.updatedAt],description:`Timestamp in ISO 8601 format when the location was last updated`}),name:k$1().meta({examples:[b$1.Location.name],description:`Location name`}),address:k$1().meta({examples:[b$1.Location.address],description:`Formatted address`}),city:k$1().optional().meta({examples:[b$1.Location.city],description:`City name`}),state:k$1().optional().meta({examples:[b$1.Location.state],description:`State or region`}),postcode:k$1().optional().meta({examples:[b$1.Location.postcode],description:`Postal code`}),country:k$1().meta({examples:[b$1.Location.country],description:`Country name`}),latitude:j$1().min(-90).max(90).meta({examples:[b$1.Location.latitude],description:`Latitude coordinate`}),longitude:j$1().min(-180).max(180).meta({examples:[b$1.Location.longitude],description:`Longitude coordinate`}),timeZone:k$1().min(1).regex(/^[A-Za-z0-9_+-]+(\/[A-Za-z0-9_+-]+)*$/,{message:`Must be a valid IANA timezone identifier format`}).meta({examples:[b$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:P$1(k$1()).optional().meta({examples:[[`establishment`,`point_of_interest`,`stadium`]],description:`Google Place types indicating the category and nature of this location`}),description:k$1().optional().meta({examples:[`Historic outdoor amphitheater known for summer concerts`],description:`AI-generated description of the place, when available`}),image:H$2.optional().meta({description:`Primary location photo`}),venueId:$s.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`}),qp=Kp.omit({venueId:true}).extend({venue:F$1({id:$s.meta({description:`Venue identifier`}),name:k$1().meta({description:`Venue name`}),slug:k$1().meta({description:`URL-friendly venue slug`}),teamId:k$1().meta({description:`Team that owns this venue`}),approval:R$1.meta({description:`Venue approval status`}),image:H$2.optional().meta({description:`Venue image`}),description:k$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.`})}),Jp=F$1({id:ic.readonly().meta({examples:[b$1.Promoter.id],description:`Unique identifier for the promoter organization`}),createdAt:D$1().readonly().meta({examples:[b$1.Promoter.createdAt],description:`Timestamp in ISO 8601 format when the promoter was created`}),updatedAt:D$1().readonly().meta({examples:[b$1.Promoter.updatedAt],description:`Timestamp in ISO 8601 format when the promoter was last updated`}),name:k$1().min(3).max(30).meta({examples:[b$1.Promoter.name],description:`Display name of the promoter organization. Must be between 3 and 30 characters`}),slug:k$1().min(3).max(30).meta({examples:[b$1.Promoter.slug],description:`URL-friendly slug for the promoter organization. Must be unique and between 3 and 30 characters`}),teamId:Qs.meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`ID of the team that owns this promoter. Establishes team-based organization and permissions.`}),description:k$1().meta({examples:[b$1.Promoter.description],description:`Detailed description of the promoter organization and their events`}),approval:R$1.meta({examples:[b$1.Promoter.approval],description:`Approval status of the promoter. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate`}),image:H$2.optional().meta({description:`Optional promotional image for the promoter organization with dimensions and alt text`}),location:qp.meta({description:`Primary location details for the promoter including address, coordinates, and timezone`}),geohash:k$1().meta({examples:[b$1.Promoter.geohash],description:`Geohash encoding of the promoter's location for efficient spatial queries`}),tracking:F$1({fbId:k$1().optional().meta({examples:[b$1.Promoter.tracking.fbId],description:`Facebook pixel ID for tracking conversions and analytics`}),gtmId:k$1().optional().meta({examples:[b$1.Promoter.tracking.gtmId],description:`Google Tag Manager container ID for web analytics`}),tikTokId:k$1().optional().meta({examples:[b$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:Cc}).meta({description:`Promoter organization with location and approval status`}),Yp=F$1({id:k$1().readonly().meta({examples:[b$1.Section.id],description:`Unique identifier for the section`}),createdAt:D$1().readonly().meta({examples:[b$1.Section.createdAt],description:`Timestamp when the section was created in ISO 8601 format`}),updatedAt:D$1().readonly().meta({examples:[b$1.Section.updatedAt],description:`Timestamp when the section was last updated in ISO 8601 format`}),name:k$1().meta({examples:[b$1.Section.name],description:`Display name of the section (e.g., 'VIP Area', 'General Admission')`}),capacity:yc().prefault(-1).meta({examples:[b$1.Section.capacity],description:`Maximum number of attendees for this section. Use -1 for unlimited capacity`}),limit:bc().prefault(-1).meta({examples:[b$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:j$1().min(-1).readonly().meta({examples:[b$1.Section.available],description:`Number of tickets currently available for purchase in this section. Use -1 when capacity is unlimited`}),sold:j$1().min(0).readonly().meta({examples:[b$1.Section.sold],description:`Number of tickets sold for this section`}),reserved:j$1().readonly().meta({examples:[b$1.Section.reserved],description:`Number of tickets currently reserved (in pending orders) for this section`}),order:j$1().min(0).meta({examples:[b$1.Section.order],description:`Display order of the section. Lower numbers appear first in listings`}),visibility:I$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:Kp.meta({description:`Physical location details for the section`}),teamId:k$1().meta({description:`Team that owns this section. Denormalized for efficient queries.`}),promoterId:k$1().meta({examples:[b$1.Section.promoterId],description:`Unique identifier of the promoter who owns this section`}),eventId:k$1().meta({examples:[b$1.Section.eventId],description:`Unique identifier of the event this section belongs to`}),eventSlug:k$1().meta({examples:[b$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`}),Xp=I$1([`UPCOMING`,`ENDED`]),Qp=I$1([`PUBLIC`,`PRIVATE`,`SCHEDULED`,`PASSCODE`,`CANCELLED`]),em=F$1({id:V$2.readonly().meta({examples:[b$1.Event.id],description:`A unique identifier for this event`}),createdAt:D$1().readonly().meta({examples:[b$1.Event.createdAt],description:`Timestamp in ISO 8601 format when this event was created`}),updatedAt:D$1().readonly().meta({examples:[b$1.Event.updatedAt],description:`Timestamp in ISO 8601 format when this event was last updated`}),name:k$1().meta({examples:[b$1.Event.name],description:`The title of the event shown to attendees`}),slug:k$1().meta({examples:[b$1.Event.slug],description:`URL-friendly identifier for the event`}),description:k$1().meta({examples:[b$1.Event.description],description:`Detailed description of the event`}),approval:R$1.meta({examples:[`APPROVED`],description:`Approval status of the event`}),status:Xp.meta({examples:[`UPCOMING`,`ENDED`],description:`Current stage of the event lifecycle`}),visibility:Qp.meta({examples:[`PUBLIC`],description:`Who can see the event`}),currency:z$2.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code used for ticket prices`}),url:Do().optional().meta({examples:[`https://example.com`],description:`External URL for the event website or ticket page`}),entryStartsAt:U$2.meta({examples:[b$1.Event.entryStartsAt],description:`Wall clock time when event entry begins (no timezone, displays same everywhere)`}),entryEndsAt:U$2.meta({examples:[b$1.Event.entryEndsAt],description:`Wall clock time when event entry ends (no timezone, displays same everywhere)`}),publishAt:U$2.meta({examples:[b$1.Event.publishAt],description:`Wall clock time when the event becomes publicly visible (no timezone)`}),images:F$1({mobile:H$2.meta({description:`Mobile-optimized image for the event`}),desktop:H$2.meta({description:`Desktop-optimized image for the event`})}),geohash:k$1().meta({examples:[b$1.Event.geohash],description:`Geohash representing the event location`}),location:qp.meta({description:`Structured location details for the event`}),teamId:Qs.meta({description:`Team that owns this event. Denormalized for efficient queries.`}),promoterId:ic.meta({examples:[b$1.Promoter.id],description:`Promoter organizing the event. Must belong to the team.`}),metadata:Cc,genres:P$1(k$1()).optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:P$1(k$1()).optional().meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),featured:N$1().optional().meta({description:`Whether this event is an editorial pick`,examples:[true]}),likes:j$1().int().min(0).optional().meta({description:`Number of users who liked this event`,examples:[42]})}).meta({description:`event`}),tm=Jp.pick({id:true,name:true,slug:true,description:true,image:true}),nm=em.extend({passcode:k$1().optional().meta({description:`Plain-text event passcode. Included only on internal event detail responses for users with event.read access.`}),sections:P$1(Yp),admissions:P$1(W$2),promoter:tm.optional().meta({description:`Public summary of the promoter organizing this event. Included on event detail responses only.`}),liked:N$1().optional().meta({description:`Whether the current user has liked this event`,examples:[true,false]})}),rm=F$1({event:nm}),im=em.omit({id:true,teamId:true,createdAt:true,updatedAt:true,status:true,approval:true,geohash:true,location:true,featured:true,likes:true}).extend({slug:k$1().min(3).max(100).optional().meta({examples:[b$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:k$1().optional().meta({description:`Passcode for protected access to the event`}),locationId:ec.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location. Either locationId or googlePlaceId must be provided.`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided.`}),genres:Xs.optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:Js.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`}),am=F$1({key:k$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[b$1.Event.id,b$1.Event.slug]})}),om=F$1({key:k$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[b$1.Event.id,b$1.Event.slug]}),name:k$1().min(1).meta({description:`Name for the duplicated event`,examples:[`${b$1.Event.name} (Copy)`]}),entryStartsAt:U$2.meta({description:`New event entry start time. Other copied event and admission datetimes are shifted by the same offset.`,examples:[b$1.Event.entryStartsAt]})}),sm=F$1({key:k$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[b$1.Event.id,b$1.Event.slug]}),featured:N$1().meta({description:`Whether the event should be featured (editorial pick)`,examples:[true,false]})}),cm=F$1({key:k$1().min(1).meta({description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`,examples:[b$1.Event.id,b$1.Event.slug]}),passcode:k$1().optional().meta({description:`Passcode for accessing protected events`}),couponCode:k$1().optional().meta({description:`Coupon code used to reveal hidden admissions and sections when eligible.`}),teamId:k$1().optional().meta({description:`Optional team scope. When provided, event must belong to this team.`})}),lm=F$1({sold:j$1().min(0).meta({description:`Number of tickets sold (net of refunds)`}),reserved:j$1().min(0).meta({description:`Number of tickets reserved`}),available:j$1().min(-1).meta({description:`Number of tickets available (-1 for unlimited)`}),capacity:j$1().min(-1).meta({description:`Total capacity (-1 for unlimited)`})}),um=I$1([`entryStartsAt`,`createdAt`]),dm=I$1([`asc`,`desc`]),fm=F$1({status:I$1([`UPCOMING`,`ENDED`]).optional().meta({examples:[`UPCOMING`],description:`Filter events by their current lifecycle status`}),approval:R$1.optional().meta({examples:[`APPROVED`],description:`Filter events by their approval status`}),visibility:I$1([`PUBLIC`,`PRIVATE`,`SCHEDULED`,`PASSCODE`]).optional().meta({examples:[`PUBLIC`],description:`Filter events by their visibility setting`}),promoterId:k$1().optional().meta({examples:[b$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:k$1().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:k$1().optional().meta({description:`Filter events to only those at a specific venue. If not provided, returns events at all venues`}),limit:L$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:k$1().optional().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Cursor token for pagination. Provide the cursor from the previous response to continue fetching results`}),query:Us().optional().meta({examples:[`Test Event`],description:`Search term to filter events by name, description, or location. Triggers full‑text search when provided`}),latitude:L$1().min(-90).max(90).optional().meta({examples:[b$1.Event.location.latitude],description:`Latitude coordinate for geographic search. Provide with longitude (and optional radius)`}),longitude:L$1().min(-180).max(180).optional().meta({examples:[b$1.Event.location.longitude],description:`Longitude coordinate for geographic search. Provide with latitude (and optional radius)`}),radius:L$1().optional().meta({examples:[20],description:`Search radius in kilometers from the provided coordinates. Defaults to 20km`}),country:k$1().optional().meta({examples:[`australia`],description:`Filter by country region slug. Matches events where location.country equals the region name`}),state:k$1().optional().meta({examples:[`nsw`],description:`Filter by state/province region slug. Matches events where location.state equals the region name`}),city:k$1().optional().meta({examples:[`sydney`],description:`Filter by city region slug. Matches events where location.city equals the region name`}),from:k$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:k$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:um.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Defaults to event start time. Use `createdAt` to return newest or oldest events first."}),direction:dm.optional().meta({examples:[`desc`],description:"Sort direction for event lists. Defaults to lifecycle-aware event start order unless `sort` is provided."}),genres:P$1(Ys).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:P$1(qs).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:N$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`}),pm=fm,mm=yl$1({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 base price`}),hm=G$2(em.extend({inventory:lm.optional(),liked:N$1().optional().meta({description:`Whether the current user has liked this event`,examples:[true,false]}),price:mm.nullable().meta({description:`Cheapest publicly purchasable admission price, or null when no public admission is currently available`})}),`events`),gm=F$1({event:em});I$1([`ONLINE`,`DOOR`,`SALE_ENDED`,`SOLD_OUT`]);const ym=em.omit({createdAt:true,updatedAt:true,promoterId:true,geohash:true,status:true,location:true,featured:true,likes:true}).partial().extend({key:k$1().meta({examples:[b$1.Event.id,b$1.Event.slug],description:`Event key - either a unique ID (evt_xxx format) or URL-friendly slug`}),passcode:k$1().nullable().optional().meta({description:`Passcode for protected access. Pass null to clear; omit to leave unchanged.`}),url:Do().nullable().optional().meta({examples:[`https://example.com/events/summer-festival-2025`],description:`External event URL. Pass null to clear; omit to leave unchanged.`}),locationId:ec.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`}),genres:Xs.optional().meta({description:`Music genres for the event (1-5 genres)`,examples:[[`Tech House`,`Melodic Techno`]]}),categories:Js.meta({description:`Event characteristics like vibe, venue type, and amenities (up to 10)`,examples:[[`Day Party`,`Open Air`,`Free Entry`]]}),notify:N$1().optional().meta({description:`Whether attendees should be notified about this event update.`,examples:[true]})}).meta({description:`Schema for updating an existing event.`}),bm=id.extend({limit:L$1().min(1).max(100).optional().default(10)}),xm=nd.extend({limit:L$1().min(1).max(100).optional().default(10)}),Sm=ud.extend({limit:L$1().min(1).max(100).optional().default(10)}),Cm=od.extend({limit:L$1().min(1).max(100).optional().default(10)}),wm=fd.extend({limit:L$1().min(1).max(100).optional().default(10)}),Tm=md.extend({limit:L$1().min(1).max(100).optional().default(10)});var Em={summary:_$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(Vu).output(Hu),tickets:_$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(Uu).output(Wu),timeseries:_$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(Ku).output(qu),funnel:_$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(Ju).output(Yu),campaigns:_$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(bm).output(ad),coupons:_$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(xm).output(rd),mediums:_$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(Cm).output(sd),devices:_$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(cd).output(ld),browsers:_$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(Sm).output(dd),locations:_$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(wm).output(pd),traffic:_$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(Tm).output(hd),attendance:_$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(gd).output(bd)};const Dm=_$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(cm).output(rm),Om=_$1.route({method:`POST`,path:`/events`,summary:`Create a new event`,tags:[`Events`]}).input(im.strict()).output(gm),km=_$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(om.strict()).output(gm),Am=_$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(ym.strict()).output(gm);var jm={get:Dm,list:_$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(pm).output(hm),create:Om,duplicate:km,update:Am,remove:_$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(am.strict()).output(gm),feature:_$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(sm.strict()).output(gm),like:Gp,performance:Em,tags:Rp.suggestTags};const Mm=F$1({id:mc.readonly().meta({description:`Unique identifier for the event collaborator`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the collaborator was added`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the collaborator was last updated`}),eventId:V$2.meta({description:`Event this collaboration applies to`}),promoterId:ic.meta({description:`Promoter collaborating on the event`}),acceptedBy:tc.meta({description:`User ID who accepted the invitation to collaborate`}),promoter:F$1({id:ic.meta({description:`Unique identifier of the promoter`}),name:k$1().meta({description:`Name of the promoter`}),teamId:Qs.meta({description:`Team ID of the promoter`})}).optional().meta({description:`Populated promoter details. Only included when explicitly requested.`}),permissions:Zc.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:k$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.`}),Nm=Mm.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.`}),Pm=F$1({id:mc.readonly().meta({description:`Unique identifier for the event collaboration invitation`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was last updated`}),eventId:V$2.meta({description:`Event this invitation applies to`}),promoterId:ic.meta({description:`Promoter being invited to collaborate on the event.`}),invitedByPromoterId:ic.meta({description:`Promoter who sent this invitation (event owner or collaborator with permission).`}),permissions:Zc.meta({description:`Permissions the promoter will receive upon accepting the invitation.`,examples:[[],[`event.read`,`event.write`],[`order.read`],[`ticket.scan`],[`*`]]}),token:k$1().readonly().meta({description:`Secure token for invite acceptance. Required to accept the invitation.`}),invitedBy:tc.meta({description:`User ID who sent the invitation`}),expiresAt:j$1().int().positive().meta({description:`Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days.`}),tenantId:k$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.`}),Fm=Pm.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.`}),Im=F$1({eventId:V$2.meta({description:`Event ID that the collaboration belongs to`}),id:mc.meta({description:`Event team access grant ID to retrieve`})}),Lm=F$1({invite:Pm}),Rm=F$1({eventId:k$1().meta({description:`Event ID to list collaborators for`}),accessPromoterId:k$1().optional().meta({description:`DEPRECATED: Use 'promoterId' instead. Filter by collaborating promoter ID (what events can this promoter access). Maintained for backward compatibility.`}),ownerPromoterId:k$1().optional().meta({description:`DEPRECATED: No longer used. Maintained for backward compatibility only.`}),limit:wc(`event collaborators`),cursor:k$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.`}),zm=G$2(Mm,`grants`),Bm=F$1({collaborator:Mm});var Vm={get:_$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(Im.strict()).output(Bm),list:_$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(Rm.strict()).output(zm),create:_$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(Fm.strict()).output(Lm),accept:_$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(Nm.strict()).output(Bm),remove:_$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(Im.strict()).output(rs())};const Hm=F$1({language:k$1().trim().max(80).optional(),platform:k$1().trim().max(120).optional(),timezone:k$1().trim().max(120).optional(),userAgent:k$1().trim().max(800).optional(),viewport:F$1({width:j$1().int().positive().max(1e4),height:j$1().int().positive().max(1e4),devicePixelRatio:j$1().positive().max(10).optional()}).optional()}),Um=F$1({key:k$1().trim().min(1),message:k$1().trim().min(10).max(4e3),pageUrl:Do().max(2e3),pageTitle:k$1().trim().max(300).optional(),browser:Hm.optional()}),Wm=F$1({ok:vs(true)}),Gm=F$1({file:Zo().describe(`Image file to upload (max 10MB)`),folder:I$1([`avatars`,`events`,`teams`,`promoters`,`venues`]).describe(`Folder to upload to`),width:L$1().int().positive().optional().describe(`Target width in pixels`),height:L$1().int().positive().optional().describe(`Target height in pixels`)}),Km=H$2,qm=_$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 uploaded as-is without compression. Returns the uploaded image URL and metadata.`,tags:[`Internal`]}).input(Gm.strict()).output(Km);var Jm={shareFeedback:_$1.route({method:`POST`,path:`/internal/feedback`,summary:`Share product feedback`,description:`Send authenticated tenant dashboard feedback to the Sessions team.`,tags:[`Internal`]}).input(Um.strict()).output(Wm),uploadImage:qm};const Ym=F$1({key:k$1().min(1).meta({description:`Location key - either a location ID (loc_xxx format) or provider-specific identifier (e.g., Google Place ID)`,examples:[b$1.Location.id,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}),Xm=F$1({query:k$1().min(1).meta({examples:[`sydney opera`],description:`Search query for location search`}),latitude:L$1().min(-90).max(90).optional().meta({examples:[b$1.Location.latitude],description:`User's latitude for proximity-based results (optional for better relevance)`}),longitude:L$1().min(-180).max(180).optional().meta({examples:[b$1.Location.longitude],description:`User's longitude for proximity-based results (optional for better relevance)`}),types:P$1(k$1()).optional().meta({examples:[[`establishment`]],description:`Filter results by Google Place types (e.g., 'establishment', 'night_club', 'bar')`})}).meta({description:`Parameters for searching locations`}),Zm=F$1({googlePlaceId:k$1().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID for this location`}),name:k$1().meta({examples:[b$1.Location.name],description:`Primary name of the location`}),description:k$1().meta({examples:[b$1.Location.address],description:`Full formatted address`}),venue:F$1({id:$s.meta({examples:[b$1.Venue.id],description:`Venue ID if this location is a managed venue`}),name:k$1().meta({examples:[b$1.Venue.name],description:`Venue name`}),teamId:k$1().meta({description:`Team that manages this venue`}),image:H$2.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`}),Qm=F$1({predictions:P$1(Zm).meta({description:`Array of location predictions`})}).meta({description:`Response containing location search results`}),$m=F$1({location:qp});var eh={list:_$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(Xm.strict()).output(Qm),get:_$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(Ym.strict()).output($m)};const th=F$1({name:k$1().meta({examples:[`tenant-web`,`team-web`,`api`,`partner`],description:`Free-form channel identifier describing where the order originated.`}),referrer:k$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:k$1().optional().meta({examples:[`instagram`],description:`Optional UTM source captured from the originating URL.`}),utmMedium:k$1().optional().meta({examples:[`social`],description:`Optional UTM medium captured from the originating URL.`}),utmCampaign:k$1().optional().meta({examples:[`summer-launch`],description:`Optional UTM campaign captured from the originating URL.`}),deviceType:I$1([`MOBILE`,`TABLET`,`DESKTOP`]).optional().meta({examples:[`MOBILE`],description:`Optional analytics device classification captured at order creation.`}),browser:k$1().optional().meta({examples:[`Chrome`],description:`Optional analytics browser classification captured at order creation.`}),country:k$1().optional().meta({examples:[`Australia`],description:`Optional viewer country captured at order creation for analytics attribution.`}),region:k$1().optional().meta({examples:[`Australia - New South Wales`],description:`Optional viewer region captured at order creation for analytics attribution.`}),sessionId:k$1().optional().meta({examples:[`ses_01HX...`],description:`Session ID captured at order creation for client/server analytics linking.`}),anonymousId:k$1().optional().meta({examples:[`aid_01HX...`],description:`Browser anonymous ID captured at order creation for attribution linking.`})}),nh=F$1({id:k$1().meta({examples:[b$1.CouponCode.id],description:`Unique identifier of the coupon code used in the order`}),name:k$1().meta({examples:[b$1.CouponCode.name],description:`The coupon code string that was entered by the customer`}),couponId:k$1().meta({examples:[b$1.CouponCode.couponId],description:`Unique identifier of the parent coupon configuration`})}),rh=F$1({id:k$1().meta({examples:[b$1.Customer.id],description:`Unique identifier of the customer who placed the order`}),firstName:k$1().meta({examples:[b$1.Customer.firstName],description:`First name of the customer`}),lastName:k$1().meta({examples:[b$1.Customer.lastName],description:`Last name of the customer`}),email:Co().meta({examples:[b$1.Customer.email],description:`Email address of the customer`}),phone:k$1().meta({examples:[b$1.Customer.phone],description:`Customer phone number in E.164 format for SMS delivery`}).optional()}),ih=F$1({id:k$1().meta({examples:[b$1.Event.id],description:`Unique identifier of the event associated with the order`}),name:k$1().meta({examples:[b$1.Event.name],description:`Display name of the event`}),slug:k$1().meta({examples:[b$1.Event.slug],description:`URL-friendly slug of the event`}),location:k$1().meta({examples:[b$1.Event.location.name],description:`Name of the venue or location where the event takes place`}).optional()}),ah=I$1([`GATEWAY`,`SHIPPING`,`SMS_DELIVERY`]).meta({description:`Type of fee applied to an order`}),oh=F$1({id:k$1().meta({examples:[b$1.OrderFee.id],description:`Unique identifier for this order fee`}),createdAt:D$1().readonly().meta({examples:[b$1.OrderFee.createdAt],description:`Timestamp in ISO 8601 format when this fee was created`}),reason:k$1().meta({examples:[b$1.OrderFee.reason],description:`Description explaining why this fee was applied to the order`}),amount:j$1().finite(`Amount must be a valid number`).meta({examples:[b$1.OrderFee.amount],description:`Fee amount in cents (positive value indicates charge to customer, negative value indicates credit or discount)`}),currency:z$2.meta({examples:[b$1.OrderFee.currency],description:`Currency code in ISO 4217 format`}),requestId:k$1().meta({examples:[b$1.OrderFee.requestId],description:`External payment processor request identifier for tracking this fee`}),kind:ah.optional().meta({examples:[`GATEWAY`],description:`Type of fee for categorization and reporting`})});function sh(){return {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}}}const ch=e=>({id:e.id,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:e.name,slug:e.slug,description:e.description,approval:`APPROVED`,status:`UPCOMING`,visibility:`PUBLIC`,currency:`AUD`,entryStartsAt:y$1(v$1(new Date,1)),entryEndsAt:y$1(v$1(new Date,2)),publishAt:y$1(new Date),images:sh(),geohash:`r3gx1`,location:e.location,teamId:e.teamId,promoterId:e.promoterId,tenantId:e.tenantId}),lh=e=>({id:e.id,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),...e.sectionId?{sectionId:e.sectionId}:{},...e.teamId?{teamId:e.teamId}:{},promoterId:e.promoterId,eventId:e.eventId,eventSlug:e.eventSlug,name:e.name,capacity:100,limit:-1,available:100,entryStartsAt:y$1(v$1(new Date,1)),entryEndsAt:y$1(v$1(new Date,2)),saleStartsAt:y$1(new Date),saleEndsAt:y$1(v$1(new Date,2)),price:{base:1e3,booking:200,currency:`AUD`},tenantId:e.tenantId}),uh=e=>({id:`tkt_01jps5cgsh51kzg7534pzap7gk`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`REDEEMED`,scans:[],token:e.token,attendee:{email:Z$1.Customer.email,firstName:Z$1.Customer.firstName,lastName:Z$1.Customer.lastName},event:{id:Z$1.WrongEvent.id,name:Z$1.WrongEvent.name,slug:Z$1.WrongEvent.slug,location:Z$1.WrongEvent.location,entryStartsAt:Z$1.WrongEvent.entryStartsAt,entryEndsAt:Z$1.WrongEvent.entryEndsAt,images:Z$1.WrongEvent.images},admission:{id:Z$1.WrongAdmission.id,name:Z$1.WrongAdmission.name,price:Z$1.WrongAdmission.price,entryStartsAt:Z$1.WrongAdmission.entryStartsAt,entryEndsAt:Z$1.WrongAdmission.entryEndsAt},eventId:Z$1.WrongEvent.id,customerId:Z$1.Customer.id,orderId:Z$1.WrongOrder.id,orderItemId:Z$1.WrongOrderItem.id,admissionId:Z$1.WrongOrderItem.admissionId,...e.teamId?{teamId:e.teamId}:{},promoterId:Z$1.WrongPromoter.id,promoterSlug:Z$1.WrongPromoter.slug,tenantId:Z$1.Tenant.id}),dh=e=>{let t=new Date(2020,1,1);return {...b$1.Event,id:e.id,status:e.status,createdAt:t.toISOString(),updatedAt:t.toISOString(),publishAt:y$1(t),entryStartsAt:y$1(t),entryEndsAt:y$1(new Date(2020,1,2)),slug:e.slug,name:e.name}};let Z$1;(function(e){let{Tenant:t,Team:n,TeamMember:r,TeamInvite:i,Venue:a,User:o,Session:s,EmailVerification:c,PasswordReset:l,Promoter:u,PromoterMember:d,CurrentSession:f,Event:p,DetailedEvent:ee,Location:te,CarouselLocation:ne,Section:re,Admission:m,Beneficiary:ie,AirwallexBeneficiary:ae,Coupon:oe,CouponCode:se,AmountCoupon:ce,AmountCouponCode:le,Customer:ue,Payout:de,Order:fe,OrderItem:pe,OrderFee:me,Ticket:he}=b$1;e.Tenant=t,e.Team=n,e.TeamMember=r,e.TeamInvite=i,e.Venue=a,e.User=o,e.Session=s,e.EmailVerification=c,e.PasswordReset=l,e.Promoter=u,e.PromoterMember=d,e.CurrentSession=f,e.Event=p,e.DetailedEvent=ee,e.Location=te,e.CarouselLocation=ne,e.Section=re,e.Admission=m,e.Beneficiary=ie,e.AirwallexBeneficiary=ae,e.Coupon=oe,e.CouponCode=se,e.AmountCoupon=ce,e.AmountCouponCode=le,e.Customer=ue,e.Payout=de,e.Order=fe,e.OrderItem=pe,e.OrderFee=me,e.Ticket=he,e.JayUser={...o,id:`usr_01k5hbpkfje048zccqmqfhjpep`,email:`j@1f.io`,firstName:`Jay`,lastName:`McMullen`};let ge=e.TestUser={id:`usr_01k5wcss3gf24advd4av43s96m`,email:`test@e2e.session.services`,firstName:`Test`,lastName:`User`,createdAt:`2025-09-23T22:58:37.808Z`,updatedAt:`2025-09-23T22:58:37.808Z`,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`};e.TestPromoterMember={id:`mbr_01k6s0t3f3f6cak0066dy5n1dm`,createdAt:`2025-10-05T01:47:04.035Z`,updatedAt:`2025-10-05T01:47:04.035Z`,teamId:n.id,userId:ge.id,user:ge,permissions:[`*`],isOwner:false,tenantId:t.id},e.SystemUser={...o,id:`usr_01jps5cgsgn1ee4txxn0fz81f2`,email:`system@session.services`,firstName:`Session`,lastName:`Services`},e.DeletedAdmission={...m,id:`adm_01jps5cgsg63gr2s1g2d87cqfy`,deletedAt:new Date().toISOString(),deleted:true},e.SoloAdmission={...m,id:`adm_01jpsf2h7r4z8kmd9x1q3w4vty`,name:`Solo Admission`,sectionId:void 0},e.DeletedCoupon={...oe,id:`cpn_01jps5cgsgzxf6xvmx3dnt9h1p`,couponId:`cpn_01jps5cgsgzxf6xvmx3dnt9h1p`,deletedAt:new Date().toISOString(),deleted:true},e.DeletedCouponCode={...se,id:`cod_01jps5cgsg7ep2gvwzghp1ppv6`,deletedAt:new Date().toISOString(),deleted:true},e.DeletedSection={...re,id:`sct_01jps5cgsgy7681swwcvf01wxh`,deletedAt:new Date().toISOString(),deleted:true},e.DeletedEvent={...p,id:`evt_01jps5cgsg8pyd64pc89tcbg9j`,slug:`deleted-event`,name:`Deleted Event`,deletedAt:new Date().toISOString(),deleted:true},e.PastEvent=dh({id:`evt_01jqqt1ztw4676fdrr27z7de1c`,status:`ENDED`,slug:`past-event`,name:`Past Event`}),e.CancelledEvent=dh({id:`evt_01jt0tfntmfk1sgn72q8c02v7a`,status:`CANCELLED`,slug:`cancelled-event`,name:`Cancelled Event`}),e.DeletedPromoter={...u,id:`pmt_01jps5cgsg4xem309j6sxj01aw`,slug:`deleted-promoter`,name:`Deleted Promoter`,deletedAt:new Date().toISOString(),deleted:true},e.DeletedPromoterMember={...d,userId:Z$1.User.id,user:Z$1.User,id:`mbr_01jpwzceh3zvab64kwq633q4cc`},e.SmsOrder={...fe,id:b$1.SmsOrder.id,status:`SUCCESSFUL`,price:{...fe.price,sms:200},customer:{...ue,phone:`+61412345678`},offers:[]},e.ExpiredOrder={...fe,id:`ord_01jq0xwysx1hzs3wqt2fns4578`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,status:`PENDING`,createdAt:new Date(2020,1,1).toISOString(),updatedAt:new Date(2020,1,1).toISOString()},e.AbandonedOrder={...fe,id:`ord_01jq0xdzwsfjpd329r8gv3txr2`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,status:`ABANDONED`,createdAt:new Date(2020,1,1).toISOString(),updatedAt:new Date(2020,1,1).toISOString()},e.ProcessingOrder={...fe,id:`ord_01jq289n4kcz2tnre24x3v2get`,token:`c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0`,status:`PROCESSING`,customer:b$1.Customer,customerId:b$1.Customer.id},e.FreeAdmission={...m,id:`adm_01jpykjbrdgy8jxmz57hmampww`,price:{base:0,booking:0,currency:`AUD`}},e.SoldOutAdmission={...m,id:`adm_01jps5cgse6m3567vzvk69hkrm`,name:`First Release`,capacity:100,available:0,sold:100,reserved:0},e.UnlimitedAdmission={...m,id:`adm_01jsr09narf6d83vyk3hs8q9cf`,name:`First Release`,capacity:-1,available:-1,sold:100,reserved:0},e.UnlimitedSection={id:`sct_01jsr09narf6d83vytx3cng55e`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:n.id,promoterId:u.id,eventId:p.id,eventSlug:p.slug,name:`Sold Out Section`,capacity:-1,limit:-1,available:-1,sold:200,reserved:0,order:0,visibility:`ALWAYS`,location:te,tenantId:t.id};let _e=e.SoldOutSection={id:`sct_01jq1rcqbkzqbbakgwy8ptpmvq`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:n.id,promoterId:u.id,eventId:p.id,eventSlug:p.slug,name:`Sold Out Section`,capacity:200,limit:-1,sold:200,available:0,reserved:0,order:0,visibility:`ALWAYS`,location:te,tenantId:t.id};e.SoldOutSectionAdmission={...m,sectionId:_e.id,id:`adm_01jq1rcjah79628zsafg3k8wyz`,name:`First Release`,capacity:100,available:100,sold:0,reserved:0,order:0};let ve=e.MaxReservedSection={id:`sct_01jq1rcqbkzrkea9ng8e4kngvq`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:n.id,promoterId:u.id,eventId:p.id,eventSlug:p.slug,name:`Max Reserved Section`,capacity:200,limit:-1,sold:0,available:0,reserved:200,location:te,tenantId:t.id,order:0,visibility:`ALWAYS`};e.MaxReservedAdmission={...m,id:`adm_01jq1rcqbk5s86df68xvz66fh4`,name:`First Release`,capacity:100,available:0,sold:0,reserved:100},e.MaxReservedSectionAdmission={...m,sectionId:ve.id,id:`adm_01jq1rcqbkhkxq67e9rs8rpngt`,name:`First Release`,capacity:100,available:100,sold:0,reserved:0},e.SessionsBeneficiary={...ie,id:`ben_01jps5cgse5n6mg1ymkew9tsss`,promoterId:`pmt_01jqpjksnsen9vprw95et60t2m`},e.AnotherBeneficiary={...ie,id:`ben_01jpsbxdthxadywamz2yj4zt75`,currency:`USD`,name:`Another Bank Account`},e.AnotherSection={...re,id:`sct_01jps5cgsg3spk97pwwp4352z9`},e.AnotherEvent={...p,id:`evt_01jps5cgsgkegpptzf3dsmkbpy`,slug:`another-event`,name:`Another Event`,visibility:`PUBLIC`},e.AnotherCouponCode={...se,name:`ANOTHER`,id:`cod_01jps5cgsghcvnjsf5nax5d7z7`},e.PrivateEvent={...p,id:`evt_01jps5cgsgavb91qw967y3d64f`,slug:`private-event`,name:`Private Event`,visibility:`PRIVATE`},e.PendingEvent={...p,id:`evt_01jps5cgsh7mpevnq8pngdqs8q`,slug:`pending-event`,name:`Pending Event`,approval:`PENDING`};let ye=e.WrongUser={id:`usr_01jps5cgshwa2sts0fj53pksk0`,email:`wrong@session.services`,firstName:`Wrong`,lastName:`User`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tenantId:t.id},be=e.WrongTeam={id:`tem_01jps5cgshfgkvmjhfkev542en`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Wrong Team`,slug:`wrong-team`,description:`This is the wrong team...`,type:`PROMOTER`,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`},xe=e.WrongPromoter={id:`pmt_01jps5cgshfgkvmjhfkev542en`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Wrong Promoter`,slug:`wrong-promoter`,description:`This is the wrong promoter...`,payoutFrequency:`AFTER_EVENT`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,type:`PROMOTER`,teamId:be.id,geohash:`r3gx1`,location:{id:`loc_01jps5cgshfgkvmjhfkev542ep`,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.8688,longitude:151.2093,timeZone:`Australia/Sydney`},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`};e.WrongPromoterMember={id:`mbr_01jps5cgsec5ge0b1bxa6gzkkk`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),promoterId:xe.id,userId:ye.id,user:{id:ye.id,email:ye.email,firstName:ye.firstName,lastName:ye.lastName},permissions:[`*`],tenantId:t.id};let Se=e.WrongEvent=ch({id:`evt_01jps5cgshm2v14zzykna678fd`,name:`Wrong Event`,slug:`wrong-event`,description:`This is the wrong event...`,location:{id:`loc_01jps5cgshm2v14zzykna678fe`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),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`,image:{src:`https://assets.session.services/locations/watsons-eq.jpg`,alt:`Watson's EQ`,width:1200,height:800}},teamId:be.id,promoterId:xe.id,tenantId:t.id}),Ce=e.WrongAdmission=lh({id:`adm_01jps5cgshfggkvmjhfkevy5en`,sectionId:(e.WrongSection={id:`sct_01jps5cgsh6asm2d0ghfqq6br2`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:be.id,promoterId:xe.id,eventId:Se.id,eventSlug:Se.slug,name:`Wrong Admission`,capacity:200,limit:-1,available:200,reserved:0,order:0,sold:0,visibility:`ALWAYS`,location:te,tenantId:t.id}).id,teamId:be.id,promoterId:xe.id,eventId:Se.id,eventSlug:Se.slug,name:`Wrong Release`,tenantId:t.id});e.ExpiredAdmission={...m,id:`adm_01jq6cazzbswynyvg8d0hpx1n5`,entryStartsAt:y$1(new Date(2020,0,1)),entryEndsAt:y$1(v$1(new Date(2020,0,1),2))};let we=e.WrongBeneficiary={id:`ben_01jps5cgshfgnzwvcyck0y4sdg`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`My Bank Account`,currency:`AUD`,gatewayId:`ben_12345abcde67890`,gateway:`AIRWALLEX`,assignment:`PROMOTER`,teamId:be.id,promoterId:xe.id,tenantId:t.id},Te=e.WrongCoupon={id:`cpn_01jps5cgsh4fy01mvwvzn7xbc9`,couponId:`cpn_01jps5cgsh4fy01mvwvzn7xbc9`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Wrong Price`,active:true,kind:`PERCENT`,filter:`TEAM`,currency:`AUD`,discount:50,uses:0,limit:-1,saleStartsAt:y$1(new Date(2025,1,10,3,0,0)),saleEndsAt:void 0,deletedAt:void 0,teamId:be.id,tenantId:t.id},Ee=e.WrongCouponCode={id:`cod_01jps5cgsh2hevcp6av50kbgyf`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),active:true,name:`WRONG`,tenantId:t.id,couponId:Te.id,teamId:be.id},De=e.WrongPayout={id:`pyt_01jps5cgshynssderz1k0fd7z3`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),paidAt:new Date().toISOString(),structure:`default`,items:{tickets:{beneficiaryId:we.id,feeAmount:0,feeCurrency:`AUD`,transferAmount:1e3,transferCurrency:`AUD`},sessions:{beneficiaryId:we.id,feeAmount:0,feeCurrency:`AUD`,transferAmount:650,transferCurrency:`AUD`}},eventId:Se.id,teamId:be.id,promoterId:xe.id},Oe=e.WrongOrder={id:`ord_01jps5cgshxhcpy2djnr8e04s3`,token:`51126f93491f3bda92235ade2d87baec7935610e52b64d4252a3c721dfc6016a`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`PENDING`,payment:{method:`FREE`},price:{total:0,base:0,booking:0,discount:0,processor:0,currency:`AUD`},code:{id:Ee.id,name:Ee.name},customer:ue,teamId:be.id,promoterId:xe.id,eventId:Se.id,paymentId:``,payoutIds:[De.id]};e.WrongOrderItem={id:`itm_01jps5cgsh14bjvyywkvt6f37e`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:Oe.id,kind:`ADMISSION`,quantity:2,admissionId:Ce.id,price:{base:Ce.price.base,booking:Ce.price.booking,discount:0,currency:Ce.price.currency}},e.WrongOrderFee={id:`fee_01jps5cgshgebpv67sppjfrgb8`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:Oe.id,reason:`Gateway Fee`,amount:-30,currency:`AUD`,requestId:`att_sgpdz4v2ph1axmdmdx8_m8w6qv`},e.WrongTicket=uh({token:`a1b2c3d4e5f6789012345678901234567890123456789012345678901234abcd`,teamId:be.id}),e.AnotherTicket={...he,id:`tkt_01jq6v4gmad9m28kzw8g8910jw`},e.ExpiredTicket=uh({token:`e1f2a3b4c5d6789012345678901234567890123456789012345678901234efab`}),e.UpcomingPayout={...de,id:`pyt_01jq9cvaxvatez34jmwn11rzt8`,status:`UPCOMING`,transfers:[],deductions:[]},e.PayoutNotePayout={...de,id:`pyt_01kr2note0000000000000001`,transfers:[],deductions:[]};let h=e.MixmagTenant={id:`tnt_01hk153x00en6tvgwwwhn8xj1p`,oldId:`p8npi2s3t24arpunzp2e7dzaq`,name:`Mixmag ANZ`,slug:`mixmag-anz`,email:`hello@mixmag.net.au`,adminTeamId:`tem_01hr9kk2pgez2s8jzb3gs5nwsf`,legacyTenantsToTeams:{clhvrnqph0000m9rq039hkw7s:`tem_01k5sashm1xmaganzteam0001`,"6kh3sj8ih5tvg927rz5elm90o":`tem_01k6blankm1xmaganzteam002`,vc8vrjrv5arhabnk8ainx0ycb:`tem_01k7prowlm1xmaganzteam003`,clkwbixsi0000m9coi7i5b65z:`tem_01k8crousm1xmaganzteam004`},defaultCurrency:`AUD`,smsSenderId:`MIXMAG`,baseUrl:{dev:`http://mixmag-au.local:3000`,production:`https://mixmag-anz.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/mixmag-anz/qr.svg`}},favicon:`https://assets.session.services/tenants/mixmag-anz/favicon.svg`},ke=e.MixmagUser={id:`usr_01jps5cgsmh2d4ez6xz2t23fsf`,email:`mixmag@session.services`,firstName:`Mixmag`,lastName:`User`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),tenantId:h.id},Ae=e.MixmagTeam={id:`tem_01hr9kk2pgez2s8jzb3gs5nwsf`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag Team`,slug:`mixmag-team`,description:`This is Mixmag team...`,type:`PROMOTER`,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`},je=e.MixmagPromoter={id:`pmt_01hr9kk2pgez2s8jzb3gs5nwsf`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),payoutFrequency:`AFTER_EVENT`,name:`Mixmag Promoter`,slug:`mixmag-promoter`,description:`This is Mixmag...`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,type:`PROMOTER`,geohash:`r3gx1`,location:{id:`loc_01hr9kk2pgez2s8jzb3gs5nwsg`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag`,address:`169 Oxford St, Darlinghurst NSW 2010, Australia`,city:`Darlinghurst`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8774,longitude:151.2196,timeZone:`Australia/Sydney`},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},teamId:Ae.id,tenantId:`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`},Me=e.MixmagSashPromoter={id:`pmt_01jps5cgsm15cfwrtat68b2vq5`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),payoutFrequency:`WEEKLY`,name:`SASH Mixmag Promoter`,slug:`sash-mixmag-promoter`,description:`This is SASH on Mixmag...`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,type:`PROMOTER`,geohash:`r3gx1`,location:{id:`loc_01jps5cgsm15cfwrtat68b2vq6`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag`,address:`169 Oxford St, Darlinghurst NSW 2010, Australia`,city:`Darlinghurst`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8774,longitude:151.2196,timeZone:`Australia/Sydney`},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},tenantId:h.id},Ne=e.MixmagSashTeam={id:`tem_01ha3fnp48ekdst2ezkgxm3zem`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Sash Team`,slug:`sash`,description:`SASH team for Mixmag ANZ fixtures`,type:`PROMOTER`,tenantId:h.id},Pe=e.MixmagSashFixturePromoter={id:`pmt_01ha3fnp48ekdst2ezkgxm3zem`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),payoutFrequency:`WEEKLY`,name:`Sash Fixture Promoter`,slug:`sash-fixture-promoter`,description:`Fixture promoter for SASH test event`,image:{src:`https://assets.session.services/icon-bg.png`,alt:`Session Services Logo`,width:800,height:800},approval:`APPROVED`,type:`PROMOTER`,geohash:`r3gx3`,location:{...ne,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()},tracking:{fbId:`485739562847563`,gtmId:`GTM-K8WPM5N`,tikTokId:`BQCKPH3RC77U8GPMLJ5G`},teamId:Ne.id,tenantId:h.id};e.MixmagSashFixtureEvent={id:`evt_01hj8xw1e0em7vjns3zjtc9q9g`,createdAt:`2023-12-22T14:11:36.000Z`,updatedAt:`2024-12-13T07:53:26.000Z`,name:`Test Event`,slug:`test-event`,description:`This is an event for testing`,approval:`APPROVED`,status:`ENDED`,visibility:`PRIVATE`,currency:`AUD`,entryStartsAt:`2024-12-30T21:00:56`,entryEndsAt:`2024-12-31T03:00:08`,publishAt:`2024-12-13T18:49:56`,images:{mobile:{src:`https://assets.session.services/uploads/images/1771573094836-test-event-1734076207200-mobile.jpg`,alt:`test-event-1734076207200-mobile.jpg`,width:1080,height:1350},desktop:{src:`https://assets.session.services/uploads/images/1771573095056-test-event-1734076207200-desktop.jpg`,alt:`test-event-1734076207200-desktop.jpg`,width:1920,height:1005}},geohash:`r3gx3`,location:{...ne,createdAt:`2025-12-12T08:13:11.004Z`,updatedAt:`2025-12-12T08:13:11.171Z`},teamId:Ne.id,promoterId:Pe.id,tenantId:h.id},e.MixmagPromoterMember={id:`mbr_01jps5cgsmk2femegmakpgrjdq`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),promoterId:je.id,promoterSlug:je.slug,userId:ke.id,user:{id:ke.id,email:ke.email,firstName:ke.firstName,lastName:ke.lastName},permissions:[`*`],tenantId:h.id};let g=e.MixmagEvent=ch({id:`evt_01jps5cgsmwksmhse1gr2jrq7x`,name:`Mixmag Event`,slug:`wrong-event`,description:`This is the wrong event...`,location:{id:`loc_01jps5cgsmkp1bdr7hgfmmhr4e`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag`,address:`169 Oxford St, Darlinghurst NSW 2010, Australia`,city:`Darlinghurst`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8774,longitude:151.2196,timeZone:`Australia/Sydney`},teamId:Ae.id,promoterId:je.id,tenantId:h.id}),Fe=e.MixmagSashEvent=ch({id:`evt_01kb1ve66keh4rntf96rq5wpk2`,name:`Mixmag SASH Event`,slug:`mixmag-sash-event`,description:`This is a sash on mixmag event...`,location:{id:`loc_01jps5cgsm7qxvh6watsons0eq`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Watson's EQ`,address:`The, Entertainment Quarter, 1 Bent St, Moore Park NSW 2021, Australia`,city:`Moore Park`,state:`New South Wales`,postcode:`2010`,country:`Australia`,latitude:-33.8944593,longitude:151.2252255,timeZone:`Australia/Sydney`},teamId:Ae.id,promoterId:je.id,tenantId:h.id}),Ie=e.MixmagAdmission=lh({id:`adm_01jps5cgsmbepdasrtxvh9xa0k`,sectionId:(e.MixmagSection={id:`sct_01jps5cgsmhrfxjn18y9bfdqc2`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),teamId:Ae.id,promoterId:je.id,eventId:g.id,eventSlug:g.slug,name:`Mixmag Admission`,capacity:200,limit:-1,available:200,reserved:0,order:0,sold:0,visibility:`ALWAYS`,location:te,tenantId:h.id}).id,teamId:Ae.id,promoterId:je.id,eventId:g.id,eventSlug:g.slug,name:`Mixmag Release`,tenantId:h.id});e.MixmagSashAdmission=lh({id:`adm_01jps5cgsm5c3scpdyf25bhntd`,promoterId:Me.id,eventId:Fe.id,eventSlug:Fe.slug,name:`Final Release`,tenantId:h.id});let Le=e.MixmagBeneficiary={id:`ben_01jps5cgsmgxsdv4nxjk51s5by`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`My Bank Account`,currency:`AUD`,gatewayId:`ben_12345abcde67890`,gateway:`AIRWALLEX`,assignment:`PROMOTER`,teamId:Ae.id,promoterId:je.id,tenantId:h.id},Re=e.MixmagCoupon={id:`cpn_01kb1vvpa0ecrbpyh2j5mvzdp9`,couponId:`cpn_01kb1vvpa0ecrbpyh2j5mvzdp9`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),name:`Mixmag Price`,active:true,kind:`PERCENT`,filter:`TEAM`,currency:`AUD`,discount:50,uses:0,limit:-1,saleStartsAt:y$1(new Date(2025,1,10,3,0,0)),saleEndsAt:void 0,deletedAt:void 0,teamId:Ae.id,tenantId:h.id},ze=e.MixmagCouponCode={id:`cod_01jps5cgsmc53405wk7t2v8ka7`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),active:true,name:`MIXMAG`,tenantId:h.id,couponId:Re.id,teamId:Ae.id},Be=e.MixmagPayout={id:`pyt_01jps5cgsmx1x39hnrmvvtcets`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),paidAt:new Date().toISOString(),structure:`default`,items:{tickets:{beneficiaryId:Le.id,feeAmount:0,feeCurrency:`AUD`,transferAmount:1e3,transferCurrency:`AUD`},sessions:{beneficiaryId:Le.id,feeAmount:0,feeCurrency:`AUD`,transferAmount:650,transferCurrency:`AUD`}},eventId:g.id,promoterId:je.id},Ve=e.MixmagOrder={id:`ord_01jps5cgsmtxt8e0985tstqe5h`,token:`16a761b251a2368027c6c08453eca1a97f7e7fcbf714b789c8aa96033d199b90`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`PENDING`,payment:{method:`FREE`},price:{total:0,base:0,booking:0,discount:0,processor:0,currency:`AUD`},code:{id:ze.id,name:ze.name},customer:ue,promoterId:je.id,eventId:g.id,paymentId:``,payoutIds:[Be.id]},He=e.MixmagOrderItem={id:`itm_01jps5cgsmqrkg0btn7khdyjyg`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:Ve.id,kind:`ADMISSION`,quantity:2,admissionId:Ie.id,price:{base:Ie.price.base,booking:Ie.price.booking,discount:0,currency:Ie.price.currency}};e.MixmagOrderFee={id:`fee_01jps5cgsm4jgpnfqxahmwm7he`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),orderId:Ve.id,reason:`Gateway Fee`,amount:30,currency:`AUD`,requestId:`att_sgpdz4v2ph1axmdmdx8_m8w6qv`},e.MixmagTicket={id:`tkt_01jps5cgsmycbvfrqw5h3zt9bp`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),status:`REDEEMED`,scans:[],token:`m1i2x3m4a5g6789012345678901234567890123456789012345678901234mixm`,attendee:{email:ue.email,firstName:ue.firstName,lastName:ue.lastName},event:{id:g.id,name:g.name,slug:g.slug,location:g.location,entryStartsAt:g.entryStartsAt,entryEndsAt:g.entryEndsAt,images:g.images},admission:{id:Ie.id,name:Ie.name,price:Ie.price,entryStartsAt:Ie.entryStartsAt,entryEndsAt:Ie.entryEndsAt},eventId:g.id,customerId:ue.id,orderId:Ve.id,orderItemId:He.id,admissionId:Ie.id,promoterId:je.id,promoterSlug:je.slug,tenantId:h.id},e.InactiveCoupon={...oe,id:`cpn_01kb1ve66keh4rntfm5z89yskj`,couponId:`cpn_01kb1ve66keh4rntfm5z89yskj`,name:`Inactive Coupon`,active:false};let Ue=e.MelbourneLocation={id:`loc_01hk153x00ebfrn7y8v7z8emew`,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),googlePlaceId:`ChIJc4QL47ZC1moRFW-PYdhx-O0`,name:`Federation Square`,address:`Federation Square, Melbourne VIC 3000, Australia`,city:`Melbourne`,state:`Victoria`,postcode:`3000`,country:`Australia`,latitude:-37.8179789,longitude:144.9690576,timeZone:`Australia/Melbourne`};e.MelbourneVenue={...a,id:`ven_01kb1ve66heh4rntebeywafbwj`,name:`Melbourne Convention Centre`,slug:`melbourne-convention-centre`,description:`Premier convention and exhibition venue in Melbourne`,locationId:Ue.id,location:Ue,geohash:`r1r0f`};let We=e.MelbournePromoter={...u,id:`pmt_01kb1ve66keh4rntehghtb8j43`,name:`Melbourne Promoter`,slug:`melbourne-promoter`,description:`A promoter based in Melbourne`,geohash:`r1r0f`,location:Ue};e.MelbourneEvent={...p,id:`evt_01kb1ve66keh4rnteypq587crh`,name:`Melbourne Event`,slug:`melbourne-event`,description:`An event in Melbourne for geo testing`,promoterId:We.id,geohash:`r1r0f`,location:Ue},e.PendingVenue={...a,id:`ven_01kb1ve66keh4rntf3crpmdyaw`,name:`Pending Venue`,slug:`pending-venue`,description:`A venue pending approval`,approval:`PENDING`},e.Locations={sydneyOperaHouse:{id:`loc_01hk153x00fpxv6cjp99qawkcs`,googlePlaceId:`ChIJ3S-JXmauEmsRUcIaWtf4MzE`,name:`Sydney Opera House`,address:`Bennelong Point, Sydney NSW 2000, Australia`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8567844,longitude:151.2152967,timeZone:`Australia/Sydney`,types:[`establishment`,`point_of_interest`,`tourist_attraction`],image:{src:`https://assets.session.services/locations/loc_01hk153x00fpxv6cjp99qawkcs.jpg`,alt:`Sydney Opera House`,width:1200,height:800}},carouselBarBallroom:{...ne,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),types:[...ne.types],image:ne.image},homeTheVenue:{id:`loc_01hk153x00eqbb7qm3b7fjxh7j`,googlePlaceId:`ChIJLaRY2DuuEmsRkgiW8LMz2Hs`,name:`Home The Venue`,address:`101/1-5 Wheat Rd, Sydney NSW 2000, Australia`,city:`Sydney`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8725457,longitude:151.201907,timeZone:`Australia/Sydney`,types:[`establishment`,`food`,`night_club`,`point_of_interest`,`restaurant`],image:{src:`https://assets.session.services/locations/loc_01hk153x00eqbb7qm3b7fjxh7j.jpg`,alt:`Home The Venue`,width:1200,height:800}},greenwoodHotel:{id:`loc_01hk153x00eerbxb70s9fwbmc9`,googlePlaceId:`ChIJPZiEA_OuEmsRWKYZIBL58QU`,name:`Greenwood Hotel`,address:`The Greenwood Plaza Rooftop, 36 Blue St, North Sydney NSW 2060, Australia`,city:`North Sydney`,state:`New South Wales`,postcode:`2060`,country:`Australia`,latitude:-33.8401485,longitude:151.2074803,timeZone:`Australia/Sydney`,types:[`bar`,`establishment`,`food`,`point_of_interest`,`restaurant`],image:{src:`https://assets.session.services/locations/loc_01hk153x00eerbxb70s9fwbmc9.jpg`,alt:`Greenwood Hotel`,width:1200,height:800}},sydneyRacquetClub:{id:`loc_01hk153x00f26trt0z9kmm5pm4`,googlePlaceId:`ChIJB3Dai2SvEmsR904tdDsfGWs`,name:`Sydney Racquet Club`,address:`17 Park Rd N, Moore Park NSW 2021, Australia`,city:`Moore Park`,state:`New South Wales`,postcode:`2021`,country:`Australia`,latitude:-33.89344310000001,longitude:151.2260224,timeZone:`Australia/Sydney`,types:[`establishment`,`point_of_interest`],image:{src:`https://assets.session.services/locations/loc_01hk153x00f26trt0z9kmm5pm4.jpg`,alt:`Sydney Racquet Club`,width:1200,height:800}},centralStation:{id:`loc_01hk153x00fypv7sxqvby33hsg`,googlePlaceId:`ChIJpcfaaCGuEmsRcTRNZkqb51U`,name:`Central Station`,address:`Eddy Ave, Haymarket NSW 2000, Australia`,city:`Haymarket`,state:`New South Wales`,postcode:`2000`,country:`Australia`,latitude:-33.8826465,longitude:151.2064744,timeZone:`Australia/Sydney`,types:[`establishment`,`point_of_interest`,`subway_station`,`train_station`,`transit_station`],image:{src:`https://assets.session.services/locations/loc_01hk153x00fypv7sxqvby33hsg.jpg`,alt:`Central Station`,width:1200,height:800}},federationSquare:{id:`loc_01hk153x00ebfrn7y8v7z8emew`,googlePlaceId:`ChIJc4QL47ZC1moRFW-PYdhx-O0`,name:`Federation Square`,address:`Federation Square, Melbourne VIC 3000, Australia`,city:`Melbourne`,state:`Victoria`,postcode:`3000`,country:`Australia`,latitude:-37.8179789,longitude:144.9690576,timeZone:`Australia/Melbourne`,types:[`town_square`],image:{src:`https://assets.session.services/locations/loc_01hk153x00ebfrn7y8v7z8emew.jpg`,alt:`Federation Square`,width:1200,height:800}},bondiBeach:{id:`loc_01hk153x00er59hr0dvf9t4mpy`,googlePlaceId:`ChIJWTi8xgGyEmsRgK0yFmh9AQU`,name:`Bondi Beach`,address:`Bondi Beach NSW 2026, Australia`,city:`Bondi Beach`,state:`New South Wales`,postcode:`2026`,country:`Australia`,latitude:-33.8891201,longitude:151.2703991,timeZone:`Australia/Sydney`,types:[`locality`,`political`],image:{src:`https://assets.session.services/locations/loc_01hk153x00er59hr0dvf9t4mpy.jpg`,alt:`Bondi Beach`,width:1200,height:800}},sydney:{id:`loc_01hk153x00fyrr4gttg9psr5cv`,googlePlaceId:`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`,name:`Sydney`,address:`Sydney NSW, Australia`,city:`Sydney`,state:`New South Wales`,postcode:void 0,country:`Australia`,latitude:-33.8727409,longitude:151.2057136,timeZone:`Australia/Sydney`,types:[`colloquial_area`,`locality`,`political`],image:{src:`https://assets.session.services/locations/loc_01hk153x00fyrr4gttg9psr5cv.jpg`,alt:`Sydney`,width:1200,height:800}}};})(Z$1||={});const fh=F$1({net:M$1().min(0).meta({examples:[b$1.OrderItem.price.net],description:`Total amount to pay to promoter in cents.
37
37
  Calculated as: total - booking - refunded`}),total:M$1().min(0).meta({examples:[b$1.OrderItem.price.total],description:`Total amount the customer should pay in cents.
38
38
  Calculated as: gross - discount`}),gross:M$1().min(0).meta({examples:[b$1.OrderItem.price.gross],description:`Total amount before refunds and discounts in cents.
39
- Calculated as: base + booking`}),base:M$1().min(0).meta({examples:[b$1.OrderItem.price.base],description:`Total ticket price in cents`}),booking:M$1().min(0).meta({examples:[b$1.OrderItem.price.booking],description:`Total booking fees in cents (non-refundable)`}),refunded:M$1().max(0).meta({examples:[b$1.OrderItem.price.refunded],description:`Total amount refunded in cents`}),discount:M$1().max(0).meta({examples:[b$1.OrderItem.price.discount],description:`Total amount discounted in cents`}),currency:R$1.meta({examples:[b$1.OrderItem.price.currency],description:`Currency code in ISO 4217 format.`})}),ah=I$1([`ADMISSION`,`ADDON`]),sh=F$1({id:k$1().meta({examples:[b$1.OrderItem.id],description:`Unique identifier for this order item`}),kind:ah.meta({examples:[b$1.OrderItem.kind],description:`Type of item: ADMISSION for tickets, ADDON for additional products or services`}),quantity:M$1().min(1).meta({examples:[b$1.OrderItem.quantity],description:`Number of items purchased (minimum 1)`}),admissionId:k$1().optional().meta({examples:[b$1.OrderItem.admissionId],description:`Unique identifier of the admission ticket type, required for ADMISSION items`}),sectionId:k$1().optional().meta({examples:[b$1.OrderItem.sectionId],description:`Unique identifier of the venue section for this admission`}),admission:W$2.optional().meta({examples:[Z$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:zp.optional().meta({examples:[Z$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:ih.meta({description:`Pricing breakdown for this order item including all fees and discounts`})}),ch=F$1({promoter:N$1(),tenant:N$1()}),lh=I$1([`SMS_DELIVERY`]).meta({description:`Type of pre-computed offer available for this order`}),uh=F$1({amount:M$1().min(0).meta({examples:[200],description:`Offer price in the smallest currency unit (e.g. cents)`}),currency:R$1.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code`})}),dh=F$1({kind:lh.meta({examples:[`SMS_DELIVERY`],description:`Discriminator identifying the type of offer`}),label:k$1().meta({examples:[`SMS ticket delivery`],description:`Human-readable label for the offer`}),price:uh.meta({description:`Pre-computed price for this offer`})}),fh=I$1([`FREE`,`AIRWALLEX`,`STRIPE`]),mh=I$1([`AMERICAN_EXPRESS`,`CHINA_UNION_PAY`,`DINERS_CLUB_INTERNATIONAL`,`DISCOVER`,`JCB`,`MAESTRO`,`MASTERCARD`,`UNION_PAY`,`VISA`]),gh=I$1(`ACH_DIRECT_DEBIT.ACSS_DEBIT.AFFIRM.AFTERPAY.ALFAMART.ALIPAY.ALIPAYCN.ALIPAYHK.ALMA.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.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.WECHATPAY.ZIP`.split(`.`)),vh=F$1({method:fh.meta({examples:[`FREE`],description:`Payment gateway used to process this order: FREE for no-cost orders, AIRWALLEX or STRIPE for paid orders`}),source:gh.optional().meta({examples:[`APPLEPAY`,`GOOGLEPAY`,`CARD`],description:`Payment method used by the customer such as ApplePay, GooglePay, or card-based payments`}),brand:mh.optional().meta({examples:[`VISA`,`MASTERCARD`,`AMERICAN_EXPRESS`],description:`Card brand when source is CARD (Visa, Mastercard, American Express, etc.)`}),last4:k$1().optional().meta({examples:[`4242`],description:`Last 4 digits of the card number when source is CARD`}),stripeId:k$1().optional().meta({examples:[`pi_1234567890abcdef`],description:`Stripe payment intent identifier when using Stripe gateway`}),stripeClientSecret:k$1().optional().meta({examples:[`pi_1234567890abcdef_secret_xyz`],description:`Stripe PaymentIntent client secret associated with the order, used to complete the payment flow`}),stripeAccountId:k$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:k$1().optional().meta({examples:[`int_hkdmr7v9rg1j8donpkmv96`],description:`Airwallex payment intent identifier when using Airwallex gateway`}),airwallexClientSecret:k$1().optional().meta({examples:[`eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiaW50ZW50X2lkIjoiaW50X2hrZG1yN3Y5cmcxajhkb25wa212OTYifQ.K8vLx2nPzQHdR5mT1wYcBfJkLmNpS3xG7aE9dH4qZvM`],description:`Airwallex client secret used to authenticate requests for payment initialization`}),airwallexCustomerId:k$1().optional().meta({examples:[`cus_hkdmrhkh8he4j3kvela`],description:`Airwallex customer ID attached to the PaymentIntent for saved cards functionality`}),airwallexCustomerClientSecret:k$1().optional().meta({examples:[`eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiY3VzdG9tZXJfaWQiOiJjdXNfaGtkbXJoa2g4aGU0ajNrdmVsYSJ9.abc123`],description:`Airwallex customer client secret for accessing saved payment methods in the Drop-in Element`})}),yh=F$1({net:M$1().meta({examples:[b$1.Order.price.net],description:`Total amount to pay to promoter in cents.
39
+ Calculated as: base + booking`}),base:M$1().min(0).meta({examples:[b$1.OrderItem.price.base],description:`Total ticket price in cents`}),booking:M$1().min(0).meta({examples:[b$1.OrderItem.price.booking],description:`Total booking fees in cents (non-refundable)`}),refunded:M$1().max(0).meta({examples:[b$1.OrderItem.price.refunded],description:`Total amount refunded in cents`}),discount:M$1().max(0).meta({examples:[b$1.OrderItem.price.discount],description:`Total amount discounted in cents`}),currency:z$2.meta({examples:[b$1.OrderItem.price.currency],description:`Currency code in ISO 4217 format.`})}),ph=I$1([`ADMISSION`,`ADDON`]),hh=F$1({id:k$1().meta({examples:[b$1.OrderItem.id],description:`Unique identifier for this order item`}),kind:ph.meta({examples:[b$1.OrderItem.kind],description:`Type of item: ADMISSION for tickets, ADDON for additional products or services`}),quantity:M$1().min(1).meta({examples:[b$1.OrderItem.quantity],description:`Number of items purchased (minimum 1)`}),admissionId:k$1().optional().meta({examples:[b$1.OrderItem.admissionId],description:`Unique identifier of the admission ticket type, required for ADMISSION items`}),sectionId:k$1().optional().meta({examples:[b$1.OrderItem.sectionId],description:`Unique identifier of the venue section for this admission`}),admission:W$2.optional().meta({examples:[Z$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:Yp.optional().meta({examples:[Z$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:fh.meta({description:`Pricing breakdown for this order item including all fees and discounts`})}),gh=F$1({promoter:N$1(),tenant:N$1()}),_h=I$1([`SMS_DELIVERY`]).meta({description:`Type of pre-computed offer available for this order`}),vh=F$1({amount:M$1().min(0).meta({examples:[200],description:`Offer price in the smallest currency unit (e.g. cents)`}),currency:z$2.meta({examples:[`AUD`],description:`Three-letter ISO 4217 currency code`})}),yh=F$1({kind:_h.meta({examples:[`SMS_DELIVERY`],description:`Discriminator identifying the type of offer`}),label:k$1().meta({examples:[`SMS ticket delivery`],description:`Human-readable label for the offer`}),price:vh.meta({description:`Pre-computed price for this offer`})}),bh=I$1([`FREE`,`AIRWALLEX`,`STRIPE`]),Sh=I$1([`AMERICAN_EXPRESS`,`CHINA_UNION_PAY`,`DINERS_CLUB_INTERNATIONAL`,`DISCOVER`,`JCB`,`MAESTRO`,`MASTERCARD`,`UNION_PAY`,`VISA`]),wh=I$1(`ACH_DIRECT_DEBIT.ACSS_DEBIT.AFFIRM.AFTERPAY.ALFAMART.ALIPAY.ALIPAYCN.ALIPAYHK.ALMA.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.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.WECHATPAY.ZIP`.split(`.`)),Eh=F$1({method:bh.meta({examples:[`FREE`],description:`Payment gateway used to process this order: FREE for no-cost orders, AIRWALLEX or STRIPE for paid orders`}),source:wh.optional().meta({examples:[`APPLEPAY`,`GOOGLEPAY`,`CARD`],description:`Payment method used by the customer such as ApplePay, GooglePay, or card-based payments`}),brand:Sh.optional().meta({examples:[`VISA`,`MASTERCARD`,`AMERICAN_EXPRESS`],description:`Card brand when source is CARD (Visa, Mastercard, American Express, etc.)`}),last4:k$1().optional().meta({examples:[`4242`],description:`Last 4 digits of the card number when source is CARD`}),stripeId:k$1().optional().meta({examples:[`pi_1234567890abcdef`],description:`Stripe payment intent identifier when using Stripe gateway`}),stripeClientSecret:k$1().optional().meta({examples:[`pi_1234567890abcdef_secret_xyz`],description:`Stripe PaymentIntent client secret associated with the order, used to complete the payment flow`}),stripeAccountId:k$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:k$1().optional().meta({examples:[`int_hkdmr7v9rg1j8donpkmv96`],description:`Airwallex payment intent identifier when using Airwallex gateway`}),airwallexClientSecret:k$1().optional().meta({examples:[`eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiaW50ZW50X2lkIjoiaW50X2hrZG1yN3Y5cmcxajhkb25wa212OTYifQ.K8vLx2nPzQHdR5mT1wYcBfJkLmNpS3xG7aE9dH4qZvM`],description:`Airwallex client secret used to authenticate requests for payment initialization`}),airwallexCustomerId:k$1().optional().meta({examples:[`cus_hkdmrhkh8he4j3kvela`],description:`Airwallex customer ID attached to the PaymentIntent for saved cards functionality`}),airwallexCustomerClientSecret:k$1().optional().meta({examples:[`eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiY3VzdG9tZXJfaWQiOiJjdXNfaGtkbXJoa2g4aGU0ajNrdmVsYSJ9.abc123`],description:`Airwallex customer client secret for accessing saved payment methods in the Drop-in Element`})}),Dh=F$1({net:M$1().meta({examples:[b$1.Order.price.net],description:`Total amount to pay to promoter in cents.
40
40
  Calculated as: total + booking + refunded + dispute`}),total:M$1().meta({examples:[b$1.Order.price.total],description:`Total amount the customer should pay in cents.
41
41
  Calculated as: gross + discount`}),gross:M$1().min(0).meta({examples:[b$1.Order.price.gross],description:`Total amount before refunds and discounts in cents.
42
- Calculated as: base + booking + shipping`}),base:M$1().min(0).meta({examples:[b$1.Order.price.base],description:`Total ticket price in cents`}),booking:M$1().min(0).meta({examples:[b$1.Order.price.booking],description:`Total booking fees in cents (non-refundable)`}),shipping:M$1().min(0).meta({examples:[b$1.Order.price.shipping],description:`Total shipping amount in cents`}),sms:M$1().min(0).default(0).meta({examples:[b$1.Order.price.sms],description:`SMS delivery fee in cents (customer-facing price in event currency)`}),refunded:M$1().max(0).meta({examples:[b$1.Order.price.refunded],description:`Total amount refunded in cents (negative value)`}),discount:M$1().max(0).meta({examples:[b$1.Order.price.discount],description:`Total amount discounted in cents (negative value)`}),gateway:M$1().max(0).meta({examples:[b$1.Order.price.gateway],description:`Total absorbed payment gateway fees in cents (negative value)`}),dispute:M$1().max(0).meta({examples:[b$1.Order.price.dispute],description:`Total non-absorbed payment gateway fees in cents (negative value)`}),currency:R$1.meta({examples:[b$1.Order.price.currency],description:`Currency code in ISO 4217 format`})}),bh=I$1([`PENDING`,`PROCESSING`,`SUCCEEDED`,`FAILED`]),Sh=I$1([`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`,`OTHER`]),wh=I$1([`USER`,`GATEWAY`]),Eh=F$1({orderItemId:k$1().meta({examples:[b$1.OrderRefundItem.orderItemId],description:`Identifier of the order item being refunded`}),quantity:M$1().min(1).meta({examples:[b$1.OrderRefundItem.quantity],description:`Number of units refunded for this item`}),amount:M$1().min(0).meta({examples:[b$1.OrderRefundItem.amount],description:`Refund amount for this item in cents (base price only, excludes booking fee)`}),ticketIds:P$1(k$1()).meta({examples:[b$1.OrderRefundItem.ticketIds],description:`Specific ticket identifiers that were refunded (selected via FIFO)`})}),Dh=F$1({id:k$1().meta({examples:[b$1.OrderRefund.id],description:`Unique identifier for this refund`}),idempotencyKey:k$1().optional().meta({examples:[b$1.OrderRefund.idempotencyKey],description:`Client-provided key to prevent duplicate refund processing`}),status:bh.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.`}),processedAt:D$1().optional().meta({examples:[b$1.OrderRefund.processedAt],description:`Timestamp when the payment gateway confirmed the refund`}),failureReason:k$1().optional().meta({examples:[`Insufficient funds for refund`],description:`Error message from payment gateway if refund failed`}),amount:M$1().min(1).meta({examples:[b$1.OrderRefund.amount],description:`Total refund amount in cents (excludes booking fee, includes shipping if applicable)`}),shippingRefunded:M$1().min(0).meta({examples:[b$1.OrderRefund.shippingRefunded],description:`Shipping portion of the refund in cents`}),reason:Sh.meta({examples:[`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`],description:`Categorized reason for the refund used for analytics`}),note:k$1().optional().meta({examples:[b$1.OrderRefund.note],description:`Free-form notes explaining the refund`}),items:P$1(Eh).meta({description:`Line items included in this refund with quantities and amounts`}),ticketsCancelled:N$1().meta({examples:[b$1.OrderRefund.ticketsCancelled],description:`Whether tickets were cancelled as part of this refund`}),ticketsCancelledCount:M$1().optional().meta({examples:[b$1.OrderRefund.ticketsCancelledCount],description:`Number of tickets that were cancelled`}),gateway:fh.meta({examples:[`STRIPE`,`AIRWALLEX`],description:`Payment gateway used to process the refund`}),gatewayRefundId:k$1().optional().meta({examples:[b$1.OrderRefund.gatewayRefundId],description:`Refund identifier from the payment gateway`}),initiatedBy:wh.meta({examples:[`USER`,`GATEWAY`],description:`Whether refund was initiated by a user or directly through the payment gateway`}),userId:k$1().optional().meta({examples:[b$1.OrderRefund.userId],description:`Identifier of the user who initiated the refund (when initiatedBy is USER)`}),metadata:Cs(k$1(),k$1()).optional().meta({examples:[{supportTicket:`#12345`}],description:`Custom key-value pairs passed through to the payment gateway`}),createdAt:D$1().meta({examples:[b$1.OrderRefund.createdAt],description:`Timestamp when the refund was created`})}),Oh=yh.extend({exchangeRate:j$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 kh(e,t,n={}){return F$1({id:k$1().meta({examples:t.idExamples,description:t.idDescription}),createdAt:D$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:N$1().meta({examples:[false],description:`Whether this timeline entry can be edited by users`}),pinned:N$1().meta({examples:[false],description:`Whether this timeline entry is pinned to the top of the timeline`}),description:k$1().meta({examples:t.descriptionExamples,description:`Human-readable description of what happened in this timeline event`}),author:k$1().meta({examples:[`System`],description:`Name of the user or system that created this timeline entry`}),userId:k$1().optional().meta({examples:[b$1.User.id],description:t.userIdDescription??`Identifier of the user who created this timeline entry, when available`}),externalId:k$1().optional().meta({examples:t.externalIdExamples,description:t.externalIdDescription})})}const Ah=I$1(`ORDER_STATUS_UPDATED.ORDER_EXPIRED.ORDER_COMPLETED.PAYMENT_INITIATED.PAYMENT_PROCESSING.PAYMENT_FAILED.PAYMENT_SUCCEEDED.REFUND_INITIATED.REFUND_PROCESSING.REFUND_SUCCEEDED.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(`.`)),jh=kh(Ah,{createdAtExamples:[b$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:[b$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:k$1().optional().meta({examples:[`SUCCESSFUL`],description:`Order status associated with this timeline entry, when applicable.`})}),Mh=I$1([`PENDING`,`PROCESSING`,`SUCCESSFUL`,`DISPUTED`,`ABANDONED`]),Ph=F$1({id:dc.readonly().meta({examples:[b$1.Order.id],description:`A unique identifier for this order.`}),createdAt:D$1().readonly().meta({examples:[b$1.Order.createdAt],description:`Timestamp in ISO 8601 format when this order was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.Order.updatedAt],description:`Timestamp in ISO 8601 format when this order was last updated.`}),status:Mh.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.`}),payment:vh.optional().meta({description:`Payment gateway details including method, card brand, and transaction identifiers. Absent for free orders.`}),items:P$1(sh).meta({description:`Line items in this order, each with a ticket type, quantity, and price breakdown.`}),fees:P$1(Qm).meta({description:`Gateway fees recorded against this order from settlement processing (e.g. payment processing fees, dispute fees).`}),price:yh.meta({description:`Price breakdown in the event currency. This reflects what the customer was charged.`}),settlement:Oh.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:Jm.optional().meta({description:`Coupon code applied to this order for discount calculation.`}),customer:Ym.optional().meta({description:`Customer who placed this order. Absent for guest checkouts before customer details are captured.`}),marketingConsent:ch.optional().meta({description:`Marketing opt-in choices captured during checkout.`}),timeline:P$1(jh).optional().meta({description:`Chronological audit trail of events for this order (payments, refunds, emails, scans).`}),refunds:P$1(Dh).default([]).meta({description:`Refunds processed for this order including pending, succeeded, and failed attempts.`}),offers:P$1(dh).default([]).meta({description:`Pre-computed add-on offers available during checkout (e.g. SMS ticket delivery).`}),customerId:gc.optional().meta({examples:[b$1.Customer.id],description:`Identifier of the customer who placed this order.`}),createdBy:Ym.optional().meta({description:`Admin user who created this order on behalf of the customer.`}),teamId:sc.meta({description:`Team that owns this order.`}),promoterId:pc.meta({examples:[b$1.Promoter.id],description:`Promoter managing this order.`}),event:Xm.meta({description:`Snapshot of the event at time of purchase (name, slug, location).`}),payoutIds:P$1(bc.meta({examples:[`pay_01HQXYZ`],description:`Payout identifier.`})).meta({description:`Payout identifiers for settlements that included this order.`}),eventId:B$1.meta({examples:[b$1.Event.id],description:`Identifier of the event this order belongs to.`}),checkoutUrl:k$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:k$1().optional().meta({examples:[`https://example.com/event/success`],description:`URL to redirect to after successful payment completion.`}),channel:qm.optional().meta({description:`Channel metadata captured at order creation to identify origin and redirect context.`}),reservedAt:D$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.`}),Fh=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order to add a note to`}),note:k$1().min(1).max(1e3).meta({examples:[`Customer requested special seating arrangements`],description:`Note text content (1-1000 characters)`})}),Ih=sh.omit({id:true,price:true,kind:true}).extend({id:k$1().optional().meta({examples:[`itm_01jps5cgsfwyxj0516571eaf17`],description:`Unique identifier for this order item. When omitted, the server assigns an id during processing`})}),Lh=F$1({eventId:k$1().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Unique identifier of the event for which to create the order`}),items:P$1(Ih).meta({description:`List of items to include in the new order`}),couponCode:k$1().optional().meta({examples:[`TEST50`],description:`Optional coupon code to apply discount to the order`}),returnUrl:k$1().optional().meta({examples:[`https://example.com/event/success`],description:`Optional URL to redirect to after successful payment`}),channel:qm.optional().meta({description:`Optional channel metadata for where the order originated (for attribution and redirect routing).`})}),Rh=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order`}),noteId:k$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to delete`})}),zh=I$1([`EMAIL`,`SMS`]).meta({examples:[`EMAIL`],description:`Method used to deliver tickets to the customer: EMAIL or SMS`});F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order to edit`}),signature:wl.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for editing order items.`}),items:P$1(Ih).min(1).meta({description:`Updated list of items for the order (replaces existing items). Prices will be recalculated and payment intent updated.`})});const Vh=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order to retrieve`}),signature:wl.optional().meta({description:`HMAC signature for public order access (16 characters, base64url encoded)`})}),Hh=`Either locationId or googlePlaceId must be provided`,Uh={locationId:lc.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location. Either locationId or googlePlaceId must be provided.`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided.`})};function Wh(e){return !!(e.locationId||e.googlePlaceId)}const Gh=zp.omit({id:true,createdAt:true,updatedAt:true,order:true,available:true,sold:true,reserved:true,promoterId:true,eventSlug:true,location:true}).extend({order:j$1().optional().meta({examples:[b$1.Section.order],description:`Display order of the section. Lower numbers appear first in listings. Defaults to 0 if not specified`}),...Uh}).refine(Wh,{message:Hh}).meta({description:`Schema for creating a new section within an event venue. Excludes system-generated fields and fields derived from the event`}),Kh=zp.pick({id:true}).extend({eventId:k$1().meta({examples:[b$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`}),qh=zp.pick({id:true}).extend({eventId:k$1().meta({examples:[b$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`})}).meta({description:`Schema for retrieving a specific section by ID`}),Jh=F$1({eventId:zp.shape.eventId,query:k$1().optional().meta({examples:[`VIP`],description:`Optional search query. When provided, automatically uses search-backed pagination for full-text search capabilities`}),limit:L$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:k$1().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`}),Yh=G$2(zp,`sections`),Xh=F$1({section:zp}),Zh=zp.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,passcode:true}).extend({id:k$1().meta({examples:[b$1.Section.id],description:`Unique identifier of the section to update`}),eventId:k$1().meta({examples:[b$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`}),name:zp.shape.name.optional(),capacity:Oc().optional(),limit:kc().optional(),order:zp.shape.order.optional(),passcode:zp.shape.passcode,locationId:lc.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:k$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.`}),Qh=sh.extend({admission:W$2.optional().meta({description:`Complete admission details for this order item when available`}),section:zp.optional().meta({description:`Complete section details for this order item when applicable`})}),$h=I$1([`asc`,`desc`]),eg=F$1({mine:N$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:k$1().optional().meta({description:`Filter orders by team unique identifier`}),eventId:k$1().optional().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Filter orders by event unique identifier`}),status:Mh.optional().meta({examples:[`SUCCESSFUL`],description:`Filter orders by payment status`}),query:k$1().optional().meta({examples:[`John Doe`],description:`Optional search query to filter orders by customer details. When provided, search-backed pagination is used.`}),includeEventTerms:N$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.`}),direction:$h.optional().meta({examples:[`asc`,`desc`],description:"Sort direction for order lists. Orders are always sorted by creation time. Defaults to `desc` when omitted."}),from:k$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:k$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:U$2(`orders`),cursor:k$1().optional().meta({examples:[`eyJpZCI6Im9yZF8wMWpwczVjZ3NmZ3ZlNWI1ZzI2NjZreXJ5aCJ9`],description:`Pagination cursor for continuing to fetch subsequent results`})}),tg=G$2(Ph,`orders`),ng=F$1({items:P$1(Qh).meta({description:`List of order items with complete pricing and admission details`}),price:yh.meta({description:`Total pricing breakdown for the entire order quote`}),couponCode:rp.optional().meta({description:`Applied coupon code details if a discount was used in this quote`})}),rg=F$1({eventId:k$1().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Unique identifier of the event for which to generate a price quote`}),items:P$1(Ih).meta({description:`List of items to include in the price quote calculation`}),couponCode:k$1().optional().meta({examples:[`TEST50`],description:`Optional coupon code to apply discount to the quote`})}),ig=F$1({quote:ng}),ag=F$1({orderItemId:k$1().meta({examples:[b$1.OrderRefundItem.orderItemId],description:`Identifier of the order item to refund`}),quantity:M$1().min(1).meta({examples:[b$1.OrderRefundItem.quantity],description:`Number of units to refund for this item`})}),og=F$1({id:dc.meta({examples:[b$1.Order.id],description:`Identifier of the order to refund`}),fullRefund:N$1().default(false).meta({examples:[false],description:`When true, refunds all remaining refundable items. Mutually exclusive with items.`}),items:P$1(ag).optional().meta({description:`Specific items and quantities to refund. Required if fullRefund is false.`}),shippingAmount:M$1().min(0).optional().meta({examples:[500],description:`Amount of shipping to refund in cents. Cannot exceed remaining refundable shipping.`}),cancelTickets:N$1().default(true).meta({examples:[true],description:`Whether to cancel tickets associated with refunded items. Defaults to true.`}),notify:N$1().default(true).meta({examples:[true],description:`Whether to send a refund confirmation email to the customer. Defaults to true.`}),reason:Sh.meta({examples:[`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`],description:`Categorized reason for the refund`}),note:k$1().optional().meta({examples:[`Customer requested refund due to schedule conflict`],description:`Free-form notes explaining the refund`}),idempotencyKey:k$1().optional().meta({examples:[`refund_12345_customer_request`],description:`Client-provided key to prevent duplicate refund processing. Recommended for programmatic refunds.`}),metadata:Cs(k$1(),k$1()).optional().meta({examples:[{supportTicket:`#12345`}],description:`Custom key-value pairs passed through to the payment gateway`})}).refine(e=>e.fullRefund||e.items&&e.items.length>0,{message:`Either fullRefund must be true or items must be provided`}),sg=F$1({refund:Dh}),cg=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Order ID to resend tickets for`}),email:k$1().email().optional().meta({examples:[`customer@example.com`],description:`Email address to send tickets to. If not provided, uses order.customer.email`})}),lg=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order to reserve inventory for`}),signature:wl.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded).`})}),dg=F$1({order:Ph});var fg={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`,`(?:[025-7]\\d|44)\\d{6}`,[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`,`(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],0,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)?`,`8001\\d{5}|(?:[2-467]\\d|50)\\d{6}`,[8,9],[[`(\\d)(\\d{7})`,`$1 $2`,[`[235]|4[46]`]],[`(\\d{8})`,`$1`,[`[67]`]],[`(\\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`,`(?:[27]\\d{3}|8776)\\d{4}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[278]`]]]],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-579]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-579]`],`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`,`(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]|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{3}|800)\\d{5}`,[8,9],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[235]`],`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`,`(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`,0,0,0,0,0,[[`590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],0,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]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[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(?:(?:2[14]|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|4[47])|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(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|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]|28|3[129]|4[1-35689]|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[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|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]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|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`,`(?:33622|8\\d{8})\\d{5}|[78]\\d{9}`,[10,14],0,`8`,0,0,0,0,`33622|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`,[`2(?:[0367]|4[3-8])`]],[`(\\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`,[`2(?:[0367]|4[3-8])`]],[`(\\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]`]]],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`,`(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],0,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`,[`[12]1`],`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`,`(?:596\\d|7091)\\d{5}|(?:69|[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`,[`(?: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`,`(?: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`,`[45]\\d{5}|(?:708|8\\d\\d)\\d{6}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[45]`],`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,[[`26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}`],[`(?: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,0,[[`336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}`,[10]],[`9\\d{9}`,[10]],[`8(?:0[04]|108\\d{3})\\d{7}`],[`80[39]\\d{7}`,[10]],[`808\\d{7}`,[10]]],`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)(\\d{7})`,`$1 $2`,[`(?:2|90)4|[67]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[348]|64|79|90`]],[`(\\d{2})(\\d{5,7})`,`$1 $2`,[`1|28|6[0-35-9]|7[67]|9[2-9]`]]],`0`],SR:[`597`,`00`,`(?:[2-5]|[6-8]\\d|90)\\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|30|[689]\\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-59]|61)`,`5(?:[0-59]|61[06])`,`5(?:[0-59]|61[06]1)`],`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{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[258]0`],`0$1`],[`(\\d)(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]`,`[23568]|4(?:0[2-48]|[1-47-9])|(?: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-247]|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`],0,1],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`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`,`7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}`,[9],0,`0`,0,0,0,0,0,[[`269(?: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|51`]],[`(\\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})|50\\d{3})\\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 pg(e,t){var n=Array.prototype.slice.call(t);return n.push(fg),e.apply(this,n)}function mg(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 hg={}.constructor;function gg(e){return e!=null&&e.constructor===hg}function _g(e){"@babel/helpers - typeof";return _g=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},_g(e)}function vg(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function yg(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,xg(r.key),r);}}function bg(e,t,n){return t&&yg(e.prototype,t),Object.defineProperty(e,`prototype`,{writable:false}),e}function xg(e){var t=Sg(e,`string`);return _g(t)==`symbol`?t:t+``}function Sg(e,t){if(_g(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_g(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (String)(e)}var Cg=`1.2.0`,wg=`1.7.35`,Tg=` ext. `,Eg=/^\d+$/,Q$2=function(){function e(t){vg(this,e),Mg(t),this.metadata=t,Ig.call(this,t);}return bg(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){if(e&&Eg.test(e)&&(t=e,e=null),e&&e!==`001`){if(!this.hasCountry(e))throw Error(`Unknown country: ${e}`);this.numberingPlan=new Dg(this.getCountryMetadata(e),this);}else if(t){if(!this.hasCallingCode(t))throw Error(`Unknown calling code: ${t}`);this.numberingPlan=new Dg(this.getNumberingPlanMetadata(t),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}}])}(),Dg=function(){function e(t,n){vg(this,e),this.globalMetadataObject=n,this.metadata=t,Ig.call(this,n.metadata);}return bg(e,[{key:`callingCode`,value:function(){return this.metadata[0]}},{key:`getDefaultCountryMetadataForRegion`,value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{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.getDefaultCountryMetadataForRegion())||[]).map(function(t){return new Og(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.getDefaultCountryMetadataForRegion())}},{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.getDefaultCountryMetadataForRegion())}},{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()&&jg(this.types(),e))return new Ag(jg(this.types(),e),this)}},{key:`ext`,value:function(){return this.v1||this.v2?Tg:this.metadata[13]||Tg}}])}(),Og=function(){function e(t,n){vg(this,e),this._format=t,this.metadata=n;}return bg(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()&&!kg.test(this.nationalPrefixFormattingRule()))}},{key:`internationalFormat`,value:function(){return this._format[5]||this.format()}}])}(),kg=/^\(?\$1\)?$/,Ag=function(){function e(t,n){vg(this,e),this.type=t,this.metadata=n;}return bg(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 jg(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 Mg(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!gg(e)||!gg(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 ${gg(e)?`an object of shape: { `+Object.keys(e).join(`, `)+` }`:`a `+Ng(e)+`: `+e}.`)}var Ng=function(e){return _g(e)};function Pg(e,t){if(t=new Q$2(t),t.hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw Error(`Unknown country: ${e}`)}function Fg(e,t){return t.countries.hasOwnProperty(e)}function Ig(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?mg(t,Cg)===-1?this.v2=true:mg(t,wg)===-1?this.v3=true:this.v4=true:this.v1=true;}function Vg(e,t,n){return Hg(e,t,void 0,n)}function Hg(e,t,n,r){t&&(r=new Q$2(r.metadata),r.selectNumberingPlan(t));var i=r.type(n),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 Ug(e,t,n){if(t===void 0&&(t={}),n=new Q$2(n),t.v2){if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);n.selectNumberingPlan(e.countryCallingCode);}else {if(!e.phone)return false;if(e.country){if(!n.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);n.selectNumberingPlan(e.country);}else {if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);n.selectNumberingPlan(e.countryCallingCode);}}if(n.possibleLengths())return Wg(e.phone||e.nationalNumber,e.country,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return true;throw Error(`Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.`)}function Wg(e,t,n){switch(Vg(e,t,n)){case `IS_POSSIBLE`:return true;default:return false}}function Gg(e,t){return e||=``,RegExp(`^(?:`+t+`)$`).test(e)}function Kg(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=qg(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.
43
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qg(e,t){if(e){if(typeof e==`string`)return Jg(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)?Jg(e,t):void 0}}function Jg(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 Yg=[`MOBILE`,`PREMIUM_RATE`,`TOLL_FREE`,`SHARED_COST`,`VOIP`,`PERSONAL_NUMBER`,`PAGER`,`UAN`,`VOICEMAIL`];function Xg(e,t,n){if(t||={},!(!e.country&&!e.countryCallingCode)){n=new Q$2(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(Gg(r,n.nationalNumberPattern())){if(Zg(r,`FIXED_LINE`,n))return n.type(`MOBILE`)&&n.type(`MOBILE`).pattern()===``||!n.type(`MOBILE`)||Zg(r,`MOBILE`,n)?`FIXED_LINE_OR_MOBILE`:`FIXED_LINE`;for(var i=Kg(Yg),a;!(a=i()).done;){var o=a.value;if(Zg(r,o,n))return o}}}}function Zg(e,t,n){return t=n.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?false:Gg(e,t.pattern())}function Qg(e,t,n){return t||={},n=new Q$2(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?Xg(e,t,n.metadata)!==void 0:Gg(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern())}function $g(e,t,n){var r=new Q$2(n).getCountryCodesForCallingCode(e);return r?r.filter(function(e){return e_(t,e,n)}):[]}function e_(e,t,n){var r=new Q$2(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var t_=2,n_=17,r_=3,i_=`0-90-9٠-٩۰-۹`,a_=`-‐-―−ー-//.. \xA0­​⁠ ()()[]\\[\\]~⁓∼~`,o_=`++`,s_=RegExp(`([`+i_+`])`);function c_(e,t,n,r){if(t){var i=new Q$2(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(s_);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]===`0`))return e}}}function l_(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 u_(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=d_(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.
44
- 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 f_(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)?f_(e,t):void 0}}function f_(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 p_(e,t){var n=t.countries,r=t.metadata;r=new Q$2(r);for(var i=u_(n),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(Xg({phone:e,country:o},void 0,r.metadata))return o}}function h_(e,t){var n=t.nationalNumber,r=t.metadata;var i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:p_(n,{countries:i,metadata:r.metadata})}function g_(e,t,n){var r=l_(e,n),i=r.carrierCode,a=r.nationalNumber;return a!==e&&(!__(e,a,n)||n.numberingPlan.possibleLengths()&&(t||=h_(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n}),!v_(a,t,n)))?{nationalNumber:e}:{nationalNumber:a,carrierCode:i}}function __(e,t,n){return !(Gg(e,n.nationalNumberPattern())&&!Gg(t,n.nationalNumberPattern()))}function v_(e,t,n){switch(Vg(e,t,n)){case `TOO_SHORT`:case `INVALID_LENGTH`:return false;default:return true}}function y_(e,t,n,r,i){var a=n?Pg(n,i):r;if(e.indexOf(a)===0){i=new Q$2(i),i.selectNumberingPlan(n,a);var o=e.slice(a.length),s=g_(o,t,i).nationalNumber,c=g_(e,t,i).nationalNumber;if(!Gg(c,i.nationalNumberPattern())&&Gg(s,i.nationalNumberPattern())||Vg(c,t,i)===`TOO_LONG`)return {countryCallingCode:a,number:o}}return {number:e}}function b_(e,t,n,r,i){if(!e)return {};var a;if(e[0]!==`+`){var o=c_(e,n,r,i);if(o&&o!==e)a=true,e=`+`+o;else {if(n||r){var s=y_(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 {};i=new Q$2(i);for(var u=2;u-1<=r_&&u<=e.length;){var d=e.slice(1,u);if(i.hasCallingCode(d))return i.selectNumberingPlan(d),{countryCallingCodeSource:a?`FROM_NUMBER_WITH_IDD`:`FROM_NUMBER_WITH_PLUS_SIGN`,countryCallingCode:d,number:e.slice(u)};u++;}return {}}function x_(e){return e.replace(RegExp(`[${a_}]+`,`g`),` `).trim()}var S_=/(\$\d)/;function C_(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(S_,t.nationalPrefixFormattingRule()):t.format());return r?x_(a):a}var w_=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function T_(e,t,n){var r=new Q$2(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(w_.test(r.IDDPrefix()))return r.IDDPrefix()}var E_=`;ext=`,D_=function(e){return `([${i_}]{1,${e}})`};function O_(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=E_+D_(t),m=a+c+o+D_(t)+s,ee=a+l+o+D_(r)+s,te=u+D_(i)+`#`,ne=d+f+o+D_(n)+s,h=d+`(?:,)+`+o+D_(r)+s;return p+`|`+m+`|`+ee+`|`+te+`|`+ne+`|`+h}var k_=`[`+i_+`]{`+t_+`}`,A_=`[`+o_+`]{0,1}(?:[`+a_+`]*[`+i_+`]){3,}[`+a_+i_+`]*`,j_=RegExp(`^[`+o_+`]{0,1}(?:[`+a_+`]*[`+i_+`]){1,2}$`,`i`),M_=A_+`(?:`+O_()+`)?`,N_=RegExp(`^`+k_+`$|^`+M_+`$`,`i`);function P_(e){return e.length>=t_&&N_.test(e)}function F_(e){return j_.test(e)}function I_(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 L_={formatExtension:function(e,t,n){return `${e}${n.ext()}${t}`}};function R_(e,t,n,r){if(n=n?U_({},L_,n):L_,r=new Q$2(r),e.country&&e.country!==`001`){if(!r.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);r.selectNumberingPlan(e.country);}else if(e.countryCallingCode)r.selectNumberingPlan(e.countryCallingCode);else return e.phone||``;var i=r.countryCallingCode(),a=n.v2?e.nationalNumber:e.phone,o;switch(t){case `NATIONAL`:return a?(o=z_(a,e.carrierCode,`NATIONAL`,r,n),V_(o,e.ext,r,n.formatExtension)):``;case `INTERNATIONAL`:return a?(o=z_(a,null,`INTERNATIONAL`,r,n),o=`+${i} ${o}`,V_(o,e.ext,r,n.formatExtension)):`+${i}`;case `E.164`:return `+${i}${a}`;case `RFC3966`:return I_({number:`+${i}${a}`,ext:e.ext});case `IDD`:if(!n.fromCountry)return;var s=H_(a,e.carrierCode,i,n.fromCountry,r);return s?V_(s,e.ext,r,n.formatExtension):void 0;default:throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`)}}function z_(e,t,n,r,i){var a=B_(r.formats(),e);return a?C_(e,a,{useInternationalFormat:n===`INTERNATIONAL`,withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===false)}):e}function B_(e,t){return W_(e,function(e){if(e.leadingDigitsPatterns().length>0){var n=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(t.search(n)!==0)return false}return Gg(t,e.pattern())})}function V_(e,t,n,r){return t?r(e,t,n):e}function H_(e,t,n,r,i){if(Pg(r,i.metadata)===n){var a=z_(e,t,`NATIONAL`,i);return n===`1`?n+` `+a:a}var o=T_(r,void 0,i.metadata);if(o)return `${o} ${n} ${z_(e,null,`INTERNATIONAL`,i)}`}function U_(){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 W_(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++;}}function G_(e){"@babel/helpers - typeof";return G_=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},G_(e)}function K_(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 q_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?K_(Object(n),true).forEach(function(t){J_(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function J_(e,t,n){return (t=Q_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Y_(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function X_(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,Q_(r.key),r);}}function Z_(e,t,n){return t&&X_(e.prototype,t),Object.defineProperty(e,`prototype`,{writable:false}),e}function Q_(e){var t=$_(e,`string`);return G_(t)==`symbol`?t:t+``}function $_(e,t){if(G_(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(G_(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (String)(e)}var ev=false,tv=function(){function e(t,n,r){if(Y_(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(gg(n)&&gg(n.countries)){r=n;var i=t;if(!iv.test(i))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=b_(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");Mg(r);var s=rv(t,r),c=s.country,l=s.countryCallingCode;this.country=c,this.countryCallingCode=l,this.nationalNumber=n,this.number=`+`+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r};}return Z_(e,[{key:`setExt`,value:function(e){this.ext=e;}},{key:`getPossibleCountries`,value:function(){return this.country?[this.country]:$g(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:`isPossible`,value:function(){return Ug(this,{v2:true},this.getMetadata())}},{key:`isValid`,value:function(){return Qg(this,{v2:true},this.getMetadata())}},{key:`isNonGeographic`,value:function(){return new Q$2(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:`isEqual`,value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:`getType`,value:function(){return Xg(this,{v2:true},this.getMetadata())}},{key:`format`,value:function(e,t){return R_(this,e,t?q_(q_({},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)}}])}(),nv=function(e){return /^[A-Z]{2}$/.test(e)};function rv(e,t){var n,r,i=new Q$2(t);return nv(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):(r=e,ev),{country:n,countryCallingCode:r}}var iv=/^\+\d+$/;function av(e){"@babel/helpers - typeof";return av=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},av(e)}function sv(e,t,n){return Object.defineProperty(e,`prototype`,{writable:false}),e}function uv(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function dv(e,t,n){return t=bv(t),fv(e,_v()?Reflect.construct(t,n||[],bv(e).constructor):t.apply(e,n))}function fv(e,t){if(t&&(av(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return pv(e)}function pv(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function mv(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&&yv(e,t);}function hv(e){var t=typeof Map==`function`?new Map:void 0;return hv=function(e){if(e===null||!vv(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 gv(e,arguments,bv(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:false,writable:true,configurable:true}}),yv(n,e)},hv(e)}function gv(e,t,n){if(_v())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&yv(i,n.prototype),i}function _v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch{}return (_v=function(){return !!e})()}function vv(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function yv(e,t){return yv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yv(e,t)}function bv(e){return bv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bv(e)}var xv=function(e){function t(e){var n;return uv(this,t),n=dv(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return mv(t,e),sv(t)}(hv(Error)),Sv=RegExp(`(?:`+O_()+`)$`,`i`);function Cv(e){var t=e.search(Sv);if(t<0)return {};for(var n=e.slice(0,t),r=e.match(Sv),i=1;i<r.length;){if(r[i])return {number:n,ext:r[i]};i++;}}var wv={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 Tv(e){return wv[e]}function Ev(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=Dv(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.
45
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dv(e,t){if(e){if(typeof e==`string`)return Ov(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)?Ov(e,t):void 0}}function Ov(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 kv(e){for(var t=``,n=Ev(e.split(``)),r;!(r=n()).done;){var i=r.value;t+=Av(i,t)||``;}return t}function Av(e,t,n){if(e===`+`){if(t){return}return `+`}return Tv(e)}var jv=`+`,Mv=`([`+i_+`]|[\\-\\.\\(\\)]?)`,Nv=`^\\`+jv+Mv+`*[`+i_+`]`+Mv+`*$`,Pv=new RegExp(Nv,`g`),Fv=i_,Iv=`[`+Fv+`]+((\\-)*[`+Fv+`])*`,Lv=`[a-zA-Z]+((\\-)*[`+Fv+`])*`,Rv=`^(`+Iv+`\\.)*`+Lv+`\\.?$`,zv=new RegExp(Rv,`g`),Bv=`tel:`,Vv=`;phone-context=`,Hv=`;isub=`;function Uv(e){var t=e.indexOf(Vv);if(t<0)return null;var n=t+Vv.length;if(n>=e.length)return ``;var r=e.indexOf(`;`,n);return r>=0?e.substring(n,r):e.substring(n)}function Wv(e){return e===null?true:e.length===0?false:Pv.test(e)||zv.test(e)}function Gv(e,t){var n=t.extractFormattedPhoneNumber,r=Uv(e);if(!Wv(r))throw new xv(`NOT_A_NUMBER`);var i;if(r===null)i=n(e)||``;else {i=``,r.charAt(0)===jv&&(i+=r);var a=e.indexOf(Bv),o=a>=0?a+Bv.length:0,s=e.indexOf(Vv);i+=e.substring(o,s);}var c=i.indexOf(Hv);if(c>0&&(i=i.substring(0,c)),i!==``)return i}var Kv=250,qv=RegExp(`[`+o_+i_+`]`),Jv=RegExp(`[^`+i_+`#]+$`),Yv=false;function Xv(e,t,n){if(t||={},n=new Q$2(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new xv(`INVALID_COUNTRY`):Error(`Unknown country: ${t.defaultCountry}`);var r=Qv(e,t.v2,t.extract),i=r.number,a=r.ext,o=r.error;if(!i){if(t.v2)throw o===`TOO_SHORT`?new xv(`TOO_SHORT`):new xv(`NOT_A_NUMBER`);return {}}var s=ey(i,t.defaultCountry,t.defaultCallingCode,n),c=s.country,l=s.nationalNumber,u=s.countryCallingCode,d=s.countryCallingCodeSource,f=s.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new xv(`INVALID_COUNTRY`);return {}}if(!l||l.length<t_){if(t.v2)throw new xv(`TOO_SHORT`);return {}}if(l.length>n_){if(t.v2)throw new xv(`TOO_LONG`);return {}}if(t.v2){var p=new tv(u,l,n.metadata);return c&&(p.country=c),f&&(p.carrierCode=f),a&&(p.ext=a),p.__countryCallingCodeSource=d,p}var m=(t.extended?n.hasSelectedNumberingPlan():c)?Gg(l,n.nationalNumberPattern()):false;return t.extended?{country:c,countryCallingCode:u,carrierCode:f,valid:m,possible:m?true:!!(t.extended===true&&n.possibleLengths()&&Wg(l,c,n)),phone:l,ext:a}:m?$v(c,l,a):{}}function Zv(e,t,n){if(e){if(e.length>Kv){if(n)throw new xv(`TOO_LONG`);return}if(t===false)return e;var r=e.search(qv);if(!(r<0))return e.slice(r).replace(Jv,``)}}function Qv(e,t,n){var r=Gv(e,{extractFormattedPhoneNumber:function(e){return Zv(e,n,t)}});if(!r)return {};if(!P_(r))return F_(r)?{error:`TOO_SHORT`}:{};var i=Cv(r);return i.ext?i:{number:r}}function $v(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function ey(e,t,n,r){var i=b_(kv(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))r.selectNumberingPlan(t,n),t?c=t:Yv,o=n||Pg(t,r.metadata);else return {};if(!s)return {countryCallingCodeSource:a,countryCallingCode:o};var l=g_(kv(s),c,r),u=l.nationalNumber,d=l.carrierCode,f=h_(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 ty(e){"@babel/helpers - typeof";return ty=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},ty(e)}function ny(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 ry(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ny(Object(n),true).forEach(function(t){iy(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ny(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function iy(e,t,n){return (t=ay(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function ay(e){var t=oy(e,`string`);return ty(t)==`symbol`?t:t+``}function oy(e,t){if(ty(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ty(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function sy(e,t,n){return Xv(e,ry(ry({},t),{},{v2:true}),n)}function cy(e){"@babel/helpers - typeof";return cy=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},cy(e)}function ly(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 uy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ly(Object(n),true).forEach(function(t){dy(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ly(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function dy(e,t,n){return (t=fy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function fy(e){var t=py(e,`string`);return cy(t)==`symbol`?t:t+``}function py(e,t){if(cy(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cy(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function my(e,t){return yy(e)||vy(e,t)||gy(e,t)||hy()}function hy(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
46
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gy(e,t){if(e){if(typeof e==`string`)return _y(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)?_y(e,t):void 0}}function _y(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 vy(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 yy(e){if(Array.isArray(e))return e}function by(e){var t=my(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=uy({defaultCountry:r},s));else if(gg(r))i?(s=r,c=i):c=r;else throw Error(`Invalid second argument: ${r}`);return {text:o,options:s,metadata:c}}function xy(e){"@babel/helpers - typeof";return xy=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},xy(e)}function Sy(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 Cy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Sy(Object(n),true).forEach(function(t){wy(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function wy(e,t,n){return (t=Ty(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Ty(e){var t=Ey(e,`string`);return xy(t)==`symbol`?t:t+``}function Ey(e,t){if(xy(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xy(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function Dy(e,t,n){t&&t.defaultCountry&&!Fg(t.defaultCountry,n)&&(t=Cy(Cy({},t),{},{defaultCountry:void 0}));try{return sy(e,t,n)}catch(e){if(!(e instanceof xv))throw e}}function Oy(e){"@babel/helpers - typeof";return Oy=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},Oy(e)}function ky(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 Ay(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ky(Object(n),true).forEach(function(t){jy(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ky(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function jy(e,t,n){return (t=My(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function My(e){var t=Ny(e,`string`);return Oy(t)==`symbol`?t:t+``}function Ny(e,t){if(Oy(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Oy(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function Py(){var e=by(arguments),t=e.text,n=e.options,r=e.metadata;n=Ay(Ay({},n),{},{extract:false});var i=Dy(t,n,r);return i&&i.isValid()||false}function Fy(){return pg(Py,arguments)}const Iy=Lh.omit({eventId:true,channel:true}).partial().extend({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order to update`}),signature:wl.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for all order updates.`}),items:P$1(Ih).min(1).optional().meta({description:`Updated list of items for the order. Requires signature. Prices will be recalculated and payment intent updated.`}),customer:F$1({firstName:k$1().meta({examples:[b$1.Customer.firstName],description:`Updated first name of the customer`}).optional(),lastName:k$1().meta({examples:[b$1.Customer.lastName],description:`Updated last name of the customer`}).optional(),email:No().meta({examples:[b$1.Customer.email],description:`Updated email address of the customer`}).optional(),phone:k$1().refine(e=>!e||Fy(e),{message:`Phone must be in E.164 format (e.g., +61412345678)`}).meta({examples:[b$1.Customer.phone],description:`Updated phone number in E.164 format (e.g., +61412345678)`}).optional(),deliveryMethod:zh.optional()}).optional().meta({description:`Updated customer information for the order. All fields are optional for partial updates.`}),marketingConsent:ch.optional().meta({description:`Marketing opt-in choices captured during checkout.`})}),Ly=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order`}),noteId:k$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to update`}),note:k$1().min(1).max(1e3).meta({examples:[`Updated: Customer confirmed special seating arrangements`],description:`Updated note text content (1-1000 characters)`})});var Ry={create:v$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(Fh.strict()).output(dg),update:v$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(Ly.strict()).output(dg),remove:v$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(Rh.strict()).output(ds())};const zy=v$1.route({method:`GET`,path:`/orders/{id}`,summary:`Get order by ID`,tags:[`Orders`]}).input(Vh.strict()).output(dg),By=v$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`, and deterministic created-at sorting.",tags:[`Orders`]}).input(eg.strict()).output(tg),Vy=v$1.route({method:`POST`,path:`/orders/quote`,summary:`Create order quote`,tags:[`Orders`]}).input(rg.strict()).output(ig);var Hy={get:zy,list:By,create:v$1.route({method:`POST`,path:`/orders`,summary:`Create a new order`,tags:[`Orders`]}).input(Lh.strict()).output(dg),update:v$1.route({method:`PUT`,path:`/orders/{id}`,summary:`Update an order`,tags:[`Orders`]}).input(Iy.strict()).output(dg),reserve:v$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(lg.strict()).output(dg),quote:Vy,resend:v$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(cg.strict()).output(dg),refund:v$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(og.strict()).output(sg),note:Ry};F$1({success:N$1().meta({description:`Whether the payout approval was successful`}),message:k$1().optional().meta({description:`Optional message about the approval result`}),payoutId:k$1().meta({description:`ID of the payout that was approved`})});const Wy=F$1({payoutId:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout for which to retrieve the detailed breakdown of orders and financial calculations.`})}),Gy=F$1({id:k$1().readonly().meta({examples:[b$1.PayoutDeduction.id],description:`Unique identifier for this deduction record.`}),createdAt:D$1().readonly().meta({examples:[b$1.PayoutDeduction.createdAt],description:`Timestamp in ISO 8601 format when this deduction was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.PayoutDeduction.updatedAt],description:`Timestamp in ISO 8601 format when this deduction was last updated.`}),amount:M$1().min(0).meta({examples:[b$1.PayoutDeduction.amount],description:`Deduction amount in cents. Positive values represent money being deducted from the payout.`}),currency:R$1.meta({examples:[b$1.PayoutDeduction.currency],description:`Currency code in ISO 4217 format for the deduction amount.`}),description:k$1().meta({examples:[b$1.PayoutDeduction.description],description:`Human-readable description explaining the reason for this deduction (e.g., 'Minimum bar spend not met', 'Venue damage charge').`}),gateway:k$1().meta({examples:[b$1.PayoutDeduction.gateway],description:`Payment gateway identifier where this deduction was processed.`}),gatewayId:k$1().meta({examples:[b$1.PayoutDeduction.gatewayId],description:`Unique identifier assigned by the payment gateway for this deduction transaction.`}),beneficiary:k$1().meta({examples:[b$1.PayoutDeduction.beneficiary],description:`Human-readable name of the beneficiary account from which this deduction was taken.`}),beneficiaryId:k$1().meta({examples:[b$1.PayoutDeduction.beneficiaryId],description:`Unique identifier of the beneficiary account from which this deduction was taken.`}),transferId:k$1().optional().meta({description:`Optional reference to a transfer record when this deduction results in money being moved to a future payout.`}),transferPayoutId:k$1().optional().meta({description:`Optional reference to a future payout where the deducted amount will be applied.`})}),Ky=F$1({id:k$1().meta({examples:[b$1.Event.id],description:`Unique identifier for the event associated with this payout.`}),name:k$1().meta({examples:[b$1.Event.name],description:`Human-readable name of the event.`}),slug:k$1().meta({examples:[b$1.Event.slug],description:`URL-friendly slug identifier for the event.`}),location:k$1().optional().meta({examples:[b$1.Event.location.name],description:`Optional human-readable location name where the event takes place.`})}),qy=F$1({net:M$1().meta({examples:[b$1.Payout.price.net],description:`Total amount to pay to promoter.
42
+ Calculated as: base + booking + shipping`}),base:M$1().min(0).meta({examples:[b$1.Order.price.base],description:`Total ticket price in cents`}),booking:M$1().min(0).meta({examples:[b$1.Order.price.booking],description:`Total booking fees in cents (non-refundable)`}),shipping:M$1().min(0).meta({examples:[b$1.Order.price.shipping],description:`Total shipping amount in cents`}),sms:M$1().min(0).default(0).meta({examples:[b$1.Order.price.sms],description:`SMS delivery fee in cents (customer-facing price in event currency)`}),refunded:M$1().max(0).meta({examples:[b$1.Order.price.refunded],description:`Total amount refunded in cents (negative value)`}),discount:M$1().max(0).meta({examples:[b$1.Order.price.discount],description:`Total amount discounted in cents (negative value)`}),gateway:M$1().max(0).meta({examples:[b$1.Order.price.gateway],description:`Total absorbed payment gateway fees in cents (negative value)`}),dispute:M$1().max(0).meta({examples:[b$1.Order.price.dispute],description:`Total non-absorbed payment gateway fees in cents (negative value)`}),currency:z$2.meta({examples:[b$1.Order.price.currency],description:`Currency code in ISO 4217 format`})}),Oh=I$1([`PENDING`,`PROCESSING`,`SUCCEEDED`,`FAILED`]),Ah=I$1([`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`,`OTHER`]),Mh=I$1([`USER`,`GATEWAY`]),Ph=F$1({orderItemId:k$1().meta({examples:[b$1.OrderRefundItem.orderItemId],description:`Identifier of the order item being refunded`}),quantity:M$1().min(1).meta({examples:[b$1.OrderRefundItem.quantity],description:`Number of units refunded for this item`}),amount:M$1().min(0).meta({examples:[b$1.OrderRefundItem.amount],description:`Refund amount for this item in cents (base price only, excludes booking fee)`}),ticketIds:P$1(k$1()).meta({examples:[b$1.OrderRefundItem.ticketIds],description:`Specific ticket identifiers that were refunded (selected via FIFO)`})}),Fh=F$1({id:k$1().meta({examples:[b$1.OrderRefund.id],description:`Unique identifier for this refund`}),idempotencyKey:k$1().optional().meta({examples:[b$1.OrderRefund.idempotencyKey],description:`Client-provided key to prevent duplicate refund processing`}),status:Oh.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.`}),processedAt:D$1().optional().meta({examples:[b$1.OrderRefund.processedAt],description:`Timestamp when the payment gateway confirmed the refund`}),failureReason:k$1().optional().meta({examples:[`Insufficient funds for refund`],description:`Error message from payment gateway if refund failed`}),amount:M$1().min(1).meta({examples:[b$1.OrderRefund.amount],description:`Total refund amount in cents, including any ticket, shipping, SMS, and fee portions.`}),shippingRefunded:M$1().min(0).meta({examples:[b$1.OrderRefund.shippingRefunded],description:`Shipping portion of the refund in cents`}),feesRefunded:M$1().min(0).default(0).meta({examples:[0],description:`Non-ticket-base portion of the refund in cents. This includes booking fees, SMS, and shipping once cumulative refunds exceed order.price.base.`}),reason:Ah.meta({examples:[`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`],description:`Categorized reason for the refund used for analytics`}),note:k$1().optional().meta({examples:[b$1.OrderRefund.note],description:`Free-form notes explaining the refund`}),items:P$1(Ph).meta({description:`Line items included in this refund with quantities and amounts`}),ticketsCancelled:N$1().meta({examples:[b$1.OrderRefund.ticketsCancelled],description:`Whether tickets were cancelled as part of this refund`}),ticketsCancelledCount:M$1().optional().meta({examples:[b$1.OrderRefund.ticketsCancelledCount],description:`Number of tickets that were cancelled`}),gateway:bh.meta({examples:[`STRIPE`,`AIRWALLEX`],description:`Payment gateway used to process the refund`}),gatewayRefundId:k$1().optional().meta({examples:[b$1.OrderRefund.gatewayRefundId],description:`Refund identifier from the payment gateway`}),initiatedBy:Mh.meta({examples:[`USER`,`GATEWAY`],description:`Whether refund was initiated by a user or directly through the payment gateway`}),userId:k$1().optional().meta({examples:[b$1.OrderRefund.userId],description:`Identifier of the user who initiated the refund (when initiatedBy is USER)`}),metadata:hs(k$1(),k$1()).optional().meta({examples:[{supportTicket:`#12345`}],description:`Custom key-value pairs passed through to the payment gateway`}),notify:N$1().default(false).meta({examples:[true],description:`Whether a Sessions-initiated successful refund should send a customer confirmation email.`}),notifiedAt:D$1().optional().meta({examples:[b$1.OrderRefund.processedAt],description:`Timestamp when the refund confirmation email was sent.`}),createdAt:D$1().meta({examples:[b$1.OrderRefund.createdAt],description:`Timestamp when the refund was created`})}),Ih=Dh.extend({exchangeRate:j$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 Lh(e,t,n={}){return F$1({id:k$1().meta({examples:t.idExamples,description:t.idDescription}),createdAt:D$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:N$1().meta({examples:[false],description:`Whether this timeline entry can be edited by users`}),pinned:N$1().meta({examples:[false],description:`Whether this timeline entry is pinned to the top of the timeline`}),description:k$1().meta({examples:t.descriptionExamples,description:`Human-readable description of what happened in this timeline event`}),author:k$1().meta({examples:[`System`],description:`Name of the user or system that created this timeline entry`}),userId:k$1().optional().meta({examples:[b$1.User.id],description:t.userIdDescription??`Identifier of the user who created this timeline entry, when available`}),externalId:k$1().optional().meta({examples:t.externalIdExamples,description:t.externalIdDescription})})}const Rh=I$1(`ORDER_STATUS_UPDATED.ORDER_EXPIRED.ORDER_COMPLETED.PAYMENT_INITIATED.PAYMENT_PROCESSING.PAYMENT_FAILED.PAYMENT_SUCCEEDED.REFUND_INITIATED.REFUND_PROCESSING.REFUND_SUCCEEDED.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(`.`)),zh=Lh(Rh,{createdAtExamples:[b$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:[b$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:k$1().optional().meta({examples:[`SUCCESSFUL`],description:`Order status associated with this timeline entry, when applicable.`})}),Bh=I$1([`PENDING`,`PROCESSING`,`SUCCESSFUL`,`DISPUTED`,`ABANDONED`]),Hh=F$1({id:nc.readonly().meta({examples:[b$1.Order.id],description:`A unique identifier for this order.`}),createdAt:D$1().readonly().meta({examples:[b$1.Order.createdAt],description:`Timestamp in ISO 8601 format when this order was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.Order.updatedAt],description:`Timestamp in ISO 8601 format when this order was last updated.`}),status:Bh.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.`}),payment:Eh.optional().meta({description:`Payment gateway details including method, card brand, and transaction identifiers. Absent for free orders.`}),items:P$1(hh).meta({description:`Line items in this order, each with a ticket type, quantity, and price breakdown.`}),fees:P$1(oh).meta({description:`Gateway fees recorded against this order from settlement processing (e.g. payment processing fees, dispute fees).`}),price:Dh.meta({description:`Price breakdown in the event currency. This reflects what the customer was charged.`}),settlement:Ih.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:nh.optional().meta({description:`Coupon code applied to this order for discount calculation.`}),customer:rh.optional().meta({description:`Customer who placed this order. Absent for guest checkouts before customer details are captured.`}),marketingConsent:gh.optional().meta({description:`Marketing opt-in choices captured during checkout.`}),timeline:P$1(zh).optional().meta({description:`Chronological audit trail of events for this order (payments, refunds, emails, scans).`}),refunds:P$1(Fh).default([]).meta({description:`Refunds processed for this order including pending, succeeded, and failed attempts.`}),offers:P$1(yh).default([]).meta({description:`Pre-computed add-on offers available during checkout (e.g. SMS ticket delivery).`}),customerId:sc.optional().meta({examples:[b$1.Customer.id],description:`Identifier of the customer who placed this order.`}),createdBy:rh.optional().meta({description:`Admin user who created this order on behalf of the customer.`}),teamId:Qs.meta({description:`Team that owns this order.`}),promoterId:ic.meta({examples:[b$1.Promoter.id],description:`Promoter managing this order.`}),event:ih.meta({description:`Snapshot of the event at time of purchase (name, slug, location).`}),payoutIds:P$1(dc.meta({examples:[`pay_01HQXYZ`],description:`Payout identifier.`})).meta({description:`Payout identifiers for settlements that included this order.`}),eventId:V$2.meta({examples:[b$1.Event.id],description:`Identifier of the event this order belongs to.`}),checkoutUrl:k$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:k$1().optional().meta({examples:[`https://example.com/event/success`],description:`URL to redirect to after successful payment completion.`}),channel:th.optional().meta({description:`Channel metadata captured at order creation to identify origin and redirect context.`}),reservedAt:D$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.`}),Uh=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order to add a note to`}),note:k$1().min(1).max(1e3).meta({examples:[`Customer requested special seating arrangements`],description:`Note text content (1-1000 characters)`})}),Wh=hh.omit({id:true,price:true,kind:true}).extend({id:k$1().optional().meta({examples:[`itm_01jps5cgsfwyxj0516571eaf17`],description:`Unique identifier for this order item. When omitted, the server assigns an id during processing`})}),Gh=F$1({eventId:k$1().meta({description:`Unique identifier of the event for which to create a complimentary order`}),items:P$1(Wh).min(1).meta({description:`Admission items to include in the complimentary order`}),customer:F$1({firstName:k$1().min(1),lastName:k$1().min(1),email:Co()}),notifyCustomer:N$1().default(true).meta({description:`Whether to send the standard order confirmation email after tickets are generated`}),reason:k$1().min(1),idempotencyKey:k$1().trim().min(1).max(255).optional()}),Kh=F$1({eventId:k$1().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Unique identifier of the event for which to create the order`}),items:P$1(Wh).meta({description:`List of items to include in the new order`}),couponCode:k$1().optional().meta({examples:[`TEST50`],description:`Optional coupon code to apply discount to the order`}),returnUrl:k$1().optional().meta({examples:[`https://example.com/event/success`],description:`Optional URL to redirect to after successful payment`}),channel:th.optional().meta({description:`Optional channel metadata for where the order originated (for attribution and redirect routing).`})}),qh=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order`}),noteId:k$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to delete`})}),Jh=I$1([`EMAIL`,`SMS`]).meta({examples:[`EMAIL`],description:`Method used to deliver tickets to the customer: EMAIL or SMS`});F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order to edit`}),signature:gl$1.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for editing order items.`}),items:P$1(Wh).min(1).meta({description:`Updated list of items for the order (replaces existing items). Prices will be recalculated and payment intent updated.`})});const Xh=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order to retrieve`}),signature:gl$1.optional().meta({description:`HMAC signature for public order access (16 characters, base64url encoded)`})}),Zh=`Either locationId or googlePlaceId must be provided`,Qh={locationId:ec.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location. Either locationId or googlePlaceId must be provided.`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided.`})};function $h(e){return !!(e.locationId||e.googlePlaceId)}const eg=Yp.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:j$1().optional().meta({examples:[b$1.Section.order],description:`Display order of the section. Lower numbers appear first in listings. Defaults to 0 if not specified`}),visibility:Yp.shape.visibility.optional(),...Qh}).refine($h,{message:Zh}).meta({description:`Schema for creating a new section within an event venue. Excludes system-generated fields and fields derived from the event`}),tg=Yp.pick({id:true}).extend({eventId:k$1().meta({examples:[b$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`}),ng=Yp.pick({id:true}).extend({eventId:k$1().meta({examples:[b$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`})}).meta({description:`Schema for retrieving a specific section by ID`}),rg=F$1({eventId:Yp.shape.eventId,query:k$1().optional().meta({examples:[`VIP`],description:`Optional search query. When provided, automatically uses search-backed pagination for full-text search capabilities`}),limit:L$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:k$1().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`}),ig=G$2(Yp,`sections`),ag=F$1({section:Yp}),og=Yp.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:k$1().meta({examples:[b$1.Section.id],description:`Unique identifier of the section to update`}),eventId:k$1().meta({examples:[b$1.Section.eventId],description:`Unique identifier of the event to verify section belongs to`}),name:Yp.shape.name.optional(),capacity:yc().optional(),limit:bc().optional(),order:Yp.shape.order.optional(),visibility:I$1([`ALWAYS`,`STACKED`,`HIDDEN`]).optional(),locationId:ec.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:k$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.`}),sg=hh.extend({admission:W$2.optional().meta({description:`Complete admission details for this order item when available`}),section:Yp.optional().meta({description:`Complete section details for this order item when applicable`})}),cg=I$1([`asc`,`desc`]),lg=F$1({mine:N$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:k$1().optional().meta({description:`Filter orders by team unique identifier`}),eventId:k$1().optional().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Filter orders by event unique identifier`}),status:Bh.optional().meta({examples:[`SUCCESSFUL`],description:`Filter orders by payment status`}),query:k$1().optional().meta({examples:[`John Doe`],description:`Optional search query to filter orders by customer details. When provided, search-backed pagination is used.`}),includeEventTerms:N$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.`}),direction:cg.optional().meta({examples:[`asc`,`desc`],description:"Sort direction for order lists. Orders are always sorted by creation time. Defaults to `desc` when omitted."}),from:k$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:k$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:wc(`orders`),cursor:k$1().optional().meta({examples:[`eyJpZCI6Im9yZF8wMWpwczVjZ3NmZ3ZlNWI1ZzI2NjZreXJ5aCJ9`],description:`Pagination cursor for continuing to fetch subsequent results`})}),ug=G$2(Hh,`orders`),dg=F$1({items:P$1(sg).meta({description:`List of order items with complete pricing and admission details`}),price:Dh.meta({description:`Total pricing breakdown for the entire order quote`}),couponCode:pp.optional().meta({description:`Applied coupon code details if a discount was used in this quote`})}),fg=F$1({eventId:k$1().meta({examples:[`evt_01jps5cgsenjrazw6wswmyspa3`],description:`Unique identifier of the event for which to generate a price quote`}),items:P$1(Wh).meta({description:`List of items to include in the price quote calculation`}),couponCode:k$1().optional().meta({examples:[`TEST50`],description:`Optional coupon code to apply discount to the quote`})}),pg=F$1({quote:dg}),mg=F$1({orderItemId:k$1().meta({examples:[b$1.OrderRefundItem.orderItemId],description:`Identifier of the order item to refund`}),quantity:M$1().min(1).meta({examples:[b$1.OrderRefundItem.quantity],description:`Number of units to refund for this item`})}),hg=F$1({id:nc.meta({examples:[b$1.Order.id],description:`Identifier of the order to refund`}),fullRefund:N$1().default(false).meta({examples:[false],description:`When true, refunds all remaining refundable items. Mutually exclusive with items.`}),items:P$1(mg).optional().meta({description:`Specific items and quantities to refund. Required if fullRefund is false.`}),shippingAmount:M$1().min(0).optional().meta({examples:[500],description:`Amount of shipping to refund in cents. Cannot exceed remaining refundable shipping.`}),cancelTickets:N$1().default(true).meta({examples:[true],description:`Whether to cancel tickets associated with refunded items. Defaults to true.`}),notify:N$1().default(true).meta({examples:[true],description:`Whether to send a refund confirmation email to the customer. Defaults to true.`}),reason:Ah.meta({examples:[`CUSTOMER_REQUEST`,`DUPLICATE`,`EVENT_CANCELLED`],description:`Categorized reason for the refund`}),note:k$1().optional().meta({examples:[`Customer requested refund due to schedule conflict`],description:`Free-form notes explaining the refund`}),idempotencyKey:k$1().optional().meta({examples:[`refund_12345_customer_request`],description:`Client-provided key to prevent duplicate refund processing. Recommended for programmatic refunds.`}),metadata:hs(k$1(),k$1()).optional().meta({examples:[{supportTicket:`#12345`}],description:`Custom key-value pairs passed through to the payment gateway`})}),gg=F$1({refund:Fh}),_g=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Order ID to resend tickets for`}),email:k$1().email().optional().meta({examples:[`customer@example.com`],description:`Email address to send tickets to. If not provided, uses order.customer.email`})}),vg=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order to reserve inventory for`}),signature:gl$1.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded).`})}),bg=F$1({order:Hh});var xg={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`,`(?:[025-7]\\d|44)\\d{6}`,[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`,`(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],0,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)?`,`8001\\d{5}|(?:[2-467]\\d|50)\\d{6}`,[8,9],[[`(\\d)(\\d{7})`,`$1 $2`,[`[235]|4[46]`]],[`(\\d{8})`,`$1`,[`[67]`]],[`(\\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`,`(?:[27]\\d{3}|8776)\\d{4}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[278]`]]]],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-579]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-579]`],`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`,`(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]|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{3}|800)\\d{5}`,[8,9],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[235]`],`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`,`(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`,0,0,0,0,0,[[`590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],0,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]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[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(?:(?:2[14]|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|4[47])|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(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|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]|28|3[129]|4[1-35689]|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[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|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]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|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`,`(?:33622|8\\d{8})\\d{5}|[78]\\d{9}`,[10,14],0,`8`,0,0,0,0,`33622|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`,[`2(?:[0367]|4[3-8])`]],[`(\\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`,[`2(?:[0367]|4[3-8])`]],[`(\\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]`]]],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`,`(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],0,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`,[`[12]1`],`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`,`(?:596\\d|7091)\\d{5}|(?:69|[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`,[`(?: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`,`(?: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`,`[45]\\d{5}|(?:708|8\\d\\d)\\d{6}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[45]`],`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,[[`26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}`],[`(?: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,0,[[`336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}`,[10]],[`9\\d{9}`,[10]],[`8(?:0[04]|108\\d{3})\\d{7}`],[`80[39]\\d{7}`,[10]],[`808\\d{7}`,[10]]],`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)(\\d{7})`,`$1 $2`,[`(?:2|90)4|[67]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[348]|64|79|90`]],[`(\\d{2})(\\d{5,7})`,`$1 $2`,[`1|28|6[0-35-9]|7[67]|9[2-9]`]]],`0`],SR:[`597`,`00`,`(?:[2-5]|[6-8]\\d|90)\\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|30|[689]\\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-59]|61)`,`5(?:[0-59]|61[06])`,`5(?:[0-59]|61[06]1)`],`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{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[258]0`],`0$1`],[`(\\d)(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]`,`[23568]|4(?:0[2-48]|[1-47-9])|(?: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-247]|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`],0,1],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`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`,`7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}`,[9],0,`0`,0,0,0,0,0,[[`269(?: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|51`]],[`(\\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})|50\\d{3})\\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 Sg(e,t){var n=Array.prototype.slice.call(t);return n.push(xg),e.apply(this,n)}function Cg(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 wg={}.constructor;function Tg(e){return e!=null&&e.constructor===wg}function Eg(e){"@babel/helpers - typeof";return Eg=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},Eg(e)}function Dg(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Og(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,Ag(r.key),r);}}function kg(e,t,n){return t&&Og(e.prototype,t),Object.defineProperty(e,`prototype`,{writable:false}),e}function Ag(e){var t=jg(e,`string`);return Eg(t)==`symbol`?t:t+``}function jg(e,t){if(Eg(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Eg(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (String)(e)}var Mg=`1.2.0`,Ng=`1.7.35`,Pg=` ext. `,Fg=/^\d+$/,Q$2=function(){function e(t){Dg(this,e),Vg(t),this.metadata=t,Gg.call(this,t);}return kg(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){if(e&&Fg.test(e)&&(t=e,e=null),e&&e!==`001`){if(!this.hasCountry(e))throw Error(`Unknown country: ${e}`);this.numberingPlan=new Ig(this.getCountryMetadata(e),this);}else if(t){if(!this.hasCallingCode(t))throw Error(`Unknown calling code: ${t}`);this.numberingPlan=new Ig(this.getNumberingPlanMetadata(t),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}}])}(),Ig=function(){function e(t,n){Dg(this,e),this.globalMetadataObject=n,this.metadata=t,Gg.call(this,n.metadata);}return kg(e,[{key:`callingCode`,value:function(){return this.metadata[0]}},{key:`getDefaultCountryMetadataForRegion`,value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{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.getDefaultCountryMetadataForRegion())||[]).map(function(t){return new Lg(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.getDefaultCountryMetadataForRegion())}},{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.getDefaultCountryMetadataForRegion())}},{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()&&Bg(this.types(),e))return new zg(Bg(this.types(),e),this)}},{key:`ext`,value:function(){return this.v1||this.v2?Pg:this.metadata[13]||Pg}}])}(),Lg=function(){function e(t,n){Dg(this,e),this._format=t,this.metadata=n;}return kg(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()&&!Rg.test(this.nationalPrefixFormattingRule()))}},{key:`internationalFormat`,value:function(){return this._format[5]||this.format()}}])}(),Rg=/^\(?\$1\)?$/,zg=function(){function e(t,n){Dg(this,e),this.type=t,this.metadata=n;}return kg(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 Bg(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 Vg(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Tg(e)||!Tg(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 ${Tg(e)?`an object of shape: { `+Object.keys(e).join(`, `)+` }`:`a `+Hg(e)+`: `+e}.`)}var Hg=function(e){return Eg(e)};function Ug(e,t){if(t=new Q$2(t),t.hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw Error(`Unknown country: ${e}`)}function Wg(e,t){return t.countries.hasOwnProperty(e)}function Gg(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?Cg(t,Mg)===-1?this.v2=true:Cg(t,Ng)===-1?this.v3=true:this.v4=true:this.v1=true;}function Xg(e,t,n){return Zg(e,t,void 0,n)}function Zg(e,t,n,r){t&&(r=new Q$2(r.metadata),r.selectNumberingPlan(t));var i=r.type(n),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 Qg(e,t,n){if(t===void 0&&(t={}),n=new Q$2(n),t.v2){if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);n.selectNumberingPlan(e.countryCallingCode);}else {if(!e.phone)return false;if(e.country){if(!n.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);n.selectNumberingPlan(e.country);}else {if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);n.selectNumberingPlan(e.countryCallingCode);}}if(n.possibleLengths())return $g(e.phone||e.nationalNumber,e.country,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return true;throw Error(`Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.`)}function $g(e,t,n){switch(Xg(e,t,n)){case `IS_POSSIBLE`:return true;default:return false}}function e_(e,t){return e||=``,RegExp(`^(?:`+t+`)$`).test(e)}function t_(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=n_(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.
43
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n_(e,t){if(e){if(typeof e==`string`)return r_(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)?r_(e,t):void 0}}function r_(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 i_=[`MOBILE`,`PREMIUM_RATE`,`TOLL_FREE`,`SHARED_COST`,`VOIP`,`PERSONAL_NUMBER`,`PAGER`,`UAN`,`VOICEMAIL`];function a_(e,t,n){if(t||={},!(!e.country&&!e.countryCallingCode)){n=new Q$2(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(e_(r,n.nationalNumberPattern())){if(o_(r,`FIXED_LINE`,n))return n.type(`MOBILE`)&&n.type(`MOBILE`).pattern()===``||!n.type(`MOBILE`)||o_(r,`MOBILE`,n)?`FIXED_LINE_OR_MOBILE`:`FIXED_LINE`;for(var i=t_(i_),a;!(a=i()).done;){var o=a.value;if(o_(r,o,n))return o}}}}function o_(e,t,n){return t=n.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?false:e_(e,t.pattern())}function s_(e,t,n){return t||={},n=new Q$2(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?a_(e,t,n.metadata)!==void 0:e_(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern())}function c_(e,t,n){var r=new Q$2(n).getCountryCodesForCallingCode(e);return r?r.filter(function(e){return l_(t,e,n)}):[]}function l_(e,t,n){var r=new Q$2(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var u_=2,d_=17,f_=3,p_=`0-90-9٠-٩۰-۹`,m_=`-‐-―−ー-//.. \xA0­​⁠ ()()[]\\[\\]~⁓∼~`,h_=`++`,g_=RegExp(`([`+p_+`])`);function __(e,t,n,r){if(t){var i=new Q$2(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(g_);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]===`0`))return e}}}function v_(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 y_(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=b_(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.
44
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b_(e,t){if(e){if(typeof e==`string`)return x_(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)?x_(e,t):void 0}}function x_(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 S_(e,t){var n=t.countries,r=t.metadata;r=new Q$2(r);for(var i=y_(n),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(a_({phone:e,country:o},void 0,r.metadata))return o}}function w_(e,t){var n=t.nationalNumber,r=t.metadata;var i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:S_(n,{countries:i,metadata:r.metadata})}function T_(e,t,n){var r=v_(e,n),i=r.carrierCode,a=r.nationalNumber;return a!==e&&(!E_(e,a,n)||n.numberingPlan.possibleLengths()&&(t||=w_(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n}),!D_(a,t,n)))?{nationalNumber:e}:{nationalNumber:a,carrierCode:i}}function E_(e,t,n){return !(e_(e,n.nationalNumberPattern())&&!e_(t,n.nationalNumberPattern()))}function D_(e,t,n){switch(Xg(e,t,n)){case `TOO_SHORT`:case `INVALID_LENGTH`:return false;default:return true}}function O_(e,t,n,r,i){var a=n?Ug(n,i):r;if(e.indexOf(a)===0){i=new Q$2(i),i.selectNumberingPlan(n,a);var o=e.slice(a.length),s=T_(o,t,i).nationalNumber,c=T_(e,t,i).nationalNumber;if(!e_(c,i.nationalNumberPattern())&&e_(s,i.nationalNumberPattern())||Xg(c,t,i)===`TOO_LONG`)return {countryCallingCode:a,number:o}}return {number:e}}function k_(e,t,n,r,i){if(!e)return {};var a;if(e[0]!==`+`){var o=__(e,n,r,i);if(o&&o!==e)a=true,e=`+`+o;else {if(n||r){var s=O_(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 {};i=new Q$2(i);for(var u=2;u-1<=f_&&u<=e.length;){var d=e.slice(1,u);if(i.hasCallingCode(d))return i.selectNumberingPlan(d),{countryCallingCodeSource:a?`FROM_NUMBER_WITH_IDD`:`FROM_NUMBER_WITH_PLUS_SIGN`,countryCallingCode:d,number:e.slice(u)};u++;}return {}}function A_(e){return e.replace(RegExp(`[${m_}]+`,`g`),` `).trim()}var j_=/(\$\d)/;function M_(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(j_,t.nationalPrefixFormattingRule()):t.format());return r?A_(a):a}var N_=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function P_(e,t,n){var r=new Q$2(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(N_.test(r.IDDPrefix()))return r.IDDPrefix()}var F_=`;ext=`,I_=function(e){return `([${p_}]{1,${e}})`};function L_(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=F_+I_(t),ee=a+c+o+I_(t)+s,te=a+l+o+I_(r)+s,ne=u+I_(i)+`#`,re=d+f+o+I_(n)+s,m=d+`(?:,)+`+o+I_(r)+s;return p+`|`+ee+`|`+te+`|`+ne+`|`+re+`|`+m}var R_=`[`+p_+`]{`+u_+`}`,z_=`[`+h_+`]{0,1}(?:[`+m_+`]*[`+p_+`]){3,}[`+m_+p_+`]*`,B_=RegExp(`^[`+h_+`]{0,1}(?:[`+m_+`]*[`+p_+`]){1,2}$`,`i`),V_=z_+`(?:`+L_()+`)?`,H_=RegExp(`^`+R_+`$|^`+V_+`$`,`i`);function U_(e){return e.length>=u_&&H_.test(e)}function W_(e){return B_.test(e)}function G_(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 K_={formatExtension:function(e,t,n){return `${e}${n.ext()}${t}`}};function q_(e,t,n,r){if(n=n?Q_({},K_,n):K_,r=new Q$2(r),e.country&&e.country!==`001`){if(!r.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);r.selectNumberingPlan(e.country);}else if(e.countryCallingCode)r.selectNumberingPlan(e.countryCallingCode);else return e.phone||``;var i=r.countryCallingCode(),a=n.v2?e.nationalNumber:e.phone,o;switch(t){case `NATIONAL`:return a?(o=J_(a,e.carrierCode,`NATIONAL`,r,n),X_(o,e.ext,r,n.formatExtension)):``;case `INTERNATIONAL`:return a?(o=J_(a,null,`INTERNATIONAL`,r,n),o=`+${i} ${o}`,X_(o,e.ext,r,n.formatExtension)):`+${i}`;case `E.164`:return `+${i}${a}`;case `RFC3966`:return G_({number:`+${i}${a}`,ext:e.ext});case `IDD`:if(!n.fromCountry)return;var s=Z_(a,e.carrierCode,i,n.fromCountry,r);return s?X_(s,e.ext,r,n.formatExtension):void 0;default:throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`)}}function J_(e,t,n,r,i){var a=Y_(r.formats(),e);return a?M_(e,a,{useInternationalFormat:n===`INTERNATIONAL`,withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===false)}):e}function Y_(e,t){return $_(e,function(e){if(e.leadingDigitsPatterns().length>0){var n=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(t.search(n)!==0)return false}return e_(t,e.pattern())})}function X_(e,t,n,r){return t?r(e,t,n):e}function Z_(e,t,n,r,i){if(Ug(r,i.metadata)===n){var a=J_(e,t,`NATIONAL`,i);return n===`1`?n+` `+a:a}var o=P_(r,void 0,i.metadata);if(o)return `${o} ${n} ${J_(e,null,`INTERNATIONAL`,i)}`}function Q_(){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 $_(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++;}}function ev(e){"@babel/helpers - typeof";return ev=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},ev(e)}function tv(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 nv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tv(Object(n),true).forEach(function(t){rv(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function rv(e,t,n){return (t=sv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function iv(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function av(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,sv(r.key),r);}}function ov(e,t,n){return t&&av(e.prototype,t),Object.defineProperty(e,`prototype`,{writable:false}),e}function sv(e){var t=cv(e,`string`);return ev(t)==`symbol`?t:t+``}function cv(e,t){if(ev(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ev(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (String)(e)}var lv=false,uv=function(){function e(t,n,r){if(iv(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(Tg(n)&&Tg(n.countries)){r=n;var i=t;if(!pv.test(i))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=k_(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");Vg(r);var s=fv(t,r),c=s.country,l=s.countryCallingCode;this.country=c,this.countryCallingCode=l,this.nationalNumber=n,this.number=`+`+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r};}return ov(e,[{key:`setExt`,value:function(e){this.ext=e;}},{key:`getPossibleCountries`,value:function(){return this.country?[this.country]:c_(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:`isPossible`,value:function(){return Qg(this,{v2:true},this.getMetadata())}},{key:`isValid`,value:function(){return s_(this,{v2:true},this.getMetadata())}},{key:`isNonGeographic`,value:function(){return new Q$2(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:`isEqual`,value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:`getType`,value:function(){return a_(this,{v2:true},this.getMetadata())}},{key:`format`,value:function(e,t){return q_(this,e,t?nv(nv({},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)}}])}(),dv=function(e){return /^[A-Z]{2}$/.test(e)};function fv(e,t){var n,r,i=new Q$2(t);return dv(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):(r=e,lv),{country:n,countryCallingCode:r}}var pv=/^\+\d+$/;function mv(e){"@babel/helpers - typeof";return mv=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},mv(e)}function gv(e,t,n){return Object.defineProperty(e,`prototype`,{writable:false}),e}function yv(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function bv(e,t,n){return t=kv(t),xv(e,Ev()?Reflect.construct(t,n||[],kv(e).constructor):t.apply(e,n))}function xv(e,t){if(t&&(mv(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Sv(e)}function Sv(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Cv(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&&Ov(e,t);}function wv(e){var t=typeof Map==`function`?new Map:void 0;return wv=function(e){if(e===null||!Dv(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 Tv(e,arguments,kv(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:false,writable:true,configurable:true}}),Ov(n,e)},wv(e)}function Tv(e,t,n){if(Ev())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Ov(i,n.prototype),i}function Ev(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch{}return (Ev=function(){return !!e})()}function Dv(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function Ov(e,t){return Ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ov(e,t)}function kv(e){return kv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kv(e)}var Av=function(e){function t(e){var n;return yv(this,t),n=bv(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return Cv(t,e),gv(t)}(wv(Error)),jv=RegExp(`(?:`+L_()+`)$`,`i`);function Mv(e){var t=e.search(jv);if(t<0)return {};for(var n=e.slice(0,t),r=e.match(jv),i=1;i<r.length;){if(r[i])return {number:n,ext:r[i]};i++;}}var Nv={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 Pv(e){return Nv[e]}function Fv(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=Iv(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.
45
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Iv(e,t){if(e){if(typeof e==`string`)return Lv(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)?Lv(e,t):void 0}}function Lv(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 Rv(e){for(var t=``,n=Fv(e.split(``)),r;!(r=n()).done;){var i=r.value;t+=zv(i,t)||``;}return t}function zv(e,t,n){if(e===`+`){if(t){return}return `+`}return Pv(e)}var Bv=`+`,Vv=`([`+p_+`]|[\\-\\.\\(\\)]?)`,Hv=`^\\`+Bv+Vv+`*[`+p_+`]`+Vv+`*$`,Uv=new RegExp(Hv,`g`),Wv=p_,Gv=`[`+Wv+`]+((\\-)*[`+Wv+`])*`,Kv=`[a-zA-Z]+((\\-)*[`+Wv+`])*`,qv=`^(`+Gv+`\\.)*`+Kv+`\\.?$`,Jv=new RegExp(qv,`g`),Yv=`tel:`,Xv=`;phone-context=`,Zv=`;isub=`;function Qv(e){var t=e.indexOf(Xv);if(t<0)return null;var n=t+Xv.length;if(n>=e.length)return ``;var r=e.indexOf(`;`,n);return r>=0?e.substring(n,r):e.substring(n)}function $v(e){return e===null?true:e.length===0?false:Uv.test(e)||Jv.test(e)}function ey(e,t){var n=t.extractFormattedPhoneNumber,r=Qv(e);if(!$v(r))throw new Av(`NOT_A_NUMBER`);var i;if(r===null)i=n(e)||``;else {i=``,r.charAt(0)===Bv&&(i+=r);var a=e.indexOf(Yv),o=a>=0?a+Yv.length:0,s=e.indexOf(Xv);i+=e.substring(o,s);}var c=i.indexOf(Zv);if(c>0&&(i=i.substring(0,c)),i!==``)return i}var ty=250,ny=RegExp(`[`+h_+p_+`]`),ry=RegExp(`[^`+p_+`#]+$`),iy=false;function ay(e,t,n){if(t||={},n=new Q$2(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new Av(`INVALID_COUNTRY`):Error(`Unknown country: ${t.defaultCountry}`);var r=sy(e,t.v2,t.extract),i=r.number,a=r.ext,o=r.error;if(!i){if(t.v2)throw o===`TOO_SHORT`?new Av(`TOO_SHORT`):new Av(`NOT_A_NUMBER`);return {}}var s=ly(i,t.defaultCountry,t.defaultCallingCode,n),c=s.country,l=s.nationalNumber,u=s.countryCallingCode,d=s.countryCallingCodeSource,f=s.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Av(`INVALID_COUNTRY`);return {}}if(!l||l.length<u_){if(t.v2)throw new Av(`TOO_SHORT`);return {}}if(l.length>d_){if(t.v2)throw new Av(`TOO_LONG`);return {}}if(t.v2){var p=new uv(u,l,n.metadata);return c&&(p.country=c),f&&(p.carrierCode=f),a&&(p.ext=a),p.__countryCallingCodeSource=d,p}var ee=(t.extended?n.hasSelectedNumberingPlan():c)?e_(l,n.nationalNumberPattern()):false;return t.extended?{country:c,countryCallingCode:u,carrierCode:f,valid:ee,possible:ee?true:!!(t.extended===true&&n.possibleLengths()&&$g(l,c,n)),phone:l,ext:a}:ee?cy(c,l,a):{}}function oy(e,t,n){if(e){if(e.length>ty){if(n)throw new Av(`TOO_LONG`);return}if(t===false)return e;var r=e.search(ny);if(!(r<0))return e.slice(r).replace(ry,``)}}function sy(e,t,n){var r=ey(e,{extractFormattedPhoneNumber:function(e){return oy(e,n,t)}});if(!r)return {};if(!U_(r))return W_(r)?{error:`TOO_SHORT`}:{};var i=Mv(r);return i.ext?i:{number:r}}function cy(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function ly(e,t,n,r){var i=k_(Rv(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))r.selectNumberingPlan(t,n),t?c=t:iy,o=n||Ug(t,r.metadata);else return {};if(!s)return {countryCallingCodeSource:a,countryCallingCode:o};var l=T_(Rv(s),c,r),u=l.nationalNumber,d=l.carrierCode,f=w_(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 uy(e){"@babel/helpers - typeof";return uy=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},uy(e)}function dy(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 fy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dy(Object(n),true).forEach(function(t){py(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function py(e,t,n){return (t=my(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function my(e){var t=hy(e,`string`);return uy(t)==`symbol`?t:t+``}function hy(e,t){if(uy(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uy(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function gy(e,t,n){return ay(e,fy(fy({},t),{},{v2:true}),n)}function _y(e){"@babel/helpers - typeof";return _y=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},_y(e)}function vy(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 yy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vy(Object(n),true).forEach(function(t){by(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function by(e,t,n){return (t=xy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function xy(e){var t=Sy(e,`string`);return _y(t)==`symbol`?t:t+``}function Sy(e,t){if(_y(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_y(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function Cy(e,t){return Oy(e)||Dy(e,t)||Ty(e,t)||wy()}function wy(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
46
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ty(e,t){if(e){if(typeof e==`string`)return Ey(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)?Ey(e,t):void 0}}function Ey(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 Dy(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 Oy(e){if(Array.isArray(e))return e}function ky(e){var t=Cy(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=yy({defaultCountry:r},s));else if(Tg(r))i?(s=r,c=i):c=r;else throw Error(`Invalid second argument: ${r}`);return {text:o,options:s,metadata:c}}function Ay(e){"@babel/helpers - typeof";return Ay=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},Ay(e)}function jy(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 My(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jy(Object(n),true).forEach(function(t){Ny(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function Ny(e,t,n){return (t=Py(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Py(e){var t=Fy(e,`string`);return Ay(t)==`symbol`?t:t+``}function Fy(e,t){if(Ay(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ay(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function Iy(e,t,n){t&&t.defaultCountry&&!Wg(t.defaultCountry,n)&&(t=My(My({},t),{},{defaultCountry:void 0}));try{return gy(e,t,n)}catch(e){if(!(e instanceof Av))throw e}}function Ly(e){"@babel/helpers - typeof";return Ly=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},Ly(e)}function Ry(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 zy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ry(Object(n),true).forEach(function(t){By(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ry(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e}function By(e,t,n){return (t=Vy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function Vy(e){var t=Hy(e,`string`);return Ly(t)==`symbol`?t:t+``}function Hy(e,t){if(Ly(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ly(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return (t===`string`?String:Number)(e)}function Uy(){var e=ky(arguments),t=e.text,n=e.options,r=e.metadata;n=zy(zy({},n),{},{extract:false});var i=Iy(t,n,r);return i&&i.isValid()||false}function Wy(){return Sg(Uy,arguments)}const Gy=Kh.omit({eventId:true,channel:true}).partial().extend({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order to update`}),signature:gl$1.meta({description:`HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for all order updates.`}),items:P$1(Wh).min(1).optional().meta({description:`Updated list of items for the order. Requires signature. Prices will be recalculated and payment intent updated.`}),customer:F$1({firstName:k$1().meta({examples:[b$1.Customer.firstName],description:`Updated first name of the customer`}).optional(),lastName:k$1().meta({examples:[b$1.Customer.lastName],description:`Updated last name of the customer`}).optional(),email:Co().meta({examples:[b$1.Customer.email],description:`Updated email address of the customer`}).optional(),phone:k$1().refine(e=>!e||Wy(e),{message:`Phone must be in E.164 format (e.g., +61412345678)`}).meta({examples:[b$1.Customer.phone],description:`Updated phone number in E.164 format (e.g., +61412345678)`}).optional(),deliveryMethod:Jh.optional()}).optional().meta({description:`Updated customer information for the order. All fields are optional for partial updates.`}),marketingConsent:gh.optional().meta({description:`Marketing opt-in choices captured during checkout.`})}),Ky=F$1({id:k$1().meta({examples:[b$1.Order.id],description:`Unique identifier of the order`}),noteId:k$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to update`}),note:k$1().min(1).max(1e3).meta({examples:[`Updated: Customer confirmed special seating arrangements`],description:`Updated note text content (1-1000 characters)`})});var qy={create:_$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(Uh.strict()).output(bg),update:_$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(Ky.strict()).output(bg),remove:_$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(qh.strict()).output(rs())};const Jy=_$1.route({method:`GET`,path:`/orders/{id}`,summary:`Get order by ID`,tags:[`Orders`]}).input(Xh.strict()).output(bg),Yy=_$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`, and deterministic created-at sorting.",tags:[`Orders`]}).input(lg.strict()).output(ug),Xy=_$1.route({method:`POST`,path:`/orders/quote`,summary:`Create order quote`,tags:[`Orders`]}).input(fg.strict()).output(pg);var Zy={get:Jy,list:Yy,create:_$1.route({method:`POST`,path:`/orders`,summary:`Create a new order`,tags:[`Orders`]}).input(Kh.strict()).output(bg),createComplimentary:_$1.route({method:`POST`,path:`/orders/complimentary`,summary:`Create a complimentary order`,tags:[`Orders`]}).input(Gh.strict()).output(bg),update:_$1.route({method:`PUT`,path:`/orders/{id}`,summary:`Update an order`,tags:[`Orders`]}).input(Gy.strict()).output(bg),reserve:_$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(vg.strict()).output(bg),quote:Xy,resend:_$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(_g.strict()).output(bg),refund:_$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(hg.strict()).output(gg),note:qy};F$1({success:N$1().meta({description:`Whether the payout approval was successful`}),message:k$1().optional().meta({description:`Optional message about the approval result`}),payoutId:k$1().meta({description:`ID of the payout that was approved`})});const $y=F$1({payoutId:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout for which to retrieve the detailed breakdown of orders and financial calculations.`})}),eb=F$1({id:k$1().readonly().meta({examples:[b$1.PayoutDeduction.id],description:`Unique identifier for this deduction record.`}),createdAt:D$1().readonly().meta({examples:[b$1.PayoutDeduction.createdAt],description:`Timestamp in ISO 8601 format when this deduction was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.PayoutDeduction.updatedAt],description:`Timestamp in ISO 8601 format when this deduction was last updated.`}),amount:M$1().min(0).meta({examples:[b$1.PayoutDeduction.amount],description:`Deduction amount in cents. Positive values represent money being deducted from the payout.`}),currency:z$2.meta({examples:[b$1.PayoutDeduction.currency],description:`Currency code in ISO 4217 format for the deduction amount.`}),description:k$1().meta({examples:[b$1.PayoutDeduction.description],description:`Human-readable description explaining the reason for this deduction (e.g., 'Minimum bar spend not met', 'Venue damage charge').`}),gateway:k$1().meta({examples:[b$1.PayoutDeduction.gateway],description:`Payment gateway identifier where this deduction was processed.`}),gatewayId:k$1().meta({examples:[b$1.PayoutDeduction.gatewayId],description:`Unique identifier assigned by the payment gateway for this deduction transaction.`}),beneficiary:k$1().meta({examples:[b$1.PayoutDeduction.beneficiary],description:`Human-readable name of the beneficiary account from which this deduction was taken.`}),beneficiaryId:k$1().meta({examples:[b$1.PayoutDeduction.beneficiaryId],description:`Unique identifier of the beneficiary account from which this deduction was taken.`}),transferId:k$1().optional().meta({description:`Optional reference to a transfer record when this deduction results in money being moved to a future payout.`}),transferPayoutId:k$1().optional().meta({description:`Optional reference to a future payout where the deducted amount will be applied.`})}),tb=F$1({id:k$1().meta({examples:[b$1.Event.id],description:`Unique identifier for the event associated with this payout.`}),name:k$1().meta({examples:[b$1.Event.name],description:`Human-readable name of the event.`}),slug:k$1().meta({examples:[b$1.Event.slug],description:`URL-friendly slug identifier for the event.`}),location:k$1().optional().meta({examples:[b$1.Event.location.name],description:`Optional human-readable location name where the event takes place.`})}),nb=F$1({net:M$1().meta({examples:[b$1.Payout.price.net],description:`Total amount to pay to promoter.
47
47
  Calculated as: total + booking + refunded + dispute + deductions`}),total:M$1().meta({examples:[b$1.Payout.price.total],description:`Total amount the collected in ticket revenue.
48
48
  Calculated as: gross + discount`}),gross:M$1().min(0).meta({examples:[b$1.Payout.price.gross],description:`Total amount before refunds, disputes, deductions and discounts.
49
- Calculated as: base + booking + shipping`}),base:M$1().min(0).meta({examples:[b$1.Payout.price.base],description:`Total value of tickets.`}),booking:M$1().min(0).meta({examples:[b$1.Payout.price.booking],description:`Total value of booking fees (non-refundable).`}),shipping:M$1().min(0).meta({examples:[b$1.Payout.price.shipping],description:`Total value of shipping.`}),sms:M$1().min(0).default(0).meta({examples:[b$1.Payout.price.sms],description:`Total SMS delivery fees collected in cents (owed to Session Services, not the event organiser).`}),refunded:M$1().max(0).meta({examples:[b$1.Payout.price.refunded],description:`Total value of refunds (negative value).`}),discount:M$1().max(0).meta({examples:[b$1.Payout.price.discount],description:`Total value of discounts (negative value).`}),gateway:M$1().max(0).meta({examples:[b$1.Payout.price.gateway],description:`Total value of absorbed payment gateway fees (negative value).`}),dispute:M$1().max(0).meta({examples:[b$1.Payout.price.dispute],description:`Total value of non-absorbed payment gateway fees (negative value).`}),deductions:M$1().max(0).meta({examples:[b$1.Payout.price.deductions],description:`Total value of deductions for when money is owed (negative value).`}),currency:R$1.meta({examples:[b$1.Payout.price.currency],description:`Currency code in ISO 4217 format.`})}),Jy=I$1([`CREATED`,`APPROVED`,`REJECTED`,`PROCESSING`,`PAID`,`FAILED`,`CANCELLED`,`NOTE`]),Yy=kh(Jy,{createdAtExamples:[b$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`]}),Xy=F$1({id:k$1().meta({examples:[b$1.PayoutTransfer.id],description:`Unique identifier for this transfer record.`}),createdAt:D$1().meta({examples:[b$1.PayoutTransfer.createdAt],description:`Timestamp in ISO 8601 format when this transfer was created.`}),kind:I$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:M$1().min(0).meta({examples:[b$1.PayoutTransfer.amount],description:`Transfer amount in cents. Positive values represent money being transferred to the beneficiary.`}),currency:R$1.meta({examples:[b$1.PayoutTransfer.currency],description:`Currency code in ISO 4217 format for the transfer amount.`}),fee:M$1().min(0).meta({examples:[b$1.PayoutTransfer.fee],description:`Gateway processing fee for this transfer in cents. This fee is deducted from the transfer amount.`}),feeCurrency:R$1.meta({examples:[b$1.PayoutTransfer.feeCurrency],description:`Currency code in ISO 4217 format for the gateway fee.`}),reference:k$1().meta({examples:[b$1.PayoutTransfer.reference],description:`External reference identifier for tracking this transfer with the payment gateway.`}),gateway:I$1([`AIRWALLEX`,`STRIPE`]).meta({examples:[`AIRWALLEX`],description:`Payment gateway used to process this transfer.`}),gatewayId:k$1().meta({examples:[b$1.PayoutTransfer.gatewayId],description:`Unique identifier assigned by the payment gateway for this transfer.`}),beneficiary:k$1().meta({examples:[b$1.PayoutTransfer.beneficiary],description:`Human-readable name of the beneficiary receiving this transfer.`}),beneficiaryId:k$1().meta({examples:[b$1.PayoutTransfer.beneficiaryId],description:`Unique identifier of the beneficiary account receiving this transfer.`}),status:k$1().optional().meta({examples:[`SCHEDULED`],description:`Transfer status from the payment gateway (e.g. SCHEDULED, IN_PROGRESS, COMPLETED).`}),settlementAmount:M$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:R$1.optional().meta({examples:[`USD`],description:`Currency code in ISO 4217 format for the settlement amount. Present only for cross-currency transfers.`}),deductionId:k$1().optional().meta({description:`Optional reference to a deduction record when this transfer represents money being held back from a previous negative payout.`}),deductionPayoutId:k$1().optional().meta({description:`Optional reference to the payout that originated this transfer when it represents an outstanding balance being carried forward.`})}),Zy=I$1([`UPCOMING`,`FAILED`,`PROCESSING`,`PAID`,`CANCELLED`]),$y=I$1([`AIRWALLEX`,`STRIPE`,`MANUAL`]),tb=I$1([`DAILY`,`WEEKLY`,`AFTER_EVENT`,`ON_DEMAND`]),rb=F$1({id:k$1().readonly().meta({examples:[b$1.Payout.id],description:`A unique identifier for this payout.`}),createdAt:D$1().readonly().meta({examples:[b$1.Payout.createdAt],description:`Timestamp in ISO 8601 format when this payout was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.Payout.updatedAt],description:`Timestamp in ISO 8601 format when this payout was last updated.`}),paidAt:D$1().optional().meta({examples:[b$1.Payout.paidAt],description:`Timestamp in ISO 8601 format when this payout was completed.`}),dueAt:D$1().optional().meta({examples:[b$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:Zy.meta({examples:[`PAID`],description:`Current payment status of this payout.`}),method:$y.meta({examples:[`MANUAL`],description:`The payout channel used for disbursing funds.`}),approval:$s.meta({examples:[`APPROVED`],description:`Approval status for this payout.`}),frequency:tb.default(`AFTER_EVENT`).meta({examples:[`AFTER_EVENT`],description:`Schedule on which this payout is generated.`}),structure:k$1().meta({examples:[b$1.Payout.structure],description:`Data structure defining how funds are allocated in this payout.`}),transfers:P$1(Xy).meta({description:`List of individual transfer records included in this payout.`}),deductions:P$1(Gy).meta({description:`List of deductions applied before calculating the payout total.`}),price:qy.meta({description:`Summary of amounts for transfers and deductions in this payout.`}),event:Ky.meta({description:`Information about the event associated with this payout.`}),timeline:P$1(Yy).optional().meta({description:`Chronological list of status changes and notes for this payout.`}),eventId:k$1().meta({examples:[b$1.Payout.eventId],description:`Identifier of the event for which this payout was generated.`}),teamId:k$1().meta({description:`Team receiving this payout. BREAKING CHANGE: Replaced promoterId/promoterSlug.`})}).meta({description:`payout`});F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to approve for processing.`})});F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to reject.`}),reason:k$1().optional().meta({examples:[`Insufficient funds in account`],description:`Optional reason for rejecting the payout. This will be recorded for audit purposes.`})});F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to process and initiate transfers.`})});F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to retry transfer processing for.`})});const cb=F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to add a note to`}),note:k$1().trim().min(1).max(1e3).meta({examples:[`Transfer confirmed via bank statement`],description:`Note text content (1-1000 characters)`})}),lb=F$1({name:k$1(),gateway:I$1([`AIRWALLEX`,`STRIPE`,`FREE`]),message:k$1(),eventIds:P$1(k$1()).optional(),venues:P$1(k$1()).optional(),tenants:P$1(k$1()).optional(),teams:P$1(k$1()).optional(),ticketBeneficiaryTeamId:k$1().optional(),min:j$1().optional(),max:j$1().optional(),percent:j$1().optional(),split:F$1({tenant:j$1(),team:j$1(),venue:j$1(),sessions:j$1()})}),ub=F$1({tenant:j$1().meta({examples:[5e4],description:`Amount allocated to the tenant (platform) in cents. This represents the platform's share of the revenue.`}),venue:j$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:j$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:j$1().meta({examples:[3e3],description:`Amount allocated to Sessions platform commission in cents. This represents the platform's service fees.`}),tickets:j$1().meta({examples:[2e3],description:`Amount allocated to ticketing fees in cents. This represents fees charged for ticket processing and management.`})});F$1({payout:rb.meta({description:`Complete payout record containing all financial details and metadata for calculating beneficiary allocations.`}),feeStructure:lb.meta({description:`Fee structure configuration that defines how revenue is split between different parties (promoter, venue, platform, etc.).`}),split:ub.meta({description:`Calculated split amounts showing how the payout total is divided among the different beneficiaries in cents.`})});const fb=F$1({orders:j$1().meta({examples:[150],description:`Total number of orders included in this payout breakdown.`}),price:yh.meta({description:`Aggregated price information for all orders included in this payout, showing total revenue, fees, and deductions.`}),split:ub.meta({description:`How the total payout amount is split between different beneficiaries (tenant, venue, promoter, etc.) in cents.`}),structure:k$1().meta({examples:[`DEFAULT`],description:`Fee structure identifier that was used to calculate the payout split and allocations.`})}),pb=F$1({total:fb.meta({description:`Summary totals for all orders included in this payout breakdown, including aggregated financial calculations.`}),orders:P$1(F$1({order:Ph.meta({description:`Complete order information including customer details, items, and payment status.`}),price:yh.meta({description:`Settled price information for this specific order, showing final amounts after refunds and adjustments.`}),split:ub.meta({description:`How this individual order's revenue is split between different beneficiaries in cents.`}),structure:k$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.`})});rb.pick({id:true,eventId:true}).extend({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout for which to retrieve the detailed breakdown.`}),eventId:k$1().meta({examples:[b$1.Event.id],description:`Unique identifier of the event associated with the payout breakdown.`})});rb.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:k$1().meta({examples:[b$1.Event.id],description:`Unique identifier of the event for which the payout is being created`}),teamId:k$1().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`Unique identifier of the team who will receive the payout`}),method:I$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:I$1([`DAILY`,`WEEKLY`,`AFTER_EVENT`]).optional().meta({examples:[`AFTER_EVENT`],description:`Optional payout frequency. Defaults to 'AFTER_EVENT' if not specified`})});const gb=F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout`}),noteId:k$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to delete`})}),_b=rb.pick({id:true}).extend({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to retrieve.`})}),vb=F$1({mine:N$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:k$1().optional().meta({description:`Filter payouts by specific team unique identifier. BREAKING CHANGE: Replaced promoterId filter.`}),eventId:k$1().optional().meta({examples:[b$1.Event.id],description:`Filter payouts by specific event unique identifier. When provided, only returns payouts for this event.`}),status:I$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:$s.optional().meta({examples:[`APPROVED`],description:`Filter payouts by approval status. PENDING: awaiting approval, APPROVED: approved for processing, REJECTED: rejected and will not be processed.`}),query:k$1().optional().meta({examples:[`PAID venue:sydney`],description:`Optional search query to filter payouts by text fields. When provided, search-backed pagination is used.`}),limit:U$2(`payouts`).optional(),cursor:k$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`}),yb=G$2(rb,`payouts`),bb=I$1([`VALID`,`FALLBACK`,`MISSING`]),xb=F$1({status:bb.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:k$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:F$1({id:k$1().optional().meta({examples:[b$1.Beneficiary.id],description:`Identifier for the beneficiary.`}),teamId:k$1().optional().meta({examples:[b$1.Team.id],description:`Team that owns this beneficiary configuration.`}),name:k$1().meta({examples:[b$1.Beneficiary.name],description:`Display name for the resolved beneficiary.`}),gateway:I$1([`AIRWALLEX`,`STRIPE`]).optional().meta({examples:[b$1.Beneficiary.gateway],description:`Payment gateway for this beneficiary when available from configuration.`}),gatewayId:k$1().meta({examples:[b$1.Beneficiary.gatewayId],description:`Gateway-specific beneficiary identifier used for transfer creation.`}),currency:R$1.meta({examples:[b$1.Beneficiary.currency],description:`Currency configured for this beneficiary.`})}).optional()}),Sb=I$1([`tickets`,`tenant`,`venue`,`team`,`sessions`]),Cb=F$1({kind:Sb.meta({examples:[`tickets`],description:`Split component represented by this row.`}),amount:j$1().int().meta({examples:[114500],description:`Amount in cents for this split component.`}),currency:R$1.meta({examples:[b$1.Payout.price.currency],description:`Currency code for this split component.`}),beneficiary:xb}),wb=I$1([`TRACKED`,`N_A`,`SKIPPED`]),Tb=F$1({orders:j$1().int().meta({examples:[12],description:`Number of orders in this settlement bucket.`}),price:yh.meta({description:`Aggregated totals for the orders in this bucket, in the bucket's native currency.`})}),Eb=F$1({state:wb.meta({examples:[`TRACKED`],description:`Whether settlement tracking applies to this payout preview. Non-Airwallex payouts return N_A.`}),settled:Tb.optional().meta({description:`Completed Airwallex orders that already have settlement data available.`}),awaitingSettlement:Tb.optional().meta({description:`Completed Airwallex orders still waiting on settlement ingestion.`})}),Db=F$1({payout:rb.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:P$1(Cb).meta({description:`Non-zero split rows with beneficiary resolution status and warnings.`}),settlementSummary:Eb.meta({description:`Settlement status summary for the payout event. Airwallex payouts expose settled vs awaiting-settlement buckets.`})}),Ob=_b.extend({includeSettlementSummary:N$1().optional().meta({examples:[true],description:`When true, includes the Airwallex settlement summary for the payout preview.`})}),kb=F$1({payout:rb,breakdown:pb}),Ab=Cs(k$1(),Cs(k$1(),F$1({net:j$1(),total:j$1(),gross:j$1(),base:j$1(),booking:j$1(),shipping:j$1(),refunded:j$1(),discount:j$1(),gateway:j$1(),dispute:j$1(),deductions:j$1()}))).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,deductions:2e3}},previous:{USD:{net:8e4,total:95e3,gross:9e4,base:85e3,booking:5e3,shipping:0,refunded:0,discount:5e3,gateway:2500,dispute:0,deductions:1500}}}]}),jb=F$1({teamId:k$1().optional().meta({description:`Filter stats by team ID`}),startDate:k$1().optional().meta({description:`Start date for stats period (YYYY-MM-DD)`}),endDate:k$1().optional().meta({description:`End date for stats period (YYYY-MM-DD)`})}),Mb=rb.pick({id:true}).merge(rb.pick({status:true,approval:true}).partial()).extend({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to update.`}),status:I$1([`CANCELLED`]).optional().meta({examples:[`CANCELLED`],description:`Optional new payment status for the payout. Only CANCELLED is allowed for manual updates.`}),approval:$s.optional().meta({examples:[`APPROVED`],description:`Optional new approval status for the payout. PENDING: awaiting approval, APPROVED: approved for processing, REJECTED: rejected.`})}),Nb=F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout`}),noteId:k$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to update`}),note:k$1().trim().min(1).max(1e3).meta({examples:[`Updated: Transfer confirmed - reference #12345`],description:`Updated note text content (1-1000 characters)`})}),Pb=F$1({payout:rb});var Fb={create:v$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(cb.strict()).output(Pb),update:v$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(Nb.strict()).output(Pb),remove:v$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(gb.strict()).output(Pb)},Ib={get:v$1.route({method:`GET`,path:`/payouts/{id}`,summary:`Get payout by ID with breakdown`,tags:[`Payouts`]}).input(_b.strict()).output(kb),list:v$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(vb.strict()).output(yb),preview:v$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(Ob.strict()).output(Db),stats:v$1.route({method:`POST`,path:`/payouts/stats`,summary:`Get payout statistics`,tags:[`Payouts`]}).input(jb.strict()).output(Ab),breakdown:v$1.route({method:`GET`,path:`/payouts/{payoutId}/breakdown`,summary:`Get payout breakdown`,tags:[`Payouts`]}).input(Wy.strict()).output(pb),update:v$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(Mb.strict()).output(rb),note:Fb};const Lb=I$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.`}),Rb=F$1({id:k$1().readonly().meta({description:`Unique identifier for the permission scope`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the scope was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the scope was last updated`}),teamMemberId:k$1().meta({description:`Team member this scope applies to`}),teamId:k$1().meta({description:`Team the member belongs to`}),userId:k$1().meta({description:`ID of the user this permission scope applies to`}),permissions:P$1(il).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:P$1(k$1()).optional().meta({description:`Optional role IDs applied at this scope. Role-derived permissions are merged with explicit scoped nodes.`}),tenantId:k$1().readonly().meta({description:`Tenant identifier`})}),zb=ys(`kind`,[Rb.extend({kind:Es(`PROMOTER`).meta({description:`Scope type: PROMOTER-specific permissions`}),promoterId:k$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.`}),Rb.extend({kind:Es(`VENUE`).meta({description:`Scope type: VENUE-specific permissions`}),venueId:k$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.`}),Bb=F$1({permissions:P$1(il).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:P$1(k$1()).optional().meta({description:`Optional role IDs to apply at this scope.`})}),Vb=ys(`kind`,[Bb.extend({kind:Es(`PROMOTER`).meta({description:`Scope type: PROMOTER-specific permissions`}),promoterId:k$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.`}),Bb.extend({kind:Es(`VENUE`).meta({description:`Scope type: VENUE-specific permissions`}),venueId:k$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.`}),Hb=F$1({id:wc.meta({description:`Unique identifier for the permission scope`})}).meta({description:`Schema for retrieving a single permission scope by ID`}),Ub=F$1({teamMemberId:k$1().optional().meta({description:`Filter by team member ID`}),userId:k$1().optional().meta({description:`Filter by user ID`}),kind:Lb.optional().meta({description:`Filter by scope kind (PROMOTER or VENUE)`}),promoterId:k$1().optional().meta({description:`Filter by promoter ID (only for kind=PROMOTER scopes)`}),venueId:k$1().optional().meta({description:`Filter by venue ID (only for kind=VENUE scopes)`}),limit:U$2(`permission scopes`),cursor:k$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`}),Wb=G$2(zb,`items`).meta({description:`Paginated response containing permission scopes with cursor for next page`}),Gb=Bb.meta({description:`Schema for updating an existing permission scope. Only permissions array can be modified.`}),Kb=F$1({key:k$1(),memberId:k$1()}),qb=Kb.merge(Hb).strict();var Jb={get:v$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(qb).output(zb),list:v$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(Kb.merge(Ub).strict()).output(Wb),create:v$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(Kb.and(Vb)).output(zb),update:v$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(Kb.extend({id:k$1()}).merge(Gb).strict()).output(zb),remove:v$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(qb).output(zb)};const Yb=F$1({id:Tc.meta({description:`Permission role ID`}),teamId:sc.meta({description:`Team that owns this role`}),name:k$1().min(1).meta({description:`Role display name`}),description:k$1().optional().meta({description:`Optional role description`}),permissions:ol.meta({description:`Permission nodes granted by this role`}),createdAt:D$1().meta({description:`Timestamp in ISO 8601 format when the role was created`}),updatedAt:D$1().meta({description:`Timestamp in ISO 8601 format when the role was last updated`})}).meta({description:`Team-scoped permission role`}),Xb=F$1({role:Yb}),Zb=F$1({roles:P$1(Yb)}),Qb=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`})}),$b=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),roleId:Tc}),ex=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),name:k$1().min(1).meta({description:`Role display name`}),description:k$1().optional().meta({description:`Optional role description`}),permissions:ol}),tx=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),roleId:Tc,name:k$1().min(1).meta({description:`Role display name`}),description:k$1().optional().meta({description:`Optional role description`}),permissions:ol}),nx=F$1({memberId:xc,permissions:P$1(il),updatedAt:D$1()}),rx=F$1({member:nx}),ix=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),memberId:xc}),ax=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),memberId:xc,permissions:P$1(il).meta({description:`Direct permission nodes for this member. Full-replace semantics; use an empty array to remove all direct grants.`})}),ox=F$1({memberId:xc,roleIds:P$1(Tc).meta({description:`Role IDs assigned to this member`}),updatedAt:D$1()}),sx=F$1({member:ox}),cx=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),memberId:xc}),lx=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),memberId:xc,roleIds:P$1(Tc)}),ux=F$1({direct:P$1(k$1()),fromRoles:P$1(k$1()),effective:P$1(k$1()),denied:P$1(k$1())});F$1({memberId:xc,permissions:ux});F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),memberId:xc,domain:k$1().optional().meta({description:`Optional domain filter (for example: ticket, event)`}),action:k$1().optional().meta({description:`Optional action filter (for example: read, write, scan)`}),resourceId:k$1().optional().meta({description:`Optional resource ID filter`})});const mx=v$1.route({method:`GET`,path:`/teams/{key}/roles`,summary:`List team roles`,description:`Returns all roles configured for a team.`,tags:[`Permissions`]}).input(Qb.strict()).output(Zb),hx=v$1.route({method:`POST`,path:`/teams/{key}/roles`,summary:`Create team role`,description:`Creates a team-scoped permission role.`,tags:[`Permissions`]}).input(ex.strict()).output(Xb),gx=v$1.route({method:`GET`,path:`/teams/{key}/roles/{roleId}`,summary:`Get team role`,description:`Retrieves a team role by ID.`,tags:[`Permissions`]}).input($b.strict()).output(Xb),_x=v$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(tx.strict()).output(Xb),vx=v$1.route({method:`DELETE`,path:`/teams/{key}/roles/{roleId}`,summary:`Delete team role`,description:`Deletes a team role.`,tags:[`Permissions`]}).input($b.strict()).output(Xb),yx=v$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(ix.strict()).output(rx),bx=v$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(ax.strict()).output(rx),xx=v$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(cx.strict()).output(sx),Sx=v$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(lx.strict()).output(sx);var Cx={roles:{list:mx,create:hx,get:gx,update:_x,remove:vx},members:{permissions:{get:yx,replace:bx},roles:{get:xx,replace:Sx}}};const wx=F$1({key:k$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[b$1.Promoter.id,b$1.Promoter.slug]})}).meta({description:`Request schema for retrieving a promoter by either its unique ID or slug`});Rp.pick({slug:true});const Ex=Rp.omit({id:true,createdAt:true,updatedAt:true,geohash:true,approval:true,location:true}).extend({teamId:k$1().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`ID of the team that will own this promoter. User must be a member of this team.`}),slug:k$1().min(3).max(30).optional().meta({examples:[b$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`}),...Uh}).refine(Wh,{message:Hh}).meta({description:`Schema for creating a new promoter organization. The system automatically generates the ID, tenant association, geohash, and timestamps`}),Dx=F$1({key:k$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[b$1.Promoter.id,b$1.Promoter.slug]})}).meta({description:`Schema for removing (soft deleting) a promoter organization by key (ID or slug)`});Rp.pick({id:true}).meta({description:`Schema for retrieving a specific promoter by ID`});const kx=e=>{if(e!=null)return typeof e==`string`?Ax(e):e};function Ax(e){let t=e.trim();if(t.length===0)return;let n=Number(t);return Number.isNaN(n)?e:n}const jx=F$1({teamId:k$1().optional().meta({description:`Filter promoters to only those belonging to a specific team`}),approval:$s.optional().meta({examples:[b$1.Promoter.approval],description:`Filter promoters by approval status. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate`}),query:k$1().optional().meta({examples:[`Session Services`],description:`Optional search query. When provided, results are fetched from search with unified cursor pagination.`}),latitude:L$1().min(-90).max(90).optional().meta({examples:[b$1.Promoter.location.latitude],description:`Latitude used with longitude and radius to filter promoters by proximity when searching.`}),longitude:L$1().min(-180).max(180).optional().meta({examples:[b$1.Promoter.location.longitude],description:`Longitude used with latitude and radius to filter promoters by proximity when searching.`}),radius:L$1().optional().meta({examples:[50],description:`Search radius in kilometers applied when latitude and longitude are provided.`}),mine:Qs().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).`}),limit:(()=>Xs(kx,j$1().min(1).max(100).prefault(20)).meta({examples:[20],description:`Maximum number of promoters to return (1-100, defaults to 20)`}))().optional(),cursor:k$1().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`}),Mx=G$2(Rp,`promoters`),Nx=F$1({promoter:Rp}),Px=Rp.omit({createdAt:true,updatedAt:true,id:true,location:true}).partial().extend({key:k$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[b$1.Promoter.id,b$1.Promoter.slug]}),locationId:lc.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`}),image:V$1.nullable().optional().meta({description:`Promoter image. Pass null to clear; omit to leave unchanged.`,examples:[b$1.Promoter.image,null]}),tracking:F$1({fbId:k$1().optional(),gtmId:k$1().optional(),tikTokId:k$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.`});var Fx={summary:v$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(xd).output(Sd),revenue:v$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(Cd).output(wd),events:v$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(Td).output(Ed)};const Ix=v$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(wx.strict()).output(Nx),Lx=v$1.route({method:`POST`,path:`/promoters`,summary:`Create a new promoter`,description:`Create a new promoter brand within a team`,tags:[`Promoters`]}).input(Ex.strict()).output(Nx),Rx=v$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(Px.strict()).output(Nx);var zx={get:Ix,list:v$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(jx.strict()).output(Mx),create:Lx,update:Rx,remove:v$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(Dx.strict()).output(Nx),performance:Fx};const Bx=v$1.route({method:`GET`,path:`/events/{eventId}/sections/{id}`,summary:`Get section by ID`,tags:[`Sections`]}).input(qh.strict()).output(Xh),Vx=v$1.route({method:`POST`,path:`/events/{eventId}/sections`,summary:`Create a new section`,tags:[`Sections`]}).input(Gh.strict()).output(Xh),Hx=v$1.route({method:`PUT`,path:`/events/{eventId}/sections/{id}`,summary:`Update a section`,tags:[`Sections`]}).input(Zh.strict()).output(Xh);var Ux={get:Bx,list:v$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(Jh.strict()).output(Yh),create:Vx,update:Hx,remove:v$1.route({method:`DELETE`,path:`/events/{eventId}/sections/{id}`,summary:`Delete a section`,tags:[`Sections`]}).input(Kh.strict()).output(Xh)};const Wx=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),inviteId:k$1().meta({description:`Team invite ID to accept`}),token:k$1().meta({description:`Secure token used to accept the team invite. This token must match the one sent in the invitation email.`})}),Gx=F$1({provider:I$1([`STRIPE`,`AIRWALLEX`]).meta({description:`Payment gateway provider type`}),connectedAt:D$1().meta({description:`Timestamp when the payment gateway was connected to this team`}),connectedBy:k$1().meta({description:`User ID of the team member who connected the payment gateway`}),accountId:k$1().meta({description:`Connected account ID. For Stripe: acct_xxxxx. For Airwallex: business account open ID.`})}).meta({description:`Payment gateway configuration for direct payouts to the team's connected account`}),Kx=F$1({id:sc.readonly().meta({description:`Unique identifier for the team organization`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the team was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the team was last updated`}),name:k$1().min(3).max(30).meta({description:`Display name of the team organization. Must be between 3 and 30 characters`}),slug:k$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:k$1().email().optional().meta({description:`Support email address for customer inquiries. Used as reply-to address in order confirmation emails`}),publicBaseUrl:Lo().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:V$1.optional().meta({description:`Team image with dimensions and alt text for branding across the platform`}),metadata:Mc,approval:$s.meta({description:`Approval status of the team. PENDING: awaiting review, APPROVED: can create promoters/venues/events, REJECTED: cannot operate`}),deletedAt:D$1().optional().readonly().meta({description:`Timestamp in ISO 8601 format when the team was soft deleted. Only present for deleted teams.`}),tenantId:k$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`}),isAdmin:N$1().optional().meta({description:`Whether this team is the admin team for the tenant`}),gateway:Gx.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.`});Kx.extend({promoter:Rp.meta({description:`The primary promoter brand associated with this team`})}).meta({description:`Team organization with its primary promoter brand included for convenience`});const Jx=Kx.extend({member:F$1({id:xc.meta({description:`Current user's team member identifier for this team`}),permissions:al$1.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:N$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`}),Yx=F$1({key:k$1().min(1).meta({description:`Team key - either a unique ID (tem_xxx format) or URL-friendly slug`,examples:[b$1.Team.id,b$1.Team.slug]})}).meta({description:`Request schema for retrieving a team by either its unique ID or slug`}),Xx=Kx.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,deletedAt:true}).extend({slug:k$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:Kx.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`});F$1({id:sc.meta({description:`Team ID to delete`})});F$1({id:sc.meta({description:`Team ID to retrieve`})});const $x=F$1({id:Sc.readonly().meta({description:`Unique identifier for the team invitation`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was last updated`}),teamId:sc.meta({description:`Team this invitation is for`}),email:No().meta({description:`Email address of the invited user. Used for sending invitation.`}),permissions:P$1(il).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:P$1(k$1()).optional().meta({description:`Role IDs assigned on invite acceptance. Effective permissions are role + explicit nodes.`}),token:k$1().readonly().meta({description:`Secure token for invite acceptance. Required to accept the invitation.`}),expiresAt:j$1().int().positive().meta({description:`Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days.`}),invitedBy:uc.meta({description:`User ID who sent the invitation`}),tenantId:k$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.`}),eS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),inviteId:k$1().meta({description:`Team invite ID to cancel`})}),tS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),email:No().meta({description:`Email address of the user to invite`}),roleIds:P$1(k$1()).min(1).meta({description:`Role IDs to grant to the invited user.`})}),nS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),inviteId:Sc.meta({description:`Team invite ID to retrieve`})}),rS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),query:k$1().optional().meta({description:`Search query to filter invitations by email. Case-insensitive partial match`}),limit:j$1().int().min(1).max(100).default(20).optional().meta({description:`Maximum number of invitations to return per page`}),cursor:k$1().optional().meta({description:`Pagination cursor for fetching the next page`})}),iS=G$2($x,`invites`),aS=F$1({invite:$x}),oS=F$1({userId:uc.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:$s.optional().meta({description:`Filter teams by approval status. PENDING: awaiting review, APPROVED: can operate, REJECTED: cannot operate`}),query:k$1().optional().meta({description:`Optional search query for filtering teams by name or slug`}),limit:U$2(`teams`),cursor:k$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`}),sS=G$2(Jx,`teams`),cS=I$1([`STRIPE`,`AIRWALLEX`]),lS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),provider:cS.meta({description:`Payment processor to connect`,examples:[`STRIPE`,`AIRWALLEX`]})}),uS=F$1({authorizationUrl:k$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=...`]})}),dS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`})}),fS=F$1({team:Jx.extend({isAdmin:N$1().optional().meta({description:`Whether this team is the tenant admin team`})})}),pS=F$1({id:k$1().meta({description:`Role ID`}),teamId:k$1().meta({description:`Team ID this role belongs to`}),key:k$1().meta({description:`Role key`}),name:k$1().meta({description:`Role display name`}),description:k$1().optional().meta({description:`Role description`}),permissions:P$1(k$1()).meta({description:`Permission nodes granted by this role`}),scope:Es(`TEAM`).meta({description:`Role scope`}),isPreset:N$1().meta({description:`Whether this role is a system preset role`})});F$1({roles:P$1(pS)});F$1({key:k$1().meta({description:`Team identifier (ID or slug)`})});const gS=Kx.omit({tenantId:true,createdAt:true,updatedAt:true,id:true}).partial().extend({key:k$1().min(1).meta({description:`Team key - either a unique ID (tem_xxx format) or URL-friendly slug`,examples:[b$1.Team.id,b$1.Team.slug]}),supportEmail:k$1().email().nullable().optional().meta({description:`Support email for customer inquiries. Pass null to clear, omit to leave unchanged.`}),publicBaseUrl:Lo().nullable().optional().meta({description:`Public website base URL for team-owned event and order links. Pass null to clear, omit to leave unchanged.`}),image:V$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.`});var _S={summary:v$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(Dd).output(Od),revenue:v$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(kd).output(Ad),funnel:v$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(Fd).output(Id),traffic:v$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(Vd).output(Hd),events:v$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(Nd).output(Pd),admissions:v$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(zd).output(Bd),orders:v$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(Ld).output(Rd),tracking:v$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(Ud).output(Wd)},vS={get:v$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(Yx.strict()).output(fS),list:v$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(oS.strict()).output(sS),create:v$1.route({method:`POST`,path:`/teams`,summary:`Create a new team`,description:`Create a new team organization`,tags:[`Teams`]}).input(Xx.strict()).output(fS),update:v$1.route({method:`PATCH`,path:`/teams/{key}`,summary:`Update a team`,description:`Update an existing team by ID or slug`,tags:[`Teams`]}).input(gS.strict()).output(fS),remove:v$1.route({method:`DELETE`,path:`/teams/{key}`,summary:`Delete a team`,description:`Soft delete a team by ID or slug`,tags:[`Teams`]}).input(Yx.strict()).output(fS),performance:_S};const yS=F$1({key:k$1()}),bS=F$1({domain:k$1().nullable()}),xS=F$1({key:k$1(),domain:k$1()}),SS=F$1({key:k$1(),domain:k$1()}),CS=F$1({key:k$1()}),wS=F$1({domain:jm}),TS=F$1({domains:P$1(jm)}),ES=F$1({domain:k$1()});var DS={list:v$1.route({method:`GET`,path:`/teams/{key}/domains`,summary:`List team domains`,tags:[`Team Domains`]}).input(CS.strict()).output(TS),create:v$1.route({method:`POST`,path:`/teams/{key}/domains`,summary:`Create team custom domain`,tags:[`Team Domains`]}).input(xS.strict()).output(wS),get:v$1.route({method:`GET`,path:`/teams/{key}/domains/{domain}`,summary:`Get team domain status`,tags:[`Team Domains`]}).input(SS.strict()).output(wS),remove:v$1.route({method:`DELETE`,path:`/teams/{key}/domains/{domain}`,summary:`Remove team custom domain`,tags:[`Team Domains`]}).input(SS.strict()).output(ES),setPrimary:v$1.route({method:`POST`,path:`/teams/{key}/domains/{domain}/primary`,summary:`Set primary team domain`,tags:[`Team Domains`]}).input(SS.strict()).output(wS),canonical:v$1.route({method:`GET`,path:`/teams/{key}/domains/canonical`,summary:`Get canonical team domain`,tags:[`Team Domains`]}).input(yS.strict()).output(bS)};const OS=F$1({id:xc.readonly().meta({description:`Unique identifier for the team member`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the member was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the member was last updated`}),teamId:sc.meta({description:`Team this member belongs to`}),userId:uc.meta({description:`User ID of the team member`}),user:F$1({id:uc.meta({description:`Unique identifier of the user`}),email:No().meta({description:`Email address of the user`}),firstName:k$1().meta({description:`First name of the user`}),lastName:k$1().meta({description:`Last name of the user`}),imageUrl:k$1().optional().meta({description:`Profile image URL of the user`})}).meta({description:`Denormalized user details for quick access without additional queries.`}),permissions:P$1(il).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:P$1(k$1()).optional().meta({description:`Role IDs assigned to this team member. Effective permissions are derived from role nodes plus explicit permission nodes.`}),isOwner:N$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.`}),tenantId:k$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.`}),kS=F$1({member:OS});var AS={list:v$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(rS.strict()).output(iS),get:v$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(nS.strict()).output(aS),create:v$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(tS.strict()).output(aS),accept:v$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(Wx.strict()).output(kS),resend:v$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(nS.strict()).output(aS),cancel:v$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(eS.strict()).output(aS)},jS={connect:v$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(lS.strict()).output(uS),disconnect:v$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(dS.strict()).output(Kx)};const MS=OS.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,user:true,teamId:true,permissions:true}).extend({key:k$1().meta({description:`Team identifier (ID or slug)`}),roleIds:P$1(k$1()).min(1).meta({description:`Role IDs assigned to this team member.`})}).meta({description:`Schema for adding an existing user to a team. Requires userId of an existing user account.`}),NS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),userId:k$1().meta({description:`User ID of the team member to retrieve`})}),PS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),query:k$1().optional().meta({description:`Search query to filter members by name or email. Case-insensitive partial match`}),limit:U$2(`team members`),cursor:k$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`}),FS=G$2(OS,`members`),IS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),newOwnerId:k$1().meta({description:`Team member ID of the new owner. This member must already exist with ACTIVE status.`})}).meta({description:`Schema for transferring team ownership from the current owner to another active team member.`}),LS=F$1({previousOwner:OS.meta({description:"The previous owner (now a regular member with owner-equivalent access, typically via `*`)"}),newOwner:OS.meta({description:`The new owner (now has isOwner: true)`})}).meta({description:`Response payload for team ownership transfer operation`}),RS=F$1({id:k$1().meta({description:`Team member ID to update`}),roleIds:P$1(k$1()).min(1).meta({description:`Replace role assignments for this team member with the provided role IDs.`}),isOwner:N$1().optional().meta({description:`Whether this team member is an owner of the team`})}).meta({description:`Schema for updating team member roles. Cannot update teamId, userId, or owner status.`});const BS=v$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(NS.strict()).output(kS),VS=v$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(PS.strict()).output(FS),HS=v$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(MS.strict()).output(kS),US=v$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(RS.extend({key:k$1(),userId:k$1()}).strict()).output(kS),WS=v$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(NS.strict()).output(kS),GS=v$1.route({method:`POST`,path:`/teams/{key}/transfer`,summary:`Transfer team ownership`,description:"Transfer team ownership from the current owner to another active member. Team key can be ID or slug. Only the current owner can perform this action. Previous owner retains owner-equivalent access (typically via `*`) but loses isOwner status.",tags:[`Team Members`]}).input(IS.strict()).output(LS);var KS={get:BS,list:VS,create:HS,update:US,remove:WS,transfer:GS};const qS=I$1([`ALL`,`COUNTRY`,`STATE`,`CITY`,`VENUE`]),JS=F$1({id:k$1(),name:k$1(),slug:k$1(),kind:qS,parentId:k$1().optional(),latitude:j$1().optional(),longitude:j$1().optional(),radius:j$1().optional(),enabled:N$1(),order:j$1(),zoom:j$1().optional(),heroImage:k$1().optional(),description:k$1().optional()}),YS=F$1({tenant:F$1({id:k$1(),name:k$1(),slug:k$1(),adminTeamId:k$1(),legacyTenantsToTeams:Cs(k$1(),k$1()).optional(),features:Cs(k$1(),N$1()).optional(),defaultCurrency:k$1(),logo:F$1({email:F$1({src:k$1(),width:j$1(),height:j$1()}),website:F$1({src:k$1(),width:j$1(),height:j$1()})}),baseUrl:F$1({dev:k$1().optional(),production:k$1().optional()}),publicBaseUrl:F$1({dev:k$1().optional(),sandbox:k$1().optional(),production:k$1().optional()}).optional()}),regions:P$1(JS)}),XS=F$1({regions:P$1(JS)}),ZS=F$1({teamId:k$1().optional()}),QS=F$1({counts:F$1({teams:N$1(),promoters:N$1(),venues:N$1(),events:N$1(),payouts:N$1()})}),$S=v$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(YS),eC=v$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(XS);var tC={approvals:v$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(ZS).output(QS),config:$S,regions:eC};const nC=F$1({id:k$1().meta({examples:[b$1.Admission.id],description:`Admission ID reference`}),name:k$1().meta({examples:[`VIP Access`,`General Admission`,`Early Bird`],description:`Admission type name at time of purchase`}),price:F$1({base:j$1().meta({description:`Base price in smallest currency unit (cents)`}),booking:j$1().meta({description:`Booking fee in smallest currency unit (cents)`}),currency:k$1().meta({examples:[`USD`,`EUR`,`GBP`],description:`ISO 4217 currency code`})}).meta({description:`Price snapshot at time of purchase`}),entryStartsAt:H$2.meta({description:`Wall clock time when ticket holder can enter (no timezone, displays same everywhere)`}),entryEndsAt:H$2.meta({description:`Wall clock time when entry period ends (no timezone, displays same everywhere)`})}).meta({description:`Admission details for this ticket`}),rC=F$1({firstName:k$1().trim().min(1).meta({examples:[b$1.Customer.firstName],description:`First name of the ticket attendee`}),lastName:k$1().trim().min(1).meta({examples:[b$1.Customer.lastName],description:`Last name of the ticket attendee`}),email:No().meta({examples:[b$1.Customer.email],description:`Email address of the ticket attendee`}),phone:k$1().meta({examples:[b$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.`}),iC=F$1({id:k$1().meta({examples:[b$1.Event.id],description:`Event ID reference`}),name:k$1().meta({examples:[b$1.Event.name],description:`The title of the event shown to attendees`}),slug:k$1().meta({examples:[b$1.Event.slug],description:`URL-friendly identifier for the event`}),location:Ip.meta({description:`Structured location details for the event`}),entryStartsAt:H$2.meta({examples:[b$1.Event.entryStartsAt],description:`Wall clock time when event entry begins (no timezone, displays same everywhere)`}),entryEndsAt:H$2.meta({examples:[b$1.Event.entryEndsAt],description:`Wall clock time when event entry ends (no timezone, displays same everywhere)`}),images:F$1({mobile:V$1.meta({description:`Mobile-optimized image for the event`}),desktop:V$1.meta({description:`Desktop-optimized image for the event`})})}).meta({description:`Event details for this ticket`}),aC=F$1({id:k$1().meta({examples:[b$1.User.id],description:`Unique identifier of the user who performed the ticket scan`}),firstName:k$1().meta({examples:[b$1.User.firstName],description:`First name of the user who performed the scan`}),lastName:k$1().meta({examples:[b$1.User.lastName],description:`Last name of the user who performed the scan`}),email:No().meta({examples:[b$1.User.email],description:`Email address of the user who performed the scan`})}).meta({description:`Information about the user who scanned a ticket`}),oC=I$1([`CHECK_IN`,`CHECK_OUT`]),cC=F$1({id:k$1().meta({examples:[b$1.TicketScan.id],description:`Unique identifier of the ticket scan record`}),scannedAt:D$1().readonly().meta({examples:[b$1.TicketScan.scannedAt],description:`Timestamp when the ticket was scanned in ISO 8601 format`}),scannedById:k$1().meta({examples:[b$1.TicketScan.scannedById],description:`Unique identifier of the user who performed the scan`}),scannedBy:aC.meta({description:`Detailed information about the user who performed the scan`}),deviceId:k$1().meta({examples:[b$1.TicketScan.deviceId],description:`Unique identifier of the device used for scanning`}),kind:oC.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`}),lC=F$1({id:k$1().meta({examples:[b$1.Section.id],description:`Section ID reference`}),name:k$1().meta({examples:[`Floor Section A`,`Balcony Left`,`VIP Lounge`],description:`Section name at time of purchase`}),location:F$1({name:k$1().meta({description:`Venue or location name`}),address:k$1().optional().meta({description:`Street address`}),city:k$1().optional().meta({description:`City name`}),state:k$1().optional().meta({description:`State or province`}),postcode:k$1().optional().meta({description:`Postal/ZIP code`}),country:k$1().optional().meta({description:`ISO country code`}),latitude:j$1().optional().meta({description:`Geographic latitude coordinate`}),longitude:j$1().optional().meta({description:`Geographic longitude coordinate`}),timeZone:k$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`}),uC=I$1([`ACTIVE`,`REDEEMED`,`CANCELLED`]),$$2=F$1({id:k$1().readonly().meta({examples:[b$1.Ticket.id],description:`Unique identifier for the ticket`}),createdAt:D$1().readonly().meta({examples:[b$1.Ticket.createdAt],description:`Timestamp when the ticket was created in ISO 8601 format`}),updatedAt:D$1().readonly().meta({examples:[b$1.Ticket.updatedAt],description:`Timestamp when the ticket was last updated in ISO 8601 format`}),scans:P$1(cC).meta({description:`Array of all scan records for this ticket (check-ins and check-outs)`}),status:uC.meta({examples:[`ACTIVE`],description:`Current status of the ticket: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)`}),attendee:rC.meta({description:`Attendee information for this ticket - editable by tenant admins`}),customerId:gc.meta({examples:[b$1.Ticket.customerId],description:`Unique identifier of the customer who purchased this ticket (read-only)`}),eventId:B$1.meta({examples:[b$1.Ticket.eventId],description:`Unique identifier of the event this ticket grants access to`}),event:iC.meta({description:`Event details for this ticket`}),admissionId:_c.meta({examples:[b$1.Ticket.admissionId],description:`Unique identifier of the admission type/tier this ticket represents`}),admission:nC.meta({description:`Admission details for this ticket`}),section:lC.optional().meta({description:`Section details for this ticket (if assigned to a section)`}),orderId:dc.meta({examples:[b$1.Ticket.orderId],description:`Unique identifier of the order this ticket was purchased in`}),orderItemId:k$1().meta({examples:[b$1.Ticket.orderItemId],description:`Unique identifier of the specific order item this ticket represents (optional for legacy tickets)`}).optional(),teamId:sc.meta({examples:[b$1.Ticket.teamId],description:`Identifier of the team that owns this ticket`}),promoterId:pc.meta({examples:[b$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.`}),fC=F$1({kind:I$1([`CHECK_IN`,`CHECK_OUT`]).meta({description:`The most recent attendee scan action.`}),scannedAt:D$1().meta({description:`Timestamp for the most recent attendee scan.`})}),pC=I$1(`#ABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``)).meta({description:`Alpha navigation bucket key for attendee roster jumps.`}),mC=F$1({key:pC,count:L$1().int().min(0).meta({description:`Number of roster rows currently available in this bucket.`}),anchor:k$1().meta({description:`Server-issued bookmark for the first roster row in this bucket under the active filters.`})}),hC=nC.pick({id:true,name:true,entryEndsAt:true}),gC=lC.pick({id:true,name:true}),_C=F$1({id:fc.meta({examples:[b$1.Ticket.id],description:`Ticket identifier for this attendee roster row.`}),orderId:dc.meta({examples:[b$1.Ticket.orderId],description:`Order identifier used to navigate to order details.`}),status:uC.meta({description:`Current ticket status for the attendee row.`}),attendee:rC.meta({description:`Editable attendee identity fields for this ticket.`}),admission:hC.meta({description:`Admission snapshot needed for roster labels and expiry state.`}),section:gC.optional().meta({description:`Optional section label shown in the roster row.`}),lastScan:fC.optional().meta({description:`Most recent scan event for compact roster activity text.`}),lastCheckInAt:D$1().optional().meta({description:`Timestamp for the most recent check-in scan, used for checked-in labels.`})}),vC=F$1({eventId:B$1.meta({examples:[b$1.Event.id],description:`Event identifier for the attendee alpha index.`}),admissionIds:P$1(_c).optional().meta({examples:[[b$1.Admission.id]],description:`Optional admission filters used when computing available attendee buckets.`}),sectionIds:P$1(vc).optional().meta({examples:[[b$1.Section.id]],description:`Optional section filters used when computing available attendee buckets.`})}),yC=F$1({buckets:P$1(mC).meta({description:`Available attendee alpha buckets for the active filter set.`})}),bC=L$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).`}),xC=F$1({eventId:B$1.meta({examples:[b$1.Event.id],description:`Event identifier for the attendee roster.`}),admissionIds:P$1(_c).optional().meta({examples:[[b$1.Admission.id]],description:`Optional admission filters. When provided, only matching ticket admissions are included.`}),sectionIds:P$1(vc).optional().meta({examples:[[b$1.Section.id]],description:`Optional section filters. When provided, only matching ticket sections are included.`}),query:k$1().optional().meta({examples:[`John`,`john@example.com`,`+61400000000`],description:`Optional attendee search query. Matches attendee name, email, and phone.`}),cursor:Nc.optional(),before:Nc.optional().meta({description:`Cursor for loading roster rows before the current window. Mutually exclusive with cursor and anchor.`}),anchor:k$1().optional().meta({description:`Server-issued bookmark used to jump to a roster bucket. Mutually exclusive with cursor and before.`}),limit:bC.optional()}),SC=G$2(_C,`tickets`),CC=$$2.pick({status:true,admissionId:true,orderItemId:true}).extend({orderId:k$1().meta({examples:[b$1.Order.id],description:`The order this ticket belongs to`}),customerId:k$1().meta({examples:[b$1.Customer.id],description:`The customer who purchased this ticket`}),attendee:rC.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`}),wC=$$2.pick({id:true}).extend({signature:wl.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`}),TC=F$1({promoterId:k$1().optional().meta({examples:[b$1.Promoter.id],description:`Filter tickets by promoter/organizer unique identifier (optional)`}),eventId:k$1().optional().meta({examples:[b$1.Event.id],description:`Filter tickets by event unique identifier (optional)`}),customerId:k$1().optional().meta({examples:[b$1.Customer.id],description:`Filter tickets by customer unique identifier (optional)`}),orderId:k$1().optional().meta({examples:[b$1.Order.id],description:`Filter tickets by order unique identifier (optional)`}),status:uC.optional().meta({examples:[`ACTIVE`],description:`Filter tickets by status: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)`}),orderSignature:wl.optional().meta({description:`Order signature used to access tickets for a specific order without permissions (16 characters, base64url encoded)`}),query:k$1().optional().meta({examples:[`John Doe`],description:`Optional search query to filter tickets by customer details. When provided, search-backed pagination is used.`}),limit:U$2(`tickets`).optional(),cursor:k$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`}),EC=G$2($$2,`tickets`),DC=F$1({ticket:$$2}),OC=$$2.pick({id:true,eventId:true}).extend({key:$$2.shape.id.meta({description:`Transition key. Supports canonical ticket IDs (tkt_*), order IDs (ord_*), and legacy Neon ticket IDs.`}),deviceId:$$2.shape.scans.element.shape.deviceId.optional().meta({description:`Unique identifier of the scanning device (optional).`}),eventId:$$2.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:N$1().optional().meta({description:`Confirms an order-level check-in when some tickets are already redeemed and some remain active.`})}).omit({id:true}).meta({description:`Schema for check-in/check-out transitions addressed by key, where key may resolve to a ticket, order, or legacy ticket identifier.`}),kC=I$1([`ticket`,`order`,`legacy`]),AC=I$1([`NOOP_TRANSITION`]),jC=I$1([`PARTIAL_ORDER_CONFIRMATION_REQUIRED`]),MC=I$1([`EVENT_MISMATCH`]),NC=F$1({id:$$2.shape.orderId,checkedInCount:j$1().int().nonnegative().optional(),items:P$1(F$1({quantity:j$1().int().positive()}))}),PC=iC.pick({id:true,name:true,slug:true,entryStartsAt:true}).extend({teamId:$$2.shape.teamId}),FC=F$1({reason:AC,kind:I$1([`CHECK_IN`,`CHECK_OUT`]),targetType:kC,order:NC.optional(),ticket:$$2.optional()}),IC=F$1({reason:MC,kind:I$1([`CHECK_IN`,`CHECK_OUT`]),targetType:kC,requestedEventId:$$2.shape.eventId.optional(),event:PC,order:NC.optional(),ticket:$$2.optional()}),LC=F$1({reason:jC,kind:Es(`CHECK_IN`),targetType:Es(`order`),order:NC,ticket:$$2.optional()}),RC=_s([FC,IC,LC]),zC=F$1({tickets:P$1($$2).meta({description:`Transition result tickets. Single-item array for ticket/legacy targets and full order tickets for order targets.`}),targetType:kC.meta({description:`Resolved target scope from the provided key.`}),order:NC.optional()}),BC=I$1([`ACTIVE`,`CANCELLED`]).describe(`Status updates allowed via PATCH: ACTIVE (reactivate), CANCELLED (void). REDEEMED is set via scan endpoint.`),VC=F$1({id:k$1().meta({examples:[b$1.Ticket.id],description:`Unique identifier of the ticket to update`}),status:BC.optional().meta({description:`Update ticket status: CANCELLED to void, ACTIVE to reactivate`}),attendee:rC.partial().nullable().optional().meta({description:`Attendee info. Pass object to set/update, null to clear, or omit to leave unchanged.`}),admissionId:k$1().optional().meta({examples:[b$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.`}),HC=v$1.route({method:`GET`,path:`/tickets/{id}`,summary:`Get ticket by ID`,tags:[`Tickets`]}).input(wC.strict()).output(DC),UC=v$1.route({method:`POST`,path:`/tickets`,summary:`Create a new ticket`,tags:[`Tickets`]}).input(CC.strict()).output(DC),WC=v$1.route({method:`PUT`,path:`/tickets/{id}`,summary:`Update a ticket`,tags:[`Tickets`]}).input(VC.strict()).output(DC),GC=v$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(TC.strict()).output(EC),KC=v$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(xC.strict()).output(SC),qC=v$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(vC.strict()).output(yC),JC=v$1.route({method:`PUT`,path:`/tickets/{key}/check-in`,summary:`Check in tickets by key`,tags:[`Tickets`]}).input(OC.strict()).errors({UNPROCESSABLE_ENTITY:{data:RC}}).output(zC),YC=v$1.route({method:`PUT`,path:`/tickets/{key}/check-out`,summary:`Check out tickets by key`,tags:[`Tickets`]}).input(OC.strict()).errors({UNPROCESSABLE_ENTITY:{data:RC}}).output(zC);var XC={get:HC,list:GC,attendees:{list:KC,index:qC},create:UC,update:WC,checkInByKey:JC,checkOutByKey:YC};const ZC={id:b$1.User.id,createdAt:b$1.User.createdAt,updatedAt:b$1.User.updatedAt,email:b$1.User.email,firstName:b$1.User.firstName,lastName:b$1.User.lastName,imageUrl:`https://assets.session.services/examples/avatar.jpg`,tenantId:b$1.User.tenantId},QC=F$1({id:k$1().readonly().meta({description:`Unique identifier for the user`,examples:[b$1.User.id]}),createdAt:D$1().readonly().meta({description:`ISO 8601 timestamp when the user account was created`,examples:[b$1.User.createdAt]}),updatedAt:D$1().readonly().meta({description:`ISO 8601 timestamp when the user account was last updated`,examples:[b$1.User.updatedAt]}),email:No().meta({description:`User's email address, used for authentication and communication`,examples:[b$1.User.email]}),firstName:k$1().min(1).meta({description:`User's first name`,examples:[b$1.User.firstName]}),lastName:k$1().min(1).meta({description:`User's last name`,examples:[b$1.User.lastName]}),imageUrl:Lo().optional().meta({description:`Optional URL to the user's profile image or avatar`,examples:[`https://assets.session.services/examples/avatar.jpg`]}),metadata:Cs(k$1(),jc).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:[ZC]}),$C=OS.meta({ref:`MeTeamMember`,description:`Team membership for the current user with denormalized user details and role-expanded team permissions.`}),ew=F$1({access:k$1().meta({description:`JWT access token with updated user data`}),refresh:k$1().meta({description:`Refresh token for obtaining new access tokens`})}).meta({ref:`Tokens`,description:`Authentication tokens for client session management`}),tw=F$1({user:QC.meta({description:`The updated user profile`}),tokens:ew.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.`}),nw=F$1({deleted:Es(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.`}),rw=F$1({user:QC.nullable().meta({description:`Current authenticated user profile, null if not authenticated`}),isAdmin:N$1().meta({description:`Whether the current user has admin privileges for the tenant`}),members:P$1($C).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`}]}]}),iw=v$1.route({method:`GET`,path:`/users/me`,summary:`Get the current user and their team memberships`,tags:[`Users`]}).output(rw),aw=F$1({firstName:k$1().min(1).optional(),lastName:k$1().min(1).optional(),imageUrl:Lo().optional(),metadata:Cs(k$1(),jc).optional(),refreshToken:k$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`}),ow=v$1.route({method:`PATCH`,path:`/users/me`,summary:`Update the current user's profile`,tags:[`Users`]}).input(aw).output(tw);var sw={me:iw,remove:v$1.route({method:`DELETE`,path:`/users/me`,summary:`Delete the current user's account`,tags:[`Users`]}).output(nw),update:ow};const cw=F$1({id:k$1().readonly().meta({description:`Unique identifier for the venue`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the venue was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the venue was last updated`}),teamId:k$1().meta({description:`Team that manages this venue`}),locationId:lc.meta({examples:[`loc_01h2xk3j9k8m2n5p7q9r1s3t4v`],description:`Location identifier for this venue`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID when this venue is linked to a Google Places location`}),approval:$s.meta({examples:[`APPROVED`],description:`Approval status of the venue`}),name:k$1().min(3).max(100).meta({description:`Display name of the venue. Must be between 3 and 100 characters`}),slug:k$1().min(3).meta({description:`URL-friendly slug for the venue. Must be unique within tenant`}),description:k$1().max(500).optional().meta({description:`Short description of the venue for listings and discovery`}),image:V$1.optional().meta({description:`Venue image`}),contact:F$1({email:No().optional().meta({description:`Public contact email for venue inquiries`}),phone:k$1().optional().meta({description:`Public contact phone number`}),website:Lo().optional().meta({description:`Venue website URL`}),instagram:k$1().optional().meta({description:`Instagram profile URL`}),facebook:k$1().optional().meta({description:`Facebook page URL`}),twitter:k$1().optional().meta({description:`Twitter/X profile URL`}),tiktok:k$1().optional().meta({description:`TikTok profile URL`}),youtube:k$1().optional().meta({description:`YouTube channel URL`})}).optional().meta({description:`Public contact information and social media links`}),location:Ip.omit({venueId:true}).meta({description:`Physical location details including address, coordinates, and timezone`}),geohash:k$1().meta({description:`Geohash encoding of the venue's location for efficient spatial queries`}),capacity:j$1().int().min(1).optional().meta({description:`Maximum capacity of the venue (number of attendees)`}),metadata:Mc,deletedAt:D$1().readonly().optional().meta({description:`Timestamp in ISO 8601 format when the venue was soft-deleted. Null if not deleted`}),tenantId:k$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.`}),lw=cw.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,geohash:true,deletedAt:true,location:true,googlePlaceId:true,approval:true}).extend({slug:k$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`}),uw=F$1({key:k$1().min(1).meta({description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`,examples:[b$1.Venue.id,b$1.Venue.slug]})}),dw=F$1({key:k$1().meta({examples:[b$1.Venue.id,b$1.Venue.slug],description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`})}),fw=F$1({teamId:k$1().optional().meta({description:`Filter venues by owner team ID`}),approval:$s.optional().meta({description:`Filter venues by approval status. PENDING: awaiting review, APPROVED: can be used for events, REJECTED: cannot be used`}),query:k$1().optional().meta({description:`Optional search query for filtering venues by name or slug`}),latitude:L$1().min(-90).max(90).optional().meta({description:`Latitude for location-based search. Must be used with longitude`}),longitude:L$1().min(-180).max(180).optional().meta({description:`Longitude for location-based search. Must be used with latitude`}),radius:L$1().min(1).max(2e4).optional().meta({description:`Search radius in kilometers (1-20000). Requires latitude and longitude`}),limit:U$2(`venues`),cursor:k$1().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`}),pw=G$2(cw,`venues`).meta({description:`Paginated response containing venues with cursor for next page`}),mw=F$1({venue:cw}),hw=cw.omit({id:true,tenantId:true,teamId:true,createdAt:true,updatedAt:true,deletedAt:true,geohash:true}).partial().extend({key:k$1().meta({examples:[b$1.Venue.id,b$1.Venue.slug],description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`}),description:k$1().max(500).nullable().optional().meta({description:`Short description of the venue. Pass null to clear, omit to leave unchanged.`}),image:V$1.nullable().optional().meta({description:`Venue image. Pass null to clear, omit to leave unchanged.`}),capacity:j$1().int().min(1).nullable().optional().meta({description:`Maximum capacity. Pass null to clear, omit to leave unchanged.`}),contact:F$1({email:No().optional(),phone:k$1().optional(),website:Lo().optional(),instagram:k$1().optional(),facebook:k$1().optional(),twitter:k$1().optional(),tiktok:k$1().optional(),youtube:k$1().optional()}).nullable().optional().meta({description:`Contact information. Pass null to clear all contact fields, omit to leave unchanged.`}),googlePlaceId:k$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.`}),gw={analytics:Jf,beneficiary:Zf,section:Ux,event:gm,eventCollaborator:Em,admission:qf,order:Hy,ticket:XC,internal:Bm,location:Km,coupon:Dp,payout:Ib,teams:Cx,permissionScope:Jb,promoter:zx,team:vS,teamDomain:DS,teamInvite:AS,teamPayment:jS,teamMember:KS,tenant:tC,venue:{get:v$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(dw.strict()).output(mw),list:v$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(fw.strict()).output(pw),create:v$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(lw.strict()).output(mw),update:v$1.route({method:`PATCH`,path:`/venues/{key}`,summary:`Update a venue`,description:`Update an existing venue. Cannot change venue ownership (teamId)`,tags:[`Venues`]}).input(hw.strict()).output(mw),remove:v$1.route({method:`DELETE`,path:`/venues/{key}`,summary:`Delete a venue`,description:`Soft delete a venue`,tags:[`Venues`]}).input(uw.strict()).output(mw),linkLocation:v$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(dw.extend({locationKey:k$1().meta({description:`Location ID (loc_xxx) or Google Place ID to link to this venue`,examples:[`loc_01jps5cgsm7qxvh6watsons0eq`,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}).strict()).output(mw),unlinkLocation:v$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(dw.extend({locationKey:k$1().meta({description:`Location ID (loc_xxx) or Google Place ID to unlink from this venue`,examples:[`loc_01jps5cgsm7qxvh6watsons0eq`,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}).strict()).output(mw)},user:sw},_w=I$1([`ORDER`]).meta({description:`Aggregate type this notification belongs to`}),vw=I$1([`ORDER_CONFIRMATION`,`ORDER_REMINDER`,`ORDER_CANCELLATION`,`ORDER_TIME_CHANGE`,`ORDER_VENUE_CHANGE`,`ORDER_TIME_AND_VENUE_CHANGE`]).meta({description:`Notification kind`}),yw=I$1([`SMS`,`EMAIL`]).meta({description:`Delivery channel`}),bw=I$1([`PENDING`,`PROCESSING`,`SENT`,`DELIVERED`,`FAILED`,`CANCELLED`]).meta({description:`Current notification status`});F$1({id:Ec.meta({examples:[b$1.Notification.id],description:`Unique notification identifier`}),createdAt:D$1().readonly().meta({examples:[b$1.Notification.createdAt],description:`Timestamp when notification was created`}),updatedAt:D$1().readonly().meta({examples:[b$1.Notification.updatedAt],description:`Timestamp when notification was last updated`}),aggregateType:_w.meta({examples:[b$1.Notification.aggregateType]}),aggregateId:dc.meta({examples:[b$1.Notification.aggregateId],description:`Aggregate identifier (order ID for ORDER notifications)`}),eventId:B$1.optional().meta({examples:[b$1.Notification.eventId],description:`Associated event identifier when applicable`}),kind:vw.meta({examples:[b$1.Notification.kind]}),channel:yw.meta({examples:[b$1.Notification.channel]}),status:bw.meta({examples:[b$1.Notification.status]}),providerMessageId:k$1().optional().meta({examples:[b$1.Notification.providerMessageId],description:`Provider message identifier`}),sentAt:D$1().optional().meta({examples:[b$1.Notification.sentAt],description:`Timestamp when provider accepted send request`}),deliveredAt:D$1().optional().meta({examples:[b$1.Notification.deliveredAt],description:`Timestamp when provider confirmed delivery`}),failedAt:D$1().optional().meta({examples:[b$1.Notification.failedAt],description:`Timestamp when notification failed`}),failureCode:k$1().optional().meta({examples:[b$1.Notification.failureCode],description:`Failure code when notification is FAILED`}),failureReason:k$1().optional().meta({examples:[b$1.Notification.failureReason],description:`Failure reason when notification is FAILED`})}).meta({description:`Notification delivery record`});F$1({id:xc.meta({description:`Team member ID to delete`})});
49
+ Calculated as: base + booking + shipping`}),base:M$1().min(0).meta({examples:[b$1.Payout.price.base],description:`Total value of tickets.`}),booking:M$1().min(0).meta({examples:[b$1.Payout.price.booking],description:`Total value of booking fees (non-refundable).`}),shipping:M$1().min(0).meta({examples:[b$1.Payout.price.shipping],description:`Total value of shipping.`}),sms:M$1().min(0).default(0).meta({examples:[b$1.Payout.price.sms],description:`Total SMS delivery fees collected in cents (owed to Session Services, not the event organiser).`}),refunded:M$1().max(0).meta({examples:[b$1.Payout.price.refunded],description:`Total value of refunds (negative value).`}),discount:M$1().max(0).meta({examples:[b$1.Payout.price.discount],description:`Total value of discounts (negative value).`}),gateway:M$1().max(0).meta({examples:[b$1.Payout.price.gateway],description:`Total value of absorbed payment gateway fees (negative value).`}),dispute:M$1().max(0).meta({examples:[b$1.Payout.price.dispute],description:`Total value of non-absorbed payment gateway fees (negative value).`}),deductions:M$1().max(0).meta({examples:[b$1.Payout.price.deductions],description:`Total value of deductions for when money is owed (negative value).`}),currency:z$2.meta({examples:[b$1.Payout.price.currency],description:`Currency code in ISO 4217 format.`})}),rb=I$1([`CREATED`,`APPROVED`,`REJECTED`,`PROCESSING`,`PAID`,`FAILED`,`CANCELLED`,`NOTE`]),ib=Lh(rb,{createdAtExamples:[b$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`]}),ab=F$1({id:k$1().meta({examples:[b$1.PayoutTransfer.id],description:`Unique identifier for this transfer record.`}),createdAt:D$1().meta({examples:[b$1.PayoutTransfer.createdAt],description:`Timestamp in ISO 8601 format when this transfer was created.`}),kind:I$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:M$1().min(0).meta({examples:[b$1.PayoutTransfer.amount],description:`Transfer amount in cents. Positive values represent money being transferred to the beneficiary.`}),currency:z$2.meta({examples:[b$1.PayoutTransfer.currency],description:`Currency code in ISO 4217 format for the transfer amount.`}),fee:M$1().min(0).meta({examples:[b$1.PayoutTransfer.fee],description:`Gateway processing fee for this transfer in cents. This fee is deducted from the transfer amount.`}),feeCurrency:z$2.meta({examples:[b$1.PayoutTransfer.feeCurrency],description:`Currency code in ISO 4217 format for the gateway fee.`}),reference:k$1().meta({examples:[b$1.PayoutTransfer.reference],description:`External reference identifier for tracking this transfer with the payment gateway.`}),gateway:I$1([`AIRWALLEX`,`STRIPE`]).meta({examples:[`AIRWALLEX`],description:`Payment gateway used to process this transfer.`}),gatewayId:k$1().meta({examples:[b$1.PayoutTransfer.gatewayId],description:`Unique identifier assigned by the payment gateway for this transfer.`}),beneficiary:k$1().meta({examples:[b$1.PayoutTransfer.beneficiary],description:`Human-readable name of the beneficiary receiving this transfer.`}),beneficiaryId:k$1().meta({examples:[b$1.PayoutTransfer.beneficiaryId],description:`Unique identifier of the beneficiary account receiving this transfer.`}),status:k$1().optional().meta({examples:[`SCHEDULED`],description:`Transfer status from the payment gateway (e.g. SCHEDULED, IN_PROGRESS, COMPLETED).`}),settlementAmount:M$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:z$2.optional().meta({examples:[`USD`],description:`Currency code in ISO 4217 format for the settlement amount. Present only for cross-currency transfers.`}),deductionId:k$1().optional().meta({description:`Optional reference to a deduction record when this transfer represents money being held back from a previous negative payout.`}),deductionPayoutId:k$1().optional().meta({description:`Optional reference to the payout that originated this transfer when it represents an outstanding balance being carried forward.`})}),ob=I$1([`UPCOMING`,`FAILED`,`PROCESSING`,`PAID`,`CANCELLED`]),cb=I$1([`AIRWALLEX`,`STRIPE`,`MANUAL`]),ub=I$1([`DAILY`,`WEEKLY`,`AFTER_EVENT`,`ON_DEMAND`]),fb=F$1({id:k$1().readonly().meta({examples:[b$1.Payout.id],description:`A unique identifier for this payout.`}),createdAt:D$1().readonly().meta({examples:[b$1.Payout.createdAt],description:`Timestamp in ISO 8601 format when this payout was created.`}),updatedAt:D$1().readonly().meta({examples:[b$1.Payout.updatedAt],description:`Timestamp in ISO 8601 format when this payout was last updated.`}),paidAt:D$1().optional().meta({examples:[b$1.Payout.paidAt],description:`Timestamp in ISO 8601 format when this payout was completed.`}),dueAt:D$1().optional().meta({examples:[b$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:ob.meta({examples:[`PAID`],description:`Current payment status of this payout.`}),method:cb.meta({examples:[`MANUAL`],description:`The payout channel used for disbursing funds.`}),approval:R$1.meta({examples:[`APPROVED`],description:`Approval status for this payout.`}),frequency:ub.default(`AFTER_EVENT`).meta({examples:[`AFTER_EVENT`],description:`Schedule on which this payout is generated.`}),structure:k$1().meta({examples:[b$1.Payout.structure],description:`Data structure defining how funds are allocated in this payout.`}),transfers:P$1(ab).meta({description:`List of individual transfer records included in this payout.`}),deductions:P$1(eb).meta({description:`List of deductions applied before calculating the payout total.`}),price:nb.meta({description:`Summary of amounts for transfers and deductions in this payout.`}),event:tb.meta({description:`Information about the event associated with this payout.`}),timeline:P$1(ib).optional().meta({description:`Chronological list of status changes and notes for this payout.`}),eventId:k$1().meta({examples:[b$1.Payout.eventId],description:`Identifier of the event for which this payout was generated.`}),teamId:k$1().meta({description:`Team receiving this payout. BREAKING CHANGE: Replaced promoterId/promoterSlug.`})}).meta({description:`payout`});F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to approve for processing.`})});F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to reject.`}),reason:k$1().optional().meta({examples:[`Insufficient funds in account`],description:`Optional reason for rejecting the payout. This will be recorded for audit purposes.`})});F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to process and initiate transfers.`})});F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to retry transfer processing for.`})});const _b=F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to add a note to`}),note:k$1().trim().min(1).max(1e3).meta({examples:[`Transfer confirmed via bank statement`],description:`Note text content (1-1000 characters)`})}),vb=F$1({name:k$1(),gateway:I$1([`AIRWALLEX`,`STRIPE`,`FREE`]),message:k$1(),eventIds:P$1(k$1()).optional(),venues:P$1(k$1()).optional(),tenants:P$1(k$1()).optional(),teams:P$1(k$1()).optional(),ticketBeneficiaryTeamId:k$1().optional(),min:j$1().optional(),max:j$1().optional(),percent:j$1().optional(),split:F$1({tenant:j$1(),team:j$1(),venue:j$1(),sessions:j$1()})}),yb=F$1({tenant:j$1().meta({examples:[5e4],description:`Amount allocated to the tenant (platform) in cents. This represents the platform's share of the revenue.`}),venue:j$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:j$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:j$1().meta({examples:[3e3],description:`Amount allocated to Sessions platform commission in cents. This represents the platform's service fees.`}),tickets:j$1().meta({examples:[2e3],description:`Amount allocated to ticketing fees in cents. This represents fees charged for ticket processing and management.`})});F$1({payout:fb.meta({description:`Complete payout record containing all financial details and metadata for calculating beneficiary allocations.`}),feeStructure:vb.meta({description:`Fee structure configuration that defines how revenue is split between different parties (promoter, venue, platform, etc.).`}),split:yb.meta({description:`Calculated split amounts showing how the payout total is divided among the different beneficiaries in cents.`})});const xb=F$1({orders:j$1().meta({examples:[150],description:`Total number of orders included in this payout breakdown.`}),price:Dh.meta({description:`Aggregated price information for all orders included in this payout, showing total revenue, fees, and deductions.`}),split:yb.meta({description:`How the total payout amount is split between different beneficiaries (tenant, venue, promoter, etc.) in cents.`}),structure:k$1().meta({examples:[`DEFAULT`],description:`Fee structure identifier that was used to calculate the payout split and allocations.`})}),Sb=F$1({total:xb.meta({description:`Summary totals for all orders included in this payout breakdown, including aggregated financial calculations.`}),orders:P$1(F$1({order:Hh.meta({description:`Complete order information including customer details, items, and payment status.`}),price:Dh.meta({description:`Settled price information for this specific order, showing final amounts after refunds and adjustments.`}),split:yb.meta({description:`How this individual order's revenue is split between different beneficiaries in cents.`}),structure:k$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.`})});fb.pick({id:true,eventId:true}).extend({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout for which to retrieve the detailed breakdown.`}),eventId:k$1().meta({examples:[b$1.Event.id],description:`Unique identifier of the event associated with the payout breakdown.`})});fb.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:k$1().meta({examples:[b$1.Event.id],description:`Unique identifier of the event for which the payout is being created`}),teamId:k$1().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`Unique identifier of the team who will receive the payout`}),method:I$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:I$1([`DAILY`,`WEEKLY`,`AFTER_EVENT`]).optional().meta({examples:[`AFTER_EVENT`],description:`Optional payout frequency. Defaults to 'AFTER_EVENT' if not specified`})});const Tb=F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout`}),noteId:k$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to delete`})}),Eb=fb.pick({id:true}).extend({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to retrieve.`})}),Db=I$1([`createdAt`]),Ob=I$1([`asc`,`desc`]),kb=F$1({mine:N$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:k$1().optional().meta({description:`Filter payouts by specific team unique identifier. BREAKING CHANGE: Replaced promoterId filter.`}),eventId:k$1().optional().meta({examples:[b$1.Event.id],description:`Filter payouts by specific event unique identifier. When provided, only returns payouts for this event.`}),status:I$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:R$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.`}),query:k$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:Db.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest payouts first."}),direction:Ob.optional().meta({examples:[`desc`],description:"Sort direction for payout lists. Defaults to `desc` when `sort` is provided."}),limit:wc(`payouts`).optional(),cursor:k$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`}),Ab=G$2(fb,`payouts`),jb=I$1([`VALID`,`FALLBACK`,`MISSING`]),Mb=F$1({status:jb.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:k$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:F$1({id:k$1().optional().meta({examples:[b$1.Beneficiary.id],description:`Identifier for the beneficiary.`}),teamId:k$1().optional().meta({examples:[b$1.Team.id],description:`Team that owns this beneficiary configuration.`}),name:k$1().meta({examples:[b$1.Beneficiary.name],description:`Display name for the resolved beneficiary.`}),gateway:I$1([`AIRWALLEX`,`STRIPE`]).optional().meta({examples:[b$1.Beneficiary.gateway],description:`Payment gateway for this beneficiary when available from configuration.`}),gatewayId:k$1().meta({examples:[b$1.Beneficiary.gatewayId],description:`Gateway-specific beneficiary identifier used for transfer creation.`}),currency:z$2.meta({examples:[b$1.Beneficiary.currency],description:`Currency configured for this beneficiary.`})}).optional()}),Nb=I$1([`tickets`,`tenant`,`venue`,`team`,`sessions`]),Pb=F$1({kind:Nb.meta({examples:[`tickets`],description:`Split component represented by this row.`}),amount:j$1().int().meta({examples:[114500],description:`Amount in cents for this split component.`}),currency:z$2.meta({examples:[b$1.Payout.price.currency],description:`Currency code for this split component.`}),beneficiary:Mb}),Fb=I$1([`TRACKED`,`N_A`,`SKIPPED`]),Ib=F$1({orders:j$1().int().meta({examples:[12],description:`Number of orders in this settlement bucket.`}),price:Dh.meta({description:`Aggregated totals for the orders in this bucket, in the bucket's native currency.`})}),Lb=F$1({state:Fb.meta({examples:[`TRACKED`],description:`Whether settlement tracking applies to this payout preview. Non-Airwallex payouts return N_A.`}),settled:Ib.optional().meta({description:`Completed Airwallex orders that already have settlement data available.`}),awaitingSettlement:Ib.optional().meta({description:`Completed Airwallex orders still waiting on settlement ingestion.`})}),Rb=F$1({payout:fb.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:P$1(Pb).meta({description:`Non-zero split rows with beneficiary resolution status and warnings.`}),settlementSummary:Lb.meta({description:`Settlement status summary for the payout event. Airwallex payouts expose settled vs awaiting-settlement buckets.`})}),zb=Eb.extend({includeSettlementSummary:N$1().optional().meta({examples:[true],description:`When true, includes the Airwallex settlement summary for the payout preview.`})}),Bb=F$1({payout:fb,breakdown:Sb,canExportBookingFees:N$1()}),Vb=hs(k$1(),hs(k$1(),F$1({net:j$1(),total:j$1(),gross:j$1(),base:j$1(),booking:j$1(),shipping:j$1(),refunded:j$1(),discount:j$1(),gateway:j$1(),dispute:j$1(),deductions:j$1()}))).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,deductions:2e3}},previous:{USD:{net:8e4,total:95e3,gross:9e4,base:85e3,booking:5e3,shipping:0,refunded:0,discount:5e3,gateway:2500,dispute:0,deductions:1500}}}]}),Hb=F$1({teamId:k$1().optional().meta({description:`Filter stats by team ID`}),startDate:k$1().optional().meta({description:`Start date for stats period (YYYY-MM-DD)`}),endDate:k$1().optional().meta({description:`End date for stats period (YYYY-MM-DD)`})}),Ub=fb.pick({id:true}).merge(fb.pick({status:true,approval:true}).partial()).extend({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout to update.`}),status:I$1([`CANCELLED`]).optional().meta({examples:[`CANCELLED`],description:`Optional new payment status for the payout. Only CANCELLED is allowed for manual updates.`}),approval:R$1.optional().meta({examples:[`APPROVED`],description:`Optional new approval status for the payout. PENDING: awaiting approval, APPROVED: approved for processing, REJECTED: rejected.`})}),Wb=F$1({id:k$1().meta({examples:[b$1.Payout.id],description:`Unique identifier of the payout`}),noteId:k$1().meta({examples:[`tl_1234567890_abc123`],description:`Unique identifier of the timeline note to update`}),note:k$1().trim().min(1).max(1e3).meta({examples:[`Updated: Transfer confirmed - reference #12345`],description:`Updated note text content (1-1000 characters)`})}),Gb=F$1({payout:fb});var Kb={create:_$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(_b.strict()).output(Gb),update:_$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(Wb.strict()).output(Gb),remove:_$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(Tb.strict()).output(Gb)},qb={get:_$1.route({method:`GET`,path:`/payouts/{id}`,summary:`Get payout by ID with breakdown`,tags:[`Payouts`]}).input(Eb.strict()).output(Bb),list:_$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(kb.strict()).output(Ab),preview:_$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(zb.strict()).output(Rb),stats:_$1.route({method:`POST`,path:`/payouts/stats`,summary:`Get payout statistics`,tags:[`Payouts`]}).input(Hb.strict()).output(Vb),breakdown:_$1.route({method:`GET`,path:`/payouts/{payoutId}/breakdown`,summary:`Get payout breakdown`,tags:[`Payouts`]}).input($y.strict()).output(Sb),update:_$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(Ub.strict()).output(fb),note:Kb};const Jb=I$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.`}),Yb=F$1({id:k$1().readonly().meta({description:`Unique identifier for the permission scope`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the scope was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the scope was last updated`}),teamMemberId:k$1().meta({description:`Team member this scope applies to`}),teamId:k$1().meta({description:`Team the member belongs to`}),userId:k$1().meta({description:`ID of the user this permission scope applies to`}),permissions:P$1(Xc).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:P$1(k$1()).optional().meta({description:`Optional role IDs applied at this scope. Role-derived permissions are merged with explicit scoped nodes.`}),tenantId:k$1().readonly().meta({description:`Tenant identifier`})}),Xb=ds(`kind`,[Yb.extend({kind:vs(`PROMOTER`).meta({description:`Scope type: PROMOTER-specific permissions`}),promoterId:k$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.`}),Yb.extend({kind:vs(`VENUE`).meta({description:`Scope type: VENUE-specific permissions`}),venueId:k$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.`}),Zb=F$1({permissions:P$1(Xc).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:P$1(k$1()).optional().meta({description:`Optional role IDs to apply at this scope.`})}),Qb=ds(`kind`,[Zb.extend({kind:vs(`PROMOTER`).meta({description:`Scope type: PROMOTER-specific permissions`}),promoterId:k$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.`}),Zb.extend({kind:vs(`VENUE`).meta({description:`Scope type: VENUE-specific permissions`}),venueId:k$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.`}),$b=F$1({id:hc.meta({description:`Unique identifier for the permission scope`})}).meta({description:`Schema for retrieving a single permission scope by ID`}),ex=F$1({teamMemberId:k$1().optional().meta({description:`Filter by team member ID`}),userId:k$1().optional().meta({description:`Filter by user ID`}),kind:Jb.optional().meta({description:`Filter by scope kind (PROMOTER or VENUE)`}),promoterId:k$1().optional().meta({description:`Filter by promoter ID (only for kind=PROMOTER scopes)`}),venueId:k$1().optional().meta({description:`Filter by venue ID (only for kind=VENUE scopes)`}),limit:wc(`permission scopes`),cursor:k$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`}),tx=G$2(Xb,`items`).meta({description:`Paginated response containing permission scopes with cursor for next page`}),nx=Zb.meta({description:`Schema for updating an existing permission scope. Only permissions array can be modified.`}),rx=F$1({key:k$1(),memberId:k$1()}),ix=rx.merge($b).strict();var ax={get:_$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(ix).output(Xb),list:_$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(rx.merge(ex).strict()).output(tx),create:_$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(rx.and(Qb)).output(Xb),update:_$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(rx.extend({id:k$1()}).merge(nx).strict()).output(Xb),remove:_$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(ix).output(Xb)};const ox=F$1({id:gc.meta({description:`Permission role ID`}),teamId:Qs.meta({description:`Team that owns this role`}),name:k$1().min(1).meta({description:`Role display name`}),description:k$1().optional().meta({description:`Optional role description`}),permissions:Qc.meta({description:`Permission nodes granted by this role`}),createdAt:D$1().meta({description:`Timestamp in ISO 8601 format when the role was created`}),updatedAt:D$1().meta({description:`Timestamp in ISO 8601 format when the role was last updated`})}).meta({description:`Team-scoped permission role`}),sx=F$1({role:ox}),cx=F$1({roles:P$1(ox)}),lx=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`})}),ux=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),roleId:gc}),dx=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),name:k$1().min(1).meta({description:`Role display name`}),description:k$1().optional().meta({description:`Optional role description`}),permissions:Qc}),fx=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),roleId:gc,name:k$1().min(1).meta({description:`Role display name`}),description:k$1().optional().meta({description:`Optional role description`}),permissions:Qc}),px=F$1({memberId:fc,permissions:P$1(Xc),updatedAt:D$1()}),mx=F$1({member:px}),hx=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),memberId:fc}),gx=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),memberId:fc,permissions:P$1(Xc).meta({description:`Direct permission nodes for this member. Full-replace semantics; use an empty array to remove all direct grants.`})}),_x=F$1({memberId:fc,roleIds:P$1(gc).meta({description:`Role IDs assigned to this member`}),updatedAt:D$1()}),vx=F$1({member:_x}),yx=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),memberId:fc}),bx=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),memberId:fc,roleIds:P$1(gc)}),xx=F$1({direct:P$1(k$1()),fromRoles:P$1(k$1()),effective:P$1(k$1()),denied:P$1(k$1())});F$1({memberId:fc,permissions:xx});F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),memberId:fc,domain:k$1().optional().meta({description:`Optional domain filter (for example: ticket, event)`}),action:k$1().optional().meta({description:`Optional action filter (for example: read, write, scan)`}),resourceId:k$1().optional().meta({description:`Optional resource ID filter`})});const Tx=_$1.route({method:`GET`,path:`/teams/{key}/roles`,summary:`List team roles`,description:`Returns all roles configured for a team.`,tags:[`Permissions`]}).input(lx.strict()).output(cx),Ex=_$1.route({method:`POST`,path:`/teams/{key}/roles`,summary:`Create team role`,description:`Creates a team-scoped permission role.`,tags:[`Permissions`]}).input(dx.strict()).output(sx),Dx=_$1.route({method:`GET`,path:`/teams/{key}/roles/{roleId}`,summary:`Get team role`,description:`Retrieves a team role by ID.`,tags:[`Permissions`]}).input(ux.strict()).output(sx),Ox=_$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(fx.strict()).output(sx),kx=_$1.route({method:`DELETE`,path:`/teams/{key}/roles/{roleId}`,summary:`Delete team role`,description:`Deletes a team role.`,tags:[`Permissions`]}).input(ux.strict()).output(sx),Ax=_$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(hx.strict()).output(mx),jx=_$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(gx.strict()).output(mx),Mx=_$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(yx.strict()).output(vx),Nx=_$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(bx.strict()).output(vx);var Px={roles:{list:Tx,create:Ex,get:Dx,update:Ox,remove:kx},members:{permissions:{get:Ax,replace:jx},roles:{get:Mx,replace:Nx}}};const Fx=F$1({key:k$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[b$1.Promoter.id,b$1.Promoter.slug]})}).meta({description:`Request schema for retrieving a promoter by either its unique ID or slug`});Jp.pick({slug:true});const Lx=Jp.omit({id:true,createdAt:true,updatedAt:true,geohash:true,approval:true,location:true}).extend({teamId:k$1().meta({examples:[`tem_01jqpjksnsen9vprw95et60t2m`],description:`ID of the team that will own this promoter. User must be a member of this team.`}),slug:k$1().min(3).max(30).optional().meta({examples:[b$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`}),...Qh}).refine($h,{message:Zh}).meta({description:`Schema for creating a new promoter organization. The system automatically generates the ID, tenant association, geohash, and timestamps`}),Rx=F$1({key:k$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[b$1.Promoter.id,b$1.Promoter.slug]})}).meta({description:`Schema for removing (soft deleting) a promoter organization by key (ID or slug)`});Jp.pick({id:true}).meta({description:`Schema for retrieving a specific promoter by ID`});const Bx=I$1([`createdAt`]),Vx=I$1([`asc`,`desc`]),Hx=e=>{if(e!=null)return typeof e==`string`?Ux(e):e};function Ux(e){let t=e.trim();if(t.length===0)return;let n=Number(t);return Number.isNaN(n)?e:n}const Wx=F$1({teamId:k$1().optional().meta({description:`Filter promoters to only those belonging to a specific team`}),approval:R$1.optional().meta({examples:[b$1.Promoter.approval],description:`Filter promoters by approval status. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate`}),query:k$1().optional().meta({examples:[`Session Services`],description:`Optional search query. When provided, results are fetched from search with unified cursor pagination.`}),latitude:L$1().min(-90).max(90).optional().meta({examples:[b$1.Promoter.location.latitude],description:`Latitude used with longitude and radius to filter promoters by proximity when searching.`}),longitude:L$1().min(-180).max(180).optional().meta({examples:[b$1.Promoter.location.longitude],description:`Longitude used with latitude and radius to filter promoters by proximity when searching.`}),radius:L$1().optional().meta({examples:[50],description:`Search radius in kilometers applied when latitude and longitude are provided.`}),mine:Ws().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:Bx.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest promoters first."}),direction:Vx.optional().meta({examples:[`desc`],description:"Sort direction for promoter lists. Defaults to `desc` when omitted."}),limit:(()=>Hs(Hx,j$1().min(1).max(100).prefault(20)).meta({examples:[20],description:`Maximum number of promoters to return (1-100, defaults to 20)`}))().optional(),cursor:k$1().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`}),Gx=G$2(Jp,`promoters`),Kx=F$1({promoter:Jp}),qx=Jp.omit({createdAt:true,updatedAt:true,id:true,location:true}).partial().extend({key:k$1().min(1).meta({description:`Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug`,examples:[b$1.Promoter.id,b$1.Promoter.slug]}),locationId:ec.optional().meta({examples:[`loc_01jqpjksnsen9vprw95et60t2m`],description:`ID of an existing location to update to. Either locationId or googlePlaceId can be provided.`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJN1t_tDeuEmsRUsoyG83frY4`],description:`Google Place ID to update location from. Either locationId or googlePlaceId can be provided.`}),image:H$2.nullable().optional().meta({description:`Promoter image. Pass null to clear; omit to leave unchanged.`,examples:[b$1.Promoter.image,null]}),tracking:F$1({fbId:k$1().optional(),gtmId:k$1().optional(),tikTokId:k$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.`});var Jx={summary:_$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(xd).output(Sd),revenue:_$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(Cd).output(wd),events:_$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(Td).output(Ed)};const Yx=_$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(Fx.strict()).output(Kx),Xx=_$1.route({method:`POST`,path:`/promoters`,summary:`Create a new promoter`,description:`Create a new promoter brand within a team`,tags:[`Promoters`]}).input(Lx.strict()).output(Kx),Zx=_$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(qx.strict()).output(Kx);var Qx={get:Yx,list:_$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(Wx.strict()).output(Gx),create:Xx,update:Zx,remove:_$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(Rx.strict()).output(Kx),performance:Jx};const $x=_$1.route({method:`GET`,path:`/events/{eventId}/sections/{id}`,summary:`Get section by ID`,tags:[`Sections`]}).input(ng.strict()).output(ag),eS=_$1.route({method:`POST`,path:`/events/{eventId}/sections`,summary:`Create a new section`,tags:[`Sections`]}).input(eg.strict()).output(ag),tS=_$1.route({method:`PUT`,path:`/events/{eventId}/sections/{id}`,summary:`Update a section`,tags:[`Sections`]}).input(og.strict()).output(ag);var nS={get:$x,list:_$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(rg.strict()).output(ig),create:eS,update:tS,remove:_$1.route({method:`DELETE`,path:`/events/{eventId}/sections/{id}`,summary:`Delete a section`,tags:[`Sections`]}).input(tg.strict()).output(ag)};const rS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),inviteId:k$1().meta({description:`Team invite ID to accept`}),token:k$1().meta({description:`Secure token used to accept the team invite. This token must match the one sent in the invitation email.`})}),iS=F$1({provider:I$1([`STRIPE`,`AIRWALLEX`]).meta({description:`Payment gateway provider type`}),connectedAt:D$1().meta({description:`Timestamp when the payment gateway was connected to this team`}),connectedBy:k$1().meta({description:`User ID of the team member who connected the payment gateway`}),accountId:k$1().meta({description:`Connected account ID. For Stripe: acct_xxxxx. For Airwallex: business account open ID.`})}).meta({description:`Payment gateway configuration for direct payouts to the team's connected account`}),aS=F$1({id:Qs.readonly().meta({description:`Unique identifier for the team organization`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the team was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the team was last updated`}),name:k$1().min(3).max(30).meta({description:`Display name of the team organization. Must be between 3 and 30 characters`}),slug:k$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:k$1().email().optional().meta({description:`Support email address for customer inquiries. Used as reply-to address in order confirmation emails`}),publicBaseUrl:Do().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:H$2.optional().meta({description:`Team image with dimensions and alt text for branding across the platform`}),metadata:Cc,approval:R$1.meta({description:`Approval status of the team. PENDING: awaiting review, APPROVED: can create promoters/venues/events, REJECTED: cannot operate`}),deletedAt:D$1().optional().readonly().meta({description:`Timestamp in ISO 8601 format when the team was soft deleted. Only present for deleted teams.`}),tenantId:k$1().readonly().meta({description:`Tenant ID for multi-tenant isolation`}),isAdmin:N$1().optional().meta({description:`Whether this team is the admin team for the tenant`}),gateway:iS.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.`});aS.extend({promoter:Jp.meta({description:`The primary promoter brand associated with this team`})}).meta({description:`Team organization with its primary promoter brand included for convenience`});const sS=aS.extend({member:F$1({id:fc.meta({description:`Current user's team member identifier for this team`}),permissions:Zc.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:N$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`}),cS=F$1({key:k$1().min(1).meta({description:`Team key - either a unique ID (tem_xxx format) or URL-friendly slug`,examples:[b$1.Team.id,b$1.Team.slug]})}).meta({description:`Request schema for retrieving a team by either its unique ID or slug`}),lS=aS.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,deletedAt:true}).extend({slug:k$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:aS.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`});F$1({id:Qs.meta({description:`Team ID to delete`})});F$1({id:Qs.meta({description:`Team ID to retrieve`})});const fS=F$1({id:pc.readonly().meta({description:`Unique identifier for the team invitation`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the invitation was last updated`}),teamId:Qs.meta({description:`Team this invitation is for`}),email:Co().meta({description:`Email address of the invited user. Used for sending invitation.`}),permissions:P$1(Xc).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:P$1(k$1()).optional().meta({description:`Role IDs assigned on invite acceptance. Effective permissions are role + explicit nodes.`}),token:k$1().readonly().meta({description:`Secure token for invite acceptance. Required to accept the invitation.`}),expiresAt:j$1().int().positive().meta({description:`Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days.`}),invitedBy:tc.meta({description:`User ID who sent the invitation`}),tenantId:k$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.`}),pS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),inviteId:k$1().meta({description:`Team invite ID to cancel`})}),mS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),email:Co().meta({description:`Email address of the user to invite`}),roleIds:P$1(k$1()).min(1).meta({description:`Role IDs to grant to the invited user.`})}),hS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),inviteId:pc.meta({description:`Team invite ID to retrieve`})}),gS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),query:k$1().optional().meta({description:`Search query to filter invitations by email. Case-insensitive partial match`}),limit:j$1().int().min(1).max(100).default(20).optional().meta({description:`Maximum number of invitations to return per page`}),cursor:k$1().optional().meta({description:`Pagination cursor for fetching the next page`})}),_S=G$2(fS,`invites`),vS=F$1({invite:fS}),yS=I$1([`createdAt`]),bS=I$1([`asc`,`desc`]),xS=F$1({userId:tc.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:R$1.optional().meta({description:`Filter teams by approval status. PENDING: awaiting review, APPROVED: can operate, REJECTED: cannot operate`}),query:k$1().optional().meta({description:`Optional search query for filtering teams by name or slug`}),sort:yS.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest teams first."}),direction:bS.optional().meta({examples:[`desc`],description:"Sort direction for team lists. Defaults to `desc` when `sort` is provided."}),limit:wc(`teams`),cursor:k$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`}),SS=G$2(sS,`teams`),CS=I$1([`STRIPE`,`AIRWALLEX`]),wS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),provider:CS.meta({description:`Payment processor to connect`,examples:[`STRIPE`,`AIRWALLEX`]})}),TS=F$1({authorizationUrl:k$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=...`]})}),ES=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`})}),DS=F$1({team:sS.extend({isAdmin:N$1().optional().meta({description:`Whether this team is the tenant admin team`})})}),OS=F$1({id:k$1().meta({description:`Role ID`}),teamId:k$1().meta({description:`Team ID this role belongs to`}),key:k$1().meta({description:`Role key`}),name:k$1().meta({description:`Role display name`}),description:k$1().optional().meta({description:`Role description`}),permissions:P$1(k$1()).meta({description:`Permission nodes granted by this role`}),scope:vs(`TEAM`).meta({description:`Role scope`}),isPreset:N$1().meta({description:`Whether this role is a system preset role`})});F$1({roles:P$1(OS)});F$1({key:k$1().meta({description:`Team identifier (ID or slug)`})});const jS=aS.omit({tenantId:true,createdAt:true,updatedAt:true,id:true}).partial().extend({key:k$1().min(1).meta({description:`Team key - either a unique ID (tem_xxx format) or URL-friendly slug`,examples:[b$1.Team.id,b$1.Team.slug]}),supportEmail:k$1().email().nullable().optional().meta({description:`Support email for customer inquiries. Pass null to clear, omit to leave unchanged.`}),publicBaseUrl:Do().nullable().optional().meta({description:`Public website base URL for team-owned event and order links. Pass null to clear, omit to leave unchanged.`}),image:H$2.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.`});var MS={summary:_$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(Dd).output(Od),revenue:_$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(kd).output(Ad),funnel:_$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(Fd).output(Id),traffic:_$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(Vd).output(Hd),insights:_$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(Ud).output(Kd),payouts:_$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(Jd).output(Qd),events:_$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(Nd).output(Pd),admissions:_$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(zd).output(Bd),orders:_$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(Ld).output(Rd),tracking:_$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($d).output(ef)},NS={get:_$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(cS.strict()).output(DS),list:_$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(xS.strict()).output(SS),create:_$1.route({method:`POST`,path:`/teams`,summary:`Create a new team`,description:`Create a new team organization`,tags:[`Teams`]}).input(lS.strict()).output(DS),update:_$1.route({method:`PATCH`,path:`/teams/{key}`,summary:`Update a team`,description:`Update an existing team by ID or slug`,tags:[`Teams`]}).input(jS.strict()).output(DS),remove:_$1.route({method:`DELETE`,path:`/teams/{key}`,summary:`Delete a team`,description:`Soft delete a team by ID or slug`,tags:[`Teams`]}).input(cS.strict()).output(DS),performance:MS};const PS=F$1({id:fc.readonly().meta({description:`Unique identifier for the team member`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the member was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the member was last updated`}),teamId:Qs.meta({description:`Team this member belongs to`}),userId:tc.meta({description:`User ID of the team member`}),user:F$1({id:tc.meta({description:`Unique identifier of the user`}),email:Co().meta({description:`Email address of the user`}),firstName:k$1().meta({description:`First name of the user`}),lastName:k$1().meta({description:`Last name of the user`}),imageUrl:k$1().optional().meta({description:`Profile image URL of the user`})}).meta({description:`Denormalized user details for quick access without additional queries.`}),permissions:P$1(Xc).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:P$1(k$1()).optional().meta({description:`Role IDs assigned to this team member. Effective permissions are derived from role nodes plus explicit permission nodes.`}),isOwner:N$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.`}),tenantId:k$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.`}),FS=F$1({member:PS});var IS={list:_$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(gS.strict()).output(_S),get:_$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(hS.strict()).output(vS),create:_$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(mS.strict()).output(vS),accept:_$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(rS.strict()).output(FS),resend:_$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(hS.strict()).output(vS),cancel:_$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(pS.strict()).output(vS)},LS={connect:_$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(wS.strict()).output(TS),disconnect:_$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(ES.strict()).output(aS)};const RS=PS.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,user:true,teamId:true,permissions:true}).extend({key:k$1().meta({description:`Team identifier (ID or slug)`}),roleIds:P$1(k$1()).min(1).meta({description:`Role IDs assigned to this team member.`})}).meta({description:`Schema for adding an existing user to a team. Requires userId of an existing user account.`}),zS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),userId:k$1().meta({description:`User ID of the team member to retrieve`})}),BS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),query:k$1().optional().meta({description:`Search query to filter members by name or email. Case-insensitive partial match`}),limit:wc(`team members`),cursor:k$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`}),VS=G$2(PS,`members`),HS=F$1({key:k$1().meta({description:`Team identifier (ID or slug)`}),newOwnerId:k$1().meta({description:`Team member ID of the new owner. This member must already exist with ACTIVE status.`})}).meta({description:`Schema for transferring team ownership from the current owner to another active team member.`}),US=F$1({previousOwner:PS.meta({description:"The previous owner (now a regular member with owner-equivalent access, typically via `*`)"}),newOwner:PS.meta({description:`The new owner (now has isOwner: true)`})}).meta({description:`Response payload for team ownership transfer operation`}),WS=F$1({id:k$1().meta({description:`Team member ID to update`}),roleIds:P$1(k$1()).min(1).meta({description:`Replace role assignments for this team member with the provided role IDs.`}),isOwner:N$1().optional().meta({description:`Whether this team member is an owner of the team`})}).meta({description:`Schema for updating team member roles. Cannot update teamId, userId, or owner status.`});const KS=_$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(zS.strict()).output(FS),qS=_$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(BS.strict()).output(VS),JS=_$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(RS.strict()).output(FS),YS=_$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(WS.extend({key:k$1(),userId:k$1()}).strict()).output(FS),XS=_$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(zS.strict()).output(FS),ZS=_$1.route({method:`POST`,path:`/teams/{key}/transfer`,summary:`Transfer team ownership`,description:"Transfer team ownership from the current owner to another active member. Team key can be ID or slug. Only the current owner can perform this action. Previous owner retains owner-equivalent access (typically via `*`) but loses isOwner status.",tags:[`Team Members`]}).input(HS.strict()).output(US);var QS={get:KS,list:qS,create:JS,update:YS,remove:XS,transfer:ZS};const $S=I$1([`ALL`,`COUNTRY`,`STATE`,`CITY`,`VENUE`]),eC=F$1({id:k$1(),name:k$1(),slug:k$1(),kind:$S,parentId:k$1().optional(),latitude:j$1().optional(),longitude:j$1().optional(),radius:j$1().optional(),enabled:N$1(),order:j$1(),zoom:j$1().optional(),heroImage:k$1().optional(),description:k$1().optional()}),tC=F$1({tenant:F$1({id:k$1(),name:k$1(),slug:k$1(),adminTeamId:k$1(),legacyTenantsToTeams:hs(k$1(),k$1()).optional(),features:hs(k$1(),N$1()).optional(),defaultCurrency:k$1(),logo:F$1({email:F$1({src:k$1(),width:j$1(),height:j$1()}),website:F$1({src:k$1(),width:j$1(),height:j$1()})}),baseUrl:F$1({dev:k$1().optional(),production:k$1().optional()}),publicBaseUrl:F$1({dev:k$1().optional(),sandbox:k$1().optional(),production:k$1().optional()}).optional()}),regions:P$1(eC)}),nC=F$1({regions:P$1(eC)}),rC=F$1({teamId:k$1().optional()}),iC=F$1({counts:F$1({teams:N$1(),promoters:N$1(),venues:N$1(),events:N$1(),payouts:N$1()})}),aC=_$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(tC),oC=_$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(nC);var sC={approvals:_$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(rC).output(iC),config:aC,regions:oC};const cC=F$1({id:k$1().meta({examples:[b$1.Admission.id],description:`Admission ID reference`}),name:k$1().meta({examples:[`VIP Access`,`General Admission`,`Early Bird`],description:`Admission type name at time of purchase`}),price:F$1({base:j$1().meta({description:`Base price in smallest currency unit (cents)`}),booking:j$1().meta({description:`Booking fee in smallest currency unit (cents)`}),currency:k$1().meta({examples:[`USD`,`EUR`,`GBP`],description:`ISO 4217 currency code`})}).meta({description:`Price snapshot at time of purchase`}),entryStartsAt:U$2.meta({description:`Wall clock time when ticket holder can enter (no timezone, displays same everywhere)`}),entryEndsAt:U$2.meta({description:`Wall clock time when entry period ends (no timezone, displays same everywhere)`})}).meta({description:`Admission details for this ticket`}),lC=F$1({firstName:k$1().trim().min(1).meta({examples:[b$1.Customer.firstName],description:`First name of the ticket attendee`}),lastName:k$1().trim().min(1).meta({examples:[b$1.Customer.lastName],description:`Last name of the ticket attendee`}),email:Co().meta({examples:[b$1.Customer.email],description:`Email address of the ticket attendee`}),phone:k$1().meta({examples:[b$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.`}),uC=F$1({id:k$1().meta({examples:[b$1.Event.id],description:`Event ID reference`}),name:k$1().meta({examples:[b$1.Event.name],description:`The title of the event shown to attendees`}),slug:k$1().meta({examples:[b$1.Event.slug],description:`URL-friendly identifier for the event`}),location:Kp.meta({description:`Structured location details for the event`}),entryStartsAt:U$2.meta({examples:[b$1.Event.entryStartsAt],description:`Wall clock time when event entry begins (no timezone, displays same everywhere)`}),entryEndsAt:U$2.meta({examples:[b$1.Event.entryEndsAt],description:`Wall clock time when event entry ends (no timezone, displays same everywhere)`}),images:F$1({mobile:H$2.meta({description:`Mobile-optimized image for the event`}),desktop:H$2.meta({description:`Desktop-optimized image for the event`})})}).meta({description:`Event details for this ticket`}),dC=F$1({id:k$1().meta({examples:[b$1.User.id],description:`Unique identifier of the user who performed the ticket scan`}),firstName:k$1().meta({examples:[b$1.User.firstName],description:`First name of the user who performed the scan`}),lastName:k$1().meta({examples:[b$1.User.lastName],description:`Last name of the user who performed the scan`}),email:Co().meta({examples:[b$1.User.email],description:`Email address of the user who performed the scan`})}).meta({description:`Information about the user who scanned a ticket`}),fC=I$1([`CHECK_IN`,`CHECK_OUT`]),mC=F$1({id:k$1().meta({examples:[b$1.TicketScan.id],description:`Unique identifier of the ticket scan record`}),scannedAt:D$1().readonly().meta({examples:[b$1.TicketScan.scannedAt],description:`Timestamp when the ticket was scanned in ISO 8601 format`}),scannedById:k$1().meta({examples:[b$1.TicketScan.scannedById],description:`Unique identifier of the user who performed the scan`}),scannedBy:dC.meta({description:`Detailed information about the user who performed the scan`}),deviceId:k$1().meta({examples:[b$1.TicketScan.deviceId],description:`Unique identifier of the device used for scanning`}),kind:fC.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`}),hC=F$1({id:k$1().meta({examples:[b$1.Section.id],description:`Section ID reference`}),name:k$1().meta({examples:[`Floor Section A`,`Balcony Left`,`VIP Lounge`],description:`Section name at time of purchase`}),location:F$1({name:k$1().meta({description:`Venue or location name`}),address:k$1().optional().meta({description:`Street address`}),city:k$1().optional().meta({description:`City name`}),state:k$1().optional().meta({description:`State or province`}),postcode:k$1().optional().meta({description:`Postal/ZIP code`}),country:k$1().optional().meta({description:`ISO country code`}),latitude:j$1().optional().meta({description:`Geographic latitude coordinate`}),longitude:j$1().optional().meta({description:`Geographic longitude coordinate`}),timeZone:k$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`}),gC=I$1([`ACTIVE`,`REDEEMED`,`CANCELLED`]),$$2=F$1({id:k$1().readonly().meta({examples:[b$1.Ticket.id],description:`Unique identifier for the ticket`}),createdAt:D$1().readonly().meta({examples:[b$1.Ticket.createdAt],description:`Timestamp when the ticket was created in ISO 8601 format`}),updatedAt:D$1().readonly().meta({examples:[b$1.Ticket.updatedAt],description:`Timestamp when the ticket was last updated in ISO 8601 format`}),scans:P$1(mC).meta({description:`Array of all scan records for this ticket (check-ins and check-outs)`}),status:gC.meta({examples:[`ACTIVE`],description:`Current status of the ticket: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)`}),attendee:lC.meta({description:`Attendee information for this ticket - editable by tenant admins`}),customerId:sc.meta({examples:[b$1.Ticket.customerId],description:`Unique identifier of the customer who purchased this ticket (read-only)`}),eventId:V$2.meta({examples:[b$1.Ticket.eventId],description:`Unique identifier of the event this ticket grants access to`}),event:uC.meta({description:`Event details for this ticket`}),admissionId:cc.meta({examples:[b$1.Ticket.admissionId],description:`Unique identifier of the admission type/tier this ticket represents`}),admission:cC.meta({description:`Admission details for this ticket`}),section:hC.optional().meta({description:`Section details for this ticket (if assigned to a section)`}),orderId:nc.meta({examples:[b$1.Ticket.orderId],description:`Unique identifier of the order this ticket was purchased in`}),orderItemId:k$1().meta({examples:[b$1.Ticket.orderItemId],description:`Unique identifier of the specific order item this ticket represents (optional for legacy tickets)`}).optional(),teamId:Qs.meta({examples:[b$1.Ticket.teamId],description:`Identifier of the team that owns this ticket`}),promoterId:ic.meta({examples:[b$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.`}),vC=F$1({kind:I$1([`CHECK_IN`,`CHECK_OUT`]).meta({description:`The most recent attendee scan action.`}),scannedAt:D$1().meta({description:`Timestamp for the most recent attendee scan.`})}),yC=I$1(`#ABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``)).meta({description:`Alpha navigation bucket key for attendee roster jumps.`}),bC=F$1({key:yC,count:L$1().int().min(0).meta({description:`Number of roster rows currently available in this bucket.`}),anchor:k$1().meta({description:`Server-issued bookmark for the first roster row in this bucket under the active filters.`})}),xC=cC.pick({id:true,name:true,entryEndsAt:true}),SC=hC.pick({id:true,name:true}),CC=F$1({id:rc.meta({examples:[b$1.Ticket.id],description:`Ticket identifier for this attendee roster row.`}),orderId:nc.meta({examples:[b$1.Ticket.orderId],description:`Order identifier used to navigate to order details.`}),status:gC.meta({description:`Current ticket status for the attendee row.`}),attendee:lC.meta({description:`Editable attendee identity fields for this ticket.`}),admission:xC.meta({description:`Admission snapshot needed for roster labels and expiry state.`}),section:SC.optional().meta({description:`Optional section label shown in the roster row.`}),lastScan:vC.optional().meta({description:`Most recent scan event for compact roster activity text.`}),lastCheckInAt:D$1().optional().meta({description:`Timestamp for the most recent check-in scan, used for checked-in labels.`})}),wC=F$1({eventId:V$2.meta({examples:[b$1.Event.id],description:`Event identifier for the attendee alpha index.`}),admissionIds:P$1(cc).optional().meta({examples:[[b$1.Admission.id]],description:`Optional admission filters used when computing available attendee buckets.`}),sectionIds:P$1(lc).optional().meta({examples:[[b$1.Section.id]],description:`Optional section filters used when computing available attendee buckets.`})}),TC=F$1({buckets:P$1(bC).meta({description:`Available attendee alpha buckets for the active filter set.`})}),EC=L$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).`}),DC=F$1({eventId:V$2.meta({examples:[b$1.Event.id],description:`Event identifier for the attendee roster.`}),admissionIds:P$1(cc).optional().meta({examples:[[b$1.Admission.id]],description:`Optional admission filters. When provided, only matching ticket admissions are included.`}),sectionIds:P$1(lc).optional().meta({examples:[[b$1.Section.id]],description:`Optional section filters. When provided, only matching ticket sections are included.`}),query:k$1().optional().meta({examples:[`John`,`john@example.com`,`+61400000000`],description:`Optional attendee search query. Matches attendee name, email, and phone.`}),cursor:Tc.optional(),before:Tc.optional().meta({description:`Cursor for loading roster rows before the current window. Mutually exclusive with cursor and anchor.`}),anchor:k$1().optional().meta({description:`Server-issued bookmark used to jump to a roster bucket. Mutually exclusive with cursor and before.`}),limit:EC.optional()}),OC=G$2(CC,`tickets`),kC=$$2.pick({status:true,admissionId:true,orderItemId:true}).extend({orderId:k$1().meta({examples:[b$1.Order.id],description:`The order this ticket belongs to`}),customerId:k$1().meta({examples:[b$1.Customer.id],description:`The customer who purchased this ticket`}),attendee:lC.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`}),AC=$$2.pick({id:true}).extend({signature:gl$1.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`}),jC=F$1({promoterId:k$1().optional().meta({examples:[b$1.Promoter.id],description:`Filter tickets by promoter/organizer unique identifier (optional)`}),eventId:k$1().optional().meta({examples:[b$1.Event.id],description:`Filter tickets by event unique identifier (optional)`}),customerId:k$1().optional().meta({examples:[b$1.Customer.id],description:`Filter tickets by customer unique identifier (optional)`}),orderId:k$1().optional().meta({examples:[b$1.Order.id],description:`Filter tickets by order unique identifier (optional)`}),status:gC.optional().meta({examples:[`ACTIVE`],description:`Filter tickets by status: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)`}),orderSignature:gl$1.optional().meta({description:`Order signature used to access tickets for a specific order without permissions (16 characters, base64url encoded)`}),query:k$1().optional().meta({examples:[`John Doe`],description:`Optional search query to filter tickets by customer details. When provided, search-backed pagination is used.`}),limit:wc(`tickets`).optional(),cursor:k$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`}),MC=G$2($$2,`tickets`),NC=F$1({ticket:$$2}),PC=$$2.pick({id:true,eventId:true}).extend({key:$$2.shape.id.meta({description:`Transition key. Supports canonical ticket IDs (tkt_*), order IDs (ord_*), and legacy Neon ticket IDs.`}),deviceId:$$2.shape.scans.element.shape.deviceId.optional().meta({description:`Unique identifier of the scanning device (optional).`}),eventId:$$2.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:N$1().optional().meta({description:`Confirms an order-level check-in when some tickets are already redeemed and some remain active.`})}).omit({id:true}).meta({description:`Schema for check-in/check-out transitions addressed by key, where key may resolve to a ticket, order, or legacy ticket identifier.`}),FC=I$1([`ticket`,`order`,`legacy`]),IC=I$1([`NOOP_TRANSITION`]),LC=I$1([`PARTIAL_ORDER_CONFIRMATION_REQUIRED`]),RC=I$1([`EVENT_MISMATCH`]),zC=F$1({id:$$2.shape.orderId,checkedInCount:j$1().int().nonnegative().optional(),items:P$1(F$1({quantity:j$1().int().positive()}))}),BC=uC.pick({id:true,name:true,slug:true,entryStartsAt:true}).extend({teamId:$$2.shape.teamId}),VC=F$1({reason:IC,kind:I$1([`CHECK_IN`,`CHECK_OUT`]),targetType:FC,order:zC.optional(),ticket:$$2.optional()}),HC=F$1({reason:RC,kind:I$1([`CHECK_IN`,`CHECK_OUT`]),targetType:FC,requestedEventId:$$2.shape.eventId.optional(),event:BC,order:zC.optional(),ticket:$$2.optional()}),UC=F$1({reason:LC,kind:vs(`CHECK_IN`),targetType:vs(`order`),order:zC,ticket:$$2.optional()}),WC=ls([VC,HC,UC]),GC=F$1({tickets:P$1($$2).meta({description:`Transition result tickets. Single-item array for ticket/legacy targets and full order tickets for order targets.`}),targetType:FC.meta({description:`Resolved target scope from the provided key.`}),order:zC.optional()}),KC=I$1([`ACTIVE`,`CANCELLED`]).describe(`Status updates allowed via PATCH: ACTIVE (reactivate), CANCELLED (void). REDEEMED is set via scan endpoint.`),qC=F$1({id:k$1().meta({examples:[b$1.Ticket.id],description:`Unique identifier of the ticket to update`}),status:KC.optional().meta({description:`Update ticket status: CANCELLED to void, ACTIVE to reactivate`}),attendee:lC.partial().nullable().optional().meta({description:`Attendee info. Pass object to set/update, null to clear, or omit to leave unchanged.`}),admissionId:k$1().optional().meta({examples:[b$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.`}),JC=_$1.route({method:`GET`,path:`/tickets/{id}`,summary:`Get ticket by ID`,tags:[`Tickets`]}).input(AC.strict()).output(NC),YC=_$1.route({method:`POST`,path:`/tickets`,summary:`Create a new ticket`,tags:[`Tickets`]}).input(kC.strict()).output(NC),XC=_$1.route({method:`PUT`,path:`/tickets/{id}`,summary:`Update a ticket`,tags:[`Tickets`]}).input(qC.strict()).output(NC),ZC=_$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(jC.strict()).output(MC),QC=_$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(DC.strict()).output(OC),$C=_$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(wC.strict()).output(TC),ew=_$1.route({method:`PUT`,path:`/tickets/{key}/check-in`,summary:`Check in tickets by key`,tags:[`Tickets`]}).input(PC.strict()).errors({UNPROCESSABLE_ENTITY:{data:WC}}).output(GC),tw=_$1.route({method:`PUT`,path:`/tickets/{key}/check-out`,summary:`Check out tickets by key`,tags:[`Tickets`]}).input(PC.strict()).errors({UNPROCESSABLE_ENTITY:{data:WC}}).output(GC);var nw={get:JC,list:ZC,attendees:{list:QC,index:$C},create:YC,update:XC,checkInByKey:ew,checkOutByKey:tw};const rw={id:b$1.User.id,createdAt:b$1.User.createdAt,updatedAt:b$1.User.updatedAt,email:b$1.User.email,firstName:b$1.User.firstName,lastName:b$1.User.lastName,imageUrl:`https://assets.session.services/examples/avatar.jpg`,tenantId:b$1.User.tenantId},iw=F$1({id:k$1().readonly().meta({description:`Unique identifier for the user`,examples:[b$1.User.id]}),createdAt:D$1().readonly().meta({description:`ISO 8601 timestamp when the user account was created`,examples:[b$1.User.createdAt]}),updatedAt:D$1().readonly().meta({description:`ISO 8601 timestamp when the user account was last updated`,examples:[b$1.User.updatedAt]}),email:Co().meta({description:`User's email address, used for authentication and communication`,examples:[b$1.User.email]}),firstName:k$1().min(1).meta({description:`User's first name`,examples:[b$1.User.firstName]}),lastName:k$1().min(1).meta({description:`User's last name`,examples:[b$1.User.lastName]}),imageUrl:Do().optional().meta({description:`Optional URL to the user's profile image or avatar`,examples:[`https://assets.session.services/examples/avatar.jpg`]}),metadata:hs(k$1(),Sc).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:[rw]}),aw=PS.meta({ref:`MeTeamMember`,description:`Team membership for the current user with denormalized user details and role-expanded team permissions.`}),ow=F$1({access:k$1().meta({description:`JWT access token with updated user data`}),refresh:k$1().meta({description:`Refresh token for obtaining new access tokens`})}).meta({ref:`Tokens`,description:`Authentication tokens for client session management`}),sw=F$1({user:iw.meta({description:`The updated user profile`}),tokens:ow.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.`}),cw=F$1({deleted:vs(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.`}),lw=F$1({user:iw.nullable().meta({description:`Current authenticated user profile, null if not authenticated`}),isAdmin:N$1().meta({description:`Whether the current user has admin privileges for the tenant`}),members:P$1(aw).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`}]}]}),uw=_$1.route({method:`GET`,path:`/users/me`,summary:`Get the current user and their team memberships`,tags:[`Users`]}).output(lw),dw=F$1({firstName:k$1().min(1).optional(),lastName:k$1().min(1).optional(),imageUrl:Do().nullable().optional(),metadata:hs(k$1(),Sc).optional(),refreshToken:k$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`}),fw=_$1.route({method:`PATCH`,path:`/users/me`,summary:`Update the current user's profile`,tags:[`Users`]}).input(dw).output(sw);var pw={me:uw,remove:_$1.route({method:`DELETE`,path:`/users/me`,summary:`Delete the current user's account`,tags:[`Users`]}).output(cw),update:fw};const mw=F$1({id:k$1().readonly().meta({description:`Unique identifier for the venue`}),createdAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the venue was created`}),updatedAt:D$1().readonly().meta({description:`Timestamp in ISO 8601 format when the venue was last updated`}),teamId:k$1().meta({description:`Team that manages this venue`}),locationId:ec.meta({examples:[`loc_01h2xk3j9k8m2n5p7q9r1s3t4v`],description:`Location identifier for this venue`}),googlePlaceId:k$1().optional().meta({examples:[`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`],description:`Google Place ID when this venue is linked to a Google Places location`}),approval:R$1.meta({examples:[`APPROVED`],description:`Approval status of the venue`}),name:k$1().min(3).max(100).meta({description:`Display name of the venue. Must be between 3 and 100 characters`}),slug:k$1().min(3).meta({description:`URL-friendly slug for the venue. Must be unique within tenant`}),description:k$1().max(500).optional().meta({description:`Short description of the venue for listings and discovery`}),image:H$2.optional().meta({description:`Venue image`}),contact:F$1({email:Co().optional().meta({description:`Public contact email for venue inquiries`}),phone:k$1().optional().meta({description:`Public contact phone number`}),website:Do().optional().meta({description:`Venue website URL`}),instagram:k$1().optional().meta({description:`Instagram profile URL`}),facebook:k$1().optional().meta({description:`Facebook page URL`}),twitter:k$1().optional().meta({description:`Twitter/X profile URL`}),tiktok:k$1().optional().meta({description:`TikTok profile URL`}),youtube:k$1().optional().meta({description:`YouTube channel URL`})}).optional().meta({description:`Public contact information and social media links`}),location:Kp.omit({venueId:true}).meta({description:`Physical location details including address, coordinates, and timezone`}),geohash:k$1().meta({description:`Geohash encoding of the venue's location for efficient spatial queries`}),capacity:j$1().int().min(1).optional().meta({description:`Maximum capacity of the venue (number of attendees)`}),metadata:Cc,deletedAt:D$1().readonly().optional().meta({description:`Timestamp in ISO 8601 format when the venue was soft-deleted. Null if not deleted`}),tenantId:k$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.`}),hw=mw.omit({id:true,tenantId:true,createdAt:true,updatedAt:true,geohash:true,deletedAt:true,location:true,googlePlaceId:true,approval:true}).extend({slug:k$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`}),gw=F$1({key:k$1().min(1).meta({description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`,examples:[b$1.Venue.id,b$1.Venue.slug]})}),_w=F$1({key:k$1().meta({examples:[b$1.Venue.id,b$1.Venue.slug],description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`})}),vw=I$1([`createdAt`]),yw=I$1([`asc`,`desc`]),bw=F$1({teamId:k$1().optional().meta({description:`Filter venues by owner team ID`}),approval:R$1.optional().meta({description:`Filter venues by approval status. PENDING: awaiting review, APPROVED: can be used for events, REJECTED: cannot be used`}),query:k$1().optional().meta({description:`Optional search query for filtering venues by name or slug`}),latitude:L$1().min(-90).max(90).optional().meta({description:`Latitude for location-based search. Must be used with longitude`}),longitude:L$1().min(-180).max(180).optional().meta({description:`Longitude for location-based search. Must be used with latitude`}),radius:L$1().min(1).max(2e4).optional().meta({description:`Search radius in kilometers (1-20000). Requires latitude and longitude`}),sort:vw.optional().meta({examples:[`createdAt`],description:"Optional list sort field. Use `createdAt` to return newest or oldest venues first."}),direction:yw.optional().meta({examples:[`desc`],description:"Sort direction for venue lists. Defaults to `desc` when `sort` is provided."}),limit:wc(`venues`),cursor:k$1().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`}),xw=G$2(mw,`venues`).meta({description:`Paginated response containing venues with cursor for next page`}),Sw=F$1({venue:mw}),Cw=mw.omit({id:true,tenantId:true,teamId:true,createdAt:true,updatedAt:true,deletedAt:true,geohash:true}).partial().extend({key:k$1().meta({examples:[b$1.Venue.id,b$1.Venue.slug],description:`Venue key - either a unique ID (ven_xxx format) or URL-friendly slug`}),description:k$1().max(500).nullable().optional().meta({description:`Short description of the venue. Pass null to clear, omit to leave unchanged.`}),image:H$2.nullable().optional().meta({description:`Venue image. Pass null to clear, omit to leave unchanged.`}),capacity:j$1().int().min(1).nullable().optional().meta({description:`Maximum capacity. Pass null to clear, omit to leave unchanged.`}),contact:F$1({email:Co().optional(),phone:k$1().optional(),website:Do().optional(),instagram:k$1().optional(),facebook:k$1().optional(),twitter:k$1().optional(),tiktok:k$1().optional(),youtube:k$1().optional()}).nullable().optional().meta({description:`Contact information. Pass null to clear all contact fields, omit to leave unchanged.`}),googlePlaceId:k$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.`}),ww={analytics:ip,beneficiary:sp,section:nS,event:jm,eventCollaborator:Vm,admission:rp,order:Zy,ticket:nw,internal:Jm,location:eh,coupon:Lp,payout:qb,teams:Px,permissionScope:ax,promoter:Qx,team:NS,teamInvite:IS,teamPayment:LS,teamMember:QS,tenant:sC,venue:{get:_$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(_w.strict()).output(Sw),list:_$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(bw.strict()).output(xw),create:_$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(hw.strict()).output(Sw),update:_$1.route({method:`PATCH`,path:`/venues/{key}`,summary:`Update a venue`,description:`Update an existing venue. Cannot change venue ownership (teamId)`,tags:[`Venues`]}).input(Cw.strict()).output(Sw),remove:_$1.route({method:`DELETE`,path:`/venues/{key}`,summary:`Delete a venue`,description:`Soft delete a venue`,tags:[`Venues`]}).input(gw.strict()).output(Sw),linkLocation:_$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(_w.extend({locationKey:k$1().meta({description:`Location ID (loc_xxx) or Google Place ID to link to this venue`,examples:[`loc_01jps5cgsm7qxvh6watsons0eq`,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}).strict()).output(Sw),unlinkLocation:_$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(_w.extend({locationKey:k$1().meta({description:`Location ID (loc_xxx) or Google Place ID to unlink from this venue`,examples:[`loc_01jps5cgsm7qxvh6watsons0eq`,`ChIJP3Sa8ziYEmsRUKgyFmh9AQM`]})}).strict()).output(Sw)},user:pw},Tw=I$1([`ORDER`]).meta({description:`Aggregate type this notification belongs to`}),Ew=I$1([`ORDER_CONFIRMATION`,`ORDER_REMINDER`,`ORDER_CANCELLATION`,`ORDER_TIME_CHANGE`,`ORDER_VENUE_CHANGE`,`ORDER_TIME_AND_VENUE_CHANGE`]).meta({description:`Notification kind`}),Dw=I$1([`SMS`,`EMAIL`]).meta({description:`Delivery channel`}),Ow=I$1([`PENDING`,`PROCESSING`,`SENT`,`DELIVERED`,`FAILED`,`CANCELLED`]).meta({description:`Current notification status`});F$1({id:_c.meta({examples:[b$1.Notification.id],description:`Unique notification identifier`}),createdAt:D$1().readonly().meta({examples:[b$1.Notification.createdAt],description:`Timestamp when notification was created`}),updatedAt:D$1().readonly().meta({examples:[b$1.Notification.updatedAt],description:`Timestamp when notification was last updated`}),aggregateType:Tw.meta({examples:[b$1.Notification.aggregateType]}),aggregateId:nc.meta({examples:[b$1.Notification.aggregateId],description:`Aggregate identifier (order ID for ORDER notifications)`}),eventId:V$2.optional().meta({examples:[b$1.Notification.eventId],description:`Associated event identifier when applicable`}),kind:Ew.meta({examples:[b$1.Notification.kind]}),channel:Dw.meta({examples:[b$1.Notification.channel]}),status:Ow.meta({examples:[b$1.Notification.status]}),providerMessageId:k$1().optional().meta({examples:[b$1.Notification.providerMessageId],description:`Provider message identifier`}),sentAt:D$1().optional().meta({examples:[b$1.Notification.sentAt],description:`Timestamp when provider accepted send request`}),deliveredAt:D$1().optional().meta({examples:[b$1.Notification.deliveredAt],description:`Timestamp when provider confirmed delivery`}),failedAt:D$1().optional().meta({examples:[b$1.Notification.failedAt],description:`Timestamp when notification failed`}),failureCode:k$1().optional().meta({examples:[b$1.Notification.failureCode],description:`Failure code when notification is FAILED`}),failureReason:k$1().optional().meta({examples:[b$1.Notification.failureReason],description:`Failure reason when notification is FAILED`})}).meta({description:`Notification delivery record`});F$1({id:fc.meta({description:`Team member ID to delete`})});
50
50
 
51
- var qc=class extends rt$1{initRuntimeAdapter(e){for(let t of this.plugins)t.initRuntimeAdapter?.(e);}},Jc=class{fetch;toFetchRequestOptions;adapterInterceptors;constructor(e){new qc(e.plugins).initRuntimeAdapter(e),this.fetch=e.fetch??globalThis.fetch.bind(globalThis),this.toFetchRequestOptions=e,this.adapterInterceptors=r(e.adapterInterceptors);}async call(e,t,n,r){let i=tt$1(e,this.toFetchRequestOptions);return nt$1(await re$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})}},Yc=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(se$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])&&!se$1(a[o])&&(a[o]=[]),r===e.length-1?Array.isArray(a[o])&&(n===``?a[o].length&&!t.has(a[o])&&(a[o]=U$1(a[o])):t.has(a[o])?(t.delete(a[o]),a[o]=W$1(a[o])):H$1(n,this.maxArrayIndex)||(a[o]=U$1(a[o]))):Array.isArray(a[o])&&!H$1(n,this.maxArrayIndex)&&(t.has(a[o])?(t.delete(a[o]),a[o]=W$1(a[o])):a[o]=U$1(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 H$1(e,t){return /^0$|^[1-9]\d*$/.test(e)&&Number(e)<=t}function U$1(e){let t=new ue$1;return e.forEach((e,n)=>{t[n]=e;}),t}function W$1(e){let t=new ue$1;return t[``]=e.length===1?e[0]:e,t}var Xc=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(se$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 G$1(e){return `/${e.replace(/\/{2,}/g,`/`).replace(/^\/|\/$/g,``)}`}function K$1(e){return e?G$1(e).match(/\/\{[^}]+\}/g)?.map(e=>({raw:e,name:e.match(/\{\+?([^}]+)\}/)[1]})):void 0}var Zc=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=ot(await de$1(this.headers,n,e,t));n.lastEventId!==void 0&&(r=Ue$1(r,{"last-event-id":n.lastEventId}));let i=await de$1(this.baseUrl,n,e,t),a=le$1(this.contract,e);if(!ut(a))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${e.join(`.`)}`);return bt(`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=G$1(e[`~orpc`].route.path??at$1(t)),s=n,c=K$1(o);if(c?.length){if(!se$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=bt(`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=G$1(e[`~orpc`].route.path??at$1(t)),s=K$1(o);if(!se$1(n)&&n!==void 0)throw TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "detailed" structure at ${t.join(`.`)}.`);if(s?.length){if(!se$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(!se$1(n.headers))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input.headers shape for "detailed" structure at ${t.join(`.`)}.`);c=Ue$1(n.headers,a);}let l=bt(`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=!we$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 t?Error(`Invalid OpenAPI response format.`,{cause:e}):Error(`Cannot parse response body, please check the response body and content-type.`,{cause:e})}})();if(!r)throw this.customErrorResponseBodyDecoder?.(i,e)??(Te$1(i)?Ee$1(i):new xe$1(st(e.status),{status:e.status,data:{...e,body:i}}));let a=le$1(this.contract,n);if(!ut(a))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${n.join(`.`)}`);return bt(`defaultOutputStructure`,a[`~orpc`].route.outputStructure)===`compact`?i:{status:e.status,headers:e.headers,body:i}}},Qc=class{constructor(e,t){this.jsonSerializer=e,this.bracketNotation=t;}serialize(e,t={}){return m$1(e)&&!t.outputFormat?We$1(e,{value:async e=>this.#e(e,{outputFormat:`plain`}),error:async e=>new Oe$1({data:this.#e(Ce$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())):m$1(e)?We$1(e,{value:async e=>e,error:async e=>e instanceof Oe$1&&Te$1(e.data)?Ee$1(e.data,{cause:e}):e}):e}},$c=class extends it$1{constructor(e,t,n){let r=new Zc(e,new Qc(new Xc(n),new Yc({maxBracketNotationArrayIndex:4294967294})),n);super(r,t,n);}},el=class extends $c{constructor(e,t){let n=new Jc(t);super(e,n,t);}};const Q$1={sandbox:`https://api.sandbox.session.services`,prod:`https://api.session.services`};function al(e){return e in Q$1?Q$1[e]:e}function $$1(e){let t=al(e.environment),n=e.tenantId??`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`;return qe$1(new el(gw,{url:t,headers:{"x-tenant-id":n,...e.headers??{}}}))}
51
+ function ul(e,t={}){let n=(e?.pipeThrough(new TextDecoderStream).pipeThrough(new Me$1))?.getReader(),r,i=false;return new re$1(async()=>{r??=l$1(`consume_event_iterator_stream`);try{for(;;){if(n===void 0)return {done:true,value:void 0};let{done:e,value:t}=await p$1(r,()=>n.read());if(e){if(i)throw new a$1(`Stream was cancelled`);return {done:true,value:void 0}}switch(t.event){case `message`:{let e=ae$1(t.data);return le$1(e)&&(e=Be$1(e,t)),r?.addEvent(`message`),{done:false,value:e}}case `error`:{let e=new ke$1({data:ae$1(t.data)});throw e=Be$1(e,t),r?.addEvent(`error`),e}case `done`:{let e=ae$1(t.data);return le$1(e)&&(e=Be$1(e,t)),r?.addEvent(`done`),{done:true,value:e}}default:r?.addEvent(`maybe_keepalive`);}}}catch(e){throw e instanceof ke$1||u$1(r,e,t),e}},async e=>{try{e!==`next`&&(i=true,r?.addEvent(`cancelled`)),await p$1(r,()=>n?.cancel());}catch(e){throw u$1(r,e,t),e}finally{r?.end();}})}function dl(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=l$1(`stream_event_iterator`),a&&e.enqueue(Re$1({comments:[o]}));},async pull(t){try{n&&(c=setInterval(()=>{t.enqueue(Re$1({comments:[i]})),l?.addEvent(`keepalive`);},r));let a=await p$1(l,()=>e.next());if(clearInterval(c),s)return;let o=Ve$1(a.value);if(!a.done||a.value!==void 0||o!==void 0){let e=a.done?`done`:`message`;t.enqueue(Re$1({...o,event:e,data:oe$1(a.value)})),l?.addEvent(e);}a.done&&(t.close(),l?.end());}catch(e){if(clearInterval(c),s)return;e instanceof ke$1?(t.enqueue(Re$1({...Ve$1(e),event:`error`,data:oe$1(e.data)})),l?.addEvent(`error`),t.close()):(u$1(l,e),t.error(e)),l?.end();}},async cancel(){try{s=true,clearInterval(c),l?.addEvent(`cancelled`),await p$1(l,()=>e.return?.());}catch(e){throw u$1(l,e),e}finally{l?.end();}}}).pipeThrough(new TextEncoderStream)}function fl(e,t={}){return f$1({name:`parse_standard_body`,signal:t.signal},async()=>{let n=e.headers.get(`content-disposition`);if(typeof n==`string`){let t=Ue$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 ul(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 pl(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??He$1(e instanceof File?e.name:`blob`)),e):e instanceof FormData||e instanceof URLSearchParams?e:ee$1(e)?(t.set(`content-type`,`text/event-stream`),dl(e,n)):(t.set(`content-type`,`application/json`),oe$1(e))}function z$1(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 ml(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 hl(e,t={}){let n=ml(e.headers),r=pl(e.body,n,t);return new Request(e.url,{signal:e.signal,method:e.method,headers:n,body:r})}function gl(e,t={}){return {body:o$1(()=>fl(e,t)),status:e.status,get headers(){let t=z$1(e.headers);return Object.defineProperty(this,`headers`,{value:t,writable:true}),t},set headers(e){Object.defineProperty(this,`headers`,{value:e,writable:true});}}}var B$1=class B{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);}},_l=class{constructor(e,t,n={}){this.codec=e,this.sender=t,new B$1(n.plugins).init(n),this.interceptors=r(n.interceptors),this.clientInterceptors=r(n.clientInterceptors);}interceptors;clientInterceptors;call(e,t,n){return f$1({name:`${i}.${e.join(`/`)}`,signal:n.signal},r=>(r?.setAttribute(`rpc.system`,i),r?.setAttribute(`rpc.method`,e.join(`.`)),ee$1(t)&&(t=m$1({name:`consume_event_iterator_input`,signal:n.signal},t)),ie$1(this.interceptors,{...n,path:e,input:t},async({path:e,input:t,...n})=>{let i=c$1(),a,o=i?.trace.getActiveSpan()??r;o&&i&&(a=i?.trace.setSpan(i.context.active(),o));let s=await f$1({name:`encode_request`,context:a},()=>this.codec.encode(e,t,n)),c=await ie$1(this.clientInterceptors,{...n,input:t,path:e,request:s},({input:e,path:t,request:n,...r})=>f$1({name:`send_request`,signal:r.signal,context:a},()=>this.sender.call(n,r,t,e))),l=await f$1({name:`decode_response`,context:a},()=>this.codec.decode(c,n,e,t));return ee$1(l)?m$1({name:`consume_event_iterator_output`,signal:n.signal},l):l})))}};function V$1(e){return `/${e.map(encodeURIComponent).join(`/`)}`}function vl(e){return typeof e.forEach==`function`?z$1(e):e}function yl(e){return Object.entries(_e$1).find(([,t])=>t.status===e)?.[0]??`MALFORMED_ORPC_ERROR_RESPONSE`}var bl=class extends B$1{initRuntimeAdapter(e){for(let t of this.plugins)t.initRuntimeAdapter?.(e);}},xl=class{fetch;toFetchRequestOptions;adapterInterceptors;constructor(e){new bl(e.plugins).initRuntimeAdapter(e),this.fetch=e.fetch??globalThis.fetch.bind(globalThis),this.toFetchRequestOptions=e,this.adapterInterceptors=r(e.adapterInterceptors);}async call(e,t,n,r){let i=hl(e,this.toFetchRequestOptions);return gl(await ie$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})}},Sl=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(ce$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])&&!ce$1(a[o])&&(a[o]=[]),r===e.length-1?Array.isArray(a[o])&&(n===``?a[o].length&&!t.has(a[o])&&(a[o]=U$1(a[o])):t.has(a[o])?(t.delete(a[o]),a[o]=W$1(a[o])):H$1(n,this.maxArrayIndex)||(a[o]=U$1(a[o]))):Array.isArray(a[o])&&!H$1(n,this.maxArrayIndex)&&(t.has(a[o])?(t.delete(a[o]),a[o]=W$1(a[o])):a[o]=U$1(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 H$1(e,t){return /^0$|^[1-9]\d*$/.test(e)&&Number(e)<=t}function U$1(e){let t=new de$1;return e.forEach((e,n)=>{t[n]=e;}),t}function W$1(e){let t=new de$1;return t[``]=e.length===1?e[0]:e,t}var Cl=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(ce$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 G$1(e){return `/${e.replace(/\/{2,}/g,`/`).replace(/^\/|\/$/g,``)}`}function K$1(e){return e?G$1(e).match(/\/\{[^}]+\}/g)?.map(e=>({raw:e,name:e.match(/\{\+?([^}]+)\}/)[1]})):void 0}var wl=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=vl(await fe$1(this.headers,n,e,t));n.lastEventId!==void 0&&(r=We$1(r,{"last-event-id":n.lastEventId}));let i=await fe$1(this.baseUrl,n,e,t),a=ue$1(this.contract,e);if(!Qe$1(a))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${e.join(`.`)}`);return ct$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=G$1(e[`~orpc`].route.path??V$1(t)),s=n,c=K$1(o);if(c?.length){if(!ce$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=ct$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=G$1(e[`~orpc`].route.path??V$1(t)),s=K$1(o);if(!ce$1(n)&&n!==void 0)throw TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "detailed" structure at ${t.join(`.`)}.`);if(s?.length){if(!ce$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(!ce$1(n.headers))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input.headers shape for "detailed" structure at ${t.join(`.`)}.`);c=We$1(n.headers,a);}let l=ct$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=!Te$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 t?Error(`Invalid OpenAPI response format.`,{cause:e}):Error(`Cannot parse response body, please check the response body and content-type.`,{cause:e})}})();if(!r)throw this.customErrorResponseBodyDecoder?.(i,e)??(Ee$1(i)?De$1(i):new Se$1(yl(e.status),{status:e.status,data:{...e,body:i}}));let a=ue$1(this.contract,n);if(!Qe$1(a))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${n.join(`.`)}`);return ct$1(`defaultOutputStructure`,a[`~orpc`].route.outputStructure)===`compact`?i:{status:e.status,headers:e.headers,body:i}}},Tl=class{constructor(e,t){this.jsonSerializer=e,this.bracketNotation=t;}serialize(e,t={}){return ee$1(e)&&!t.outputFormat?Ge$1(e,{value:async e=>this.#e(e,{outputFormat:`plain`}),error:async e=>new ke$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())):ee$1(e)?Ge$1(e,{value:async e=>e,error:async e=>e instanceof ke$1&&Ee$1(e.data)?De$1(e.data,{cause:e}):e}):e}},El=class extends _l{constructor(e,t,n){let r=new wl(e,new Tl(new Cl(n),new Sl({maxBracketNotationArrayIndex:4294967294})),n);super(r,t,n);}},Dl=class extends El{constructor(e,t){let n=new xl(t);super(e,n,t);}};const Q$1={sandbox:`https://api.sandbox.session.services`,prod:`https://api.session.services`};function Ml(e){return e in Q$1?Q$1[e]:e}function $$1(e){let t=Ml(e.environment),n=e.tenantId??`tnt_01jqpj2t2kfvmstt6f6tzkbaf2`;return Je$1(new Dl(ww,{url:t,headers:{"x-tenant-id":n,...e.headers??{}}}))}
52
52
 
53
53
  var dist = {};
54
54
 
@@ -455,7 +455,7 @@ class Cookies {
455
455
  }
456
456
  }
457
457
 
458
- function a(e,t){return e.get(t)||void 0}function o(){if(typeof window>`u`)return;let e=new URLSearchParams(window.location.search),t={source:a(e,`utm_source`),medium:a(e,`utm_medium`),name:a(e,`utm_campaign`),term:a(e,`utm_term`),content:a(e,`utm_content`)};return Object.values(t).some(Boolean)?t:void 0}function s(){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:o()}}function c(e,t,n){n&&(e[t]=n);}function l(...e){return e.find(Boolean)}function u(e,t){c(e,`content_name`,t.name),c(e,`value`,l(t.value,t.price)),e.content_type=`product`;}function d(e){return (t,n)=>{e(t,n.product_id),u(t,n);}}function f(e){return (t,n)=>{e(t,n),c(t,`content_category`,n.category);}}function p(e,t){c(e,`value`,l(t.value,t.total));}function m(e,t){c(e,`value`,l(t.value,t.total,t.revenue));}function h(e,t){if(Array.isArray(e))return e.map(t)}const g={"Product Viewed":`ViewContent`,"Product Added":`AddToCart`,"Checkout Started":`InitiateCheckout`,"Payment Info Entered":`AddPaymentInfo`,"Order Completed":`Purchase`},_=new Set,v=new Map;function y(e,t){!t||!Array.isArray(t)||(e.content_ids=t.map(e=>e.product_id).filter(Boolean),e.num_items=t.length,e.contents=h(t,e=>({id:e.product_id,quantity:e.quantity||1,item_price:e.price})));}function ee(){if(typeof window>`u`)return false;let e=window;if(e.fbq)return true;let t=((...e)=>{t.callMethod?t.callMethod(...e):t.queue.push(e);});t.push=t,t.loaded=true,t.version=`2.0`,t.queue=[],e.fbq=t,e._fbq||=t;let n=document.createElement(`script`);n.async=true,n.src=`https://connect.facebook.net/en_US/fbevents.js`;let r=document.getElementsByTagName(`script`)[0];return r?.parentNode?.insertBefore(n,r),true}function b(e,t){let n=window;typeof window>`u`||!n.fbq||(t?n.fbq(`init`,e,{external_id:t}):n.fbq(`init`,e));}function x(e,t){let n=window;typeof window>`u`||!n.fbq||n.fbq(`track`,e,t);}function S(e,...t){e&&console.log(...t);}function te(e,t,n){let r=v.get(e);return !t||t===r?false:(b(e,t),v.set(e,t),_.add(e),S(n,`[Facebook Pixel] Re-initialized pixel ${e} with userId ${t}`),true)}function C(e,t,n){b(e,t),_.add(e),t&&v.set(e,t),S(n,`[Facebook Pixel] Initialized pixel ${e}`);}function w(e,t,n){return ee()?(te(e,t,n)||_.has(e)||C(e,t,n),true):false}function T(e,t){t&&(e.content_ids=[t]);}const E=d(T),ne=f(E);function re(e,t){E(e,t),t.product_id&&(e.contents=[{id:t.product_id,quantity:t.quantity||1,item_price:t.price}]);}function D(e,t){y(e,t.products),p(e,t),e.content_type=`product`,c(e,`order_id`,t.order_id);}function ie(e,t){y(e,t.products),m(e,t),e.content_type=`product`,c(e,`order_id`,t.order_id);}function ae(e,t){c(e,`value`,t.value),t.product_id&&(e.content_ids=[t.product_id]);}const oe={ViewContent:ne,AddToCart:re,InitiateCheckout:D,AddPaymentInfo:D,Purchase:ie};function se(e,t){let n={};return c(n,`currency`,t.currency),c(n,`event_id`,t.event_id),(oe[e]??ae)(n,t),n}function ce(e){return e.name||`Unknown`}function le(e){let t=ce(e);return g[t]||t}function ue(e=false){let t=(t,n)=>{if(!n.fbId||!w(n.fbId,t.userId,e))return;let r=le(t),i=se(r,t.properties);x(r,i),S(e,`[Facebook Pixel] Sent ${r}:`,i);},n=(t,n)=>{n.fbId&&w(n.fbId,t.userId,e)&&(x(`PageView`,{}),S(e,`[Facebook Pixel] Sent PageView`));};return {name:`Facebook Pixel`,track:t,page:n,screen:n,identify:(t,n)=>{!n.fbId||!t.userId||(w(n.fbId,t.userId,e),S(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`},O=new Set;function k(e){if(typeof window>`u`)return false;let t=window;t.dataLayer=t.dataLayer||[];let n=`gtm-${e}`;if(document.getElementById(n))return true;let r=document.createElement(`script`);r.id=n,r.async=true,r.src=`https://www.googletagmanager.com/gtm.js?id=${e}`,t.dataLayer.push({"gtm.start":Date.now(),event:`gtm.js`});let i=document.getElementsByTagName(`script`)[0];return i?.parentNode?.insertBefore(r,i),true}function A(e){let t=window;typeof window>`u`||!t.dataLayer||t.dataLayer.push(e);}function j(e){return {item_id:e.product_id||e.sku,item_name:e.name,item_category:e.category,price:e.price,quantity:e.quantity||1}}function M(e){return !e.product_id||e.products?[]:[{item_id:e.product_id,item_name:e.name,item_category:e.category,price:e.price,quantity:e.quantity||1}]}function N(e){return Array.isArray(e.products)?e.products.map(j):[]}function P(e){return [...M(e),...N(e)]}function F(e){return e.find(Boolean)}function I(e,t,n){n&&(e[t]=n);}function L(e,t,n){t===`purchase`&&n.order_id&&(e.transaction_id=n.order_id);}function R(e,t){let n={items:P(t)};return I(n,`currency`,t.currency),I(n,`value`,F([t.value,t.total,t.revenue,t.price])),L(n,e,t),{event:e,ecommerce:n}}function z(e,t){return O.has(e)?true:k(e)?(O.add(e),t&&console.log(`[GTM] Loaded container ${e}`),true):false}function B(e,t){if(e.gtmId)return z(e.gtmId,t)?e.gtmId:void 0}function V(e,t){I(e,`user_id`,t.userId);}function H(e){let t=e||`Unknown`;return de[t]||t}function fe(e,t,n){e&&console.log(t,n);}function pe(e=false){return {name:`Google Tag Manager`,track:(t,n)=>{if(!B(n,e))return;let r=H(t.name);A({ecommerce:null});let i=R(r,t.properties);V(i,t),A(i),fe(e,`[GTM] Pushed ${r}:`,i);},page:(t,n)=>{if(!B(n,e))return;let r={event:`page_view`,page_location:t.context.page.url,page_path:t.context.page.path,page_title:t.context.page.title};I(r,`page_referrer`,t.context.page.referrer),V(r,t),A(r),e&&console.log(`[GTM] Pushed page_view:`,r);},screen:(t,n)=>{if(!B(n,e))return;let r={event:`screen_view`,screen_name:t.name||`Unknown`};V(r,t),A(r),e&&console.log(`[GTM] Pushed screen_view:`,r);},identify:(t,n)=>{!t.userId||!B(n,e)||(A({user_id:t.userId}),e&&console.log(`[GTM] Identity synced: ${t.userId}`));}}}const me=new Set(Object.values(Kd));function he(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 ge(e){let{event_id:t,team_id:n,promoter_id:r,...i}=e;return {eventId:t,teamId:n,promoterId:r,rest:i}}function _e(e){return !!(e.eventId&&e.teamId&&e.promoterId)}function ve(e,t,n){e&&console.warn(`[Sessions API] Missing required fields, skipping ${t}:`,{eventId:n.eventId,teamId:n.teamId,promoterId:n.promoterId});}function ye(e){return !!(e&&me.has(e))}function be(e,t,n){e&&console.warn(`[Sessions API] Invalid or missing eventType "${n}", skipping ${t}`);}function xe(e,t,n){return n&&t?{...e,name:t}:e}function Se(e,t,n,r){return {eventId:t.eventId,teamId:t.teamId,promoterId:t.promoterId,eventType:n,properties:xe(t.rest,e.name,r),context:he(e)}}function Ce(e,t,n){e&&console.log(`[Sessions API] Sending ${t}:`,n);}function we(e,t=false){let n=async(n,r,i)=>{let a=ge(r.properties);if(!_e(a)){ve(t,n,a);return}let o=i??r.name;if(!ye(o)){be(t,n,o);return}let s=Se(r,a,o,i);Ce(t,n,s),await e.analytics[n](s);};return {name:`Sessions API`,track:(e,r)=>{n(`track`,e).catch(e=>{t&&console.error(`[Sessions API] track error:`,e);});},page:(e,r)=>{n(`page`,e,`Page Viewed`).catch(e=>{t&&console.error(`[Sessions API] page error:`,e);});},screen:(e,r)=>{n(`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 Te={"Product Viewed":`ViewContent`,"Product Added":`AddToCart`,"Checkout Started":`InitiateCheckout`,"Payment Info Entered":`AddPaymentInfo`,"Order Completed":`Purchase`},U=new Set;function Ee(){if(typeof window>`u`)return false;let e=window;if(e.ttq)return true;e.TiktokAnalyticsObject=`ttq`;let t=((...e)=>{t._i=t._i||{},t._t=t._t||{},t._i[e[0]]=e;});t.methods=[`page`,`track`,`identify`,`instances`,`debug`,`on`,`off`,`once`,`ready`,`alias`,`group`,`enableCookie`,`disableCookie`],t.setAndDefer=(e,t)=>{e[t]=(...n)=>{e._t=e._t||{};let r=e._t;r[t]=r[t]||[],r[t]?.push(n);};};for(let e of t.methods)t.setAndDefer(t,e);t.instance=e=>{let n=t._i[e]||[];for(let e of t.methods)t.setAndDefer(n,e);return n},t._i={},t._t={},e.ttq=t;let n=document.createElement(`script`);n.async=true,n.src=`https://analytics.tiktok.com/i18n/pixel/events.js`;let r=document.getElementsByTagName(`script`)[0];return r?.parentNode?.insertBefore(n,r),true}function De(e){let t=window;typeof window>`u`||!t.ttq||t.ttq(`init`,e);}function Oe(e,t){let n=window;typeof window>`u`||!n.ttq||n.ttq.instance(e)(`identify`,{external_id:t});}function ke(e,t,n){let r=window;typeof window>`u`||!r.ttq||r.ttq.instance(e)(`track`,t,n);}function Ae(e){let t=window;typeof window>`u`||!t.ttq||t.ttq.instance(e)(`page`);}function W(e,...t){e&&console.log(...t);}function G(e,t){return Ee()?U.has(e)?true:(De(e),U.add(e),W(t,`[TikTok Pixel] Initialized pixel ${e}`),true):false}function je(e,t){c(e,`content_id`,t);}const K=d(je),Me=f(K);function Ne(e,t){K(e,t),c(e,`quantity`,t.quantity);}function q(e,t){c(e,`contents`,h(t,e=>({content_id:e.product_id,content_name:e.name,quantity:e.quantity||1,price:e.price})));}function J(e,t){q(e,t.products),p(e,t);}function Pe(e,t){q(e,t.products),m(e,t),c(e,`order_id`,t.order_id);}function Fe(e,t){c(e,`value`,t.value);}const Ie={ViewContent:Me,AddToCart:Ne,InitiateCheckout:J,AddPaymentInfo:J,Purchase:Pe};function Le(e,t){let n={};return c(n,`currency`,t.currency),c(n,`event_id`,t.event_id),(Ie[e]??Fe)(n,t),n}function Re(e){return e.name||`Unknown`}function ze(e){let t=Re(e);return Te[t]||t}function Y(e){return e.tikTokId}function Be(e=false){let t=(t,n)=>{let r=Y(n);if(!r||!G(r,e))return;let i=ze(t),a=Le(i,t.properties);ke(r,i,a),W(e,`[TikTok Pixel] Sent ${i}:`,a);},n=(t,n)=>{let r=Y(n);r&&G(r,e)&&(Ae(r),W(e,`[TikTok Pixel] Sent page view`));};return {name:`TikTok Pixel`,track:t,page:n,screen:n,identify:(t,n)=>{let r=Y(n);!r||!t.userId||G(r,e)&&(Oe(r,t.userId),W(e,`[TikTok Pixel] Identity synced: ${t.userId}`));}}}const Ve={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)},X=[`fbId`,`gtmId`,`tikTokId`];function He(e){return e||void 0}function Ue(e){let t=e??{};return Object.fromEntries(X.map(e=>[e,He(t[e])]))}function We(e){return X.some(t=>!!e[t])}function Ge(e,t,n){e&&console.log(`[DestinationManager] Fetched config for promoter ${t}:`,n);}function Ke(e,t,n){e&&console.warn(`[DestinationManager] Failed to fetch promoter ${t} config:`,n);}function qe(e,t=false){let n=new Map,r=new Map,i=we(e,t),a=[ue(t),pe(t),Be(t)],o=async n=>{try{let r=Ue((await e.promoter.get({key:n})).promoter?.tracking);return Ge(t,n,r),r}catch(e){return Ke(t,n,e),{}}},s=(e,n,r)=>{try{l(e,n,r);}catch(n){t&&console.error(`[DestinationManager] ${e.name} error:`,n);}},c=async e=>{let t=n.get(e);if(t)return t;let i=r.get(e);if(i)return i;i=o(e),r.set(e,i);try{let t=await i;return n.set(e,t),t}finally{r.delete(e);}},l=(e,t,n)=>{Ve[t.type]?.(e,t,n);};return {sendEvent:async(e,t)=>{let n=await c(t);if(s(i,e,n),We(n))for(let t of a)s(t,e,n);},clearCache:()=>{n.clear(),r.clear();}}}function Z(){return typeof document>`u`?null:new Cookies}function Je(e){return Z()?.get(e)??null}function Ye(e,t){let n=Z();n&&n.set(e,t,{path:`/`,sameSite:`lax`,secure:window.location.protocol===`https:`});}function Q(e){let t=Z();t&&t.remove(e,{path:`/`});}function Xe(e){if(typeof localStorage>`u`)return null;try{return localStorage.getItem(e)}catch{return null}}function Ze(e,t){if(!(typeof localStorage>`u`))try{localStorage.setItem(e,t);}catch{}}function Qe(e){if(!(typeof localStorage>`u`))try{localStorage.removeItem(e);}catch{}}const $={deleteCookie:Q,getCookie:Je,getItem:Xe,removeItem:Qe,setCookie:Ye,setItem:Ze};function $e(){return Cu($)}function et(){return wu($)}function tt(){return Tu($)}const nt={AUD:{locale:`en-AU`,exponent:2},NZD:{locale:`en-NZ`,exponent:2},GBP:{locale:`en-GB`,exponent:2},USD:{locale:`en-US`,exponent:2},EUR:{locale:`de-DE`,exponent:2},CAD:{locale:`en-CA`,exponent:2},CHF:{locale:`de-CH`,exponent:2},CNY:{locale:`zh-CN`,exponent:2},HKD:{locale:`zh-HK`,exponent:2},SGD:{locale:`en-SG`,exponent:2},INR:{locale:`en-IN`,exponent:2},MXN:{locale:`es-MX`,exponent:2},BRL:{locale:`pt-BR`,exponent:2},ZAR:{locale:`en-ZA`,exponent:2},SEK:{locale:`sv-SE`,exponent:2},NOK:{locale:`nb-NO`,exponent:2},DKK:{locale:`da-DK`,exponent:2},PLN:{locale:`pl-PL`,exponent:2},CZK:{locale:`cs-CZ`,exponent:2},HUF:{locale:`hu-HU`,exponent:2},RON:{locale:`ro-RO`,exponent:2},THB:{locale:`th-TH`,exponent:2},ILS:{locale:`he-IL`,exponent:2},JPY:{locale:`ja-JP`,exponent:0},KRW:{locale:`ko-KR`,exponent:0}},rt={locale:`en-US`,exponent:2};function it(e,t){let n=nt[t]??rt,r=10**n.exponent;return new Intl.NumberFormat(n.locale,{style:`currency`,currency:t}).format(e/r)}function at(e){let t=e.debug??false,n=qe(e.client,t),r=$e(),i=et(),a;t&&console.log(`[Analytics] Initialized:`,{sessionId:r,anonymousId:i});let o=(e,t,n)=>({type:e,name:t,properties:n,context:s(),timestamp:Date.now(),sessionId:r,anonymousId:i,userId:a}),c=(e,r)=>{n.sendEvent(e,r).catch(e=>{t&&console.error(`[Analytics] Failed to send event:`,e);});},l=(e,n)=>{let r=e.promoter_id;return !r&&t&&console.warn(`[Analytics] ${n}() called without promoter_id, skipping`),r};return {track:(e,t={})=>{let n=l(t,`track`);n&&c(o(`track`,e,t),n);},page:(e,t={})=>{let n=l(t,`page`);n&&c(o(`page`,e||`Page Viewed`,t),n);},screen:(e,t={})=>{let n=l(t,`screen`);n&&c(o(`screen`,e||`Screen Viewed`,t),n);},identify:(e,n={})=>{a=e;let o=n.promoter_id;o&&c({type:`identify`,properties:{},context:s(),timestamp:Date.now(),sessionId:r,anonymousId:i,userId:e,traits:n},o),t&&console.log(`[Analytics] User identified:`,e);},alias:(e,n)=>{t&&console.log(`[Analytics] Alias called:`,{userId:e,previousId:n});},group:(e,n={})=>{let o=n.promoter_id;o&&c({type:`group`,properties:{},context:s(),timestamp:Date.now(),sessionId:r,anonymousId:i,userId:a,groupId:e,traits:n},o),t&&console.log(`[Analytics] Group called:`,{groupId:e,traits:n});},reset:()=>{let e=tt();r=e.sessionId,i=e.anonymousId,a=void 0,n.clearCache(),t&&console.log(`[Analytics] Session reset:`,{sessionId:r,anonymousId:i});}}}
458
+ function a(e,t){return e.get(t)||void 0}function o(){if(typeof window>`u`)return;let e=new URLSearchParams(window.location.search),t={source:a(e,`utm_source`),medium:a(e,`utm_medium`),name:a(e,`utm_campaign`),term:a(e,`utm_term`),content:a(e,`utm_content`)};return Object.values(t).some(Boolean)?t:void 0}function s(){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:o()}}function c(e,t,n){n&&(e[t]=n);}function l(...e){return e.find(Boolean)}function u(e,t){c(e,`content_name`,t.name),c(e,`value`,l(t.value,t.price)),e.content_type=`product`;}function d(e){return (t,n)=>{e(t,n.product_id),u(t,n);}}function f(e){return (t,n)=>{e(t,n),c(t,`content_category`,n.category);}}function p(e,t){c(e,`value`,l(t.value,t.total));}function m(e,t){c(e,`value`,l(t.value,t.total,t.revenue));}function h(e,t){if(Array.isArray(e))return e.map(t)}const g={"Product Viewed":`ViewContent`,"Product Added":`AddToCart`,"Checkout Started":`InitiateCheckout`,"Payment Info Entered":`AddPaymentInfo`,"Order Completed":`Purchase`},_=new Set([`AddPaymentInfo`,`AddToCart`,`AddToWishlist`,`CompleteRegistration`,`Contact`,`CustomizeProduct`,`Donate`,`FindLocation`,`InitiateCheckout`,`Lead`,`Purchase`,`Schedule`,`Search`,`StartTrial`,`SubmitApplication`,`Subscribe`,`ViewContent`]),v=new Set,y=new Map;function b(){return Array.from(document.scripts??[]).some(e=>e.src.includes(`connect.facebook.net/en_US/fbevents.js`))}function x(e){if(b())return true;let t=document.createElement(`script`);t.async=true,t.src=`https://connect.facebook.net/en_US/fbevents.js`,t.addEventListener?.(`load`,()=>{T(e,`[Facebook Pixel] fbevents.js loaded`);}),t.addEventListener?.(`error`,()=>{T(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),T(e,`[Facebook Pixel] inserted fbevents.js`),true):false}function S(e,t){!t||!Array.isArray(t)||(e.content_ids=t.map(e=>e.product_id).filter(Boolean),e.num_items=t.length,e.contents=h(t,e=>({id:e.product_id,quantity:e.quantity||1,item_price:e.price})));}function ee(e){if(typeof window>`u`)return false;let t=window;if(t.fbq)return x(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,x(e)}function C(e,t){let n=window;typeof window>`u`||!n.fbq||(t?n.fbq(`init`,e,{external_id:t}):n.fbq(`init`,e));}function w(e,t,n){let r=window;typeof window>`u`||!r.fbq||r.fbq(e,t,n);}function T(e,...t){e&&console.log(...t);}function te(e,t,n){let r=y.get(e);return !t||t===r?false:(C(e,t),y.set(e,t),v.add(e),T(n,`[Facebook Pixel] Re-initialized pixel ${e} with userId ${t}`),true)}function ne(e,t,n){C(e,t),v.add(e),t&&y.set(e,t),T(n,`[Facebook Pixel] Initialized pixel ${e}`);}function E(e,t,n){return ee(n)?(te(e,t,n)||v.has(e)||ne(e,t,n),true):false}function re(e,t){t&&(e.content_ids=[t]);}const D=d(re),ie=f(D);function O(e,t){D(e,t),t.product_id&&(e.contents=[{id:t.product_id,quantity:t.quantity||1,item_price:t.price}]);}function k(e,t){S(e,t.products),e.content_type=`product`;}function A(e,t){S(e,t.products),p(e,t),e.content_type=`product`,c(e,`order_id`,t.order_id);}function ae(e,t){S(e,t.products),m(e,t),e.content_type=`product`,c(e,`order_id`,t.order_id);}function oe(e,t){c(e,`value`,t.value),t.product_id&&(e.content_ids=[t.product_id]);}const j={ViewContent:ie,AddToCart:O,InitiateCheckout:A,AddPaymentInfo:A,Purchase:ae,"Product List Viewed":k,"Product Removed":O,"Cart Viewed":A,"Coupon Applied":A,"Coupon Removed":A};function se(e,t){let n={};return c(n,`currency`,t.currency),c(n,`event_id`,t.event_id),(j[e.name]??j[e.sourceName]??oe)(n,t),n}function ce(e){return e.name||`Unknown`}function M(e,t=2){let n=e.trim();if(!n.includes(`%`)||t===0)return n;try{return M(decodeURIComponent(n),t-1)}catch{return n}}function le(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 ue(e){let t=M(ce(e)),n=g[t]||t;return _.has(n)?{method:`track`,name:n,sourceName:t}:{method:`trackCustom`,name:le(n),sourceName:t}}function de(e=false){let t=(t,n)=>{n.fbId&&E(n.fbId,t.userId,e);},n=(t,n)=>{if(!n.fbId||!E(n.fbId,t.userId,e))return;let r=ue(t),i=se(r,t.properties);w(r.method,r.name,i),T(e,`[Facebook Pixel] Sent ${r.name}:`,i);},r=(t,n)=>{n.fbId&&E(n.fbId,t.userId,e)&&(w(`track`,`PageView`,{}),T(e,`[Facebook Pixel] Sent PageView`));};return {name:`Facebook Pixel`,preload:t,track:n,page:r,screen:r,identify:(t,n)=>{!n.fbId||!t.userId||(E(n.fbId,t.userId,e),T(e,`[Facebook Pixel] Identity synced: ${t.userId}`));}}}const fe={"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`},N=new Set;function pe(e){if(typeof window>`u`)return false;let t=window;t.dataLayer=t.dataLayer||[];let n=`gtm-${e}`;if(document.getElementById(n))return true;let r=document.createElement(`script`);r.id=n,r.async=true,r.src=`https://www.googletagmanager.com/gtm.js?id=${e}`,t.dataLayer.push({"gtm.start":Date.now(),event:`gtm.js`});let i=document.getElementsByTagName(`script`)[0];return i?.parentNode?.insertBefore(r,i),true}function P(e){let t=window;typeof window>`u`||!t.dataLayer||t.dataLayer.push(e);}function me(e){return {item_id:e.product_id||e.sku,item_name:e.name,item_category:e.category,price:e.price,quantity:e.quantity||1}}function he(e){return !e.product_id||e.products?[]:[{item_id:e.product_id,item_name:e.name,item_category:e.category,price:e.price,quantity:e.quantity||1}]}function ge(e){return Array.isArray(e.products)?e.products.map(me):[]}function _e(e){return [...he(e),...ge(e)]}function ve(e){return e.find(Boolean)}function F(e,t,n){n&&(e[t]=n);}function ye(e,t,n){t===`purchase`&&n.order_id&&(e.transaction_id=n.order_id);}function be(e,t){let n={items:_e(t)};return F(n,`currency`,t.currency),F(n,`value`,ve([t.value,t.total,t.revenue,t.price])),ye(n,e,t),{event:e,ecommerce:n}}function xe(e,t){return N.has(e)?true:pe(e)?(N.add(e),t&&console.log(`[GTM] Loaded container ${e}`),true):false}function I(e,t){if(e.gtmId)return xe(e.gtmId,t)?e.gtmId:void 0}function L(e,t){F(e,`user_id`,t.userId);}function R(e){e.userId&&P({user_id:e.userId});}function Se(e){let t=e||`Unknown`;return fe[t]||t}function Ce(e,t,n){e&&console.log(t,n);}function we(e=false){return {name:`Google Tag Manager`,preload:(t,n)=>{I(n,e)&&R(t);},track:(t,n)=>{if(!I(n,e))return;let r=Se(t.name);P({ecommerce:null});let i=be(r,t.properties);L(i,t),P(i),Ce(e,`[GTM] Pushed ${r}:`,i);},page:(t,n)=>{if(!I(n,e))return;let r={event:`page_view`,page_location:t.context.page.url,page_path:t.context.page.path,page_title:t.context.page.title};F(r,`page_referrer`,t.context.page.referrer),L(r,t),P(r),e&&console.log(`[GTM] Pushed page_view:`,r);},screen:(t,n)=>{if(!I(n,e))return;let r={event:`screen_view`,screen_name:t.name||`Unknown`};L(r,t),P(r),e&&console.log(`[GTM] Pushed screen_view:`,r);},identify:(t,n)=>{!t.userId||!I(n,e)||(R(t),e&&console.log(`[GTM] Identity synced: ${t.userId}`));}}}const Te=new Set(Object.values(nf));function Ee(e){return e.messageId??`msg_${e.timestamp.toString(36)}`}function De(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 Oe(e){let{event_id:t,team_id:n,promoter_id:r,...i}=e;return {eventId:t,teamId:n,promoterId:r,rest:i}}function ke(e){return !!(e.eventId&&e.teamId&&e.promoterId)}function Ae(e,t,n){e&&console.warn(`[Sessions API] Missing required fields, skipping ${t}:`,{eventId:n.eventId,teamId:n.teamId,promoterId:n.promoterId});}function je(e){return !!(e&&Te.has(e))}function Me(e,t,n){e&&console.warn(`[Sessions API] Invalid or missing eventType "${n}", skipping ${t}`);}function Ne(e,t,n){return n&&t?{...e,name:t}:e}function Pe(e,t,n,r){return {eventId:t.eventId,teamId:t.teamId,promoterId:t.promoterId,eventType:n,messageId:Ee(e),occurredAt:new Date(e.timestamp).toISOString(),properties:Ne(t.rest,e.name,r),context:De(e)}}function Fe(e,t,n){e&&console.log(`[Sessions API] Sending ${t}:`,n);}function Ie(e,t=false){let n=(e,n)=>{t&&console.log(`[Sessions API] Preload received (no-op)`);},r=async(n,r,i)=>{let a=Oe(r.properties);if(!ke(a)){Ae(t,n,a);return}let o=i??r.name;if(!je(o)){Me(t,n,o);return}let s=Pe(r,a,o,i);Fe(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 Le={"Product Viewed":`ViewContent`,"Product Added":`AddToCart`,"Checkout Started":`InitiateCheckout`,"Payment Info Entered":`AddPaymentInfo`,"Order Completed":`Purchase`},z=new Set;function Re(){if(typeof window>`u`)return false;let e=window;if(e.ttq)return true;e.TiktokAnalyticsObject=`ttq`;let t=((...e)=>{t._i=t._i||{},t._t=t._t||{},t._i[e[0]]=e;});t.methods=[`page`,`track`,`identify`,`instances`,`debug`,`on`,`off`,`once`,`ready`,`alias`,`group`,`enableCookie`,`disableCookie`],t.setAndDefer=(e,t)=>{e[t]=(...n)=>{e._t=e._t||{};let r=e._t;r[t]=r[t]||[],r[t]?.push(n);};};for(let e of t.methods)t.setAndDefer(t,e);t.instance=e=>{let n=t._i[e]||[];for(let e of t.methods)t.setAndDefer(n,e);return n},t._i={},t._t={},e.ttq=t;let n=document.createElement(`script`);n.async=true,n.src=`https://analytics.tiktok.com/i18n/pixel/events.js`;let r=document.getElementsByTagName(`script`)[0];return r?.parentNode?.insertBefore(n,r),true}function ze(e){let t=window;typeof window>`u`||!t.ttq||t.ttq(`init`,e);}function B(e,t){let n=window;typeof window>`u`||!n.ttq||n.ttq.instance(e)(`identify`,{external_id:t});}function Be(e,t,n){let r=window;typeof window>`u`||!r.ttq||r.ttq.instance(e)(`track`,t,n);}function Ve(e){let t=window;typeof window>`u`||!t.ttq||t.ttq.instance(e)(`page`);}function V(e,...t){e&&console.log(...t);}function H(e,t){return Re()?z.has(e)?true:(ze(e),z.add(e),V(t,`[TikTok Pixel] Initialized pixel ${e}`),true):false}function He(e,t){c(e,`content_id`,t);}const U=d(He),Ue=f(U);function We(e,t){U(e,t),c(e,`quantity`,t.quantity);}function W(e,t){c(e,`contents`,h(t,e=>({content_id:e.product_id,content_name:e.name,quantity:e.quantity||1,price:e.price})));}function G(e,t){W(e,t.products),p(e,t);}function Ge(e,t){W(e,t.products),m(e,t),c(e,`order_id`,t.order_id);}function Ke(e,t){c(e,`value`,t.value);}const qe={ViewContent:Ue,AddToCart:We,InitiateCheckout:G,AddPaymentInfo:G,Purchase:Ge};function Je(e,t){let n={};return c(n,`currency`,t.currency),c(n,`event_id`,t.event_id),(qe[e]??Ke)(n,t),n}function Ye(e){return e.name||`Unknown`}function Xe(e){let t=Ye(e);return Le[t]||t}function K(e){return e.tikTokId}function Ze(e=false){let t=(t,n)=>{let r=K(n);r&&H(r,e)&&t.userId&&B(r,t.userId);},n=(t,n)=>{let r=K(n);if(!r||!H(r,e))return;let i=Xe(t),a=Je(i,t.properties);Be(r,i,a),V(e,`[TikTok Pixel] Sent ${i}:`,a);},r=(t,n)=>{let r=K(n);r&&H(r,e)&&(Ve(r),V(e,`[TikTok Pixel] Sent page view`));};return {name:`TikTok Pixel`,preload:t,track:n,page:r,screen:r,identify:(t,n)=>{let r=K(n);!r||!t.userId||H(r,e)&&(B(r,t.userId),V(e,`[TikTok Pixel] Identity synced: ${t.userId}`));}}}const Qe={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)},q=[`fbId`,`gtmId`,`tikTokId`];function $e(e){return e||void 0}function et(e){let t=e??{};return Object.fromEntries(q.map(e=>[e,$e(t[e])]))}function tt(e){return q.some(t=>!!e[t])}function nt(e,t,n){e&&console.log(`[DestinationManager] Fetched config for promoter ${t}:`,n);}function rt(e,t,n){e&&console.warn(`[DestinationManager] Failed to fetch promoter ${t} config:`,n);}function it(e,t=false,n={}){let r=new Map,i=new Map,a=n.sessions===false?null:Ie(e,t),o=[n.facebook===false?null:de(t),n.gtm===false?null:we(t),n.tikTok===false?null:Ze(t)].filter(e=>!!e),s=async n=>{try{let r=et((await e.promoter.get({key:n})).promoter?.tracking);return nt(t,n,r),r}catch(e){return rt(t,n,e),{}}},c=(e,n,r)=>{try{u(e,n,r);}catch(n){t&&console.error(`[DestinationManager] ${e.name} error:`,n);}},l=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);}},u=(e,t,n)=>{Qe[t.type]?.(e,t,n);};return {sendEvent:async(e,t)=>{if(!a&&o.length===0)return;let n=o.length>0?await l(t):{};if(a&&c(a,e,n),tt(n))for(let t of o)c(t,e,n);},clearCache:()=>{r.clear(),i.clear();}}}function J(){return typeof document>`u`?null:new Cookies}function at(e){return J()?.get(e)??null}function Y(e,t){let n=J();n&&n.set(e,t,{path:`/`,sameSite:`lax`,secure:window.location.protocol===`https:`});}function ot(e){let t=J();t&&t.remove(e,{path:`/`});}function st(e){if(typeof localStorage>`u`)return null;try{return localStorage.getItem(e)}catch{return null}}function ct(e,t){if(!(typeof localStorage>`u`))try{localStorage.setItem(e,t);}catch{}}function lt(e){if(!(typeof localStorage>`u`))try{localStorage.removeItem(e);}catch{}}const X={deleteCookie:ot,getCookie:at,getItem:st,removeItem:lt,setCookie:Y,setItem:ct};function Z(){return hu(X)}function Q(){return gu(X)}function ut(){return _u(X)}const dt={AUD:{locale:`en-AU`,exponent:2},NZD:{locale:`en-NZ`,exponent:2},GBP:{locale:`en-GB`,exponent:2},USD:{locale:`en-US`,exponent:2},EUR:{locale:`de-DE`,exponent:2},CAD:{locale:`en-CA`,exponent:2},CHF:{locale:`de-CH`,exponent:2},CNY:{locale:`zh-CN`,exponent:2},HKD:{locale:`zh-HK`,exponent:2},SGD:{locale:`en-SG`,exponent:2},INR:{locale:`en-IN`,exponent:2},MXN:{locale:`es-MX`,exponent:2},BRL:{locale:`pt-BR`,exponent:2},ZAR:{locale:`en-ZA`,exponent:2},SEK:{locale:`sv-SE`,exponent:2},NOK:{locale:`nb-NO`,exponent:2},DKK:{locale:`da-DK`,exponent:2},PLN:{locale:`pl-PL`,exponent:2},CZK:{locale:`cs-CZ`,exponent:2},HUF:{locale:`hu-HU`,exponent:2},RON:{locale:`ro-RO`,exponent:2},THB:{locale:`th-TH`,exponent:2},ILS:{locale:`he-IL`,exponent:2},JPY:{locale:`ja-JP`,exponent:0},KRW:{locale:`ko-KR`,exponent:0}},ft={locale:`en-US`,exponent:2};function pt(e,t){let n=dt[t]??ft,r=10**n.exponent;return new Intl.NumberFormat(n.locale,{style:`currency`,currency:t}).format(e/r)}function $(){return globalThis.crypto?.randomUUID?.()??`msg_${Date.now().toString(36)}_${Math.random().toString(36).slice(2)}`}function mt(e=`tenant-web`){let t=s();return {name:e,referrer:t.page.referrer,utmSource:t.campaign?.source,utmMedium:t.campaign?.medium,utmCampaign:t.campaign?.name,sessionId:Z(),anonymousId:Q()}}function ht(e){let t=e.debug??false,n=it(e.client,t,e.destinations),r=Z(),i=Q(),a;t&&console.log(`[Analytics] Initialized:`,{sessionId:r,anonymousId:i});let o=(e,t,n)=>({type:e,name:t,properties:n,context:s(),timestamp:Date.now(),messageId:$(),sessionId:r,anonymousId:i,userId:a}),c=async(e,r)=>{try{await n.sendEvent(e,r);}catch(e){t&&console.error(`[Analytics] Failed to send event:`,e);}},l=(e,n)=>{let r=e.promoter_id;return !r&&t&&console.warn(`[Analytics] ${n}() called without promoter_id, skipping`),r},u=async(e,t={})=>{let n=l(t,`track`);n&&await c(o(`track`,e,t),n);},d=async(e={})=>{let t=l(e,`preload`);t&&await c(o(`preload`,`Preload`,e),t);},f=(e={})=>{d(e);},p=(e,t={})=>{u(e,t);},m=async(e,t={})=>{let n=l(t,`page`);n&&await c(o(`page`,e||`Page Viewed`,t),n);},h=(e,t={})=>{m(e,t);},g=async(e,t={})=>{let n=l(t,`screen`);n&&await c(o(`screen`,e||`Screen Viewed`,t),n);},_=(e,t={})=>{g(e,t);},v=async(e,n={})=>{a=e;let o=n.promoter_id;o&&await c({type:`identify`,properties:{},context:s(),timestamp:Date.now(),messageId:$(),sessionId:r,anonymousId:i,userId:e,traits:n},o),t&&console.log(`[Analytics] User identified:`,e);},y=(e,t={})=>{v(e,t);},b=(e,n)=>{t&&console.log(`[Analytics] Alias called:`,{userId:e,previousId:n});},x=async(e,n={})=>{let o=n.promoter_id;o&&await c({type:`group`,properties:{},context:s(),timestamp:Date.now(),messageId:$(),sessionId:r,anonymousId:i,userId:a,groupId:e,traits:n},o),t&&console.log(`[Analytics] Group called:`,{groupId:e,traits:n});};return {preload:f,preloadAsync:d,track:p,trackAsync:u,page:h,pageAsync:m,screen:_,screenAsync:g,identify:y,identifyAsync:v,alias:b,group:(e,t={})=>{x(e,t);},groupAsync:x,reset:()=>{let e=ut();r=e.sessionId,i=e.anonymousId,a=void 0,n.clearCache(),t&&console.log(`[Analytics] Session reset:`,{sessionId:r,anonymousId:i});}}}
459
459
 
460
460
  var tz$1 = {};
461
461
 
@@ -23285,24 +23285,6 @@ function isNaiveDateTimeFuture(naive, timeZone) {
23285
23285
  return naiveDate > now;
23286
23286
  }
23287
23287
 
23288
- function normalizeCouponCode(value) {
23289
- return value?.trim().toUpperCase() ?? "";
23290
- }
23291
- function createQuoteItemKey(input) {
23292
- return `${input.admissionId}::${input.sectionId ?? "none"}`;
23293
- }
23294
- function createQuoteItemMap(quote) {
23295
- return new Map(
23296
- (quote?.items ?? []).filter((item) => item.kind === "ADMISSION" && item.admissionId).map((item) => [
23297
- createQuoteItemKey({
23298
- admissionId: item.admissionId ?? "",
23299
- sectionId: item.sectionId
23300
- }),
23301
- item
23302
- ])
23303
- );
23304
- }
23305
-
23306
23288
  function toCap(value) {
23307
23289
  if (value == null || value === -1) {
23308
23290
  return Number.POSITIVE_INFINITY;
@@ -23338,6 +23320,24 @@ function isSectionSoldOut(input) {
23338
23320
  );
23339
23321
  }
23340
23322
 
23323
+ function normalizeCouponCode(value) {
23324
+ return value?.trim().toUpperCase() ?? "";
23325
+ }
23326
+ function createQuoteItemKey(input) {
23327
+ return `${input.admissionId}::${input.sectionId ?? "none"}`;
23328
+ }
23329
+ function createQuoteItemMap(quote) {
23330
+ return new Map(
23331
+ (quote?.items ?? []).filter((item) => item.kind === "ADMISSION" && item.admissionId).map((item) => [
23332
+ createQuoteItemKey({
23333
+ admissionId: item.admissionId ?? "",
23334
+ sectionId: item.sectionId
23335
+ }),
23336
+ item
23337
+ ])
23338
+ );
23339
+ }
23340
+
23341
23341
  const UNLIMITED_CAP = 10;
23342
23342
  const SCARCITY_THRESHOLD = 20;
23343
23343
  function selectionKey(admissionId, sectionId) {
@@ -23430,8 +23430,7 @@ function endedStatus(admissions, zone) {
23430
23430
  }
23431
23431
  function salesStatus(event) {
23432
23432
  const sections = sectionsById(event);
23433
- const admissions = event.admissions.filter((admission) => admission.visibility !== "HIDDEN" &&
23434
- hasAdmissionSection(admission, sections));
23433
+ const admissions = event.admissions.filter((admission) => hasAdmissionSection(admission, sections));
23435
23434
  if (admissions.length === 0)
23436
23435
  return undefined;
23437
23436
  if (hasPurchasableAdmissions(event))
@@ -23470,14 +23469,95 @@ function visibleAdmissions(event, mode) {
23470
23469
  return event.admissions.filter((admission) => admission.saleEndsBehavior === "DOOR" &&
23471
23470
  isNaiveDateTimePast(admission.saleEndsAt, zone));
23472
23471
  }
23473
- function sectionItems(sections, admissions) {
23472
+ function isStackableAdmission(input) {
23473
+ if (input.mode === "door")
23474
+ return true;
23475
+ if (!input.event)
23476
+ return true;
23477
+ return !getAdmissionDisplayState({
23478
+ admission: input.admission,
23479
+ event: input.event,
23480
+ section: input.section,
23481
+ }).disabled;
23482
+ }
23483
+ function stackedAdmissionBase(input) {
23484
+ const key = selectionKey(input.admission.id, input.section.id);
23485
+ return getAdmissionPriceDisplay({
23486
+ admission: input.admission,
23487
+ initialPrice: input.initialAdmissionPrices?.[key],
23488
+ previewItem: input.previewItems.get(key),
23489
+ quoteItem: input.quoteItems.get(key),
23490
+ }).base;
23491
+ }
23492
+ function compareStackedAdmissions(input, section) {
23493
+ const previewItems = quoteItemsBySelection(input.previewQuote ?? null);
23494
+ const quoteItems = quoteItemsBySelection(input.quote ?? null);
23495
+ return (a, b) => {
23496
+ const price = stackedAdmissionBase({
23497
+ admission: a,
23498
+ initialAdmissionPrices: input.initialAdmissionPrices,
23499
+ previewItems,
23500
+ quoteItems,
23501
+ section,
23502
+ }) -
23503
+ stackedAdmissionBase({
23504
+ admission: b,
23505
+ initialAdmissionPrices: input.initialAdmissionPrices,
23506
+ previewItems,
23507
+ quoteItems,
23508
+ section,
23509
+ });
23510
+ if (price !== 0)
23511
+ return price;
23512
+ const order = a.order - b.order;
23513
+ if (order !== 0)
23514
+ return order;
23515
+ return a.id.localeCompare(b.id);
23516
+ };
23517
+ }
23518
+ function cap(value) {
23519
+ if (value == null || value === -1)
23520
+ return Number.POSITIVE_INFINITY;
23521
+ return Math.max(0, value);
23522
+ }
23523
+ function shouldShowNextStackedAdmission(admission) {
23524
+ const remaining = cap(admission.available);
23525
+ if (!Number.isFinite(remaining))
23526
+ return false;
23527
+ const limit = cap(admission.limit);
23528
+ if (!Number.isFinite(limit))
23529
+ return remaining < UNLIMITED_CAP;
23530
+ return limit > remaining;
23531
+ }
23532
+ function displayedSectionAdmissions(section, admissions, input) {
23533
+ const sorted = admissions
23534
+ .filter((admission) => admission.sectionId === section.id)
23535
+ .sort((a, b) => a.order - b.order);
23536
+ if (section.visibility !== "STACKED" || sorted.length <= 1) {
23537
+ return sorted;
23538
+ }
23539
+ const mode = input.mode ?? "default";
23540
+ const stackable = sorted.filter((admission) => isStackableAdmission({
23541
+ admission,
23542
+ event: input.event,
23543
+ mode,
23544
+ section,
23545
+ }));
23546
+ const candidates = stackable.length > 0 ? stackable : sorted;
23547
+ const [admission, next] = [...candidates].sort(compareStackedAdmissions(input, section));
23548
+ if (!admission)
23549
+ return [];
23550
+ if (!next || !shouldShowNextStackedAdmission(admission)) {
23551
+ return [admission];
23552
+ }
23553
+ return [admission, next];
23554
+ }
23555
+ function sectionItems(sections, admissions, input) {
23474
23556
  return sections
23475
23557
  .map((section) => ({
23476
23558
  type: "section",
23477
23559
  section,
23478
- admissions: admissions
23479
- .filter((admission) => admission.sectionId === section.id)
23480
- .sort((a, b) => a.order - b.order),
23560
+ admissions: displayedSectionAdmissions(section, admissions, input),
23481
23561
  }))
23482
23562
  .filter((item) => item.admissions.length > 0);
23483
23563
  }
@@ -23486,9 +23566,9 @@ function topLevelOrder(item) {
23486
23566
  return item.section.order;
23487
23567
  return item.admission.order;
23488
23568
  }
23489
- function topLevelTicketItems(sections, admissions) {
23569
+ function topLevelTicketItems(sections, admissions, input = {}) {
23490
23570
  return [
23491
- ...sectionItems(sections, admissions),
23571
+ ...sectionItems(sections, admissions, input),
23492
23572
  ...admissions
23493
23573
  .filter((admission) => !admission.sectionId)
23494
23574
  .map((admission) => ({ type: "admission", admission })),
@@ -23955,9 +24035,11 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
23955
24035
  this.passcodeDenied = false;
23956
24036
  const response = await this.client.event.get({
23957
24037
  key: this.eventId,
24038
+ couponCode: this.appliedCouponCode || undefined,
23958
24039
  passcode: this.activePasscode || undefined,
23959
24040
  });
23960
24041
  this.event = response.event;
24042
+ this.pruneSelectedItems(response.event);
23961
24043
  this.trackLoadedEvent(response.event);
23962
24044
  await this.updatePreviewQuote();
23963
24045
  }
@@ -23970,6 +24052,15 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
23970
24052
  this.loading = false;
23971
24053
  }
23972
24054
  }
24055
+ pruneSelectedItems(event) {
24056
+ const keys = new Set(event.admissions.map((admission) => selectionKey(admission.id, admission.sectionId ?? null)));
24057
+ const selected = Array.from(this.selectedItems).filter(([key]) => keys.has(key));
24058
+ if (selected.length === this.selectedItems.size)
24059
+ return;
24060
+ this.selectedItems = new Map(selected);
24061
+ this.quote = null;
24062
+ this.quoteError = null;
24063
+ }
23973
24064
  trackLoadedEvent(event) {
23974
24065
  this.setupAnalytics(event);
23975
24066
  this.trackProductViewed(event);
@@ -23982,7 +24073,7 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
23982
24073
  setupAnalytics(event) {
23983
24074
  if (!this.enableAnalytics || this.analytics || !event.promoterId)
23984
24075
  return;
23985
- this.analytics = at({
24076
+ this.analytics = ht({
23986
24077
  client: this.client,
23987
24078
  debug: this.debugAnalytics,
23988
24079
  });
@@ -24256,6 +24347,7 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
24256
24347
  this.couponInput = "";
24257
24348
  const coupon = this.appliedCouponCode;
24258
24349
  this.appliedCouponCode = "";
24350
+ await this.loadEventData();
24259
24351
  this.previewRequestId++;
24260
24352
  this.previewLoading = false;
24261
24353
  this.previewQuote = null;
@@ -24264,8 +24356,17 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
24264
24356
  async applyCartCoupon(coupon) {
24265
24357
  this.requestId++;
24266
24358
  const currentId = this.requestId;
24359
+ const previousCoupon = this.appliedCouponCode;
24267
24360
  try {
24268
24361
  this.quoteLoading = true;
24362
+ this.appliedCouponCode = coupon;
24363
+ await this.loadEventData();
24364
+ if (currentId !== this.requestId)
24365
+ return;
24366
+ if (this.selectedItems.size === 0) {
24367
+ await this.applyPreviewCoupon(coupon);
24368
+ return;
24369
+ }
24269
24370
  const response = await this.fetchCartQuote(coupon);
24270
24371
  if (currentId !== this.requestId)
24271
24372
  return;
@@ -24275,6 +24376,9 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
24275
24376
  this.trackCouponApplied(coupon, response.quote);
24276
24377
  }
24277
24378
  catch (_err) {
24379
+ if (currentId === this.requestId) {
24380
+ this.appliedCouponCode = previousCoupon;
24381
+ }
24278
24382
  this.handleCouponError(currentId);
24279
24383
  this.trackCouponDenied(coupon);
24280
24384
  }
@@ -24285,6 +24389,17 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
24285
24389
  }
24286
24390
  }
24287
24391
  async applyPreviewCoupon(coupon) {
24392
+ const previousCoupon = this.appliedCouponCode;
24393
+ this.appliedCouponCode = coupon;
24394
+ try {
24395
+ await this.loadEventData();
24396
+ }
24397
+ catch (_err) {
24398
+ this.appliedCouponCode = previousCoupon;
24399
+ this.setCouponError();
24400
+ this.trackCouponDenied(coupon);
24401
+ return;
24402
+ }
24288
24403
  const event = this.event;
24289
24404
  if (!event)
24290
24405
  return;
@@ -24329,6 +24444,14 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
24329
24444
  const coupon = this.appliedCouponCode;
24330
24445
  try {
24331
24446
  this.quoteLoading = true;
24447
+ this.appliedCouponCode = "";
24448
+ await this.loadEventData();
24449
+ if (this.selectedItems.size === 0) {
24450
+ this.couponInput = "";
24451
+ this.previewQuote = null;
24452
+ this.trackCouponRemoved(coupon, null);
24453
+ return;
24454
+ }
24332
24455
  const response = await this.fetchCartQuote("");
24333
24456
  if (currentId !== this.requestId)
24334
24457
  return;
@@ -24413,6 +24536,7 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
24413
24536
  items: this.getCheckoutItems(this.quote),
24414
24537
  couponCode: this.appliedCouponCode || undefined,
24415
24538
  returnUrl: this.returnUrl,
24539
+ channel: mt("elements"),
24416
24540
  });
24417
24541
  this.handleCheckoutOrder(result.order);
24418
24542
  }
@@ -24429,6 +24553,14 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
24429
24553
  products: this.getCheckoutProducts(),
24430
24554
  });
24431
24555
  }
24556
+ trackExternalTicketClick(url, surface) {
24557
+ this.trackEvent("Checkout Started", {
24558
+ ticketing_mode: "external",
24559
+ external_ticket_url: url,
24560
+ external_ticket_domain: urlDomain(url),
24561
+ cta_surface: surface,
24562
+ });
24563
+ }
24432
24564
  getCheckoutItems(quote) {
24433
24565
  return quote.items.map((item) => ({
24434
24566
  quantity: item.quantity,
@@ -24523,7 +24655,7 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
24523
24655
  }).format(priceInCents / 100);
24524
24656
  }
24525
24657
  try {
24526
- return it(priceInCents, currency);
24658
+ return pt(priceInCents, currency);
24527
24659
  }
24528
24660
  catch (error) {
24529
24661
  console.error("formatPrice failed, using fallback", {
@@ -24572,7 +24704,7 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
24572
24704
  renderQuantityControls(admission, sectionId, disabled, maxQuantity) {
24573
24705
  const key = selectionKey(admission.id, sectionId);
24574
24706
  const quantity = this.selectedItems.get(key) || 0;
24575
- return (h$2("div", { class: "quantity-controls" }, h$2("button", { type: "button", class: "quantity-btn decrease", onClick: () => this.handleQuantityDecrease(admission.id, sectionId), disabled: disabled || quantity === 0, "aria-label": "Decrease quantity" }, "\u2212"), h$2("input", { class: "quantity-value", type: "number", min: "0", max: maxQuantity, inputmode: "numeric", value: quantity, onInput: (e) => this.handleQuantityInput(admission.id, sectionId, e), disabled: disabled, "aria-label": `Quantity for ${admission.name}` }), h$2("button", { type: "button", class: "quantity-btn increase", onClick: () => this.handleQuantityIncrease(admission.id, sectionId), disabled: disabled || quantity >= maxQuantity, "aria-label": "Increase quantity" }, "+")));
24707
+ return (h$2("div", { class: "quantity-controls" }, h$2("button", { type: "button", class: "quantity-btn decrease", onClick: () => this.handleQuantityDecrease(admission.id, sectionId), disabled: disabled || quantity === 0, "aria-label": "Decrease quantity", "data-testid": "event-admission-decrement" }, "\u2212"), h$2("input", { class: "quantity-value", type: "number", min: "0", max: maxQuantity, inputmode: "numeric", value: quantity, onInput: (e) => this.handleQuantityInput(admission.id, sectionId, e), disabled: disabled, "aria-label": `Quantity for ${admission.name}`, "data-testid": "event-admission-quantity-input" }), h$2("button", { type: "button", class: "quantity-btn increase", onClick: () => this.handleQuantityIncrease(admission.id, sectionId), disabled: disabled || quantity >= maxQuantity, "aria-label": "Increase quantity", "data-testid": "event-admission-increment" }, "+")));
24576
24708
  }
24577
24709
  getMaxQuantity(admission, sectionId) {
24578
24710
  if (!this.event)
@@ -24647,7 +24779,7 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
24647
24779
  sectionSoldOut: isSectionSoldOut,
24648
24780
  });
24649
24781
  const sectionId = section?.id || null;
24650
- return (h$2("section", { class: this.getAdmissionClassName(state, section), key: selectionKey(admission.id, sectionId), tabindex: state.disabled ? -1 : 0, "aria-label": this.getAdmissionAriaLabel(admission, section, state) }, h$2("div", { class: "admission-content" }, h$2("div", { class: "admission-details" }, this.renderAdmissionHeader(admission), this.renderAdmissionBody(admission, event, sectionId, state, mode)))));
24782
+ return (h$2("section", { class: this.getAdmissionClassName(state, section), key: selectionKey(admission.id, sectionId), tabindex: state.disabled ? -1 : 0, "aria-label": this.getAdmissionAriaLabel(admission, section, state), "data-testid": "event-admission-card", "data-admission-id": admission.id, "data-admission-name": admission.name, "data-section-id": section?.id ?? "" }, h$2("div", { class: "admission-content" }, h$2("div", { class: "admission-details" }, this.renderAdmissionHeader(admission), this.renderAdmissionBody(admission, event, sectionId, state, mode)))));
24651
24783
  }
24652
24784
  getAdmissionClassName(state, section) {
24653
24785
  return `admission-card ${state.soldOut ? "sold-out" : ""} ${state.disabled && !state.soldOut ? "unavailable" : ""} ${section ? "" : "solo-admission"}`;
@@ -24773,7 +24905,7 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
24773
24905
  return this.formatPriceValue(total);
24774
24906
  }
24775
24907
  renderCheckoutActions() {
24776
- return (h$2("div", { class: "checkout-actions" }, this.renderCouponPanel(), this.quoteError && h$2("div", { class: "error-message" }, this.quoteError), h$2("button", { type: "button", class: "checkout-btn", onClick: () => this.initiateCheckout(), disabled: this.isCheckoutDisabled(), "aria-label": this.quoteLoading ? "Updating" : undefined }, this.renderCheckoutButtonContent())));
24908
+ return (h$2("div", { class: "checkout-actions" }, this.renderCouponPanel(), this.quoteError && h$2("div", { class: "error-message" }, this.quoteError), h$2("button", { type: "button", class: "checkout-btn", onClick: () => this.initiateCheckout(), disabled: this.isCheckoutDisabled(), "aria-label": this.quoteLoading ? "Updating" : undefined, "data-testid": "event-checkout-cta-desktop" }, this.renderCheckoutButtonContent())));
24777
24909
  }
24778
24910
  renderStickyCheckout(state) {
24779
24911
  if (!this.stickyCheckout)
@@ -24788,7 +24920,7 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
24788
24920
  if (!state.externalTicketUrl)
24789
24921
  return null;
24790
24922
  const domain = urlDomain(state.externalTicketUrl);
24791
- return (h$2("div", { class: "sticky-checkout-bar" }, h$2("a", { class: "external-ticket-button sticky-checkout-btn", href: state.externalTicketUrl, target: "_blank", rel: "noreferrer" }, h$2("span", { class: "external-ticket-label" }, "Get tickets"), h$2("span", { class: "external-ticket-domain" }, "via ", domain))));
24923
+ return (h$2("div", { class: "sticky-checkout-bar" }, h$2("a", { class: "external-ticket-button sticky-checkout-btn", href: state.externalTicketUrl, target: "_blank", rel: "noreferrer", onClick: () => this.trackExternalTicketClick(state.externalTicketUrl, "sticky") }, h$2("span", { class: "external-ticket-label" }, "Get tickets"), h$2("span", { class: "external-ticket-domain" }, "via ", domain))));
24792
24924
  }
24793
24925
  renderModal() {
24794
24926
  if (!this.openModalAdmissionId)
@@ -24803,7 +24935,13 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
24803
24935
  renderTicketSections(event) {
24804
24936
  const state = getTicketingState(event);
24805
24937
  const mode = state.isDoorOnly ? "door" : "default";
24806
- const items = topLevelTicketItems(event.sections, visibleAdmissions(event, mode));
24938
+ const items = topLevelTicketItems(event.sections, visibleAdmissions(event, mode), {
24939
+ event,
24940
+ initialAdmissionPrices: this.activeInitialAdmissionPrices(),
24941
+ mode,
24942
+ previewQuote: this.previewQuote,
24943
+ quote: this.quote,
24944
+ });
24807
24945
  return (h$2("div", { class: "tickets-wrapper" }, this.renderDoorAlert(event, mode), h$2("h2", { class: "tickets-heading" }, state.ticketHeading), items.map((item) => this.renderTopLevelItem(item, event, mode))));
24808
24946
  }
24809
24947
  renderTopLevelItem(item, event, mode) {
@@ -24848,7 +24986,7 @@ const SessionsTicketing = /*@__PURE__*/ proxyCustomElement(class SessionsTicketi
24848
24986
  const domain = urlDomain(state.externalTicketUrl);
24849
24987
  if (!state.externalTicketUrl)
24850
24988
  return null;
24851
- return (h$2("div", { class: "tickets-wrapper" }, h$2("h2", { class: "tickets-heading" }, state.ticketHeading), h$2("div", { class: "external-ticket-panel" }, h$2("p", { class: "external-ticket-warning" }, "This event sells through an external ticketing site. Checkout, tickets, and support are handled there."), h$2("a", { class: "external-ticket-button inline-external-ticket-button", href: state.externalTicketUrl, target: "_blank", rel: "noreferrer" }, h$2("span", { class: "external-ticket-label" }, "Get tickets"), h$2("span", { class: "external-ticket-domain" }, "via ", domain)))));
24989
+ return (h$2("div", { class: "tickets-wrapper" }, h$2("h2", { class: "tickets-heading" }, state.ticketHeading), h$2("div", { class: "external-ticket-panel" }, h$2("p", { class: "external-ticket-warning" }, "This event sells through an external ticketing site. Checkout, tickets, and support are handled there."), h$2("a", { class: "external-ticket-button inline-external-ticket-button", href: state.externalTicketUrl, target: "_blank", rel: "noreferrer", onClick: () => this.trackExternalTicketClick(state.externalTicketUrl, "inline") }, h$2("span", { class: "external-ticket-label" }, "Get tickets"), h$2("span", { class: "external-ticket-domain" }, "via ", domain)))));
24852
24990
  }
24853
24991
  renderUnavailableState(state) {
24854
24992
  return (h$2("div", { class: "empty-ticketing-state" }, h$2("strong", null, "Tickets Unavailable"), h$2("span", null, state.isEnded