@session-services/web-elements 0.1.22 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/session-services-ticketing.cjs.entry.js +51 -24
- package/dist/collection/components/session-services-ticketing/session-services-ticketing.css +101 -60
- package/dist/collection/components/session-services-ticketing/session-services-ticketing.js +46 -17
- package/dist/collection/components/session-services-ticketing/session-services-ticketing.test.js +72 -2
- package/dist/components/session-services-ticketing.js +51 -24
- package/dist/esm/session-services-ticketing.entry.js +51 -24
- package/dist/session-services-elements/{p-94173d1b.entry.js → p-f40762bb.entry.js} +1 -1
- package/dist/session-services-elements/session-services-elements.esm.js +1 -1
- package/dist/types/components/session-services-ticketing/session-services-ticketing.d.ts +2 -0
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,g as n,h as r,H as i}from"./p-CNOpF6tk.js";function o(e){return Array.isArray(e)?e:null==e?[]:[e]}const a="orpc";var s=class extends Error{constructor(...e){super(...e),this.name="AbortError"}};function d(e){let t;return()=>{if(t)return t.result;let n=e();return t={result:n},n}}function c(){return globalThis["__@orpc/shared@1.13.7/otel/config__"]}function u(e,t={},n){return(c()?.tracer)?.startSpan(e,t,n)}function l(e,t,n={}){if(!e)return;let r=function(e){if(e instanceof Error){let t={message:e.message,name:e.name,stack:e.stack};return"code"in e&&("string"==typeof e.code||"number"==typeof e.code)&&(t.code=e.code),t}return{message:String(e)}}(t);e.recordException(r),(!n.signal?.aborted||n.signal.reason!==t)&&e.setStatus({code:2,message:r.message})}async function p({name:e,context:t,...n},r){let i=c()?.tracer;if(!i)return r();let o=async e=>{try{return await r(e)}catch(t){throw l(e,t,n),t}finally{e.end()}};return t?i.startActiveSpan(e,n,t,o):i.startActiveSpan(e,n,o)}async function m(e,t){let n=c();if(!e||!n)return t();let r=n.trace.setSpan(n.context.active(),e);return n.context.with(r,t)}function f(e){return!(!e||"object"!=typeof e)&&"next"in e&&"function"==typeof e.next&&Symbol.asyncIterator in e&&"function"==typeof e[Symbol.asyncIterator]}const h=Symbol.for("asyncDispose"),v=Symbol.asyncDispose??h;var g=class{#e=!1;#t=!1;#n;#r;constructor(e,t){this.#n=t,this.#r=function(e){let t=Promise.resolve();return(...n)=>t=t.catch((()=>{})).then((()=>e(...n)))}((async()=>{if(this.#e)return{done:!0,value:void 0};try{let t=await e();return t.done&&(this.#e=!0),t}catch(e){throw this.#e=!0,e}finally{this.#e&&!this.#t&&(this.#t=!0,await this.#n("next"))}}))}next(){return this.#r()}async return(e){return this.#e=!0,this.#t||(this.#t=!0,await this.#n("return")),{done:!0,value:e}}async throw(e){throw this.#e=!0,this.#t||(this.#t=!0,await this.#n("throw")),e}async[v](){this.#e=!0,this.#t||(this.#t=!0,await this.#n("dispose"))}[Symbol.asyncIterator](){return this}};function y({name:e,...t},n){let r;return new g((async()=>{r??=u(e);try{let e=await m(r,(()=>n.next()));return r?.addEvent(e.done?"completed":"yielded"),e}catch(e){throw l(r,e,t),e}}),(async e=>{try{"next"!==e&&await m(r,(()=>n.return?.()))}catch(e){throw l(r,e,t),e}finally{r?.end()}}))}function b(e,t,n){let r=(t,i)=>{let o=e[i];return o?o({...t,next:(e=t)=>r(e,i+1)}):n(t)};return r(t,0)}function w(e){if(e)return JSON.parse(e)}function $(e){return JSON.stringify(e)}function I(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||!t||!t.constructor}function k(e){return!!e&&("object"==typeof e||"function"==typeof e)}function x(e,t){let n=e;for(let e of t){if(!k(n))return;n=n[e]}return n}const E=(()=>{let e=function(){};return e.prototype=Object.create(null),Object.freeze(e.prototype),e})();function A(e,...t){return"function"==typeof e?e(...t):e}function T(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return"then"!==t||"function"!=typeof r?r:new Proxy(r,{apply(t,n,r){if(2!==r.length||r.some((e=>!function(e){return"function"==typeof e&&O.test(e.toString())}(e))))return Reflect.apply(t,n,r);let i=!0;r[0].call(n,T(new Proxy(e,{get:(e,t,n)=>{if(!i||"then"!==t)return Reflect.get(e,t,n);i=!1}})))}})}})}const O=/^\s*function\s*\(\)\s*\{\s*\[native code\]\s*\}\s*$/,_={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"}},D=Symbol.for("__@orpc/client@1.13.7/error/ORPC_ERROR_CONSTRUCTORS__");globalThis[D]??=new WeakSet;const S=globalThis[D];var M=class extends Error{defined;code;status;data;constructor(e,...t){let n=function(e){return e[0]??{}}(t);if(void 0!==n.status&&!j(n.status))throw Error("[ORPCError] Invalid error status code.");let r=function(e,t){return t||_[e]?.message||e}(e,n.message);super(r,n),this.code=e,this.status=function(e,t){return t??_[e]?.status??500}(e,n.status),this.defined=n.defined??!1,this.data=n.data}toJSON(){return{defined:this.defined,code:this.code,status:this.status,message:this.message,data:this.data}}static[Symbol.hasInstance](e){if(S.has(this)){let t=function(e){return k(e)?Object.getPrototypeOf(e)?.constructor:null}(e);if(t&&S.has(t))return!0}return super[Symbol.hasInstance](e)}};function P(e){return e instanceof M?e:new M("INTERNAL_SERVER_ERROR",{message:"Internal server error",cause:e})}function j(e){return e<200||e>=400}function C(e){if(!I(e))return!1;let t=["defined","code","status","message","data"];return!Object.keys(e).some((e=>!t.includes(e)))&&"defined"in e&&"boolean"==typeof e.defined&&"code"in e&&"string"==typeof e.code&&"status"in e&&"number"==typeof e.status&&j(e.status)&&"message"in e&&"string"==typeof e.message}function N(e,t={}){return new M(e.code,{...t,...e})}S.add(M);var R=class extends TypeError{},U=class extends TypeError{},L=class extends Error{data;constructor(e){super(e?.message??"An error event was received",e),this.data=e?.data}};function q(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=-1===t?e:e.slice(0,t),i=-1===t?"":e.slice(t+1).replace(/^\s/,"");if(0===t)n.comments.push(i);else if("data"===r)n.data??="",n.data+=`${i}\n`;else if("event"===r)n.event=i;else if("id"===r)n.id=i;else if("retry"===r){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 G=class{constructor(e={}){this.options=e}incomplete="";feed(e){this.incomplete+=e;let t=this.incomplete.lastIndexOf("\n\n");if(-1===t)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=q(`${e}\n\n`);this.options.onEvent&&this.options.onEvent(t)}}end(){if(this.incomplete)throw new U("Event Iterator ended before complete")}},z=class extends TransformStream{constructor(){let e;super({start(t){e=new G({onEvent:e=>{t.enqueue(e)}})},transform(t){e.feed(t)},flush(){e.end()}})}};function F(e){if(e.includes("\n"))throw new R("Event's id must not contain a newline character")}function B(e){if(!Number.isInteger(e)||e<0)throw new R("Event's retry must be a integer and >= 0")}function W(e){if(e.includes("\n"))throw new R("Event's comment must not contain a newline character")}function Z(e){let t="";return t+=function(e){let t="";for(let n of e??[])W(n),t+=`: ${n}\n`;return t}(e.comments),void 0!==e.event&&(function(e){if(e.includes("\n"))throw new R("Event's event must not contain a newline character")}(e.event),t+=`event: ${e.event}\n`),void 0!==e.retry&&(B(e.retry),t+=`retry: ${e.retry}\n`),void 0!==e.id&&(F(e.id),t+=`id: ${e.id}\n`),t+=function(e){let t=e?.split(/\n/)??[],n="";for(let e of t)n+=`data: ${e}\n`;return n}(e.data),t+="\n",t}const Y=Symbol("ORPC_EVENT_SOURCE_META");function V(e,t){if(void 0===t.id&&void 0===t.retry&&!t.comments?.length)return e;if(void 0!==t.id&&F(t.id),void 0!==t.retry&&B(t.retry),void 0!==t.comments)for(let e of t.comments)W(e);return new Proxy(e,{get:(e,n,r)=>n===Y?t:Reflect.get(e,n,r)})}function H(e){return k(e)?Reflect.get(e,Y):void 0}function K(e,t){let n={...e};for(let e in t)Array.isArray(t[e])?n[e]=[...o(n[e]),...t[e]]:void 0!==t[e]&&(n[e]=Array.isArray(n[e])?[...n[e],t[e]]:void 0===n[e]?t[e]:[n[e],t[e]]);return n}function J(e,t){let n=async e=>{let n=await t.error(e);if(n!==e){let t=H(e);t&&k(n)&&(n=V(n,t))}return n};return new g((async()=>{let{done:r,value:i}=await(async()=>{try{return await e.next()}catch(e){throw await n(e)}})(),o=await t.value(i,r);if(o!==i){let e=H(i);e&&k(o)&&(o=V(o,e))}return{done:r,value:o}}),(async()=>{try{await(e.return?.())}catch(e){throw await n(e)}}))}function Q(e,t={}){let n=t.path??[];return T(new Proxy((async(...[t,r={}])=>await e.call(n,t,function(e){return{...e,context:e.context??{}}}(r))),{get:(t,r)=>"string"==typeof r?Q(e,{path:[...n,r]}):Reflect.get(t,r)}))}function X(e,t={}){return p({name:"parse_standard_body",signal:t.signal},(async()=>{let n=e.headers.get("content-disposition");if("string"==typeof n){let t=function(e){let t=e.match(/filename\*=(UTF-8'')?([^;]*)/i);if(t&&"string"==typeof t[2])return function(e){try{return decodeURIComponent(e)}catch{return e}}(t[2]);let n=e.match(/filename="((?:\\"|[^"])*)"/i);return n&&"string"==typeof n[1]?n[1].replace(/\\"/g,'"'):void 0}(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 w(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 function(e,t={}){let n,r=(e?.pipeThrough(new TextDecoderStream).pipeThrough(new z))?.getReader(),i=!1;return new g((async()=>{n??=u("consume_event_iterator_stream");try{for(;;){if(void 0===r)return{done:!0,value:void 0};let{done:e,value:t}=await m(n,(()=>r.read()));if(e){if(i)throw new s("Stream was cancelled");return{done:!0,value:void 0}}switch(t.event){case"message":{let e=w(t.data);return k(e)&&(e=V(e,t)),n?.addEvent("message"),{done:!1,value:e}}case"error":{let e=new L({data:w(t.data)});throw e=V(e,t),n?.addEvent("error"),e}case"done":{let e=w(t.data);return k(e)&&(e=V(e,t)),n?.addEvent("done"),{done:!0,value:e}}default:n?.addEvent("maybe_keepalive")}}}catch(e){throw e instanceof L||l(n,e,t),e}}),(async e=>{try{"next"!==e&&(i=!0,n?.addEvent("cancelled")),await m(n,(()=>r?.cancel()))}catch(e){throw l(n,e,t),e}finally{n?.end()}}))}(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 ee(e,t={}){return e.forEach(((e,n)=>{Array.isArray(t[n])?t[n].push(e):t[n]=void 0===t[n]?e:[t[n],e]})),t}function te(e,t={}){let n=function(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 void 0!==r&&t.append(n,r);return t}(e.headers),r=function(e,t,n={}){let r=t.get("content-disposition");if(t.delete("content-type"),t.delete("content-disposition"),void 0!==e)return e instanceof Blob?(t.set("content-type",e.type),t.set("content-length",e.size.toString()),t.set("content-disposition",r??function(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))))}`}(e instanceof File?e.name:"blob")),e):e instanceof FormData||e instanceof URLSearchParams?e:f(e)?(t.set("content-type","text/event-stream"),function(e,t={}){let n,r,i=t.eventIteratorKeepAliveEnabled??!0,o=t.eventIteratorKeepAliveInterval??5e3,a=t.eventIteratorKeepAliveComment??"",s=t.eventIteratorInitialCommentEnabled??!0,d=t.eventIteratorInitialComment??"",c=!1;return new ReadableStream({start(e){r=u("stream_event_iterator"),s&&e.enqueue(Z({comments:[d]}))},async pull(t){try{i&&(n=setInterval((()=>{t.enqueue(Z({comments:[a]})),r?.addEvent("keepalive")}),o));let s=await m(r,(()=>e.next()));if(clearInterval(n),c)return;let d=H(s.value);if(!s.done||void 0!==s.value||void 0!==d){let e=s.done?"done":"message";t.enqueue(Z({...d,event:e,data:$(s.value)})),r?.addEvent(e)}s.done&&(t.close(),r?.end())}catch(e){if(clearInterval(n),c)return;e instanceof L?(t.enqueue(Z({...H(e),event:"error",data:$(e.data)})),r?.addEvent("error"),t.close()):(l(r,e),t.error(e)),r?.end()}},async cancel(){try{c=!0,clearInterval(n),r?.addEvent("cancelled"),await m(r,(()=>e.return?.()))}catch(e){throw l(r,e),e}finally{r?.end()}}}).pipeThrough(new TextEncoderStream)}(e,n)):(t.set("content-type","application/json"),$(e))}(e.body,n,t);return new Request(e.url,{signal:e.signal,method:e.method,headers:n,body:r})}var ne=class{plugins;constructor(e=[]){this.plugins=[...e].sort(((e,t)=>(e.order??0)-(t.order??0)))}init(e){for(let t of this.plugins)t.init?.(e)}},re=class{constructor(e,t,n={}){this.codec=e,this.sender=t,new ne(n.plugins).init(n),this.interceptors=o(n.interceptors),this.clientInterceptors=o(n.clientInterceptors)}interceptors;clientInterceptors;call(e,t,n){return p({name:`${a}.${e.join("/")}`,signal:n.signal},(r=>(r?.setAttribute("rpc.system",a),r?.setAttribute("rpc.method",e.join(".")),f(t)&&(t=y({name:"consume_event_iterator_input",signal:n.signal},t)),b(this.interceptors,{...n,path:e,input:t},(async({path:e,input:t,...n})=>{let i,o=c(),a=o?.trace.getActiveSpan()??r;a&&o&&(i=o?.trace.setSpan(o.context.active(),a));let s=await p({name:"encode_request",context:i},(()=>this.codec.encode(e,t,n))),d=await b(this.clientInterceptors,{...n,input:t,path:e,request:s},(({input:e,path:t,request:n,...r})=>p({name:"send_request",signal:r.signal,context:i},(()=>this.sender.call(n,r,t,e))))),u=await p({name:"decode_response",context:i},(()=>this.codec.decode(d,n,e,t)));return f(u)?y({name:"consume_event_iterator_output",signal:n.signal},u):u})))))}};function ie(e){return`/${e.map(encodeURIComponent).join("/")}`}function oe(e,t){return{...e,...t}}var ae=class{"~orpc";constructor(e){if(e.route?.successStatus&&j(e.route.successStatus))throw Error("[ContractProcedure] Invalid successStatus.");if(Object.values(e.errorMap).some((e=>e&&e.status&&!j(e.status))))throw Error("[ContractProcedure] Invalid error status code.");this["~orpc"]=e}};function se(e){return e instanceof ae||("object"==typeof e||"function"==typeof e)&&null!==e&&"~orpc"in e&&"object"==typeof e["~orpc"]&&null!==e["~orpc"]&&"errorMap"in e["~orpc"]&&"route"in e["~orpc"]&&"meta"in e["~orpc"]}function de(e,t){return{...e,...t}}function ce(e,t){return{...e,...t}}function ue(e,t){return e?`${e}${t}`:t}function le(e,t){return e?[...e,...t]:t}function pe(e,t){let n=e;return t.prefix&&(n=function(e,t){return e.path?{...e,path:`${t}${e.path}`}:e}(n,t.prefix)),t.tags?.length&&(n=function(e,t){return{...e,tags:[...t,...e.tags??[]]}}(n,t.tags)),n}function me(e,t){if(se(e))return new ae({...e["~orpc"],errorMap:oe(t.errorMap,e["~orpc"].errorMap),route:pe(e["~orpc"].route,t)});let n={};for(let r in e)n[r]=me(e[r],t);return n}const fe=new class e extends ae{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:oe(this["~orpc"].errorMap,t)})}meta(t){return new e({...this["~orpc"],meta:de(this["~orpc"].meta,t)})}route(t){return new e({...this["~orpc"],route:ce(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:ue(this["~orpc"].prefix,t)})}tag(...t){return new e({...this["~orpc"],tags:le(this["~orpc"].tags,t)})}router(e){return me(e,this["~orpc"])}}({errorMap:{},route:{},meta:{}}),he={defaultMethod:"POST",defaultSuccessStatus:200,defaultSuccessDescription:"OK",defaultInputStructure:"compact",defaultOutputStructure:"compact"};function ve(e,t){return void 0===t?he[e]:t}const ge=Symbol.for("constructDateFrom");function ye(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&ge in e?e[ge](t):e instanceof Date?new e.constructor(t):new Date(t)}function be(e,t){let n=function(e){return ye(e,e)}(e);return isNaN(t)?ye(e,NaN):(t&&n.setDate(n.getDate()+t),n)}const we={},$e={};function Ie(e,t){try{let n=(we[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return n in $e?$e[n]:xe(n,n.split(":"))}catch{if(e in $e)return $e[e];let t=e?.match(ke);return t?xe(e,t.slice(1)):NaN}}const ke=/([+-]\d\d):?(\d\d)?/;function xe(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return $e[e]=60*n+r>0?60*n+r+i:60*n-r-i}var Ee=class e extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(Ie(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),Oe(this),Te(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=-Ie(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Te(this),+this}[Symbol.for("constructDateFrom")](t){return new e(+new Date(t),this.timeZone)}};const Ae=/^(get|set)(?!UTC)/;function Te(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(60*-Ie(e.timeZone,e)))}function Oe(e){let t=Ie(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(),o=i- -new Date(+r).getTimezoneOffset(),a=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();o&&a&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+o);let s=i-n;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);let d=new Date(+e);d.setUTCSeconds(0);let c=i>0?d.getSeconds():(d.getSeconds()-60)%60,u=Math.round(-60*Ie(e.timeZone,e))%60;(u||c)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+u),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+u+c));let l=Ie(e.timeZone,e),p=l>0?Math.floor(l):Math.ceil(l),m=-new Date(+e).getTimezoneOffset()-p-s;if(p!==n&&m){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+m);let t=Ie(e.timeZone,e),n=p-(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 _e(e){return("string"==typeof e?new Date(e):e).toISOString().replace(/\.\d{3}Z$/,"")}let De;function Se(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:a,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=a.prototype,o=Object.keys(i);for(let e=0;e<o.length;e++){let t=o[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class o extends i{}function a(e){var t;let i=n?.Parent?new o:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,"name",{value:e}),Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:t=>!!(n?.Parent&&t instanceof n.Parent)||t?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}Object.getOwnPropertyNames(Date.prototype).forEach((e=>{if(!Ae.test(e))return;let t=e.replace(Ae,"$1UTC");Ee.prototype[t]&&(e.startsWith("get")?Ee.prototype[e]=function(){return this.internal[t]()}:(Ee.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),function(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()),Oe(e)}(this),+this},Ee.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Te(this),+this}))})),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:!1};e.EmailVerification={id:"emlvrf_01jps5cgsd4tzjghtnt45qnhn0",userId:"usr_01jps5cgsd4tzjghtnt45qnhn0",tenantId:t.id,email:"test@session.services",code:"123456",expiresAt:new Date(Date.now()+18e5).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()+9e5).toISOString(),emailVerified:!1,twoFactorVerified:!1,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:!1},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:!1};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:!1};let o=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:!0,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:!0,tenantId:t.id},e.TeamInvite={id:"inv_01jqpjksnsen9vprw95et60t4m",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),expiresAt:Math.floor(be(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:!0,promoters:[{...i,member:o}]},e.Session={id:"sess_01jps5cgsd4tzjghtnt45qnhn0",userId:n.id,tenantId:t.id,expiresAt:be(new Date,30).toISOString(),twoFactorVerified:!1,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()},e.BackupCode={id:"bkc_01jps5cgsd4tzjghtnt45qnhn0",userId:n.id,tenantId:t.id,code:"ABC123DEF456",used:!1,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:!0,expiresAt:be(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:!0,credentialBackupState:!1,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:!1,credentialBackupState:!1,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:!0,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()};let a=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:_e(be(new Date,1)),entryEndsAt:_e(be(new Date,2)),publishAt:_e(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:a,teamId:r.id,promoterId:i.id,tenantId:t.id,deleted:!1},d=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:a,passcode:void 0,tenantId:t.id,deleted:!1,orderPadded:"0000000000"},c=e.Admission={id:"adm_01jps5cgsee0xvapbk92e8eb4g",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),sectionId:d.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:_e(be(new Date,1)),entryEndsAt:_e(be(new Date,2)),saleStartsAt:_e(new Date),saleEndsAt:_e(be(new Date,2)),saleEndsBehavior:"SALE_ENDED",price:{base:1e3,booking:200,currency:"AUD"},visibility:"ALWAYS",passcode:void 0,tenantId:t.id,deleted:!1,orderPadded:"0000000000"};e.DetailedEvent={...s,admissions:[c],sections:[d]};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 l=e.Coupon={id:"cpn_01jps5cgsfzs1ksqaet5hba8ac",couponId:"cpn_01jps5cgsfzs1ksqaet5hba8ac",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),name:"Half Price",active:!0,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:!1},p=e.CouponCode={id:"cod_01jps5cgsfzftw7hxcvr2wftk2",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),active:!0,name:"TEST50",uses:0,tenantId:t.id,couponId:l.id,teamId:r.id,deleted:!1},m=e.AmountCoupon={id:"cpn_01jps5cgsfndn8jcsfvh72x811",couponId:"cpn_01jps5cgsfndn8jcsfvh72x811",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),name:"Half Price",active:!0,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:!0,name:"TEST5DOLLAR",uses:0,tenantId:t.id,couponId:m.id,teamId:r.id};let f=e.Customer={id:"cus_01jps5cgsf4pn2a32eamppnap1",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),firstName:"Test",lastName:"User",email:"test@session.services",phone:"+61411111111",tenantId:t.id},h=e.PayoutTransfer={id:"xfr_01jq8s6c38f97w9yfrfcdhf47v",createdAt:(new Date).toISOString(),kind:"TICKETS",amount:1e3,currency:"AUD",fee:0,feeCurrency:"AUD",reference:"XYZ",gateway:"AIRWALLEX",gatewayId:"fe33fb0f-d9d8-47cd-8eef-6a19bd6223eb",beneficiary:u.name,beneficiaryId:u.id},v=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},g=e.Payout={id:"pyt_01jps5cgsfv2wre6hd0rc4w4t8",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),paidAt:(new Date).toISOString(),status:"PAID",method:"AIRWALLEX",structure:"DEFAULT",approval:"PENDING",frequency:"AFTER_EVENT",transfers:[h],deductions:[v],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},y=e.OrderItem={id:"itm_01jps5cgsfwyxj0516571eaf17",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),orderId:"ord_01jps5cgsfgve5b5g2666kyryh",kind:"ADMISSION",quantity:2,admissionId:c.id,sectionId:d.id,price:{net:c.price.base+c.price.booking,total:c.price.base+c.price.booking,gross:c.price.base+c.price.booking,base:c.price.base,booking:c.price.booking,refunded:0,discount:0,currency:c.price.currency}};e.OrderFee={id:"fee_01jps5cgsgamykd6kh2t738qkh",createdAt:(new Date).toISOString(),reason:"Gateway Fee",amount:-30,currency:"AUD",requestId:"att_sgpdz4v2ph1axmdmdx8_m8w6qv"};let b=e.OrderOffer={kind:"SMS_DELIVERY",label:"SMS ticket delivery",price:{amount:200,currency:"AUD"}},w=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:p.id,name:p.name},event:{id:s.id,name:s.name,slug:s.slug},fees:[],items:[y],customer:De.Customer,customerId:De.Customer.id,teamId:De.Team.id,promoterId:De.Promoter.id,promoterSlug:De.Promoter.slug,eventId:De.Event.id,eventSlug:De.Event.slug,payment:{method:"AIRWALLEX",source:"CARD"},payoutIds:[g.id],refunds:[],offers:[b],tenantId:De.Tenant.id,checkoutUrl:`${t.baseUrl.dev}/checkout/ord_01jps5cgsfgve5b5g2666kyryh`,signature:"Q2hXbG9uZ1NpZzE2"},$=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:!0,ticketsCancelledCount:2,gateway:"STRIPE",gatewayRefundId:"re_1234567890abcdef",initiatedBy:"USER",userId:n.id,createdAt:(new Date).toISOString()},e.OrderRefundItem={orderItemId:y.id,quantity:2,amount:1200,ticketIds:["tkt_01jps5cgsg0s32w2pr73vbccde"]},e.Notification={id:"ntf_01jps5cgsfgve5b5g2666kyryh",aggregateType:"ORDER",aggregateId:w.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:[$],token:"7b81e13025f78f9935d5933eec3ab25e3c2bb811c99f2470182dd6ba4394ff82",attendee:{email:f.email,firstName:f.firstName,lastName:f.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:c.id,name:c.name,price:c.price,entryStartsAt:c.entryStartsAt,entryEndsAt:c.entryEndsAt},eventId:s.id,admissionId:c.id,customerId:f.id,orderId:w.id,orderItemId:y.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id}}(De||={});var Me=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Pe=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};const je={};function Ce(){return je}function Ne(e,t){return"bigint"==typeof t?t.toString():t}function Re(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Ue(e){return null==e}function Le(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const qe=Symbol("evaluating");function Ge(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==qe)return void 0===r&&(r=qe,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function ze(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Fe(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function Be(e){return JSON.stringify(e)}const We="captureStackTrace"in Error?Error.captureStackTrace:()=>{};function Ze(e){return"object"==typeof e&&!!e&&!Array.isArray(e)}const Ye=Re((()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch{return!1}}));function Ve(e){if(!1===Ze(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let n=t.prototype;return!(!1===Ze(n)||!1===Object.prototype.hasOwnProperty.call(n,"isPrototypeOf"))}function He(e){return Ve(e)?{...e}:Array.isArray(e)?[...e]:e}const Ke=new Set(["string","number","symbol"]);function Je(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Qe(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Xe(e){let t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(void 0!==t?.message){if(void 0!==t?.error)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,"string"==typeof t.error?{...t,error:()=>t.error}:t}const et={safeint:[-9007199254740991,2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function tt(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(!0!==e.issues[n]?.continue)return!0;return!1}function nt(e,t){return t.map((t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t}))}function rt(e){return"string"==typeof e?e:e?.message}function it(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=rt(e.inst?._zod.def?.error?.(e))??rt(t?.error?.(e))??rt(n.customError?.(e))??rt(n.localeError?.(e))??"Invalid input"),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function ot(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function at(...e){let[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}const st=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ne,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},dt=Se("$ZodError",st),ct=Se("$ZodError",st,{Parent:Error}),ut=e=>(t,n,r,i)=>{let o=r?Object.assign(r,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Me;if(a.issues.length){let t=new(i?.Err??e)(a.issues.map((e=>it(e,o,Ce()))));throw We(t,i?.callee),t}return a.value},lt=e=>async(t,n,r,i)=>{let o=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let t=new(i?.Err??e)(a.issues.map((e=>it(e,o,Ce()))));throw We(t,i?.callee),t}return a.value},pt=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new Me;return o.issues.length?{success:!1,error:new(e??dt)(o.issues.map((e=>it(e,i,Ce()))))}:{success:!0,data:o.value}},mt=pt(ct),ft=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map((e=>it(e,i,Ce()))))}:{success:!0,data:o.value}},ht=ft(ct),vt=/^[cC][^\s-]{8,}$/,gt=/^[0-9a-z]+$/,yt=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,bt=/^[0-9a-vA-V]{20}$/,wt=/^[A-Za-z0-9]{27}$/,$t=/^[a-zA-Z0-9_-]{21}$/,It=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,kt=/^([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})$/,xt=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Et=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,At=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Tt=/^(([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}|:))$/,Ot=/^((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])$/,_t=/^(([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])$/,Dt=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,St=/^[A-Za-z0-9_-]*$/,Mt=/^\+(?:[0-9]){6,14}[0-9]$/,Pt="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",jt=RegExp(`^${Pt}$`);function Ct(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}const Nt=/^-?\d+$/,Rt=/^-?\d+(?:\.\d+)?/,Ut=/^(?:true|false)$/i,Lt=/^null$/i,qt=/^[^A-Z]*$/,Gt=/^[^a-z]*$/,zt=Se("$ZodCheck",((e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])})),Ft={number:"number",bigint:"bigint",object:"date"},Bt=Se("$ZodCheckLessThan",((e,t)=>{zt.init(e,t);let n=Ft[typeof t.value];e._zod.onattach.push((e=>{let n=e._zod.bag;t.value<((t.inclusive?n.maximum:n.exclusiveMaximum)??1/0)&&(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})}})),Wt=Se("$ZodCheckGreaterThan",((e,t)=>{zt.init(e,t);let n=Ft[typeof t.value];e._zod.onattach.push((e=>{let n=e._zod.bag;t.value>((t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0)&&(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})}})),Zt=Se("$ZodCheckMultipleOf",((e,t)=>{zt.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.");("bigint"==typeof n.value?n.value%t.value===BigInt(0):0===function(e,t){let n=(e.toString().split(".")[1]||"").length,r=t.toString(),i=(r.split(".")[1]||"").length;if(0===i&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let o=n>i?n:i;return Number.parseInt(e.toFixed(o).replace(".",""))%Number.parseInt(t.toFixed(o).replace(".",""))/10**o}(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}})),Yt=Se("$ZodCheckNumberFormat",((e,t)=>{zt.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[i,o]=et[t.format];e._zod.onattach.push((e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=o,n&&(r.pattern=Nt)})),e._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s))return void a.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void a.issues.push(s>0?{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}:{input:s,code:"too_small",minimum:-9007199254740991,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort})}s<i&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inst:e})}})),Vt=Se("$ZodCheckMaxLength",((e,t)=>{var n;zt.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ue(t)&&void 0!==t.length}),e._zod.onattach.push((e=>{t.maximum<(e._zod.bag.maximum??1/0)&&(e._zod.bag.maximum=t.maximum)})),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=ot(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}})),Ht=Se("$ZodCheckMinLength",((e,t)=>{var n;zt.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ue(t)&&void 0!==t.length}),e._zod.onattach.push((e=>{t.minimum>(e._zod.bag.minimum??-1/0)&&(e._zod.bag.minimum=t.minimum)})),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=ot(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}})),Kt=Se("$ZodCheckLengthEquals",((e,t)=>{var n;zt.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ue(t)&&void 0!==t.length}),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 o=ot(r);n.issues.push({origin:o,...i>t.length?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}})),Jt=Se("$ZodCheckStringFormat",((e,t)=>{var n,r;zt.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=()=>{})})),Qt=Se("$ZodCheckRegex",((e,t)=>{Jt.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})}})),Xt=Se("$ZodCheckLowerCase",((e,t)=>{t.pattern??=qt,Jt.init(e,t)})),en=Se("$ZodCheckUpperCase",((e,t)=>{t.pattern??=Gt,Jt.init(e,t)})),tn=Se("$ZodCheckIncludes",((e,t)=>{zt.init(e,t);let n=Je(t.includes),r=new RegExp("number"==typeof t.position?`^.{${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})}})),nn=Se("$ZodCheckStartsWith",((e,t)=>{zt.init(e,t);let n=RegExp(`^${Je(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})}})),rn=Se("$ZodCheckEndsWith",((e,t)=>{zt.init(e,t);let n=RegExp(`.*${Je(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})}})),on=Se("$ZodCheckOverwrite",((e,t)=>{zt.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}));var an=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});let t=e.split("\n").filter((e=>e)),n=Math.min(...t.map((e=>e.length-e.trimStart().length))),r=t.map((e=>e.slice(n))).map((e=>" ".repeat(2*this.indent)+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("\n"))}};const sn={major:4,minor:1,patch:13},dn=Se("$ZodType",((e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=sn;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(0===r.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push((()=>{e._zod.run=e._zod.parse}));else{let t=(e,t,n)=>{let r,i=tt(e);for(let o of t){if(o._zod.def.when){if(!o._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,a=o._zod.check(e);if(a instanceof Promise&&!1===n?.async)throw new Me;if(r||a instanceof Promise)r=(r??Promise.resolve()).then((async()=>{await a,e.issues.length!==t&&(i||=tt(e,t))}));else{if(e.issues.length===t)continue;i||=tt(e,t)}}return r?r.then((()=>e)):e},n=(n,i,o)=>{if(tt(n))return n.aborted=!0,n;let a=t(i,r,o);if(a instanceof Promise){if(!1===o.async)throw new Me;return a.then((t=>e._zod.parse(t,o)))}return e._zod.parse(a,o)};e._zod.run=(i,o)=>{if(o.skipChecks)return e._zod.parse(i,o);if("backward"===o.direction){let t=e._zod.parse({value:i.value,issues:[]},{...o,skipChecks:!0});return t instanceof Promise?t.then((e=>n(e,i,o))):n(t,i,o)}let a=e._zod.parse(i,o);if(a instanceof Promise){if(!1===o.async)throw new Me;return a.then((e=>t(e,r,o)))}return t(a,r,o)}}e["~standard"]={validate:t=>{try{let n=mt(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return ht(e,t).then((e=>e.success?{value:e.data}:{issues:e.error?.issues}))}},vendor:"zod",version:1}})),cn=Se("$ZodString",((e,t)=>{dn.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(e=>RegExp(`^${e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*"}$`))(e._zod.bag),e._zod.parse=n=>{if(t.coerce)try{n.value=String(n.value)}catch{}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}})),un=Se("$ZodStringFormat",((e,t)=>{Jt.init(e,t),cn.init(e,t)})),ln=Se("$ZodGUID",((e,t)=>{t.pattern??=kt,un.init(e,t)})),pn=Se("$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(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=xt(e)}else t.pattern??=xt();un.init(e,t)})),mn=Se("$ZodEmail",((e,t)=>{t.pattern??=Et,un.init(e,t)})),fn=Se("$ZodURL",((e,t)=>{un.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);return 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})),void(n.value=t.normalize?i.href:r)}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}})),hn=Se("$ZodEmoji",((e,t)=>{t.pattern??=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u"),un.init(e,t)})),vn=Se("$ZodNanoID",((e,t)=>{t.pattern??=$t,un.init(e,t)})),gn=Se("$ZodCUID",((e,t)=>{t.pattern??=vt,un.init(e,t)})),yn=Se("$ZodCUID2",((e,t)=>{t.pattern??=gt,un.init(e,t)})),bn=Se("$ZodULID",((e,t)=>{t.pattern??=yt,un.init(e,t)})),wn=Se("$ZodXID",((e,t)=>{t.pattern??=bt,un.init(e,t)})),$n=Se("$ZodKSUID",((e,t)=>{t.pattern??=wt,un.init(e,t)})),In=Se("$ZodISODateTime",((e,t)=>{t.pattern??=function(e){let t=Ct({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${t}(?:${n.join("|")})`;return RegExp(`^${Pt}T(?:${r})$`)}(t),un.init(e,t)})),kn=Se("$ZodISODate",((e,t)=>{t.pattern??=jt,un.init(e,t)})),xn=Se("$ZodISOTime",((e,t)=>{t.pattern??=function(e){return RegExp(`^${Ct(e)}$`)}(t),un.init(e,t)})),En=Se("$ZodISODuration",((e,t)=>{t.pattern??=It,un.init(e,t)})),An=Se("$ZodIPv4",((e,t)=>{t.pattern??=At,un.init(e,t),e._zod.bag.format="ipv4"})),Tn=Se("$ZodIPv6",((e,t)=>{t.pattern??=Tt,un.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})}}})),On=Se("$ZodCIDRv4",((e,t)=>{t.pattern??=Ot,un.init(e,t)})),_n=Se("$ZodCIDRv6",((e,t)=>{t.pattern??=_t,un.init(e,t),e._zod.check=n=>{let r=n.value.split("/");try{if(2!==r.length)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 Dn(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const Sn=Se("$ZodBase64",((e,t)=>{t.pattern??=Dt,un.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Dn(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}})),Mn=Se("$ZodBase64URL",((e,t)=>{t.pattern??=St,un.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{(function(e){if(!St.test(e))return!1;let t=e.replace(/[-_]/g,(e=>"-"===e?"+":"/"));return Dn(t.padEnd(4*Math.ceil(t.length/4),"="))})(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}})),Pn=Se("$ZodE164",((e,t)=>{t.pattern??=Mt,un.init(e,t)})),jn=Se("$ZodJWT",((e,t)=>{un.init(e,t),e._zod.check=n=>{(function(e,t=null){try{let n=e.split(".");if(3!==n.length)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!("typ"in i&&"JWT"!==i?.typ||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}})(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}})),Cn=Se("$ZodNumber",((e,t)=>{dn.init(e,t),e._zod.pattern=e._zod.bag.pattern??Rt,e._zod.parse=n=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let r=n.value;if("number"==typeof r&&!Number.isNaN(r)&&Number.isFinite(r))return n;let i="number"==typeof r?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),n}})),Nn=Se("$ZodNumberFormat",((e,t)=>{Yt.init(e,t),Cn.init(e,t)})),Rn=Se("$ZodBoolean",((e,t)=>{dn.init(e,t),e._zod.pattern=Ut,e._zod.parse=n=>{if(t.coerce)try{n.value=!!n.value}catch{}let r=n.value;return"boolean"==typeof r||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}})),Un=Se("$ZodNull",((e,t)=>{dn.init(e,t),e._zod.pattern=Lt,e._zod.values=new Set([null]),e._zod.parse=t=>{let n=t.value;return null===n||t.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),t}})),Ln=Se("$ZodAny",((e,t)=>{dn.init(e,t),e._zod.parse=e=>e})),qn=Se("$ZodUnknown",((e,t)=>{dn.init(e,t),e._zod.parse=e=>e})),Gn=Se("$ZodNever",((e,t)=>{dn.init(e,t),e._zod.parse=t=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)})),zn=Se("$ZodVoid",((e,t)=>{dn.init(e,t),e._zod.parse=t=>{let n=t.value;return void 0===n||t.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),t}})),Fn=Se("$ZodDate",((e,t)=>{dn.init(e,t),e._zod.parse=n=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let r=n.value,i=r instanceof Date;return i&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...i?{received:"Invalid Date"}:{},inst:e}),n}}));function Bn(e,t,n){e.issues.length&&t.issues.push(...nt(n,e.issues)),t.value[n]=e.value}const Wn=Se("$ZodArray",((e,t)=>{dn.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 o=[];for(let e=0;e<i.length;e++){let a=t.element._zod.run({value:i[e],issues:[]},r);a instanceof Promise?o.push(a.then((t=>Bn(t,n,e)))):Bn(a,n,e)}return o.length?Promise.all(o).then((()=>n)):n}}));function Zn(e,t,n,r){e.issues.length&&t.issues.push(...nt(n,e.issues)),void 0===e.value?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Yn(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=function(e){return Object.keys(e).filter((t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout))}(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Vn(e,t,n,r,i,o){let a=[],s=i.keySet,d=i.catchall._zod,c=d.def.type;for(let i in t){if(s.has(i))continue;if("never"===c){a.push(i);continue}let o=d.run({value:t[i],issues:[]},r);o instanceof Promise?e.push(o.then((e=>Zn(e,n,i,t)))):Zn(o,n,i,t)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then((()=>n)):n}const Hn=Se("$ZodObject",((e,t)=>{if(dn.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=Re((()=>Yn(t)));Ge(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,i=Ze,o=t.catchall;e._zod.parse=(t,a)=>{r??=n.value;let s=t.value;if(!i(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value={};let d=[],c=r.shape;for(let e of r.keys){let n=c[e]._zod.run({value:s[e],issues:[]},a);n instanceof Promise?d.push(n.then((n=>Zn(n,t,e,s)))):Zn(n,t,e,s)}return o?Vn(d,s,t,a,n.value,e):d.length?Promise.all(d).then((()=>t)):t}})),Kn=Se("$ZodObjectJIT",((e,t)=>{Hn.init(e,t);let n,r,i=e._zod.parse,o=Re((()=>Yn(t))),a=Ze,s=!je.jitless,d=s&&Ye.value,c=t.catchall;e._zod.parse=(u,l)=>{r??=o.value;let p=u.value;return a(p)?s&&d&&!1===l?.async&&!0!==l.jitless?(n||=(e=>{let t=new an(["shape","payload","ctx"]),n=o.value,r=e=>{let t=Be(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),a=0;for(let e of n.keys)i[e]="key_"+a++;t.write("const newResult = {};");for(let e of n.keys){let n=i[e],o=Be(e);t.write(`const ${n} = ${r(e)};`),t.write(`\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}]\n })));\n }\n \n \n if (${n}.value === undefined) {\n if (${o} in input) {\n newResult[${o}] = undefined;\n }\n } else {\n newResult[${o}] = ${n}.value;\n }\n \n `)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,n)=>s(e,t,n)})(t.shape),u=n(u,l),c?Vn([],p,u,l,r,e):u):i(u,l):(u.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),u)}}));function Jn(e,t,n,r){for(let n of e)if(0===n.issues.length)return t.value=n.value,t;let i=e.filter((e=>!tt(e)));return 1===i.length?(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=>it(e,r,Ce())))))}),t)}const Qn=Se("$ZodUnion",((e,t)=>{dn.init(e,t),Ge(e._zod,"optin",(()=>t.options.some((e=>"optional"===e._zod.optin))?"optional":void 0)),Ge(e._zod,"optout",(()=>t.options.some((e=>"optional"===e._zod.optout))?"optional":void 0)),Ge(e._zod,"values",(()=>{if(t.options.every((e=>e._zod.values)))return new Set(t.options.flatMap((e=>Array.from(e._zod.values))))})),Ge(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=>Le(e.source))).join("|")})$`)}}));let n=1===t.options.length,r=t.options[0]._zod.run;e._zod.parse=(i,o)=>{if(n)return r(i,o);let a=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},o);if(t instanceof Promise)s.push(t),a=!0;else{if(0===t.issues.length)return t;s.push(t)}}return a?Promise.all(s).then((t=>Jn(t,i,e,o))):Jn(s,i,e,o)}})),Xn=Se("$ZodDiscriminatedUnion",((e,t)=>{Qn.init(e,t);let n=e._zod.parse;Ge(e._zod,"propValues",(()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||0===Object.keys(r).length)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=Re((()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||0===e.size)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,o)=>{let a=i.value;if(!Ze(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;let s=r.value.get(a?.[t.discriminator]);return s?s._zod.run(i,o):t.unionFallback?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),i)}})),er=Se("$ZodIntersection",((e,t)=>{dn.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),o=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then((([t,n])=>nr(e,t,n))):nr(e,i,o)}}));function tr(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ve(e)&&Ve(t)){let n=Object.keys(t),r=Object.keys(e).filter((e=>-1!==n.indexOf(e))),i={...e,...t};for(let n of r){let r=tr(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=tr(e[r],t[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function nr(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),tt(e))return e;let r=tr(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const rr=Se("$ZodRecord",((e,t)=>{dn.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Ve(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;let o=[],a=t.keyType._zod.values;if(a){n.value={};let s,d=new Set;for(let e of a)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){d.add("number"==typeof e?e.toString():e);let a=t.valueType._zod.run({value:i[e],issues:[]},r);a instanceof Promise?o.push(a.then((t=>{t.issues.length&&n.issues.push(...nt(e,t.issues)),n.value[e]=t.value}))):(a.issues.length&&n.issues.push(...nt(e,a.issues)),n.value[e]=a.value)}for(let e in i)d.has(e)||(s??=[],s.push(e));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else{n.value={};for(let a of Reflect.ownKeys(i)){if("__proto__"===a)continue;let s=t.keyType._zod.run({value:a,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=>it(e,r,Ce()))),input:a,path:[a],inst:e}),n.value[s.value]=s.value;continue}let d=t.valueType._zod.run({value:i[a],issues:[]},r);d instanceof Promise?o.push(d.then((e=>{e.issues.length&&n.issues.push(...nt(a,e.issues)),n.value[s.value]=e.value}))):(d.issues.length&&n.issues.push(...nt(a,d.issues)),n.value[s.value]=d.value)}}return o.length?Promise.all(o).then((()=>n)):n}})),ir=Se("$ZodEnum",((e,t)=>{dn.init(e,t);let n=function(e){let t=Object.values(e).filter((e=>"number"==typeof e));return Object.entries(e).filter((([e,n])=>-1===t.indexOf(+e))).map((([e,t])=>t))}(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter((e=>Ke.has(typeof e))).map((e=>"string"==typeof e?Je(e):e.toString())).join("|")})$`),e._zod.parse=t=>{let i=t.value;return r.has(i)||t.issues.push({code:"invalid_value",values:n,input:i,inst:e}),t}})),or=Se("$ZodLiteral",((e,t)=>{if(dn.init(e,t),0===t.values.length)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=>"string"==typeof e?Je(e):e?Je(e.toString()):String(e))).join("|")})$`),e._zod.parse=r=>{let i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}})),ar=Se("$ZodTransform",((e,t)=>{dn.init(e,t),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new Pe(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 Me;return n.value=i,n}}));function sr(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}const dr=Se("$ZodOptional",((e,t)=>{dn.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ge(e._zod,"values",(()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0)),Ge(e._zod,"pattern",(()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Le(e.source)})?$`):void 0})),e._zod.parse=(e,n)=>{if("optional"===t.innerType._zod.optin){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then((t=>sr(t,e.value))):sr(r,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,n)}})),cr=Se("$ZodNullable",((e,t)=>{dn.init(e,t),Ge(e._zod,"optin",(()=>t.innerType._zod.optin)),Ge(e._zod,"optout",(()=>t.innerType._zod.optout)),Ge(e._zod,"pattern",(()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Le(e.source)}|null)$`):void 0})),Ge(e._zod,"values",(()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0)),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)})),ur=Se("$ZodDefault",((e,t)=>{dn.init(e,t),e._zod.optin="optional",Ge(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);if(void 0===e.value)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then((e=>lr(e,t))):lr(r,t)}}));function lr(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}const pr=Se("$ZodPrefault",((e,t)=>{dn.init(e,t),e._zod.optin="optional",Ge(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,n)=>("backward"===n.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))})),mr=Se("$ZodNonOptional",((e,t)=>{dn.init(e,t),Ge(e._zod,"values",(()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter((e=>void 0!==e))):void 0})),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then((t=>fr(t,e))):fr(i,e)}}));function fr(e,t){return!e.issues.length&&void 0===e.value&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const hr=Se("$ZodCatch",((e,t)=>{dn.init(e,t),Ge(e._zod,"optin",(()=>t.innerType._zod.optin)),Ge(e._zod,"optout",(()=>t.innerType._zod.optout)),Ge(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,n)=>{if("backward"===n.direction)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=>it(e,n,Ce())))},input:e.value}),e.issues=[]),e))):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map((e=>it(e,n,Ce())))},input:e.value}),e.issues=[]),e)}})),vr=Se("$ZodPipe",((e,t)=>{dn.init(e,t),Ge(e._zod,"values",(()=>t.in._zod.values)),Ge(e._zod,"optin",(()=>t.in._zod.optin)),Ge(e._zod,"optout",(()=>t.out._zod.optout)),Ge(e._zod,"propValues",(()=>t.in._zod.propValues)),e._zod.parse=(e,n)=>{if("backward"===n.direction){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then((e=>gr(e,t.in,n))):gr(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then((e=>gr(e,t.out,n))):gr(r,t.out,n)}}));function gr(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const yr=Se("$ZodReadonly",((e,t)=>{dn.init(e,t),Ge(e._zod,"propValues",(()=>t.innerType._zod.propValues)),Ge(e._zod,"values",(()=>t.innerType._zod.values)),Ge(e._zod,"optin",(()=>t.innerType?._zod?.optin)),Ge(e._zod,"optout",(()=>t.innerType?._zod?.optout)),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(br):br(r)}}));function br(e){return e.value=Object.freeze(e.value),e}const wr=Se("$ZodLazy",((e,t)=>{dn.init(e,t),Ge(e._zod,"innerType",(()=>t.getter())),Ge(e._zod,"pattern",(()=>e._zod.innerType?._zod?.pattern)),Ge(e._zod,"propValues",(()=>e._zod.innerType?._zod?.propValues)),Ge(e._zod,"optin",(()=>e._zod.innerType?._zod?.optin??void 0)),Ge(e._zod,"optout",(()=>e._zod.innerType?._zod?.optout??void 0)),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)})),$r=Se("$ZodCustom",((e,t)=>{zt.init(e,t),dn.init(e,t),e._zod.parse=e=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then((t=>Ir(t,n,r,e)));Ir(i,n,r,e)}}));function Ir(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(at(e))}}var kr;(kr=globalThis).__zod_globalRegistry??(kr.__zod_globalRegistry=new class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&"object"==typeof n&&"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&&"object"==typeof t&&"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)}});const xr=globalThis.__zod_globalRegistry;function Er(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Xe(t)})}function Ar(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Xe(t)})}function Tr(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Xe(t)})}function Or(e,t){return new Bt({check:"less_than",...Xe(t),value:e,inclusive:!1})}function _r(e,t){return new Bt({check:"less_than",...Xe(t),value:e,inclusive:!0})}function Dr(e,t){return new Wt({check:"greater_than",...Xe(t),value:e,inclusive:!1})}function Sr(e,t){return new Wt({check:"greater_than",...Xe(t),value:e,inclusive:!0})}function Mr(e,t){return new Zt({check:"multiple_of",...Xe(t),value:e})}function Pr(e,t){return new Vt({check:"max_length",...Xe(t),maximum:e})}function jr(e,t){return new Ht({check:"min_length",...Xe(t),minimum:e})}function Cr(e,t){return new Kt({check:"length_equals",...Xe(t),length:e})}function Nr(e){return new on({check:"overwrite",tx:e})}const Rr=Se("ZodISODateTime",((e,t)=>{In.init(e,t),di.init(e,t)}));function Ur(e){return new Rr({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Xe(e)})}const Lr=Se("ZodISODate",((e,t)=>{kn.init(e,t),di.init(e,t)}));function qr(e){return new Lr({type:"string",format:"date",check:"string_format",...Xe(e)})}const Gr=Se("ZodISOTime",((e,t)=>{xn.init(e,t),di.init(e,t)}));const zr=Se("ZodISODuration",((e,t)=>{En.init(e,t),di.init(e,t)}));const Fr=(e,t)=>{dt.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>function(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code&&i.errors.length)i.errors.map((e=>r({issues:e})));else if("invalid_key"===i.code)r({issues:i.issues});else if("invalid_element"===i.code)r({issues:i.issues});else if(0===i.path.length)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}(e,t)},flatten:{value:t=>function(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}}(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Ne,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Ne,2)}},isEmpty:{get:()=>0===e.issues.length}})};Se("ZodError",Fr);const Br=Se("ZodError",Fr,{Parent:Error}),Wr=ut(Br),Zr=lt(Br),Yr=pt(Br),Vr=ft(Br),Hr=(ai=Br,(e,t,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ut(ai)(e,t,r)}),Kr=(e=>(t,n,r)=>ut(e)(t,n,r))(Br),Jr=(e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return lt(e)(t,n,i)})(Br),Qr=(e=>async(t,n,r)=>lt(e)(t,n,r))(Br),Xr=(e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return pt(e)(t,n,i)})(Br),ei=(e=>(t,n,r)=>pt(e)(t,n,r))(Br),ti=(e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return ft(e)(t,n,i)})(Br),ni=(e=>async(t,n,r)=>ft(e)(t,n,r))(Br),ri=Se("ZodType",((e,t)=>(dn.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Fe(t,{checks:[...t.checks??[],...n.map((e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e))]})),e.clone=(t,n)=>Qe(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e),e.parse=(t,n)=>Wr(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Yr(e,t,n),e.parseAsync=async(t,n)=>Zr(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Vr(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Hr(e,t,n),e.decode=(t,n)=>Kr(e,t,n),e.encodeAsync=async(t,n)=>Jr(e,t,n),e.decodeAsync=async(t,n)=>Qr(e,t,n),e.safeEncode=(t,n)=>Xr(e,t,n),e.safeDecode=(t,n)=>ei(e,t,n),e.safeEncodeAsync=async(t,n)=>ti(e,t,n),e.safeDecodeAsync=async(t,n)=>ni(e,t,n),e.refine=(t,n)=>e.check(function(e,t={}){return function(e,t,n){return new xo({type:"custom",check:"custom",fn:t,...Xe(n)})}(0,e,t)}(t,n)),e.superRefine=t=>e.check(function(e){return function(e){let t=function(e){let t=new zt({check:"custom",...Xe(void 0)});return t._zod.check=e,t}((n=>(n.addIssue=e=>{if("string"==typeof e)n.issues.push(at(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??="custom",r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(at(r))}},e(n.value,n))));return t}(e)}(t)),e.overwrite=t=>e.check(Nr(t)),e.optional=()=>mo(e),e.nullable=()=>ho(e),e.nullish=()=>mo(ho(e)),e.nonoptional=t=>function(e,t){return new yo({type:"nonoptional",innerType:e,...Xe(t)})}(e,t),e.array=()=>Vi(e),e.or=t=>Qi([e,t]),e.and=t=>no(e,t),e.transform=t=>$o(e,lo(t)),e.default=t=>function(e,t){return new vo({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():He(t)}})}(e,t),e.prefault=t=>function(e,t){return new go({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():He(t)}})}(e,t),e.catch=t=>function(e,t){return new bo({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}(e,t),e.pipe=t=>$o(e,t),e.readonly=()=>function(e){return new Io({type:"readonly",innerType:e})}(e),e.describe=t=>{let n=e.clone();return xr.add(n,{description:t}),n},Object.defineProperty(e,"description",{get:()=>xr.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return xr.get(e);let n=e.clone();return xr.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e))),ii=Se("_ZodString",((e,t)=>{cn.init(e,t),ri.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(function(e,t){return new Qt({check:"string_format",format:"regex",...Xe(t),pattern:e})}(...t)),e.includes=(...t)=>e.check(function(e,t){return new tn({check:"string_format",format:"includes",...Xe(t),includes:e})}(...t)),e.startsWith=(...t)=>e.check(function(e,t){return new nn({check:"string_format",format:"starts_with",...Xe(t),prefix:e})}(...t)),e.endsWith=(...t)=>e.check(function(e,t){return new rn({check:"string_format",format:"ends_with",...Xe(t),suffix:e})}(...t)),e.min=(...t)=>e.check(jr(...t)),e.max=(...t)=>e.check(Pr(...t)),e.length=(...t)=>e.check(Cr(...t)),e.nonempty=(...t)=>e.check(jr(1,...t)),e.lowercase=t=>e.check(function(e){return new Xt({check:"string_format",format:"lowercase",...Xe(e)})}(t)),e.uppercase=t=>e.check(function(e){return new en({check:"string_format",format:"uppercase",...Xe(e)})}(t)),e.trim=()=>e.check(Nr((e=>e.trim()))),e.normalize=(...t)=>e.check(function(e){return Nr((t=>t.normalize(e)))}(...t)),e.toLowerCase=()=>e.check(Nr((e=>e.toLowerCase()))),e.toUpperCase=()=>e.check(Nr((e=>e.toUpperCase()))),e.slugify=()=>e.check(Nr((e=>function(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}(e))))})),oi=Se("ZodString",((e,t)=>{cn.init(e,t),ii.init(e,t),e.email=t=>e.check(Er(ci,t)),e.url=t=>e.check(Tr(mi,t)),e.jwt=t=>e.check(function(e,t){return new _i({type:"string",format:"jwt",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.emoji=t=>e.check(function(e,t){return new hi({type:"string",format:"emoji",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.guid=t=>e.check(Ar(li,t)),e.uuid=t=>e.check(function(e,t){return new pi({type:"string",format:"uuid",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.uuidv4=t=>e.check(function(e,t){return new pi({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Xe(t)})}(0,t)),e.uuidv6=t=>e.check(function(e,t){return new pi({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Xe(t)})}(0,t)),e.uuidv7=t=>e.check(function(e,t){return new pi({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Xe(t)})}(0,t)),e.nanoid=t=>e.check(function(e,t){return new vi({type:"string",format:"nanoid",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.guid=t=>e.check(Ar(li,t)),e.cuid=t=>e.check(function(e,t){return new gi({type:"string",format:"cuid",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.cuid2=t=>e.check(function(e,t){return new yi({type:"string",format:"cuid2",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.ulid=t=>e.check(function(e,t){return new bi({type:"string",format:"ulid",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.base64=t=>e.check(function(e,t){return new Ai({type:"string",format:"base64",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.base64url=t=>e.check(function(e,t){return new Ti({type:"string",format:"base64url",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.xid=t=>e.check(function(e,t){return new wi({type:"string",format:"xid",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.ksuid=t=>e.check(function(e,t){return new $i({type:"string",format:"ksuid",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.ipv4=t=>e.check(function(e,t){return new Ii({type:"string",format:"ipv4",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.ipv6=t=>e.check(function(e,t){return new ki({type:"string",format:"ipv6",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.cidrv4=t=>e.check(function(e,t){return new xi({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.cidrv6=t=>e.check(function(e,t){return new Ei({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.e164=t=>e.check(function(e,t){return new Oi({type:"string",format:"e164",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.datetime=t=>e.check(Ur(t)),e.date=t=>e.check(qr(t)),e.time=t=>e.check(function(e){return new Gr({type:"string",format:"time",check:"string_format",precision:null,...Xe(e)})}(t)),e.duration=t=>e.check(function(e){return new zr({type:"string",format:"duration",check:"string_format",...Xe(e)})}(t))}));var ai;function si(e){return new oi({type:"string",...Xe(e)})}const di=Se("ZodStringFormat",((e,t)=>{un.init(e,t),ii.init(e,t)})),ci=Se("ZodEmail",((e,t)=>{mn.init(e,t),di.init(e,t)}));function ui(e){return Er(ci,e)}const li=Se("ZodGUID",((e,t)=>{ln.init(e,t),di.init(e,t)})),pi=Se("ZodUUID",((e,t)=>{pn.init(e,t),di.init(e,t)})),mi=Se("ZodURL",((e,t)=>{fn.init(e,t),di.init(e,t)}));function fi(e){return Tr(mi,e)}const hi=Se("ZodEmoji",((e,t)=>{hn.init(e,t),di.init(e,t)})),vi=Se("ZodNanoID",((e,t)=>{vn.init(e,t),di.init(e,t)})),gi=Se("ZodCUID",((e,t)=>{gn.init(e,t),di.init(e,t)})),yi=Se("ZodCUID2",((e,t)=>{yn.init(e,t),di.init(e,t)})),bi=Se("ZodULID",((e,t)=>{bn.init(e,t),di.init(e,t)})),wi=Se("ZodXID",((e,t)=>{wn.init(e,t),di.init(e,t)})),$i=Se("ZodKSUID",((e,t)=>{$n.init(e,t),di.init(e,t)})),Ii=Se("ZodIPv4",((e,t)=>{An.init(e,t),di.init(e,t)})),ki=Se("ZodIPv6",((e,t)=>{Tn.init(e,t),di.init(e,t)})),xi=Se("ZodCIDRv4",((e,t)=>{On.init(e,t),di.init(e,t)})),Ei=Se("ZodCIDRv6",((e,t)=>{_n.init(e,t),di.init(e,t)})),Ai=Se("ZodBase64",((e,t)=>{Sn.init(e,t),di.init(e,t)})),Ti=Se("ZodBase64URL",((e,t)=>{Mn.init(e,t),di.init(e,t)})),Oi=Se("ZodE164",((e,t)=>{Pn.init(e,t),di.init(e,t)})),_i=Se("ZodJWT",((e,t)=>{jn.init(e,t),di.init(e,t)})),Di=Se("ZodNumber",((e,t)=>{Cn.init(e,t),ri.init(e,t),e.gt=(t,n)=>e.check(Dr(t,n)),e.gte=(t,n)=>e.check(Sr(t,n)),e.min=(t,n)=>e.check(Sr(t,n)),e.lt=(t,n)=>e.check(Or(t,n)),e.lte=(t,n)=>e.check(_r(t,n)),e.max=(t,n)=>e.check(_r(t,n)),e.int=t=>e.check(Pi(t)),e.safe=t=>e.check(Pi(t)),e.positive=t=>e.check(Dr(0,t)),e.nonnegative=t=>e.check(Sr(0,t)),e.negative=t=>e.check(Or(0,t)),e.nonpositive=t=>e.check(_r(0,t)),e.multipleOf=(t,n)=>e.check(Mr(t,n)),e.step=(t,n)=>e.check(Mr(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=!0,e.format=n.format??null}));function Si(e){return new Di({type:"number",checks:[],...Xe(e)})}const Mi=Se("ZodNumberFormat",((e,t)=>{Nn.init(e,t),Di.init(e,t)}));function Pi(e){return new Mi({type:"number",check:"number_format",abort:!1,format:"safeint",...Xe(e)})}const ji=Se("ZodBoolean",((e,t)=>{Rn.init(e,t),ri.init(e,t)}));function Ci(e){return new ji({type:"boolean",...Xe(e)})}const Ni=Se("ZodNull",((e,t)=>{Un.init(e,t),ri.init(e,t)}));function Ri(e){return new Ni({type:"null",...Xe(e)})}const Ui=Se("ZodAny",((e,t)=>{Ln.init(e,t),ri.init(e,t)})),Li=Se("ZodUnknown",((e,t)=>{qn.init(e,t),ri.init(e,t)}));function qi(){return new Li({type:"unknown"})}const Gi=Se("ZodNever",((e,t)=>{Gn.init(e,t),ri.init(e,t)}));function zi(e){return new Gi({type:"never",...Xe(e)})}const Fi=Se("ZodVoid",((e,t)=>{zn.init(e,t),ri.init(e,t)}));function Bi(e){return new Fi({type:"void",...Xe(e)})}const Wi=Se("ZodDate",((e,t)=>{Fn.init(e,t),ri.init(e,t),e.min=(t,n)=>e.check(Sr(t,n)),e.max=(t,n)=>e.check(_r(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 Zi(e){return new Wi({type:"date",...Xe(e)})}const Yi=Se("ZodArray",((e,t)=>{Wn.init(e,t),ri.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(jr(t,n)),e.nonempty=t=>e.check(jr(1,t)),e.max=(t,n)=>e.check(Pr(t,n)),e.length=(t,n)=>e.check(Cr(t,n)),e.unwrap=()=>e.element}));function Vi(e,t){return function(e,t,n){return new Yi({type:"array",element:t,...Xe(n)})}(0,e,t)}const Hi=Se("ZodObject",((e,t)=>{Kn.init(e,t),ri.init(e,t),Ge(e,"shape",(()=>t.shape)),e.keyof=()=>ao(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:qi()}),e.loose=()=>e.clone({...e._zod.def,catchall:qi()}),e.strict=()=>e.clone({...e._zod.def,catchall:zi()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>function(e,t){if(!Ve(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 Qe(e,Fe(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ze(this,"shape",n),n},checks:[]}))}(e,t),e.safeExtend=t=>function(e,t){if(!Ve(t))throw Error("Invalid input to safeExtend: expected a plain object");return Qe(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return ze(this,"shape",n),n},checks:e._zod.def.checks})}(e,t),e.merge=t=>function(e,t){return Qe(e,Fe(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ze(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}(e,t),e.pick=t=>function(e,t){let n=e._zod.def;return Qe(e,Fe(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 ze(this,"shape",e),e},checks:[]}))}(e,t),e.omit=t=>function(e,t){let n=e._zod.def;return Qe(e,Fe(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 ze(this,"shape",r),r},checks:[]}))}(e,t),e.partial=(...t)=>function(e,t,n){return Qe(t,Fe(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 ze(this,"shape",i),i},checks:[]}))}(po,e,t[0]),e.required=(...t)=>function(e,t,n){return Qe(t,Fe(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 ze(this,"shape",i),i},checks:[]}))}(yo,e,t[0])}));function Ki(e,t){return new Hi({type:"object",shape:e??{},...Xe(t)})}const Ji=Se("ZodUnion",((e,t)=>{Qn.init(e,t),ri.init(e,t),e.options=t.options}));function Qi(e,t){return new Ji({type:"union",options:e,...Xe(t)})}const Xi=Se("ZodDiscriminatedUnion",((e,t)=>{Ji.init(e,t),Xn.init(e,t)}));function eo(e,t,n){return new Xi({type:"union",options:t,discriminator:e,...Xe(n)})}const to=Se("ZodIntersection",((e,t)=>{er.init(e,t),ri.init(e,t)}));function no(e,t){return new to({type:"intersection",left:e,right:t})}const ro=Se("ZodRecord",((e,t)=>{rr.init(e,t),ri.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType}));function io(e,t,n){return new ro({type:"record",keyType:e,valueType:t,...Xe(n)})}const oo=Se("ZodEnum",((e,t)=>{ir.init(e,t),ri.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))throw Error(`Key ${r} not found in enum`);i[r]=t.entries[r]}return new oo({...t,checks:[],...Xe(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e){if(!n.has(t))throw Error(`Key ${t} not found in enum`);delete i[t]}return new oo({...t,checks:[],...Xe(r),entries:i})}}));function ao(e,t){return new oo({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map((e=>[e,e]))):e,...Xe(t)})}const so=Se("ZodLiteral",((e,t)=>{or.init(e,t),ri.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 co(e,t){return new so({type:"literal",values:Array.isArray(e)?e:[e],...Xe(t)})}const uo=Se("ZodTransform",((e,t)=>{ar.init(e,t),ri.init(e,t),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new Pe(e.constructor.name);n.addIssue=r=>{if("string"==typeof r)n.issues.push(at(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??="custom",t.input??=n.value,t.inst??=e,n.issues.push(at(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then((e=>(n.value=e,n))):(n.value=i,n)}}));function lo(e){return new uo({type:"transform",transform:e})}const po=Se("ZodOptional",((e,t)=>{dr.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType}));function mo(e){return new po({type:"optional",innerType:e})}const fo=Se("ZodNullable",((e,t)=>{cr.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType}));function ho(e){return new fo({type:"nullable",innerType:e})}const vo=Se("ZodDefault",((e,t)=>{ur.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap})),go=Se("ZodPrefault",((e,t)=>{pr.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType})),yo=Se("ZodNonOptional",((e,t)=>{mr.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType})),bo=Se("ZodCatch",((e,t)=>{hr.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap})),wo=Se("ZodPipe",((e,t)=>{vr.init(e,t),ri.init(e,t),e.in=t.in,e.out=t.out}));function $o(e,t){return new wo({type:"pipe",in:e,out:t})}const Io=Se("ZodReadonly",((e,t)=>{yr.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType})),ko=Se("ZodLazy",((e,t)=>{wr.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.getter()})),xo=Se("ZodCustom",((e,t)=>{$r.init(e,t),ri.init(e,t)}));function Eo(e){return new Di({type:"number",coerce:!0,checks:[],...Xe(e)})}function Ao(e){return new ji({type:"boolean",coerce:!0,...Xe(e)})}const To=ao(["PENDING","APPROVED","REJECTED"]).meta({description:"Approval status. PENDING: awaiting review, APPROVED: approved for operation, REJECTED: rejected and cannot operate"}),Oo=ao("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(".")).meta({examples:["AUD"],description:"Three-letter ISO 4217 currency code for transactions and payouts"}),_o=ao([{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))),Do=Vi(_o).max(10).optional().meta({description:"Event characteristics like vibe, venue type, and amenities (up to 10 categories)",examples:[["Day Party","Open Air","Free Entry"]]}),So=ao([{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))),Mo=Vi(So).min(1).max(5).meta({description:"Music genres for the event (1-5 genres)",examples:[["Tech House","Melodic Techno"]]});function Po(e,t){return si().regex(RegExp(`^${e}_[0-9a-z]{26}$`),`Must be a valid ${t} ID`).describe(`Unique ${t} identifier`)}Vi(So).max(5).optional().meta({description:"Music genres for the event (up to 5 genres)",examples:[["Tech House","Melodic Techno"]]});const jo=Po("tem","team"),Co=Po("evt","event"),No=Po("ven","venue"),Ro=Po("loc","location"),Uo=Po("usr","user"),Lo=Po("ord","order"),qo=Po("tkt","ticket"),Go=Po("pmt","promoter");Po("cpn","coupon"),Po("cod","coupon code");const zo=Po("cus","customer"),Fo=Po("adm","admission"),Bo=Po("sct","section");Po("ben","beneficiary");const Wo=Po("pyt","payout"),Zo=Po("mbr","team member"),Yo=Po("inv","team invite"),Vo=Po("ecl","event collaborator"),Ho=Po("psc","permission scope"),Ko=Po("prl","permission role"),Jo=Po("ntf","notification"),Qo=Ki({src:fi().meta({examples:["https://assets.session.services/my-image.jpg"]}),alt:si().meta({examples:["My Image"]}),width:Si().meta({examples:[1080]}),height:Si().meta({examples:[1080]})});function Xo(){return Si().min(-1)}function ea(){return Si().min(-1).refine((e=>0!==e),{message:"Limit cannot be 0. Use -1 for unlimited or a positive number for a specific limit"})}const ta=Qi([si(),Si(),Ci(),Ri()]),na=new ko({type:"lazy",getter:()=>Qi([ta,Vi(na),io(si(),na)])}),ra=io(si().min(1).max(40).meta({description:"Metadata key. Must be 1-40 characters"}),si().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."}),ia=si().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 oa(e){return Eo().int().min(1).max(100).prefault(20).meta({examples:[20],description:`Maximum number of ${e} to return per request (1-100, default: 20)`})}const aa=si().meta({description:"Opaque cursor for pagination. Use the cursor from the previous response to continue fetching results."}),sa="[a-z][a-z0-9-]*",da=RegExp(`^-?(?:\\*|(?:${sa})(?:\\.${sa})*(?:\\.\\*|\\.bypass|\\.[a-z]{3}_[0-9a-z]{26})?)$`),ca=/^[a-z]{3}_[0-9a-z]{26}$/,ua=["tem","pmt","ven","evt","ord","tkt","cpn"],la="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(","),pa=new Set(la),ma=new Set(["tenant","team","team.member","team.invite","team.gateway","team.performance","cms","role","event","event.performance","promoter","promoter.performance","venue","order","ticket","coupon","beneficiary","payout"]),fa={"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 ha(e){let[t]=e.split("_");return!!t&&ua.includes(t)}function va(e,t){return!(!pa.has(e)||!function(e){return ca.test(e)&&ha(e)}(t))&&function(e,t){let n=function(e){let[t]=e.split("_");return t&&ha(e)?t:null}(t);return!!n&&(fa[e]??[]).includes(n)}(e,t)}const ga=[function(e){return pa.has(e)},function(e){return!!e.endsWith(".bypass")&&pa.has(e.slice(0,-7))},function(e){let t=function(e){let t=e.match(/^((?:[a-z][a-z0-9-]*)(?:\.[a-z][a-z0-9-]*)*)\.([a-z]{3}_[0-9a-z]{26})$/);return t?function(e){let t=e[1],n=e[2];return t&&n?{base:t,resourceId:n}:null}(t):null}(e);return!!t&&va(t.base,t.resourceId)},function(e){if(!e.endsWith(".*"))return!1;let t=e.slice(0,-2);return ma.has(t)||pa.has(t)}],ya=si().regex(da,"Invalid permission node. Use lowercase dot notation with optional wildcard, resource target, bypass target, and deny prefix.").refine((function(e){let t=function(e){return e.startsWith("-")?e.slice(1):e}(e);return ga.some((e=>e(t)))}),{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"]}),ba=Vi(ya).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"]]}),wa=ba.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"]]}),$a=si().length(16).meta({examples:[De.signature],description:"HMAC signature for secure access (16 characters, base64url encoded)"}),Ia=ao(["SALE_ENDED","SOLD_OUT","DOOR"]);function ka(e){return Ki({base:Pi().min(0).meta({examples:[De.Admission.price.base],description:"Base cost of a ticket for this admission type before fees, in cents"}),booking:Pi().min(0).meta({examples:[De.Admission.price.booking],description:e.booking}),currency:Oo.meta({examples:[De.Admission.price.currency],description:e.currency})}).meta({examples:[De.Admission.price],description:e.price})}const xa=Ki({id:Fo.readonly().meta({description:"A unique identifier for this admission",examples:[De.Admission.id]}),name:si().meta({description:"The display name of the admission type shown to customers",examples:[De.Admission.name]}),subtitle:si().max(100).optional().meta({description:"Short supporting text shown below the admission name",examples:[De.Admission.subtitle]}),description:si().max(500).optional().meta({description:"Detailed information shown when customers expand 'More info'",examples:[De.Admission.description]}),capacity:Xo().prefault(-1).meta({examples:[De.Admission.capacity],description:"Maximum number of tickets that can be sold for this admission type. A value of -1 indicates unlimited"}),limit:ea().prefault(-1).meta({examples:[De.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:Si().min(-1).readonly().meta({examples:[De.Admission.available],description:"Current number of tickets available for purchase, calculated as capacity minus sold minus reserved. A value of -1 indicates unlimited"}),sold:Si().min(0).readonly().meta({examples:[De.Admission.sold],description:"Total number of tickets of this admission type that have been purchased"}),reserved:Si().min(0).readonly().meta({examples:[De.Admission.reserved],description:"Number of tickets held for customers during checkout and not available to others"}),order:Si().min(0).meta({examples:[De.Admission.order],description:"Determines the position in which this admission type appears when listed. Lower values appear first"}),createdAt:Ur().readonly().meta({examples:[De.Admission.createdAt],description:"Timestamp in ISO 8601 format when this admission type was created"}),updatedAt:Ur().readonly().meta({examples:[De.Admission.updatedAt],description:"Timestamp in ISO 8601 format when this admission type was last updated"}),entryStartsAt:ia.meta({examples:[De.Admission.entryStartsAt],description:"Wall clock time from which tickets of this type are valid for entry (no timezone)"}),entryEndsAt:ia.meta({examples:[De.Admission.entryEndsAt],description:"Wall clock time until which tickets of this type are valid for entry (no timezone)"}),saleStartsAt:ia.meta({examples:[De.Admission.saleStartsAt],description:"Wall clock time when ticket sales for this admission type begin (no timezone)"}),saleEndsAt:ia.meta({examples:[De.Admission.saleEndsAt],description:"Wall clock time when ticket sales for this admission type end (no timezone)"}),saleEndsBehavior:Ia.default("SALE_ENDED").meta({examples:[De.Admission.saleEndsBehavior],description:"Label to display for this admission after ticket sales have ended"}),price:ka({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:ao(["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:si().optional().meta({examples:["VIPACCESS"],description:"Code required to reveal this admission type when visibility is 'HIDDEN'. Case-insensitive comparison"}),sectionId:Bo.nullable().optional().meta({examples:[De.Admission.sectionId],description:"Identifier of the section this admission type belongs to, if any"}),teamId:jo.meta({description:"Team that owns this admission. Denormalized for efficient queries."}),promoterId:Go.meta({examples:[De.Admission.promoterId],description:"Identifier of the promoter responsible for this admission type"}),eventId:Co.meta({examples:[De.Admission.eventId],description:"Identifier of the event to which this admission type is linked"}),eventSlug:si().meta({examples:[De.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:[De.Admission]}),Ea=xa.omit({id:!0,createdAt:!0,updatedAt:!0,available:!0,sold:!0,reserved:!0}).meta({description:"Schema for creating a new admission type for an event"}),Aa=xa.pick({id:!0}).extend({eventId:xa.shape.eventId.meta({examples:[De.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"}),Ta=xa.pick({id:!0}).extend({eventId:Co.meta({examples:[De.Admission.eventId],description:"Identifier of the event to which this admission type belongs"})}).meta({description:"Schema for retrieving a specific admission type"}),Oa=Ki({eventId:si().meta({examples:[De.Admission.eventId],description:"Identifier of the event to list admission types for"}),sectionId:si().optional().meta({examples:[De.Admission.sectionId],description:"Filter admission types by section identifier. If provided, only admissions for this section are returned"}),query:si().optional().meta({examples:["Early Bird"],description:"Optional search query to filter admissions by name. When provided, search-backed pagination is used."}),limit:oa("admission types").optional(),cursor:si().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 _a(e,t){return Ki({[t]:Vi(e).meta({description:`Array of ${t} for the current result set`}),before:si().nullish().meta({examples:["eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNqIn19"],description:"Cursor for navigating backward in the result set. Omitted when there are no prior results."}),after:si().nullish().meta({examples:["eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNkIn19"],description:"Cursor for navigating forward in the result set. Omitted when there are no subsequent results."}),limit:Eo().min(1).meta({examples:[20],description:"Maximum number of items to return in each result set"})})}const Da=_a(xa,"admissions"),Sa=xa.pick({eventId:!0}).extend({message:si().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:ka({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"}),Ma=xa.pick({eventId:!0}).extend({base:Pi().min(0).meta({examples:[De.Admission.price.base],description:"Base cost of a ticket for this admission type before fees, in cents"}),currency:Oo.meta({examples:[De.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"}),Pa=Ki({quote:Sa}),ja=Ki({admission:xa}),Ca=Ki({id:xa.shape.id,eventId:xa.shape.eventId,name:xa.shape.name.optional(),subtitle:xa.shape.subtitle,description:xa.shape.description,capacity:Xo().optional(),limit:ea().optional(),order:xa.shape.order.optional(),entryStartsAt:xa.shape.entryStartsAt.optional(),entryEndsAt:xa.shape.entryEndsAt.optional(),saleStartsAt:xa.shape.saleStartsAt.optional(),saleEndsAt:xa.shape.saleEndsAt.optional(),saleEndsBehavior:Ia.optional(),price:xa.shape.price.optional(),visibility:ao(["ALWAYS","STACKED","HIDDEN"]).optional(),passcode:si().optional(),sectionId:Bo.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."}),Na=Ki({eventId:Co.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:[De.Event.id]}),description:si().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:si().optional().meta({description:"Optional event name for additional context",examples:["Warehouse Sessions Vol. 5"]}),imageUrl:fi().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"}),Ra=Ki({genres:Vi(So).max(5).meta({description:"Suggested music genres based on event description and artwork",examples:[["Tech House","Melodic Techno"]]}),categories:Vi(_o).max(10).meta({description:"Suggested event categories based on description and artwork",examples:[["Warehouse","Underground","BYO"]]}),confidence:Si().min(0).max(1).meta({description:"AI confidence score for the suggestions (0-1)",examples:[.85]}),startDate:si().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:si().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:si().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:fi().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"});Ki({estimatedInputTokens:Si().int().meta({description:"Estimated input tokens for the request",examples:[500]}),estimatedOutputTokens:Si().int().meta({description:"Estimated output tokens for the response",examples:[100]}),estimatedCostUsd:Si().meta({description:"Estimated cost in USD",examples:[.002]}),includesImage:Ci().meta({description:"Whether the estimate includes image analysis",examples:[!0]})}).meta({description:"Cost estimate for an AI tag suggestion request"});for(var Ua=/^(?:[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,La=[],qa=0;qa<256;++qa)La.push((qa+256).toString(16).slice(1));function Ga(e,t=0){return(La[e[t+0]]+La[e[t+1]]+La[e[t+2]]+La[e[t+3]]+"-"+La[e[t+4]]+La[e[t+5]]+"-"+La[e[t+6]]+La[e[t+7]]+"-"+La[e[t+8]]+La[e[t+9]]+"-"+La[e[t+10]]+La[e[t+11]]+La[e[t+12]]+La[e[t+13]]+La[e[t+14]]+La[e[t+15]]).toLowerCase()}var za,Fa=function(e,t=0){var n=Ga(e,t);if(!function(e){return"string"==typeof e&&Ua.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},Ba=new Uint8Array(16);function Wa(){if(!za&&!(za=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return za(Ba)}var Za=null,Ya=null,Va=0,Ha=function(e,t,n){e||={};var r=t&&n||0,i=t||new Uint8Array(16),o=e.random||(e.rng||Wa)(),a=void 0===e.msecs?Date.now():e.msecs,s=void 0===e.seq?null:e.seq,d=Ya,c=Za;return a>Va&&void 0===e.msecs&&(Va=a,null!==s&&(d=null,c=null)),null!==s&&(s>2147483647&&(s=2147483647),d=s>>>19&4095,c=524287&s),(null===d||null===c)&&(d=(d=127&o[6])<<8|o[7],c=(c=(c=63&o[8])<<8|o[9])<<5|o[10]>>>3),a+1e4>Va&&null===s?++c>524287&&(c=0,++d>4095&&(d=0,Va++)):Va=a,Ya=d,Za=c,i[r++]=Va/1099511627776&255,i[r++]=Va/4294967296&255,i[r++]=Va/16777216&255,i[r++]=Va/65536&255,i[r++]=Va/256&255,i[r++]=255&Va,i[r++]=d>>>4&15|112,i[r++]=255&d,i[r++]=c>>>13&63|128,i[r++]=c>>>5&255,i[r++]=c<<3&255|7&o[10],i[r++]=o[11],i[r++]=o[12],i[r++]=o[13],i[r++]=o[14],i[r++]=o[15],t||Ga(i)},Ka="0123456789abcdefghjkmnpqrstvwxyz",Ja=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 Qa(e){let t=Array(26).fill("");if(16!==e.length)throw Error(`Invalid length. Expected 16 bytes, got ${e.length}. Input: ${e}`);return t[0]=Ka[(224&e[0])>>5],t[1]=Ka[31&e[0]],t[2]=Ka[(248&e[1])>>3],t[3]=Ka[(7&e[1])<<2|(192&e[2])>>6],t[4]=Ka[(62&e[2])>>1],t[5]=Ka[(1&e[2])<<4|(240&e[3])>>4],t[6]=Ka[(15&e[3])<<1|(128&e[4])>>7],t[7]=Ka[(124&e[4])>>2],t[8]=Ka[(3&e[4])<<3|(224&e[5])>>5],t[9]=Ka[31&e[5]],t[10]=Ka[(248&e[6])>>3],t[11]=Ka[(7&e[6])<<2|(192&e[7])>>6],t[12]=Ka[(62&e[7])>>1],t[13]=Ka[(1&e[7])<<4|(240&e[8])>>4],t[14]=Ka[(15&e[8])<<1|(128&e[9])>>7],t[15]=Ka[(124&e[9])>>2],t[16]=Ka[(3&e[9])<<3|(224&e[10])>>5],t[17]=Ka[31&e[10]],t[18]=Ka[(248&e[11])>>3],t[19]=Ka[(7&e[11])<<2|(192&e[12])>>6],t[20]=Ka[(62&e[12])>>1],t[21]=Ka[(1&e[12])<<4|(240&e[13])>>4],t[22]=Ka[(15&e[13])<<1|(128&e[14])>>7],t[23]=Ka[(124&e[14])>>2],t[24]=Ka[(3&e[14])<<3|(224&e[15])>>5],t[25]=Ka[31&e[15]],t.join("")}function Xa(e){if(26!==e.length)throw Error(`Invalid length. Expected 26 bytes, got ${e.length}. Input: ${e}`);let t=(new TextEncoder).encode(e);if(255===Ja[t[0]]||255===Ja[t[1]]||255===Ja[t[2]]||255===Ja[t[3]]||255===Ja[t[4]]||255===Ja[t[5]]||255===Ja[t[6]]||255===Ja[t[7]]||255===Ja[t[8]]||255===Ja[t[9]]||255===Ja[t[10]]||255===Ja[t[11]]||255===Ja[t[12]]||255===Ja[t[13]]||255===Ja[t[14]]||255===Ja[t[15]]||255===Ja[t[16]]||255===Ja[t[17]]||255===Ja[t[18]]||255===Ja[t[19]]||255===Ja[t[20]]||255===Ja[t[21]]||255===Ja[t[22]]||255===Ja[t[23]]||255===Ja[t[24]]||255===Ja[t[25]])throw Error("Invalid base32 character");let n=new Uint8Array(16);return n[0]=Ja[t[0]]<<5|Ja[t[1]],n[1]=Ja[t[2]]<<3|Ja[t[3]]>>2,n[2]=(3&Ja[t[3]])<<6|Ja[t[4]]<<1|Ja[t[5]]>>4,n[3]=(15&Ja[t[5]])<<4|Ja[t[6]]>>1,n[4]=(1&Ja[t[6]])<<7|Ja[t[7]]<<2|Ja[t[8]]>>3,n[5]=(7&Ja[t[8]])<<5|Ja[t[9]],n[6]=Ja[t[10]]<<3|Ja[t[11]]>>2,n[7]=(3&Ja[t[11]])<<6|Ja[t[12]]<<1|Ja[t[13]]>>4,n[8]=(15&Ja[t[13]])<<4|Ja[t[14]]>>1,n[9]=(1&Ja[t[14]])<<7|Ja[t[15]]<<2|Ja[t[16]]>>3,n[10]=(7&Ja[t[16]])<<5|Ja[t[17]],n[11]=Ja[t[18]]<<3|Ja[t[19]]>>2,n[12]=(3&Ja[t[19]])<<6|Ja[t[20]]<<1|Ja[t[21]]>>4,n[13]=(15&Ja[t[21]])<<4|Ja[t[22]]>>1,n[14]=(1&Ja[t[22]])<<7|Ja[t[23]]<<2|Ja[t[24]]>>3,n[15]=(7&Ja[t[24]])<<5|Ja[t[25]],n}var es=class extends Error{constructor(e){super(`Invalid prefix "${e}". Must be at most 63 ASCII letters [a-z_]`),this.name="InvalidPrefixError"}},ts=class extends Error{constructor(e,t){super(`Invalid TypeId. Prefix mismatch. Expected ${e}, got ${t}`),this.name="PrefixMismatchError"}},ns=class extends Error{constructor(e){super(`Invalid TypeId. Prefix cannot be empty when there's a separator: ${e}`),this.name="EmptyPrefixError"}},rs=class extends Error{constructor(e){super(`Invalid length. Suffix should have 26 characters, got ${e}`),this.name="InvalidSuffixLengthError"}},is=class extends Error{constructor(e){super(`Invalid suffix. First character "${e}" must be in the range [0-7]`),this.name="InvalidSuffixCharacterError"}},os=class extends Error{constructor(e,t){super(`Cannot convert TypeID of type ${e} to type ${t}`),this.name="TypeIDConversionError"}};function as(e="",t=""){if(!function(e){if(e.length>63)return!1;let t,n,r;for(n=0,r=e.length;n<r;n+=1){t=e.charCodeAt(n);let i=t>96&&t<123;if((0===n||n===r-1)&&!i||!i&&95!==t)return!1}return!0}(e))throw new es(e);let n;if(t)n=t;else{let e=new Uint8Array(16);Ha(void 0,e),n=Qa(e)}if(26!==n.length)throw new rs(n.length);if(n[0]>"7")throw new is(n[0]);return Xa(n),""===e?n:`${e}_${n}`}function ss(e){let t=e.lastIndexOf("_");return-1===t?"":e.substring(0,t)}function ds(e){let t=e.lastIndexOf("_");return-1===t?e:e.substring(t+1)}var cs=class{constructor(e,t=""){this.prefix=e,this.suffix=t;let n=as(e,t);this.prefix=ss(n),this.suffix=ds(n)}getType(){return this.prefix}getSuffix(){return this.suffix}asType(e){let t=this;if(t.prefix!==e)throw new os(t.prefix,e);return t}toUUIDBytes(){return Xa(this.suffix)}toUUID(){return Fa(this.toUUIDBytes())}toString(){return""===this.prefix?this.suffix:`${this.prefix}_${this.suffix}`}static fromString(e,t){let n=function(e,t){let n,r,i=e.lastIndexOf("_");if(-1===i)n="",r=e;else if(n=e.substring(0,i),r=e.substring(i+1),!n)throw new ns(e);if(!r)throw new rs(0);if(t&&n!==t)throw new ts(t,n);return as(n,r)}(e,t);return new cs(ss(n),ds(n))}static fromUUIDBytes(e,t){return new cs(e,Qa(t))}static fromUUID(e,t){return new cs(e,Qa(function(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]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,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]=255&t,n}(t)))}};const us={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 ls(e){return function(e="",t=""){return new cs(e,t)}(us[e])}const ps="ses_sid",ms="ses_aid";function fs(){return ls("session").toString()}function hs(){return ls("anonymous").toString()}const vs=qr().describe("Date (YYYY-MM-DD)"),gs=Ki({startDate:vs.describe("Start date (YYYY-MM-DD)"),endDate:vs.describe("End date (YYYY-MM-DD)")}),ys=Ki({startDate:vs.optional().describe("Start date (YYYY-MM-DD)"),endDate:vs.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 bs(e){return Ki(e).extend(gs.shape)}function ws(e){return no(Ki(e),ys)}const $s=Ki({value:Si().describe("Current period value"),previous:Si().describe("Comparison period value"),change:Si().describe("Percentage change from previous period"),changeType:ao(["increase","decrease","unchanged"]).describe("Direction of change")}),Is=Ki({eventId:si().describe("Event identifier"),eventName:si().describe("Event name"),ticketCount:Si().describe("Number of tickets sold"),sharePercent:Si().describe("Percentage of total tickets")}),ks=Ki({start:si().describe("Period start date"),end:si().describe("Period end date")}),xs=Ki({start:si().describe("Comparison period start date"),end:si().describe("Comparison period end date")}),Es=ao(["HOUR","DAY","WEEK","MONTH"]),As=Ki({date:si().describe("Date (YYYY-MM-DD)"),revenue:Si().describe("Revenue in cents"),tickets:Si().describe("Tickets sold")}),Ts=As.extend({orders:Si().describe("Orders placed")}),Os=Ki({revenue:Si().describe("Total revenue for period in cents"),tickets:Si().describe("Total tickets for period")}),_s=Os.extend({orders:Si().describe("Total orders for period")}),Ds=Ki({revenue:$s.describe("Total revenue in cents"),ticketsSold:$s.describe("Number of tickets sold"),averageOrderValue:$s.describe("Average order value in cents"),conversionRate:$s.describe("Overall conversion rate (%)"),activeEvents:$s.describe("Number of active events in period"),uniqueCustomers:$s.describe("Unique customers (estimated)"),orderCount:$s.describe("Number of orders placed"),pageViews:$s.describe("Total page views from tracking")}),Ss=Ki({events:Vi(Is),totalTickets:Si().describe("Total tickets across all events")});function Ms(e,t){return bs({...Ns(e,t),currency:si().optional().describe("Currency code for revenue metrics")})}function Ps(e){return Ki({meta:Ki({...e,currency:si().describe("Primary currency code"),currencies:Vi(si()).describe("All currencies with transactions"),dateRange:ks,comparisonRange:xs}),metrics:Ds})}function js(e,t){return bs({...Ns(e,t),granularity:Es.optional().default("DAY").describe("Time granularity"),currency:si().optional().describe("Currency filter")})}function Cs(e,t){return bs({...Ns(e,t),limit:Si().optional().default(5).describe("Maximum number of events to return")})}function Ns(e,t){return{[e]:si().describe(t)}}const Rs=ws({eventId:si().describe("Event identifier")}).meta({description:"Event performance summary request"}),Us=Ki({meta:Ki({eventId:si().describe("Event identifier"),eventName:si().describe("Event name"),currency:si().describe("Currency code (e.g., USD, EUR)"),dateRange:ks.optional().describe("Present only when startDate/endDate are provided"),comparisonRange:xs.optional().describe("Present only when startDate/endDate are provided")}),metrics:Ki({revenue:$s.describe("Total revenue in cents"),ticketsSold:$s.describe("Number of tickets sold"),orderCount:$s.describe("Number of orders placed"),averageOrderValue:$s.describe("Average order value in cents"),conversionRate:$s.describe("Conversion rate as percentage"),pageViews:$s.describe("Total page/product views"),uniqueVisitors:$s.describe("Unique visitors (estimated)"),checkoutStarted:$s.describe("Number of checkout started events (external link clicks for external events)")})}),Ls=bs({eventId:si().describe("Event identifier"),granularity:Es.optional().default("DAY").describe("Time granularity for aggregation"),breakdown:ao(["TOTAL"]).optional().default("TOTAL").describe("Breakdown type (always TOTAL for performance)"),includeBreakdowns:Ci().optional().default(!0).describe("Whether to include admission and section breakdowns in each time bucket")}),qs=Ki({meta:Ki({eventId:si(),eventName:si().describe("Event name"),currency:si().describe("Currency code"),dateRange:ks,granularity:Es}),series:Vi(Ki({date:si().describe("Date or timestamp"),tickets:Si().describe("Tickets sold in period"),revenue:Si().describe("Revenue in period (cents)"),admissions:Vi(Ki({id:si(),name:si(),quantity:Si()})),sections:Vi(Ki({id:si(),name:si(),quantity:Si()}))}))}),Gs=bs({eventId:si().describe("Event identifier")}),zs=Ki({meta:Ki({eventId:si(),eventName:si().describe("Event name"),currency:si().describe("Currency code"),dateRange:ks}),totals:Ki({entered:Si().describe("Total entered funnel (product viewed)"),completed:Si().describe("Total completed (orders)"),overallConversionRate:Si().describe("Overall conversion rate (%)"),totalDropped:Si().describe("Total dropped off")}),stages:Vi(Ki({id:si().describe("Funnel stage identifier"),name:si().describe("Human-readable stage name"),count:Si().describe("Number of events at this stage"),conversionRate:Si().describe("Conversion rate from first stage (%)"),dropoffRate:Si().describe("Dropoff rate from previous stage (%)")}))});Ki({meta:Ki({eventId:si(),dimension:si().describe("Dimension type"),dateRange:ks,limit:Si().optional()}),data:Vi(Ki({name:si().describe("Dimension value (e.g., campaign name)"),views:Si().describe("Page/product views"),conversions:Si().describe("Completed orders"),revenue:Si().describe("Total revenue in cents"),conversionRate:Si().describe("Conversion rate (%)"),share:Si().describe("Percentage share of total").optional()})),totals:Ki({views:Si(),conversions:Si(),revenue:Si()}).optional()});const Fs=ao(["HOUR","DAY","WEEK","MONTH"]),Bs=Ki({eventId:si().describe("Event identifier"),eventName:si().describe("Event name"),currency:si().describe("Currency code (e.g., USD, EUR)"),dateRange:ks}),Ws=Bs.extend({limit:Si().describe("Maximum number of results returned")});bs({eventId:si(),granularity:Fs.optional()}),Ki({granularity:Fs,data:Vi(Ki({date:si(),revenue:Si(),ticketsSold:Si()}))});const Zs=bs({eventId:si(),limit:Si().min(1).max(100).optional().default(10)}),Ys=Ki({meta:Ws,totals:Ki({uses:Si().describe("Total coupon uses across all coupons"),revenue:Si().describe("Total revenue from coupon-discounted orders (cents)")}),coupons:Vi(Ki({id:si().describe("Coupon code identifier"),code:si().describe("Coupon code"),uses:Si().describe("Number of times this coupon was used"),revenue:Si().describe("Revenue from this coupon (cents)"),discount:si().describe("Discount amount or percentage"),share:Si().describe("Share of total coupon uses (%)")})).describe("Coupons sorted by uses descending")}),Vs=bs({eventId:si(),limit:Si().min(1).max(100).optional().default(10)}),Hs=Ki({data:Vi(Ki({campaign:si(),views:Si(),conversions:Si(),conversionRate:Si(),sharePercent:Si()})),totalConversions:Si()}),Ks=bs({eventId:si(),limit:Si().min(1).max(100).optional().default(10)}),Js=Ki({meta:Ws,totals:Ki({views:Si().describe("Total views across all mediums"),conversions:Si().describe("Total conversions across all mediums")}),mediums:Vi(Ki({id:si().describe("Medium identifier (e.g., 'social', 'email')"),name:si().describe("Medium name"),views:Si().describe("Views from this medium"),conversions:Si().describe("Conversions from this medium"),conversionRate:Si().describe("Conversion rate (%)"),share:Si().describe("Share of total conversions (%)")})).describe("Mediums sorted by conversions descending")}),Qs=bs({eventId:si()}),Xs=Ki({meta:Bs,totals:Ki({revenue:Si().describe("Total revenue across all devices (cents)"),orders:Si().describe("Total orders across all devices")}),devices:Vi(Ki({id:ao(["MOBILE","DESKTOP","TABLET"]).describe("Device type"),name:si().describe("Human-readable device name"),revenue:Si().describe("Revenue from this device (cents)"),orders:Si().describe("Orders from this device"),conversionRate:Si().describe("Conversion rate (%)"),share:Si().describe("Share of total revenue (%)")})).describe("Devices sorted by revenue descending")}),ed=bs({eventId:si(),limit:Si().min(1).max(100).optional().default(10)}),td=Ki({meta:Ws,totals:Ki({tickets:Si().describe("Total tickets across all locations"),revenue:Si().describe("Total revenue across all locations (cents)")}),locations:Vi(Ki({id:si().describe("Location/region code (e.g., 'US-CA', 'GB')"),name:si().describe("Human-readable location name"),views:Si().describe("Page views from this location"),tickets:Si().describe("Tickets from this location"),revenue:Si().describe("Revenue from this location (cents)"),share:Si().describe("Share of total views (%)")})).describe("Locations sorted by views descending")}),nd=bs({eventId:si(),limit:Si().min(1).max(100).optional().default(10)}),rd=Ki({meta:Ws,totals:Ki({sessions:Si().describe("Total sessions across all sources"),conversions:Si().describe("Total conversions across all sources"),revenue:Si().describe("Total revenue across all sources (cents)")}),sources:Vi(Ki({id:si().describe("Traffic source identifier"),name:si().describe("Traffic source name"),referrer:si().describe("Referrer URL or domain"),sessions:Si().describe("Sessions from this source"),conversions:Si().describe("Conversions from this source"),conversionRate:Si().describe("Conversion rate (%)"),revenue:Si().describe("Revenue from this source (cents)"),share:Si().describe("Share of total conversions (%)")})).describe("Traffic sources sorted by conversions descending")}),id=Ki({eventId:si(),includeAdmission:Ci().optional().default(!0),includeSection:Ci().optional().default(!0),granularity:ao(["HOUR","MINUTE"]).optional()}),od=Ki({totalTickets:Si(),checkedIn:Si(),notCheckedIn:Si(),checkinRate:Si()}),ad=od.extend({admissionId:si(),admissionName:si()}),sd=od.extend({sectionId:si(),sectionName:si()}),dd=Qi([od.extend({byAdmission:Vi(ad),bySection:Vi(sd)}),Ki({granularity:ao(["HOUR","MINUTE"]),totalTickets:Si(),data:Vi(Ki({timestamp:si(),checkedIn:Si(),rate:Si(),checkinsThisPeriod:Si()})),byAdmission:Vi(Ki({admissionId:si(),admissionName:si(),data:Vi(Ki({timestamp:si(),checkedIn:Si(),rate:Si()}))})).optional(),bySection:Vi(Ki({sectionId:si(),sectionName:si(),data:Vi(Ki({timestamp:si(),checkedIn:Si(),rate:Si()}))})).optional()})]),cd=Ms("promoterId","Promoter identifier"),ud=Ps({promoterId:si().describe("Promoter identifier"),promoterName:si().describe("Promoter name"),teamId:si().describe("Team identifier"),teamName:si().describe("Team name")}),ld=js("promoterId","Promoter identifier"),pd=Ki({meta:Ki({promoterId:si(),dateRange:ks,granularity:Es}),currencies:Vi(Ki({currency:si().describe("Currency code (e.g., USD, EUR)"),series:Vi(As),totals:Os})).describe("Time-series data grouped by currency")}),md=Cs("promoterId","Promoter identifier"),fd=Ss,hd=Ms("teamId","Team identifier"),vd=Ps({teamId:si().describe("Team identifier"),teamName:si().describe("Team name")}),gd=js("teamId","Team identifier"),yd=Ki({meta:Ki({teamId:si(),dateRange:ks,granularity:Es}),currencies:Vi(Ki({currency:si().describe("Currency code (e.g., USD, EUR)"),series:Vi(Ts),totals:_s})).describe("Time-series data grouped by currency")});bs({teamId:si().describe("Team identifier"),limit:Si().optional().default(10).describe("Number of events to return"),sortBy:ao(["revenue","tickets","conversion"]).optional().default("revenue").describe("Sort metric")}),Ki({meta:Ki({teamId:si(),dateRange:Ki({start:si(),end:si()}),limit:Si(),sortBy:si()}),data:Vi(Ki({eventId:si().describe("Event identifier"),eventName:si().describe("Event name"),eventDate:si().describe("Event date").optional(),status:si().describe("Event status"),revenue:Si().describe("Total revenue in cents"),tickets:Si().describe("Tickets sold"),views:Si().describe("Page views"),conversionRate:Si().describe("Conversion rate (%)"),contribution:Si().describe("% of promoter's total revenue")})),totals:Ki({events:Si().describe("Total events in period"),revenue:Si().describe("Combined revenue"),tickets:Si().describe("Combined tickets")})});const bd=Cs("teamId","Team identifier"),wd=Ss,$d=bs({teamId:si().describe("Team identifier")}),Id=Ki({stages:Vi(Ki({stageId:si().describe("Funnel stage identifier"),stageLabel:si().describe("Human-readable stage name"),count:Si().describe("Number of events at this stage"),conversionRate:Si().describe("Conversion rate from first stage (%)"),dropoffPercent:Si().describe("Dropoff rate from previous stage (%)")}))}),kd=bs({teamId:si().describe("Team identifier"),groupBy:ao(["HOUR","DAY_OF_WEEK","DAY","WEEK","MONTH"]).optional().default("HOUR").describe("Time breakdown for aggregation"),timeZone:si().optional().default("UTC").describe("IANA timezone for hour/day aggregation (e.g., 'America/New_York')")}),xd=Ki({groupBy:ao(["HOUR","DAY_OF_WEEK","DAY","WEEK","MONTH"]).describe("The grouping used for aggregation"),buckets:Vi(Ki({key:Qi([Si(),si()]).describe("Bucket key (hour 0-23, day 0-6, or date string)"),label:si().describe("Human-readable label"),orderCount:Si().describe("Number of orders"),sharePercent:Si().describe("Percentage of total orders")})),totalOrders:Si().describe("Total orders across all buckets")}),Ed=bs({teamId:si().describe("Team identifier"),limit:Si().optional().default(10).describe("Maximum number of admissions to return")}),Ad=Ki({admissions:Vi(Ki({admissionId:si().describe("Admission identifier"),admissionName:si().describe("Admission name"),ticketCount:Si().describe("Number of tickets sold"),sharePercent:Si().describe("Percentage of total tickets")})),totalTickets:Si().describe("Total tickets across all admissions")}),Td=bs({teamId:si().describe("Team identifier"),type:ao(["campaign","medium","source"]).describe("Dimension type to analyze"),limit:Si().optional().default(20).describe("Maximum number of results to return")}),Od=Ki({dimensionType:ao(["campaign","medium","source"]).describe("The dimension type analyzed"),data:Vi(Ki({dimensionValue:si().describe("The dimension value (e.g., campaign name)"),dimensionLabel:si().describe("Human-readable label"),views:Si().describe("Total page views"),conversions:Si().describe("Total conversions (orders)"),conversionRate:Si().describe("Conversion rate (%)"),sharePercent:Si().describe("Share of total conversions (%)")})),totalConversions:Si().describe("Total conversions across all dimensions")}),_d=bs({teamId:si().describe("Team identifier"),granularity:ao(["DAY","WEEK","MONTH"]).optional().default("DAY").describe("Time granularity for aggregation")}),Dd=Ki({granularity:ao(["DAY","WEEK","MONTH"]).describe("The granularity used"),series:Vi(Ki({date:si().describe("Date key (YYYY-MM-DD, YYYY-Www, or YYYY-MM)"),label:si().describe("Human-readable label"),productViewed:Si().describe("Page views"),productAdded:Si().describe("Add to cart events"),checkoutStarted:Si().describe("Checkout started events"),orderCompleted:Si().describe("Completed orders")})),totals:Ki({productViewed:Si().describe("Total page views"),productAdded:Si().describe("Total add to cart"),checkoutStarted:Si().describe("Total checkouts started"),orderCompleted:Si().describe("Total orders completed"),uniqueVisitors:Si().describe("Unique visitors (estimated via HyperLogLog, ~0.8% error)")})}),Sd=ao("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(".")),Md=Sd.enum,Pd=Ki({product_id:si().optional().describe("admission_id in ticketing context"),sku:si().optional().describe("admission_id or admission_name"),category:si().optional().describe('event_name or "Admission"'),name:si().optional().describe("admission_name"),brand:si().optional().describe("promoter_name"),variant:si().optional().describe("section_name"),price:Si().optional().describe("admission price (base + booking fee)"),quantity:Si().optional().describe("number of tickets"),coupon:si().optional().describe("coupon code applied"),position:Si().optional().describe("position in list"),url:si().optional().describe("URL to event/admission page"),image_url:si().optional().describe("event image"),admission_id:si().optional().describe("Explicit admission ID"),section_id:si().optional().describe("Section ID if applicable"),event_id:si().optional().describe("Event ID for this admission"),promoter_id:si().optional().describe("Promoter ID"),price_base:Si().nullish().describe("Base price before fees"),price_booking_fee:Si().nullish().describe("Booking fee"),capacity:Si().optional().describe("Total capacity for this admission"),available:Si().optional().describe("Remaining tickets available"),sold:Si().optional().describe("Tickets already sold")}),jd=Ki({type:si(),value:si()}),Cd=Ki({type:si(),value:si()}),Nd=Ki({query:Qi([si(),io(si(),qi())]).optional(),list_id:si().optional(),category:si().optional(),filters:Vi(jd).optional(),sorts:Vi(Cd).optional(),promotion_id:si().optional(),creative:si().optional(),name:si().optional(),position:Qi([si(),Si()]).optional(),product_id:si().optional(),sku:si().optional(),brand:si().optional(),variant:si().optional(),price:Si().optional(),quantity:Si().optional(),coupon:si().optional(),currency:si().optional(),value:Si().optional(),url:si().optional(),image_url:si().optional(),cart_id:si().optional(),checkout_id:si().optional(),step:Si().optional(),shipping_method:si().optional(),payment_method:si().optional(),order_id:si().optional(),affiliation:si().optional(),subtotal:Si().optional(),total:Si().optional(),revenue:Si().optional(),shipping:Si().optional(),tax:Si().optional(),discount:Si().optional(),coupon_id:si().optional(),coupon_name:si().optional(),reason:si().optional(),wishlist_id:si().optional(),wishlist_name:si().optional(),share_via:si().optional(),share_message:si().optional(),recipient:si().optional(),review_id:si().optional(),review_body:si().optional(),rating:si().optional(),products:Vi(Pd).optional(),event_id:si().optional().describe("ID of the ticketed event (evt_xxx)"),event_name:si().optional().describe("Name of the ticketed event"),event_slug:si().optional().describe("URL slug of event"),event_starts_at:ia.optional().describe("When the event starts (naive datetime, no timezone)"),event_ends_at:ia.optional().describe("When the event ends (naive datetime, no timezone)"),event_status:ao(["UPCOMING","LIVE","ENDED","CANCELLED"]).optional(),event_visibility:ao(["PUBLIC","PRIVATE"]).optional(),event_location:si().optional().describe("Venue name"),event_city:si().optional().describe("Venue city"),event_country:si().optional().describe("Venue country"),promoter_id:si().optional().describe("ID of the promoter (pmt_xxx)"),promoter_name:si().optional().describe("Name of the promoter"),promoter_slug:si().optional().describe("URL slug of promoter"),admission_id:si().optional().describe("ID of admission type (adm_xxx)"),admission_name:si().optional().describe('Name of admission (e.g., "General Admission")'),admission_capacity:Si().optional().describe("Total capacity for this admission"),admission_available:Si().optional().describe("Tickets still available"),admission_sold:Si().optional().describe("Tickets already sold"),section_id:si().optional().describe("ID of section (sct_xxx)"),section_name:si().optional().describe('Name of section (e.g., "VIP", "General")'),section_capacity:Si().optional().describe("Total capacity for this section"),section_available:Si().optional().describe("Spots still available in section"),ticket_id:si().optional().describe("Individual ticket ID (tkt_xxx)"),ticket_status:ao(["VALID","REDEEMED","CANCELLED"]).optional(),tickets_quantity:Si().optional().describe("Number of tickets in transaction"),customer_id:si().optional().describe("Customer ID (cus_xxx)"),customer_email:si().optional().describe("Customer email"),customer_first_name:si().optional(),customer_last_name:si().optional(),price_base:Si().nullish().describe("Base price before fees"),price_booking_fee:Si().nullish().describe("Booking fee amount"),price_discount_amount:Si().nullish().describe("Discount amount applied"),sale_starts_at:ia.optional().describe("When tickets go on sale (naive datetime, no timezone)"),sale_ends_at:ia.optional().describe("When ticket sales end (naive datetime, no timezone)"),entry_starts_at:ia.optional().describe("When entry to event begins (naive datetime, no timezone)"),entry_ends_at:ia.optional().describe("When entry to event ends (naive datetime, no timezone)"),funnel_step:si().optional().describe('Current funnel step (e.g., "browse", "cart", "checkout")'),time_to_purchase:Si().optional().describe("Seconds from first view to purchase"),session_duration:Si().optional().describe("Total session duration in seconds"),referrer_type:ao(["DIRECT","SOCIAL","EMAIL","SEARCH","REFERRAL","AD"]).optional(),campaign_id:si().optional().describe("Marketing campaign ID"),affiliate_id:si().optional().describe("Affiliate partner ID"),promo_code_used:si().optional().describe("Promotional code applied"),platform:ao(["WEB","MOBILE_WEB","IOS","ANDROID"]).optional(),app_version:si().optional(),device_type:ao(["MOBILE","TABLET","DESKTOP"]).optional()}),Rd=Ki({session_id:si(),user_id:si().optional(),anonymous_id:si().optional(),utm_source:si().optional(),utm_medium:si().optional(),utm_campaign:si().optional(),utm_term:si().optional(),utm_content:si().optional(),page:Ki({url:si(),path:si(),title:si()}),referrer:si().optional(),user_agent:si().optional(),ip:si().optional(),geo:Ki({country:si().optional().describe('Country code (e.g., "AU")'),countryName:si().optional().describe('Country name (e.g., "Australia")'),region:si().optional().describe("State/province code"),regionName:si().optional().describe('State/province name (e.g., "New South Wales")'),city:si().optional().describe("City name"),latitude:si().optional().describe("Latitude"),longitude:si().optional().describe("Longitude")}).optional(),fbc:si().optional().describe("Facebook click ID"),fbp:si().optional().describe("Facebook browser ID"),ttclid:si().optional().describe("TikTok click ID")}),Ud=Ki({id:si(),eventId:si().min(1).describe("Event being tracked (evt_123)"),teamId:si().min(1).describe("Team ID (team_123)"),promoterId:si().min(1).describe("Promoter ID (pmt_123)"),eventType:Sd,timestamp:si(),date:si().describe("YYYY-MM-DD"),hour:Si().int().min(0).max(23),properties:Nd,context:Rd,productId:si().optional(),createdAt:si(),updatedAt:si()}),Ld=Ud.omit({id:!0,timestamp:!0,date:!0,hour:!0,createdAt:!0,updatedAt:!0}).meta({description:"Schema for tracking an analytics event. Excludes system-generated fields"}),qd=Ki({legacyOrgId:si().min(1),legacyEventId:si().min(1),legacyTeamId:si().min(1),legacyEventName:si().optional(),legacyEventSlug:si().optional(),legacyEventCreatedAt:Qi([si(),Zi(),Ri()]).optional(),legacyTeamCreatedAt:Qi([si(),Zi(),Ri()]).optional()}),Gd=Qi([Ld,Ki({eventName:si().min(1).optional(),eventType:Sd.optional(),eventId:si().min(1).optional(),teamId:si().min(1).optional(),promoterId:si().min(1).optional(),properties:io(si(),qi()).optional(),context:Rd.partial().optional(),legacyContext:qd.optional()}).passthrough().meta({description:"Compatibility schema for legacy Sash analytics payloads that require server-side ID normalization"})]).meta({description:"Analytics ingress schema accepting both canonical payloads and legacy Sash-compatible payloads"});ws({eventId:si().meta({description:"Event ID to get tracking events for"}),limit:Eo().int().positive().optional().meta({description:"Maximum number of events to return"})}).meta({description:"Schema for retrieving tracking events for an event"}),Ki({id:si(),email:ui(),firstName:si(),lastName:si(),imageUrl:si().url().optional(),tenantId:si(),createdAt:si().datetime(),updatedAt:si().datetime()});const zd=ao(["AIRWALLEX","STRIPE"]),Fd=Ki({id:si().readonly().meta({examples:[De.Beneficiary.id],description:"A unique identifier for this beneficiary."}),createdAt:Ur().readonly().meta({examples:[De.Beneficiary.createdAt],description:"Timestamp in ISO 8601 format when this beneficiary was created."}),updatedAt:Ur().readonly().meta({examples:[De.Beneficiary.updatedAt],description:"Timestamp in ISO 8601 format when this beneficiary was last updated."}),name:si().meta({examples:[De.Beneficiary.name],description:"The account name for this beneficiary."}),currency:Oo.meta({examples:[De.Beneficiary.currency],description:"Three-letter ISO 4217 currency code for payouts."}),gateway:zd.meta({examples:["STRIPE"],description:"The payment gateway used for processing payouts."}),gatewayId:si().meta({examples:[De.Beneficiary.gatewayId],description:"The identifier assigned by the payment gateway to this account."}),teamId:si().meta({description:"Team that owns this beneficiary account."}),teamIds:Vi(si()).meta({examples:[[]],description:"List of team IDs this beneficiary is assigned to. Empty array means available to all teams."}),venueIds:Vi(si()).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"}),Bd=Ki({city:si().optional(),country_code:si(),postcode:si().optional(),state:si().optional(),street_address:si().optional()}),Wd=Ki({account_currency:si(),account_name:si(),account_number:si().optional(),account_routing_type1:si().optional(),account_routing_value1:si().optional(),account_routing_type2:si().optional(),account_routing_value2:si().optional(),bank_account_category:si().optional(),bank_branch:si().optional(),bank_country_code:si(),bank_name:si().optional(),bank_street_address:si().optional(),binding_mobile_number:si().optional(),fingerprint:si().optional(),iban:si().optional(),local_clearing_system:si().optional(),swift_code:si().optional(),transaction_reference:si().optional(),account_identifier_type:si().optional(),account_identifier_value:si().optional()}),Zd=Ki({transfer_methods:Vi(ao(["SWIFT","LOCAL"])).meta({examples:[["LOCAL"]],description:"Transfer methods supported for this beneficiary"}),beneficiary:Ki({company_name:si().optional(),date_of_birth:si().optional(),entity_type:si().meta({examples:["COMPANY"],description:"Whether the beneficiary is PERSONAL or COMPANY"}),first_name:si().optional(),last_name:si().optional(),address:Bd,bank_details:Wd,additional_info:Ki({personal_email:ui().optional()}).optional()}).meta({description:"Beneficiary details including personal/company info, address, and bank details"})}).meta({description:"Complete beneficiary request structure for Airwallex validation"}),Yd=Zd.extend({id:si().optional()}),Vd=Fd.omit({id:!0,createdAt:!0,updatedAt:!0,currency:!0}).extend({currency:Oo.meta({examples:[De.Beneficiary.currency],description:"Three-letter ISO 4217 currency code for payouts to this beneficiary account"}),airwallex:Yd.optional().meta({examples:[De.AirwallexBeneficiary],description:"Airwallex-specific beneficiary details including bank account information and address (required when gateway is AIRWALLEX)"}),teamIds:Vi(si()).optional().default([]).meta({examples:[[]],description:"List of team IDs to assign this beneficiary to. Empty array or omitted means available to all teams."}),venueIds:Vi(si()).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"}),Hd=Fd.pick({id:!0}).meta({description:"Schema for retrieving a single beneficiary by its unique identifier"}),Kd=Hd.meta({description:"Schema for deleting a beneficiary account - requires the beneficiary ID"}),Jd=Ki({teamId:si().optional().meta({examples:[De.Team.id],description:"Optional identifier of the team whose beneficiaries to list. When provided, only beneficiaries for that team are returned."}),gateway:ao(["AIRWALLEX","STRIPE"]).optional().meta({examples:[De.Beneficiary.gateway],description:"Filter beneficiaries by payment gateway provider (optional)"}),currency:Oo.optional().meta({examples:[De.Beneficiary.currency],description:"Filter beneficiaries by currency code (optional)"}),query:si().optional().meta({examples:["beneficiary"],description:"Optional search query to filter beneficiaries by name or gateway identifier. When provided, search-backed pagination is used."}),limit:oa("beneficiaries").optional(),cursor:si().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"}),Qd=_a(Fd,"beneficiaries"),Xd=Ki({beneficiary:Fd}),ec=Ki({min:Si().optional().meta({description:"Minimum number of time units for the transfer"}),max:Si().optional().meta({description:"Maximum number of time units for the transfer"}),unit:si().optional().meta({examples:["day"],description:"Time unit (e.g., 'day', 'hour')"})}).meta({description:"Expected transfer completion time range"}),tc=Ki({min:Si().optional().meta({description:"Minimum transfer amount"}),max:Si().optional().meta({description:"Maximum transfer amount"})}).meta({description:"Transfer amount limits"}),nc=Ki({label:si().meta({description:"Display label for the option"}),value:si().meta({description:"Value to submit when selected"}),flightTime:ec.optional().meta({description:"Expected transfer time for TRANSFER_METHOD options"}),transferLimit:tc.optional().meta({description:"Transfer amount limits for TRANSFER_METHOD options"}),processingTime:si().optional().meta({description:"Human-readable processing time description"})}).meta({description:"A selectable option in a form field"}),rc=Ki({type:ao(["INPUT","SELECT","RADIO","TRANSFER_METHOD","DYNAMIC_SELECT"]).meta({examples:["INPUT"],description:"The type of form input to render"}),label:si().optional().meta({description:"Display label for the field"}),placeholder:si().optional().meta({description:"Placeholder text for input fields"}),description:si().optional().meta({description:"Detailed description of the field"}),tip:si().optional().meta({description:"Tooltip information shown on hover"}),example:si().optional().meta({description:"Example value for the field"}),default:si().optional().meta({description:"Default value to pre-populate the field"}),key:si().optional().meta({description:"Unique key identifier for the field"}),options:Vi(nc).optional().meta({description:"Available options for SELECT and RADIO field types"}),refresh:Ci().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"}),ic=Ki({pattern:si().optional().meta({description:"Regex pattern for field validation"}),type:si().optional().meta({description:"Validation type identifier"})}).meta({description:"Validation rules for a form field"}),oc=Ki({path:si().meta({examples:["beneficiary.bank_details.account_number"],description:"Dot-notation path to the field in the beneficiary request object"}),enabled:Ci().meta({examples:[!0],description:"Whether this field should be displayed"}),required:Ci().meta({examples:[!0],description:"Whether this field is required for submission"}),field:rc.optional().meta({description:"Field definition with type, label, and options"}),rule:ic.optional().meta({description:"Validation rules for the field"})}).meta({description:"A single field in the beneficiary form schema with display and validation rules"}),ac=Ki({bankCountryCode:si().regex(/^[A-Z]{2}$/).meta({examples:["AU"],description:"Two-letter ISO 3166-1 alpha-2 country code for the bank location"}),accountCurrency:Oo.meta({examples:["AUD"],description:"Three-letter ISO 4217 currency code for the beneficiary account"}),entityType:ao(["PERSONAL","COMPANY"]).meta({examples:["COMPANY"],description:"Whether the beneficiary is an individual or a company"}),transferMethod:ao(["LOCAL","SWIFT"]).optional().meta({examples:["LOCAL"],description:"Transfer method: SWIFT for international wire transfers, LOCAL for domestic transfers"}),localClearingSystem:si().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:io(si(),si()).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."}),sc=Ki({fields:Vi(oc).meta({description:"Array of form fields with their display and validation configuration"}),selectedTransferMethod:ao(["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:si().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"}),dc=fe.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(ac.strict()).output(sc),cc=Ki({source:si().meta({examples:["beneficiary.bank_details.account_number"],description:"Dot-notation path to the field that failed validation"}),code:si().meta({examples:["001"],description:"Airwallex validation error code"}),message:si().meta({examples:["This field is required"],description:"Human-readable error message"})}).meta({description:"Details about a single validation error for a field"}),uc=Zd.meta({description:"Beneficiary request data to validate against Airwallex rules before creating"}),lc=Ki({valid:Ci().meta({examples:[!0],description:"Whether the beneficiary request passed all validation rules"}),errors:Vi(cc).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"}),pc=fe.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(uc.strict()).output(lc),mc=fe.route({method:"GET",path:"/events/{eventId}/admissions/{id}",summary:"Get admission by ID",tags:["Admissions"]}).input(Ta.strict()).output(ja),fc=fe.route({method:"POST",path:"/events/{eventId}/admissions",summary:"Create a new admission",tags:["Admissions"]}).input(Ea.strict()).output(ja),hc=fe.route({method:"PUT",path:"/events/{eventId}/admissions/{id}",summary:"Update an admission",tags:["Admissions"]}).input(Ca.strict()).output(ja);var vc={get:mc,list:fe.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(Oa.strict()).output(Da),create:fc,update:hc,remove:fe.route({method:"DELETE",path:"/events/{eventId}/admissions/{id}",summary:"Delete an admission",tags:["Admissions"]}).input(Aa.strict()).output(ja),quote:fe.route({method:"POST",path:"/events/{eventId}/admissions/quote",summary:"Create an admission quote",tags:["Admissions"]}).input(Ma.strict()).output(Pa)},gc={track:fe.route({method:"POST",path:"/analytics/track",summary:"Track event",tags:["Analytics"]}).input(Gd).output(Ud),page:fe.route({method:"POST",path:"/analytics/page",summary:"Page event",tags:["Analytics"]}).input(Gd).output(Ud),identify:fe.route({method:"POST",path:"/analytics/identify",summary:"Identify event",tags:["Analytics"]}).input(Gd).output(Ud),alias:fe.route({method:"POST",path:"/analytics/alias",summary:"Alias event",tags:["Analytics"]}).input(Gd).output(Ud),group:fe.route({method:"POST",path:"/analytics/group",summary:"Group event",tags:["Analytics"]}).input(Gd).output(Ud),screen:fe.route({method:"POST",path:"/analytics/screen",summary:"Screen event",tags:["Analytics"]}).input(Gd).output(Ud)};const yc=fe.route({method:"GET",path:"/beneficiaries/{id}",summary:"Get beneficiary by ID",tags:["Beneficiaries"]}).input(Hd.strict()).output(Xd),bc=fe.route({method:"POST",path:"/beneficiaries",summary:"Create a new beneficiary",tags:["Beneficiaries"]}).input(Vd.strict()).output(Xd);var wc={get:yc,list:fe.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(Jd.strict()).output(Qd),create:bc,remove:fe.route({method:"DELETE",path:"/beneficiaries/{id}",summary:"Delete a beneficiary",tags:["Beneficiaries"]}).input(Kd.strict()).output(Xd),schema:dc,validate:pc};const $c=ao(["AMOUNT","PERCENT"]),Ic=ao(["TEAM","PROMOTER","EVENTS","SECTIONS","ADMISSIONS"]),kc=Ki({id:si().readonly().meta({examples:[De.Coupon.id],description:"A unique identifier for this coupon."}),couponId:si().optional().readonly().meta({examples:[De.Coupon.couponId],description:"Duplicate of id field for GSI queries."}),createdAt:Ur().readonly().meta({examples:[De.Coupon.createdAt],description:"Timestamp in ISO 8601 format when this coupon was created."}),updatedAt:Ur().readonly().meta({examples:[De.Coupon.updatedAt],description:"Timestamp in ISO 8601 format when this coupon was last updated."}),name:si().meta({examples:[De.Coupon.name],description:"Internal label for the coupon, visible to event organisers."}),active:Ci().optional().meta({examples:[De.Coupon.active],description:"Whether this coupon is currently active."}),kind:$c.meta({examples:["PERCENT"],description:"Type of discount this coupon gives: a fixed amount or a percentage."}),filter:Ic.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:Oo.optional().meta({examples:[De.Coupon.currency],description:"Three-letter ISO 4217 currency code. Required for AMOUNT coupons. Optional for PERCENT coupons - when omitted, applies to all currencies."}),discount:Si().min(0).meta({examples:[De.Coupon.discount],description:"The discount value. If kind is 'amount', this is a currency amount. If kind is 'percent', this is a percentage."}),limit:Si().meta({examples:[De.Coupon.limit],description:"Maximum number of times the coupon can be redeemed across all customers."}),uses:Si().optional().meta({examples:[De.Coupon.uses],description:"Number of times this coupon has been redeemed so far."}),promoters:Vi(Ki({id:si().meta({description:"Identifier of a promoter this coupon applies to."}),name:si().meta({description:"Name of a promoter this coupon applies to."}),slug:si().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:Vi(Ki({id:si().meta({description:"Identifier of an event this coupon applies to."}),name:si().meta({description:"Name of an event this coupon applies to."}),slug:si().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:Vi(Ki({id:si().meta({description:"Identifier of a section this coupon applies to."}),name:si().meta({description:"Name of a section this coupon applies to."}),eventId:si().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:Vi(Ki({id:si().meta({description:"Identifier of an admission this coupon applies to."}),name:si().meta({description:"Name of an admission this coupon applies to."}),eventId:si().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:ia.meta({examples:[De.Coupon.saleStartsAt],description:"Wall clock time when this coupon becomes valid (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)"}),saleEndsAt:ia.optional().meta({examples:[De.Coupon.saleEndsAt],description:"Wall clock time when this coupon expires (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)"}),teamId:si().meta({description:"Team that created this coupon."})}).meta({description:"coupon"}),xc=Ki({id:si().readonly().meta({examples:[De.CouponCode.id],description:"A unique identifier for this coupon code."}),createdAt:Ur().readonly().meta({examples:[De.CouponCode.createdAt],description:"Timestamp in ISO 8601 format when this coupon code was created."}),updatedAt:Ur().readonly().meta({examples:[De.CouponCode.updatedAt],description:"Timestamp in ISO 8601 format when this coupon code was last updated."}),name:si().meta({examples:[De.CouponCode.name],description:"The code string that customers enter to redeem the coupon."}),active:Ci().meta({examples:[De.CouponCode.active],description:"Whether this coupon code is currently enabled for use."}),couponId:si().meta({examples:[De.Coupon.id],description:"Identifier of the coupon to which this code belongs."}),teamId:si().meta({description:"Team that created this coupon code."}),uses:Si().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"}),Ec=xc.pick({id:!0});Ki({couponId:si().meta({examples:[De.Coupon.id]})}),Ki({name:si(),couponId:si().optional().meta({examples:[De.Coupon.id]})});const Ac=xc.omit({id:!0,createdAt:!0,updatedAt:!0,uses:!0}),Tc=xc.omit({createdAt:!0,updatedAt:!0,couponId:!0,teamId:!0,uses:!0}).partial().extend({id:xc.shape.id}),Oc=Ec,_c=Ki({couponId:si().optional().meta({examples:[De.Coupon.id],description:"Optional filter to retrieve coupon codes for a specific coupon"}),teamId:si().optional().meta({examples:["tem_01jqpjksnsen9vprw95et60t2m"],description:"Optional filter to retrieve coupon codes created by a specific team"}),active:Ao().optional().meta({examples:[!0],description:"Optional filter to retrieve only active or inactive coupon codes"}),query:si().optional().meta({examples:["SUMMER"],description:"Optional search query to filter coupon codes by name. When provided, search-backed pagination is used."}),limit:oa("coupon codes").optional(),cursor:si().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"}),Dc=_a(xc,"codes"),Sc=Ki({couponCode:xc}),Mc=kc.omit({id:!0,createdAt:!0,updatedAt:!0}).meta({description:"Schema for creating a new coupon without system-generated fields"}),Pc=kc.pick({id:!0}).meta({description:"Schema for retrieving a single coupon by ID"}),jc=Pc.meta({description:"Schema for deleting a coupon by ID with optional soft-delete filtering"}),Cc=Ki({teamId:si().meta({examples:[De.Team.id],description:"Unique identifier of the team whose coupons to retrieve"}),active:Ao().optional().meta({examples:[!0],description:"Optional filter to retrieve only active or inactive coupons"}),query:si().optional().meta({examples:["Half Price"],description:"Optional search query to filter coupons by name or description. When provided, search-backed pagination is used."}),limit:oa("coupons").optional(),cursor:si().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"}),Nc=_a(kc,"coupons"),Rc=Ki({coupon:kc}),Uc=kc.omit({createdAt:!0,updatedAt:!0,teamId:!0}).partial().extend({id:kc.shape.id.meta({examples:[De.Coupon.id],description:"Unique identifier of the coupon to update"}),saleEndsAt:ia.nullable().optional().meta({examples:[De.Coupon.saleEndsAt],description:"Expiry time. Pass null to remove end date; omit to leave unchanged."}),currency:Oo.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."}),Lc=fe.route({method:"GET",path:"/coupon-codes/{id}",summary:"Get coupon code by ID",tags:["Coupon Codes"]}).input(Ec.strict()).output(Sc),qc=fe.route({method:"POST",path:"/coupon-codes",summary:"Create a new coupon code",tags:["Coupon Codes"]}).input(Ac.strict()).output(Sc),Gc=fe.route({method:"PUT",path:"/coupon-codes/{id}",summary:"Update a coupon code",tags:["Coupon Codes"]}).input(Tc.strict()).output(Sc);var zc={get:Lc,list:fe.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(_c.strict()).output(Dc),create:qc,update:Gc,remove:fe.route({method:"DELETE",path:"/coupon-codes/{id}",summary:"Delete a coupon code",tags:["Coupon Codes"]}).input(Oc.strict()).output(Sc)};const Fc=fe.route({method:"GET",path:"/coupons/{id}",summary:"Get coupon by ID",tags:["Coupons"]}).input(Pc.strict()).output(Rc),Bc=fe.route({method:"POST",path:"/coupons",summary:"Create a new coupon",tags:["Coupons"]}).input(Mc.strict()).output(Rc),Wc=fe.route({method:"PUT",path:"/coupons/{id}",summary:"Update a coupon",tags:["Coupons"]}).input(Uc.strict()).output(Rc);var Zc={get:Fc,list:fe.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(Cc.strict()).output(Nc),create:Bc,update:Wc,remove:fe.route({method:"DELETE",path:"/coupons/{id}",summary:"Delete a coupon",tags:["Coupons"]}).input(jc.strict()).output(Rc),code:zc},Yc={suggestTags:fe.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(Na.strict()).output(Ra)};const Vc=Ki({eventId:Co.meta({description:"Event to like"})}).meta({description:"Request to like an event"}),Hc=Ki({limit:oa("likes"),cursor:si().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."}),Kc=Ki({tenantId:si().readonly().meta({description:"Tenant ID for multi-tenant isolation"}),userId:Uo.readonly().meta({description:"User who liked the event"}),eventId:Co.meta({description:"Event the user liked"}),createdAt:Ur().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."}),Jc=_a(Kc,"likes").meta({description:"Paginated list of event likes. Use cursor-based pagination to navigate through results."}),Qc=Ki({eventId:Co.meta({description:"Event to remove like from"})}).meta({description:"Request to remove the current user's like from an event"}),Xc=Ki({like:Kc});var eu={add:fe.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(Vc).output(Xc),remove:fe.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(Qc).output(Bi()),list:fe.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(Hc).output(Jc)};const tu=Ki({id:Ro.readonly().meta({examples:[De.Location.id],description:"Location identifier"}),googlePlaceId:si().optional().meta({examples:["ChIJP3Sa8ziYEmsRUKgyFmh9AQM"],description:"Google Place ID for this location"}),createdAt:Ur().meta({examples:[De.Location.createdAt],description:"Timestamp in ISO 8601 format when the location was created"}),updatedAt:Ur().meta({examples:[De.Location.updatedAt],description:"Timestamp in ISO 8601 format when the location was last updated"}),name:si().meta({examples:[De.Location.name],description:"Location name"}),address:si().meta({examples:[De.Location.address],description:"Formatted address"}),city:si().optional().meta({examples:[De.Location.city],description:"City name"}),state:si().optional().meta({examples:[De.Location.state],description:"State or region"}),postcode:si().optional().meta({examples:[De.Location.postcode],description:"Postal code"}),country:si().meta({examples:[De.Location.country],description:"Country name"}),latitude:Si().min(-90).max(90).meta({examples:[De.Location.latitude],description:"Latitude coordinate"}),longitude:Si().min(-180).max(180).meta({examples:[De.Location.longitude],description:"Longitude coordinate"}),timeZone:si().min(1).regex(/^[A-Za-z0-9_+-]+(\/[A-Za-z0-9_+-]+)*$/,{message:"Must be a valid IANA timezone identifier format"}).meta({examples:[De.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:Vi(si()).optional().meta({examples:[["establishment","point_of_interest","stadium"]],description:"Google Place types indicating the category and nature of this location"}),description:si().optional().meta({examples:["Historic outdoor amphitheater known for summer concerts"],description:"AI-generated description of the place, when available"}),image:Qo.optional().meta({description:"Primary location photo"}),venueId:No.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"}),nu=tu.omit({venueId:!0}).extend({venue:Ki({id:No.meta({description:"Venue identifier"}),name:si().meta({description:"Venue name"}),slug:si().meta({description:"URL-friendly venue slug"}),teamId:si().meta({description:"Team that owns this venue"}),approval:To.meta({description:"Venue approval status"}),image:Qo.optional().meta({description:"Venue image"}),description:si().optional().meta({description:"Venue description"})}).optional().meta({description:"Denormalized venue details if this location is a managed venue. Only included when venue is approved."})}),ru=Ki({id:Go.readonly().meta({examples:[De.Promoter.id],description:"Unique identifier for the promoter organization"}),createdAt:Ur().readonly().meta({examples:[De.Promoter.createdAt],description:"Timestamp in ISO 8601 format when the promoter was created"}),updatedAt:Ur().readonly().meta({examples:[De.Promoter.updatedAt],description:"Timestamp in ISO 8601 format when the promoter was last updated"}),name:si().min(3).max(30).meta({examples:[De.Promoter.name],description:"Display name of the promoter organization. Must be between 3 and 30 characters"}),slug:si().min(3).max(30).meta({examples:[De.Promoter.slug],description:"URL-friendly slug for the promoter organization. Must be unique and between 3 and 30 characters"}),teamId:jo.meta({examples:["tem_01jqpjksnsen9vprw95et60t2m"],description:"ID of the team that owns this promoter. Establishes team-based organization and permissions."}),description:si().meta({examples:[De.Promoter.description],description:"Detailed description of the promoter organization and their events"}),approval:To.meta({examples:[De.Promoter.approval],description:"Approval status of the promoter. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate"}),image:Qo.optional().meta({description:"Optional promotional image for the promoter organization with dimensions and alt text"}),location:nu.meta({description:"Primary location details for the promoter including address, coordinates, and timezone"}),geohash:si().meta({examples:[De.Promoter.geohash],description:"Geohash encoding of the promoter's location for efficient spatial queries"}),tracking:Ki({fbId:si().optional().meta({examples:[De.Promoter.tracking.fbId],description:"Facebook pixel ID for tracking conversions and analytics"}),gtmId:si().optional().meta({examples:[De.Promoter.tracking.gtmId],description:"Google Tag Manager container ID for web analytics"}),tikTokId:si().optional().meta({examples:[De.Promoter.tracking.tikTokId],description:"TikTok pixel ID for advertising and conversion tracking"})}).optional().meta({description:"Optional tracking configuration for analytics and advertising platforms"}),metadata:ra}).meta({description:"Promoter organization with location and approval status"}),iu=Ki({id:si().readonly().meta({examples:[De.Section.id],description:"Unique identifier for the section"}),createdAt:Ur().readonly().meta({examples:[De.Section.createdAt],description:"Timestamp when the section was created in ISO 8601 format"}),updatedAt:Ur().readonly().meta({examples:[De.Section.updatedAt],description:"Timestamp when the section was last updated in ISO 8601 format"}),name:si().meta({examples:[De.Section.name],description:"Display name of the section (e.g., 'VIP Area', 'General Admission')"}),capacity:Xo().prefault(-1).meta({examples:[De.Section.capacity],description:"Maximum number of attendees for this section. Use -1 for unlimited capacity"}),limit:ea().prefault(-1).meta({examples:[De.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:Si().min(-1).readonly().meta({examples:[De.Section.available],description:"Number of tickets currently available for purchase in this section. Use -1 when capacity is unlimited"}),sold:Si().min(0).readonly().meta({examples:[De.Section.sold],description:"Number of tickets sold for this section"}),reserved:Si().readonly().meta({examples:[De.Section.reserved],description:"Number of tickets currently reserved (in pending orders) for this section"}),order:Si().min(0).meta({examples:[De.Section.order],description:"Display order of the section. Lower numbers appear first in listings"}),location:tu.meta({description:"Physical location details for the section"}),passcode:si().optional().meta({examples:["VIPACCESS"],description:"Code required to reveal all admissions within this section. Case-insensitive comparison"}),teamId:si().meta({description:"Team that owns this section. Denormalized for efficient queries."}),promoterId:si().meta({examples:[De.Section.promoterId],description:"Unique identifier of the promoter who owns this section"}),eventId:si().meta({examples:[De.Section.eventId],description:"Unique identifier of the event this section belongs to"}),eventSlug:si().meta({examples:[De.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"}),ou=ao(["UPCOMING","ENDED"]),au=ao(["PUBLIC","PRIVATE","SCHEDULED","PASSCODE","CANCELLED"]),su=Ki({id:Co.readonly().meta({examples:[De.Event.id],description:"A unique identifier for this event"}),createdAt:Ur().readonly().meta({examples:[De.Event.createdAt],description:"Timestamp in ISO 8601 format when this event was created"}),updatedAt:Ur().readonly().meta({examples:[De.Event.updatedAt],description:"Timestamp in ISO 8601 format when this event was last updated"}),name:si().meta({examples:[De.Event.name],description:"The title of the event shown to attendees"}),slug:si().meta({examples:[De.Event.slug],description:"URL-friendly identifier for the event"}),description:si().meta({examples:[De.Event.description],description:"Detailed description of the event"}),approval:To.meta({examples:["APPROVED"],description:"Approval status of the event"}),status:ou.meta({examples:["UPCOMING","ENDED"],description:"Current stage of the event lifecycle"}),visibility:au.meta({examples:["PUBLIC"],description:"Who can see the event"}),currency:Oo.meta({examples:["AUD"],description:"Three-letter ISO 4217 currency code used for ticket prices"}),url:fi().optional().meta({examples:["https://example.com"],description:"External URL for the event website or ticket page"}),entryStartsAt:ia.meta({examples:[De.Event.entryStartsAt],description:"Wall clock time when event entry begins (no timezone, displays same everywhere)"}),entryEndsAt:ia.meta({examples:[De.Event.entryEndsAt],description:"Wall clock time when event entry ends (no timezone, displays same everywhere)"}),publishAt:ia.meta({examples:[De.Event.publishAt],description:"Wall clock time when the event becomes publicly visible (no timezone)"}),images:Ki({mobile:Qo.meta({description:"Mobile-optimized image for the event"}),desktop:Qo.meta({description:"Desktop-optimized image for the event"})}),geohash:si().meta({examples:[De.Event.geohash],description:"Geohash representing the event location"}),location:nu.meta({description:"Structured location details for the event"}),teamId:jo.meta({description:"Team that owns this event. Denormalized for efficient queries."}),promoterId:Go.meta({examples:[De.Promoter.id],description:"Promoter organizing the event. Must belong to the team."}),metadata:ra,genres:Vi(si()).optional().meta({description:"Music genres for the event (1-5 genres)",examples:[["Tech House","Melodic Techno"]]}),categories:Vi(si()).optional().meta({description:"Event characteristics like vibe, venue type, and amenities (up to 10)",examples:[["Day Party","Open Air","Free Entry"]]}),featured:Ci().optional().meta({description:"Whether this event is an editorial pick",examples:[!0]}),likes:Si().int().min(0).optional().meta({description:"Number of users who liked this event",examples:[42]})}).meta({description:"event"}),du=ru.pick({id:!0,name:!0,slug:!0,description:!0,image:!0}),cu=Ki({event:su.extend({sections:Vi(iu),admissions:Vi(xa),promoter:du.optional().meta({description:"Public summary of the promoter organizing this event. Included on event detail responses only."}),liked:Ci().optional().meta({description:"Whether the current user has liked this event",examples:[!0,!1]})})}),uu=su.omit({id:!0,teamId:!0,createdAt:!0,updatedAt:!0,status:!0,approval:!0,geohash:!0,location:!0,featured:!0,likes:!0}).extend({slug:si().min(3).max(100).optional().meta({examples:[De.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:si().optional().meta({description:"Passcode for protected access to the event"}),locationId:Ro.optional().meta({examples:["loc_01jqpjksnsen9vprw95et60t2m"],description:"ID of an existing location. Either locationId or googlePlaceId must be provided."}),googlePlaceId:si().optional().meta({examples:["ChIJN1t_tDeuEmsRUsoyG83frY4"],description:"Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided."}),genres:Mo.optional().meta({description:"Music genres for the event (1-5 genres)",examples:[["Tech House","Melodic Techno"]]}),categories:Do.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"}),lu=Ki({key:si().min(1).meta({description:"Event key - either a unique ID (evt_xxx format) or URL-friendly slug",examples:[De.Event.id,De.Event.slug]})}),pu=Ki({key:si().min(1).meta({description:"Event key - either a unique ID (evt_xxx format) or URL-friendly slug",examples:[De.Event.id,De.Event.slug]}),featured:Ci().meta({description:"Whether the event should be featured (editorial pick)",examples:[!0,!1]})}),mu=Ki({key:si().min(1).meta({description:"Event key - either a unique ID (evt_xxx format) or URL-friendly slug",examples:[De.Event.id,De.Event.slug]}),passcode:si().optional().meta({description:"Passcode for accessing protected events"}),teamId:si().optional().meta({description:"Optional team scope. When provided, event must belong to this team."})}),fu=Ki({sold:Si().min(0).meta({description:"Number of tickets sold (net of refunds)"}),reserved:Si().min(0).meta({description:"Number of tickets reserved"}),available:Si().min(-1).meta({description:"Number of tickets available (-1 for unlimited)"}),capacity:Si().min(-1).meta({description:"Total capacity (-1 for unlimited)"})}),hu=Ki({status:ao(["UPCOMING","ENDED"]).optional().meta({examples:["UPCOMING"],description:"Filter events by their current lifecycle status"}),approval:To.optional().meta({examples:["APPROVED"],description:"Filter events by their approval status"}),visibility:ao(["PUBLIC","PRIVATE","SCHEDULED","PASSCODE"]).optional().meta({examples:["PUBLIC"],description:"Filter events by their visibility setting"}),promoterId:si().optional().meta({examples:[De.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:si().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:si().optional().meta({description:"Filter events to only those at a specific venue. If not provided, returns events at all venues"}),limit:Eo().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:si().optional().meta({examples:["evt_01jps5cgsenjrazw6wswmyspa3"],description:"Cursor token for pagination. Provide the cursor from the previous response to continue fetching results"}),query:new oi({type:"string",coerce:!0,...Xe(void 0)}).optional().meta({examples:["Test Event"],description:"Search term to filter events by name, description, or location. Triggers full‑text search when provided"}),latitude:Eo().min(-90).max(90).optional().meta({examples:[De.Event.location.latitude],description:"Latitude coordinate for geographic search. Provide with longitude (and optional radius)"}),longitude:Eo().min(-180).max(180).optional().meta({examples:[De.Event.location.longitude],description:"Longitude coordinate for geographic search. Provide with latitude (and optional radius)"}),radius:Eo().optional().meta({examples:[20],description:"Search radius in kilometers from the provided coordinates. Defaults to 20km"}),country:si().optional().meta({examples:["australia"],description:"Filter by country region slug. Matches events where location.country equals the region name"}),state:si().optional().meta({examples:["nsw"],description:"Filter by state/province region slug. Matches events where location.state equals the region name"}),city:si().optional().meta({examples:["sydney"],description:"Filter by city region slug. Matches events where location.city equals the region name"}),from:si().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:si().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:Vi(So).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:Vi(_o).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:Ci().optional().meta({examples:[!0],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"}),vu=ka({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"}),gu=_a(su.extend({inventory:fu.optional(),liked:Ci().optional().meta({description:"Whether the current user has liked this event",examples:[!0,!1]}),price:vu.nullable().meta({description:"Cheapest publicly purchasable admission price, or null when no public admission is currently available"})}),"events"),yu=Ki({event:su});ao(["ONLINE","DOOR","SALE_ENDED","SOLD_OUT"]);const bu=su.omit({createdAt:!0,updatedAt:!0,promoterId:!0,geohash:!0,status:!0,location:!0,featured:!0,likes:!0}).partial().extend({key:si().meta({examples:[De.Event.id,De.Event.slug],description:"Event key - either a unique ID (evt_xxx format) or URL-friendly slug"}),passcode:si().nullable().optional().meta({description:"Passcode for protected access. Pass null to clear; omit to leave unchanged."}),url:fi().nullable().optional().meta({examples:["https://example.com/events/summer-festival-2025"],description:"External event URL. Pass null to clear; omit to leave unchanged."}),locationId:Ro.optional().meta({examples:["loc_01jqpjksnsen9vprw95et60t2m"],description:"ID of an existing location to update to. Either locationId or googlePlaceId can be provided."}),googlePlaceId:si().optional().meta({examples:["ChIJN1t_tDeuEmsRUsoyG83frY4"],description:"Google Place ID to update location from. Either locationId or googlePlaceId can be provided."}),genres:Mo.optional().meta({description:"Music genres for the event (1-5 genres)",examples:[["Tech House","Melodic Techno"]]}),categories:Do.meta({description:"Event characteristics like vibe, venue type, and amenities (up to 10)",examples:[["Day Party","Open Air","Free Entry"]]}),notify:Ci().optional().meta({description:"Whether attendees should be notified about this event update.",examples:[!0]})}).meta({description:"Schema for updating an existing event."}),wu=Vs.extend({limit:Eo().min(1).max(100).optional().default(10)}),$u=Zs.extend({limit:Eo().min(1).max(100).optional().default(10)}),Iu=Ks.extend({limit:Eo().min(1).max(100).optional().default(10)}),ku=ed.extend({limit:Eo().min(1).max(100).optional().default(10)}),xu=nd.extend({limit:Eo().min(1).max(100).optional().default(10)});var Eu={summary:fe.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(Rs).output(Us),tickets:fe.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(Ls).output(qs),funnel:fe.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(Gs).output(zs),campaigns:fe.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(wu).output(Hs),coupons:fe.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($u).output(Ys),mediums:fe.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(Iu).output(Js),devices:fe.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(Qs).output(Xs),locations:fe.route({method:"GET",path:"/events/{eventId}/performance/locations",summary:"Get geographic performance",description:"Performance by geographic location from tracking events",tags:["Event Performance"]}).input(ku).output(td),traffic:fe.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(xu).output(rd),attendance:fe.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(id).output(dd)};const Au=fe.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(mu).output(cu),Tu=fe.route({method:"POST",path:"/events",summary:"Create a new event",tags:["Events"]}).input(uu.strict()).output(yu),Ou=fe.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(bu.strict()).output(yu);var _u={get:Au,list:fe.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(hu).output(gu),create:Tu,update:Ou,remove:fe.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(lu.strict()).output(yu),feature:fe.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(pu.strict()).output(yu),like:eu,performance:Eu,tags:Yc.suggestTags};const Du=Ki({id:Vo.readonly().meta({description:"Unique identifier for the event collaborator"}),createdAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the collaborator was added"}),updatedAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the collaborator was last updated"}),eventId:Co.meta({description:"Event this collaboration applies to"}),promoterId:Go.meta({description:"Promoter collaborating on the event"}),acceptedBy:Uo.meta({description:"User ID who accepted the invitation to collaborate"}),promoter:Ki({id:Go.meta({description:"Unique identifier of the promoter"}),name:si().meta({description:"Name of the promoter"}),teamId:jo.meta({description:"Team ID of the promoter"})}).optional().meta({description:"Populated promoter details. Only included when explicitly requested."}),permissions:ba.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:si().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."}),Su=Du.pick({id:!0,eventId:!0}).meta({description:"Schema for accepting an event promoter collaboration invitation. User accepting must be a member of the invited promoter's team."}),Mu=Ki({id:Vo.readonly().meta({description:"Unique identifier for the event collaboration invitation"}),createdAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the invitation was created"}),updatedAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the invitation was last updated"}),eventId:Co.meta({description:"Event this invitation applies to"}),promoterId:Go.meta({description:"Promoter being invited to collaborate on the event."}),invitedByPromoterId:Go.meta({description:"Promoter who sent this invitation (event owner or collaborator with permission)."}),permissions:ba.meta({description:"Permissions the promoter will receive upon accepting the invitation.",examples:[[],["event.read","event.write"],["order.read"],["ticket.scan"],["*"]]}),token:si().readonly().meta({description:"Secure token for invite acceptance. Required to accept the invitation."}),invitedBy:Uo.meta({description:"User ID who sent the invitation"}),expiresAt:Si().int().positive().meta({description:"Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days."}),tenantId:si().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."}),Pu=Mu.omit({id:!0,tenantId:!0,createdAt:!0,updatedAt:!0,token:!0,expiresAt:!0,invitedByPromoterId:!0}).meta({description:"Schema for inviting a promoter to collaborate on an event. Creates a pending invitation that the promoter can accept."}),ju=Ki({eventId:Co.meta({description:"Event ID that the collaboration belongs to"}),id:Vo.meta({description:"Event team access grant ID to retrieve"})}),Cu=Ki({invite:Mu}),Nu=Ki({eventId:si().meta({description:"Event ID to list collaborators for"}),accessPromoterId:si().optional().meta({description:"DEPRECATED: Use 'promoterId' instead. Filter by collaborating promoter ID (what events can this promoter access). Maintained for backward compatibility."}),ownerPromoterId:si().optional().meta({description:"DEPRECATED: No longer used. Maintained for backward compatibility only."}),limit:oa("event collaborators"),cursor:si().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."}),Ru=_a(Du,"grants"),Uu=Ki({collaborator:Du});var Lu={get:fe.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(ju.strict()).output(Uu),list:fe.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(Nu.strict()).output(Ru),create:fe.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(Pu.strict()).output(Cu),accept:fe.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(Su.strict()).output(Uu),remove:fe.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(ju.strict()).output(Bi())};const qu=ao(["default","custom"]),Gu=ao(["active","pending","pending_certificate","pending_dns_validation","pending_cloudfront","cloudfront_deploying","pending_activation","failed"]),zu=ao(["pending_validation","issued","failed","expired"]),Fu=Ki({domain:si(),name:si(),value:si(),type:si(),purpose:ao(["ssl_validation","traffic_routing"]).optional()}),Bu=Ki({domain:si(),type:qu,status:Gu,isPrimary:Ci(),teamId:si(),tenantId:si(),certificateArn:si().optional(),certificateStatus:zu.optional(),distributionId:si().optional(),distributionDomain:si().optional(),dnsRecords:Vi(Fu).optional(),dnsValidationRecords:Vi(Fu).optional(),errorMessage:si().optional(),verifiedAt:Ur().optional(),createdAt:Ur(),updatedAt:Ur()}),Wu=Ki({host:si()}),Zu=eo("type",[Ki({type:co("resolved"),data:Ki({teamId:si(),tenantId:si()})}),Ki({type:co("pending"),data:Ki({status:Gu.exclude(["active","pending"]),errorMessage:si().optional()})}),Ki({type:co("not_found")})]),Yu=Ki({file:new Ui({type:"any"}).describe("Image file to upload (max 10MB)"),folder:ao(["avatars","events","teams","promoters","venues"]).describe("Folder to upload to"),width:Eo().int().positive().optional().describe("Target width in pixels"),height:Eo().int().positive().optional().describe("Target height in pixels")}),Vu=Qo,Hu=Ki({language:si().trim().max(80).optional(),platform:si().trim().max(120).optional(),timezone:si().trim().max(120).optional(),userAgent:si().trim().max(800).optional(),viewport:Ki({width:Si().int().positive().max(1e4),height:Si().int().positive().max(1e4),devicePixelRatio:Si().positive().max(10).optional()}).optional()}),Ku=Ki({key:si().trim().min(1),message:si().trim().min(10).max(4e3),pageUrl:fi().max(2e3),pageTitle:si().trim().max(300).optional(),browser:Hu.optional()}),Ju=Ki({ok:co(!0)}),Qu=fe.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(Yu.strict()).output(Vu);var Xu={resolveDomain:fe.route({method:"GET",path:"/internal/domains/resolve",summary:"Resolve host to team and tenant context",tags:["Internal"]}).input(Wu.strict()).output(Zu),shareFeedback:fe.route({method:"POST",path:"/internal/feedback",summary:"Share product feedback",description:"Send authenticated tenant dashboard feedback to the Sessions team.",tags:["Internal"]}).input(Ku.strict()).output(Ju),uploadImage:Qu};const el=Ki({key:si().min(1).meta({description:"Location key - either a location ID (loc_xxx format) or provider-specific identifier (e.g., Google Place ID)",examples:[De.Location.id,"ChIJP3Sa8ziYEmsRUKgyFmh9AQM"]})}),tl=Ki({query:si().min(1).meta({examples:["sydney opera"],description:"Search query for location search"}),latitude:Eo().min(-90).max(90).optional().meta({examples:[De.Location.latitude],description:"User's latitude for proximity-based results (optional for better relevance)"}),longitude:Eo().min(-180).max(180).optional().meta({examples:[De.Location.longitude],description:"User's longitude for proximity-based results (optional for better relevance)"}),types:Vi(si()).optional().meta({examples:[["establishment"]],description:"Filter results by Google Place types (e.g., 'establishment', 'night_club', 'bar')"})}).meta({description:"Parameters for searching locations"}),nl=Ki({googlePlaceId:si().meta({examples:["ChIJP3Sa8ziYEmsRUKgyFmh9AQM"],description:"Google Place ID for this location"}),name:si().meta({examples:[De.Location.name],description:"Primary name of the location"}),description:si().meta({examples:[De.Location.address],description:"Full formatted address"}),venue:Ki({id:No.meta({examples:[De.Venue.id],description:"Venue ID if this location is a managed venue"}),name:si().meta({examples:[De.Venue.name],description:"Venue name"}),teamId:si().meta({description:"Team that manages this venue"}),image:Qo.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"}),rl=Ki({predictions:Vi(nl).meta({description:"Array of location predictions"})}).meta({description:"Response containing location search results"}),il=Ki({location:nu});var ol={list:fe.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(tl.strict()).output(rl),get:fe.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(el.strict()).output(il)};const al=Ki({name:si().meta({examples:["tenant-web","team-web","api","partner"],description:"Free-form channel identifier describing where the order originated."}),referrer:si().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:si().optional().meta({examples:["instagram"],description:"Optional UTM source captured from the originating URL."}),utmMedium:si().optional().meta({examples:["social"],description:"Optional UTM medium captured from the originating URL."}),utmCampaign:si().optional().meta({examples:["summer-launch"],description:"Optional UTM campaign captured from the originating URL."}),deviceType:ao(["MOBILE","TABLET","DESKTOP"]).optional().meta({examples:["MOBILE"],description:"Optional analytics device classification captured at order creation."}),country:si().optional().meta({examples:["Australia"],description:"Optional viewer country captured at order creation for analytics attribution."}),region:si().optional().meta({examples:["Australia - New South Wales"],description:"Optional viewer region captured at order creation for analytics attribution."})}),sl=Ki({id:si().meta({examples:[De.CouponCode.id],description:"Unique identifier of the coupon code used in the order"}),name:si().meta({examples:[De.CouponCode.name],description:"The coupon code string that was entered by the customer"}),couponId:si().meta({examples:[De.CouponCode.couponId],description:"Unique identifier of the parent coupon configuration"})}),dl=Ki({id:si().meta({examples:[De.Customer.id],description:"Unique identifier of the customer who placed the order"}),firstName:si().meta({examples:[De.Customer.firstName],description:"First name of the customer"}),lastName:si().meta({examples:[De.Customer.lastName],description:"Last name of the customer"}),email:ui().meta({examples:[De.Customer.email],description:"Email address of the customer"}),phone:si().meta({examples:[De.Customer.phone],description:"Customer phone number in E.164 format for SMS delivery"}).optional()}),cl=Ki({id:si().meta({examples:[De.Event.id],description:"Unique identifier of the event associated with the order"}),name:si().meta({examples:[De.Event.name],description:"Display name of the event"}),slug:si().meta({examples:[De.Event.slug],description:"URL-friendly slug of the event"}),location:si().meta({examples:[De.Event.location.name],description:"Name of the venue or location where the event takes place"}).optional()}),ul=ao(["GATEWAY","SHIPPING","SMS_DELIVERY"]).meta({description:"Type of fee applied to an order"}),ll=Ki({id:si().meta({examples:[De.OrderFee.id],description:"Unique identifier for this order fee"}),createdAt:Ur().readonly().meta({examples:[De.OrderFee.createdAt],description:"Timestamp in ISO 8601 format when this fee was created"}),reason:si().meta({examples:[De.OrderFee.reason],description:"Description explaining why this fee was applied to the order"}),amount:Si().finite("Amount must be a valid number").meta({examples:[De.OrderFee.amount],description:"Fee amount in cents (positive value indicates charge to customer, negative value indicates credit or discount)"}),currency:Oo.meta({examples:[De.OrderFee.currency],description:"Currency code in ISO 4217 format"}),requestId:si().meta({examples:[De.OrderFee.requestId],description:"External payment processor request identifier for tracking this fee"}),kind:ul.optional().meta({examples:["GATEWAY"],description:"Type of fee for categorization and reporting"})}),pl=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:_e(be(new Date,1)),entryEndsAt:_e(be(new Date,2)),publishAt:_e(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:e.location,teamId:e.teamId,promoterId:e.promoterId,tenantId:e.tenantId}),ml=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:_e(be(new Date,1)),entryEndsAt:_e(be(new Date,2)),saleStartsAt:_e(new Date),saleEndsAt:_e(be(new Date,2)),price:{base:1e3,booking:200,currency:"AUD"},tenantId:e.tenantId}),fl=e=>({id:"tkt_01jps5cgsh51kzg7534pzap7gk",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),status:"REDEEMED",scans:[],token:e.token,attendee:{email:vl.Customer.email,firstName:vl.Customer.firstName,lastName:vl.Customer.lastName},event:{id:vl.WrongEvent.id,name:vl.WrongEvent.name,slug:vl.WrongEvent.slug,location:vl.WrongEvent.location,entryStartsAt:vl.WrongEvent.entryStartsAt,entryEndsAt:vl.WrongEvent.entryEndsAt,images:vl.WrongEvent.images},admission:{id:vl.WrongAdmission.id,name:vl.WrongAdmission.name,price:vl.WrongAdmission.price,entryStartsAt:vl.WrongAdmission.entryStartsAt,entryEndsAt:vl.WrongAdmission.entryEndsAt},eventId:vl.WrongEvent.id,customerId:vl.Customer.id,orderId:vl.WrongOrder.id,orderItemId:vl.WrongOrderItem.id,admissionId:vl.WrongOrderItem.admissionId,...e.teamId?{teamId:e.teamId}:{},promoterId:vl.WrongPromoter.id,promoterSlug:vl.WrongPromoter.slug,tenantId:vl.Tenant.id}),hl=e=>{let t=new Date(2020,1,1);return{...De.Event,id:e.id,status:e.status,createdAt:t.toISOString(),updatedAt:t.toISOString(),publishAt:_e(t),entryStartsAt:_e(t),entryEndsAt:_e(new Date(2020,1,2)),slug:e.slug,name:e.name}};let vl;!function(e){let{Tenant:t,Team:n,TeamMember:r,TeamInvite:i,Venue:o,User:a,Session:s,EmailVerification:d,PasswordReset:c,Promoter:u,PromoterMember:l,CurrentSession:p,Event:m,DetailedEvent:f,Location:h,CarouselLocation:v,Section:g,Admission:y,Beneficiary:b,AirwallexBeneficiary:w,Coupon:$,CouponCode:I,AmountCoupon:k,AmountCouponCode:x,Customer:E,Payout:A,Order:T,OrderItem:O,OrderFee:_,Ticket:D}=De;e.Tenant=t,e.Team=n,e.TeamMember=r,e.TeamInvite=i,e.Venue=o,e.User=a,e.Session=s,e.EmailVerification=d,e.PasswordReset=c,e.Promoter=u,e.PromoterMember=l,e.CurrentSession=p,e.Event=m,e.DetailedEvent=f,e.Location=h,e.CarouselLocation=v,e.Section=g,e.Admission=y,e.Beneficiary=b,e.AirwallexBeneficiary=w,e.Coupon=$,e.CouponCode=I,e.AmountCoupon=k,e.AmountCouponCode=x,e.Customer=E,e.Payout=A,e.Order=T,e.OrderItem=O,e.OrderFee=_,e.Ticket=D,e.JayUser={...a,id:"usr_01k5hbpkfje048zccqmqfhjpep",email:"j@1f.io",firstName:"Jay",lastName:"McMullen"};let S=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:S.id,user:S,permissions:["*"],isOwner:!1,tenantId:t.id},e.SystemUser={...a,id:"usr_01jps5cgsgn1ee4txxn0fz81f2",email:"system@session.services",firstName:"Session",lastName:"Services"},e.DeletedAdmission={...y,id:"adm_01jps5cgsg63gr2s1g2d87cqfy",deletedAt:(new Date).toISOString(),deleted:!0},e.SoloAdmission={...y,id:"adm_01jpsf2h7r4z8kmd9x1q3w4vty",name:"Solo Admission",sectionId:void 0},e.DeletedCoupon={...$,id:"cpn_01jps5cgsgzxf6xvmx3dnt9h1p",couponId:"cpn_01jps5cgsgzxf6xvmx3dnt9h1p",deletedAt:(new Date).toISOString(),deleted:!0},e.DeletedCouponCode={...I,id:"cod_01jps5cgsg7ep2gvwzghp1ppv6",deletedAt:(new Date).toISOString(),deleted:!0},e.DeletedSection={...g,id:"sct_01jps5cgsgy7681swwcvf01wxh",deletedAt:(new Date).toISOString(),deleted:!0},e.DeletedEvent={...m,id:"evt_01jps5cgsg8pyd64pc89tcbg9j",slug:"deleted-event",name:"Deleted Event",deletedAt:(new Date).toISOString(),deleted:!0},e.PastEvent=hl({id:"evt_01jqqt1ztw4676fdrr27z7de1c",status:"ENDED",slug:"past-event",name:"Past Event"}),e.CancelledEvent=hl({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:!0},e.DeletedPromoterMember={...l,userId:vl.User.id,user:vl.User,id:"mbr_01jpwzceh3zvab64kwq633q4cc"},e.SmsOrder={...T,id:De.SmsOrder.id,status:"SUCCESSFUL",price:{...T.price,sms:200},customer:{...E,phone:"+61412345678"},offers:[]},e.ExpiredOrder={...T,id:"ord_01jq0xwysx1hzs3wqt2fns4578",token:"c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0",status:"PENDING",createdAt:new Date(2020,1,1).toISOString(),updatedAt:new Date(2020,1,1).toISOString()},e.AbandonedOrder={...T,id:"ord_01jq0xdzwsfjpd329r8gv3txr2",token:"c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0",status:"ABANDONED",createdAt:new Date(2020,1,1).toISOString(),updatedAt:new Date(2020,1,1).toISOString()},e.ProcessingOrder={...T,id:"ord_01jq289n4kcz2tnre24x3v2get",token:"c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0",status:"PROCESSING",customer:De.Customer,customerId:De.Customer.id},e.FreeAdmission={...y,id:"adm_01jpykjbrdgy8jxmz57hmampww",price:{base:0,booking:0,currency:"AUD"}},e.SoldOutAdmission={...y,id:"adm_01jps5cgse6m3567vzvk69hkrm",name:"First Release",capacity:100,available:0,sold:100,reserved:0},e.UnlimitedAdmission={...y,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:m.id,eventSlug:m.slug,name:"Sold Out Section",capacity:-1,limit:-1,available:-1,sold:200,reserved:0,order:0,location:h,tenantId:t.id};let M=e.SoldOutSection={id:"sct_01jq1rcqbkzqbbakgwy8ptpmvq",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),teamId:n.id,promoterId:u.id,eventId:m.id,eventSlug:m.slug,name:"Sold Out Section",capacity:200,limit:-1,sold:200,available:0,reserved:0,order:0,location:h,tenantId:t.id};e.SoldOutSectionAdmission={...y,sectionId:M.id,id:"adm_01jq1rcjah79628zsafg3k8wyz",name:"First Release",capacity:100,available:100,sold:0,reserved:0,order:0};let P=e.MaxReservedSection={id:"sct_01jq1rcqbkzrkea9ng8e4kngvq",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),teamId:n.id,promoterId:u.id,eventId:m.id,eventSlug:m.slug,name:"Max Reserved Section",capacity:200,limit:-1,sold:0,available:0,reserved:200,location:h,tenantId:t.id,order:0};e.MaxReservedAdmission={...y,id:"adm_01jq1rcqbk5s86df68xvz66fh4",name:"First Release",capacity:100,available:0,sold:0,reserved:100},e.MaxReservedSectionAdmission={...y,sectionId:P.id,id:"adm_01jq1rcqbkhkxq67e9rs8rpngt",name:"First Release",capacity:100,available:100,sold:0,reserved:0},e.SessionsBeneficiary={...b,id:"ben_01jps5cgse5n6mg1ymkew9tsss",promoterId:"pmt_01jqpjksnsen9vprw95et60t2m"},e.AnotherBeneficiary={...b,id:"ben_01jpsbxdthxadywamz2yj4zt75",currency:"USD",name:"Another Bank Account"},e.AnotherSection={...g,id:"sct_01jps5cgsg3spk97pwwp4352z9"},e.AnotherEvent={...m,id:"evt_01jps5cgsgkegpptzf3dsmkbpy",slug:"another-event",name:"Another Event",visibility:"PUBLIC"},e.AnotherCouponCode={...I,name:"ANOTHER",id:"cod_01jps5cgsghcvnjsf5nax5d7z7"},e.PrivateEvent={...m,id:"evt_01jps5cgsgavb91qw967y3d64f",slug:"private-event",name:"Private Event",visibility:"PRIVATE"},e.PendingEvent={...m,id:"evt_01jps5cgsh7mpevnq8pngdqs8q",slug:"pending-event",name:"Pending Event",approval:"PENDING"};let j=e.WrongUser={id:"usr_01jps5cgshwa2sts0fj53pksk0",email:"wrong@session.services",firstName:"Wrong",lastName:"User",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),tenantId:t.id},C=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"},N=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:C.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:N.id,userId:j.id,user:{id:j.id,email:j.email,firstName:j.firstName,lastName:j.lastName},permissions:["*"],tenantId:t.id};let R=e.WrongEvent=pl({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:C.id,promoterId:N.id,tenantId:t.id}),U=e.WrongAdmission=ml({id:"adm_01jps5cgshfggkvmjhfkevy5en",sectionId:(e.WrongSection={id:"sct_01jps5cgsh6asm2d0ghfqq6br2",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),teamId:C.id,promoterId:N.id,eventId:R.id,eventSlug:R.slug,name:"Wrong Admission",capacity:200,limit:-1,available:200,reserved:0,order:0,sold:0,location:h,tenantId:t.id}).id,teamId:C.id,promoterId:N.id,eventId:R.id,eventSlug:R.slug,name:"Wrong Release",tenantId:t.id});e.ExpiredAdmission={...y,id:"adm_01jq6cazzbswynyvg8d0hpx1n5",entryStartsAt:_e(new Date(2020,0,1)),entryEndsAt:_e(be(new Date(2020,0,1),2))};let L=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:C.id,promoterId:N.id,tenantId:t.id},q=e.WrongCoupon={id:"cpn_01jps5cgsh4fy01mvwvzn7xbc9",couponId:"cpn_01jps5cgsh4fy01mvwvzn7xbc9",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),name:"Wrong Price",active:!0,kind:"PERCENT",filter:"TEAM",currency:"AUD",discount:50,uses:0,limit:-1,saleStartsAt:_e(new Date(2025,1,10,3,0,0)),saleEndsAt:void 0,deletedAt:void 0,teamId:C.id,tenantId:t.id},G=e.WrongCouponCode={id:"cod_01jps5cgsh2hevcp6av50kbgyf",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),active:!0,name:"WRONG",tenantId:t.id,couponId:q.id,teamId:C.id},z=e.WrongPayout={id:"pyt_01jps5cgshynssderz1k0fd7z3",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),paidAt:(new Date).toISOString(),structure:"default",items:{tickets:{beneficiaryId:L.id,feeAmount:0,feeCurrency:"AUD",transferAmount:1e3,transferCurrency:"AUD"},sessions:{beneficiaryId:L.id,feeAmount:0,feeCurrency:"AUD",transferAmount:650,transferCurrency:"AUD"}},eventId:R.id,teamId:C.id,promoterId:N.id},F=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:G.id,name:G.name},customer:E,teamId:C.id,promoterId:N.id,eventId:R.id,paymentId:"",payoutIds:[z.id]};e.WrongOrderItem={id:"itm_01jps5cgsh14bjvyywkvt6f37e",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),orderId:F.id,kind:"ADMISSION",quantity:2,admissionId:U.id,price:{base:U.price.base,booking:U.price.booking,discount:0,currency:U.price.currency}},e.WrongOrderFee={id:"fee_01jps5cgshgebpv67sppjfrgb8",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),orderId:F.id,reason:"Gateway Fee",amount:-30,currency:"AUD",requestId:"att_sgpdz4v2ph1axmdmdx8_m8w6qv"},e.WrongTicket=fl({token:"a1b2c3d4e5f6789012345678901234567890123456789012345678901234abcd",teamId:C.id}),e.AnotherTicket={...D,id:"tkt_01jq6v4gmad9m28kzw8g8910jw"},e.ExpiredTicket=fl({token:"e1f2a3b4c5d6789012345678901234567890123456789012345678901234efab"}),e.UpcomingPayout={...A,id:"pyt_01jq9cvaxvatez34jmwn11rzt8",status:"UPCOMING",transfers:[],deductions:[]},e.PayoutNotePayout={...A,id:"pyt_01kr2note0000000000000001",transfers:[],deductions:[]};let B=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"},W=e.MixmagUser={id:"usr_01jps5cgsmh2d4ez6xz2t23fsf",email:"mixmag@session.services",firstName:"Mixmag",lastName:"User",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),tenantId:B.id},Z=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"},Y=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:Z.id,tenantId:"tnt_01jqpj2t2kfvmstt6f6tzkbaf2"},V=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:B.id},H=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:B.id},K=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:{...v,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()},tracking:{fbId:"485739562847563",gtmId:"GTM-K8WPM5N",tikTokId:"BQCKPH3RC77U8GPMLJ5G"},teamId:H.id,tenantId:B.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:{...v,createdAt:"2025-12-12T08:13:11.004Z",updatedAt:"2025-12-12T08:13:11.171Z"},teamId:H.id,promoterId:K.id,tenantId:B.id},e.MixmagPromoterMember={id:"mbr_01jps5cgsmk2femegmakpgrjdq",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),promoterId:Y.id,promoterSlug:Y.slug,userId:W.id,user:{id:W.id,email:W.email,firstName:W.firstName,lastName:W.lastName},permissions:["*"],tenantId:B.id};let J=e.MixmagEvent=pl({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:Z.id,promoterId:Y.id,tenantId:B.id}),Q=e.MixmagSashEvent=pl({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:Z.id,promoterId:Y.id,tenantId:B.id}),X=e.MixmagAdmission=ml({id:"adm_01jps5cgsmbepdasrtxvh9xa0k",sectionId:(e.MixmagSection={id:"sct_01jps5cgsmhrfxjn18y9bfdqc2",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),teamId:Z.id,promoterId:Y.id,eventId:J.id,eventSlug:J.slug,name:"Mixmag Admission",capacity:200,limit:-1,available:200,reserved:0,order:0,sold:0,location:h,tenantId:B.id}).id,teamId:Z.id,promoterId:Y.id,eventId:J.id,eventSlug:J.slug,name:"Mixmag Release",tenantId:B.id});e.MixmagSashAdmission=ml({id:"adm_01jps5cgsm5c3scpdyf25bhntd",promoterId:V.id,eventId:Q.id,eventSlug:Q.slug,name:"Final Release",tenantId:B.id});let ee=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:Z.id,promoterId:Y.id,tenantId:B.id},te=e.MixmagCoupon={id:"cpn_01kb1vvpa0ecrbpyh2j5mvzdp9",couponId:"cpn_01kb1vvpa0ecrbpyh2j5mvzdp9",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),name:"Mixmag Price",active:!0,kind:"PERCENT",filter:"TEAM",currency:"AUD",discount:50,uses:0,limit:-1,saleStartsAt:_e(new Date(2025,1,10,3,0,0)),saleEndsAt:void 0,deletedAt:void 0,teamId:Z.id,tenantId:B.id},ne=e.MixmagCouponCode={id:"cod_01jps5cgsmc53405wk7t2v8ka7",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),active:!0,name:"MIXMAG",tenantId:B.id,couponId:te.id,teamId:Z.id},re=e.MixmagPayout={id:"pyt_01jps5cgsmx1x39hnrmvvtcets",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),paidAt:(new Date).toISOString(),structure:"default",items:{tickets:{beneficiaryId:ee.id,feeAmount:0,feeCurrency:"AUD",transferAmount:1e3,transferCurrency:"AUD"},sessions:{beneficiaryId:ee.id,feeAmount:0,feeCurrency:"AUD",transferAmount:650,transferCurrency:"AUD"}},eventId:J.id,promoterId:Y.id},ie=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:ne.id,name:ne.name},customer:E,promoterId:Y.id,eventId:J.id,paymentId:"",payoutIds:[re.id]},oe=e.MixmagOrderItem={id:"itm_01jps5cgsmqrkg0btn7khdyjyg",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),orderId:ie.id,kind:"ADMISSION",quantity:2,admissionId:X.id,price:{base:X.price.base,booking:X.price.booking,discount:0,currency:X.price.currency}};e.MixmagOrderFee={id:"fee_01jps5cgsm4jgpnfqxahmwm7he",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),orderId:ie.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:E.email,firstName:E.firstName,lastName:E.lastName},event:{id:J.id,name:J.name,slug:J.slug,location:J.location,entryStartsAt:J.entryStartsAt,entryEndsAt:J.entryEndsAt,images:J.images},admission:{id:X.id,name:X.name,price:X.price,entryStartsAt:X.entryStartsAt,entryEndsAt:X.entryEndsAt},eventId:J.id,customerId:E.id,orderId:ie.id,orderItemId:oe.id,admissionId:X.id,promoterId:Y.id,promoterSlug:Y.slug,tenantId:B.id},e.InactiveCoupon={...$,id:"cpn_01kb1ve66keh4rntfm5z89yskj",couponId:"cpn_01kb1ve66keh4rntfm5z89yskj",name:"Inactive Coupon",active:!1};let ae=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={...o,id:"ven_01kb1ve66heh4rntebeywafbwj",name:"Melbourne Convention Centre",slug:"melbourne-convention-centre",description:"Premier convention and exhibition venue in Melbourne",locationId:ae.id,location:ae,geohash:"r1r0f"};let se=e.MelbournePromoter={...u,id:"pmt_01kb1ve66keh4rntehghtb8j43",name:"Melbourne Promoter",slug:"melbourne-promoter",description:"A promoter based in Melbourne",geohash:"r1r0f",location:ae};e.MelbourneEvent={...m,id:"evt_01kb1ve66keh4rnteypq587crh",name:"Melbourne Event",slug:"melbourne-event",description:"An event in Melbourne for geo testing",promoterId:se.id,geohash:"r1r0f",location:ae},e.PendingVenue={...o,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:{...v,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),types:[...v.types],image:v.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}}}}(vl||={});const gl=Ki({net:Pi().min(0).meta({examples:[De.OrderItem.price.net],description:"Total amount to pay to promoter in cents.\nCalculated as: total - booking - refunded"}),total:Pi().min(0).meta({examples:[De.OrderItem.price.total],description:"Total amount the customer should pay in cents.\nCalculated as: gross - discount"}),gross:Pi().min(0).meta({examples:[De.OrderItem.price.gross],description:"Total amount before refunds and discounts in cents.\nCalculated as: base + booking"}),base:Pi().min(0).meta({examples:[De.OrderItem.price.base],description:"Total ticket price in cents"}),booking:Pi().min(0).meta({examples:[De.OrderItem.price.booking],description:"Total booking fees in cents (non-refundable)"}),refunded:Pi().max(0).meta({examples:[De.OrderItem.price.refunded],description:"Total amount refunded in cents"}),discount:Pi().max(0).meta({examples:[De.OrderItem.price.discount],description:"Total amount discounted in cents"}),currency:Oo.meta({examples:[De.OrderItem.price.currency],description:"Currency code in ISO 4217 format."})}),yl=ao(["ADMISSION","ADDON"]),bl=Ki({id:si().meta({examples:[De.OrderItem.id],description:"Unique identifier for this order item"}),kind:yl.meta({examples:[De.OrderItem.kind],description:"Type of item: ADMISSION for tickets, ADDON for additional products or services"}),quantity:Pi().min(1).meta({examples:[De.OrderItem.quantity],description:"Number of items purchased (minimum 1)"}),admissionId:si().optional().meta({examples:[De.OrderItem.admissionId],description:"Unique identifier of the admission ticket type, required for ADMISSION items"}),sectionId:si().optional().meta({examples:[De.OrderItem.sectionId],description:"Unique identifier of the venue section for this admission"}),admission:xa.optional().meta({examples:[vl.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:iu.optional().meta({examples:[vl.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:gl.meta({description:"Pricing breakdown for this order item including all fees and discounts"})}),wl=Ki({promoter:Ci(),tenant:Ci()}),$l=ao(["SMS_DELIVERY"]).meta({description:"Type of pre-computed offer available for this order"}),Il=Ki({amount:Pi().min(0).meta({examples:[200],description:"Offer price in the smallest currency unit (e.g. cents)"}),currency:Oo.meta({examples:["AUD"],description:"Three-letter ISO 4217 currency code"})}),kl=Ki({kind:$l.meta({examples:["SMS_DELIVERY"],description:"Discriminator identifying the type of offer"}),label:si().meta({examples:["SMS ticket delivery"],description:"Human-readable label for the offer"}),price:Il.meta({description:"Pre-computed price for this offer"})}),xl=ao(["FREE","AIRWALLEX","STRIPE"]),El=ao(["AMERICAN_EXPRESS","CHINA_UNION_PAY","DINERS_CLUB_INTERNATIONAL","DISCOVER","JCB","MAESTRO","MASTERCARD","UNION_PAY","VISA"]),Al=ao("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(".")),Tl=Ki({method:xl.meta({examples:["FREE"],description:"Payment gateway used to process this order: FREE for no-cost orders, AIRWALLEX or STRIPE for paid orders"}),source:Al.optional().meta({examples:["APPLEPAY","GOOGLEPAY","CARD"],description:"Payment method used by the customer such as ApplePay, GooglePay, or card-based payments"}),brand:El.optional().meta({examples:["VISA","MASTERCARD","AMERICAN_EXPRESS"],description:"Card brand when source is CARD (Visa, Mastercard, American Express, etc.)"}),last4:si().optional().meta({examples:["4242"],description:"Last 4 digits of the card number when source is CARD"}),stripeId:si().optional().meta({examples:["pi_1234567890abcdef"],description:"Stripe payment intent identifier when using Stripe gateway"}),stripeClientSecret:si().optional().meta({examples:["pi_1234567890abcdef_secret_xyz"],description:"Stripe PaymentIntent client secret associated with the order, used to complete the payment flow"}),stripeAccountId:si().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:si().optional().meta({examples:["int_hkdmr7v9rg1j8donpkmv96"],description:"Airwallex payment intent identifier when using Airwallex gateway"}),airwallexClientSecret:si().optional().meta({examples:["eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiaW50ZW50X2lkIjoiaW50X2hrZG1yN3Y5cmcxajhkb25wa212OTYifQ.K8vLx2nPzQHdR5mT1wYcBfJkLmNpS3xG7aE9dH4qZvM"],description:"Airwallex client secret used to authenticate requests for payment initialization"}),airwallexCustomerId:si().optional().meta({examples:["cus_hkdmrhkh8he4j3kvela"],description:"Airwallex customer ID attached to the PaymentIntent for saved cards functionality"}),airwallexCustomerClientSecret:si().optional().meta({examples:["eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiY3VzdG9tZXJfaWQiOiJjdXNfaGtkbXJoa2g4aGU0ajNrdmVsYSJ9.abc123"],description:"Airwallex customer client secret for accessing saved payment methods in the Drop-in Element"})}),Ol=Ki({net:Pi().meta({examples:[De.Order.price.net],description:"Total amount to pay to promoter in cents.\nCalculated as: total + booking + refunded + dispute"}),total:Pi().meta({examples:[De.Order.price.total],description:"Total amount the customer should pay in cents.\nCalculated as: gross + discount"}),gross:Pi().min(0).meta({examples:[De.Order.price.gross],description:"Total amount before refunds and discounts in cents.\nCalculated as: base + booking + shipping"}),base:Pi().min(0).meta({examples:[De.Order.price.base],description:"Total ticket price in cents"}),booking:Pi().min(0).meta({examples:[De.Order.price.booking],description:"Total booking fees in cents (non-refundable)"}),shipping:Pi().min(0).meta({examples:[De.Order.price.shipping],description:"Total shipping amount in cents"}),sms:Pi().min(0).default(0).meta({examples:[De.Order.price.sms],description:"SMS delivery fee in cents (customer-facing price in event currency)"}),refunded:Pi().max(0).meta({examples:[De.Order.price.refunded],description:"Total amount refunded in cents (negative value)"}),discount:Pi().max(0).meta({examples:[De.Order.price.discount],description:"Total amount discounted in cents (negative value)"}),gateway:Pi().max(0).meta({examples:[De.Order.price.gateway],description:"Total absorbed payment gateway fees in cents (negative value)"}),dispute:Pi().max(0).meta({examples:[De.Order.price.dispute],description:"Total non-absorbed payment gateway fees in cents (negative value)"}),currency:Oo.meta({examples:[De.Order.price.currency],description:"Currency code in ISO 4217 format"})}),_l=ao(["PENDING","PROCESSING","SUCCEEDED","FAILED"]),Dl=ao(["CUSTOMER_REQUEST","DUPLICATE","EVENT_CANCELLED","OTHER"]),Sl=ao(["USER","GATEWAY"]),Ml=Ki({orderItemId:si().meta({examples:[De.OrderRefundItem.orderItemId],description:"Identifier of the order item being refunded"}),quantity:Pi().min(1).meta({examples:[De.OrderRefundItem.quantity],description:"Number of units refunded for this item"}),amount:Pi().min(0).meta({examples:[De.OrderRefundItem.amount],description:"Refund amount for this item in cents (base price only, excludes booking fee)"}),ticketIds:Vi(si()).meta({examples:[De.OrderRefundItem.ticketIds],description:"Specific ticket identifiers that were refunded (selected via FIFO)"})}),Pl=Ki({id:si().meta({examples:[De.OrderRefund.id],description:"Unique identifier for this refund"}),idempotencyKey:si().optional().meta({examples:[De.OrderRefund.idempotencyKey],description:"Client-provided key to prevent duplicate refund processing"}),status:_l.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:Ur().optional().meta({examples:[De.OrderRefund.processedAt],description:"Timestamp when the payment gateway confirmed the refund"}),failureReason:si().optional().meta({examples:["Insufficient funds for refund"],description:"Error message from payment gateway if refund failed"}),amount:Pi().min(1).meta({examples:[De.OrderRefund.amount],description:"Total refund amount in cents (excludes booking fee, includes shipping if applicable)"}),shippingRefunded:Pi().min(0).meta({examples:[De.OrderRefund.shippingRefunded],description:"Shipping portion of the refund in cents"}),reason:Dl.meta({examples:["CUSTOMER_REQUEST","DUPLICATE","EVENT_CANCELLED"],description:"Categorized reason for the refund used for analytics"}),note:si().optional().meta({examples:[De.OrderRefund.note],description:"Free-form notes explaining the refund"}),items:Vi(Ml).meta({description:"Line items included in this refund with quantities and amounts"}),ticketsCancelled:Ci().meta({examples:[De.OrderRefund.ticketsCancelled],description:"Whether tickets were cancelled as part of this refund"}),ticketsCancelledCount:Pi().optional().meta({examples:[De.OrderRefund.ticketsCancelledCount],description:"Number of tickets that were cancelled"}),gateway:xl.meta({examples:["STRIPE","AIRWALLEX"],description:"Payment gateway used to process the refund"}),gatewayRefundId:si().optional().meta({examples:[De.OrderRefund.gatewayRefundId],description:"Refund identifier from the payment gateway"}),initiatedBy:Sl.meta({examples:["USER","GATEWAY"],description:"Whether refund was initiated by a user or directly through the payment gateway"}),userId:si().optional().meta({examples:[De.OrderRefund.userId],description:"Identifier of the user who initiated the refund (when initiatedBy is USER)"}),metadata:io(si(),si()).optional().meta({examples:[{supportTicket:"#12345"}],description:"Custom key-value pairs passed through to the payment gateway"}),createdAt:Ur().meta({examples:[De.OrderRefund.createdAt],description:"Timestamp when the refund was created"})}),jl=Ol.extend({exchangeRate:Si().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 Cl(e,t,n={}){return Ki({id:si().meta({examples:t.idExamples,description:t.idDescription}),createdAt:Ur().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:Ci().meta({examples:[!1],description:"Whether this timeline entry can be edited by users"}),pinned:Ci().meta({examples:[!1],description:"Whether this timeline entry is pinned to the top of the timeline"}),description:si().meta({examples:t.descriptionExamples,description:"Human-readable description of what happened in this timeline event"}),author:si().meta({examples:["System"],description:"Name of the user or system that created this timeline entry"}),userId:si().optional().meta({examples:[De.User.id],description:t.userIdDescription??"Identifier of the user who created this timeline entry, when available"}),externalId:si().optional().meta({examples:t.externalIdExamples,description:t.externalIdDescription})})}const Nl=Cl(ao("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(".")),{createdAtExamples:[De.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:[De.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:si().optional().meta({examples:["SUCCESSFUL"],description:"Order status associated with this timeline entry, when applicable."})}),Rl=ao(["PENDING","PROCESSING","SUCCESSFUL","DISPUTED","ABANDONED"]),Ul=Ki({id:Lo.readonly().meta({examples:[De.Order.id],description:"A unique identifier for this order."}),createdAt:Ur().readonly().meta({examples:[De.Order.createdAt],description:"Timestamp in ISO 8601 format when this order was created."}),updatedAt:Ur().readonly().meta({examples:[De.Order.updatedAt],description:"Timestamp in ISO 8601 format when this order was last updated."}),status:Rl.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:Tl.optional().meta({description:"Payment gateway details including method, card brand, and transaction identifiers. Absent for free orders."}),items:Vi(bl).meta({description:"Line items in this order, each with a ticket type, quantity, and price breakdown."}),fees:Vi(ll).meta({description:"Gateway fees recorded against this order from settlement processing (e.g. payment processing fees, dispute fees)."}),price:Ol.meta({description:"Price breakdown in the event currency. This reflects what the customer was charged."}),settlement:jl.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:sl.optional().meta({description:"Coupon code applied to this order for discount calculation."}),customer:dl.optional().meta({description:"Customer who placed this order. Absent for guest checkouts before customer details are captured."}),marketingConsent:wl.optional().meta({description:"Marketing opt-in choices captured during checkout."}),timeline:Vi(Nl).optional().meta({description:"Chronological audit trail of events for this order (payments, refunds, emails, scans)."}),refunds:Vi(Pl).default([]).meta({description:"Refunds processed for this order including pending, succeeded, and failed attempts."}),offers:Vi(kl).default([]).meta({description:"Pre-computed add-on offers available during checkout (e.g. SMS ticket delivery)."}),customerId:zo.optional().meta({examples:[De.Customer.id],description:"Identifier of the customer who placed this order."}),createdBy:dl.optional().meta({description:"Admin user who created this order on behalf of the customer."}),teamId:jo.meta({description:"Team that owns this order."}),promoterId:Go.meta({examples:[De.Promoter.id],description:"Promoter managing this order."}),event:cl.meta({description:"Snapshot of the event at time of purchase (name, slug, location)."}),payoutIds:Vi(Wo.meta({examples:["pay_01HQXYZ"],description:"Payout identifier."})).meta({description:"Payout identifiers for settlements that included this order."}),eventId:Co.meta({examples:[De.Event.id],description:"Identifier of the event this order belongs to."}),checkoutUrl:si().optional().readonly().meta({examples:["https://example.com/checkout/ord_1234567890"],description:"Derived checkout URL where the customer can complete payment for this order."}),returnUrl:si().optional().meta({examples:["https://example.com/event/success"],description:"URL to redirect to after successful payment completion."}),channel:al.optional().meta({description:"Channel metadata captured at order creation to identify origin and redirect context."}),reservedAt:Ur().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."}),Ll=Ki({id:si().meta({examples:[De.Order.id],description:"Unique identifier of the order to add a note to"}),note:si().min(1).max(1e3).meta({examples:["Customer requested special seating arrangements"],description:"Note text content (1-1000 characters)"})}),ql=bl.omit({id:!0,price:!0,kind:!0}).extend({id:si().optional().meta({examples:["itm_01jps5cgsfwyxj0516571eaf17"],description:"Unique identifier for this order item. When omitted, the server assigns an id during processing"})}),Gl=Ki({eventId:si().meta({examples:["evt_01jps5cgsenjrazw6wswmyspa3"],description:"Unique identifier of the event for which to create the order"}),items:Vi(ql).meta({description:"List of items to include in the new order"}),couponCode:si().optional().meta({examples:["TEST50"],description:"Optional coupon code to apply discount to the order"}),returnUrl:si().optional().meta({examples:["https://example.com/event/success"],description:"Optional URL to redirect to after successful payment"}),channel:al.optional().meta({description:"Optional channel metadata for where the order originated (for attribution and redirect routing)."})}),zl=Ki({id:si().meta({examples:[De.Order.id],description:"Unique identifier of the order"}),noteId:si().meta({examples:["tl_1234567890_abc123"],description:"Unique identifier of the timeline note to delete"})}),Fl=ao(["EMAIL","SMS"]).meta({examples:["EMAIL"],description:"Method used to deliver tickets to the customer: EMAIL or SMS"});Ki({id:si().meta({examples:[De.Order.id],description:"Unique identifier of the order to edit"}),signature:$a.meta({description:"HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for editing order items."}),items:Vi(ql).min(1).meta({description:"Updated list of items for the order (replaces existing items). Prices will be recalculated and payment intent updated."})});const Bl=Ki({id:si().meta({examples:[De.Order.id],description:"Unique identifier of the order to retrieve"}),signature:$a.optional().meta({description:"HMAC signature for public order access (16 characters, base64url encoded)"})}),Wl="Either locationId or googlePlaceId must be provided",Zl={locationId:Ro.optional().meta({examples:["loc_01jqpjksnsen9vprw95et60t2m"],description:"ID of an existing location. Either locationId or googlePlaceId must be provided."}),googlePlaceId:si().optional().meta({examples:["ChIJN1t_tDeuEmsRUsoyG83frY4"],description:"Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided."})};function Yl(e){return!(!e.locationId&&!e.googlePlaceId)}const Vl=iu.omit({id:!0,createdAt:!0,updatedAt:!0,order:!0,available:!0,sold:!0,reserved:!0,promoterId:!0,eventSlug:!0,location:!0}).extend({order:Si().optional().meta({examples:[De.Section.order],description:"Display order of the section. Lower numbers appear first in listings. Defaults to 0 if not specified"}),...Zl}).refine(Yl,{message:Wl}).meta({description:"Schema for creating a new section within an event venue. Excludes system-generated fields and fields derived from the event"}),Hl=iu.pick({id:!0}).extend({eventId:si().meta({examples:[De.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"}),Kl=iu.pick({id:!0}).extend({eventId:si().meta({examples:[De.Section.eventId],description:"Unique identifier of the event to verify section belongs to"})}).meta({description:"Schema for retrieving a specific section by ID"}),Jl=Ki({eventId:iu.shape.eventId,query:si().optional().meta({examples:["VIP"],description:"Optional search query. When provided, automatically uses search-backed pagination for full-text search capabilities"}),limit:Eo().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:si().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"}),Ql=_a(iu,"sections"),Xl=Ki({section:iu}),ep=iu.omit({promoterId:!0,createdAt:!0,updatedAt:!0,eventSlug:!0,available:!0,sold:!0,reserved:!0,location:!0,teamId:!0,name:!0,capacity:!0,limit:!0,order:!0,passcode:!0}).extend({id:si().meta({examples:[De.Section.id],description:"Unique identifier of the section to update"}),eventId:si().meta({examples:[De.Section.eventId],description:"Unique identifier of the event to verify section belongs to"}),name:iu.shape.name.optional(),capacity:Xo().optional(),limit:ea().optional(),order:iu.shape.order.optional(),passcode:iu.shape.passcode,locationId:Ro.optional().meta({examples:["loc_01jqpjksnsen9vprw95et60t2m"],description:"ID of an existing location to update to. Either locationId or googlePlaceId can be provided."}),googlePlaceId:si().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."}),tp=bl.extend({admission:xa.optional().meta({description:"Complete admission details for this order item when available"}),section:iu.optional().meta({description:"Complete section details for this order item when applicable"})}),np=ao(["asc","desc"]),rp=Ki({mine:Ci().optional().meta({examples:[!0],description:"When true, returns only the authenticated user's orders. Can be combined with teamId or eventId to further filter results."}),teamId:si().optional().meta({description:"Filter orders by team unique identifier"}),eventId:si().optional().meta({examples:["evt_01jps5cgsenjrazw6wswmyspa3"],description:"Filter orders by event unique identifier"}),status:Rl.optional().meta({examples:["SUCCESSFUL"],description:"Filter orders by payment status"}),query:si().optional().meta({examples:["John Doe"],description:"Optional search query to filter orders by customer details. When provided, search-backed pagination is used."}),includeEventTerms:Ci().optional().meta({examples:[!0],description:"When true for authenticated user-owned order searches, also matches event name, slug, and location unless eventId is already provided."}),direction:np.optional().meta({examples:["asc","desc"],description:"Sort direction for order lists. Orders are always sorted by creation time. Defaults to `desc` when omitted."}),from:si().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:si().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:oa("orders"),cursor:si().optional().meta({examples:["eyJpZCI6Im9yZF8wMWpwczVjZ3NmZ3ZlNWI1ZzI2NjZreXJ5aCJ9"],description:"Pagination cursor for continuing to fetch subsequent results"})}),ip=_a(Ul,"orders"),op=Ki({items:Vi(tp).meta({description:"List of order items with complete pricing and admission details"}),price:Ol.meta({description:"Total pricing breakdown for the entire order quote"}),couponCode:xc.optional().meta({description:"Applied coupon code details if a discount was used in this quote"})}),ap=Ki({eventId:si().meta({examples:["evt_01jps5cgsenjrazw6wswmyspa3"],description:"Unique identifier of the event for which to generate a price quote"}),items:Vi(ql).meta({description:"List of items to include in the price quote calculation"}),couponCode:si().optional().meta({examples:["TEST50"],description:"Optional coupon code to apply discount to the quote"})}),sp=Ki({quote:op}),dp=Ki({orderItemId:si().meta({examples:[De.OrderRefundItem.orderItemId],description:"Identifier of the order item to refund"}),quantity:Pi().min(1).meta({examples:[De.OrderRefundItem.quantity],description:"Number of units to refund for this item"})}),cp=Ki({id:Lo.meta({examples:[De.Order.id],description:"Identifier of the order to refund"}),fullRefund:Ci().default(!1).meta({examples:[!1],description:"When true, refunds all remaining refundable items. Mutually exclusive with items."}),items:Vi(dp).optional().meta({description:"Specific items and quantities to refund. Required if fullRefund is false."}),shippingAmount:Pi().min(0).optional().meta({examples:[500],description:"Amount of shipping to refund in cents. Cannot exceed remaining refundable shipping."}),cancelTickets:Ci().default(!0).meta({examples:[!0],description:"Whether to cancel tickets associated with refunded items. Defaults to true."}),notify:Ci().default(!0).meta({examples:[!0],description:"Whether to send a refund confirmation email to the customer. Defaults to true."}),reason:Dl.meta({examples:["CUSTOMER_REQUEST","DUPLICATE","EVENT_CANCELLED"],description:"Categorized reason for the refund"}),note:si().optional().meta({examples:["Customer requested refund due to schedule conflict"],description:"Free-form notes explaining the refund"}),idempotencyKey:si().optional().meta({examples:["refund_12345_customer_request"],description:"Client-provided key to prevent duplicate refund processing. Recommended for programmatic refunds."}),metadata:io(si(),si()).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"}),up=Ki({refund:Pl}),lp=Ki({id:si().meta({examples:[De.Order.id],description:"Order ID to resend tickets for"}),email:si().email().optional().meta({examples:["customer@example.com"],description:"Email address to send tickets to. If not provided, uses order.customer.email"})}),pp=Ki({id:si().meta({examples:[De.Order.id],description:"Unique identifier of the order to reserve inventory for"}),signature:$a.meta({description:"HMAC signature for customer access during checkout (16 characters, base64url encoded)."})}),mp=Ki({order:Ul});var fp={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 hp(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var o=Number(n[i]),a=Number(r[i]);if(o>a)return 1;if(a>o)return-1;if(!isNaN(o)&&isNaN(a))return 1;if(isNaN(o)&&!isNaN(a))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 vp={}.constructor;function gp(e){return null!=e&&e.constructor===vp}function yp(e){return yp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yp(e)}function bp(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function wp(e,t){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$p(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $p(e){var t=function(e){if("object"!=yp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yp(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yp(t)?t:t+""}var Ip=" ext. ",kp=/^\d+$/,xp=wp((function e(t){bp(this,e),Dp(t),this.metadata=t,Pp.call(this,t)}),[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{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 void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{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&&kp.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw Error(`Unknown country: ${e}`);this.numberingPlan=new Ep(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw Error(`Unknown calling code: ${t}`);this.numberingPlan=new Ep(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t)return 1===t.length&&3===t[0].length?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&&1===r.length&&"001"===r[0])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 void 0!==this.numberingPlan}}]),Ep=wp((function e(t,n){bp(this,e),this.globalMetadataObject=n,this.metadata=t,Pp.call(this,n.metadata)}),[{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 Ap(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()&&0===this.types().length||!this.types())}},{key:"type",value:function(e){if(this.hasTypes()&&_p(this.types(),e))return new Op(_p(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?Ip:this.metadata[13]||Ip}}]),Ap=wp((function e(t,n){bp(this,e),this._format=t,this.metadata=n}),[{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()||Tp.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),Tp=/^\(?\$1\)?$/,Op=wp((function e(t,n){bp(this,e),this.type=t,this.metadata=n}),[{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 _p(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 Dp(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!gp(e)||!gp(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 ${gp(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Sp(e)+": "+e}.`)}var Sp=function(e){return yp(e)};function Mp(e,t){if((t=new xp(t)).hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw Error(`Unknown country: ${e}`)}function Pp(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===hp(t,"1.2.0")?this.v2=!0:-1===hp(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}function jp(e,t,n){return function(e,t,n,r){t&&(r=new xp(r.metadata)).selectNumberingPlan(t);var i=r.type(void 0),o=i&&i.possibleLengths()||r.possibleLengths();if(!o)return"IS_POSSIBLE";var a=e.length,s=o[0];return s===a?"IS_POSSIBLE":s>a?"TOO_SHORT":o[o.length-1]<a?"TOO_LONG":o.indexOf(a,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}(e,t,0,n)}function Cp(e,t,n){return"IS_POSSIBLE"===jp(e,t,n)}function Np(e,t){return e||="",RegExp("^(?:"+t+")$").test(e)}function Rp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Up=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Lp(e,t,n){if(t||={},e.country||e.countryCallingCode){(n=new xp(n)).selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(Np(r,n.nationalNumberPattern())){if(qp(r,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()||!n.type("MOBILE")||qp(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var i,o=function(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=function(e,t){if(e){if("string"==typeof e)return Rp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rp(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(Up);!(i=o()).done;){var a=i.value;if(qp(r,a,n))return a}}}}function qp(e,t,n){return!(!(t=n.type(t))||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&Np(e,t.pattern())}var Gp="0-90-9٠-٩۰-۹",zp="-‐-―−ー-//.. ()()[]\\[\\]~⁓∼~",Fp=RegExp("(["+Gp+"])");function Bp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Wp(e,t){var n=t.nationalNumber,r=t.metadata,i=r.getCountryCodesForCallingCode(e);if(i)return 1===i.length?i[0]:function(e,t){var n=t.countries,r=t.metadata;r=new xp(r);for(var i,o=function(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=function(e,t){if(e){if("string"==typeof e)return Bp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bp(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(i=o()).done;){var a=i.value;if(r.selectNumberingPlan(a),r.leadingDigits()){if(e&&0===e.search(r.leadingDigits()))return a}else if(Lp({phone:e,country:a},void 0,r.metadata))return a}}(n,{countries:i,metadata:r.metadata})}function Zp(e,t,n){var r=function(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,o,a,s=r.length-1,d=s>0&&r[s];if(t.nationalPrefixTransformRule()&&d?(i=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(o=r[1])):(i=e.slice(r[0].length),d&&(o=r[1])),d){var c=e.indexOf(r[1]);e.slice(0,c)===t.numberingPlan.nationalPrefix()&&(a=t.numberingPlan.nationalPrefix())}else a=r[0];return{nationalNumber:i,nationalPrefix:a,carrierCode:o}}}return{nationalNumber:e}}(e,n),i=r.carrierCode,o=r.nationalNumber;return o===e||function(e,t,n){return!(Np(e,n.nationalNumberPattern())&&!Np(t,n.nationalNumberPattern()))}(e,o,n)&&(!n.numberingPlan.possibleLengths()||(t||=Wp(n.numberingPlan.callingCode(),{nationalNumber:o,metadata:n}),function(e,t,n){switch(jp(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(o,t,n)))?{nationalNumber:o,carrierCode:i}:{nationalNumber:e}}function Yp(e,t,n,r,i){if(!e)return{};var o;if("+"!==e[0]){var a=function(e,t,n,r){if(t){var i=new xp(r);i.selectNumberingPlan(t,n);var o=new RegExp(i.IDDPrefix());if(0===e.search(o)){var a=(e=e.slice(e.match(o)[0].length)).match(Fp);if(!(a&&null!=a[1]&&a[1].length>0&&"0"===a[1]))return e}}}(e,n,r,i);if(!a||a===e){if(n||r){var s=function(e,t,n,r,i){var o=n?Mp(n,i):r;if(0===e.indexOf(o)){(i=new xp(i)).selectNumberingPlan(n,o);var a=e.slice(o.length),s=Zp(a,t,i).nationalNumber,d=Zp(e,t,i).nationalNumber;if(!Np(d,i.nationalNumberPattern())&&Np(s,i.nationalNumberPattern())||"TOO_LONG"===jp(d,t,i))return{countryCallingCode:o,number:a}}return{number:e}}(e,t,n,r,i),d=s.countryCallingCode;if(d)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:d,number:s.number}}return{number:e}}o=!0,e="+"+a}if("0"===e[1])return{};i=new xp(i);for(var c=2;c-1<=3&&c<=e.length;){var u=e.slice(1,c);if(i.hasCallingCode(u))return i.selectNumberingPlan(u),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:u,number:e.slice(c)};c++}return{}}var Vp=/(\$\d)/;var Hp=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/,Kp=function(e){return`([${Gp}]{1,${e}})`};function Jp(){var e="[ \\t,]*",t="[:\\..]?[ \\t,-]*",n="#?",r="[ \\t]*";return";ext="+Kp("20")+"|"+e+"(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)"+t+Kp("20")+"#?|"+e+"(?:[xx##~~]|int|int)"+t+Kp("9")+"#?|[- ]+"+Kp("6")+"#|"+r+"(?:,{2}|;)"+t+Kp("15")+"#?|"+r+"(?:,)+"+t+Kp("9")+n}var Qp="["+Gp+"]{2}",Xp="[++]{0,1}(?:["+zp+"]*["+Gp+"]){3,}["+zp+Gp+"]*",em=RegExp("^[++]{0,1}(?:["+zp+"]*["+Gp+"]){1,2}$","i"),tm=Xp+"(?:"+Jp()+")?",nm=RegExp("^"+Qp+"$|^"+tm+"$","i"),rm={formatExtension:function(e,t,n){return`${e}${n.ext()}${t}`}};function im(e,t,n,r,i){var o=function(e,t){return function(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}(e,(function(e){if(e.leadingDigitsPatterns().length>0){var n=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(0!==t.search(n))return!1}return Np(t,e.pattern())}))}(r.formats(),e);return o?function(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix,o=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(Vp,t.nationalPrefixFormattingRule()):t.format());return r?function(e){return e.replace(RegExp(`[${zp}]+`,"g")," ").trim()}(o):o}(e,o,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!(o.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&!1===i.nationalPrefix)}):e}function om(e,t,n,r){return t?r(e,t,n):e}function am(e){return am="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},am(e)}function sm(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 dm(e){for(var t=1;t<arguments.length;t++){var n=null==arguments[t]?{}:arguments[t];t%2?sm(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cm(e,t,n){return(t=um(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function um(e){var t=function(e){if("object"!=am(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=am(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==am(t)?t:t+""}var lm=function(e,t){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,um(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),!t)throw TypeError("First argument is required");if("string"!=typeof t)throw TypeError("First argument must be a string");if("+"===t[0]&&!n)throw TypeError("`metadata` argument not passed");if(gp(n)&&gp(n.countries)){r=n;var i=t;if(!mm.test(i))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var o=Yp(i,void 0,void 0,void 0,r);if(t=o.countryCallingCode,!(n=o.number))throw Error("Invalid `number` argument passed: too short")}if(!n)throw TypeError("`nationalNumber` argument is required");if("string"!=typeof n)throw TypeError("`nationalNumber` argument must be a string");Dp(r);var a=function(e,t){var n,r,i=new xp(t);return pm(e)?(i.selectNumberingPlan(n=e),r=i.countryCallingCode()):r=e,{country:n,countryCallingCode:r}}(t,r),s=a.countryCallingCode;this.country=a.country,this.countryCallingCode=s,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}),[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:function(e,t,n){var r=new xp(n).getCountryCodesForCallingCode(e);return r?r.filter((function(e){return function(e,t,n){var r=new xp(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}(t,e,n)})):[]}(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function(e,t,n){if(void 0===t&&(t={}),n=new xp(n),t.v2){if(!e.countryCallingCode)throw Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;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 Cp(e.phone||e.nationalNumber,e.country,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return function(e,t,n){return t||={},(n=new xp(n)).selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?void 0!==Lp(e,t,n.metadata):Np(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new xp(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return Lp(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return function(e,t,n,r){if(n=n?function(){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]}({},rm,n):rm,r=new xp(r),e.country&&"001"!==e.country){if(!r.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)return e.phone||"";r.selectNumberingPlan(e.countryCallingCode)}var i=r.countryCallingCode(),o=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return o?om(im(o,0,"NATIONAL",r,n),e.ext,r,n.formatExtension):"";case"INTERNATIONAL":return o?om(`+${i} ${im(o,0,"INTERNATIONAL",r,n)}`,e.ext,r,n.formatExtension):`+${i}`;case"E.164":return`+${i}${o}`;case"RFC3966":return function(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:""}`}({number:`+${i}${o}`,ext:e.ext});case"IDD":if(!n.fromCountry)return;var a=function(e,t,n,r,i){if(Mp(r,i.metadata)===n){var o=im(e,0,"NATIONAL",i);return"1"===n?n+" "+o:o}var a=function(e,t,n){var r=new xp(n);return r.selectNumberingPlan(e,void 0),r.defaultIDDPrefix()?r.defaultIDDPrefix():Hp.test(r.IDDPrefix())?r.IDDPrefix():void 0}(r,0,i.metadata);if(a)return`${a} ${n} ${im(e,0,"INTERNATIONAL",i)}`}(o,0,i,n.fromCountry,r);return a?om(a,e.ext,r,n.formatExtension):void 0;default:throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`)}}(this,e,t?dm(dm({},t),{},{v2:!0}):{v2:!0},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)}}]),pm=function(e){return/^[A-Z]{2}$/.test(e)},mm=/^\+\d+$/;function fm(e){return fm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fm(e)}function hm(e){var t="function"==typeof Map?new Map:void 0;return hm=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch{return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(vm())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&gm(i,n.prototype),i}(e,arguments,ym(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),gm(n,e)},hm(e)}function vm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(vm=function(){return!!e})()}function gm(e,t){return gm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gm(e,t)}function ym(e){return ym=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ym(e)}var bm=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),n=function(e,t,n){return t=ym(t),function(e,t){if(t&&("object"==fm(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,vm()?Reflect.construct(t,n||[],ym(e).constructor):t.apply(e,n))}(this,e,[t]),Object.setPrototypeOf(n,e.prototype),n.name=n.constructor.name,n}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gm(e,t)}(e,hm(Error)),function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(e)}(),wm=RegExp("(?:"+Jp()+")$","i"),$m={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 Im(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function km(e){for(var t,n="",r=function(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=function(e,t){if(e){if("string"==typeof e)return Im(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Im(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.split(""));!(t=r()).done;)n+=xm(t.value,n)||"";return n}function xm(e,t){if("+"===e){if(t)return;return"+"}return function(e){return $m[e]}(e)}var Em="(["+Gp+"]|[\\-\\.\\(\\)]?)",Am=new RegExp("^\\+"+Em+"*["+Gp+"]"+Em+"*$","g"),Tm=new RegExp("^(["+Gp+"]+((\\-)*["+Gp+"])*\\.)*[a-zA-Z]+((\\-)*["+Gp+"])*\\.?$","g"),Om=";phone-context=";var _m=RegExp("[++"+Gp+"]"),Dm=RegExp("[^"+Gp+"#]+$");function Sm(e,t,n){if(t||={},n=new xp(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new bm("INVALID_COUNTRY"):Error(`Unknown country: ${t.defaultCountry}`);var r=function(e,t,n){var r=function(e,t){var n,r=t.extractFormattedPhoneNumber,i=function(e){var t=e.indexOf(Om);if(t<0)return null;var n=t+15;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}(e);if(!function(e){return null===e||0!==e.length&&(Am.test(e)||Tm.test(e))}(i))throw new bm("NOT_A_NUMBER");if(null===i)n=r(e)||"";else{n="","+"===i.charAt(0)&&(n+=i);var o=e.indexOf("tel:"),a=o>=0?o+4:0,s=e.indexOf(Om);n+=e.substring(a,s)}var d=n.indexOf(";isub=");if(d>0&&(n=n.substring(0,d)),""!==n)return n}(e,{extractFormattedPhoneNumber:function(e){return function(e,t,n){if(e){if(e.length>250){if(n)throw new bm("TOO_LONG");return}if(!1===t)return e;var r=e.search(_m);if(!(r<0))return e.slice(r).replace(Dm,"")}}(e,n,t)}});if(!r)return{};if(!function(e){return e.length>=2&&nm.test(e)}(r))return function(e){return em.test(e)}(r)?{error:"TOO_SHORT"}:{};var i=function(e){var t=e.search(wm);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(wm),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}(r);return i.ext?i:{number:r}}(e,t.v2,t.extract),i=r.number,o=r.ext;if(!i){if(t.v2)throw new bm("TOO_SHORT"===r.error?"TOO_SHORT":"NOT_A_NUMBER");return{}}var a=function(e,t,n,r){var i,o=Yp(km(e),void 0,t,n,r.metadata),a=o.countryCallingCodeSource,s=o.countryCallingCode,d=o.number;if(s)r.selectNumberingPlan(s);else{if(!d||!t&&!n)return{};r.selectNumberingPlan(t,n),t&&(i=t),s=n||Mp(t,r.metadata)}if(!d)return{countryCallingCodeSource:a,countryCallingCode:s};var c=Zp(km(d),i,r),u=c.nationalNumber,l=c.carrierCode,p=Wp(s,{nationalNumber:u,metadata:r});return p&&(i=p,"001"===p||r.selectNumberingPlan(i)),{country:i,countryCallingCode:s,countryCallingCodeSource:a,nationalNumber:u,carrierCode:l}}(i,t.defaultCountry,t.defaultCallingCode,n),s=a.country,d=a.nationalNumber,c=a.countryCallingCode,u=a.countryCallingCodeSource,l=a.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new bm("INVALID_COUNTRY");return{}}if(!d||d.length<2){if(t.v2)throw new bm("TOO_SHORT");return{}}if(d.length>17){if(t.v2)throw new bm("TOO_LONG");return{}}if(t.v2){var p=new lm(c,d,n.metadata);return s&&(p.country=s),l&&(p.carrierCode=l),o&&(p.ext=o),p.__countryCallingCodeSource=u,p}var m=!!(t.extended?n.hasSelectedNumberingPlan():s)&&Np(d,n.nationalNumberPattern());return t.extended?{country:s,countryCallingCode:c,carrierCode:l,valid:m,possible:!!m||!(!0!==t.extended||!n.possibleLengths()||!Cp(d,s,n)),phone:d,ext:o}:m?function(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}(s,d,o):{}}function Mm(e){return Mm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mm(e)}function Pm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jm(e){for(var t=1;t<arguments.length;t++){var n=null==arguments[t]?{}:arguments[t];t%2?Pm(Object(n),!0).forEach((function(t){Cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cm(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Mm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Mm(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Mm(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nm(e){return Nm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nm(e)}function Rm(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 Um(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Nm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Nm(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Nm(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qm(e){var t,n,r,i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],d=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(d=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);d=!0);}catch(e){c=!0,i=e}finally{try{if(!d&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Lm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lm(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Array.prototype.slice.call(e),4),o=i[0],a=i[1],s=i[2],d=i[3];if("string"!=typeof o)throw TypeError("A text for parsing must be a string.");if(t=o,a&&"string"!=typeof a){if(!gp(a))throw Error(`Invalid second argument: ${a}`);s?(n=a,r=s):r=a}else d?(n=s,r=d):(n=void 0,r=s),a&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null==arguments[t]?{}:arguments[t];t%2?Rm(Object(n),!0).forEach((function(t){Um(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({defaultCountry:a},n));return{text:t,options:n,metadata:r}}function Gm(e){return Gm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gm(e)}function zm(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 Fm(e){for(var t=1;t<arguments.length;t++){var n=null==arguments[t]?{}:arguments[t];t%2?zm(Object(n),!0).forEach((function(t){Bm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bm(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Gm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Gm(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Gm(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wm(e){return Wm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wm(e)}function Zm(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 Ym(e){for(var t=1;t<arguments.length;t++){var n=null==arguments[t]?{}:arguments[t];t%2?Zm(Object(n),!0).forEach((function(t){Vm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vm(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Wm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Wm(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Wm(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hm(){var e=qm(arguments),t=e.options,n=e.metadata,r=function(e,t,n){t&&t.defaultCountry&&!function(e,t){return t.countries.hasOwnProperty(e)}(t.defaultCountry,n)&&(t=Fm(Fm({},t),{},{defaultCountry:void 0}));try{return function(e,t,n){return Sm(e,jm(jm({},t),{},{v2:!0}),n)}(e,t,n)}catch(e){if(!(e instanceof bm))throw e}}(e.text,t=Ym(Ym({},t),{},{extract:!1}),n);return r&&r.isValid()||!1}const Km=Gl.omit({eventId:!0,channel:!0}).partial().extend({id:si().meta({examples:[De.Order.id],description:"Unique identifier of the order to update"}),signature:$a.meta({description:"HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for all order updates."}),items:Vi(ql).min(1).optional().meta({description:"Updated list of items for the order. Requires signature. Prices will be recalculated and payment intent updated."}),customer:Ki({firstName:si().meta({examples:[De.Customer.firstName],description:"Updated first name of the customer"}).optional(),lastName:si().meta({examples:[De.Customer.lastName],description:"Updated last name of the customer"}).optional(),email:ui().meta({examples:[De.Customer.email],description:"Updated email address of the customer"}).optional(),phone:si().refine((e=>!e||function(){return function(e,t){var n=Array.prototype.slice.call(t);return n.push(fp),e.apply(this,n)}(Hm,arguments)}(e)),{message:"Phone must be in E.164 format (e.g., +61412345678)"}).meta({examples:[De.Customer.phone],description:"Updated phone number in E.164 format (e.g., +61412345678)"}).optional(),deliveryMethod:Fl.optional()}).optional().meta({description:"Updated customer information for the order. All fields are optional for partial updates."}),marketingConsent:wl.optional().meta({description:"Marketing opt-in choices captured during checkout."})}),Jm=Ki({id:si().meta({examples:[De.Order.id],description:"Unique identifier of the order"}),noteId:si().meta({examples:["tl_1234567890_abc123"],description:"Unique identifier of the timeline note to update"}),note:si().min(1).max(1e3).meta({examples:["Updated: Customer confirmed special seating arrangements"],description:"Updated note text content (1-1000 characters)"})});var Qm={create:fe.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(Ll.strict()).output(mp),update:fe.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(Jm.strict()).output(mp),remove:fe.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(zl.strict()).output(Bi())};const Xm=fe.route({method:"GET",path:"/orders/{id}",summary:"Get order by ID",tags:["Orders"]}).input(Bl.strict()).output(mp),ef=fe.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(rp.strict()).output(ip),tf=fe.route({method:"POST",path:"/orders/quote",summary:"Create order quote",tags:["Orders"]}).input(ap.strict()).output(sp);var nf={get:Xm,list:ef,create:fe.route({method:"POST",path:"/orders",summary:"Create a new order",tags:["Orders"]}).input(Gl.strict()).output(mp),update:fe.route({method:"PUT",path:"/orders/{id}",summary:"Update an order",tags:["Orders"]}).input(Km.strict()).output(mp),reserve:fe.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(pp.strict()).output(mp),quote:tf,resend:fe.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(lp.strict()).output(mp),refund:fe.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(cp.strict()).output(up),note:Qm};Ki({success:Ci().meta({description:"Whether the payout approval was successful"}),message:si().optional().meta({description:"Optional message about the approval result"}),payoutId:si().meta({description:"ID of the payout that was approved"})});const rf=Ki({payoutId:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout for which to retrieve the detailed breakdown of orders and financial calculations."})}),of=Ki({id:si().readonly().meta({examples:[De.PayoutDeduction.id],description:"Unique identifier for this deduction record."}),createdAt:Ur().readonly().meta({examples:[De.PayoutDeduction.createdAt],description:"Timestamp in ISO 8601 format when this deduction was created."}),updatedAt:Ur().readonly().meta({examples:[De.PayoutDeduction.updatedAt],description:"Timestamp in ISO 8601 format when this deduction was last updated."}),amount:Pi().min(0).meta({examples:[De.PayoutDeduction.amount],description:"Deduction amount in cents. Positive values represent money being deducted from the payout."}),currency:Oo.meta({examples:[De.PayoutDeduction.currency],description:"Currency code in ISO 4217 format for the deduction amount."}),description:si().meta({examples:[De.PayoutDeduction.description],description:"Human-readable description explaining the reason for this deduction (e.g., 'Minimum bar spend not met', 'Venue damage charge')."}),gateway:si().meta({examples:[De.PayoutDeduction.gateway],description:"Payment gateway identifier where this deduction was processed."}),gatewayId:si().meta({examples:[De.PayoutDeduction.gatewayId],description:"Unique identifier assigned by the payment gateway for this deduction transaction."}),beneficiary:si().meta({examples:[De.PayoutDeduction.beneficiary],description:"Human-readable name of the beneficiary account from which this deduction was taken."}),beneficiaryId:si().meta({examples:[De.PayoutDeduction.beneficiaryId],description:"Unique identifier of the beneficiary account from which this deduction was taken."}),transferId:si().optional().meta({description:"Optional reference to a transfer record when this deduction results in money being moved to a future payout."}),transferPayoutId:si().optional().meta({description:"Optional reference to a future payout where the deducted amount will be applied."})}),af=Ki({id:si().meta({examples:[De.Event.id],description:"Unique identifier for the event associated with this payout."}),name:si().meta({examples:[De.Event.name],description:"Human-readable name of the event."}),slug:si().meta({examples:[De.Event.slug],description:"URL-friendly slug identifier for the event."}),location:si().optional().meta({examples:[De.Event.location.name],description:"Optional human-readable location name where the event takes place."})}),sf=Ki({net:Pi().meta({examples:[De.Payout.price.net],description:"Total amount to pay to promoter.\nCalculated as: total + booking + refunded + dispute + deductions"}),total:Pi().meta({examples:[De.Payout.price.total],description:"Total amount the collected in ticket revenue.\nCalculated as: gross + discount"}),gross:Pi().min(0).meta({examples:[De.Payout.price.gross],description:"Total amount before refunds, disputes, deductions and discounts.\nCalculated as: base + booking + shipping"}),base:Pi().min(0).meta({examples:[De.Payout.price.base],description:"Total value of tickets."}),booking:Pi().min(0).meta({examples:[De.Payout.price.booking],description:"Total value of booking fees (non-refundable)."}),shipping:Pi().min(0).meta({examples:[De.Payout.price.shipping],description:"Total value of shipping."}),sms:Pi().min(0).default(0).meta({examples:[De.Payout.price.sms],description:"Total SMS delivery fees collected in cents (owed to Session Services, not the event organiser)."}),refunded:Pi().max(0).meta({examples:[De.Payout.price.refunded],description:"Total value of refunds (negative value)."}),discount:Pi().max(0).meta({examples:[De.Payout.price.discount],description:"Total value of discounts (negative value)."}),gateway:Pi().max(0).meta({examples:[De.Payout.price.gateway],description:"Total value of absorbed payment gateway fees (negative value)."}),dispute:Pi().max(0).meta({examples:[De.Payout.price.dispute],description:"Total value of non-absorbed payment gateway fees (negative value)."}),deductions:Pi().max(0).meta({examples:[De.Payout.price.deductions],description:"Total value of deductions for when money is owed (negative value)."}),currency:Oo.meta({examples:[De.Payout.price.currency],description:"Currency code in ISO 4217 format."})}),df=Cl(ao(["CREATED","APPROVED","REJECTED","PROCESSING","PAID","FAILED","CANCELLED","NOTE"]),{createdAtExamples:[De.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"]}),cf=Ki({id:si().meta({examples:[De.PayoutTransfer.id],description:"Unique identifier for this transfer record."}),createdAt:Ur().meta({examples:[De.PayoutTransfer.createdAt],description:"Timestamp in ISO 8601 format when this transfer was created."}),kind:ao(["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:Pi().min(0).meta({examples:[De.PayoutTransfer.amount],description:"Transfer amount in cents. Positive values represent money being transferred to the beneficiary."}),currency:Oo.meta({examples:[De.PayoutTransfer.currency],description:"Currency code in ISO 4217 format for the transfer amount."}),fee:Pi().min(0).meta({examples:[De.PayoutTransfer.fee],description:"Gateway processing fee for this transfer in cents. This fee is deducted from the transfer amount."}),feeCurrency:Oo.meta({examples:[De.PayoutTransfer.feeCurrency],description:"Currency code in ISO 4217 format for the gateway fee."}),reference:si().meta({examples:[De.PayoutTransfer.reference],description:"External reference identifier for tracking this transfer with the payment gateway."}),gateway:ao(["AIRWALLEX","STRIPE"]).meta({examples:["AIRWALLEX"],description:"Payment gateway used to process this transfer."}),gatewayId:si().meta({examples:[De.PayoutTransfer.gatewayId],description:"Unique identifier assigned by the payment gateway for this transfer."}),beneficiary:si().meta({examples:[De.PayoutTransfer.beneficiary],description:"Human-readable name of the beneficiary receiving this transfer."}),beneficiaryId:si().meta({examples:[De.PayoutTransfer.beneficiaryId],description:"Unique identifier of the beneficiary account receiving this transfer."}),status:si().optional().meta({examples:["SCHEDULED"],description:"Transfer status from the payment gateway (e.g. SCHEDULED, IN_PROGRESS, COMPLETED)."}),settlementAmount:Pi().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:Oo.optional().meta({examples:["USD"],description:"Currency code in ISO 4217 format for the settlement amount. Present only for cross-currency transfers."}),deductionId:si().optional().meta({description:"Optional reference to a deduction record when this transfer represents money being held back from a previous negative payout."}),deductionPayoutId:si().optional().meta({description:"Optional reference to the payout that originated this transfer when it represents an outstanding balance being carried forward."})}),uf=ao(["UPCOMING","FAILED","PROCESSING","PAID","CANCELLED"]),lf=ao(["AIRWALLEX","STRIPE","MANUAL"]),pf=ao(["DAILY","WEEKLY","AFTER_EVENT","ON_DEMAND"]),mf=Ki({id:si().readonly().meta({examples:[De.Payout.id],description:"A unique identifier for this payout."}),createdAt:Ur().readonly().meta({examples:[De.Payout.createdAt],description:"Timestamp in ISO 8601 format when this payout was created."}),updatedAt:Ur().readonly().meta({examples:[De.Payout.updatedAt],description:"Timestamp in ISO 8601 format when this payout was last updated."}),paidAt:Ur().optional().meta({examples:[De.Payout.paidAt],description:"Timestamp in ISO 8601 format when this payout was completed."}),dueAt:Ur().optional().meta({examples:[De.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:uf.meta({examples:["PAID"],description:"Current payment status of this payout."}),method:lf.meta({examples:["MANUAL"],description:"The payout channel used for disbursing funds."}),approval:To.meta({examples:["APPROVED"],description:"Approval status for this payout."}),frequency:pf.default("AFTER_EVENT").meta({examples:["AFTER_EVENT"],description:"Schedule on which this payout is generated."}),structure:si().meta({examples:[De.Payout.structure],description:"Data structure defining how funds are allocated in this payout."}),transfers:Vi(cf).meta({description:"List of individual transfer records included in this payout."}),deductions:Vi(of).meta({description:"List of deductions applied before calculating the payout total."}),price:sf.meta({description:"Summary of amounts for transfers and deductions in this payout."}),event:af.meta({description:"Information about the event associated with this payout."}),timeline:Vi(df).optional().meta({description:"Chronological list of status changes and notes for this payout."}),eventId:si().meta({examples:[De.Payout.eventId],description:"Identifier of the event for which this payout was generated."}),teamId:si().meta({description:"Team receiving this payout. BREAKING CHANGE: Replaced promoterId/promoterSlug."})}).meta({description:"payout"});Ki({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout to approve for processing."})}),Ki({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout to reject."}),reason:si().optional().meta({examples:["Insufficient funds in account"],description:"Optional reason for rejecting the payout. This will be recorded for audit purposes."})}),Ki({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout to process and initiate transfers."})}),Ki({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout to retry transfer processing for."})});const ff=Ki({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout to add a note to"}),note:si().trim().min(1).max(1e3).meta({examples:["Transfer confirmed via bank statement"],description:"Note text content (1-1000 characters)"})}),hf=Ki({name:si(),gateway:ao(["AIRWALLEX","STRIPE","FREE"]),message:si(),eventIds:Vi(si()).optional(),venues:Vi(si()).optional(),tenants:Vi(si()).optional(),teams:Vi(si()).optional(),ticketBeneficiaryTeamId:si().optional(),min:Si().optional(),max:Si().optional(),percent:Si().optional(),split:Ki({tenant:Si(),team:Si(),venue:Si(),sessions:Si()})}),vf=Ki({tenant:Si().meta({examples:[5e4],description:"Amount allocated to the tenant (platform) in cents. This represents the platform's share of the revenue."}),venue:Si().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:Si().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:Si().meta({examples:[3e3],description:"Amount allocated to Sessions platform commission in cents. This represents the platform's service fees."}),tickets:Si().meta({examples:[2e3],description:"Amount allocated to ticketing fees in cents. This represents fees charged for ticket processing and management."})});Ki({payout:mf.meta({description:"Complete payout record containing all financial details and metadata for calculating beneficiary allocations."}),feeStructure:hf.meta({description:"Fee structure configuration that defines how revenue is split between different parties (promoter, venue, platform, etc.)."}),split:vf.meta({description:"Calculated split amounts showing how the payout total is divided among the different beneficiaries in cents."})});const gf=Ki({orders:Si().meta({examples:[150],description:"Total number of orders included in this payout breakdown."}),price:Ol.meta({description:"Aggregated price information for all orders included in this payout, showing total revenue, fees, and deductions."}),split:vf.meta({description:"How the total payout amount is split between different beneficiaries (tenant, venue, promoter, etc.) in cents."}),structure:si().meta({examples:["DEFAULT"],description:"Fee structure identifier that was used to calculate the payout split and allocations."})}),yf=Ki({total:gf.meta({description:"Summary totals for all orders included in this payout breakdown, including aggregated financial calculations."}),orders:Vi(Ki({order:Ul.meta({description:"Complete order information including customer details, items, and payment status."}),price:Ol.meta({description:"Settled price information for this specific order, showing final amounts after refunds and adjustments."}),split:vf.meta({description:"How this individual order's revenue is split between different beneficiaries in cents."}),structure:si().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."})});mf.pick({id:!0,eventId:!0}).extend({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout for which to retrieve the detailed breakdown."}),eventId:si().meta({examples:[De.Event.id],description:"Unique identifier of the event associated with the payout breakdown."})}),mf.pick({eventId:!0,teamId:!0,method:!0,frequency:!0}).partial({method:!0,frequency:!0}).meta({description:"Schema for creating a new payout record"}).extend({eventId:si().meta({examples:[De.Event.id],description:"Unique identifier of the event for which the payout is being created"}),teamId:si().meta({examples:["tem_01jqpjksnsen9vprw95et60t2m"],description:"Unique identifier of the team who will receive the payout"}),method:ao(["AIRWALLEX","STRIPE","MANUAL"]).optional().meta({examples:["AIRWALLEX"],description:"Optional payment method for the payout. Defaults to promoter's preferred method if not specified"}),frequency:ao(["DAILY","WEEKLY","AFTER_EVENT"]).optional().meta({examples:["AFTER_EVENT"],description:"Optional payout frequency. Defaults to 'AFTER_EVENT' if not specified"})});const bf=Ki({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout"}),noteId:si().meta({examples:["tl_1234567890_abc123"],description:"Unique identifier of the timeline note to delete"})}),wf=mf.pick({id:!0}).extend({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout to retrieve."})}),$f=Ki({mine:Ci().optional().meta({examples:[!0],description:"When true, returns payouts from teams where the authenticated user has payout access (for example, `payout.read` or `payout.write`)."}),teamId:si().optional().meta({description:"Filter payouts by specific team unique identifier. BREAKING CHANGE: Replaced promoterId filter."}),eventId:si().optional().meta({examples:[De.Event.id],description:"Filter payouts by specific event unique identifier. When provided, only returns payouts for this event."}),status:ao(["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:To.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:si().optional().meta({examples:["PAID venue:sydney"],description:"Optional search query to filter payouts by text fields. When provided, search-backed pagination is used."}),limit:oa("payouts").optional(),cursor:si().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"}),If=_a(mf,"payouts"),kf=Ki({status:ao(["VALID","FALLBACK","MISSING"]).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:si().optional().meta({examples:["Using fallback beneficiary with matching gateway only."],description:"Optional warning message shown when fallback or missing beneficiary resolution was required."}),beneficiary:Ki({id:si().optional().meta({examples:[De.Beneficiary.id],description:"Identifier for the beneficiary."}),teamId:si().optional().meta({examples:[De.Team.id],description:"Team that owns this beneficiary configuration."}),name:si().meta({examples:[De.Beneficiary.name],description:"Display name for the resolved beneficiary."}),gateway:ao(["AIRWALLEX","STRIPE"]).optional().meta({examples:[De.Beneficiary.gateway],description:"Payment gateway for this beneficiary when available from configuration."}),gatewayId:si().meta({examples:[De.Beneficiary.gatewayId],description:"Gateway-specific beneficiary identifier used for transfer creation."}),currency:Oo.meta({examples:[De.Beneficiary.currency],description:"Currency configured for this beneficiary."})}).optional()}),xf=Ki({kind:ao(["tickets","tenant","venue","team","sessions"]).meta({examples:["tickets"],description:"Split component represented by this row."}),amount:Si().int().meta({examples:[114500],description:"Amount in cents for this split component."}),currency:Oo.meta({examples:[De.Payout.price.currency],description:"Currency code for this split component."}),beneficiary:kf}),Ef=ao(["TRACKED","N_A","SKIPPED"]),Af=Ki({orders:Si().int().meta({examples:[12],description:"Number of orders in this settlement bucket."}),price:Ol.meta({description:"Aggregated totals for the orders in this bucket, in the bucket's native currency."})}),Tf=Ki({state:Ef.meta({examples:["TRACKED"],description:"Whether settlement tracking applies to this payout preview. Non-Airwallex payouts return N_A."}),settled:Af.optional().meta({description:"Completed Airwallex orders that already have settlement data available."}),awaitingSettlement:Af.optional().meta({description:"Completed Airwallex orders still waiting on settlement ingestion."})}),Of=Ki({payout:mf.pick({id:!0,status:!0,approval:!0,method:!0,frequency:!0,structure:!0,createdAt:!0,dueAt:!0,teamId:!0,eventId:!0,event:!0,price:!0}).meta({description:"Lightweight payout summary used by approvals and payout queue UIs."}),rows:Vi(xf).meta({description:"Non-zero split rows with beneficiary resolution status and warnings."}),settlementSummary:Tf.meta({description:"Settlement status summary for the payout event. Airwallex payouts expose settled vs awaiting-settlement buckets."})}),_f=wf.extend({includeSettlementSummary:Ci().optional().meta({examples:[!0],description:"When true, includes the Airwallex settlement summary for the payout preview."})}),Df=Ki({payout:mf,breakdown:yf}),Sf=io(si(),io(si(),Ki({net:Si(),total:Si(),gross:Si(),base:Si(),booking:Si(),shipping:Si(),refunded:Si(),discount:Si(),gateway:Si(),dispute:Si(),deductions:Si()}))).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}}}]}),Mf=Ki({teamId:si().optional().meta({description:"Filter stats by team ID"}),startDate:si().optional().meta({description:"Start date for stats period (YYYY-MM-DD)"}),endDate:si().optional().meta({description:"End date for stats period (YYYY-MM-DD)"})}),Pf=mf.pick({id:!0}).merge(mf.pick({status:!0,approval:!0}).partial()).extend({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout to update."}),status:ao(["CANCELLED"]).optional().meta({examples:["CANCELLED"],description:"Optional new payment status for the payout. Only CANCELLED is allowed for manual updates."}),approval:To.optional().meta({examples:["APPROVED"],description:"Optional new approval status for the payout. PENDING: awaiting approval, APPROVED: approved for processing, REJECTED: rejected."})}),jf=Ki({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout"}),noteId:si().meta({examples:["tl_1234567890_abc123"],description:"Unique identifier of the timeline note to update"}),note:si().trim().min(1).max(1e3).meta({examples:["Updated: Transfer confirmed - reference #12345"],description:"Updated note text content (1-1000 characters)"})}),Cf=Ki({payout:mf});var Nf={create:fe.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(ff.strict()).output(Cf),update:fe.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(jf.strict()).output(Cf),remove:fe.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(bf.strict()).output(Cf)},Rf={get:fe.route({method:"GET",path:"/payouts/{id}",summary:"Get payout by ID with breakdown",tags:["Payouts"]}).input(wf.strict()).output(Df),list:fe.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($f.strict()).output(If),preview:fe.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(_f.strict()).output(Of),stats:fe.route({method:"POST",path:"/payouts/stats",summary:"Get payout statistics",tags:["Payouts"]}).input(Mf.strict()).output(Sf),breakdown:fe.route({method:"GET",path:"/payouts/{payoutId}/breakdown",summary:"Get payout breakdown",tags:["Payouts"]}).input(rf.strict()).output(yf),update:fe.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(Pf.strict()).output(mf),note:Nf};const Uf=ao(["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."}),Lf=Ki({id:si().readonly().meta({description:"Unique identifier for the permission scope"}),createdAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the scope was created"}),updatedAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the scope was last updated"}),teamMemberId:si().meta({description:"Team member this scope applies to"}),teamId:si().meta({description:"Team the member belongs to"}),userId:si().meta({description:"ID of the user this permission scope applies to"}),permissions:Vi(ya).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:Vi(si()).optional().meta({description:"Optional role IDs applied at this scope. Role-derived permissions are merged with explicit scoped nodes."}),tenantId:si().readonly().meta({description:"Tenant identifier"})}),qf=eo("kind",[Lf.extend({kind:co("PROMOTER").meta({description:"Scope type: PROMOTER-specific permissions"}),promoterId:si().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."}),Lf.extend({kind:co("VENUE").meta({description:"Scope type: VENUE-specific permissions"}),venueId:si().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."}),Gf=Ki({permissions:Vi(ya).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:Vi(si()).optional().meta({description:"Optional role IDs to apply at this scope."})}),zf=eo("kind",[Gf.extend({kind:co("PROMOTER").meta({description:"Scope type: PROMOTER-specific permissions"}),promoterId:si().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."}),Gf.extend({kind:co("VENUE").meta({description:"Scope type: VENUE-specific permissions"}),venueId:si().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."}),Ff=Ki({id:Ho.meta({description:"Unique identifier for the permission scope"})}).meta({description:"Schema for retrieving a single permission scope by ID"}),Bf=Ki({teamMemberId:si().optional().meta({description:"Filter by team member ID"}),userId:si().optional().meta({description:"Filter by user ID"}),kind:Uf.optional().meta({description:"Filter by scope kind (PROMOTER or VENUE)"}),promoterId:si().optional().meta({description:"Filter by promoter ID (only for kind=PROMOTER scopes)"}),venueId:si().optional().meta({description:"Filter by venue ID (only for kind=VENUE scopes)"}),limit:oa("permission scopes"),cursor:si().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"}),Wf=_a(qf,"items").meta({description:"Paginated response containing permission scopes with cursor for next page"}),Zf=Gf.meta({description:"Schema for updating an existing permission scope. Only permissions array can be modified."}),Yf=Ki({key:si(),memberId:si()}),Vf=Yf.merge(Ff).strict();var Hf={get:fe.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(Vf).output(qf),list:fe.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(Yf.merge(Bf).strict()).output(Wf),create:fe.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(Yf.and(zf)).output(qf),update:fe.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(Yf.extend({id:si()}).merge(Zf).strict()).output(qf),remove:fe.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(Vf).output(qf)};const Kf=Ki({id:Ko.meta({description:"Permission role ID"}),teamId:jo.meta({description:"Team that owns this role"}),name:si().min(1).meta({description:"Role display name"}),description:si().optional().meta({description:"Optional role description"}),permissions:wa.meta({description:"Permission nodes granted by this role"}),createdAt:Ur().meta({description:"Timestamp in ISO 8601 format when the role was created"}),updatedAt:Ur().meta({description:"Timestamp in ISO 8601 format when the role was last updated"})}).meta({description:"Team-scoped permission role"}),Jf=Ki({role:Kf}),Qf=Ki({roles:Vi(Kf)}),Xf=Ki({key:si().meta({description:"Team identifier (ID or slug)"})}),eh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),roleId:Ko}),th=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),name:si().min(1).meta({description:"Role display name"}),description:si().optional().meta({description:"Optional role description"}),permissions:wa}),nh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),roleId:Ko,name:si().min(1).meta({description:"Role display name"}),description:si().optional().meta({description:"Optional role description"}),permissions:wa}),rh=Ki({memberId:Zo,permissions:Vi(ya),updatedAt:Ur()}),ih=Ki({member:rh}),oh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),memberId:Zo}),ah=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),memberId:Zo,permissions:Vi(ya).meta({description:"Direct permission nodes for this member. Full-replace semantics; use an empty array to remove all direct grants."})}),sh=Ki({memberId:Zo,roleIds:Vi(Ko).meta({description:"Role IDs assigned to this member"}),updatedAt:Ur()}),dh=Ki({member:sh}),ch=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),memberId:Zo}),uh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),memberId:Zo,roleIds:Vi(Ko)}),lh=Ki({direct:Vi(si()),fromRoles:Vi(si()),effective:Vi(si()),denied:Vi(si())});Ki({memberId:Zo,permissions:lh}),Ki({key:si().meta({description:"Team identifier (ID or slug)"}),memberId:Zo,domain:si().optional().meta({description:"Optional domain filter (for example: ticket, event)"}),action:si().optional().meta({description:"Optional action filter (for example: read, write, scan)"}),resourceId:si().optional().meta({description:"Optional resource ID filter"})});var ph={roles:{list:fe.route({method:"GET",path:"/teams/{key}/roles",summary:"List team roles",description:"Returns all roles configured for a team.",tags:["Permissions"]}).input(Xf.strict()).output(Qf),create:fe.route({method:"POST",path:"/teams/{key}/roles",summary:"Create team role",description:"Creates a team-scoped permission role.",tags:["Permissions"]}).input(th.strict()).output(Jf),get:fe.route({method:"GET",path:"/teams/{key}/roles/{roleId}",summary:"Get team role",description:"Retrieves a team role by ID.",tags:["Permissions"]}).input(eh.strict()).output(Jf),update:fe.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(nh.strict()).output(Jf),remove:fe.route({method:"DELETE",path:"/teams/{key}/roles/{roleId}",summary:"Delete team role",description:"Deletes a team role.",tags:["Permissions"]}).input(eh.strict()).output(Jf)},members:{permissions:{get:fe.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(oh.strict()).output(ih),replace:fe.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(ah.strict()).output(ih)},roles:{get:fe.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(ch.strict()).output(dh),replace:fe.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(uh.strict()).output(dh)}}};const mh=Ki({key:si().min(1).meta({description:"Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug",examples:[De.Promoter.id,De.Promoter.slug]})}).meta({description:"Request schema for retrieving a promoter by either its unique ID or slug"});ru.pick({slug:!0});const fh=ru.omit({id:!0,createdAt:!0,updatedAt:!0,geohash:!0,approval:!0,location:!0}).extend({teamId:si().meta({examples:["tem_01jqpjksnsen9vprw95et60t2m"],description:"ID of the team that will own this promoter. User must be a member of this team."}),slug:si().min(3).max(30).optional().meta({examples:[De.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"}),...Zl}).refine(Yl,{message:Wl}).meta({description:"Schema for creating a new promoter organization. The system automatically generates the ID, tenant association, geohash, and timestamps"}),hh=Ki({key:si().min(1).meta({description:"Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug",examples:[De.Promoter.id,De.Promoter.slug]})}).meta({description:"Schema for removing (soft deleting) a promoter organization by key (ID or slug)"});ru.pick({id:!0}).meta({description:"Schema for retrieving a specific promoter by ID"});const vh=Ki({teamId:si().optional().meta({description:"Filter promoters to only those belonging to a specific team"}),approval:To.optional().meta({examples:[De.Promoter.approval],description:"Filter promoters by approval status. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate"}),query:si().optional().meta({examples:["Session Services"],description:"Optional search query. When provided, results are fetched from search with unified cursor pagination."}),latitude:Eo().min(-90).max(90).optional().meta({examples:[De.Promoter.location.latitude],description:"Latitude used with longitude and radius to filter promoters by proximity when searching."}),longitude:Eo().min(-180).max(180).optional().meta({examples:[De.Promoter.location.longitude],description:"Longitude used with latitude and radius to filter promoters by proximity when searching."}),radius:Eo().optional().meta({examples:[50],description:"Search radius in kilometers applied when latitude and longitude are provided."}),mine:Ao().optional().meta({examples:[!0],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:function(e,t){return $o(lo(e),t)}((e=>{if(null!=e)return"string"==typeof e?function(e){let t=e.trim();if(0===t.length)return;let n=Number(t);return Number.isNaN(n)?e:n}(e):e}),Si().min(1).max(100).prefault(20)).meta({examples:[20],description:"Maximum number of promoters to return (1-100, defaults to 20)"}).optional(),cursor:si().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"}),gh=_a(ru,"promoters"),yh=Ki({promoter:ru}),bh=ru.omit({createdAt:!0,updatedAt:!0,id:!0,location:!0}).partial().extend({key:si().min(1).meta({description:"Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug",examples:[De.Promoter.id,De.Promoter.slug]}),locationId:Ro.optional().meta({examples:["loc_01jqpjksnsen9vprw95et60t2m"],description:"ID of an existing location to update to. Either locationId or googlePlaceId can be provided."}),googlePlaceId:si().optional().meta({examples:["ChIJN1t_tDeuEmsRUsoyG83frY4"],description:"Google Place ID to update location from. Either locationId or googlePlaceId can be provided."}),image:Qo.nullable().optional().meta({description:"Promoter image. Pass null to clear; omit to leave unchanged.",examples:[De.Promoter.image,null]}),tracking:Ki({fbId:si().optional(),gtmId:si().optional(),tikTokId:si().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 wh={summary:fe.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(cd).output(ud),revenue:fe.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(ld).output(pd),events:fe.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(md).output(fd)};const $h=fe.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(mh.strict()).output(yh),Ih=fe.route({method:"POST",path:"/promoters",summary:"Create a new promoter",description:"Create a new promoter brand within a team",tags:["Promoters"]}).input(fh.strict()).output(yh),kh=fe.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(bh.strict()).output(yh);var xh={get:$h,list:fe.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(vh.strict()).output(gh),create:Ih,update:kh,remove:fe.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(hh.strict()).output(yh),performance:wh};const Eh=fe.route({method:"GET",path:"/events/{eventId}/sections/{id}",summary:"Get section by ID",tags:["Sections"]}).input(Kl.strict()).output(Xl),Ah=fe.route({method:"POST",path:"/events/{eventId}/sections",summary:"Create a new section",tags:["Sections"]}).input(Vl.strict()).output(Xl),Th=fe.route({method:"PUT",path:"/events/{eventId}/sections/{id}",summary:"Update a section",tags:["Sections"]}).input(ep.strict()).output(Xl);var Oh={get:Eh,list:fe.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(Jl.strict()).output(Ql),create:Ah,update:Th,remove:fe.route({method:"DELETE",path:"/events/{eventId}/sections/{id}",summary:"Delete a section",tags:["Sections"]}).input(Hl.strict()).output(Xl)};const _h=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),inviteId:si().meta({description:"Team invite ID to accept"}),token:si().meta({description:"Secure token used to accept the team invite. This token must match the one sent in the invitation email."})}),Dh=Ki({provider:ao(["STRIPE","AIRWALLEX"]).meta({description:"Payment gateway provider type"}),connectedAt:Ur().meta({description:"Timestamp when the payment gateway was connected to this team"}),connectedBy:si().meta({description:"User ID of the team member who connected the payment gateway"}),accountId:si().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"}),Sh=Ki({id:jo.readonly().meta({description:"Unique identifier for the team organization"}),createdAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the team was created"}),updatedAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the team was last updated"}),name:si().min(3).max(30).meta({description:"Display name of the team organization. Must be between 3 and 30 characters"}),slug:si().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:si().email().optional().meta({description:"Support email address for customer inquiries. Used as reply-to address in order confirmation emails"}),publicBaseUrl:fi().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:Qo.optional().meta({description:"Team image with dimensions and alt text for branding across the platform"}),metadata:ra,approval:To.meta({description:"Approval status of the team. PENDING: awaiting review, APPROVED: can create promoters/venues/events, REJECTED: cannot operate"}),deletedAt:Ur().optional().readonly().meta({description:"Timestamp in ISO 8601 format when the team was soft deleted. Only present for deleted teams."}),tenantId:si().readonly().meta({description:"Tenant ID for multi-tenant isolation"}),isAdmin:Ci().optional().meta({description:"Whether this team is the admin team for the tenant"}),gateway:Dh.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."});Sh.extend({promoter:ru.meta({description:"The primary promoter brand associated with this team"})}).meta({description:"Team organization with its primary promoter brand included for convenience"});const Mh=Sh.extend({member:Ki({id:Zo.meta({description:"Current user's team member identifier for this team"}),permissions:ba.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:Ci().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"}),Ph=Ki({key:si().min(1).meta({description:"Team key - either a unique ID (tem_xxx format) or URL-friendly slug",examples:[De.Team.id,De.Team.slug]})}).meta({description:"Request schema for retrieving a team by either its unique ID or slug"}),jh=Sh.omit({id:!0,tenantId:!0,createdAt:!0,updatedAt:!0,deletedAt:!0}).extend({slug:si().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:Sh.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"});Ki({id:jo.meta({description:"Team ID to delete"})}),Ki({id:jo.meta({description:"Team ID to retrieve"})});const Ch=Ki({id:Yo.readonly().meta({description:"Unique identifier for the team invitation"}),createdAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the invitation was created"}),updatedAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the invitation was last updated"}),teamId:jo.meta({description:"Team this invitation is for"}),email:ui().meta({description:"Email address of the invited user. Used for sending invitation."}),permissions:Vi(ya).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:Vi(si()).optional().meta({description:"Role IDs assigned on invite acceptance. Effective permissions are role + explicit nodes."}),token:si().readonly().meta({description:"Secure token for invite acceptance. Required to accept the invitation."}),expiresAt:Si().int().positive().meta({description:"Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days."}),invitedBy:Uo.meta({description:"User ID who sent the invitation"}),tenantId:si().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."}),Nh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),inviteId:si().meta({description:"Team invite ID to cancel"})}),Rh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),email:ui().meta({description:"Email address of the user to invite"}),roleIds:Vi(si()).min(1).meta({description:"Role IDs to grant to the invited user."})}),Uh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),inviteId:Yo.meta({description:"Team invite ID to retrieve"})}),Lh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),query:si().optional().meta({description:"Search query to filter invitations by email. Case-insensitive partial match"}),limit:Si().int().min(1).max(100).default(20).optional().meta({description:"Maximum number of invitations to return per page"}),cursor:si().optional().meta({description:"Pagination cursor for fetching the next page"})}),qh=_a(Ch,"invites"),Gh=Ki({invite:Ch}),zh=Ki({userId:Uo.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:To.optional().meta({description:"Filter teams by approval status. PENDING: awaiting review, APPROVED: can operate, REJECTED: cannot operate"}),query:si().optional().meta({description:"Optional search query for filtering teams by name or slug"}),limit:oa("teams"),cursor:si().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"}),Fh=_a(Mh,"teams"),Bh=ao(["STRIPE","AIRWALLEX"]),Wh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),provider:Bh.meta({description:"Payment processor to connect",examples:["STRIPE","AIRWALLEX"]})}),Zh=Ki({authorizationUrl:si().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=..."]})}),Yh=Ki({key:si().meta({description:"Team identifier (ID or slug)"})}),Vh=Ki({team:Mh.extend({isAdmin:Ci().optional().meta({description:"Whether this team is the tenant admin team"})})}),Hh=Ki({id:si().meta({description:"Role ID"}),teamId:si().meta({description:"Team ID this role belongs to"}),key:si().meta({description:"Role key"}),name:si().meta({description:"Role display name"}),description:si().optional().meta({description:"Role description"}),permissions:Vi(si()).meta({description:"Permission nodes granted by this role"}),scope:co("TEAM").meta({description:"Role scope"}),isPreset:Ci().meta({description:"Whether this role is a system preset role"})});Ki({roles:Vi(Hh)}),Ki({key:si().meta({description:"Team identifier (ID or slug)"})});const Kh=Sh.omit({tenantId:!0,createdAt:!0,updatedAt:!0,id:!0}).partial().extend({key:si().min(1).meta({description:"Team key - either a unique ID (tem_xxx format) or URL-friendly slug",examples:[De.Team.id,De.Team.slug]}),supportEmail:si().email().nullable().optional().meta({description:"Support email for customer inquiries. Pass null to clear, omit to leave unchanged."}),publicBaseUrl:fi().nullable().optional().meta({description:"Public website base URL for team-owned event and order links. Pass null to clear, omit to leave unchanged."}),image:Qo.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 Jh={summary:fe.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(hd).output(vd),revenue:fe.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(gd).output(yd),funnel:fe.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($d).output(Id),traffic:fe.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(Td).output(Od),events:fe.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(bd).output(wd),admissions:fe.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(Ed).output(Ad),orders:fe.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(kd).output(xd),tracking:fe.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(Dd)},Qh={get:fe.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(Ph.strict()).output(Vh),list:fe.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(zh.strict()).output(Fh),create:fe.route({method:"POST",path:"/teams",summary:"Create a new team",description:"Create a new team organization",tags:["Teams"]}).input(jh.strict()).output(Vh),update:fe.route({method:"PATCH",path:"/teams/{key}",summary:"Update a team",description:"Update an existing team by ID or slug",tags:["Teams"]}).input(Kh.strict()).output(Vh),remove:fe.route({method:"DELETE",path:"/teams/{key}",summary:"Delete a team",description:"Soft delete a team by ID or slug",tags:["Teams"]}).input(Ph.strict()).output(Vh),performance:Jh};const Xh=Ki({key:si()}),ev=Ki({domain:si().nullable()}),tv=Ki({key:si(),domain:si()}),nv=Ki({key:si(),domain:si()}),rv=Ki({key:si()}),iv=Ki({domain:Bu}),ov=Ki({domains:Vi(Bu)}),av=Ki({domain:si()});var sv={list:fe.route({method:"GET",path:"/teams/{key}/domains",summary:"List team domains",tags:["Team Domains"]}).input(rv.strict()).output(ov),create:fe.route({method:"POST",path:"/teams/{key}/domains",summary:"Create team custom domain",tags:["Team Domains"]}).input(tv.strict()).output(iv),get:fe.route({method:"GET",path:"/teams/{key}/domains/{domain}",summary:"Get team domain status",tags:["Team Domains"]}).input(nv.strict()).output(iv),remove:fe.route({method:"DELETE",path:"/teams/{key}/domains/{domain}",summary:"Remove team custom domain",tags:["Team Domains"]}).input(nv.strict()).output(av),setPrimary:fe.route({method:"POST",path:"/teams/{key}/domains/{domain}/primary",summary:"Set primary team domain",tags:["Team Domains"]}).input(nv.strict()).output(iv),canonical:fe.route({method:"GET",path:"/teams/{key}/domains/canonical",summary:"Get canonical team domain",tags:["Team Domains"]}).input(Xh.strict()).output(ev)};const dv=Ki({id:Zo.readonly().meta({description:"Unique identifier for the team member"}),createdAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the member was created"}),updatedAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the member was last updated"}),teamId:jo.meta({description:"Team this member belongs to"}),userId:Uo.meta({description:"User ID of the team member"}),user:Ki({id:Uo.meta({description:"Unique identifier of the user"}),email:ui().meta({description:"Email address of the user"}),firstName:si().meta({description:"First name of the user"}),lastName:si().meta({description:"Last name of the user"}),imageUrl:si().optional().meta({description:"Profile image URL of the user"})}).meta({description:"Denormalized user details for quick access without additional queries."}),permissions:Vi(ya).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:Vi(si()).optional().meta({description:"Role IDs assigned to this team member. Effective permissions are derived from role nodes plus explicit permission nodes."}),isOwner:Ci().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:si().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."}),cv=Ki({member:dv});var uv={list:fe.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(Lh.strict()).output(qh),get:fe.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(Uh.strict()).output(Gh),create:fe.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(Rh.strict()).output(Gh),accept:fe.route({method:"PATCH",path:"/teams/{key}/invites/{inviteId}",summary:"Accept a team invitation",description:"Accept a pending team invitation using the secure token. Team key can be ID or slug. This deletes the invitation and creates an active TeamMember record. Returns the newly created team member.",tags:["Team Invites"]}).input(_h.strict()).output(cv),resend:fe.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(Uh.strict()).output(Gh),cancel:fe.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(Nh.strict()).output(Gh)},lv={connect:fe.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(Wh.strict()).output(Zh),disconnect:fe.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(Yh.strict()).output(Sh)};const pv=dv.omit({id:!0,tenantId:!0,createdAt:!0,updatedAt:!0,user:!0,teamId:!0,permissions:!0}).extend({key:si().meta({description:"Team identifier (ID or slug)"}),roleIds:Vi(si()).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."}),mv=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),userId:si().meta({description:"User ID of the team member to retrieve"})}),fv=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),query:si().optional().meta({description:"Search query to filter members by name or email. Case-insensitive partial match"}),limit:oa("team members"),cursor:si().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"}),hv=_a(dv,"members"),vv=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),newOwnerId:si().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."}),gv=Ki({previousOwner:dv.meta({description:"The previous owner (now a regular member with owner-equivalent access, typically via `*`)"}),newOwner:dv.meta({description:"The new owner (now has isOwner: true)"})}).meta({description:"Response payload for team ownership transfer operation"}),yv=Ki({id:si().meta({description:"Team member ID to update"}),roleIds:Vi(si()).min(1).meta({description:"Replace role assignments for this team member with the provided role IDs."}),isOwner:Ci().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."});var bv={get:fe.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(mv.strict()).output(cv),list:fe.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(fv.strict()).output(hv),create:fe.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(pv.strict()).output(cv),update:fe.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(yv.extend({key:si(),userId:si()}).strict()).output(cv),remove:fe.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(mv.strict()).output(cv),transfer:fe.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(vv.strict()).output(gv)};const wv=ao(["ALL","COUNTRY","STATE","CITY","VENUE"]),$v=Ki({id:si(),name:si(),slug:si(),kind:wv,parentId:si().optional(),latitude:Si().optional(),longitude:Si().optional(),radius:Si().optional(),enabled:Ci(),order:Si(),zoom:Si().optional(),heroImage:si().optional(),description:si().optional()}),Iv=Ki({tenant:Ki({id:si(),name:si(),slug:si(),adminTeamId:si(),legacyTenantsToTeams:io(si(),si()).optional(),features:io(si(),Ci()).optional(),defaultCurrency:si(),logo:Ki({email:Ki({src:si(),width:Si(),height:Si()}),website:Ki({src:si(),width:Si(),height:Si()})}),baseUrl:Ki({dev:si().optional(),production:si().optional()}),publicBaseUrl:Ki({dev:si().optional(),sandbox:si().optional(),production:si().optional()}).optional()}),regions:Vi($v)}),kv=Ki({regions:Vi($v)}),xv=Ki({teamId:si().optional()}),Ev=Ki({counts:Ki({teams:Ci(),promoters:Ci(),venues:Ci(),events:Ci(),payouts:Ci()})}),Av=fe.route({method:"GET",path:"/tenant/config",summary:"Get tenant configuration",tags:["Tenant"],description:"Returns tenant configuration including features and regions. Requires x-tenant-id header."}).output(Iv),Tv=fe.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(kv);var Ov={approvals:fe.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(xv).output(Ev),config:Av,regions:Tv};const _v=Ki({id:si().meta({examples:[De.Admission.id],description:"Admission ID reference"}),name:si().meta({examples:["VIP Access","General Admission","Early Bird"],description:"Admission type name at time of purchase"}),price:Ki({base:Si().meta({description:"Base price in smallest currency unit (cents)"}),booking:Si().meta({description:"Booking fee in smallest currency unit (cents)"}),currency:si().meta({examples:["USD","EUR","GBP"],description:"ISO 4217 currency code"})}).meta({description:"Price snapshot at time of purchase"}),entryStartsAt:ia.meta({description:"Wall clock time when ticket holder can enter (no timezone, displays same everywhere)"}),entryEndsAt:ia.meta({description:"Wall clock time when entry period ends (no timezone, displays same everywhere)"})}).meta({description:"Admission details for this ticket"}),Dv=Ki({firstName:si().trim().min(1).meta({examples:[De.Customer.firstName],description:"First name of the ticket attendee"}),lastName:si().trim().min(1).meta({examples:[De.Customer.lastName],description:"Last name of the ticket attendee"}),email:ui().meta({examples:[De.Customer.email],description:"Email address of the ticket attendee"}),phone:si().meta({examples:[De.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."}),Sv=Ki({id:si().meta({examples:[De.Event.id],description:"Event ID reference"}),name:si().meta({examples:[De.Event.name],description:"The title of the event shown to attendees"}),slug:si().meta({examples:[De.Event.slug],description:"URL-friendly identifier for the event"}),location:tu.meta({description:"Structured location details for the event"}),entryStartsAt:ia.meta({examples:[De.Event.entryStartsAt],description:"Wall clock time when event entry begins (no timezone, displays same everywhere)"}),entryEndsAt:ia.meta({examples:[De.Event.entryEndsAt],description:"Wall clock time when event entry ends (no timezone, displays same everywhere)"}),images:Ki({mobile:Qo.meta({description:"Mobile-optimized image for the event"}),desktop:Qo.meta({description:"Desktop-optimized image for the event"})})}).meta({description:"Event details for this ticket"}),Mv=Ki({id:si().meta({examples:[De.User.id],description:"Unique identifier of the user who performed the ticket scan"}),firstName:si().meta({examples:[De.User.firstName],description:"First name of the user who performed the scan"}),lastName:si().meta({examples:[De.User.lastName],description:"Last name of the user who performed the scan"}),email:ui().meta({examples:[De.User.email],description:"Email address of the user who performed the scan"})}).meta({description:"Information about the user who scanned a ticket"}),Pv=ao(["CHECK_IN","CHECK_OUT"]),jv=Ki({id:si().meta({examples:[De.TicketScan.id],description:"Unique identifier of the ticket scan record"}),scannedAt:Ur().readonly().meta({examples:[De.TicketScan.scannedAt],description:"Timestamp when the ticket was scanned in ISO 8601 format"}),scannedById:si().meta({examples:[De.TicketScan.scannedById],description:"Unique identifier of the user who performed the scan"}),scannedBy:Mv.meta({description:"Detailed information about the user who performed the scan"}),deviceId:si().meta({examples:[De.TicketScan.deviceId],description:"Unique identifier of the device used for scanning"}),kind:Pv.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"}),Cv=Ki({id:si().meta({examples:[De.Section.id],description:"Section ID reference"}),name:si().meta({examples:["Floor Section A","Balcony Left","VIP Lounge"],description:"Section name at time of purchase"}),location:Ki({name:si().meta({description:"Venue or location name"}),address:si().optional().meta({description:"Street address"}),city:si().optional().meta({description:"City name"}),state:si().optional().meta({description:"State or province"}),postcode:si().optional().meta({description:"Postal/ZIP code"}),country:si().optional().meta({description:"ISO country code"}),latitude:Si().optional().meta({description:"Geographic latitude coordinate"}),longitude:Si().optional().meta({description:"Geographic longitude coordinate"}),timeZone:si().optional().meta({examples:["America/New_York","Europe/London"],description:"IANA timezone identifier"})}).meta({description:"Physical location details"})}).meta({description:"Section details for this ticket"}),Nv=ao(["ACTIVE","REDEEMED","CANCELLED"]),Rv=Ki({id:si().readonly().meta({examples:[De.Ticket.id],description:"Unique identifier for the ticket"}),createdAt:Ur().readonly().meta({examples:[De.Ticket.createdAt],description:"Timestamp when the ticket was created in ISO 8601 format"}),updatedAt:Ur().readonly().meta({examples:[De.Ticket.updatedAt],description:"Timestamp when the ticket was last updated in ISO 8601 format"}),scans:Vi(jv).meta({description:"Array of all scan records for this ticket (check-ins and check-outs)"}),status:Nv.meta({examples:["ACTIVE"],description:"Current status of the ticket: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)"}),attendee:Dv.meta({description:"Attendee information for this ticket - editable by tenant admins"}),customerId:zo.meta({examples:[De.Ticket.customerId],description:"Unique identifier of the customer who purchased this ticket (read-only)"}),eventId:Co.meta({examples:[De.Ticket.eventId],description:"Unique identifier of the event this ticket grants access to"}),event:Sv.meta({description:"Event details for this ticket"}),admissionId:Fo.meta({examples:[De.Ticket.admissionId],description:"Unique identifier of the admission type/tier this ticket represents"}),admission:_v.meta({description:"Admission details for this ticket"}),section:Cv.optional().meta({description:"Section details for this ticket (if assigned to a section)"}),orderId:Lo.meta({examples:[De.Ticket.orderId],description:"Unique identifier of the order this ticket was purchased in"}),orderItemId:si().meta({examples:[De.Ticket.orderItemId],description:"Unique identifier of the specific order item this ticket represents (optional for legacy tickets)"}).optional(),teamId:jo.meta({examples:[De.Ticket.teamId],description:"Identifier of the team that owns this ticket"}),promoterId:Go.meta({examples:[De.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."}),Uv=Ki({kind:ao(["CHECK_IN","CHECK_OUT"]).meta({description:"The most recent attendee scan action."}),scannedAt:Ur().meta({description:"Timestamp for the most recent attendee scan."})}),Lv=Ki({key:ao("#ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")).meta({description:"Alpha navigation bucket key for attendee roster jumps."}),count:Eo().int().min(0).meta({description:"Number of roster rows currently available in this bucket."}),anchor:si().meta({description:"Server-issued bookmark for the first roster row in this bucket under the active filters."})}),qv=_v.pick({id:!0,name:!0,entryEndsAt:!0}),Gv=Cv.pick({id:!0,name:!0}),zv=Ki({id:qo.meta({examples:[De.Ticket.id],description:"Ticket identifier for this attendee roster row."}),orderId:Lo.meta({examples:[De.Ticket.orderId],description:"Order identifier used to navigate to order details."}),status:Nv.meta({description:"Current ticket status for the attendee row."}),attendee:Dv.meta({description:"Editable attendee identity fields for this ticket."}),admission:qv.meta({description:"Admission snapshot needed for roster labels and expiry state."}),section:Gv.optional().meta({description:"Optional section label shown in the roster row."}),lastScan:Uv.optional().meta({description:"Most recent scan event for compact roster activity text."}),lastCheckInAt:Ur().optional().meta({description:"Timestamp for the most recent check-in scan, used for checked-in labels."})}),Fv=Ki({eventId:Co.meta({examples:[De.Event.id],description:"Event identifier for the attendee alpha index."}),admissionIds:Vi(Fo).optional().meta({examples:[[De.Admission.id]],description:"Optional admission filters used when computing available attendee buckets."}),sectionIds:Vi(Bo).optional().meta({examples:[[De.Section.id]],description:"Optional section filters used when computing available attendee buckets."})}),Bv=Ki({buckets:Vi(Lv).meta({description:"Available attendee alpha buckets for the active filter set."})}),Wv=Eo().int().min(1).max(100).prefault(100).meta({examples:[100],description:"Maximum number of attendee roster rows to return per request (1-100, default: 100)."}),Zv=Ki({eventId:Co.meta({examples:[De.Event.id],description:"Event identifier for the attendee roster."}),admissionIds:Vi(Fo).optional().meta({examples:[[De.Admission.id]],description:"Optional admission filters. When provided, only matching ticket admissions are included."}),sectionIds:Vi(Bo).optional().meta({examples:[[De.Section.id]],description:"Optional section filters. When provided, only matching ticket sections are included."}),query:si().optional().meta({examples:["John","john@example.com","+61400000000"],description:"Optional attendee search query. Matches attendee name, email, and phone."}),cursor:aa.optional(),before:aa.optional().meta({description:"Cursor for loading roster rows before the current window. Mutually exclusive with cursor and anchor."}),anchor:si().optional().meta({description:"Server-issued bookmark used to jump to a roster bucket. Mutually exclusive with cursor and before."}),limit:Wv.optional()}),Yv=_a(zv,"tickets"),Vv=Rv.pick({status:!0,admissionId:!0,orderItemId:!0}).extend({orderId:si().meta({examples:[De.Order.id],description:"The order this ticket belongs to"}),customerId:si().meta({examples:[De.Customer.id],description:"The customer who purchased this ticket"}),attendee:Dv.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"}),Hv=Rv.pick({id:!0}).extend({signature:$a.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"}),Kv=Ki({promoterId:si().optional().meta({examples:[De.Promoter.id],description:"Filter tickets by promoter/organizer unique identifier (optional)"}),eventId:si().optional().meta({examples:[De.Event.id],description:"Filter tickets by event unique identifier (optional)"}),customerId:si().optional().meta({examples:[De.Customer.id],description:"Filter tickets by customer unique identifier (optional)"}),orderId:si().optional().meta({examples:[De.Order.id],description:"Filter tickets by order unique identifier (optional)"}),status:Nv.optional().meta({examples:["ACTIVE"],description:"Filter tickets by status: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)"}),orderSignature:$a.optional().meta({description:"Order signature used to access tickets for a specific order without permissions (16 characters, base64url encoded)"}),query:si().optional().meta({examples:["John Doe"],description:"Optional search query to filter tickets by customer details. When provided, search-backed pagination is used."}),limit:oa("tickets").optional(),cursor:si().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"}),Jv=_a(Rv,"tickets"),Qv=Ki({ticket:Rv}),Xv=Rv.pick({id:!0,eventId:!0}).extend({key:Rv.shape.id.meta({description:"Transition key. Supports canonical ticket IDs (tkt_*), order IDs (ord_*), and legacy Neon ticket IDs."}),deviceId:Rv.shape.scans.element.shape.deviceId.optional().meta({description:"Unique identifier of the scanning device (optional)."}),eventId:Rv.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:Ci().optional().meta({description:"Confirms an order-level check-in when some tickets are already redeemed and some remain active."})}).omit({id:!0}).meta({description:"Schema for check-in/check-out transitions addressed by key, where key may resolve to a ticket, order, or legacy ticket identifier."}),eg=ao(["ticket","order","legacy"]),tg=ao(["NOOP_TRANSITION"]),ng=ao(["PARTIAL_ORDER_CONFIRMATION_REQUIRED"]),rg=ao(["EVENT_MISMATCH"]),ig=Ki({id:Rv.shape.orderId,checkedInCount:Si().int().nonnegative().optional(),items:Vi(Ki({quantity:Si().int().positive()}))}),og=Sv.pick({id:!0,name:!0,slug:!0,entryStartsAt:!0}).extend({teamId:Rv.shape.teamId}),ag=Qi([Ki({reason:tg,kind:ao(["CHECK_IN","CHECK_OUT"]),targetType:eg,order:ig.optional(),ticket:Rv.optional()}),Ki({reason:rg,kind:ao(["CHECK_IN","CHECK_OUT"]),targetType:eg,requestedEventId:Rv.shape.eventId.optional(),event:og,order:ig.optional(),ticket:Rv.optional()}),Ki({reason:ng,kind:co("CHECK_IN"),targetType:co("order"),order:ig,ticket:Rv.optional()})]),sg=Ki({tickets:Vi(Rv).meta({description:"Transition result tickets. Single-item array for ticket/legacy targets and full order tickets for order targets."}),targetType:eg.meta({description:"Resolved target scope from the provided key."}),order:ig.optional()}),dg=ao(["ACTIVE","CANCELLED"]).describe("Status updates allowed via PATCH: ACTIVE (reactivate), CANCELLED (void). REDEEMED is set via scan endpoint."),cg=Ki({id:si().meta({examples:[De.Ticket.id],description:"Unique identifier of the ticket to update"}),status:dg.optional().meta({description:"Update ticket status: CANCELLED to void, ACTIVE to reactivate"}),attendee:Dv.partial().nullable().optional().meta({description:"Attendee info. Pass object to set/update, null to clear, or omit to leave unchanged."}),admissionId:si().optional().meta({examples:[De.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."}),ug=fe.route({method:"GET",path:"/tickets/{id}",summary:"Get ticket by ID",tags:["Tickets"]}).input(Hv.strict()).output(Qv),lg=fe.route({method:"POST",path:"/tickets",summary:"Create a new ticket",tags:["Tickets"]}).input(Vv.strict()).output(Qv),pg=fe.route({method:"PUT",path:"/tickets/{id}",summary:"Update a ticket",tags:["Tickets"]}).input(cg.strict()).output(Qv);var mg={get:ug,list:fe.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(Kv.strict()).output(Jv),attendees:{list:fe.route({method:"GET",path:"/tickets/attendees",summary:"List event attendees with alpha-navigation support",description:"Returns ticket-backed attendee roster rows for an event. Supports bounded browsing, alpha jump bookmarks, and attendee search.",tags:["Tickets"]}).input(Zv.strict()).output(Yv),index:fe.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(Fv.strict()).output(Bv)},create:lg,update:pg,checkInByKey:fe.route({method:"PUT",path:"/tickets/{key}/check-in",summary:"Check in tickets by key",tags:["Tickets"]}).input(Xv.strict()).errors({UNPROCESSABLE_ENTITY:{data:ag}}).output(sg),checkOutByKey:fe.route({method:"PUT",path:"/tickets/{key}/check-out",summary:"Check out tickets by key",tags:["Tickets"]}).input(Xv.strict()).errors({UNPROCESSABLE_ENTITY:{data:ag}}).output(sg)};const fg={id:De.User.id,createdAt:De.User.createdAt,updatedAt:De.User.updatedAt,email:De.User.email,firstName:De.User.firstName,lastName:De.User.lastName,imageUrl:"https://assets.session.services/examples/avatar.jpg",tenantId:De.User.tenantId},hg=Ki({id:si().readonly().meta({description:"Unique identifier for the user",examples:[De.User.id]}),createdAt:Ur().readonly().meta({description:"ISO 8601 timestamp when the user account was created",examples:[De.User.createdAt]}),updatedAt:Ur().readonly().meta({description:"ISO 8601 timestamp when the user account was last updated",examples:[De.User.updatedAt]}),email:ui().meta({description:"User's email address, used for authentication and communication",examples:[De.User.email]}),firstName:si().min(1).meta({description:"User's first name",examples:[De.User.firstName]}),lastName:si().min(1).meta({description:"User's last name",examples:[De.User.lastName]}),imageUrl:fi().optional().meta({description:"Optional URL to the user's profile image or avatar",examples:["https://assets.session.services/examples/avatar.jpg"]}),metadata:io(si(),na).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:[fg]}),vg=dv.meta({ref:"MeTeamMember",description:"Team membership for the current user with denormalized user details and role-expanded team permissions."}),gg=Ki({access:si().meta({description:"JWT access token with updated user data"}),refresh:si().meta({description:"Refresh token for obtaining new access tokens"})}).meta({ref:"Tokens",description:"Authentication tokens for client session management"}),yg=Ki({user:hg.meta({description:"The updated user profile"}),tokens:gg.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."}),bg=Ki({deleted:co(!0).meta({description:"Whether the current user account was deleted."})}).meta({ref:"UserDeleteResponse",description:"Response payload for DELETE /users/me after deleting the current account."}),wg=Ki({user:hg.nullable().meta({description:"Current authenticated user profile, null if not authenticated"}),isAdmin:Ci().meta({description:"Whether the current user has admin privileges for the tenant"}),members:Vi(vg).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:!0,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:!0,tenantId:"tnt_01abc123"}]}]}),$g=fe.route({method:"GET",path:"/users/me",summary:"Get the current user and their team memberships",tags:["Users"]}).output(wg),Ig=Ki({firstName:si().min(1).optional(),lastName:si().min(1).optional(),imageUrl:fi().optional(),metadata:io(si(),na).optional(),refreshToken:si().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"}),kg=fe.route({method:"PATCH",path:"/users/me",summary:"Update the current user's profile",tags:["Users"]}).input(Ig).output(yg);var xg={me:$g,remove:fe.route({method:"DELETE",path:"/users/me",summary:"Delete the current user's account",tags:["Users"]}).output(bg),update:kg};const Eg=Ki({id:si().readonly().meta({description:"Unique identifier for the venue"}),createdAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the venue was created"}),updatedAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the venue was last updated"}),teamId:si().meta({description:"Team that manages this venue"}),locationId:Ro.meta({examples:["loc_01h2xk3j9k8m2n5p7q9r1s3t4v"],description:"Location identifier for this venue"}),googlePlaceId:si().optional().meta({examples:["ChIJP3Sa8ziYEmsRUKgyFmh9AQM"],description:"Google Place ID when this venue is linked to a Google Places location"}),approval:To.meta({examples:["APPROVED"],description:"Approval status of the venue"}),name:si().min(3).max(100).meta({description:"Display name of the venue. Must be between 3 and 100 characters"}),slug:si().min(3).meta({description:"URL-friendly slug for the venue. Must be unique within tenant"}),description:si().max(500).optional().meta({description:"Short description of the venue for listings and discovery"}),image:Qo.optional().meta({description:"Venue image"}),contact:Ki({email:ui().optional().meta({description:"Public contact email for venue inquiries"}),phone:si().optional().meta({description:"Public contact phone number"}),website:fi().optional().meta({description:"Venue website URL"}),instagram:si().optional().meta({description:"Instagram profile URL"}),facebook:si().optional().meta({description:"Facebook page URL"}),twitter:si().optional().meta({description:"Twitter/X profile URL"}),tiktok:si().optional().meta({description:"TikTok profile URL"}),youtube:si().optional().meta({description:"YouTube channel URL"})}).optional().meta({description:"Public contact information and social media links"}),location:tu.omit({venueId:!0}).meta({description:"Physical location details including address, coordinates, and timezone"}),geohash:si().meta({description:"Geohash encoding of the venue's location for efficient spatial queries"}),capacity:Si().int().min(1).optional().meta({description:"Maximum capacity of the venue (number of attendees)"}),metadata:ra,deletedAt:Ur().readonly().optional().meta({description:"Timestamp in ISO 8601 format when the venue was soft-deleted. Null if not deleted"}),tenantId:si().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."}),Ag=Eg.omit({id:!0,tenantId:!0,createdAt:!0,updatedAt:!0,geohash:!0,deletedAt:!0,location:!0,googlePlaceId:!0,approval:!0}).extend({slug:si().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"}),Tg=Ki({key:si().min(1).meta({description:"Venue key - either a unique ID (ven_xxx format) or URL-friendly slug",examples:[De.Venue.id,De.Venue.slug]})}),Og=Ki({key:si().meta({examples:[De.Venue.id,De.Venue.slug],description:"Venue key - either a unique ID (ven_xxx format) or URL-friendly slug"})}),_g=Ki({teamId:si().optional().meta({description:"Filter venues by owner team ID"}),approval:To.optional().meta({description:"Filter venues by approval status. PENDING: awaiting review, APPROVED: can be used for events, REJECTED: cannot be used"}),query:si().optional().meta({description:"Optional search query for filtering venues by name or slug"}),latitude:Eo().min(-90).max(90).optional().meta({description:"Latitude for location-based search. Must be used with longitude"}),longitude:Eo().min(-180).max(180).optional().meta({description:"Longitude for location-based search. Must be used with latitude"}),radius:Eo().min(1).max(2e4).optional().meta({description:"Search radius in kilometers (1-20000). Requires latitude and longitude"}),limit:oa("venues"),cursor:si().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"}),Dg=_a(Eg,"venues").meta({description:"Paginated response containing venues with cursor for next page"}),Sg=Ki({venue:Eg}),Mg=Eg.omit({id:!0,tenantId:!0,teamId:!0,createdAt:!0,updatedAt:!0,deletedAt:!0,geohash:!0}).partial().extend({key:si().meta({examples:[De.Venue.id,De.Venue.slug],description:"Venue key - either a unique ID (ven_xxx format) or URL-friendly slug"}),description:si().max(500).nullable().optional().meta({description:"Short description of the venue. Pass null to clear, omit to leave unchanged."}),image:Qo.nullable().optional().meta({description:"Venue image. Pass null to clear, omit to leave unchanged."}),capacity:Si().int().min(1).nullable().optional().meta({description:"Maximum capacity. Pass null to clear, omit to leave unchanged."}),contact:Ki({email:ui().optional(),phone:si().optional(),website:fi().optional(),instagram:si().optional(),facebook:si().optional(),twitter:si().optional(),tiktok:si().optional(),youtube:si().optional()}).nullable().optional().meta({description:"Contact information. Pass null to clear all contact fields, omit to leave unchanged."}),googlePlaceId:si().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."}),Pg={analytics:gc,beneficiary:wc,section:Oh,event:_u,eventCollaborator:Lu,admission:vc,order:nf,ticket:mg,internal:Xu,location:ol,coupon:Zc,payout:Rf,teams:ph,permissionScope:Hf,promoter:xh,team:Qh,teamDomain:sv,teamInvite:uv,teamPayment:lv,teamMember:bv,tenant:Ov,venue:{get:fe.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(Og.strict()).output(Sg),list:fe.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(_g.strict()).output(Dg),create:fe.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(Ag.strict()).output(Sg),update:fe.route({method:"PATCH",path:"/venues/{key}",summary:"Update a venue",description:"Update an existing venue. Cannot change venue ownership (teamId)",tags:["Venues"]}).input(Mg.strict()).output(Sg),remove:fe.route({method:"DELETE",path:"/venues/{key}",summary:"Delete a venue",description:"Soft delete a venue",tags:["Venues"]}).input(Tg.strict()).output(Sg),linkLocation:fe.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(Og.extend({locationKey:si().meta({description:"Location ID (loc_xxx) or Google Place ID to link to this venue",examples:["loc_01jps5cgsm7qxvh6watsons0eq","ChIJP3Sa8ziYEmsRUKgyFmh9AQM"]})}).strict()).output(Sg),unlinkLocation:fe.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(Og.extend({locationKey:si().meta({description:"Location ID (loc_xxx) or Google Place ID to unlink from this venue",examples:["loc_01jps5cgsm7qxvh6watsons0eq","ChIJP3Sa8ziYEmsRUKgyFmh9AQM"]})}).strict()).output(Sg)},user:xg},jg=ao(["ORDER"]).meta({description:"Aggregate type this notification belongs to"}),Cg=ao(["ORDER_CONFIRMATION","ORDER_REMINDER","ORDER_CANCELLATION","ORDER_TIME_CHANGE","ORDER_VENUE_CHANGE","ORDER_TIME_AND_VENUE_CHANGE"]).meta({description:"Notification kind"}),Ng=ao(["SMS","EMAIL"]).meta({description:"Delivery channel"}),Rg=ao(["PENDING","PROCESSING","SENT","DELIVERED","FAILED","CANCELLED"]).meta({description:"Current notification status"});Ki({id:Jo.meta({examples:[De.Notification.id],description:"Unique notification identifier"}),createdAt:Ur().readonly().meta({examples:[De.Notification.createdAt],description:"Timestamp when notification was created"}),updatedAt:Ur().readonly().meta({examples:[De.Notification.updatedAt],description:"Timestamp when notification was last updated"}),aggregateType:jg.meta({examples:[De.Notification.aggregateType]}),aggregateId:Lo.meta({examples:[De.Notification.aggregateId],description:"Aggregate identifier (order ID for ORDER notifications)"}),eventId:Co.optional().meta({examples:[De.Notification.eventId],description:"Associated event identifier when applicable"}),kind:Cg.meta({examples:[De.Notification.kind]}),channel:Ng.meta({examples:[De.Notification.channel]}),status:Rg.meta({examples:[De.Notification.status]}),providerMessageId:si().optional().meta({examples:[De.Notification.providerMessageId],description:"Provider message identifier"}),sentAt:Ur().optional().meta({examples:[De.Notification.sentAt],description:"Timestamp when provider accepted send request"}),deliveredAt:Ur().optional().meta({examples:[De.Notification.deliveredAt],description:"Timestamp when provider confirmed delivery"}),failedAt:Ur().optional().meta({examples:[De.Notification.failedAt],description:"Timestamp when notification failed"}),failureCode:si().optional().meta({examples:[De.Notification.failureCode],description:"Failure code when notification is FAILED"}),failureReason:si().optional().meta({examples:[De.Notification.failureReason],description:"Failure reason when notification is FAILED"})}).meta({description:"Notification delivery record"}),Ki({id:Zo.meta({description:"Team member ID to delete"})});var Ug=class extends ne{initRuntimeAdapter(e){for(let t of this.plugins)t.initRuntimeAdapter?.(e)}},Lg=class{fetch;toFetchRequestOptions;adapterInterceptors;constructor(e){new Ug(e.plugins).initRuntimeAdapter(e),this.fetch=e.fetch??globalThis.fetch.bind(globalThis),this.toFetchRequestOptions=e,this.adapterInterceptors=o(e.adapterInterceptors)}async call(e,t,n,r){let i=te(e,this.toFetchRequestOptions);return function(e,t={}){return{body:d((()=>X(e,t))),status:e.status,get headers(){let t=ee(e.headers);return Object.defineProperty(this,"headers",{value:t,writable:!0}),t},set headers(e){Object.defineProperty(this,"headers",{value:e,writable:!0})}}}(await b(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})}},qg=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(I(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(0===e.length)return{};let t=new WeakSet,n={value:[]};for(let[r,i]of e){let e=this.parsePath(r),o=n,a="value";e.forEach(((n,r)=>{!Array.isArray(o[a])&&!I(o[a])&&(o[a]=[]),r===e.length-1?Array.isArray(o[a])&&(""===n?o[a].length&&!t.has(o[a])&&(o[a]=zg(o[a])):t.has(o[a])?(t.delete(o[a]),o[a]=Fg(o[a])):Gg(n,this.maxArrayIndex)||(o[a]=zg(o[a]))):Array.isArray(o[a])&&!Gg(n,this.maxArrayIndex)&&(t.has(o[a])?(t.delete(o[a]),o[a]=Fg(o[a])):o[a]=zg(o[a])),o=o[a],a=n})),Array.isArray(o)&&""===a?(t.add(o),o.push(i)):a in o?Array.isArray(o[a])?o[a].push(i):o[a]=[o[a],i]:o[a]=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)=>0===n?t:`${e}[${t}]`),"")}parsePath(e){let t=[],n=!1,r="",i=0;for(let o=0;o<e.length;o++){let a=e[o],s=e[o+1];!n||"]"!==a||void 0!==s&&"["!==s||i%2!=0?0===t.length&&"["===a&&i%2==0?(n=!0,t.push(r),r=""):"\\"===a?i++:(r+="\\".repeat(i/2)+a,i=0):(void 0===s&&(n=!1),t.push(r),r="",o++)}return n||0===t.length?[e]:t}};function Gg(e,t){return/^0$|^[1-9]\d*$/.test(e)&&Number(e)<=t}function zg(e){let t=new E;return e.forEach(((e,n)=>{t[n]=e})),t}function Fg(e){let t=new E;return t[""]=1===e.length?e[0]:e,t}var Bg=class{customSerializers;constructor(e={}){this.customSerializers=e.customJsonSerializers??[]}serialize(e,t={value:!1}){for(let n of this.customSerializers)if(n.condition(e))return this.serialize(n.serialize(e),t);if(e instanceof Blob)return t.value=!0,[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=>void 0===e?null:this.serialize(e,t)[0])),t.value];if(I(e)){let n={};for(let r in e)"toJSON"===r&&"function"==typeof e[r]||(n[r]=this.serialize(e[r],t)[0]);return[n,t.value]}return"bigint"==typeof e||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 Wg(e){return`/${e.replace(/\/{2,}/g,"/").replace(/^\/|\/$/g,"")}`}function Zg(e){return e?Wg(e).match(/\/\{[^}]+\}/g)?.map((e=>({raw:e,name:e.match(/\{\+?([^}]+)\}/)[1]}))):void 0}var Yg=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=function(e){return"function"==typeof e.forEach?ee(e):e}(await A(this.headers,n,e,t));void 0!==n.lastEventId&&(r=K(r,{"last-event-id":n.lastEventId}));let i=await A(this.baseUrl,n,e,t),o=x(this.contract,e);if(!se(o))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${e.join(".")}`);return"compact"===ve("defaultInputStructure",o["~orpc"].route.inputStructure)?this.#e(o,e,t,n,i,r):this.#t(o,e,t,n,i,r)}#e(e,t,n,r,i,o){let a=Wg(e["~orpc"].route.path??ie(t)),s=n,d=Zg(a);if(d?.length){if(!I(n))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "compact" structure when has dynamic params at ${t.join(".")}.`);let e={...n};for(let t of d)a=a.replace(t.raw,`/${encodeURIComponent(`${this.serializer.serialize(n[t.name])}`)}`),delete e[t.name];s=Object.keys(e).length?e:void 0}let c=ve("defaultMethod",e["~orpc"].route.method),u=new URL(i);if(u.pathname=`${u.pathname.replace(/\/$/,"")}${a}`,"GET"===c){let e=this.serializer.serialize(s,{outputFormat:"URLSearchParams"});for(let[t,n]of e)u.searchParams.append(t,n);return{url:u,method:c,headers:o,body:void 0,signal:r.signal}}return{url:u,method:c,headers:o,body:this.serializer.serialize(s),signal:r.signal}}#t(e,t,n,r,i,o){let a=Wg(e["~orpc"].route.path??ie(t)),s=Zg(a);if(!I(n)&&void 0!==n)throw TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "detailed" structure at ${t.join(".")}.`);if(s?.length){if(!I(n?.params))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input.params shape for "detailed" structure when has dynamic params at ${t.join(".")}.`);for(let e of s)a=a.replace(e.raw,`/${encodeURIComponent(`${this.serializer.serialize(n.params[e.name])}`)}`)}let d=o;if(void 0!==n?.headers){if(!I(n.headers))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input.headers shape for "detailed" structure at ${t.join(".")}.`);d=K(n.headers,o)}let c=ve("defaultMethod",e["~orpc"].route.method),u=new URL(i);if(u.pathname=`${u.pathname.replace(/\/$/,"")}${a}`,void 0!==n?.query){let e=this.serializer.serialize(n.query,{outputFormat:"URLSearchParams"});for(let[t,n]of e)u.searchParams.append(t,n)}return"GET"===c?{url:u,method:c,headers:d,body:void 0,signal:r.signal}:{url:u,method:c,headers:d,body:this.serializer.serialize(n?.body),signal:r.signal}}async decode(e,t,n){let r=!j(e.status),i=await(async()=>{let t=!1;try{let n=await e.body();return t=!0,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)??(C(i)?N(i):new M(function(e){return Object.entries(_).find((([,t])=>t.status===e))?.[0]??"MALFORMED_ORPC_ERROR_RESPONSE"}(e.status),{status:e.status,data:{...e,body:i}}));let o=x(this.contract,n);if(!se(o))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${n.join(".")}`);return"compact"===ve("defaultOutputStructure",o["~orpc"].route.outputStructure)?i:{status:e.status,headers:e.headers,body:i}}},Vg=class{constructor(e,t){this.jsonSerializer=e,this.bracketNotation=t}serialize(e,t={}){return f(e)&&!t.outputFormat?J(e,{value:async e=>this.#e(e,{outputFormat:"plain"}),error:async e=>new L({data:this.#e(P(e).toJSON(),{outputFormat:"plain"}),cause:e})}):this.#e(e,t)}#e(e,t){let[n,r]=this.jsonSerializer.serialize(e);if("plain"===t.outputFormat)return n;if("URLSearchParams"===t.outputFormat){let e=new URLSearchParams;for(let[t,r]of this.bracketNotation.serialize(n))("string"==typeof r||"number"==typeof r||"boolean"==typeof r)&&e.append(t,r.toString());return e}if(n instanceof Blob||void 0===n||!r)return n;let i=new FormData;for(let[e,t]of this.bracketNotation.serialize(n))"string"==typeof t||"number"==typeof t||"boolean"==typeof t?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())):f(e)?J(e,{value:async e=>e,error:async e=>e instanceof L&&C(e.data)?N(e.data,{cause:e}):e}):e}},Hg=class extends re{constructor(e,t,n){super(new Yg(e,new Vg(new Bg(n),new qg({maxBracketNotationArrayIndex:4294967294})),n),t,n)}},Kg=class extends Hg{constructor(e,t){super(e,new Lg(t),t)}};const Jg={sandbox:"https://api.sandbox.session.services",prod:"https://api.session.services"};var Qg,Xg={},ey=function(){if(Qg)return Xg;Qg=1,Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.parse=function(e,t){const n=new o,r=e.length;if(r<2)return n;const i=t?.decode||d;let c=0;do{const t=e.indexOf("=",c);if(-1===t)break;const o=e.indexOf(";",c),d=-1===o?r:o;if(t>d){c=e.lastIndexOf(";",t-1)+1;continue}const u=a(e,c,t),l=s(e,t,u),p=e.slice(u,l);if(void 0===n[p]){let r=a(e,t+1,d),o=s(e,d,r);const c=i(e.slice(r,o));n[p]=c}c=d+1}while(c<r);return n},Xg.serialize=function(o,a,s){const d=s?.encode||encodeURIComponent;if(!e.test(o))throw new TypeError(`argument name is invalid: ${o}`);const c=d(a);if(!t.test(c))throw new TypeError(`argument val is invalid: ${a}`);let u=o+"="+c;if(!s)return u;if(void 0!==s.maxAge){if(!Number.isInteger(s.maxAge))throw new TypeError(`option maxAge is invalid: ${s.maxAge}`);u+="; Max-Age="+s.maxAge}if(s.domain){if(!n.test(s.domain))throw new TypeError(`option domain is invalid: ${s.domain}`);u+="; Domain="+s.domain}if(s.path){if(!r.test(s.path))throw new TypeError(`option path is invalid: ${s.path}`);u+="; Path="+s.path}if(s.expires){if(!function(e){return"[object Date]"===i.call(e)}(s.expires)||!Number.isFinite(s.expires.valueOf()))throw new TypeError(`option expires is invalid: ${s.expires}`);u+="; Expires="+s.expires.toUTCString()}if(s.httpOnly&&(u+="; HttpOnly"),s.secure&&(u+="; Secure"),s.partitioned&&(u+="; Partitioned"),s.priority)switch("string"==typeof s.priority?s.priority.toLowerCase():void 0){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${s.priority}`)}if(s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${s.sameSite}`)}return u};const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,o=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function a(e,t,n){do{const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<n);return n}function s(e,t,n){for(;t>n;){const n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return n}function d(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}return Xg}();function ty(e,t={}){const n=function(e){return e&&"j"===e[0]&&":"===e[1]?e.substr(2):e}(e);if(!t.doNotParse)try{return JSON.parse(n)}catch(e){}return e}class ny{constructor(e,t={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const e=this.cookies;this.cookies=ey.parse(document.cookie),this._checkChanges(e)};const n="undefined"==typeof document?"":document.cookie;this.cookies=function(e){return"string"==typeof e?ey.parse(e):"object"==typeof e&&null!==e?e:{}}(e||n),this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=function(){const e="undefined"==typeof global?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return"boolean"==typeof e?e:"object"==typeof document&&"string"==typeof document.cookie}()}_emitChange(e){for(let t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach((t=>{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:ty(this.cookies[t])})}))}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(e,t={}){return t.doNotUpdate||this.update(),ty(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();const t={};for(let n in this.cookies)t[n]=ty(this.cookies[n],e);return t}set(e,t,n){n=n?Object.assign(Object.assign({},this.defaultSetOptions),n):this.defaultSetOptions;const r="string"==typeof t?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:r}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=ey.serialize(e,r,n)),this._emitChange({name:e,value:t,options:n})}remove(e,t){const n=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=ey.serialize(e,"",n)),this._emitChange({name:e,value:void 0,options:t})}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&1===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(e){const t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&0===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0])}}function ry(e,t){return e.get(t)||void 0}function iy(){if(typeof window>"u")return;let e=new URLSearchParams(window.location.search),t={source:ry(e,"utm_source"),medium:ry(e,"utm_medium"),name:ry(e,"utm_campaign"),term:ry(e,"utm_term"),content:ry(e,"utm_content")};return Object.values(t).some(Boolean)?t:void 0}function oy(){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:iy()}}function ay(e,t,n){n&&(e[t]=n)}function sy(...e){return e.find(Boolean)}function dy(e){return(t,n)=>{e(t,n.product_id),function(e,t){ay(e,"content_name",t.name),ay(e,"value",sy(t.value,t.price)),e.content_type="product"}(t,n)}}function cy(e){return(t,n)=>{e(t,n),ay(t,"content_category",n.category)}}function uy(e,t){ay(e,"value",sy(t.value,t.total))}function ly(e,t){ay(e,"value",sy(t.value,t.total,t.revenue))}function py(e,t){if(Array.isArray(e))return e.map(t)}const my={"Product Viewed":"ViewContent","Product Added":"AddToCart","Checkout Started":"InitiateCheckout","Payment Info Entered":"AddPaymentInfo","Order Completed":"Purchase"},fy=new Set,hy=new Map;function vy(e,t){!t||!Array.isArray(t)||(e.content_ids=t.map((e=>e.product_id)).filter(Boolean),e.num_items=t.length,e.contents=py(t,(e=>({id:e.product_id,quantity:e.quantity||1,item_price:e.price}))))}function gy(e,t){let n=window;typeof window>"u"||!n.fbq||(t?n.fbq("init",e,{external_id:t}):n.fbq("init",e))}function yy(e,t){let n=window;typeof window>"u"||!n.fbq||n.fbq("track",e,t)}function by(e,...t){e&&console.log(...t)}function wy(e,t,n){return!!function(){if(typeof window>"u")return!1;let e=window;if(e.fbq)return!0;let t=(...e)=>{t.callMethod?t.callMethod(...e):t.queue.push(e)};t.push=t,t.loaded=!0,t.version="2.0",t.queue=[],e.fbq=t,e._fbq||=t;let n=document.createElement("script");n.async=!0,n.src="https://connect.facebook.net/en_US/fbevents.js";let r=document.getElementsByTagName("script")[0];return r?.parentNode?.insertBefore(n,r),!0}()&&(function(e,t,n){let r=hy.get(e);return!(!t||t===r||(gy(e,t),hy.set(e,t),fy.add(e),by(n,`[Facebook Pixel] Re-initialized pixel ${e} with userId ${t}`),0))}(e,t,n)||fy.has(e)||function(e,t,n){gy(e,t),fy.add(e),t&&hy.set(e,t),by(n,`[Facebook Pixel] Initialized pixel ${e}`)}(e,t,n),!0)}const $y=dy((function(e,t){t&&(e.content_ids=[t])}));function Iy(e,t){vy(e,t.products),uy(e,t),e.content_type="product",ay(e,"order_id",t.order_id)}function ky(e,t){ay(e,"value",t.value),t.product_id&&(e.content_ids=[t.product_id])}const xy={ViewContent:cy($y),AddToCart:function(e,t){$y(e,t),t.product_id&&(e.contents=[{id:t.product_id,quantity:t.quantity||1,item_price:t.price}])},InitiateCheckout:Iy,AddPaymentInfo:Iy,Purchase:function(e,t){vy(e,t.products),ly(e,t),e.content_type="product",ay(e,"order_id",t.order_id)}};function Ey(e,t){let n={};return ay(n,"currency",t.currency),ay(n,"event_id",t.event_id),(xy[e]??ky)(n,t),n}function Ay(e=!1){let t=(t,n)=>{n.fbId&&wy(n.fbId,t.userId,e)&&(yy("PageView",{}),by(e,"[Facebook Pixel] Sent PageView"))};return{name:"Facebook Pixel",track:(t,n)=>{if(!n.fbId||!wy(n.fbId,t.userId,e))return;let r=function(e){let t=function(e){return e.name||"Unknown"}(e);return my[t]||t}(t),i=Ey(r,t.properties);yy(r,i),by(e,`[Facebook Pixel] Sent ${r}:`,i)},page:t,screen:t,identify:(t,n)=>{!n.fbId||!t.userId||(wy(n.fbId,t.userId,e),by(e,`[Facebook Pixel] Identity synced: ${t.userId}`))}}}const Ty={"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"},Oy=new Set;function _y(e){let t=window;typeof window>"u"||!t.dataLayer||t.dataLayer.push(e)}function Dy(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 Sy(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 My(e){return Array.isArray(e.products)?e.products.map(Dy):[]}function Py(e){return[...Sy(e),...My(e)]}function jy(e,t,n){n&&(e[t]=n)}function Cy(e,t){if(e.gtmId)return function(e,t){return!!Oy.has(e)||!!function(e){if(typeof window>"u")return!1;let t=window;t.dataLayer=t.dataLayer||[];let n=`gtm-${e}`;if(document.getElementById(n))return!0;let r=document.createElement("script");r.id=n,r.async=!0,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),!0}(e)&&(Oy.add(e),t&&console.log(`[GTM] Loaded container ${e}`),!0)}(e.gtmId,t)?e.gtmId:void 0}function Ny(e,t){jy(e,"user_id",t.userId)}function Ry(e=!1){return{name:"Google Tag Manager",track:(t,n)=>{if(!Cy(n,e))return;let r=function(e){let t=e||"Unknown";return Ty[t]||t}(t.name);_y({ecommerce:null});let i=function(e,t){let n={items:Py(t)};return jy(n,"currency",t.currency),jy(n,"value",function(e){return e.find(Boolean)}([t.value,t.total,t.revenue,t.price])),function(e,t,n){"purchase"===t&&n.order_id&&(e.transaction_id=n.order_id)}(n,e,t),{event:e,ecommerce:n}}(r,t.properties);Ny(i,t),_y(i),function(e,t,n){e&&console.log(t,n)}(e,`[GTM] Pushed ${r}:`,i)},page:(t,n)=>{if(!Cy(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};jy(r,"page_referrer",t.context.page.referrer),Ny(r,t),_y(r),e&&console.log("[GTM] Pushed page_view:",r)},screen:(t,n)=>{if(!Cy(n,e))return;let r={event:"screen_view",screen_name:t.name||"Unknown"};Ny(r,t),_y(r),e&&console.log("[GTM] Pushed screen_view:",r)},identify:(t,n)=>{!t.userId||!Cy(n,e)||(_y({user_id:t.userId}),e&&console.log(`[GTM] Identity synced: ${t.userId}`))}}}const Uy=new Set(Object.values(Md));function Ly(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 qy(e,t,n){return n&&t?{...e,name:t}:e}const Gy={"Product Viewed":"ViewContent","Product Added":"AddToCart","Checkout Started":"InitiateCheckout","Payment Info Entered":"AddPaymentInfo","Order Completed":"Purchase"},zy=new Set;function Fy(e,...t){e&&console.log(...t)}function By(e,t){return!!function(){if(typeof window>"u")return!1;let e=window;if(e.ttq)return!0;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=!0,n.src="https://analytics.tiktok.com/i18n/pixel/events.js";let r=document.getElementsByTagName("script")[0];return r?.parentNode?.insertBefore(n,r),!0}()&&(zy.has(e)||(function(e){let t=window;typeof window>"u"||!t.ttq||t.ttq("init",e)}(e),zy.add(e),Fy(t,`[TikTok Pixel] Initialized pixel ${e}`)),!0)}const Wy=dy((function(e,t){ay(e,"content_id",t)}));function Zy(e,t){ay(e,"contents",py(t,(e=>({content_id:e.product_id,content_name:e.name,quantity:e.quantity||1,price:e.price}))))}function Yy(e,t){Zy(e,t.products),uy(e,t)}function Vy(e,t){ay(e,"value",t.value)}const Hy={ViewContent:cy(Wy),AddToCart:function(e,t){Wy(e,t),ay(e,"quantity",t.quantity)},InitiateCheckout:Yy,AddPaymentInfo:Yy,Purchase:function(e,t){Zy(e,t.products),ly(e,t),ay(e,"order_id",t.order_id)}};function Ky(e,t){let n={};return ay(n,"currency",t.currency),ay(n,"event_id",t.event_id),(Hy[e]??Vy)(n,t),n}function Jy(e){return e.tikTokId}function Qy(e=!1){let t=(t,n)=>{let r=Jy(n);r&&By(r,e)&&(function(e){let t=window;typeof window>"u"||!t.ttq||t.ttq.instance(e)("page")}(r),Fy(e,"[TikTok Pixel] Sent page view"))};return{name:"TikTok Pixel",track:(t,n)=>{let r=Jy(n);if(!r||!By(r,e))return;let i=function(e){let t=function(e){return e.name||"Unknown"}(e);return Gy[t]||t}(t),o=Ky(i,t.properties);(function(e,t,n){let r=window;typeof window>"u"||!r.ttq||r.ttq.instance(e)("track",t,n)})(r,i,o),Fy(e,`[TikTok Pixel] Sent ${i}:`,o)},page:t,screen:t,identify:(t,n)=>{let r=Jy(n);!r||!t.userId||By(r,e)&&(function(e,t){let n=window;typeof window>"u"||!n.ttq||n.ttq.instance(e)("identify",{external_id:t})}(r,t.userId),Fy(e,`[TikTok Pixel] Identity synced: ${t.userId}`))}}}const Xy={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)},eb=["fbId","gtmId","tikTokId"];function tb(e){return e||void 0}function nb(e,t=!1){let n=new Map,r=new Map,i=function(e,t=!1){let n=async(n,r,i)=>{let o=function(e){let{event_id:t,team_id:n,promoter_id:r,...i}=e;return{eventId:t,teamId:n,promoterId:r,rest:i}}(r.properties);if(!function(e){return!!(e.eventId&&e.teamId&&e.promoterId)}(o))return void function(e,t,n){e&&console.warn(`[Sessions API] Missing required fields, skipping ${t}:`,{eventId:n.eventId,teamId:n.teamId,promoterId:n.promoterId})}(t,n,o);let a=i??r.name;if(!function(e){return!(!e||!Uy.has(e))}(a))return void function(e,t,n){e&&console.warn(`[Sessions API] Invalid or missing eventType "${n}", skipping ${t}`)}(t,n,a);let s=function(e,t,n,r){return{eventId:t.eventId,teamId:t.teamId,promoterId:t.promoterId,eventType:n,properties:qy(t.rest,e.name,r),context:Ly(e)}}(r,o,a,i);(function(e,t,n){e&&console.log(`[Sessions API] Sending ${t}:`,n)})(t,n,s),await e.analytics[n](s)};return{name:"Sessions API",track:e=>{n("track",e).catch((e=>{t&&console.error("[Sessions API] track error:",e)}))},page:e=>{n("page",e,"Page Viewed").catch((e=>{t&&console.error("[Sessions API] page error:",e)}))},screen:e=>{n("screen",e,"Screen Viewed").catch((e=>{t&&console.error("[Sessions API] screen error:",e)}))},identify:e=>{t&&console.log("[Sessions API] Identify received (logged only):",{userId:e.userId,traits:e.traits})}}}(e,t),o=[Ay(t),Ry(t),Qy(t)],a=async n=>{try{let r=function(e){let t=e??{};return Object.fromEntries(eb.map((e=>[e,tb(t[e])])))}((await e.promoter.get({key:n})).promoter?.tracking);return function(e,t,n){e&&console.log(`[DestinationManager] Fetched config for promoter ${t}:`,n)}(t,n,r),r}catch(e){return function(e,t,n){e&&console.warn(`[DestinationManager] Failed to fetch promoter ${t} config:`,n)}(t,n,e),{}}},s=(e,n,r)=>{try{c(e,n,r)}catch(n){t&&console.error(`[DestinationManager] ${e.name} error:`,n)}},d=async e=>{let t=n.get(e);if(t)return t;let i=r.get(e);if(i)return i;i=a(e),r.set(e,i);try{let t=await i;return n.set(e,t),t}finally{r.delete(e)}},c=(e,t,n)=>{Xy[t.type]?.(e,t,n)};return{sendEvent:async(e,t)=>{let n=await d(t);if(s(i,e,n),function(e){return eb.some((t=>!!e[t]))}(n))for(let t of o)s(t,e,n)},clearCache:()=>{n.clear(),r.clear()}}}function rb(){return typeof document>"u"?null:new ny}const ib={deleteCookie:function(e){let t=rb();t&&t.remove(e,{path:"/"})},getCookie:function(e){return rb()?.get(e)??null},getItem:function(e){if(typeof localStorage>"u")return null;try{return localStorage.getItem(e)}catch{return null}},removeItem:function(e){if(!(typeof localStorage>"u"))try{localStorage.removeItem(e)}catch{}},setCookie:function(e,t){let n=rb();n&&n.set(e,t,{path:"/",sameSite:"lax",secure:"https:"===window.location.protocol})},setItem:function(e,t){if(!(typeof localStorage>"u"))try{localStorage.setItem(e,t)}catch{}}};const ob={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}},ab={locale:"en-US",exponent:2};var sb,db,cb={},ub={},lb={},pb={};function mb(){return db||(db=1,pb.tzName=function(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}),pb}var fb,hb,vb,gb={},yb={};function bb(){if(fb)return yb;fb=1,yb.tzOffset=function(i,o){try{const n=(e[i]||=new Intl.DateTimeFormat("en-US",{timeZone:i,timeZoneName:"longOffset"}).format)(o).split("GMT")[1];return n in t?t[n]:r(n,n.split(":"))}catch{if(i in t)return t[i];const e=i?.match(n);return e?r(i,e.slice(1)):NaN}};const e={},t={},n=/([+-]\d\d):?(\d\d)?/;function r(e,n){const r=+(n[0]||0),i=+(n[1]||0),o=+(n[2]||0)/60;return t[e]=60*r+i>0?60*r+i+o:60*r-i-o}return yb}function wb(){if(hb)return gb;hb=1,gb.TZDateMini=void 0;var e=bb();class t extends Date{constructor(...t){super(),t.length>1&&"string"==typeof t[t.length-1]&&(this.timeZone=t.pop()),this.internal=new Date,isNaN((0,e.tzOffset)(this.timeZone,this))?this.setTime(NaN):t.length?"number"==typeof t[0]&&(1===t.length||2===t.length&&"number"!=typeof t[1])?this.setTime(t[0]):"string"==typeof t[0]?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),i(this),r(this)):this.setTime(Date.now())}static tz(e,...n){return n.length?new t(...n,e):new t(Date.now(),e)}withTimeZone(e){return new t(+this,e)}getTimezoneOffset(){const t=-(0,e.tzOffset)(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(e){return Date.prototype.setTime.apply(this,arguments),r(this),+this}[Symbol.for("constructDateFrom")](e){return new t(+new Date(e),this.timeZone)}}gb.TZDateMini=t;const n=/^(get|set)(?!UTC)/;function r(t){t.internal.setTime(+t),t.internal.setUTCSeconds(t.internal.getUTCSeconds()-Math.round(60*-(0,e.tzOffset)(t.timeZone,t)))}function i(t){const n=(0,e.tzOffset)(t.timeZone,t),r=n>0?Math.floor(n):Math.ceil(n),i=new Date(+t);i.setUTCHours(i.getUTCHours()-1);const o=-new Date(+t).getTimezoneOffset(),a=o- -new Date(+i).getTimezoneOffset(),s=Date.prototype.getHours.apply(t)!==t.internal.getUTCHours();a&&s&&t.internal.setUTCMinutes(t.internal.getUTCMinutes()+a);const d=o-r;d&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+d);const c=new Date(+t);c.setUTCSeconds(0);const u=o>0?c.getSeconds():(c.getSeconds()-60)%60,l=Math.round(-60*(0,e.tzOffset)(t.timeZone,t))%60;(l||u)&&(t.internal.setUTCSeconds(t.internal.getUTCSeconds()+l),Date.prototype.setUTCSeconds.call(t,Date.prototype.getUTCSeconds.call(t)+l+u));const p=(0,e.tzOffset)(t.timeZone,t),m=p>0?Math.floor(p):Math.ceil(p),f=-new Date(+t).getTimezoneOffset()-m-d;if(m!==r&&f){Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+f);const n=(0,e.tzOffset)(t.timeZone,t),r=m-(n>0?Math.floor(n):Math.ceil(n));r&&(t.internal.setUTCMinutes(t.internal.getUTCMinutes()+r),Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+r))}}return Object.getOwnPropertyNames(Date.prototype).forEach((e=>{if(!n.test(e))return;const o=e.replace(n,"$1UTC");t.prototype[o]&&(e.startsWith("get")?t.prototype[e]=function(){return this.internal[o]()}:(t.prototype[e]=function(){return Date.prototype[o].apply(this.internal,arguments),function(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()),i(e)}(this),+this},t.prototype[o]=function(){return Date.prototype[o].apply(this,arguments),r(this),+this}))})),gb}function $b(){if(vb)return lb;vb=1,lb.TZDate=void 0;var e=mb(),t=wb();class n extends t.TZDateMini{static tz(e,...t){return t.length?new n(...t,e):new n(Date.now(),e)}toISOString(){const[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,t,n,r]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,i]=this.tzComponents();return`${t} GMT${n}${r}${i} (${(0,e.tzName)(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(e){return new n(+this,e)}[Symbol.for("constructDateFrom")](e){return new n(+new Date(e),this.timeZone)}}return lb.TZDate=n,lb}var Ib,kb,xb,Eb,Ab,Tb={},Ob={},_b=(xb||(xb=1,function(e){var t=(sb||(sb=1,ub.constructFromSymbol=void 0,ub.constructFromSymbol=Symbol.for("constructDateFrom")),ub);Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}));var n=$b();Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))}));var r=wb();Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))}));var i=function(){if(Ib)return Tb;Ib=1,Tb.tz=void 0;var e=$b();return Tb.tz=t=>n=>e.TZDate.tz(t,+new Date(n)),Tb}();Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===i[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))}));var o=bb();Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===o[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}));var a=function(){if(kb)return Ob;kb=1,Ob.tzScan=function(t,n){const r=[],i=new Date(n.start);i.setUTCSeconds(0,0);const o=new Date(n.end);o.setUTCSeconds(0,0);const a=+o;let s=(0,e.tzOffset)(t,i);for(;+i<a;){i.setUTCMonth(i.getUTCMonth()+1);const n=(0,e.tzOffset)(t,i);if(n!=s){const n=new Date(i);n.setUTCMonth(n.getUTCMonth()-1);const o=+i;for(s=(0,e.tzOffset)(t,n);+n<o;){n.setUTCDate(n.getUTCDate()+1);const i=(0,e.tzOffset)(t,n);if(i!=s){const i=new Date(n);i.setUTCDate(i.getUTCDate()-1);const o=+n;for(s=(0,e.tzOffset)(t,i);+i<o;){i.setUTCHours(i.getUTCHours()+1);const n=(0,e.tzOffset)(t,i);n!==s&&r.push({date:new Date(i),change:n-s,offset:n}),s=n}}s=i}}s=n}return r};var e=bb();return Ob}();Object.keys(a).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===a[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}}))}));var s=mb();Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===s[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}}))}))}(cb)),cb),Db={},Sb={},Mb={},Pb={},jb={};function Cb(){if(Eb)return jb;Eb=1,jb.secondsInYear=jb.secondsInWeek=jb.secondsInQuarter=jb.secondsInMonth=jb.secondsInMinute=jb.secondsInHour=jb.secondsInDay=jb.quartersInYear=jb.monthsInYear=jb.monthsInQuarter=jb.minutesInYear=jb.minutesInMonth=jb.minutesInHour=jb.minutesInDay=jb.minTime=jb.millisecondsInWeek=jb.millisecondsInSecond=jb.millisecondsInMinute=jb.millisecondsInHour=jb.millisecondsInDay=jb.maxTime=jb.daysInYear=jb.daysInWeek=jb.constructFromSymbol=void 0,jb.daysInWeek=7;const e=jb.daysInYear=365.2425,t=jb.maxTime=24*Math.pow(10,8)*60*60*1e3;jb.minTime=-t,jb.millisecondsInWeek=6048e5,jb.millisecondsInDay=864e5,jb.millisecondsInMinute=6e4,jb.millisecondsInHour=36e5,jb.millisecondsInSecond=1e3,jb.minutesInYear=525600,jb.minutesInMonth=43200,jb.minutesInDay=1440,jb.minutesInHour=60,jb.monthsInQuarter=3,jb.monthsInYear=12,jb.quartersInYear=4;const n=jb.secondsInHour=3600;jb.secondsInMinute=60;const r=jb.secondsInDay=24*n;jb.secondsInWeek=7*r;const i=jb.secondsInYear=r*e,o=jb.secondsInMonth=i/12;return jb.secondsInQuarter=3*o,jb.constructFromSymbol=Symbol.for("constructDateFrom"),jb}function Nb(){if(Ab)return Pb;Ab=1,Pb.constructFrom=function(t,n){return"function"==typeof t?t(n):t&&"object"==typeof t&&e.constructFromSymbol in t?t[e.constructFromSymbol](n):t instanceof Date?new t.constructor(n):new Date(n)};var e=Cb();return Pb}var Rb,Ub,Lb={};function qb(){if(Rb)return Lb;Rb=1,Lb.toDate=function(t,n){return(0,e.constructFrom)(n||t,t)};var e=Nb();return Lb}function Gb(){if(Ub)return Mb;Ub=1,Mb.addDays=function(n,r,i){const o=(0,t.toDate)(n,i?.in);return isNaN(r)?(0,e.constructFrom)(i?.in||n,NaN):r?(o.setDate(o.getDate()+r),o):o};var e=Nb(),t=qb();return Mb}var zb,Fb,Bb={};function Wb(){if(zb)return Bb;zb=1,Bb.addMonths=function(n,r,i){const o=(0,t.toDate)(n,i?.in);if(isNaN(r))return(0,e.constructFrom)(i?.in||n,NaN);if(!r)return o;const a=o.getDate(),s=(0,e.constructFrom)(i?.in||n,o.getTime());s.setMonth(o.getMonth()+r+1,0);return a>=s.getDate()?s:(o.setFullYear(s.getFullYear(),s.getMonth(),a),o)};var e=Nb(),t=qb();return Bb}function Zb(){if(Fb)return Sb;Fb=1,Sb.add=function(i,o,a){const{years:s=0,months:d=0,weeks:c=0,days:u=0,hours:l=0,minutes:p=0,seconds:m=0}=o,f=(0,r.toDate)(i,a?.in),h=d||s?(0,t.addMonths)(f,d+12*s):f,v=u||c?(0,e.addDays)(h,u+7*c):h,g=1e3*(m+60*(p+60*l));return(0,n.constructFrom)(a?.in||i,+v+g)};var e=Gb(),t=Wb(),n=Nb(),r=qb();return Sb}var Yb,Vb={},Hb={};function Kb(){if(Yb)return Hb;Yb=1,Hb.isSaturday=function(t,n){return 6===(0,e.toDate)(t,n?.in).getDay()};var e=qb();return Hb}var Jb,Qb={};function Xb(){if(Jb)return Qb;Jb=1,Qb.isSunday=function(t,n){return 0===(0,e.toDate)(t,n?.in).getDay()};var e=qb();return Qb}var ew,tw,nw={};function rw(){if(ew)return nw;ew=1,nw.isWeekend=function(t,n){const r=(0,e.toDate)(t,n?.in).getDay();return 0===r||6===r};var e=qb();return nw}function iw(){if(tw)return Vb;tw=1,Vb.addBusinessDays=function(o,a,s){const d=(0,i.toDate)(o,s?.in),c=(0,r.isWeekend)(d,s);if(isNaN(a))return(0,e.constructFrom)(s?.in,NaN);const u=d.getHours(),l=a<0?-1:1,p=Math.trunc(a/5);d.setDate(d.getDate()+7*p);let m=Math.abs(a%5);for(;m>0;)d.setDate(d.getDate()+l),(0,r.isWeekend)(d,s)||(m-=1);return c&&(0,r.isWeekend)(d,s)&&0!==a&&((0,t.isSaturday)(d,s)&&d.setDate(d.getDate()+(l<0?2:-1)),(0,n.isSunday)(d,s)&&d.setDate(d.getDate()+(l<0?1:-2))),d.setHours(u),d};var e=Nb(),t=Kb(),n=Xb(),r=rw(),i=qb();return Vb}var ow,aw,sw={},dw={};function cw(){if(ow)return dw;ow=1,dw.addMilliseconds=function(n,r,i){return(0,e.constructFrom)(i?.in||n,+(0,t.toDate)(n)+r)};var e=Nb(),t=qb();return dw}function uw(){if(aw)return sw;aw=1,sw.addHours=function(n,r,i){return(0,e.addMilliseconds)(n,r*t.millisecondsInHour,i)};var e=cw(),t=Cb();return sw}var lw,pw,mw,fw,hw={},vw={},gw={},yw={},bw={};function ww(){if(lw)return bw;lw=1,bw.getDefaultOptions=function(){return e},bw.setDefaultOptions=function(t){e=t};let e={};return bw}function $w(){if(pw)return yw;pw=1,yw.startOfWeek=function(n,r){const i=(0,e.getDefaultOptions)(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,a=(0,t.toDate)(n,r?.in),s=a.getDay(),d=(s<o?7:0)+s-o;return a.setDate(a.getDate()-d),a.setHours(0,0,0,0),a};var e=ww(),t=qb();return yw}function Iw(){if(mw)return gw;mw=1,gw.startOfISOWeek=function(t,n){return(0,e.startOfWeek)(t,{...n,weekStartsOn:1})};var e=$w();return gw}function kw(){if(fw)return vw;fw=1,vw.getISOWeekYear=function(r,i){const o=(0,n.toDate)(r,i?.in),a=o.getFullYear(),s=(0,e.constructFrom)(o,0);s.setFullYear(a+1,0,4),s.setHours(0,0,0,0);const d=(0,t.startOfISOWeek)(s),c=(0,e.constructFrom)(o,0);c.setFullYear(a,0,4),c.setHours(0,0,0,0);const u=(0,t.startOfISOWeek)(c);return o.getTime()>=d.getTime()?a+1:o.getTime()>=u.getTime()?a:a-1};var e=Nb(),t=Iw(),n=qb();return vw}var xw,Ew={},Aw={},Tw={};function Ow(){if(xw)return Tw;xw=1,Tw.getTimezoneOffsetInMilliseconds=function(t){const n=(0,e.toDate)(t),r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),+t-+r};var e=qb();return Tw}var _w,Dw={};function Sw(){if(_w)return Dw;_w=1,Dw.normalizeDates=function(t,...n){const r=e.constructFrom.bind(null,t||n.find((e=>"object"==typeof e)));return n.map(r)};var e=Nb();return Dw}var Mw,Pw,jw={};function Cw(){if(Mw)return jw;Mw=1,jw.startOfDay=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setHours(0,0,0,0),r};var e=qb();return jw}function Nw(){if(Pw)return Aw;Pw=1,Aw.differenceInCalendarDays=function(i,o,a){const[s,d]=(0,t.normalizeDates)(a?.in,i,o),c=(0,r.startOfDay)(s),u=(0,r.startOfDay)(d),l=+c-(0,e.getTimezoneOffsetInMilliseconds)(c),p=+u-(0,e.getTimezoneOffsetInMilliseconds)(u);return Math.round((l-p)/n.millisecondsInDay)};var e=Ow(),t=Sw(),n=Cb(),r=Cw();return Aw}var Rw,Uw,Lw,qw={};function Gw(){if(Rw)return qw;Rw=1,qw.startOfISOWeekYear=function(r,i){const o=(0,t.getISOWeekYear)(r,i),a=(0,e.constructFrom)(i?.in||r,0);return a.setFullYear(o,0,4),a.setHours(0,0,0,0),(0,n.startOfISOWeek)(a)};var e=Nb(),t=kw(),n=Iw();return qw}function zw(){if(Uw)return Ew;Uw=1,Ew.setISOWeekYear=function(i,o,a){let s=(0,r.toDate)(i,a?.in);const d=(0,t.differenceInCalendarDays)(s,(0,n.startOfISOWeekYear)(s,a)),c=(0,e.constructFrom)(a?.in||i,0);return c.setFullYear(o,0,4),c.setHours(0,0,0,0),s=(0,n.startOfISOWeekYear)(c),s.setDate(s.getDate()+d),s};var e=Nb(),t=Nw(),n=Gw(),r=qb();return Ew}function Fw(){if(Lw)return hw;Lw=1,hw.addISOWeekYears=function(n,r,i){return(0,t.setISOWeekYear)(n,(0,e.getISOWeekYear)(n,i)+r,i)};var e=kw(),t=zw();return hw}var Bw,Ww={};function Zw(){if(Bw)return Ww;Bw=1,Ww.addMinutes=function(n,r,i){const o=(0,t.toDate)(n,i?.in);return o.setTime(o.getTime()+r*e.millisecondsInMinute),o};var e=Cb(),t=qb();return Ww}var Yw,Vw={};function Hw(){if(Yw)return Vw;Yw=1,Vw.addQuarters=function(t,n,r){return(0,e.addMonths)(t,3*n,r)};var e=Wb();return Vw}var Kw,Jw={};function Qw(){if(Kw)return Jw;Kw=1,Jw.addSeconds=function(t,n,r){return(0,e.addMilliseconds)(t,1e3*n,r)};var e=cw();return Jw}var Xw,e$={};function t$(){if(Xw)return e$;Xw=1,e$.addWeeks=function(t,n,r){return(0,e.addDays)(t,7*n,r)};var e=Gb();return e$}var n$,r$={};function i$(){if(n$)return r$;n$=1,r$.addYears=function(t,n,r){return(0,e.addMonths)(t,12*n,r)};var e=Wb();return r$}var o$,a$={};function s$(){if(o$)return a$;o$=1,a$.areIntervalsOverlapping=function(t,n,r){const[i,o]=[+(0,e.toDate)(t.start,r?.in),+(0,e.toDate)(t.end,r?.in)].sort(((e,t)=>e-t)),[a,s]=[+(0,e.toDate)(n.start,r?.in),+(0,e.toDate)(n.end,r?.in)].sort(((e,t)=>e-t));return r?.inclusive?i<=s&&a<=o:i<s&&a<o};var e=qb();return a$}var d$,c$={},u$={};function l$(){if(d$)return u$;d$=1,u$.max=function(n,r){let i,o=r?.in;return n.forEach((n=>{o||"object"!=typeof n||(o=e.constructFrom.bind(null,n));const r=(0,t.toDate)(n,o);(!i||i<r||isNaN(+r))&&(i=r)})),(0,e.constructFrom)(o,i||NaN)};var e=Nb(),t=qb();return u$}var p$,m$,f$={};function h$(){if(p$)return f$;p$=1,f$.min=function(n,r){let i,o=r?.in;return n.forEach((n=>{o||"object"!=typeof n||(o=e.constructFrom.bind(null,n));const r=(0,t.toDate)(n,o);(!i||i>r||isNaN(+r))&&(i=r)})),(0,e.constructFrom)(o,i||NaN)};var e=Nb(),t=qb();return f$}function v$(){if(m$)return c$;m$=1,c$.clamp=function(r,i,o){const[a,s,d]=(0,e.normalizeDates)(o?.in,r,i.start,i.end);return(0,n.min)([(0,t.max)([a,s],o),d],o)};var e=Sw(),t=l$(),n=h$();return c$}var g$,y$={};function b$(){if(g$)return y$;g$=1,y$.closestIndexTo=function(t,n){const r=+(0,e.toDate)(t);if(isNaN(r))return NaN;let i,o;return n.forEach(((t,n)=>{const a=(0,e.toDate)(t);if(isNaN(+a))return i=NaN,void(o=NaN);const s=Math.abs(r-+a);(null==i||s<o)&&(i=n,o=s)})),i};var e=qb();return y$}var w$,$$={};function I$(){if(w$)return $$;w$=1,$$.closestTo=function(r,i,o){const[a,...s]=(0,e.normalizeDates)(o?.in,r,...i),d=(0,t.closestIndexTo)(a,s);return"number"==typeof d&&isNaN(d)?(0,n.constructFrom)(a,NaN):void 0!==d?s[d]:void 0};var e=Sw(),t=b$(),n=Nb();return $$}var k$,x$={};function E$(){if(k$)return x$;k$=1,x$.compareAsc=function(t,n){const r=+(0,e.toDate)(t)-+(0,e.toDate)(n);return r<0?-1:r>0?1:r};var e=qb();return x$}var A$,T$={};function O$(){if(A$)return T$;A$=1,T$.compareDesc=function(t,n){const r=+(0,e.toDate)(t)-+(0,e.toDate)(n);return r>0?-1:r<0?1:r};var e=qb();return T$}var _$,D$={};function S$(){if(_$)return D$;_$=1,D$.constructNow=function(t){return(0,e.constructFrom)(t,Date.now())};var e=Nb();return D$}var M$,P$={};function j$(){if(M$)return P$;M$=1,P$.daysToWeeks=function(t){const n=Math.trunc(t/e.daysInWeek);return 0===n?0:n};var e=Cb();return P$}var C$,N$={},R$={};function U$(){if(C$)return R$;C$=1,R$.isSameDay=function(n,r,i){const[o,a]=(0,e.normalizeDates)(i?.in,n,r);return+(0,t.startOfDay)(o)==+(0,t.startOfDay)(a)};var e=Sw(),t=Cw();return R$}var L$,q$,G$,z$={},F$={};function B$(){return L$||(L$=1,F$.isDate=function(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}),F$}function W$(){if(q$)return z$;q$=1,z$.isValid=function(n){return!(!(0,e.isDate)(n)&&"number"!=typeof n||isNaN(+(0,t.toDate)(n)))};var e=B$(),t=qb();return z$}function Z$(){if(G$)return N$;G$=1,N$.differenceInBusinessDays=function(a,s,d){const[c,u]=(0,e.normalizeDates)(d?.in,a,s);if(!(0,i.isValid)(c)||!(0,i.isValid)(u))return NaN;const l=(0,n.differenceInCalendarDays)(c,u),p=l<0?-1:1,m=Math.trunc(l/7);let f=5*m,h=(0,t.addDays)(u,7*m);for(;!(0,r.isSameDay)(c,h);)f+=(0,o.isWeekend)(h,d)?0:p,h=(0,t.addDays)(h,p);return 0===f?0:f};var e=Sw(),t=Gb(),n=Nw(),r=U$(),i=W$(),o=rw();return N$}var Y$,V$={};function H$(){if(Y$)return V$;Y$=1,V$.differenceInCalendarISOWeekYears=function(n,r,i){const[o,a]=(0,e.normalizeDates)(i?.in,n,r);return(0,t.getISOWeekYear)(o,i)-(0,t.getISOWeekYear)(a,i)};var e=Sw(),t=kw();return V$}var K$,J$={};function Q$(){if(K$)return J$;K$=1,J$.differenceInCalendarISOWeeks=function(i,o,a){const[s,d]=(0,t.normalizeDates)(a?.in,i,o),c=(0,r.startOfISOWeek)(s),u=(0,r.startOfISOWeek)(d),l=+c-(0,e.getTimezoneOffsetInMilliseconds)(c),p=+u-(0,e.getTimezoneOffsetInMilliseconds)(u);return Math.round((l-p)/n.millisecondsInWeek)};var e=Ow(),t=Sw(),n=Cb(),r=Iw();return J$}var X$,eI={};function tI(){if(X$)return eI;X$=1,eI.differenceInCalendarMonths=function(t,n,r){const[i,o]=(0,e.normalizeDates)(r?.in,t,n);return 12*(i.getFullYear()-o.getFullYear())+(i.getMonth()-o.getMonth())};var e=Sw();return eI}var nI,rI,iI={},oI={};function aI(){if(nI)return oI;nI=1,oI.getQuarter=function(t,n){const r=(0,e.toDate)(t,n?.in);return Math.trunc(r.getMonth()/3)+1};var e=qb();return oI}function sI(){if(rI)return iI;rI=1,iI.differenceInCalendarQuarters=function(n,r,i){const[o,a]=(0,e.normalizeDates)(i?.in,n,r);return 4*(o.getFullYear()-a.getFullYear())+((0,t.getQuarter)(o)-(0,t.getQuarter)(a))};var e=Sw(),t=aI();return iI}var dI,cI={};function uI(){if(dI)return cI;dI=1,cI.differenceInCalendarWeeks=function(i,o,a){const[s,d]=(0,t.normalizeDates)(a?.in,i,o),c=(0,r.startOfWeek)(s,a),u=(0,r.startOfWeek)(d,a),l=+c-(0,e.getTimezoneOffsetInMilliseconds)(c),p=+u-(0,e.getTimezoneOffsetInMilliseconds)(u);return Math.round((l-p)/n.millisecondsInWeek)};var e=Ow(),t=Sw(),n=Cb(),r=$w();return cI}var lI,pI={};function mI(){if(lI)return pI;lI=1,pI.differenceInCalendarYears=function(t,n,r){const[i,o]=(0,e.normalizeDates)(r?.in,t,n);return i.getFullYear()-o.getFullYear()};var e=Sw();return pI}var fI,hI={};function vI(){if(fI)return hI;fI=1,hI.differenceInDays=function(r,i,o){const[a,s]=(0,e.normalizeDates)(o?.in,r,i),d=n(a,s),c=Math.abs((0,t.differenceInCalendarDays)(a,s));a.setDate(a.getDate()-d*c);const u=d*(c-Number(n(a,s)===-d));return 0===u?0:u};var e=Sw(),t=Nw();function n(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}return hI}var gI,yI,bI={},wI={};function $I(){return gI||(gI=1,wI.getRoundingMethod=function(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}),wI}function II(){if(yI)return bI;yI=1,bI.differenceInHours=function(r,i,o){const[a,s]=(0,t.normalizeDates)(o?.in,r,i),d=(+a-+s)/n.millisecondsInHour;return(0,e.getRoundingMethod)(o?.roundingMethod)(d)};var e=$I(),t=Sw(),n=Cb();return bI}var kI,xI,EI={},AI={};function TI(){if(kI)return AI;kI=1,AI.subISOWeekYears=function(t,n,r){return(0,e.addISOWeekYears)(t,-n,r)};var e=Fw();return AI}function OI(){if(xI)return EI;xI=1,EI.differenceInISOWeekYears=function(i,o,a){const[s,d]=(0,e.normalizeDates)(a?.in,i,o),c=(0,t.compareAsc)(s,d),u=Math.abs((0,n.differenceInCalendarISOWeekYears)(s,d,a)),l=(0,r.subISOWeekYears)(s,c*u,a),p=c*(u-Number((0,t.compareAsc)(l,d)===-c));return 0===p?0:p};var e=Sw(),t=E$(),n=H$(),r=TI();return EI}var _I,DI={};function SI(){if(_I)return DI;_I=1,DI.differenceInMilliseconds=function(t,n){return+(0,e.toDate)(t)-+(0,e.toDate)(n)};var e=qb();return DI}var MI,PI={};function jI(){if(MI)return PI;MI=1,PI.differenceInMinutes=function(r,i,o){const a=(0,n.differenceInMilliseconds)(r,i)/t.millisecondsInMinute;return(0,e.getRoundingMethod)(o?.roundingMethod)(a)};var e=$I(),t=Cb(),n=SI();return PI}var CI,NI={},RI={},UI={};function LI(){if(CI)return UI;CI=1,UI.endOfDay=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setHours(23,59,59,999),r};var e=qb();return UI}var qI,GI,zI,FI={};function BI(){if(qI)return FI;qI=1,FI.endOfMonth=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getMonth();return r.setFullYear(r.getFullYear(),i+1,0),r.setHours(23,59,59,999),r};var e=qb();return FI}function WI(){if(GI)return RI;GI=1,RI.isLastDayOfMonth=function(r,i){const o=(0,n.toDate)(r,i?.in);return+(0,e.endOfDay)(o,i)==+(0,t.endOfMonth)(o,i)};var e=LI(),t=BI(),n=qb();return RI}function ZI(){if(zI)return NI;zI=1,NI.differenceInMonths=function(i,o,a){const[s,d,c]=(0,e.normalizeDates)(a?.in,i,i,o),u=(0,t.compareAsc)(d,c),l=Math.abs((0,n.differenceInCalendarMonths)(d,c));if(l<1)return 0;1===d.getMonth()&&d.getDate()>27&&d.setDate(30),d.setMonth(d.getMonth()-u*l);let p=(0,t.compareAsc)(d,c)===-u;(0,r.isLastDayOfMonth)(s)&&1===l&&1===(0,t.compareAsc)(s,c)&&(p=!1);const m=u*(l-+p);return 0===m?0:m};var e=Sw(),t=E$(),n=tI(),r=WI();return NI}var YI,VI={};function HI(){if(YI)return VI;YI=1,VI.differenceInQuarters=function(n,r,i){const o=(0,t.differenceInMonths)(n,r,i)/3;return(0,e.getRoundingMethod)(i?.roundingMethod)(o)};var e=$I(),t=ZI();return VI}var KI,JI={};function QI(){if(KI)return JI;KI=1,JI.differenceInSeconds=function(n,r,i){const o=(0,t.differenceInMilliseconds)(n,r)/1e3;return(0,e.getRoundingMethod)(i?.roundingMethod)(o)};var e=$I(),t=SI();return JI}var XI,ek={};function tk(){if(XI)return ek;XI=1,ek.differenceInWeeks=function(n,r,i){const o=(0,t.differenceInDays)(n,r,i)/7;return(0,e.getRoundingMethod)(i?.roundingMethod)(o)};var e=$I(),t=vI();return ek}var nk,rk={};function ik(){if(nk)return rk;nk=1,rk.differenceInYears=function(r,i,o){const[a,s]=(0,e.normalizeDates)(o?.in,r,i),d=(0,t.compareAsc)(a,s),c=Math.abs((0,n.differenceInCalendarYears)(a,s));a.setFullYear(1584),s.setFullYear(1584);const u=d*(c-+((0,t.compareAsc)(a,s)===-d));return 0===u?0:u};var e=Sw(),t=E$(),n=mI();return rk}var ok,ak,sk={},dk={};function ck(){if(ok)return dk;ok=1,dk.normalizeInterval=function(t,n){const[r,i]=(0,e.normalizeDates)(t,n.start,n.end);return{start:r,end:i}};var e=Sw();return dk}function uk(){if(ak)return sk;ak=1,sk.eachDayOfInterval=function(n,r){const{start:i,end:o}=(0,e.normalizeInterval)(r?.in,n);let a=+i>+o;const s=a?+i:+o,d=a?o:i;d.setHours(0,0,0,0);let c=r?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);const u=[];for(;+d<=s;)u.push((0,t.constructFrom)(i,d)),d.setDate(d.getDate()+c),d.setHours(0,0,0,0);return a?u.reverse():u};var e=ck(),t=Nb();return sk}var lk,pk={};function mk(){if(lk)return pk;lk=1,pk.eachHourOfInterval=function(n,r){const{start:i,end:o}=(0,e.normalizeInterval)(r?.in,n);let a=+i>+o;const s=a?+i:+o,d=a?o:i;d.setMinutes(0,0,0);let c=r?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);const u=[];for(;+d<=s;)u.push((0,t.constructFrom)(i,d)),d.setHours(d.getHours()+c);return a?u.reverse():u};var e=ck(),t=Nb();return pk}var fk,hk={};function vk(){if(fk)return hk;fk=1,hk.eachMinuteOfInterval=function(r,i){const{start:o,end:a}=(0,e.normalizeInterval)(i?.in,r);o.setSeconds(0,0);let s=+o>+a;const d=s?+o:+a;let c=s?a:o,u=i?.step??1;if(!u)return[];u<0&&(u=-u,s=!s);const l=[];for(;+c<=d;)l.push((0,n.constructFrom)(o,c)),c=(0,t.addMinutes)(c,u);return s?l.reverse():l};var e=ck(),t=Zw(),n=Nb();return hk}var gk,yk={};function bk(){if(gk)return yk;gk=1,yk.eachMonthOfInterval=function(n,r){const{start:i,end:o}=(0,e.normalizeInterval)(r?.in,n);let a=+i>+o;const s=a?+i:+o,d=a?o:i;d.setHours(0,0,0,0),d.setDate(1);let c=r?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);const u=[];for(;+d<=s;)u.push((0,t.constructFrom)(i,d)),d.setMonth(d.getMonth()+c);return a?u.reverse():u};var e=ck(),t=Nb();return yk}var wk,$k,Ik={},kk={};function xk(){if(wk)return kk;wk=1,kk.startOfQuarter=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getMonth();return r.setMonth(i-i%3,1),r.setHours(0,0,0,0),r};var e=qb();return kk}function Ek(){if($k)return Ik;$k=1,Ik.eachQuarterOfInterval=function(i,o){const{start:a,end:s}=(0,e.normalizeInterval)(o?.in,i);let d=+a>+s;const c=d?+(0,r.startOfQuarter)(a):+(0,r.startOfQuarter)(s);let u=(0,r.startOfQuarter)(d?s:a),l=o?.step??1;if(!l)return[];l<0&&(l=-l,d=!d);const p=[];for(;+u<=c;)p.push((0,n.constructFrom)(a,u)),u=(0,t.addQuarters)(u,l);return d?p.reverse():p};var e=ck(),t=Hw(),n=Nb(),r=xk();return Ik}var Ak,Tk={};function Ok(){if(Ak)return Tk;Ak=1,Tk.eachWeekOfInterval=function(i,o){const{start:a,end:s}=(0,e.normalizeInterval)(o?.in,i);let d=+a>+s;const c=(0,r.startOfWeek)(d?s:a,o),u=(0,r.startOfWeek)(d?a:s,o);c.setHours(15),u.setHours(15);const l=+u.getTime();let p=c,m=o?.step??1;if(!m)return[];m<0&&(m=-m,d=!d);const f=[];for(;+p<=l;)p.setHours(0),f.push((0,n.constructFrom)(a,p)),p=(0,t.addWeeks)(p,m),p.setHours(15);return d?f.reverse():f};var e=ck(),t=t$(),n=Nb(),r=$w();return Tk}var _k,Dk={};function Sk(){if(_k)return Dk;_k=1,Dk.eachWeekendOfInterval=function(i,o){const{start:a,end:s}=(0,e.normalizeInterval)(o?.in,i),d=(0,n.eachDayOfInterval)({start:a,end:s},o),c=[];let u=0;for(;u<d.length;){const e=d[u++];(0,r.isWeekend)(e)&&c.push((0,t.constructFrom)(a,e))}return c};var e=ck(),t=Nb(),n=uk(),r=rw();return Dk}var Mk,Pk,jk={},Ck={};function Nk(){if(Mk)return Ck;Mk=1,Ck.startOfMonth=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setDate(1),r.setHours(0,0,0,0),r};var e=qb();return Ck}function Rk(){if(Pk)return jk;Pk=1,jk.eachWeekendOfMonth=function(r,i){const o=(0,n.startOfMonth)(r,i),a=(0,t.endOfMonth)(r,i);return(0,e.eachWeekendOfInterval)({start:o,end:a},i)};var e=Sk(),t=BI(),n=Nk();return jk}var Uk,Lk={},qk={};function Gk(){if(Uk)return qk;Uk=1,qk.endOfYear=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getFullYear();return r.setFullYear(i+1,0,0),r.setHours(23,59,59,999),r};var e=qb();return qk}var zk,Fk,Bk={};function Wk(){if(zk)return Bk;zk=1,Bk.startOfYear=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r};var e=qb();return Bk}function Zk(){if(Fk)return Lk;Fk=1,Lk.eachWeekendOfYear=function(r,i){const o=(0,n.startOfYear)(r,i),a=(0,t.endOfYear)(r,i);return(0,e.eachWeekendOfInterval)({start:o,end:a},i)};var e=Sk(),t=Gk(),n=Wk();return Lk}var Yk,Vk={};function Hk(){if(Yk)return Vk;Yk=1,Vk.eachYearOfInterval=function(n,r){const{start:i,end:o}=(0,e.normalizeInterval)(r?.in,n);let a=+i>+o;const s=a?+i:+o,d=a?o:i;d.setHours(0,0,0,0),d.setMonth(0,1);let c=r?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);const u=[];for(;+d<=s;)u.push((0,t.constructFrom)(i,d)),d.setFullYear(d.getFullYear()+c);return a?u.reverse():u};var e=ck(),t=Nb();return Vk}var Kk,Jk={};function Qk(){if(Kk)return Jk;Kk=1,Jk.endOfDecade=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getFullYear(),o=9+10*Math.floor(i/10);return r.setFullYear(o,11,31),r.setHours(23,59,59,999),r};var e=qb();return Jk}var Xk,ex={};function tx(){if(Xk)return ex;Xk=1,ex.endOfHour=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setMinutes(59,59,999),r};var e=qb();return ex}var nx,rx,ix={},ox={};function ax(){if(nx)return ox;nx=1,ox.endOfWeek=function(n,r){const i=(0,e.getDefaultOptions)(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,a=(0,t.toDate)(n,r?.in),s=a.getDay(),d=6+(s<o?-7:0)-(s-o);return a.setDate(a.getDate()+d),a.setHours(23,59,59,999),a};var e=ww(),t=qb();return ox}function sx(){if(rx)return ix;rx=1,ix.endOfISOWeek=function(t,n){return(0,e.endOfWeek)(t,{...n,weekStartsOn:1})};var e=ax();return ix}var dx,cx={};function ux(){if(dx)return cx;dx=1,cx.endOfISOWeekYear=function(r,i){const o=(0,t.getISOWeekYear)(r,i),a=(0,e.constructFrom)(i?.in||r,0);a.setFullYear(o+1,0,4),a.setHours(0,0,0,0);const s=(0,n.startOfISOWeek)(a,i);return s.setMilliseconds(s.getMilliseconds()-1),s};var e=Nb(),t=kw(),n=Iw();return cx}var lx,px={};function mx(){if(lx)return px;lx=1,px.endOfMinute=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setSeconds(59,999),r};var e=qb();return px}var fx,hx={};function vx(){if(fx)return hx;fx=1,hx.endOfQuarter=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getMonth();return r.setMonth(i-i%3+3,0),r.setHours(23,59,59,999),r};var e=qb();return hx}var gx,yx={};function bx(){if(gx)return yx;gx=1,yx.endOfSecond=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setMilliseconds(999),r};var e=qb();return yx}var wx,$x={};function Ix(){if(wx)return $x;wx=1,$x.endOfToday=function(t){return(0,e.endOfDay)(Date.now(),t)};var e=LI();return $x}var kx,xx={};function Ex(){if(kx)return xx;kx=1,xx.endOfTomorrow=function(t){const n=(0,e.constructNow)(t?.in),r=n.getFullYear(),i=n.getMonth(),o=n.getDate(),a=(0,e.constructNow)(t?.in);return a.setFullYear(r,i,o+1),a.setHours(23,59,59,999),t?.in?t.in(a):a};var e=S$();return xx}var Ax,Tx={};function Ox(){if(Ax)return Tx;Ax=1,Tx.endOfYesterday=function(n){const r=(0,t.constructNow)(n?.in),i=(0,e.constructFrom)(n?.in,0);return i.setFullYear(r.getFullYear(),r.getMonth(),r.getDate()-1),i.setHours(23,59,59,999),i};var e=Nb(),t=S$();return Tx}var _x,Dx={},Sx={},Mx={},Px={};function jx(){if(_x)return Px;_x=1,Px.formatDistance=void 0;const e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};return Px.formatDistance=(t,n,r)=>{let i;const o=e[t];return i="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i},Px}var Cx,Nx,Rx={},Ux={};function Lx(){return Cx||(Cx=1,Ux.buildFormatLongFn=function(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}),Ux}function qx(){if(Nx)return Rx;Nx=1,Rx.formatLong=void 0;var e=Lx();return Rx.formatLong={date:(0,e.buildFormatLongFn)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,e.buildFormatLongFn)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,e.buildFormatLongFn)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Rx}var Gx,zx={};function Fx(){if(Gx)return zx;Gx=1,zx.formatRelative=void 0;const e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};return zx.formatRelative=t=>e[t],zx}var Bx,Wx,Zx={},Yx={};function Vx(){return Bx||(Bx=1,Yx.buildLocalizeFn=function(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}),Yx}function Hx(){if(Wx)return Zx;Wx=1,Zx.localize=void 0;var e=Vx();return Zx.localize={ordinalNumber:e=>{const t=Number(e),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},era:(0,e.buildLocalizeFn)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,e.buildLocalizeFn)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,e.buildLocalizeFn)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,e.buildLocalizeFn)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,e.buildLocalizeFn)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},Zx}var Kx,Jx={},Qx={};function Xx(){return Kx||(Kx=1,Qx.buildMatchFn=function(e){return(t,n={})=>{const r=n.width,i=t.match(r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth]);if(!i)return null;const o=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?function(e){for(let t=0;t<e.length;t++)if(e[t].test(o))return t}(a):function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(o))return t}(a);let d;return d=e.valueCallback?e.valueCallback(s):s,d=n.valueCallback?n.valueCallback(d):d,{value:d,rest:t.slice(o.length)}}}),Qx}var eE,tE,nE,rE,iE={};function oE(){return eE||(eE=1,iE.buildMatchPatternFn=function(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];return a=n.valueCallback?n.valueCallback(a):a,{value:a,rest:t.slice(i.length)}}}),iE}function aE(){if(tE)return Jx;tE=1,Jx.match=void 0;var e=Xx();return Jx.match={ordinalNumber:(0,oE().buildMatchPatternFn)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,e.buildMatchFn)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,e.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,e.buildMatchFn)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,e.buildMatchFn)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,e.buildMatchFn)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},Jx}function sE(){return nE||(nE=1,Mx.enUS=void 0,Mx.enUS={code:"en-US",formatDistance:jx().formatDistance,formatLong:qx().formatLong,formatRelative:Fx().formatRelative,localize:Hx().localize,match:aE().match,options:{weekStartsOn:0,firstWeekContainsDate:1}}),Mx}function dE(){return rE||(rE=1,function(){Object.defineProperty(Sx,"defaultLocale",{enumerable:!0,get:function(){return e.enUS}});var e=sE()}()),Sx}var cE,uE={},lE={};function pE(){if(cE)return lE;cE=1,lE.getDayOfYear=function(r,i){const o=(0,n.toDate)(r,i?.in);return(0,e.differenceInCalendarDays)(o,(0,t.startOfYear)(o))+1};var e=Nw(),t=Wk(),n=qb();return lE}var mE,fE={};function hE(){if(mE)return fE;mE=1,fE.getISOWeek=function(i,o){const a=(0,r.toDate)(i,o?.in),s=+(0,t.startOfISOWeek)(a)-+(0,n.startOfISOWeekYear)(a);return Math.round(s/e.millisecondsInWeek)+1};var e=Cb(),t=Iw(),n=Gw(),r=qb();return fE}var vE,gE,yE,bE={},wE={},$E={};function IE(){if(vE)return $E;vE=1,$E.getWeekYear=function(i,o){const a=(0,r.toDate)(i,o?.in),s=a.getFullYear(),d=(0,e.getDefaultOptions)(),c=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,u=(0,t.constructFrom)(o?.in||i,0);u.setFullYear(s+1,0,c),u.setHours(0,0,0,0);const l=(0,n.startOfWeek)(u,o),p=(0,t.constructFrom)(o?.in||i,0);p.setFullYear(s,0,c),p.setHours(0,0,0,0);const m=(0,n.startOfWeek)(p,o);return+a>=+l?s+1:+a>=+m?s:s-1};var e=ww(),t=Nb(),n=$w(),r=qb();return $E}function kE(){if(gE)return wE;gE=1,wE.startOfWeekYear=function(i,o){const a=(0,e.getDefaultOptions)(),s=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,d=(0,n.getWeekYear)(i,o),c=(0,t.constructFrom)(o?.in||i,0);return c.setFullYear(d,0,s),c.setHours(0,0,0,0),(0,r.startOfWeek)(c,o)};var e=ww(),t=Nb(),n=IE(),r=$w();return wE}function xE(){if(yE)return bE;yE=1,bE.getWeek=function(i,o){const a=(0,r.toDate)(i,o?.in),s=+(0,t.startOfWeek)(a,o)-+(0,n.startOfWeekYear)(a,o);return Math.round(s/e.millisecondsInWeek)+1};var e=Cb(),t=$w(),n=kE(),r=qb();return bE}var EE,AE={};function TE(){return EE||(EE=1,AE.addLeadingZeros=function(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}),AE}var OE,_E,DE={};function SE(){if(OE)return DE;OE=1,DE.lightFormatters=void 0;var e=TE();return DE.lightFormatters={y(t,n){const r=t.getFullYear(),i=r>0?r:1-r;return(0,e.addLeadingZeros)("yy"===n?i%100:i,n.length)},M(t,n){const r=t.getMonth();return"M"===n?String(r+1):(0,e.addLeadingZeros)(r+1,2)},d:(t,n)=>(0,e.addLeadingZeros)(t.getDate(),n.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(t,n)=>(0,e.addLeadingZeros)(t.getHours()%12||12,n.length),H:(t,n)=>(0,e.addLeadingZeros)(t.getHours(),n.length),m:(t,n)=>(0,e.addLeadingZeros)(t.getMinutes(),n.length),s:(t,n)=>(0,e.addLeadingZeros)(t.getSeconds(),n.length),S(t,n){const r=n.length,i=t.getMilliseconds(),o=Math.trunc(i*Math.pow(10,r-3));return(0,e.addLeadingZeros)(o,n.length)}},DE}function ME(){if(_E)return uE;_E=1,uE.formatters=void 0;var e=pE(),t=hE(),n=kw(),r=xE(),i=IE(),o=TE(),a=SE();function s(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return 0===a?n+String(i):n+String(i)+t+(0,o.addLeadingZeros)(a,2)}function d(e,t){return e%60==0?(e>0?"-":"+")+(0,o.addLeadingZeros)(Math.abs(e)/60,2):c(e,t)}function c(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+(0,o.addLeadingZeros)(Math.trunc(r/60),2)+t+(0,o.addLeadingZeros)(r%60,2)}return uE.formatters={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return a.lightFormatters.y(e,t)},Y:function(e,t,n,r){const a=(0,i.getWeekYear)(e,r),s=a>0?a:1-a;return"YY"===t?(0,o.addLeadingZeros)(s%100,2):"Yo"===t?n.ordinalNumber(s,{unit:"year"}):(0,o.addLeadingZeros)(s,t.length)},R:function(e,t){const r=(0,n.getISOWeekYear)(e);return(0,o.addLeadingZeros)(r,t.length)},u:function(e,t){const n=e.getFullYear();return(0,o.addLeadingZeros)(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,o.addLeadingZeros)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,o.addLeadingZeros)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return a.lightFormatters.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return(0,o.addLeadingZeros)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){const a=(0,r.getWeek)(e,i);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):(0,o.addLeadingZeros)(a,t.length)},I:function(e,n,r){const i=(0,t.getISOWeek)(e);return"Io"===n?r.ordinalNumber(i,{unit:"week"}):(0,o.addLeadingZeros)(i,n.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):a.lightFormatters.d(e,t)},D:function(t,n,r){const i=(0,e.getDayOfYear)(t);return"Do"===n?r.ordinalNumber(i,{unit:"dayOfYear"}):(0,o.addLeadingZeros)(i,n.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return(0,o.addLeadingZeros)(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return(0,o.addLeadingZeros)(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return(0,o.addLeadingZeros)(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(i=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(i=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return a.lightFormatters.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):a.lightFormatters.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,o.addLeadingZeros)(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,o.addLeadingZeros)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):a.lightFormatters.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):a.lightFormatters.s(e,t)},S:function(e,t){return a.lightFormatters.S(e,t)},X:function(e,t){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return d(n);case"XXXX":case"XX":return c(n);default:return c(n,":")}},x:function(e,t){const n=e.getTimezoneOffset();switch(t){case"x":return d(n);case"xxxx":case"xx":return c(n);default:return c(n,":")}},O:function(e,t){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+s(n,":");default:return"GMT"+c(n,":")}},z:function(e,t){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+s(n,":");default:return"GMT"+c(n,":")}},t:function(e,t){const n=Math.trunc(+e/1e3);return(0,o.addLeadingZeros)(n,t.length)},T:function(e,t){return(0,o.addLeadingZeros)(+e,t.length)}},uE}var PE,jE={};function CE(){if(PE)return jE;PE=1,jE.longFormatters=void 0;const e=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},t=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};return jE.longFormatters={p:t,P:(n,r)=>{const i=n.match(/(P+)(p+)?/)||[],o=i[1],a=i[2];if(!a)return e(n,r);let s;switch(o){case"P":s=r.dateTime({width:"short"});break;case"PP":s=r.dateTime({width:"medium"});break;case"PPP":s=r.dateTime({width:"long"});break;default:s=r.dateTime({width:"full"})}return s.replace("{{date}}",e(o,r)).replace("{{time}}",t(a,r))}},jE}var NE,RE,UE={};function LE(){if(NE)return UE;NE=1,UE.isProtectedDayOfYearToken=function(t){return e.test(t)},UE.isProtectedWeekYearToken=function(e){return t.test(e)},UE.warnOrThrowProtectedError=function(e,t,r){const i=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(i),n.includes(e))throw new RangeError(i)};const e=/^D+$/,t=/^Y+$/,n=["D","DD","YY","YYYY"];return UE}function qE(){return RE||(RE=1,function(e){e.format=e.formatDate=function(e,u,l){const f=(0,n.getDefaultOptions)(),h=l?.locale??f.locale??t.defaultLocale,v=l?.firstWeekContainsDate??l?.locale?.options?.firstWeekContainsDate??f.firstWeekContainsDate??f.locale?.options?.firstWeekContainsDate??1,g=l?.weekStartsOn??l?.locale?.options?.weekStartsOn??f.weekStartsOn??f.locale?.options?.weekStartsOn??0,y=(0,s.toDate)(e,l?.in);if(!(0,a.isValid)(y))throw new RangeError("Invalid time value");let b=u.match(c).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,i.longFormatters[t])(e,h.formatLong):e})).join("").match(d).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:m(e)};if(r.formatters[t])return{isToken:!0,value:e};if(t.match(p))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));h.localize.preprocessor&&(b=h.localize.preprocessor(y,b));const w={firstWeekContainsDate:v,weekStartsOn:g,locale:h};return b.map((t=>{if(!t.isToken)return t.value;const n=t.value;return(!l?.useAdditionalWeekYearTokens&&(0,o.isProtectedWeekYearToken)(n)||!l?.useAdditionalDayOfYearTokens&&(0,o.isProtectedDayOfYearToken)(n))&&(0,o.warnOrThrowProtectedError)(n,u,String(e)),(0,r.formatters[n[0]])(y,n,h.localize,w)})).join("")},Object.defineProperty(e,"formatters",{enumerable:!0,get:function(){return r.formatters}}),Object.defineProperty(e,"longFormatters",{enumerable:!0,get:function(){return i.longFormatters}});var t=dE(),n=ww(),r=ME(),i=CE(),o=LE(),a=W$(),s=qb();const d=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,c=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,u=/^'([^]*?)'?$/,l=/''/g,p=/[a-zA-Z]/;function m(e){const t=e.match(u);return t?t[1].replace(l,"'"):e}}(Dx)),Dx}var GE,zE={};function FE(){if(GE)return zE;GE=1,zE.formatDistance=function(d,c,u){const l=(0,t.getDefaultOptions)(),p=u?.locale??l.locale??e.defaultLocale,m=(0,i.compareAsc)(d,c);if(isNaN(m))throw new RangeError("Invalid time value");const f=Object.assign({},u,{addSuffix:u?.addSuffix,comparison:m}),[h,v]=(0,r.normalizeDates)(u?.in,...m>0?[c,d]:[d,c]),g=(0,s.differenceInSeconds)(v,h),y=((0,n.getTimezoneOffsetInMilliseconds)(v)-(0,n.getTimezoneOffsetInMilliseconds)(h))/1e3,b=Math.round((g-y)/60);let w;if(b<2)return u?.includeSeconds?g<5?p.formatDistance("lessThanXSeconds",5,f):g<10?p.formatDistance("lessThanXSeconds",10,f):g<20?p.formatDistance("lessThanXSeconds",20,f):g<40?p.formatDistance("halfAMinute",0,f):p.formatDistance(g<60?"lessThanXMinutes":"xMinutes",1,f):0===b?p.formatDistance("lessThanXMinutes",1,f):p.formatDistance("xMinutes",b,f);if(b<45)return p.formatDistance("xMinutes",b,f);if(b<90)return p.formatDistance("aboutXHours",1,f);if(b<o.minutesInDay){const e=Math.round(b/60);return p.formatDistance("aboutXHours",e,f)}if(b<2520)return p.formatDistance("xDays",1,f);if(b<o.minutesInMonth){const e=Math.round(b/o.minutesInDay);return p.formatDistance("xDays",e,f)}if(b<2*o.minutesInMonth)return w=Math.round(b/o.minutesInMonth),p.formatDistance("aboutXMonths",w,f);if(w=(0,a.differenceInMonths)(v,h),w<12){const e=Math.round(b/o.minutesInMonth);return p.formatDistance("xMonths",e,f)}{const e=w%12,t=Math.trunc(w/12);return e<3?p.formatDistance("aboutXYears",t,f):e<9?p.formatDistance("overXYears",t,f):p.formatDistance("almostXYears",t+1,f)}};var e=dE(),t=ww(),n=Ow(),r=Sw(),i=E$(),o=Cb(),a=ZI(),s=QI();return zE}var BE,WE={};function ZE(){if(BE)return WE;BE=1,WE.formatDistanceStrict=function(s,d,c){const u=(0,t.getDefaultOptions)(),l=c?.locale??u.locale??e.defaultLocale,p=(0,o.compareAsc)(s,d);if(isNaN(p))throw new RangeError("Invalid time value");const m=Object.assign({},c,{addSuffix:c?.addSuffix,comparison:p}),[f,h]=(0,i.normalizeDates)(c?.in,...p>0?[d,s]:[s,d]),v=(0,n.getRoundingMethod)(c?.roundingMethod??"round"),g=h.getTime()-f.getTime(),y=g/a.millisecondsInMinute,b=(g-((0,r.getTimezoneOffsetInMilliseconds)(h)-(0,r.getTimezoneOffsetInMilliseconds)(f)))/a.millisecondsInMinute,w=c?.unit;let $;if($=w||(y<1?"second":y<60?"minute":y<a.minutesInDay?"hour":b<a.minutesInMonth?"day":b<a.minutesInYear?"month":"year"),"second"===$){const e=v(g/1e3);return l.formatDistance("xSeconds",e,m)}if("minute"===$){const e=v(y);return l.formatDistance("xMinutes",e,m)}if("hour"===$){const e=v(y/60);return l.formatDistance("xHours",e,m)}if("day"===$){const e=v(b/a.minutesInDay);return l.formatDistance("xDays",e,m)}if("month"===$){const e=v(b/a.minutesInMonth);return 12===e&&"month"!==w?l.formatDistance("xYears",1,m):l.formatDistance("xMonths",e,m)}{const e=v(b/a.minutesInYear);return l.formatDistance("xYears",e,m)}};var e=dE(),t=ww(),n=$I(),r=Ow(),i=Sw(),o=E$(),a=Cb();return WE}var YE,VE={};function HE(){if(YE)return VE;YE=1,VE.formatDistanceToNow=function(n,r){return(0,t.formatDistance)(n,(0,e.constructNow)(n),r)};var e=S$(),t=FE();return VE}var KE,JE={};function QE(){if(KE)return JE;KE=1,JE.formatDistanceToNowStrict=function(n,r){return(0,t.formatDistanceStrict)(n,(0,e.constructNow)(n),r)};var e=S$(),t=ZE();return JE}var XE,eA={};function tA(){if(XE)return eA;XE=1,eA.formatDuration=function(r,i){const o=(0,t.getDefaultOptions)(),a=i?.locale??o.locale??e.defaultLocale,s=i?.format??n,d=i?.zero??!1,c=i?.delimiter??" ";if(!a.formatDistance)return"";const u=s.reduce(((e,t)=>{const n=`x${t.replace(/(^.)/,(e=>e.toUpperCase()))}`,i=r[t];return void 0!==i&&(d||r[t])?e.concat(a.formatDistance(n,i)):e}),[]).join(c);return u};var e=dE(),t=ww();const n=["years","months","weeks","days","hours","minutes","seconds"];return eA}var nA,rA={};function iA(){if(nA)return rA;nA=1,rA.formatISO=function(n,r){const i=(0,t.toDate)(n,r?.in);if(isNaN(+i))throw new RangeError("Invalid time value");const o=r?.format??"extended",a=r?.representation??"complete";let s="",d="";const c="extended"===o?"-":"",u="extended"===o?":":"";if("time"!==a){const t=(0,e.addLeadingZeros)(i.getDate(),2),n=(0,e.addLeadingZeros)(i.getMonth()+1,2);s=`${(0,e.addLeadingZeros)(i.getFullYear(),4)}${c}${n}${c}${t}`}if("date"!==a){const t=i.getTimezoneOffset();if(0!==t){const n=Math.abs(t);d=`${t<0?"+":"-"}${(0,e.addLeadingZeros)(Math.trunc(n/60),2)}:${(0,e.addLeadingZeros)(n%60,2)}`}else d="Z";s=`${s}${""===s?"":"T"}${[(0,e.addLeadingZeros)(i.getHours(),2),(0,e.addLeadingZeros)(i.getMinutes(),2),(0,e.addLeadingZeros)(i.getSeconds(),2)].join(u)}${d}`}return s};var e=TE(),t=qb();return rA}var oA,aA={};function sA(){if(oA)return aA;oA=1,aA.formatISO9075=function(r,i){const o=(0,n.toDate)(r,i?.in);if(!(0,t.isValid)(o))throw new RangeError("Invalid time value");const a=i?.format??"extended",s=i?.representation??"complete";let d="";const c="extended"===a?"-":"",u="extended"===a?":":"";if("time"!==s){const t=(0,e.addLeadingZeros)(o.getDate(),2),n=(0,e.addLeadingZeros)(o.getMonth()+1,2);d=`${(0,e.addLeadingZeros)(o.getFullYear(),4)}${c}${n}${c}${t}`}return"date"!==s&&(d=`${d}${""===d?"":" "}${(0,e.addLeadingZeros)(o.getHours(),2)}${u}${(0,e.addLeadingZeros)(o.getMinutes(),2)}${u}${(0,e.addLeadingZeros)(o.getSeconds(),2)}`),d};var e=TE(),t=W$(),n=qb();return aA}var dA,cA={};function uA(){return dA||(dA=1,cA.formatISODuration=function(e){const{years:t=0,months:n=0,days:r=0,hours:i=0,minutes:o=0,seconds:a=0}=e;return`P${t}Y${n}M${r}DT${i}H${o}M${a}S`}),cA}var lA,pA={};function mA(){if(lA)return pA;lA=1,pA.formatRFC3339=function(r,i){const o=(0,n.toDate)(r,i?.in);if(!(0,t.isValid)(o))throw new RangeError("Invalid time value");const a=i?.fractionDigits??0,s=(0,e.addLeadingZeros)(o.getDate(),2),d=(0,e.addLeadingZeros)(o.getMonth()+1,2),c=o.getFullYear(),u=(0,e.addLeadingZeros)(o.getHours(),2),l=(0,e.addLeadingZeros)(o.getMinutes(),2),p=(0,e.addLeadingZeros)(o.getSeconds(),2);let m="";if(a>0){const t=o.getMilliseconds(),n=Math.trunc(t*Math.pow(10,a-3));m="."+(0,e.addLeadingZeros)(n,a)}let f="";const h=o.getTimezoneOffset();if(0!==h){const t=Math.abs(h);f=`${h<0?"+":"-"}${(0,e.addLeadingZeros)(Math.trunc(t/60),2)}:${(0,e.addLeadingZeros)(t%60,2)}`}else f="Z";return`${c}-${d}-${s}T${u}:${l}:${p}${m}${f}`};var e=TE(),t=W$(),n=qb();return pA}var fA,hA={};function vA(){if(fA)return hA;fA=1,hA.formatRFC7231=function(o){const a=(0,n.toDate)(o);if(!(0,t.isValid)(a))throw new RangeError("Invalid time value");return`${r[a.getUTCDay()]}, ${(0,e.addLeadingZeros)(a.getUTCDate(),2)} ${i[a.getUTCMonth()]} ${a.getUTCFullYear()} ${(0,e.addLeadingZeros)(a.getUTCHours(),2)}:${(0,e.addLeadingZeros)(a.getUTCMinutes(),2)}:${(0,e.addLeadingZeros)(a.getUTCSeconds(),2)} GMT`};var e=TE(),t=W$(),n=qb();const r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return hA}var gA,yA={};function bA(){if(gA)return yA;gA=1,yA.formatRelative=function(o,a,s){const[d,c]=(0,n.normalizeDates)(s?.in,o,a),u=(0,t.getDefaultOptions)(),l=s?.locale??u.locale??e.defaultLocale,p=s?.weekStartsOn??s?.locale?.options?.weekStartsOn??u.weekStartsOn??u.locale?.options?.weekStartsOn??0,m=(0,r.differenceInCalendarDays)(d,c);if(isNaN(m))throw new RangeError("Invalid time value");let f;f=m<-6?"other":m<-1?"lastWeek":m<0?"yesterday":m<1?"today":m<2?"tomorrow":m<7?"nextWeek":"other";const h=l.formatRelative(f,d,c,{locale:l,weekStartsOn:p});return(0,i.format)(d,h,{locale:l,weekStartsOn:p})};var e=dE(),t=ww(),n=Sw(),r=Nw(),i=qE();return yA}var wA,$A={};function IA(){if(wA)return $A;wA=1,$A.fromUnixTime=function(t,n){return(0,e.toDate)(1e3*t,n?.in)};var e=qb();return $A}var kA,xA={};function EA(){if(kA)return xA;kA=1,xA.getDate=function(t,n){return(0,e.toDate)(t,n?.in).getDate()};var e=qb();return xA}var AA,TA={};function OA(){if(AA)return TA;AA=1,TA.getDay=function(t,n){return(0,e.toDate)(t,n?.in).getDay()};var e=qb();return TA}var _A,DA={};function SA(){if(_A)return DA;_A=1,DA.getDaysInMonth=function(n,r){const i=(0,t.toDate)(n,r?.in),o=i.getFullYear(),a=i.getMonth(),s=(0,e.constructFrom)(i,0);return s.setFullYear(o,a+1,0),s.setHours(0,0,0,0),s.getDate()};var e=Nb(),t=qb();return DA}var MA,PA,jA={},CA={};function NA(){if(MA)return CA;MA=1,CA.isLeapYear=function(t,n){const r=(0,e.toDate)(t,n?.in).getFullYear();return r%400==0||r%4==0&&r%100!=0};var e=qb();return CA}function RA(){if(PA)return jA;PA=1,jA.getDaysInYear=function(n,r){const i=(0,t.toDate)(n,r?.in);return Number.isNaN(+i)?NaN:(0,e.isLeapYear)(i)?366:365};var e=NA(),t=qb();return jA}var UA,LA={};function qA(){if(UA)return LA;UA=1,LA.getDecade=function(t,n){const r=(0,e.toDate)(t,n?.in).getFullYear();return 10*Math.floor(r/10)};var e=qb();return LA}var GA,zA={};function FA(){if(GA)return zA;GA=1,zA.getDefaultOptions=function(){return Object.assign({},(0,e.getDefaultOptions)())};var e=ww();return zA}var BA,WA={};function ZA(){if(BA)return WA;BA=1,WA.getHours=function(t,n){return(0,e.toDate)(t,n?.in).getHours()};var e=qb();return WA}var YA,VA={};function HA(){if(YA)return VA;YA=1,VA.getISODay=function(t,n){const r=(0,e.toDate)(t,n?.in).getDay();return 0===r?7:r};var e=qb();return VA}var KA,JA={};function QA(){if(KA)return JA;KA=1,JA.getISOWeeksInYear=function(r,i){const o=(0,n.startOfISOWeekYear)(r,i),a=(0,n.startOfISOWeekYear)((0,e.addWeeks)(o,60));return Math.round((+a-+o)/t.millisecondsInWeek)};var e=t$(),t=Cb(),n=Gw();return JA}var XA,eT={};function tT(){if(XA)return eT;XA=1,eT.getMilliseconds=function(t){return(0,e.toDate)(t).getMilliseconds()};var e=qb();return eT}var nT,rT={};function iT(){if(nT)return rT;nT=1,rT.getMinutes=function(t,n){return(0,e.toDate)(t,n?.in).getMinutes()};var e=qb();return rT}var oT,aT={};function sT(){if(oT)return aT;oT=1,aT.getMonth=function(t,n){return(0,e.toDate)(t,n?.in).getMonth()};var e=qb();return aT}var dT,cT={};function uT(){if(dT)return cT;dT=1,cT.getOverlappingDaysInIntervals=function(r,i){const[o,a]=[+(0,n.toDate)(r.start),+(0,n.toDate)(r.end)].sort(((e,t)=>e-t)),[s,d]=[+(0,n.toDate)(i.start),+(0,n.toDate)(i.end)].sort(((e,t)=>e-t));if(!(o<d&&s<a))return 0;const c=s<o?o:s,u=c-(0,e.getTimezoneOffsetInMilliseconds)(c),l=d>a?a:d,p=l-(0,e.getTimezoneOffsetInMilliseconds)(l);return Math.ceil((p-u)/t.millisecondsInDay)};var e=Ow(),t=Cb(),n=qb();return cT}var lT,pT={};function mT(){if(lT)return pT;lT=1,pT.getSeconds=function(t){return(0,e.toDate)(t).getSeconds()};var e=qb();return pT}var fT,hT={};function vT(){if(fT)return hT;fT=1,hT.getTime=function(t){return+(0,e.toDate)(t)};var e=qb();return hT}var gT,yT={};function bT(){if(gT)return yT;gT=1,yT.getUnixTime=function(t){return Math.trunc(+(0,e.toDate)(t)/1e3)};var e=qb();return yT}var wT,$T={};function IT(){if(wT)return $T;wT=1,$T.getWeekOfMonth=function(o,a){const s=(0,e.getDefaultOptions)(),d=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,c=(0,t.getDate)((0,i.toDate)(o,a?.in));if(isNaN(c))return NaN;let u=d-(0,n.getDay)((0,r.startOfMonth)(o,a));return u<=0&&(u+=7),Math.ceil((c-u)/7)+1};var e=ww(),t=EA(),n=OA(),r=Nk(),i=qb();return $T}var kT,xT,ET={},AT={};function TT(){if(kT)return AT;kT=1,AT.lastDayOfMonth=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getMonth();return r.setFullYear(r.getFullYear(),i+1,0),r.setHours(0,0,0,0),(0,e.toDate)(r,n?.in)};var e=qb();return AT}function OT(){if(xT)return ET;xT=1,ET.getWeeksInMonth=function(i,o){const a=(0,r.toDate)(i,o?.in);return(0,e.differenceInCalendarWeeks)((0,t.lastDayOfMonth)(a,o),(0,n.startOfMonth)(a,o),o)+1};var e=uI(),t=TT(),n=Nk(),r=qb();return ET}var _T,DT={};function ST(){if(_T)return DT;_T=1,DT.getYear=function(t,n){return(0,e.toDate)(t,n?.in).getFullYear()};var e=qb();return DT}var MT,PT={};function jT(){if(MT)return PT;MT=1,PT.hoursToMilliseconds=function(t){return Math.trunc(t*e.millisecondsInHour)};var e=Cb();return PT}var CT,NT={};function RT(){if(CT)return NT;CT=1,NT.hoursToMinutes=function(t){return Math.trunc(t*e.minutesInHour)};var e=Cb();return NT}var UT,LT={};function qT(){if(UT)return LT;UT=1,LT.hoursToSeconds=function(t){return Math.trunc(t*e.secondsInHour)};var e=Cb();return LT}var GT,zT={};function FT(){if(GT)return zT;GT=1,zT.interval=function(t,n,r){const[i,o]=(0,e.normalizeDates)(r?.in,t,n);if(isNaN(+i))throw new TypeError("Start date is invalid");if(isNaN(+o))throw new TypeError("End date is invalid");if(r?.assertPositive&&+i>+o)throw new TypeError("End date must be after start date");return{start:i,end:o}};var e=Sw();return zT}var BT,WT={};function ZT(){if(BT)return WT;BT=1,WT.intervalToDuration=function(d,c){const{start:u,end:l}=(0,e.normalizeInterval)(c?.in,d),p={},m=(0,s.differenceInYears)(l,u);m&&(p.years=m);const f=(0,t.add)(u,{years:p.years}),h=(0,o.differenceInMonths)(l,f);h&&(p.months=h);const v=(0,t.add)(f,{months:p.months}),g=(0,n.differenceInDays)(l,v);g&&(p.days=g);const y=(0,t.add)(v,{days:p.days}),b=(0,r.differenceInHours)(l,y);b&&(p.hours=b);const w=(0,t.add)(y,{hours:p.hours}),$=(0,i.differenceInMinutes)(l,w);$&&(p.minutes=$);const I=(0,t.add)(w,{minutes:p.minutes}),k=(0,a.differenceInSeconds)(l,I);return k&&(p.seconds=k),p};var e=ck(),t=Zb(),n=vI(),r=II(),i=jI(),o=ZI(),a=QI(),s=ik();return WT}var YT,VT={};function HT(){if(YT)return VT;YT=1,VT.intlFormat=function(t,n,r){let i;var o;return void 0===(o=n)||"locale"in o?r=n:i=n,new Intl.DateTimeFormat(r?.locale,i).format((0,e.toDate)(t))};var e=qb();return VT}var KT,JT={};function QT(){if(KT)return JT;KT=1,JT.intlFormatDistance=function(u,l,p){let m,f=0;const[h,v]=(0,e.normalizeDates)(p?.in,u,l);if(p?.unit)m=p?.unit,"second"===m?f=(0,c.differenceInSeconds)(h,v):"minute"===m?f=(0,d.differenceInMinutes)(h,v):"hour"===m?f=(0,s.differenceInHours)(h,v):"day"===m?f=(0,n.differenceInCalendarDays)(h,v):"week"===m?f=(0,o.differenceInCalendarWeeks)(h,v):"month"===m?f=(0,r.differenceInCalendarMonths)(h,v):"quarter"===m?f=(0,i.differenceInCalendarQuarters)(h,v):"year"===m&&(f=(0,a.differenceInCalendarYears)(h,v));else{const e=(0,c.differenceInSeconds)(h,v);Math.abs(e)<t.secondsInMinute?(f=(0,c.differenceInSeconds)(h,v),m="second"):Math.abs(e)<t.secondsInHour?(f=(0,d.differenceInMinutes)(h,v),m="minute"):Math.abs(e)<t.secondsInDay&&Math.abs((0,n.differenceInCalendarDays)(h,v))<1?(f=(0,s.differenceInHours)(h,v),m="hour"):Math.abs(e)<t.secondsInWeek&&(f=(0,n.differenceInCalendarDays)(h,v))&&Math.abs(f)<7?m="day":Math.abs(e)<t.secondsInMonth?(f=(0,o.differenceInCalendarWeeks)(h,v),m="week"):Math.abs(e)<t.secondsInQuarter?(f=(0,r.differenceInCalendarMonths)(h,v),m="month"):Math.abs(e)<t.secondsInYear&&(0,i.differenceInCalendarQuarters)(h,v)<4?(f=(0,i.differenceInCalendarQuarters)(h,v),m="quarter"):(f=(0,a.differenceInCalendarYears)(h,v),m="year")}return new Intl.RelativeTimeFormat(p?.locale,{numeric:"auto",...p}).format(f,m)};var e=Sw(),t=Cb(),n=Nw(),r=tI(),i=sI(),o=uI(),a=mI(),s=II(),d=jI(),c=QI();return JT}var XT,eO={};function tO(){if(XT)return eO;XT=1,eO.isAfter=function(t,n){return+(0,e.toDate)(t)>+(0,e.toDate)(n)};var e=qb();return eO}var nO,rO={};function iO(){if(nO)return rO;nO=1,rO.isBefore=function(t,n){return+(0,e.toDate)(t)<+(0,e.toDate)(n)};var e=qb();return rO}var oO,aO={};function sO(){if(oO)return aO;oO=1,aO.isEqual=function(t,n){return+(0,e.toDate)(t)==+(0,e.toDate)(n)};var e=qb();return aO}var dO,cO={};function uO(){return dO||(dO=1,cO.isExists=function(e,t,n){const r=new Date(e,t,n);return r.getFullYear()===e&&r.getMonth()===t&&r.getDate()===n}),cO}var lO,pO={};function mO(){if(lO)return pO;lO=1,pO.isFirstDayOfMonth=function(t,n){return 1===(0,e.toDate)(t,n?.in).getDate()};var e=qb();return pO}var fO,hO={};function vO(){if(fO)return hO;fO=1,hO.isFriday=function(t,n){return 5===(0,e.toDate)(t,n?.in).getDay()};var e=qb();return hO}var gO,yO={};function bO(){if(gO)return yO;gO=1,yO.isFuture=function(t){return+(0,e.toDate)(t)>Date.now()};var e=qb();return yO}var wO,$O,IO={},kO={},xO={},EO={};function AO(){if(wO)return EO;wO=1,EO.transpose=function(t,n){const r=function(e){return"function"==typeof e&&e.prototype?.constructor===e}(n)?new n(0):(0,e.constructFrom)(n,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),r};var e=Nb();return EO}function TO(){if($O)return xO;$O=1,xO.ValueSetter=xO.Setter=xO.DateTimezoneSetter=void 0;var e=Nb(),t=AO();let n=class{subPriority=0;validate(e,t){return!0}};return xO.Setter=n,xO.ValueSetter=class extends n{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},xO.DateTimezoneSetter=class extends n{priority=10;subPriority=-1;constructor(t,n){super(),this.context=t||(t=>(0,e.constructFrom)(n,t))}set(n,r){return r.timestampIsSet?n:(0,e.constructFrom)(n,(0,t.transpose)(n,this.context))}},xO}var OO,_O,DO={},SO={},MO={};function PO(){if(OO)return MO;OO=1,MO.Parser=void 0;var e=TO();return MO.Parser=class{run(t,n,r,i){const o=this.parse(t,n,r,i);return o?{setter:new e.ValueSetter(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,n){return!0}},MO}function jO(){if(_O)return SO;_O=1,SO.EraParser=void 0;var e=PO();return SO.EraParser=class extends e.Parser{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},SO}var CO,NO,RO,UO={},LO={},qO={};function GO(){return CO||(CO=1,qO.timezonePatterns=qO.numericPatterns=void 0,qO.numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},qO.timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/}),qO}function zO(){if(NO)return LO;NO=1,LO.dayPeriodEnumToHours=function(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}},LO.isLeapYearIndex=function(e){return e%400==0||e%4==0&&e%100!=0},LO.mapValue=function(e,t){return e?{value:t(e.value),rest:e.rest}:e},LO.normalizeTwoDigitYear=function(e,t){const n=t>0,r=n?t:1-t;let i;if(r<=50)i=e||100;else{const t=r+50;i=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?i:1-i},LO.parseAnyDigitsSigned=function(e){return n(t.numericPatterns.anyDigitsSigned,e)},LO.parseNDigits=function(e,r){switch(e){case 1:return n(t.numericPatterns.singleDigit,r);case 2:return n(t.numericPatterns.twoDigits,r);case 3:return n(t.numericPatterns.threeDigits,r);case 4:return n(t.numericPatterns.fourDigits,r);default:return n(new RegExp("^\\d{1,"+e+"}"),r)}},LO.parseNDigitsSigned=function(e,r){switch(e){case 1:return n(t.numericPatterns.singleDigitSigned,r);case 2:return n(t.numericPatterns.twoDigitsSigned,r);case 3:return n(t.numericPatterns.threeDigitsSigned,r);case 4:return n(t.numericPatterns.fourDigitsSigned,r);default:return n(new RegExp("^-?\\d{1,"+e+"}"),r)}},LO.parseNumericPattern=n,LO.parseTimezonePattern=function(t,n){const r=n.match(t);if(!r)return null;if("Z"===r[0])return{value:0,rest:n.slice(1)};const i="+"===r[1]?1:-1,o=r[2]?parseInt(r[2],10):0,a=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:i*(o*e.millisecondsInHour+a*e.millisecondsInMinute+s*e.millisecondsInSecond),rest:n.slice(r[0].length)}};var e=Cb(),t=GO();function n(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}return LO}function FO(){if(RO)return UO;RO=1,UO.YearParser=void 0;var e=PO(),t=zO();return UO.YearParser=class extends e.Parser{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,n,r){const i=e=>({year:e,isTwoDigitYear:"yy"===n});switch(n){case"y":return(0,t.mapValue)((0,t.parseNDigits)(4,e),i);case"yo":return(0,t.mapValue)(r.ordinalNumber(e,{unit:"year"}),i);default:return(0,t.mapValue)((0,t.parseNDigits)(n.length,e),i)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,n,r){const i=e.getFullYear();if(r.isTwoDigitYear){const n=(0,t.normalizeTwoDigitYear)(r.year,i);return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}return e.setFullYear("era"in n&&1!==n.era?1-r.year:r.year,0,1),e.setHours(0,0,0,0),e}},UO}var BO,WO={};function ZO(){if(BO)return WO;BO=1,WO.LocalWeekYearParser=void 0;var e=IE(),t=$w(),n=PO(),r=zO();return WO.LocalWeekYearParser=class extends n.Parser{priority=130;parse(e,t,n){const i=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return(0,r.mapValue)((0,r.parseNDigits)(4,e),i);case"Yo":return(0,r.mapValue)(n.ordinalNumber(e,{unit:"year"}),i);default:return(0,r.mapValue)((0,r.parseNDigits)(t.length,e),i)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(n,i,o,a){const s=(0,e.getWeekYear)(n,a);if(o.isTwoDigitYear){const e=(0,r.normalizeTwoDigitYear)(o.year,s);return n.setFullYear(e,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),(0,t.startOfWeek)(n,a)}return n.setFullYear("era"in i&&1!==i.era?1-o.year:o.year,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),(0,t.startOfWeek)(n,a)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},WO}var YO,VO={};function HO(){if(YO)return VO;YO=1,VO.ISOWeekYearParser=void 0;var e=Iw(),t=Nb(),n=PO(),r=zO();return VO.ISOWeekYearParser=class extends n.Parser{priority=130;parse(e,t){return(0,r.parseNDigitsSigned)("R"===t?4:t.length,e)}set(n,r,i){const o=(0,t.constructFrom)(n,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),(0,e.startOfISOWeek)(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},VO}var KO,JO={};function QO(){if(KO)return JO;KO=1,JO.ExtendedYearParser=void 0;var e=PO(),t=zO();return JO.ExtendedYearParser=class extends e.Parser{priority=130;parse(e,n){return(0,t.parseNDigitsSigned)("u"===n?4:n.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},JO}var XO,e_={};function t_(){if(XO)return e_;XO=1,e_.QuarterParser=void 0;var e=PO(),t=zO();return e_.QuarterParser=class extends e.Parser{priority=120;parse(e,n,r){switch(n){case"Q":case"QQ":return(0,t.parseNDigits)(n.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},e_}var n_,r_={};function i_(){if(n_)return r_;n_=1,r_.StandAloneQuarterParser=void 0;var e=PO(),t=zO();return r_.StandAloneQuarterParser=class extends e.Parser{priority=120;parse(e,n,r){switch(n){case"q":case"qq":return(0,t.parseNDigits)(n.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},r_}var o_,a_={};function s_(){if(o_)return a_;o_=1,a_.MonthParser=void 0;var e=GO(),t=PO(),n=zO();return a_.MonthParser=class extends t.Parser{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,r,i){const o=e=>e-1;switch(r){case"M":return(0,n.mapValue)((0,n.parseNumericPattern)(e.numericPatterns.month,t),o);case"MM":return(0,n.mapValue)((0,n.parseNDigits)(2,t),o);case"Mo":return(0,n.mapValue)(i.ordinalNumber(t,{unit:"month"}),o);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},a_}var d_,c_={};function u_(){if(d_)return c_;d_=1,c_.StandAloneMonthParser=void 0;var e=GO(),t=PO(),n=zO();return c_.StandAloneMonthParser=class extends t.Parser{priority=110;parse(t,r,i){const o=e=>e-1;switch(r){case"L":return(0,n.mapValue)((0,n.parseNumericPattern)(e.numericPatterns.month,t),o);case"LL":return(0,n.mapValue)((0,n.parseNDigits)(2,t),o);case"Lo":return(0,n.mapValue)(i.ordinalNumber(t,{unit:"month"}),o);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},c_}var l_,p_,m_={},f_={};function h_(){if(l_)return f_;l_=1,f_.setWeek=function(n,r,i){const o=(0,t.toDate)(n,i?.in),a=(0,e.getWeek)(o,i)-r;return o.setDate(o.getDate()-7*a),(0,t.toDate)(o,i?.in)};var e=xE(),t=qb();return f_}function v_(){if(p_)return m_;p_=1,m_.LocalWeekParser=void 0;var e=h_(),t=$w(),n=GO(),r=PO(),i=zO();return m_.LocalWeekParser=class extends r.Parser{priority=100;parse(e,t,r){switch(t){case"w":return(0,i.parseNumericPattern)(n.numericPatterns.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(n,r,i,o){return(0,t.startOfWeek)((0,e.setWeek)(n,i,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},m_}var g_,y_,b_={},w_={};function $_(){if(g_)return w_;g_=1,w_.setISOWeek=function(n,r,i){const o=(0,t.toDate)(n,i?.in),a=(0,e.getISOWeek)(o,i)-r;return o.setDate(o.getDate()-7*a),o};var e=hE(),t=qb();return w_}function I_(){if(y_)return b_;y_=1,b_.ISOWeekParser=void 0;var e=$_(),t=Iw(),n=GO(),r=PO(),i=zO();return b_.ISOWeekParser=class extends r.Parser{priority=100;parse(e,t,r){switch(t){case"I":return(0,i.parseNumericPattern)(n.numericPatterns.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(n,r,i){return(0,t.startOfISOWeek)((0,e.setISOWeek)(n,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},b_}var k_,x_={};function E_(){if(k_)return x_;k_=1,x_.DateParser=void 0;var e=GO(),t=PO(),n=zO();const r=[31,28,31,30,31,30,31,31,30,31,30,31],i=[31,29,31,30,31,30,31,31,30,31,30,31];return x_.DateParser=class extends t.Parser{priority=90;subPriority=1;parse(t,r,i){switch(r){case"d":return(0,n.parseNumericPattern)(e.numericPatterns.date,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){const o=e.getFullYear(),a=(0,n.isLeapYearIndex)(o),s=e.getMonth();return a?t>=1&&t<=i[s]:t>=1&&t<=r[s]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},x_}var A_,T_={};function O_(){if(A_)return T_;A_=1,T_.DayOfYearParser=void 0;var e=GO(),t=PO(),n=zO();return T_.DayOfYearParser=class extends t.Parser{priority=90;subpriority=1;parse(t,r,i){switch(r){case"D":case"DD":return(0,n.parseNumericPattern)(e.numericPatterns.dayOfYear,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){const r=e.getFullYear();return(0,n.isLeapYearIndex)(r)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},T_}var __,D_,S_={},M_={};function P_(){if(__)return M_;__=1,M_.setDay=function(r,i,o){const a=(0,e.getDefaultOptions)(),s=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,d=(0,n.toDate)(r,o?.in),c=d.getDay(),u=7-s;return(0,t.addDays)(d,i<0||i>6?i-(c+u)%7:((i%7+7)%7+u)%7-(c+u)%7,o)};var e=ww(),t=Gb(),n=qb();return M_}function j_(){if(D_)return S_;D_=1,S_.DayParser=void 0;var e=P_(),t=PO();return S_.DayParser=class extends t.Parser{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(t,n,r,i){return(t=(0,e.setDay)(t,r,i)).setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]},S_}var C_,N_={};function R_(){if(C_)return N_;C_=1,N_.LocalDayParser=void 0;var e=P_(),t=PO(),n=zO();return N_.LocalDayParser=class extends t.Parser{priority=90;parse(e,t,r,i){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+i.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return(0,n.mapValue)((0,n.parseNDigits)(t.length,e),o);case"eo":return(0,n.mapValue)(r.ordinalNumber(e,{unit:"day"}),o);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(t,n,r,i){return(t=(0,e.setDay)(t,r,i)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},N_}var U_,L_={};function q_(){if(U_)return L_;U_=1,L_.StandAloneLocalDayParser=void 0;var e=P_(),t=PO(),n=zO();return L_.StandAloneLocalDayParser=class extends t.Parser{priority=90;parse(e,t,r,i){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+i.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return(0,n.mapValue)((0,n.parseNDigits)(t.length,e),o);case"co":return(0,n.mapValue)(r.ordinalNumber(e,{unit:"day"}),o);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(t,n,r,i){return(t=(0,e.setDay)(t,r,i)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},L_}var G_,z_,F_={},B_={};function W_(){if(G_)return B_;G_=1,B_.setISODay=function(r,i,o){const a=(0,n.toDate)(r,o?.in),s=(0,t.getISODay)(a,o);return(0,e.addDays)(a,i-s,o)};var e=Gb(),t=HA(),n=qb();return B_}function Z_(){if(z_)return F_;z_=1,F_.ISODayParser=void 0;var e=W_(),t=PO(),n=zO();return F_.ISODayParser=class extends t.Parser{priority=90;parse(e,t,r){const i=e=>0===e?7:e;switch(t){case"i":case"ii":return(0,n.parseNDigits)(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return(0,n.mapValue)(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i);case"iiiii":return(0,n.mapValue)(r.day(e,{width:"narrow",context:"formatting"}),i);case"iiiiii":return(0,n.mapValue)(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i);default:return(0,n.mapValue)(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i)}}validate(e,t){return t>=1&&t<=7}set(t,n,r){return(t=(0,e.setISODay)(t,r)).setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},F_}var Y_,V_={};function H_(){if(Y_)return V_;Y_=1,V_.AMPMParser=void 0;var e=PO(),t=zO();return V_.AMPMParser=class extends e.Parser{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours((0,t.dayPeriodEnumToHours)(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},V_}var K_,J_={};function Q_(){if(K_)return J_;K_=1,J_.AMPMMidnightParser=void 0;var e=PO(),t=zO();return J_.AMPMMidnightParser=class extends e.Parser{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours((0,t.dayPeriodEnumToHours)(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},J_}var X_,eD={};function tD(){if(X_)return eD;X_=1,eD.DayPeriodParser=void 0;var e=PO(),t=zO();return eD.DayPeriodParser=class extends e.Parser{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours((0,t.dayPeriodEnumToHours)(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]},eD}var nD,rD={};function iD(){if(nD)return rD;nD=1,rD.Hour1to12Parser=void 0;var e=GO(),t=PO(),n=zO();return rD.Hour1to12Parser=class extends t.Parser{priority=70;parse(t,r,i){switch(r){case"h":return(0,n.parseNumericPattern)(e.numericPatterns.hour12h,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return e.setHours(r&&n<12?n+12:r||12!==n?n:0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},rD}var oD,aD={};function sD(){if(oD)return aD;oD=1,aD.Hour0to23Parser=void 0;var e=GO(),t=PO(),n=zO();return aD.Hour0to23Parser=class extends t.Parser{priority=70;parse(t,r,i){switch(r){case"H":return(0,n.parseNumericPattern)(e.numericPatterns.hour23h,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},aD}var dD,cD={};function uD(){if(dD)return cD;dD=1,cD.Hour0To11Parser=void 0;var e=GO(),t=PO(),n=zO();return cD.Hour0To11Parser=class extends t.Parser{priority=70;parse(t,r,i){switch(r){case"K":return(0,n.parseNumericPattern)(e.numericPatterns.hour11h,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){const r=e.getHours()>=12;return e.setHours(r&&n<12?n+12:n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},cD}var lD,pD={};function mD(){if(lD)return pD;lD=1,pD.Hour1To24Parser=void 0;var e=GO(),t=PO(),n=zO();return pD.Hour1To24Parser=class extends t.Parser{priority=70;parse(t,r,i){switch(r){case"k":return(0,n.parseNumericPattern)(e.numericPatterns.hour24h,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){return e.setHours(n<=24?n%24:n,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},pD}var fD,hD={};function vD(){if(fD)return hD;fD=1,hD.MinuteParser=void 0;var e=GO(),t=PO(),n=zO();return hD.MinuteParser=class extends t.Parser{priority=60;parse(t,r,i){switch(r){case"m":return(0,n.parseNumericPattern)(e.numericPatterns.minute,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},hD}var gD,yD={};function bD(){if(gD)return yD;gD=1,yD.SecondParser=void 0;var e=GO(),t=PO(),n=zO();return yD.SecondParser=class extends t.Parser{priority=50;parse(t,r,i){switch(r){case"s":return(0,n.parseNumericPattern)(e.numericPatterns.second,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},yD}var wD,$D={};function ID(){if(wD)return $D;wD=1,$D.FractionOfSecondParser=void 0;var e=PO(),t=zO();return $D.FractionOfSecondParser=class extends e.Parser{priority=30;parse(e,n){return(0,t.mapValue)((0,t.parseNDigits)(n.length,e),(e=>Math.trunc(e*Math.pow(10,3-n.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},$D}var kD,xD={};function ED(){if(kD)return xD;kD=1,xD.ISOTimezoneWithZParser=void 0;var e=Nb(),t=Ow(),n=GO(),r=PO(),i=zO();return xD.ISOTimezoneWithZParser=class extends r.Parser{priority=10;parse(e,t){switch(t){case"X":return(0,i.parseTimezonePattern)(n.timezonePatterns.basicOptionalMinutes,e);case"XX":return(0,i.parseTimezonePattern)(n.timezonePatterns.basic,e);case"XXXX":return(0,i.parseTimezonePattern)(n.timezonePatterns.basicOptionalSeconds,e);case"XXXXX":return(0,i.parseTimezonePattern)(n.timezonePatterns.extendedOptionalSeconds,e);default:return(0,i.parseTimezonePattern)(n.timezonePatterns.extended,e)}}set(n,r,i){return r.timestampIsSet?n:(0,e.constructFrom)(n,n.getTime()-(0,t.getTimezoneOffsetInMilliseconds)(n)-i)}incompatibleTokens=["t","T","x"]},xD}var AD,TD={};function OD(){if(AD)return TD;AD=1,TD.ISOTimezoneParser=void 0;var e=Nb(),t=Ow(),n=GO(),r=PO(),i=zO();return TD.ISOTimezoneParser=class extends r.Parser{priority=10;parse(e,t){switch(t){case"x":return(0,i.parseTimezonePattern)(n.timezonePatterns.basicOptionalMinutes,e);case"xx":return(0,i.parseTimezonePattern)(n.timezonePatterns.basic,e);case"xxxx":return(0,i.parseTimezonePattern)(n.timezonePatterns.basicOptionalSeconds,e);case"xxxxx":return(0,i.parseTimezonePattern)(n.timezonePatterns.extendedOptionalSeconds,e);default:return(0,i.parseTimezonePattern)(n.timezonePatterns.extended,e)}}set(n,r,i){return r.timestampIsSet?n:(0,e.constructFrom)(n,n.getTime()-(0,t.getTimezoneOffsetInMilliseconds)(n)-i)}incompatibleTokens=["t","T","X"]},TD}var _D,DD={};function SD(){if(_D)return DD;_D=1,DD.TimestampSecondsParser=void 0;var e=Nb(),t=PO(),n=zO();return DD.TimestampSecondsParser=class extends t.Parser{priority=40;parse(e){return(0,n.parseAnyDigitsSigned)(e)}set(t,n,r){return[(0,e.constructFrom)(t,1e3*r),{timestampIsSet:!0}]}incompatibleTokens="*"},DD}var MD,PD,jD,CD,ND={};function RD(){if(MD)return ND;MD=1,ND.TimestampMillisecondsParser=void 0;var e=Nb(),t=PO(),n=zO();return ND.TimestampMillisecondsParser=class extends t.Parser{priority=20;parse(e){return(0,n.parseAnyDigitsSigned)(e)}set(t,n,r){return[(0,e.constructFrom)(t,r),{timestampIsSet:!0}]}incompatibleTokens="*"},ND}function UD(){if(PD)return DO;PD=1,DO.parsers=void 0;var e=jO(),t=FO(),n=ZO(),r=HO(),i=QO(),o=t_(),a=i_(),s=s_(),d=u_(),c=v_(),u=I_(),l=E_(),p=O_(),m=j_(),f=R_(),h=q_(),v=Z_(),g=H_(),y=Q_(),b=tD(),w=iD(),$=sD(),I=uD(),k=mD(),x=vD(),E=bD(),A=ID(),T=ED(),O=OD(),_=SD(),D=RD();return DO.parsers={G:new e.EraParser,y:new t.YearParser,Y:new n.LocalWeekYearParser,R:new r.ISOWeekYearParser,u:new i.ExtendedYearParser,Q:new o.QuarterParser,q:new a.StandAloneQuarterParser,M:new s.MonthParser,L:new d.StandAloneMonthParser,w:new c.LocalWeekParser,I:new u.ISOWeekParser,d:new l.DateParser,D:new p.DayOfYearParser,E:new m.DayParser,e:new f.LocalDayParser,c:new h.StandAloneLocalDayParser,i:new v.ISODayParser,a:new g.AMPMParser,b:new y.AMPMMidnightParser,B:new b.DayPeriodParser,h:new w.Hour1to12Parser,H:new $.Hour0to23Parser,K:new I.Hour0To11Parser,k:new k.Hour1To24Parser,m:new x.MinuteParser,s:new E.SecondParser,S:new A.FractionOfSecondParser,X:new T.ISOTimezoneWithZParser,x:new O.ISOTimezoneParser,t:new _.TimestampSecondsParser,T:new D.TimestampMillisecondsParser},DO}function LD(){return jD||(jD=1,function(e){Object.defineProperty(e,"longFormatters",{enumerable:!0,get:function(){return n.longFormatters}}),e.parse=function(e,h,v,g){const y=()=>(0,i.constructFrom)(g?.in||v,NaN),b=(0,o.getDefaultOptions)(),w=g?.locale??b.locale??t.defaultLocale,$=g?.firstWeekContainsDate??g?.locale?.options?.firstWeekContainsDate??b.firstWeekContainsDate??b.locale?.options?.firstWeekContainsDate??1,I=g?.weekStartsOn??g?.locale?.options?.weekStartsOn??b.weekStartsOn??b.locale?.options?.weekStartsOn??0;if(!h)return e?y():(0,a.toDate)(v,g?.in);const k={firstWeekContainsDate:$,weekStartsOn:I,locale:w},x=[new s.DateTimezoneSetter(g?.in,v)],E=h.match(u).map((e=>{const t=e[0];return t in n.longFormatters?(0,n.longFormatters[t])(e,w.formatLong):e})).join("").match(c),A=[];for(let t of E){!g?.useAdditionalWeekYearTokens&&(0,r.isProtectedWeekYearToken)(t)&&(0,r.warnOrThrowProtectedError)(t,h,e),!g?.useAdditionalDayOfYearTokens&&(0,r.isProtectedDayOfYearToken)(t)&&(0,r.warnOrThrowProtectedError)(t,h,e);const n=t[0],i=d.parsers[n];if(i){const{incompatibleTokens:r}=i;if(Array.isArray(r)){const e=A.find((e=>r.includes(e.token)||e.token===n));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${t}\` at the same time`)}else if("*"===i.incompatibleTokens&&A.length>0)throw new RangeError(`The format string mustn't contain \`${t}\` and any other token at the same time`);A.push({token:n,fullToken:t});const o=i.run(e,t,w.match,k);if(!o)return y();x.push(o.setter),e=o.rest}else{if(n.match(f))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(l)[1].replace(p,"'")),0!==e.indexOf(t))return y();e=e.slice(t.length)}}if(e.length>0&&m.test(e))return y();const T=x.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>x.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let O=(0,a.toDate)(v,g?.in);if(isNaN(+O))return y();const _={};for(const e of T){if(!e.validate(O,k))return y();const t=e.set(O,_,k);Array.isArray(t)?(O=t[0],Object.assign(_,t[1])):O=t}return O},Object.defineProperty(e,"parsers",{enumerable:!0,get:function(){return d.parsers}});var t=dE(),n=CE(),r=LE(),i=Nb(),o=FA(),a=qb(),s=TO(),d=UD();const c=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,u=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,l=/^'([^]*?)'?$/,p=/''/g,m=/\S/,f=/[a-zA-Z]/}(kO)),kO}function qD(){if(CD)return IO;CD=1,IO.isMatch=function(n,r,i){return(0,e.isValid)((0,t.parse)(n,r,new Date,i))};var e=W$(),t=LD();return IO}var GD,zD={};function FD(){if(GD)return zD;GD=1,zD.isMonday=function(t,n){return 1===(0,e.toDate)(t,n?.in).getDay()};var e=qb();return zD}var BD,WD={};function ZD(){if(BD)return WD;BD=1,WD.isPast=function(t){return+(0,e.toDate)(t)<Date.now()};var e=qb();return WD}var YD,VD,HD={},KD={};function JD(){if(YD)return KD;YD=1,KD.startOfHour=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setMinutes(0,0,0),r};var e=qb();return KD}function QD(){if(VD)return HD;VD=1,HD.isSameHour=function(n,r,i){const[o,a]=(0,e.normalizeDates)(i?.in,n,r);return+(0,t.startOfHour)(o)==+(0,t.startOfHour)(a)};var e=Sw(),t=JD();return HD}var XD,eS,tS={},nS={};function rS(){if(XD)return nS;XD=1,nS.isSameWeek=function(n,r,i){const[o,a]=(0,e.normalizeDates)(i?.in,n,r);return+(0,t.startOfWeek)(o,i)==+(0,t.startOfWeek)(a,i)};var e=Sw(),t=$w();return nS}function iS(){if(eS)return tS;eS=1,tS.isSameISOWeek=function(t,n,r){return(0,e.isSameWeek)(t,n,{...r,weekStartsOn:1})};var e=rS();return tS}var oS,aS={};function sS(){if(oS)return aS;oS=1,aS.isSameISOWeekYear=function(n,r,i){const[o,a]=(0,t.normalizeDates)(i?.in,n,r);return+(0,e.startOfISOWeekYear)(o)==+(0,e.startOfISOWeekYear)(a)};var e=Gw(),t=Sw();return aS}var dS,cS,uS={},lS={};function pS(){if(dS)return lS;dS=1,lS.startOfMinute=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setSeconds(0,0),r};var e=qb();return lS}function mS(){if(cS)return uS;cS=1,uS.isSameMinute=function(t,n){return+(0,e.startOfMinute)(t)==+(0,e.startOfMinute)(n)};var e=pS();return uS}var fS,hS={};function vS(){if(fS)return hS;fS=1,hS.isSameMonth=function(t,n,r){const[i,o]=(0,e.normalizeDates)(r?.in,t,n);return i.getFullYear()===o.getFullYear()&&i.getMonth()===o.getMonth()};var e=Sw();return hS}var gS,yS={};function bS(){if(gS)return yS;gS=1,yS.isSameQuarter=function(n,r,i){const[o,a]=(0,e.normalizeDates)(i?.in,n,r);return+(0,t.startOfQuarter)(o)==+(0,t.startOfQuarter)(a)};var e=Sw(),t=xk();return yS}var wS,$S,IS={},kS={};function xS(){if(wS)return kS;wS=1,kS.startOfSecond=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setMilliseconds(0),r};var e=qb();return kS}function ES(){if($S)return IS;$S=1,IS.isSameSecond=function(t,n){return+(0,e.startOfSecond)(t)==+(0,e.startOfSecond)(n)};var e=xS();return IS}var AS,TS={};function OS(){if(AS)return TS;AS=1,TS.isSameYear=function(t,n,r){const[i,o]=(0,e.normalizeDates)(r?.in,t,n);return i.getFullYear()===o.getFullYear()};var e=Sw();return TS}var _S,DS={};function SS(){if(_S)return DS;_S=1,DS.isThisHour=function(r,i){return(0,t.isSameHour)((0,n.toDate)(r,i?.in),(0,e.constructNow)(i?.in||r))};var e=S$(),t=QD(),n=qb();return DS}var MS,PS={};function jS(){if(MS)return PS;MS=1,PS.isThisISOWeek=function(r,i){return(0,n.isSameISOWeek)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r))};var e=Nb(),t=S$(),n=iS();return PS}var CS,NS={};function RS(){if(CS)return NS;CS=1,NS.isThisMinute=function(n){return(0,t.isSameMinute)(n,(0,e.constructNow)(n))};var e=S$(),t=mS();return NS}var US,LS={};function qS(){if(US)return LS;US=1,LS.isThisMonth=function(r,i){return(0,n.isSameMonth)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r))};var e=Nb(),t=S$(),n=vS();return LS}var GS,zS={};function FS(){if(GS)return zS;GS=1,zS.isThisQuarter=function(r,i){return(0,n.isSameQuarter)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r))};var e=Nb(),t=S$(),n=bS();return zS}var BS,WS={};function ZS(){if(BS)return WS;BS=1,WS.isThisSecond=function(n){return(0,t.isSameSecond)(n,(0,e.constructNow)(n))};var e=S$(),t=ES();return WS}var YS,VS={};function HS(){if(YS)return VS;YS=1,VS.isThisWeek=function(r,i){return(0,n.isSameWeek)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r),i)};var e=Nb(),t=S$(),n=rS();return VS}var KS,JS={};function QS(){if(KS)return JS;KS=1,JS.isThisYear=function(r,i){return(0,n.isSameYear)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r))};var e=Nb(),t=S$(),n=OS();return JS}var XS,eM={};function tM(){if(XS)return eM;XS=1,eM.isThursday=function(t,n){return 4===(0,e.toDate)(t,n?.in).getDay()};var e=qb();return eM}var nM,rM={};function iM(){if(nM)return rM;nM=1,rM.isToday=function(r,i){return(0,n.isSameDay)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r))};var e=Nb(),t=S$(),n=U$();return rM}var oM,aM={};function sM(){if(oM)return aM;oM=1,aM.isTomorrow=function(r,i){return(0,n.isSameDay)(r,(0,e.addDays)((0,t.constructNow)(i?.in||r),1),i)};var e=Gb(),t=S$(),n=U$();return aM}var dM,cM={};function uM(){if(dM)return cM;dM=1,cM.isTuesday=function(t,n){return 2===(0,e.toDate)(t,n?.in).getDay()};var e=qb();return cM}var lM,pM={};function mM(){if(lM)return pM;lM=1,pM.isWednesday=function(t,n){return 3===(0,e.toDate)(t,n?.in).getDay()};var e=qb();return pM}var fM,hM={};function vM(){if(fM)return hM;fM=1,hM.isWithinInterval=function(t,n,r){const i=+(0,e.toDate)(t,r?.in),[o,a]=[+(0,e.toDate)(n.start,r?.in),+(0,e.toDate)(n.end,r?.in)].sort(((e,t)=>e-t));return i>=o&&i<=a};var e=qb();return hM}var gM,yM,bM={},wM={};function $M(){if(gM)return wM;gM=1,wM.subDays=function(t,n,r){return(0,e.addDays)(t,-n,r)};var e=Gb();return wM}function IM(){if(yM)return bM;yM=1,bM.isYesterday=function(i,o){return(0,n.isSameDay)((0,e.constructFrom)(o?.in||i,i),(0,r.subDays)((0,t.constructNow)(o?.in||i),1))};var e=Nb(),t=S$(),n=U$(),r=$M();return bM}var kM,xM={};function EM(){if(kM)return xM;kM=1,xM.lastDayOfDecade=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getFullYear(),o=9+10*Math.floor(i/10);return r.setFullYear(o+1,0,0),r.setHours(0,0,0,0),(0,e.toDate)(r,n?.in)};var e=qb();return xM}var AM,TM,OM={},_M={};function DM(){if(AM)return _M;AM=1,_M.lastDayOfWeek=function(n,r){const i=(0,e.getDefaultOptions)(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,a=(0,t.toDate)(n,r?.in),s=a.getDay(),d=6+(s<o?-7:0)-(s-o);return a.setHours(0,0,0,0),a.setDate(a.getDate()+d),a};var e=ww(),t=qb();return _M}function SM(){if(TM)return OM;TM=1,OM.lastDayOfISOWeek=function(t,n){return(0,e.lastDayOfWeek)(t,{...n,weekStartsOn:1})};var e=DM();return OM}var MM,PM={};function jM(){if(MM)return PM;MM=1,PM.lastDayOfISOWeekYear=function(r,i){const o=(0,t.getISOWeekYear)(r,i),a=(0,e.constructFrom)(i?.in||r,0);a.setFullYear(o+1,0,4),a.setHours(0,0,0,0);const s=(0,n.startOfISOWeek)(a,i);return s.setDate(s.getDate()-1),s};var e=Nb(),t=kw(),n=Iw();return PM}var CM,NM={};function RM(){if(CM)return NM;CM=1,NM.lastDayOfQuarter=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getMonth();return r.setMonth(i-i%3+3,0),r.setHours(0,0,0,0),r};var e=qb();return NM}var UM,LM={};function qM(){if(UM)return LM;UM=1,LM.lastDayOfYear=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getFullYear();return r.setFullYear(i+1,0,0),r.setHours(0,0,0,0),r};var e=qb();return LM}var GM,zM={};function FM(){return GM||(GM=1,function(e){e.lightFormat=function(e,d){const c=(0,r.toDate)(e);if(!(0,n.isValid)(c))throw new RangeError("Invalid time value");const u=d.match(i);return u?u.map((e=>{if("''"===e)return"'";const n=e[0];if("'"===n)return function(e){const t=e.match(o);return t?t[1].replace(a,"'"):e}(e);const r=t.lightFormatters[n];if(r)return r(c,e);if(n.match(s))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return e})).join(""):""},Object.defineProperty(e,"lightFormatters",{enumerable:!0,get:function(){return t.lightFormatters}});var t=SE(),n=W$(),r=qb();const i=/(\w)\1*|''|'(''|[^'])+('|$)|./g,o=/^'([^]*?)'?$/,a=/''/g,s=/[a-zA-Z]/}(zM)),zM}var BM,WM={};function ZM(){if(BM)return WM;BM=1,WM.milliseconds=function({years:t,months:n,weeks:r,days:i,hours:o,minutes:a,seconds:s}){let d=0;t&&(d+=t*e.daysInYear),n&&(d+=n*(e.daysInYear/12)),r&&(d+=7*r),i&&(d+=i);let c=24*d*60*60;return o&&(c+=60*o*60),a&&(c+=60*a),s&&(c+=s),Math.trunc(1e3*c)};var e=Cb();return WM}var YM,VM={};function HM(){if(YM)return VM;YM=1,VM.millisecondsToHours=function(t){return Math.trunc(t/e.millisecondsInHour)};var e=Cb();return VM}var KM,JM={};function QM(){if(KM)return JM;KM=1,JM.millisecondsToMinutes=function(t){return Math.trunc(t/e.millisecondsInMinute)};var e=Cb();return JM}var XM,eP={};function tP(){if(XM)return eP;XM=1,eP.millisecondsToSeconds=function(t){return Math.trunc(t/e.millisecondsInSecond)};var e=Cb();return eP}var nP,rP={};function iP(){if(nP)return rP;nP=1,rP.minutesToHours=function(t){return Math.trunc(t/e.minutesInHour)};var e=Cb();return rP}var oP,aP={};function sP(){if(oP)return aP;oP=1,aP.minutesToMilliseconds=function(t){return Math.trunc(t*e.millisecondsInMinute)};var e=Cb();return aP}var dP,cP={};function uP(){if(dP)return cP;dP=1,cP.minutesToSeconds=function(t){return Math.trunc(t*e.secondsInMinute)};var e=Cb();return cP}var lP,pP={};function mP(){if(lP)return pP;lP=1,pP.monthsToQuarters=function(t){return Math.trunc(t/e.monthsInQuarter)};var e=Cb();return pP}var fP,hP={};function vP(){if(fP)return hP;fP=1,hP.monthsToYears=function(t){return Math.trunc(t/e.monthsInYear)};var e=Cb();return hP}var gP,yP={};function bP(){if(gP)return yP;gP=1,yP.nextDay=function(n,r,i){let o=r-(0,t.getDay)(n,i);return o<=0&&(o+=7),(0,e.addDays)(n,o,i)};var e=Gb(),t=OA();return yP}var wP,$P={};function IP(){if(wP)return $P;wP=1,$P.nextFriday=function(t,n){return(0,e.nextDay)(t,5,n)};var e=bP();return $P}var kP,xP={};function EP(){if(kP)return xP;kP=1,xP.nextMonday=function(t,n){return(0,e.nextDay)(t,1,n)};var e=bP();return xP}var AP,TP={};function OP(){if(AP)return TP;AP=1,TP.nextSaturday=function(t,n){return(0,e.nextDay)(t,6,n)};var e=bP();return TP}var _P,DP={};function SP(){if(_P)return DP;_P=1,DP.nextSunday=function(t,n){return(0,e.nextDay)(t,0,n)};var e=bP();return DP}var MP,PP={};function jP(){if(MP)return PP;MP=1,PP.nextThursday=function(t,n){return(0,e.nextDay)(t,4,n)};var e=bP();return PP}var CP,NP={};function RP(){if(CP)return NP;CP=1,NP.nextTuesday=function(t,n){return(0,e.nextDay)(t,2,n)};var e=bP();return NP}var UP,LP={};function qP(){if(UP)return LP;UP=1,LP.nextWednesday=function(t,n){return(0,e.nextDay)(t,3,n)};var e=bP();return LP}var GP,zP={};function FP(){if(GP)return zP;GP=1,zP.parseISO=function(l,p){const m=()=>(0,t.constructFrom)(p?.in,NaN),f=p?.additionalDigits??2,h=function(e){const t={},n=e.split(r.dateTimeDelimiter);let i;if(n.length>2)return t;if(/:/.test(n[0])?i=n[0]:(t.date=n[0],i=n[1],r.timeZoneDelimiter.test(t.date)&&(t.date=e.split(r.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){const e=r.timezone.exec(i);e?(t.time=i.replace(e[1],""),t.timezone=e[1]):t.time=i}return t}(l);let v;if(h.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(h.date,f);v=function(e,t){if(null===t)return new Date(NaN);const n=e.match(i);if(!n)return new Date(NaN);const r=!!n[4],o=s(n[1]),a=s(n[2])-1,d=s(n[3]),l=s(n[4]),p=s(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,l,p)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=7*(t-1)+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}(t,l,p):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(c[t]||(u(e)?29:28))}(t,a,d)&&function(e,t){return t>=1&&t<=(u(e)?366:365)}(t,o)?(e.setUTCFullYear(t,a,Math.max(o,d)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!v||isNaN(+v))return m();const g=+v;let y,b=0;if(h.time&&(b=function(t){const n=t.match(o);if(!n)return NaN;const r=d(n[1]),i=d(n[2]),a=d(n[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(r,i,a)?r*e.millisecondsInHour+i*e.millisecondsInMinute+1e3*a:NaN}(h.time),isNaN(b)))return m();if(!h.timezone){const e=new Date(g+b),t=(0,n.toDate)(0,p?.in);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return y=function(t){if("Z"===t)return 0;const n=t.match(a);if(!n)return 0;const r="+"===n[1]?-1:1,i=parseInt(n[2]),o=n[3]&&parseInt(n[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?r*(i*e.millisecondsInHour+o*e.millisecondsInMinute):NaN}(h.timezone),isNaN(y)?m():(0,n.toDate)(g+b+y,p?.in)};var e=Cb(),t=Nb(),n=qb();const r={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},i=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,o=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,a=/^([+-])(\d{2})(?::?(\d{2}))?$/;function s(e){return e?parseInt(e):1}function d(e){return e&&parseFloat(e.replace(",","."))||0}const c=[31,null,31,30,31,30,31,31,30,31,30,31];function u(e){return e%400==0||e%4==0&&e%100!=0}return zP}var BP,WP={};function ZP(){if(BP)return WP;BP=1,WP.parseJSON=function(t,n){const r=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return(0,e.toDate)(r?Date.UTC(+r[1],+r[2]-1,+r[3],+r[4]-(+r[9]||0)*("-"==r[8]?-1:1),+r[5]-(+r[10]||0)*("-"==r[8]?-1:1),+r[6],+((r[7]||"0")+"00").substring(0,3)):NaN,n?.in)};var e=qb();return WP}var YP,VP={};function HP(){if(YP)return VP;YP=1,VP.previousDay=function(n,r,i){let o=(0,e.getDay)(n,i)-r;return o<=0&&(o+=7),(0,t.subDays)(n,o,i)};var e=OA(),t=$M();return VP}var KP,JP={};function QP(){if(KP)return JP;KP=1,JP.previousFriday=function(t,n){return(0,e.previousDay)(t,5,n)};var e=HP();return JP}var XP,ej={};function tj(){if(XP)return ej;XP=1,ej.previousMonday=function(t,n){return(0,e.previousDay)(t,1,n)};var e=HP();return ej}var nj,rj={};function ij(){if(nj)return rj;nj=1,rj.previousSaturday=function(t,n){return(0,e.previousDay)(t,6,n)};var e=HP();return rj}var oj,aj={};function sj(){if(oj)return aj;oj=1,aj.previousSunday=function(t,n){return(0,e.previousDay)(t,0,n)};var e=HP();return aj}var dj,cj={};function uj(){if(dj)return cj;dj=1,cj.previousThursday=function(t,n){return(0,e.previousDay)(t,4,n)};var e=HP();return cj}var lj,pj={};function mj(){if(lj)return pj;lj=1,pj.previousTuesday=function(t,n){return(0,e.previousDay)(t,2,n)};var e=HP();return pj}var fj,hj={};function vj(){if(fj)return hj;fj=1,hj.previousWednesday=function(t,n){return(0,e.previousDay)(t,3,n)};var e=HP();return hj}var gj,yj={};function bj(){if(gj)return yj;gj=1,yj.quartersToMonths=function(t){return Math.trunc(t*e.monthsInQuarter)};var e=Cb();return yj}var wj,$j={};function Ij(){if(wj)return $j;wj=1,$j.quartersToYears=function(t){return Math.trunc(t/e.quartersInYear)};var e=Cb();return $j}var kj,xj={};function Ej(){if(kj)return xj;kj=1,xj.roundToNearestHours=function(r,i){const o=i?.nearestTo??1;if(o<1||o>12)return(0,t.constructFrom)(i?.in||r,NaN);const a=(0,n.toDate)(r,i?.in),s=a.getMinutes()/60,d=a.getSeconds()/60/60,c=a.getMilliseconds()/1e3/60/60,u=a.getHours()+s+d+c,l=(0,e.getRoundingMethod)(i?.roundingMethod??"round")(u/o)*o;return a.setHours(l,0,0,0),a};var e=$I(),t=Nb(),n=qb();return xj}var Aj,Tj={};function Oj(){if(Aj)return Tj;Aj=1,Tj.roundToNearestMinutes=function(r,i){const o=i?.nearestTo??1;if(o<1||o>30)return(0,t.constructFrom)(r,NaN);const a=(0,n.toDate)(r,i?.in),s=a.getSeconds()/60,d=a.getMilliseconds()/1e3/60,c=a.getMinutes()+s+d,u=(0,e.getRoundingMethod)(i?.roundingMethod??"round")(c/o)*o;return a.setMinutes(u,0,0),a};var e=$I(),t=Nb(),n=qb();return Tj}var _j,Dj={};function Sj(){if(_j)return Dj;_j=1,Dj.secondsToHours=function(t){return Math.trunc(t/e.secondsInHour)};var e=Cb();return Dj}var Mj,Pj={};function jj(){if(Mj)return Pj;Mj=1,Pj.secondsToMilliseconds=function(t){return t*e.millisecondsInSecond};var e=Cb();return Pj}var Cj,Nj={};function Rj(){if(Cj)return Nj;Cj=1,Nj.secondsToMinutes=function(t){return Math.trunc(t/e.secondsInMinute)};var e=Cb();return Nj}var Uj,Lj,qj={},Gj={};function zj(){if(Uj)return Gj;Uj=1,Gj.setMonth=function(r,i,o){const a=(0,n.toDate)(r,o?.in),s=a.getFullYear(),d=a.getDate(),c=(0,e.constructFrom)(o?.in||r,0);c.setFullYear(s,i,15),c.setHours(0,0,0,0);const u=(0,t.getDaysInMonth)(c);return a.setMonth(i,Math.min(d,u)),a};var e=Nb(),t=SA(),n=qb();return Gj}function Fj(){if(Lj)return qj;Lj=1,qj.set=function(r,i,o){let a=(0,n.toDate)(r,o?.in);return isNaN(+a)?(0,e.constructFrom)(o?.in||r,NaN):(null!=i.year&&a.setFullYear(i.year),null!=i.month&&(a=(0,t.setMonth)(a,i.month)),null!=i.date&&a.setDate(i.date),null!=i.hours&&a.setHours(i.hours),null!=i.minutes&&a.setMinutes(i.minutes),null!=i.seconds&&a.setSeconds(i.seconds),null!=i.milliseconds&&a.setMilliseconds(i.milliseconds),a)};var e=Nb(),t=zj(),n=qb();return qj}var Bj,Wj={};function Zj(){if(Bj)return Wj;Bj=1,Wj.setDate=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setDate(n),i};var e=qb();return Wj}var Yj,Vj={};function Hj(){if(Yj)return Vj;Yj=1,Vj.setDayOfYear=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setMonth(0),i.setDate(n),i};var e=qb();return Vj}var Kj,Jj={};function Qj(){if(Kj)return Jj;Kj=1,Jj.setDefaultOptions=function(t){const n={},r=(0,e.getDefaultOptions)();for(const e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e]);for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(void 0===t[e]?delete n[e]:n[e]=t[e]);(0,e.setDefaultOptions)(n)};var e=ww();return Jj}var Xj,eC={};function tC(){if(Xj)return eC;Xj=1,eC.setHours=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setHours(n),i};var e=qb();return eC}var nC,rC={};function iC(){if(nC)return rC;nC=1,rC.setMilliseconds=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setMilliseconds(n),i};var e=qb();return rC}var oC,aC={};function sC(){if(oC)return aC;oC=1,aC.setMinutes=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setMinutes(n),i};var e=qb();return aC}var dC,cC={};function uC(){if(dC)return cC;dC=1,cC.setQuarter=function(n,r,i){const o=(0,t.toDate)(n,i?.in),a=r-(Math.trunc(o.getMonth()/3)+1);return(0,e.setMonth)(o,o.getMonth()+3*a)};var e=zj(),t=qb();return cC}var lC,pC={};function mC(){if(lC)return pC;lC=1,pC.setSeconds=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setSeconds(n),i};var e=qb();return pC}var fC,hC={};function vC(){if(fC)return hC;fC=1,hC.setWeekYear=function(o,a,s){const d=(0,e.getDefaultOptions)(),c=s?.firstWeekContainsDate??s?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,u=(0,n.differenceInCalendarDays)((0,i.toDate)(o,s?.in),(0,r.startOfWeekYear)(o,s),s),l=(0,t.constructFrom)(s?.in||o,0);l.setFullYear(a,0,c),l.setHours(0,0,0,0);const p=(0,r.startOfWeekYear)(l,s);return p.setDate(p.getDate()+u),p};var e=ww(),t=Nb(),n=Nw(),r=kE(),i=qb();return hC}var gC,yC={};function bC(){if(gC)return yC;gC=1,yC.setYear=function(n,r,i){const o=(0,t.toDate)(n,i?.in);return isNaN(+o)?(0,e.constructFrom)(i?.in||n,NaN):(o.setFullYear(r),o)};var e=Nb(),t=qb();return yC}var wC,$C={};function IC(){if(wC)return $C;wC=1,$C.startOfDecade=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getFullYear(),o=10*Math.floor(i/10);return r.setFullYear(o,0,1),r.setHours(0,0,0,0),r};var e=qb();return $C}var kC,xC={};function EC(){if(kC)return xC;kC=1,xC.startOfToday=function(t){return(0,e.startOfDay)(Date.now(),t)};var e=Cw();return xC}var AC,TC={};function OC(){if(AC)return TC;AC=1,TC.startOfTomorrow=function(n){const r=(0,t.constructNow)(n?.in),i=r.getFullYear(),o=r.getMonth(),a=r.getDate(),s=(0,e.constructFrom)(n?.in,0);return s.setFullYear(i,o,a+1),s.setHours(0,0,0,0),s};var e=Nb(),t=S$();return TC}var _C,DC={};function SC(){if(_C)return DC;_C=1,DC.startOfYesterday=function(t){const n=(0,e.constructNow)(t?.in),r=n.getFullYear(),i=n.getMonth(),o=n.getDate(),a=(0,e.constructNow)(t?.in);return a.setFullYear(r,i,o-1),a.setHours(0,0,0,0),a};var e=S$();return DC}var MC,PC,jC={},CC={};function NC(){if(MC)return CC;MC=1,CC.subMonths=function(t,n,r){return(0,e.addMonths)(t,-n,r)};var e=Wb();return CC}function RC(){if(PC)return jC;PC=1,jC.sub=function(r,i,o){const{years:a=0,months:s=0,weeks:d=0,days:c=0,hours:u=0,minutes:l=0,seconds:p=0}=i,m=(0,n.subMonths)(r,s+12*a,o),f=(0,t.subDays)(m,c+7*d,o),h=1e3*(p+60*(l+60*u));return(0,e.constructFrom)(o?.in||r,+f-h)};var e=Nb(),t=$M(),n=NC();return jC}var UC,LC={};function qC(){if(UC)return LC;UC=1,LC.subBusinessDays=function(t,n,r){return(0,e.addBusinessDays)(t,-n,r)};var e=iw();return LC}var GC,zC={};function FC(){if(GC)return zC;GC=1,zC.subHours=function(t,n,r){return(0,e.addHours)(t,-n,r)};var e=uw();return zC}var BC,WC={};function ZC(){if(BC)return WC;BC=1,WC.subMilliseconds=function(t,n,r){return(0,e.addMilliseconds)(t,-n,r)};var e=cw();return WC}var YC,VC={};function HC(){if(YC)return VC;YC=1,VC.subMinutes=function(t,n,r){return(0,e.addMinutes)(t,-n,r)};var e=Zw();return VC}var KC,JC={};function QC(){if(KC)return JC;KC=1,JC.subQuarters=function(t,n,r){return(0,e.addQuarters)(t,-n,r)};var e=Hw();return JC}var XC,eN={};function tN(){if(XC)return eN;XC=1,eN.subSeconds=function(t,n,r){return(0,e.addSeconds)(t,-n,r)};var e=Qw();return eN}var nN,rN={};function iN(){if(nN)return rN;nN=1,rN.subWeeks=function(t,n,r){return(0,e.addWeeks)(t,-n,r)};var e=t$();return rN}var oN,aN={};function sN(){if(oN)return aN;oN=1,aN.subYears=function(t,n,r){return(0,e.addYears)(t,-n,r)};var e=i$();return aN}var dN,cN={};function uN(){if(dN)return cN;dN=1,cN.weeksToDays=function(t){return Math.trunc(t*e.daysInWeek)};var e=Cb();return cN}var lN,pN={};function mN(){if(lN)return pN;lN=1,pN.yearsToDays=function(t){return Math.trunc(t*e.daysInYear)};var e=Cb();return pN}var fN,hN={};function vN(){if(fN)return hN;fN=1,hN.yearsToMonths=function(t){return Math.trunc(t*e.monthsInYear)};var e=Cb();return hN}var gN,yN,bN={};function wN(){if(gN)return bN;gN=1,bN.yearsToQuarters=function(t){return Math.trunc(t*e.quartersInYear)};var e=Cb();return bN}function $N(){return yN||(yN=1,function(e){var t=Zb();Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}));var n=iw();Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))}));var r=Gb();Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))}));var i=uw();Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===i[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))}));var o=Fw();Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===o[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}));var a=cw();Object.keys(a).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===a[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}}))}));var s=Zw();Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===s[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}}))}));var d=Wb();Object.keys(d).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===d[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))}));var c=Hw();Object.keys(c).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===c[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}}))}));var u=Qw();Object.keys(u).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===u[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}}))}));var l=t$();Object.keys(l).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===l[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}}))}));var p=i$();Object.keys(p).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===p[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}}))}));var m=s$();Object.keys(m).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===m[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return m[t]}}))}));var f=v$();Object.keys(f).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===f[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return f[t]}}))}));var h=b$();Object.keys(h).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===h[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return h[t]}}))}));var v=I$();Object.keys(v).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===v[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return v[t]}}))}));var g=E$();Object.keys(g).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===g[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return g[t]}}))}));var y=O$();Object.keys(y).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===y[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return y[t]}}))}));var b=Nb();Object.keys(b).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===b[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return b[t]}}))}));var w=S$();Object.keys(w).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===w[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return w[t]}}))}));var $=j$();Object.keys($).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===$[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return $[t]}}))}));var I=Z$();Object.keys(I).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===I[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return I[t]}}))}));var k=Nw();Object.keys(k).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===k[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return k[t]}}))}));var x=H$();Object.keys(x).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===x[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return x[t]}}))}));var E=Q$();Object.keys(E).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===E[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return E[t]}}))}));var A=tI();Object.keys(A).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===A[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return A[t]}}))}));var T=sI();Object.keys(T).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===T[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return T[t]}}))}));var O=uI();Object.keys(O).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===O[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return O[t]}}))}));var _=mI();Object.keys(_).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===_[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return _[t]}}))}));var D=vI();Object.keys(D).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===D[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return D[t]}}))}));var S=II();Object.keys(S).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===S[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return S[t]}}))}));var M=OI();Object.keys(M).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===M[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return M[t]}}))}));var P=SI();Object.keys(P).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===P[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return P[t]}}))}));var j=jI();Object.keys(j).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===j[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return j[t]}}))}));var C=ZI();Object.keys(C).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===C[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return C[t]}}))}));var N=HI();Object.keys(N).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===N[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return N[t]}}))}));var R=QI();Object.keys(R).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===R[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return R[t]}}))}));var U=tk();Object.keys(U).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===U[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return U[t]}}))}));var L=ik();Object.keys(L).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===L[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return L[t]}}))}));var q=uk();Object.keys(q).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===q[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return q[t]}}))}));var G=mk();Object.keys(G).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===G[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return G[t]}}))}));var z=vk();Object.keys(z).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===z[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return z[t]}}))}));var F=bk();Object.keys(F).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===F[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return F[t]}}))}));var B=Ek();Object.keys(B).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===B[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return B[t]}}))}));var W=Ok();Object.keys(W).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===W[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return W[t]}}))}));var Z=Sk();Object.keys(Z).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Z[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Z[t]}}))}));var Y=Rk();Object.keys(Y).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Y[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Y[t]}}))}));var V=Zk();Object.keys(V).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===V[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return V[t]}}))}));var H=Hk();Object.keys(H).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===H[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return H[t]}}))}));var K=LI();Object.keys(K).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===K[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return K[t]}}))}));var J=Qk();Object.keys(J).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===J[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return J[t]}}))}));var Q=tx();Object.keys(Q).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Q[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Q[t]}}))}));var X=sx();Object.keys(X).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===X[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return X[t]}}))}));var ee=ux();Object.keys(ee).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ee[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ee[t]}}))}));var te=mx();Object.keys(te).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===te[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return te[t]}}))}));var ne=BI();Object.keys(ne).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ne[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ne[t]}}))}));var re=vx();Object.keys(re).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===re[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return re[t]}}))}));var ie=bx();Object.keys(ie).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ie[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ie[t]}}))}));var oe=Ix();Object.keys(oe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===oe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return oe[t]}}))}));var ae=Ex();Object.keys(ae).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ae[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ae[t]}}))}));var se=ax();Object.keys(se).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===se[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return se[t]}}))}));var de=Gk();Object.keys(de).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===de[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return de[t]}}))}));var ce=Ox();Object.keys(ce).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ce[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ce[t]}}))}));var ue=qE();Object.keys(ue).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ue[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ue[t]}}))}));var le=FE();Object.keys(le).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===le[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return le[t]}}))}));var pe=ZE();Object.keys(pe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===pe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return pe[t]}}))}));var me=HE();Object.keys(me).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===me[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return me[t]}}))}));var fe=QE();Object.keys(fe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===fe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return fe[t]}}))}));var he=tA();Object.keys(he).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===he[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return he[t]}}))}));var ve=iA();Object.keys(ve).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ve[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ve[t]}}))}));var ge=sA();Object.keys(ge).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ge[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ge[t]}}))}));var ye=uA();Object.keys(ye).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ye[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ye[t]}}))}));var be=mA();Object.keys(be).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===be[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return be[t]}}))}));var we=vA();Object.keys(we).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===we[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return we[t]}}))}));var $e=bA();Object.keys($e).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===$e[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return $e[t]}}))}));var Ie=IA();Object.keys(Ie).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ie[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ie[t]}}))}));var ke=EA();Object.keys(ke).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ke[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ke[t]}}))}));var xe=OA();Object.keys(xe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===xe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return xe[t]}}))}));var Ee=pE();Object.keys(Ee).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ee[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ee[t]}}))}));var Ae=SA();Object.keys(Ae).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ae[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ae[t]}}))}));var Te=RA();Object.keys(Te).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Te[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Te[t]}}))}));var Oe=qA();Object.keys(Oe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Oe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Oe[t]}}))}));var _e=FA();Object.keys(_e).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===_e[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return _e[t]}}))}));var De=ZA();Object.keys(De).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===De[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return De[t]}}))}));var Se=HA();Object.keys(Se).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Se[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Se[t]}}))}));var Me=hE();Object.keys(Me).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Me[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Me[t]}}))}));var Pe=kw();Object.keys(Pe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Pe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Pe[t]}}))}));var je=QA();Object.keys(je).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===je[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return je[t]}}))}));var Ce=tT();Object.keys(Ce).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ce[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ce[t]}}))}));var Ne=iT();Object.keys(Ne).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ne[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ne[t]}}))}));var Re=sT();Object.keys(Re).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Re[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Re[t]}}))}));var Ue=uT();Object.keys(Ue).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ue[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ue[t]}}))}));var Le=aI();Object.keys(Le).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Le[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Le[t]}}))}));var qe=mT();Object.keys(qe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===qe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return qe[t]}}))}));var Ge=vT();Object.keys(Ge).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ge[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ge[t]}}))}));var ze=bT();Object.keys(ze).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ze[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ze[t]}}))}));var Fe=xE();Object.keys(Fe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Fe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Fe[t]}}))}));var Be=IT();Object.keys(Be).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Be[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Be[t]}}))}));var We=IE();Object.keys(We).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===We[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return We[t]}}))}));var Ze=OT();Object.keys(Ze).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ze[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ze[t]}}))}));var Ye=ST();Object.keys(Ye).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ye[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ye[t]}}))}));var Ve=jT();Object.keys(Ve).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ve[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ve[t]}}))}));var He=RT();Object.keys(He).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===He[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return He[t]}}))}));var Ke=qT();Object.keys(Ke).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ke[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ke[t]}}))}));var Je=FT();Object.keys(Je).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Je[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Je[t]}}))}));var Qe=ZT();Object.keys(Qe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Qe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Qe[t]}}))}));var Xe=HT();Object.keys(Xe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Xe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Xe[t]}}))}));var et=QT();Object.keys(et).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===et[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return et[t]}}))}));var tt=tO();Object.keys(tt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===tt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return tt[t]}}))}));var nt=iO();Object.keys(nt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===nt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return nt[t]}}))}));var rt=B$();Object.keys(rt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===rt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return rt[t]}}))}));var it=sO();Object.keys(it).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===it[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return it[t]}}))}));var ot=uO();Object.keys(ot).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ot[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ot[t]}}))}));var at=mO();Object.keys(at).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===at[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return at[t]}}))}));var st=vO();Object.keys(st).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===st[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return st[t]}}))}));var dt=bO();Object.keys(dt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===dt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return dt[t]}}))}));var ct=WI();Object.keys(ct).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ct[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ct[t]}}))}));var ut=NA();Object.keys(ut).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ut[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ut[t]}}))}));var lt=qD();Object.keys(lt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===lt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return lt[t]}}))}));var pt=FD();Object.keys(pt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===pt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return pt[t]}}))}));var mt=ZD();Object.keys(mt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===mt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return mt[t]}}))}));var ft=U$();Object.keys(ft).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ft[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ft[t]}}))}));var ht=QD();Object.keys(ht).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ht[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ht[t]}}))}));var vt=iS();Object.keys(vt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===vt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return vt[t]}}))}));var gt=sS();Object.keys(gt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===gt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return gt[t]}}))}));var yt=mS();Object.keys(yt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===yt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return yt[t]}}))}));var bt=vS();Object.keys(bt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===bt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return bt[t]}}))}));var wt=bS();Object.keys(wt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===wt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return wt[t]}}))}));var $t=ES();Object.keys($t).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===$t[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return $t[t]}}))}));var It=rS();Object.keys(It).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===It[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return It[t]}}))}));var kt=OS();Object.keys(kt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===kt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return kt[t]}}))}));var xt=Kb();Object.keys(xt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===xt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return xt[t]}}))}));var Et=Xb();Object.keys(Et).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Et[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Et[t]}}))}));var At=SS();Object.keys(At).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===At[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return At[t]}}))}));var Tt=jS();Object.keys(Tt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Tt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Tt[t]}}))}));var Ot=RS();Object.keys(Ot).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ot[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ot[t]}}))}));var _t=qS();Object.keys(_t).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===_t[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return _t[t]}}))}));var Dt=FS();Object.keys(Dt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Dt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Dt[t]}}))}));var St=ZS();Object.keys(St).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===St[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return St[t]}}))}));var Mt=HS();Object.keys(Mt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Mt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Mt[t]}}))}));var Pt=QS();Object.keys(Pt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Pt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Pt[t]}}))}));var jt=tM();Object.keys(jt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===jt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return jt[t]}}))}));var Ct=iM();Object.keys(Ct).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ct[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ct[t]}}))}));var Nt=sM();Object.keys(Nt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Nt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Nt[t]}}))}));var Rt=uM();Object.keys(Rt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Rt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Rt[t]}}))}));var Ut=W$();Object.keys(Ut).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ut[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ut[t]}}))}));var Lt=mM();Object.keys(Lt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Lt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Lt[t]}}))}));var qt=rw();Object.keys(qt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===qt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return qt[t]}}))}));var Gt=vM();Object.keys(Gt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Gt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Gt[t]}}))}));var zt=IM();Object.keys(zt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===zt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return zt[t]}}))}));var Ft=EM();Object.keys(Ft).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ft[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ft[t]}}))}));var Bt=SM();Object.keys(Bt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Bt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Bt[t]}}))}));var Wt=jM();Object.keys(Wt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Wt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Wt[t]}}))}));var Zt=TT();Object.keys(Zt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Zt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Zt[t]}}))}));var Yt=RM();Object.keys(Yt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Yt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Yt[t]}}))}));var Vt=DM();Object.keys(Vt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Vt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Vt[t]}}))}));var Ht=qM();Object.keys(Ht).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ht[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ht[t]}}))}));var Kt=FM();Object.keys(Kt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Kt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Kt[t]}}))}));var Jt=l$();Object.keys(Jt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Jt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Jt[t]}}))}));var Qt=ZM();Object.keys(Qt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Qt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Qt[t]}}))}));var Xt=HM();Object.keys(Xt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Xt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Xt[t]}}))}));var en=QM();Object.keys(en).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===en[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return en[t]}}))}));var tn=tP();Object.keys(tn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===tn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return tn[t]}}))}));var nn=h$();Object.keys(nn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===nn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return nn[t]}}))}));var rn=iP();Object.keys(rn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===rn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return rn[t]}}))}));var on=sP();Object.keys(on).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===on[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return on[t]}}))}));var an=uP();Object.keys(an).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===an[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return an[t]}}))}));var sn=mP();Object.keys(sn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===sn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return sn[t]}}))}));var dn=vP();Object.keys(dn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===dn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return dn[t]}}))}));var cn=bP();Object.keys(cn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===cn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return cn[t]}}))}));var un=IP();Object.keys(un).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===un[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return un[t]}}))}));var ln=EP();Object.keys(ln).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ln[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ln[t]}}))}));var pn=OP();Object.keys(pn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===pn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return pn[t]}}))}));var mn=SP();Object.keys(mn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===mn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return mn[t]}}))}));var fn=jP();Object.keys(fn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===fn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return fn[t]}}))}));var hn=RP();Object.keys(hn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===hn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return hn[t]}}))}));var vn=qP();Object.keys(vn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===vn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return vn[t]}}))}));var gn=LD();Object.keys(gn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===gn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return gn[t]}}))}));var yn=FP();Object.keys(yn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===yn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return yn[t]}}))}));var bn=ZP();Object.keys(bn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===bn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return bn[t]}}))}));var wn=HP();Object.keys(wn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===wn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return wn[t]}}))}));var $n=QP();Object.keys($n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===$n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return $n[t]}}))}));var In=tj();Object.keys(In).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===In[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return In[t]}}))}));var kn=ij();Object.keys(kn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===kn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return kn[t]}}))}));var xn=sj();Object.keys(xn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===xn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return xn[t]}}))}));var En=uj();Object.keys(En).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===En[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return En[t]}}))}));var An=mj();Object.keys(An).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===An[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return An[t]}}))}));var Tn=vj();Object.keys(Tn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Tn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Tn[t]}}))}));var On=bj();Object.keys(On).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===On[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return On[t]}}))}));var _n=Ij();Object.keys(_n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===_n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return _n[t]}}))}));var Dn=Ej();Object.keys(Dn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Dn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Dn[t]}}))}));var Sn=Oj();Object.keys(Sn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Sn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Sn[t]}}))}));var Mn=Sj();Object.keys(Mn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Mn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Mn[t]}}))}));var Pn=jj();Object.keys(Pn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Pn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Pn[t]}}))}));var jn=Rj();Object.keys(jn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===jn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return jn[t]}}))}));var Cn=Fj();Object.keys(Cn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Cn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Cn[t]}}))}));var Nn=Zj();Object.keys(Nn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Nn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Nn[t]}}))}));var Rn=P_();Object.keys(Rn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Rn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Rn[t]}}))}));var Un=Hj();Object.keys(Un).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Un[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Un[t]}}))}));var Ln=Qj();Object.keys(Ln).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ln[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ln[t]}}))}));var qn=tC();Object.keys(qn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===qn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return qn[t]}}))}));var Gn=W_();Object.keys(Gn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Gn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Gn[t]}}))}));var zn=$_();Object.keys(zn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===zn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return zn[t]}}))}));var Fn=zw();Object.keys(Fn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Fn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Fn[t]}}))}));var Bn=iC();Object.keys(Bn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Bn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Bn[t]}}))}));var Wn=sC();Object.keys(Wn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Wn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Wn[t]}}))}));var Zn=zj();Object.keys(Zn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Zn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Zn[t]}}))}));var Yn=uC();Object.keys(Yn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Yn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Yn[t]}}))}));var Vn=mC();Object.keys(Vn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Vn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Vn[t]}}))}));var Hn=h_();Object.keys(Hn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Hn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Hn[t]}}))}));var Kn=vC();Object.keys(Kn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Kn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Kn[t]}}))}));var Jn=bC();Object.keys(Jn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Jn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Jn[t]}}))}));var Qn=Cw();Object.keys(Qn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Qn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Qn[t]}}))}));var Xn=IC();Object.keys(Xn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Xn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Xn[t]}}))}));var er=JD();Object.keys(er).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===er[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return er[t]}}))}));var tr=Iw();Object.keys(tr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===tr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return tr[t]}}))}));var nr=Gw();Object.keys(nr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===nr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return nr[t]}}))}));var rr=pS();Object.keys(rr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===rr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return rr[t]}}))}));var ir=Nk();Object.keys(ir).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ir[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ir[t]}}))}));var or=xk();Object.keys(or).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===or[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return or[t]}}))}));var ar=xS();Object.keys(ar).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ar[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ar[t]}}))}));var sr=EC();Object.keys(sr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===sr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return sr[t]}}))}));var dr=OC();Object.keys(dr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===dr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return dr[t]}}))}));var cr=$w();Object.keys(cr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===cr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return cr[t]}}))}));var ur=kE();Object.keys(ur).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ur[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ur[t]}}))}));var lr=Wk();Object.keys(lr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===lr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return lr[t]}}))}));var pr=SC();Object.keys(pr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===pr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return pr[t]}}))}));var mr=RC();Object.keys(mr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===mr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return mr[t]}}))}));var fr=qC();Object.keys(fr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===fr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return fr[t]}}))}));var hr=$M();Object.keys(hr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===hr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return hr[t]}}))}));var vr=FC();Object.keys(vr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===vr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return vr[t]}}))}));var gr=TI();Object.keys(gr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===gr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return gr[t]}}))}));var yr=ZC();Object.keys(yr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===yr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return yr[t]}}))}));var br=HC();Object.keys(br).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===br[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return br[t]}}))}));var wr=NC();Object.keys(wr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===wr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return wr[t]}}))}));var $r=QC();Object.keys($r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===$r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return $r[t]}}))}));var Ir=tN();Object.keys(Ir).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ir[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ir[t]}}))}));var kr=iN();Object.keys(kr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===kr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return kr[t]}}))}));var xr=sN();Object.keys(xr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===xr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return xr[t]}}))}));var Er=qb();Object.keys(Er).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Er[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Er[t]}}))}));var Ar=AO();Object.keys(Ar).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ar[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ar[t]}}))}));var Tr=uN();Object.keys(Tr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Tr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Tr[t]}}))}));var Or=mN();Object.keys(Or).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Or[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Or[t]}}))}));var _r=vN();Object.keys(_r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===_r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return _r[t]}}))}));var Dr=wN();Object.keys(Dr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Dr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Dr[t]}}))}))}(Db)),Db}var IN=$N();function kN(e,t){const[n,r,i,o,a,s]=function(e){const[t,n]=e.split("T");if(!t||!n)throw new Error(`Invalid naive datetime format: ${e}`);const r=[...t.split("-"),...n.split(":")].map(Number);if(r.length<6)throw new Error(`Invalid naive datetime format: ${e}`);return r.slice(0,6)}(e);return new _b.TZDate(n,r-1,i,o,a,s,t)}function xN(e,t){const n=IN.parse(e,"yyyy-MM-dd'T'HH:mm:ss",new Date);return IN.format(n,t)}function EN(e,t){return kN(e,t)<new _b.TZDate(new Date,t)}function AN(e,t){return kN(e,t)>new _b.TZDate(new Date,t)}function TN(e){return e?.trim().toUpperCase()??""}function ON(e){return null==e||-1===e?Number.POSITIVE_INFINITY:Math.max(0,e)}function _N(e){return Math.min(ON(e.admission.available),ON(e.admission.limit),ON(e.section?.available),ON(e.section?.limit))}function DN(e){return _N(e)<=0}function SN(e,t){return`${e}::${t||"none"}`}function MN(e){return e?"total"in e&&"number"==typeof e.total?e.total:(e.base??0)+(e.booking??0):0}function PN(e){return e.location?.timeZone??"UTC"}function jN(e){return new Map(e.sections.map((e=>[e.id,e])))}function CN(e,t){return!e.sectionId||t.has(e.sectionId)}function NN(e){const t=jN(e),n=PN(e);return e.admissions.some((e=>function(e,t,n){return!!CN(e,n)&&!!function(e,t){return!AN(e.saleStartsAt,t)&&!EN(e.saleEndsAt,t)}(e,t)&&function(e,t){return _N({admission:e,section:t})>0}(e,function(e,t){if(e.sectionId)return t.get(e.sectionId)}(e,n))}(e,n,t)))}function RN(e,t){return AN(e.saleStartsAt,t)?{text:`On sale ${xN(e.saleStartsAt,"EEE, MMM d · h:mm a")}`,tone:"muted"}:null}function UN(e){const t=function(e){return EN(e.entryEndsAt,PN(e))}(e),n=e.url||void 0,r=function(e){return!NN(e)&&"DOOR"===function(e){const t=jN(e),n=e.admissions.filter((e=>"HIDDEN"!==e.visibility&&CN(e,t)));if(0!==n.length)return NN(e)?"ONLINE":function(e,t){const n=e.filter((e=>EN(e.saleEndsAt,t)));if(0!==n.length)return n.some((e=>"DOOR"===e.saleEndsBehavior))?"DOOR":n.every((e=>"SOLD_OUT"===e.saleEndsBehavior))?"SOLD_OUT":"SALE_ENDED"}(n,PN(e))}(e)}(e),i=!t&&Boolean(n),o=!t&&!i&&function(e){const t=jN(e);return e.admissions.some((e=>CN(e,t)))}(e);return{externalTicketUrl:n,isDoorOnly:r,isEnded:t,isUnavailableForSale:!r&&!NN(e)&&o,showExternalTicketing:i,showTicketing:o,ticketHeading:r?"Tickets at the Door":"Get Tickets"}}function LN(e,t){return e.map((e=>({type:"section",section:e,admissions:t.filter((t=>t.sectionId===e.id)).sort(((e,t)=>e.order-t.order))}))).filter((e=>e.admissions.length>0))}function qN(e){return"section"===e.type?e.section.order:e.admission.order}function GN(e,t,n){return[!t,!n,(e.available??0)>0,(e.available??0)<20].every(Boolean)}function zN(e){const t=PN(e.event),n=AN(e.admission.saleStartsAt,t),r=EN(e.admission.saleEndsAt,t),i=r&&"SOLD_OUT"===e.admission.saleEndsBehavior,o=Boolean(e.sectionSoldOut)||i||DN({admission:e.admission,section:e.section}),a=o||n||r,s=function(e){return"DOOR"===e.value&&(e.soldOut||e.saleEnded)?{text:"Available At Door",tone:"success"}:e.soldOut?{text:"Sold Out",tone:"destructive"}:e.saleEnded?{text:"Sale Ended",tone:"destructive"}:null}({saleEnded:r,soldOut:o,value:e.admission.saleEndsBehavior});return{disabled:a,label:RN(e.admission,t),maxQuantity:(d=e.admission,c=e.section,function(e,t){return-1===(e.available??0)&&-1===e.capacity&&(!t||-1===(t.available??0))}(d,c)?10:Math.min(_N({admission:d,section:c}),10)),postSale:r,showScarcity:GN(e.admission,o,a),soldOut:o,statusLabel:s?.text??null,statusTone:s?.tone??null};var d,c}function FN(e){return function(e){return new Map((e?.items??[]).filter((e=>"ADMISSION"===e.kind&&e.admissionId)).map((e=>{return[(t={admissionId:e.admissionId??"",sectionId:e.sectionId},`${t.admissionId}::${t.sectionId??"none"}`),e];var t})))}(e)}function BN(e){const t=new Set(e.sections.map((e=>e.id))),n=PN(e);return e.admissions.filter((e=>!(e.sectionId&&!t.has(e.sectionId)||AN(e.saleStartsAt,n)||EN(e.saleEndsAt,n)))).map((e=>({admissionId:e.id??"",quantity:1,sectionId:e.sectionId??void 0})))}const WN=e=>e.price?.total??0;function ZN(e,t){return e instanceof Error?e.message:t}function YN(e){try{return JSON.parse(e)}catch{return null}}function VN(e){return[e.location?.venue?.name,e.location?.name].find(Boolean)}function HN(e){return e||void 0}function KN(e){return Boolean(e?.items?.length)}function JN(e){return{product_id:e.admissionId,sku:e.admissionId,quantity:e.quantity,admission_id:e.admissionId,section_id:e.sectionId}}function QN({event:e,admission:t,section:n}){return{name:t?.name,category:e?.name,variant:n?.name}}function XN(e){return{price:MN(e.price)/100,price_base:e.price?.base,price_booking_fee:e.price?.booking}}const eR=()=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("path",{d:"M8 2v4"}),r("path",{d:"M16 2v4"}),r("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}),r("path",{d:"M3 10h18"})),tR=()=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"}),r("circle",{cx:"12",cy:"10",r:"3"})),nR=class{constructor(n){e(this,n),this.checkoutInit=t(this,"checkoutInit"),this.cartUpdate=t(this,"cartUpdate"),this.errorOccurred=t(this,"errorOccurred")}get host(){return n(this)}tenantId;eventId;apiUrl="https://api.session.services";locale="en-US";returnUrl;couponCode;initialAdmissionPrices;initialPreviewQuote;passcode;stickyCheckout=!1;theme="system";enableAnalytics=!0;debugAnalytics=!1;event=null;selectedItems=new Map;quote=null;previewQuote=null;loading=!0;error=null;quoteLoading=!1;previewLoading=!1;quoteError=null;couponError=null;couponInput="";appliedCouponCode="";passcodeInput="";activePasscode="";passcodeDenied=!1;selectionPrompt=!1;checkoutLoading=!1;currentTheme="light";openModalAdmissionId=null;checkoutInit;cartUpdate;errorOccurred;client;analytics;mediaQueryList;requestId=0;previewRequestId=0;quoteTimer;promptTimer;async componentWillLoad(){"undefined"!=typeof window&&window.addEventListener("popstate",this.handleDiscountQueryChange),await this.initializeComponent()}async propsChanged(){await this.initializeComponent()}async couponCodeChanged(){await this.setInitialCoupon()}themeChanged(){this.setupTheme()}disconnectedCallback(){"undefined"!=typeof window&&window.removeEventListener("popstate",this.handleDiscountQueryChange),this.mediaQueryList&&this.mediaQueryList.removeEventListener("change",this.handleSystemThemeChange),this.openModalAdmissionId&&document.removeEventListener("keydown",this.handleModalKeyDown),this.clearQuoteTimer(),this.clearPromptTimer()}handleDiscountQueryChange=()=>{TN(this.couponCode)||this.setInitialCoupon().catch((()=>{}))};async initializeComponent(){if(this.error=null,this.event=null,this.selectedItems=new Map,this.quote=null,this.previewQuote=null,this.quoteError=null,this.couponError=null,this.couponInput=this.initialCouponCode(),this.appliedCouponCode=this.couponInput,this.activePasscode=this.passcode||"",this.passcodeInput=this.activePasscode,this.passcodeDenied=!1,!this.tenantId||!this.eventId)return this.error="Missing required configuration: tenantId and eventId",void(this.loading=!1);this.client=function(e){let t=function(e){return e in Jg?Jg[e]:e}(e.environment);return Q(new Kg(Pg,{url:t,headers:{"x-tenant-id":e.tenantId??"tnt_01jqpj2t2kfvmstt6f6tzkbaf2",...e.headers??{}}}))}({environment:this.apiUrl,tenantId:this.tenantId}),this.setupTheme(),await this.loadEventData()}async setInitialCoupon(){const e=this.initialCouponCode();if(this.couponInput=e,this.quote=null,this.previewQuote=this.activeInitialPreviewQuote(e),this.quoteError=null,this.couponError=null,!e)return this.appliedCouponCode="",void await this.updateQuote();this.selectedItems.size>0?await this.applyCartCoupon(e):this.previewQuote||await this.applyPreviewCoupon(e)}initialCouponCode(){return TN(this.couponCode)||("undefined"==typeof window?"":TN((e=window.location.search,new URLSearchParams(e).get("discount")??"")));var e}parsedInitialPreviewQuote(){return this.initialPreviewQuote?"string"!=typeof this.initialPreviewQuote?this.initialPreviewQuote:YN(this.initialPreviewQuote):null}parsedInitialAdmissionPrices(){if(this.initialAdmissionPrices)return"string"!=typeof this.initialAdmissionPrices?this.initialAdmissionPrices:YN(this.initialAdmissionPrices)??void 0}activeInitialPreviewQuote(e=this.appliedCouponCode){return e?e!==this.initialCouponCode()?null:this.parsedInitialPreviewQuote():null}activeInitialAdmissionPrices(){if(this.appliedCouponCode&&this.appliedCouponCode===this.initialCouponCode())return this.parsedInitialAdmissionPrices()}setupTheme(){this.mediaQueryList&&this.mediaQueryList.removeEventListener("change",this.handleSystemThemeChange),"system"===this.theme?(this.mediaQueryList=window.matchMedia("(prefers-color-scheme: dark)"),this.currentTheme=this.mediaQueryList.matches?"dark":"light",this.mediaQueryList.addEventListener("change",this.handleSystemThemeChange)):this.currentTheme=this.theme}handleSystemThemeChange=e=>{"system"===this.theme&&(this.currentTheme=e.matches?"dark":"light")};trackEvent(e,t={}){const n=this.analyticsContext();n&&n.analytics.track(e,{event_id:this.eventId,team_id:n.event.teamId,promoter_id:n.event.promoterId,event_name:n.event.name,event_slug:n.event.slug,currency:n.event.currency,...t})}analyticsContext(){const e=this.activeAnalytics(),t=this.analyticsEvent();if(e&&t)return{analytics:e,event:t}}activeAnalytics(){if(this.enableAnalytics)return this.analytics}analyticsEvent(){const e=this.event;if(e)return function(e){return Boolean(e.teamId&&e.promoterId)}(e)?e:void 0}getLowestPrice(){const e=this.event;return e?.admissions.length?Math.min(...e.admissions.map((e=>MN(e.price)))):0}getAdmissionListProducts(e){return e.admissions.map(((t,n)=>({product_id:t.id,sku:t.id,name:t.name,category:e.name,price:MN(t.price)/100,quantity:1,position:n+1,admission_id:t.id,section_id:t.sectionId,price_base:t.price?.base,price_booking_fee:t.price?.booking,available:t.available,capacity:t.capacity})))}async loadEventData(){try{this.loading=!0,this.error=null,this.passcodeDenied=!1;const e=await this.client.event.get({key:this.eventId,passcode:this.activePasscode||void 0});this.event=e.event,this.trackLoadedEvent(e.event),await this.updatePreviewQuote()}catch(e){this.passcodeDenied=function(e){const t=ZN(e,"");return!!/incorrect passcode/i.test(t)||"UNAUTHORIZED"===function(e){const t=function(e){if(e&&"object"==typeof e)return e.code}(e);return"string"==typeof t?t:void 0}(e)&&/passcode/i.test(t)}(e),this.error=ZN(e,"Failed to load event data"),this.errorOccurred.emit({error:this.error})}finally{this.loading=!1}}trackLoadedEvent(e){this.setupAnalytics(e),this.trackProductViewed(e),this.trackEvent("Product List Viewed",{list_id:this.eventId,category:"Admissions",products:this.getAdmissionListProducts(e)})}setupAnalytics(e){this.enableAnalytics&&!this.analytics&&e.promoterId&&(this.analytics=function(e){let t,n=e.debug??!1,r=nb(e.client,n),i=function(e){let t=e.getCookie(ps);if(t)return t;let n=fs();return e.setCookie(ps,n),n}(ib),o=function(e){let t=e.getItem(ms);if(t)return t;let n=hs();return e.setItem(ms,n),n}(ib);n&&console.log("[Analytics] Initialized:",{sessionId:i,anonymousId:o});let a=(e,n,r)=>({type:e,name:n,properties:r,context:oy(),timestamp:Date.now(),sessionId:i,anonymousId:o,userId:t}),s=(e,t)=>{r.sendEvent(e,t).catch((e=>{n&&console.error("[Analytics] Failed to send event:",e)}))},d=(e,t)=>{let r=e.promoter_id;return!r&&n&&console.warn(`[Analytics] ${t}() called without promoter_id, skipping`),r};return{track:(e,t={})=>{let n=d(t,"track");n&&s(a("track",e,t),n)},page:(e,t={})=>{let n=d(t,"page");n&&s(a("page",e||"Page Viewed",t),n)},screen:(e,t={})=>{let n=d(t,"screen");n&&s(a("screen",e||"Screen Viewed",t),n)},identify:(e,r={})=>{t=e;let a=r.promoter_id;a&&s({type:"identify",properties:{},context:oy(),timestamp:Date.now(),sessionId:i,anonymousId:o,userId:e,traits:r},a),n&&console.log("[Analytics] User identified:",e)},alias:(e,t)=>{n&&console.log("[Analytics] Alias called:",{userId:e,previousId:t})},group:(e,r={})=>{let a=r.promoter_id;a&&s({type:"group",properties:{},context:oy(),timestamp:Date.now(),sessionId:i,anonymousId:o,userId:t,groupId:e,traits:r},a),n&&console.log("[Analytics] Group called:",{groupId:e,traits:r})},reset:()=>{let e=function(e){let t=fs(),n=hs();return e.setCookie(ps,t),e.setItem(ms,n),{sessionId:t,anonymousId:n}}(ib);i=e.sessionId,o=e.anonymousId,t=void 0,r.clearCache(),n&&console.log("[Analytics] Session reset:",{sessionId:i,anonymousId:o})}}}({client:this.client,debug:this.debugAnalytics}),this.analytics.page("Ticketing Widget",{event_id:this.eventId,team_id:e.teamId,promoter_id:e.promoterId,event_name:e.name,event_slug:e.slug}))}trackProductViewed(e){const t=this.getLowestPrice();this.trackEvent("Product Viewed",{product_id:this.eventId,sku:this.eventId,name:e.name,category:"Event",value:t/100,price:t/100,event_date:e.entryStartsAt,venue_name:VN(e),venue_city:e.location?.city})}async updateQuantity(e,t,n){const r=SN(e,t);await this.setQuantity(e,t,(this.selectedItems.get(r)||0)+n)}async setQuantity(e,t,n){const r=SN(e,t),i=this.event?.admissions.find((t=>t.id===e));if(!i)return;const o=this.selectedItems.get(r)||0,a=Math.max(0,Math.min(n,this.getMaxQuantity(i,t)));if(o===a)return;this.selectionPrompt=!1,this.setSelectedQuantity(r,a);const s=t?this.event?.sections.find((e=>e.id===t)):null;this.trackQuantityChange({admission:i,section:s,sectionId:t,delta:a-o}),this.scheduleQuoteUpdate()}setSelectedQuantity(e,t){0===t?this.selectedItems.delete(e):this.selectedItems.set(e,t),this.selectedItems=new Map(this.selectedItems)}trackQuantityChange(e){e.delta>0?this.trackProductAdded(e):e.delta<0&&this.trackProductRemoved(e)}trackProductAdded(e){this.trackEvent("Product Added",{...this.getQuantityAnalytics(e),price_base:e.admission.price?.base,price_booking_fee:e.admission.price?.booking})}trackProductRemoved(e){this.trackEvent("Product Removed",this.getQuantityAnalytics(e))}getQuantityAnalytics(e){return{product_id:e.admission.id,sku:e.admission.id,name:e.admission.name,category:this.event?.name,variant:e.section?.name,price:MN(e.admission.price)/100,quantity:Math.abs(e.delta),admission_id:e.admission.id,section_id:HN(e.sectionId),section_name:e.section?.name}}async updateQuote(){if(this.clearQuoteTimer(),0===this.selectedItems.size)return this.quote=null,this.quoteError=null,this.quoteLoading=!1,void await this.updatePreviewQuote();this.requestId++;const e=this.requestId;try{this.quoteLoading=!0,this.quoteError=null;const t=await this.fetchCartQuote(this.appliedCouponCode);this.applyQuote(t.quote,e)}catch(t){this.handleQuoteError(e)}finally{e===this.requestId&&(this.quoteLoading=!1)}}scheduleQuoteUpdate(){this.clearQuoteTimer(),0!==this.selectedItems.size?(this.quoteLoading=!0,this.quoteTimer=setTimeout((()=>{this.quoteTimer=void 0,this.updateQuote().catch((()=>{}))}),150)):this.updateQuote().catch((()=>{}))}clearQuoteTimer(){this.quoteTimer&&(clearTimeout(this.quoteTimer),this.quoteTimer=void 0)}clearPromptTimer(){this.promptTimer&&(clearTimeout(this.promptTimer),this.promptTimer=void 0)}promptTicketSelection(){this.selectionPrompt=!0,this.clearPromptTimer(),this.promptTimer=setTimeout((()=>{this.selectionPrompt=!1,this.promptTimer=void 0}),800)}getQuoteRequestItems(){return Array.from(this.selectedItems,(([e,t])=>{const n=function(e){const[t,n]=e.split("::");return{admissionId:t,sectionId:"none"===n?void 0:n}}(e);return{quantity:t,admissionId:n.admissionId,sectionId:n.sectionId}}))}fetchCartQuote(e){return this.client.order.quote({eventId:this.eventId,items:this.getQuoteRequestItems(),couponCode:e||void 0})}applyQuote(e,t){t===this.requestId&&(this.quote=e,this.quoteError=null,this.cartUpdate.emit(this.quote),this.trackEvent("Cart Viewed",{products:this.getCartProducts(),value:WN(this.quote)/100,currency:this.event?.currency}))}handleQuoteError(e){e===this.requestId&&(this.quote=null,this.quoteError="Failed to update cart. Please try again.",this.errorOccurred.emit({error:this.quoteError}))}async updatePreviewQuote(){const e=this.event;if(!e||!this.appliedCouponCode)return this.previewRequestId++,this.previewLoading=!1,void(this.previewQuote=null);const t=this.activeInitialPreviewQuote();if(t)return this.previewRequestId++,this.previewLoading=!1,void(this.previewQuote=t);if(0===BN(e).length)return this.previewRequestId++,this.previewLoading=!1,void(this.previewQuote=null);this.previewRequestId++;const n=this.previewRequestId;try{this.previewLoading=!0;const e=await this.fetchPreviewQuote(this.appliedCouponCode);n===this.previewRequestId&&(this.previewQuote=e.quote)}catch(e){n===this.previewRequestId&&(this.previewQuote=null,this.appliedCouponCode="",this.setCouponError())}finally{n===this.previewRequestId&&(this.previewLoading=!1)}}fetchPreviewQuote(e){const t=this.event;if(!t)throw new Error("Missing event");return this.client.order.quote({eventId:t.id,items:BN(t),couponCode:e})}handleCouponInput=e=>{e.target instanceof HTMLInputElement&&(this.couponInput=e.target.value.toUpperCase())};handleCouponKeyDown=e=>{"Enter"===e.key&&(e.preventDefault(),this.applyCoupon().catch((()=>{})))};async applyCoupon(){const e=TN(this.couponInput);this.couponInput=e,this.quoteError=null,this.couponError=null,this.trackCouponEntered(e),this.selectedItems.size>0?await this.applyCartCoupon(e):await this.applyPreviewCoupon(e)}async removeCoupon(){if(this.couponError=null,this.quoteError=null,this.selectedItems.size>0)return void await this.removeCartCoupon();this.couponInput="";const e=this.appliedCouponCode;this.appliedCouponCode="",this.previewRequestId++,this.previewLoading=!1,this.previewQuote=null,this.trackCouponRemoved(e,null)}async applyCartCoupon(e){this.requestId++;const t=this.requestId;try{this.quoteLoading=!0;const n=await this.fetchCartQuote(e);if(t!==this.requestId)return;this.appliedCouponCode=e,this.previewQuote=null,this.applyQuote(n.quote,t),this.trackCouponApplied(e,n.quote)}catch(n){this.handleCouponError(t),this.trackCouponDenied(e)}finally{t===this.requestId&&(this.quoteLoading=!1)}}async applyPreviewCoupon(e){const t=this.event;if(!t)return;const n=this.activeInitialPreviewQuote(e);if(n)return this.appliedCouponCode=e,this.previewQuote=n,void this.trackCouponApplied(e,n);if(0===BN(t).length)return this.appliedCouponCode=e,void(this.previewQuote=null);this.previewRequestId++;const r=this.previewRequestId;try{this.previewLoading=!0;const t=await this.fetchPreviewQuote(e);if(r!==this.previewRequestId)return;this.appliedCouponCode=e,this.previewQuote=t.quote,this.trackCouponApplied(e,t.quote)}catch(t){r===this.previewRequestId&&(this.setCouponError(),this.trackCouponDenied(e))}finally{r===this.previewRequestId&&(this.previewLoading=!1)}}async removeCartCoupon(){this.requestId++;const e=this.requestId,t=this.appliedCouponCode;try{this.quoteLoading=!0;const n=await this.fetchCartQuote("");if(e!==this.requestId)return;this.couponInput="",this.appliedCouponCode="",this.previewQuote=null,this.applyQuote(n.quote,e),this.trackCouponRemoved(t,n.quote)}catch(t){this.handleCouponError(e,"Failed to remove coupon. Please try again.")}finally{e===this.requestId&&(this.quoteLoading=!1)}}handleCouponError(e,t){e===this.requestId&&this.setCouponError(t)}setCouponError(e="Failed to apply coupon. Please check the code."){this.couponError=e,this.errorOccurred.emit({error:this.couponError})}trackCouponEntered(e){e&&this.trackEvent("Coupon Entered",{coupon:e})}trackCouponApplied(e,t){e&&this.trackEvent("Coupon Applied",{coupon:e,products:this.getProductsForQuote(t),total:t?WN(t)/100:0,value:t?WN(t)/100:0})}trackCouponDenied(e){e&&this.trackEvent("Coupon Denied",{coupon:e,reason:this.couponError})}trackCouponRemoved(e,t){e&&this.trackEvent("Coupon Removed",{coupon:e,products:this.getProductsForQuote(t),total:t?WN(t)/100:0,value:t?WN(t)/100:0})}handlePasscodeInput=e=>{e.target instanceof HTMLInputElement&&(this.passcodeInput=e.target.value)};async submitPasscode(e){e.preventDefault(),this.activePasscode=this.passcodeInput.trim(),await this.loadEventData()}async initiateCheckout(){if(!this.isCheckoutDisabled()&&this.quote)try{this.checkoutLoading=!0,this.quoteError=null,this.trackCheckoutStarted(this.quote);const e=await this.client.order.create({eventId:this.eventId,items:this.getCheckoutItems(this.quote),couponCode:this.appliedCouponCode||void 0,returnUrl:this.returnUrl});this.handleCheckoutOrder(e.order)}catch(e){this.handleCheckoutError()}}trackCheckoutStarted(e){const t=WN(e)/100;this.trackEvent("Checkout Started",{value:t,revenue:t,currency:this.event?.currency,products:this.getCheckoutProducts()})}getCheckoutItems(e){return e.items.map((e=>({quantity:e.quantity,admissionId:e.admissionId,sectionId:e.sectionId})))}handleCheckoutOrder(e){this.checkoutInit.emit({orderId:e.id,checkoutUrl:e.checkoutUrl}),e.checkoutUrl?window.location.href=e.checkoutUrl:this.checkoutLoading=!1}handleCheckoutError(){this.quoteError="Failed to initiate checkout. Please try again.",this.errorOccurred.emit({error:this.quoteError}),this.checkoutLoading=!1}handleStickyCheckoutClick(e){if(e.isDoorOnly||!KN(this.quote))return this.promptTicketSelection(),void this.host.scrollIntoView({behavior:"smooth",block:"start"});this.initiateCheckout().catch((()=>{}))}getCartProducts(){return this.quote?this.getProductsForQuote(this.quote):[]}getCheckoutProducts(){return this.quote?this.quote.items.map((e=>({...this.getQuoteProduct(e),section_name:this.getQuoteSection(e)?.name}))):[]}getProductsForQuote(e){return e?e.items.map((e=>this.getQuoteProduct(e))):[]}getQuoteProduct(e){return{...JN(e),...QN(this.quoteProductContext(e)),...XN(e)}}quoteProductContext(e){return{event:this.event,admission:this.getQuoteAdmission(e),section:this.getQuoteSection(e)}}getQuoteAdmission(e){return this.event?.admissions.find((t=>t.id===e.admissionId))}getQuoteSection(e){return e.sectionId?this.event?.sections.find((t=>t.id===e.sectionId)):null}formatDateTimeRange(e,t){return`${xN(e,"EEE, MMM d · h:mm a")} - ${xN(t,"h:mm a")}`}formatPriceValue(e){const t=this.event?.currency;if(!t)return new Intl.NumberFormat(this.locale,{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}).format(e/100);try{return function(e,t){let n=ob[t]??ab,r=10**n.exponent;return new Intl.NumberFormat(n.locale,{style:"currency",currency:t}).format(e/r)}(e,t)}catch(n){return console.error("formatPrice failed, using fallback",{error:n,currency:t,priceInCents:e,locale:this.locale}),new Intl.NumberFormat(this.locale,{style:"currency",currency:t}).format(e/100)}}handleQuantityDecrease=async(e,t)=>{await this.updateQuantity(e,t,-1)};handleQuantityIncrease=async(e,t)=>{await this.updateQuantity(e,t,1)};handleQuantityInput=async(e,t,n)=>{n.target instanceof HTMLInputElement&&await this.setQuantity(e,t,Number(n.target.value)||0)};openModal=(e,t)=>{t.stopPropagation(),this.openModalAdmissionId=e,document.addEventListener("keydown",this.handleModalKeyDown)};closeModal=()=>{this.openModalAdmissionId=null,document.removeEventListener("keydown",this.handleModalKeyDown)};handleModalKeyDown=e=>{"Escape"===e.key&&this.closeModal()};handleBackdropClick=e=>{e.target instanceof HTMLElement&&e.target.classList.contains("modal-backdrop")&&this.closeModal()};renderQuantityControls(e,t,n,i){const o=SN(e.id,t),a=this.selectedItems.get(o)||0;return r("div",{class:"quantity-controls"},r("button",{type:"button",class:"quantity-btn decrease",onClick:()=>this.handleQuantityDecrease(e.id,t),disabled:n||0===a,"aria-label":"Decrease quantity"},"−"),r("input",{class:"quantity-value",type:"number",min:"0",max:i,inputmode:"numeric",value:a,onInput:n=>this.handleQuantityInput(e.id,t,n),disabled:n,"aria-label":`Quantity for ${e.name}`}),r("button",{type:"button",class:"quantity-btn increase",onClick:()=>this.handleQuantityIncrease(e.id,t),disabled:n||a>=i,"aria-label":"Increase quantity"},"+"))}getMaxQuantity(e,t){return this.event?zN({admission:e,event:this.event,section:this.getSection(t)}).maxQuantity:0}getSection(e){if(e)return this.event?.sections.find((t=>t.id===e))}renderEventTimeAndLocation(e){return r(r.Fragment,null,this.renderEventTime(e,"admission-time"),this.renderEventLocation(e,"admission-venue"))}renderEventTime(e,t){return e.entryStartsAt&&e.entryEndsAt?r("div",{class:t},eR(),this.formatDateTimeRange(e.entryStartsAt,e.entryEndsAt)):null}renderAdmissionTime(e,t){return e?.entryStartsAt&&e.entryEndsAt?r("div",{class:t},eR(),this.formatDateTimeRange(e.entryStartsAt,e.entryEndsAt)):null}renderSectionLocation(e){const t=[e.location?.name,e.location?.city].filter(Boolean).join(", ");return t?r("div",{class:"section-venue"},tR(),t):null}renderEventLocation(e,t){return e.location?r("div",{class:t},tR(),e.location.name):null}renderPriceAndControls(e,t,n,i){const o=SN(e.id,t),a=function(e){const t=e.quoteItem??e.previewItem;if(t){const e=function(e){return Math.max(e?.quantity??1,1)}(t),n=Math.round(Math.max((t.price.base+t.price.discount)/e,0)),r=Math.round(t.price.booking/e);return!t.price.discount||t.price.discount>=0?{base:n,discounted:!1,fees:r}:{base:n,discounted:!0,fees:r,gross:Math.round(t.price.base/e)}}if(e.initialPrice&&e.initialPrice.discount<0){const t=e.admission.price.booking??0;return{base:Math.max(e.initialPrice.total-t,0),discounted:!0,fees:t,gross:Math.max(e.initialPrice.gross-t,0)}}return{base:e.admission.price.base??0,discounted:!1,fees:e.admission.price.booking??0}}({admission:e,initialPrice:this.activeInitialAdmissionPrices()?.[o],quoteItem:FN(this.quote).get(o),previewItem:FN(this.previewQuote).get(o)}),s=function(e){return e.discounted&&void 0!==e.gross?Math.max(e.gross-e.base,0):0}(a);return r("div",{class:"admission-price-info"},r("div",{class:"admission-price-wrapper"},s>0&&r("span",{class:"admission-savings"},"Save ",this.formatPriceValue(s)),this.renderAdmissionPrice(a),a.fees>0&&r("span",{class:"admission-booking-fee"},this.formatPriceValue(a.fees)," Booking Fee"),n.showScarcity&&r("span",{class:"admission-availability"},e.available," tickets remaining"),n.label&&r("span",{class:`admission-sale-label ${n.label.tone}`},n.label.text)),this.renderAdmissionControls(e,t,n,i))}renderAdmissionPrice(e){return e.discounted?r("span",{class:"admission-price-row"},r("span",{class:"admission-price discounted"},this.formatPriceValue(e.base)),void 0!==e.gross&&r("span",{class:"admission-price-original"},this.formatPriceValue(e.gross))):r("span",{class:"admission-price"},this.formatPriceValue(e.base))}renderAdmissionControls(e,t,n,i){return n.statusLabel?r("div",{class:`sold-out-controls ${n.statusTone??""}`},r("span",{class:"sold-out-text"},n.statusLabel)):"door"===i?null:this.renderQuantityControls(e,t,n.disabled,n.maxQuantity)}renderAdmission(e,t,n,i=!1,o="default"){const a=zN({admission:e,event:t,section:n,sectionSoldOut:i}),s=n?.id||null;return r("section",{class:this.getAdmissionClassName(a,n),key:SN(e.id,s),tabindex:a.disabled?-1:0,"aria-label":this.getAdmissionAriaLabel(e,n,a)},r("div",{class:"admission-content"},r("div",{class:"admission-details"},this.renderAdmissionHeader(e),this.renderAdmissionBody(e,t,s,a,o))))}getAdmissionClassName(e,t){return`admission-card ${e.soldOut?"sold-out":""} ${e.disabled&&!e.soldOut?"unavailable":""} ${t?"":"solo-admission"}`}getAdmissionAriaLabel(e,t,n){return function(e,t,n){return t?`${e.name} in ${t.name} - ${n}`:`${e.name} - ${n}`}(e,t,n.statusLabel??this.admissionStatusText(e,n.soldOut))}admissionStatusText(e,t){return t?"Sold Out":(e.price.booking??0)<=0?this.formatPriceValue(e.price.base):`${this.formatPriceValue(e.price.base)} plus ${this.formatPriceValue(e.price.booking)} booking fee`}renderAdmissionHeader(e){return r("div",{class:"admission-header"},r("div",{class:"admission-header-text"},r("h3",{class:"admission-title"},e.name),e.subtitle&&r("p",{class:"admission-subtitle"},e.subtitle)),this.renderMoreInfoButton(e))}renderMoreInfoButton(e){return e.description?r("button",{type:"button",class:"more-info-badge",onClick:t=>this.openModal(e.id,t),"aria-label":`More info about ${e.name}`},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("circle",{cx:"12",cy:"12",r:"10"}),r("path",{d:"M12 16v-4"}),r("path",{d:"M12 8h.01"})),r("span",null,"More info")):null}renderAdmissionBody(e,t,n,i,o){return n?this.renderPriceAndControls(e,n,i,o):r(r.Fragment,null,this.renderEventTimeAndLocation(t),this.renderPriceAndControls(e,n,i,o))}renderSectionHeader(e,t,n){return r("div",{class:"section-header"},r("h2",{class:"section-name"},e.name,n&&r("span",{class:"sold-out-badge"},"Sold Out")),this.renderAdmissionTime(t[0],"section-time"),this.renderSectionLocation(e))}renderSectionWithAdmissions(e,t,n,i){const o=function(e){return!!e.section&&(!![(t=e.section).available,t.limit].some((e=>ON(e)<=0))||e.admissions.length>0&&e.admissions.every((t=>DN({admission:t,section:e.section}))));var t}({admissions:t,section:e});return r("div",{class:"ticket-section "+(o?"section-sold-out":""),key:e.id},this.renderSectionHeader(e,t,o),r("div",{class:"admissions-list"},t.map((t=>this.renderAdmission(t,n,e,o,i)))))}renderLoadingState(){return r(i,{"data-theme":this.currentTheme},r("div",{class:"loading-state"},"Loading event details..."))}renderErrorState(){return this.passcodeDenied?this.renderPasscodeState():r(i,{"data-theme":this.currentTheme},r("div",{class:"session-services-ticketing-container"},r("div",{class:"error-banner"},r("strong",null,"Unable to load event"),r("p",null,this.error),r("button",{type:"button",class:"retry-button",onClick:()=>this.loadEventData()},"Try Again"))))}renderPasscodeState(){return r(i,{"data-theme":this.currentTheme},r("div",{class:"session-services-ticketing-container"},r("form",{class:"passcode-form",onSubmit:e=>this.submitPasscode(e)},r("h2",null,"Enter passcode"),r("p",null,"Enter the event passcode to view tickets and event details."),r("input",{type:"text",name:"passcode",value:this.passcodeInput,onInput:this.handlePasscodeInput,autocomplete:"one-time-code",placeholder:"Passcode","aria-label":"Passcode"}),this.passcodeDenied&&this.activePasscode&&r("span",{class:"error-message"},"Incorrect passcode"),r("button",{type:"submit",class:"checkout-btn",disabled:!this.passcodeInput.trim()},"Unlock event"))))}renderNotFoundState(){return r(i,{"data-theme":this.currentTheme},r("div",{class:"session-services-ticketing-container"},r("div",{class:"error-banner"},r("strong",null,"Event not found"),r("p",null,"The requested event could not be found."))))}renderCouponPanel(){const e=this.couponInput.trim().length>0,t=this.quoteLoading||this.previewLoading||this.checkoutLoading,n=e&&!t;return r("div",{class:"coupon-panel"},r("div",{class:"coupon-row"},r("input",{id:"coupon-code",name:"coupon-code",placeholder:"Coupon Code",value:this.couponInput,onInput:this.handleCouponInput,onKeyDown:this.handleCouponKeyDown,autocomplete:"off",disabled:t,"aria-label":"Coupon code","aria-invalid":Boolean(this.couponError)}),this.appliedCouponCode?r("button",{type:"button",class:"coupon-remove",onClick:()=>this.removeCoupon(),disabled:t,"aria-label":"Remove coupon"},"Remove"):r("button",{type:"button",class:"coupon-apply",onClick:()=>this.applyCoupon(),disabled:!n},"Apply")),this.couponError&&r("span",{class:"error-message"},this.couponError))}isCheckoutDisabled(){return this.quoteLoading||this.checkoutLoading||Boolean(this.quoteError)||!KN(this.quote)}getCheckoutButtonText(){return this.checkoutLoading?"Processing...":this.quote?this.getQuoteCheckoutText():"Pay"}renderQuoteLoadingContent(){return r("span",{class:"checkout-spinner-wrapper","aria-hidden":"true"},r("svg",{class:"checkout-spinner",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})))}renderCheckoutButtonContent(){return this.quoteLoading?this.renderQuoteLoadingContent():this.getCheckoutButtonText()}isStickyCheckoutDisabled(e){return!e.isDoorOnly&&(e.isEnded||e.isUnavailableForSale||this.checkoutLoading||this.quoteLoading)}getStickyCheckoutText(e){return this.checkoutLoading?"Processing...":this.quote?this.getQuoteCheckoutText():this.selectionPrompt?"Select a ticket":e.isDoorOnly?"Get Tickets at the Door":e.isEnded?"Event Ended":e.isUnavailableForSale?"Tickets Unavailable":"Get Tickets"}renderStickyCheckoutButtonContent(e){return this.quoteLoading?this.renderQuoteLoadingContent():this.getStickyCheckoutText(e)}getQuoteCheckoutText(){return this.quote?0===WN(this.quote)?"Continue":`Pay ${this.getOrderTotalText()}`:"Pay"}getOrderTotalText(){if(!this.quote)return"N/A";const e=WN(this.quote);return 0===e?"Free":this.formatPriceValue(e)}renderCheckoutActions(){return r("div",{class:"checkout-actions"},this.renderCouponPanel(),this.quoteError&&r("div",{class:"error-message"},this.quoteError),r("button",{type:"button",class:"checkout-btn",onClick:()=>this.initiateCheckout(),disabled:this.isCheckoutDisabled(),"aria-label":this.quoteLoading?"Updating":void 0},this.renderCheckoutButtonContent()))}renderStickyCheckout(e){return this.stickyCheckout&&e.showTicketing?r("div",{class:"sticky-checkout-bar"},r("button",{type:"button",class:"checkout-btn sticky-checkout-btn "+(this.selectionPrompt?"selection-prompt":""),onClick:()=>this.handleStickyCheckoutClick(e),disabled:this.isStickyCheckoutDisabled(e),"aria-label":this.quoteLoading?"Updating":void 0},this.renderStickyCheckoutButtonContent(e))):null}renderModal(){if(!this.openModalAdmissionId)return null;const e=this.event?.admissions.find((e=>e.id===this.openModalAdmissionId));return e?r("div",{class:"modal-backdrop",onClick:this.handleBackdropClick},r("div",{class:"modal-content",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title"},r("button",{type:"button",class:"modal-close-btn",onClick:()=>this.closeModal(),"aria-label":"Close"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("path",{d:"M18 6 6 18"}),r("path",{d:"M6 6l12 12"}))),r("div",{class:"modal-header"},r("h2",{id:"modal-title",class:"modal-title"},e.name),e.subtitle&&r("p",{class:"modal-subtitle"},e.subtitle)),r("p",{class:"modal-description"},e.description))):null}renderTicketSections(e){const t=UN(e),n=t.isDoorOnly?"door":"default",i=(o=e.sections,a=function(e,t){if("door"!==t)return e.admissions;const n=PN(e);return e.admissions.filter((e=>"DOOR"===e.saleEndsBehavior&&EN(e.saleEndsAt,n)))}(e,n),[...LN(o,a),...a.filter((e=>!e.sectionId)).map((e=>({type:"admission",admission:e})))].sort(((e,t)=>qN(e)-qN(t))));var o,a;return r("div",{class:"tickets-wrapper"},this.renderDoorAlert(e,n),r("h2",{class:"tickets-heading"},t.ticketHeading),i.map((t=>this.renderTopLevelItem(t,e,n))))}renderTopLevelItem(e,t,n){return"section"===e.type?this.renderSectionWithAdmissions(e.section,e.admissions,t,n):r("div",{class:"ticket-section",key:e.admission.id},r("div",{class:"admissions-list"},this.renderAdmission(e.admission,t,void 0,!1,n)))}renderDoorAlert(e,t){if("door"!==t)return null;const n=e.location?.name?.trim()||"the venue";return r("div",{class:"door-alert"},r("strong",null,"Tickets are available at ",n),r("span",null,"Online sales are closed. Buy these tickets at the door when you arrive."))}loadingView(){return this.loading?this.renderLoadingState():void 0}errorView(){return this.error&&!this.event?this.renderErrorState():void 0}missingEventView(){return this.event?void 0:this.renderNotFoundState()}pendingView(){return this.loadingView()??this.errorView()??this.missingEventView()}renderReadyState(){const e=this.event;if(!e)return this.renderNotFoundState();const t=UN(e);return t.showExternalTicketing?this.renderExternalTicketing(t.externalTicketUrl):r(i,{"data-theme":this.currentTheme,"data-sticky-checkout":this.stickyCheckout?"true":void 0},r("div",{class:"session-services-ticketing-container"},t.showTicketing?this.renderTicketSections(e):this.renderUnavailableState(t),!t.isDoorOnly&&t.showTicketing&&this.renderCheckoutActions()),this.renderStickyCheckout(t),this.renderModal())}renderExternalTicketing(e){return r(i,{"data-theme":this.currentTheme},r("div",{class:"session-services-ticketing-container"},r("a",{class:"external-ticket-button",href:e,target:"_blank",rel:"noreferrer"},"Get tickets")))}renderUnavailableState(e){return r("div",{class:"empty-ticketing-state"},r("strong",null,e.isEnded?"Event ended":"Tickets unavailable"),r("span",null,e.isEnded?"Ticket sales are closed for this event.":"Tickets are not currently available for this event."))}render(){return this.pendingView()??this.renderReadyState()}static get watchers(){return{tenantId:["propsChanged"],eventId:["propsChanged"],apiUrl:["propsChanged"],passcode:["propsChanged"],couponCode:["couponCodeChanged"],initialAdmissionPrices:["couponCodeChanged"],initialPreviewQuote:["couponCodeChanged"],theme:["themeChanged"]}}};nR.style=':host{--background:transparent;--foreground:oklch(0.21 0.006 285.885);--card:oklch(1 0 0);--card-foreground:oklch(0.21 0.006 285.885);--popover:oklch(1 0 0);--popover-foreground:oklch(0.21 0.006 285.885);--primary:oklch(0.537 0.1554 255);--primary-foreground:oklch(0.985 0 0);--secondary:oklch(0 0 0 / 4%);--secondary-foreground:oklch(0.21 0.006 285.885);--muted:oklch(0 0 0 / 4%);--muted-foreground:oklch(0.442 0.017 285.786);--accent:oklch(0 0 0 / 4%);--accent-foreground:oklch(0.21 0.006 285.885);--destructive:oklch(0.637 0.237 25.331);--destructive-foreground:oklch(0.505 0.213 27.518);--border:oklch(0 0 0 / 12%);--input:oklch(0 0 0 / 12%);--ring:oklch(0.705 0.015 286.067);--success:oklch(0.696 0.17 162.48);--warning:oklch(0.769 0.188 70.08);--info:oklch(0.623 0.214 259.815);--info-foreground:oklch(0.488 0.243 264.376);--backdrop:oklch(0 0 0 / 0.32);--radius:0.625rem;--spacing-xs:0.25rem;--spacing-sm:0.5rem;--spacing-md:1rem;--spacing-lg:1.5rem;--spacing-xl:2rem;--font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",\n Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;--font-size-xs:0.75rem;--font-size-sm:0.875rem;--font-size-base:1rem;--font-size-lg:1.125rem;--font-size-xl:1.25rem;--font-size-2xl:1.5rem;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--shadow-sm:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);--shadow-base:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);--shadow-md:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.1);--shadow-lg:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1);--shadow-xl:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1);--shadow-edge-light:0 1px oklch(0 0 0 / 4%);--shadow-edge-dark:0 -1px oklch(1 0 0 / 8%);--transition-fast:150ms cubic-bezier(0.4, 0, 0.2, 1);--transition-base:200ms cubic-bezier(0.4, 0, 0.2, 1);--transition-slow:300ms cubic-bezier(0.4, 0, 0.2, 1);--internal-background:var(--background, transparent);--internal-foreground:var(--foreground, oklch(0.21 0.006 285.885));--internal-card:var(--card, oklch(1 0 0));--internal-popover:var(--popover, oklch(1 0 0));--internal-popover-foreground:var(--popover-foreground, oklch(0.21 0.006 285.885));--internal-primary:var(--primary, oklch(0.537 0.1554 255));--internal-primary-foreground:var(--primary-foreground, oklch(0.985 0 0));--internal-secondary:var(--secondary, oklch(0 0 0 / 4%));--internal-muted:var(--muted, oklch(0 0 0 / 4%));--internal-muted-foreground:var(--muted-foreground, oklch(0.442 0.017 285.786));--internal-accent:var(--accent, oklch(0 0 0 / 4%));--internal-accent-foreground:var(--accent-foreground, oklch(0.21 0.006 285.885));--internal-destructive:var(--destructive, oklch(0.637 0.237 25.331));--internal-border:var(--border, oklch(0 0 0 / 12%));--internal-input:var(--input, oklch(0 0 0 / 12%));--internal-ring:var(--ring, oklch(0.705 0.015 286.067));--internal-success:var(--success, oklch(0.696 0.17 162.48));--internal-warning:var(--warning, oklch(0.769 0.188 70.08));--internal-info:var(--info, oklch(0.623 0.214 259.815));--internal-info-foreground:var(--info-foreground, oklch(0.488 0.243 264.376));--internal-backdrop:var(--backdrop, oklch(0 0 0 / 0.32));--internal-radius:var(--radius, 0.625rem);--internal-spacing-xs:var(--spacing-xs, 0.25rem);--internal-spacing-sm:var(--spacing-sm, 0.5rem);--internal-spacing-md:var(--spacing-md, 1rem);--internal-spacing-lg:var(--spacing-lg, 1.5rem);--internal-spacing-xl:var(--spacing-xl, 2rem);--internal-font-family:var(--font-family, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif);--internal-font-size-xs:var(--font-size-xs, 0.75rem);--internal-font-size-sm:var(--font-size-sm, 0.875rem);--internal-font-size-base:var(--font-size-base, 1rem);--internal-font-size-lg:var(--font-size-lg, 1.125rem);--internal-font-size-xl:var(--font-size-xl, 1.25rem);--internal-font-weight-medium:var(--font-weight-medium, 500);--internal-font-weight-semibold:var(--font-weight-semibold, 600);--internal-font-weight-bold:var(--font-weight-bold, 700);--internal-shadow-lg:var(--shadow-lg, 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1));--internal-shadow-xl:var(--shadow-xl, 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1));--internal-shadow-edge-light:var(--shadow-edge-light, 0 1px oklch(0 0 0 / 4%));--internal-transition-fast:var(--transition-fast, 150ms cubic-bezier(0.4, 0, 0.2, 1));--internal-transition-base:var(--transition-base, 200ms cubic-bezier(0.4, 0, 0.2, 1));--internal-transition-slow:var(--transition-slow, 300ms cubic-bezier(0.4, 0, 0.2, 1));display:block;font-family:var(--internal-font-family);color:var(--internal-foreground);background:var(--internal-background)}*{box-sizing:border-box;margin:0;padding:0}button,input,select,textarea{font:inherit}*:focus{outline:none}*:focus-visible{outline:2px solid var(--internal-ring);outline-offset:2px;border-radius:calc(var(--internal-radius) - 4px)}.session-services-ticketing-container{width:100%;max-width:100%;margin:0}:host([data-theme="dark"]){--background:transparent;--foreground:oklch(0.967 0.001 286.375);--card:color-mix(\n in srgb,\n oklch(0.21 0.006 285.885) 80%,\n oklch(0.141 0.005 285.823)\n );--card-foreground:oklch(0.967 0.001 286.375);--popover:oklch(0.21 0.006 285.885);--popover-foreground:oklch(0.967 0.001 286.375);--primary:oklch(0.537 0.1554 255);--primary-foreground:oklch(0.985 0 0);--secondary:oklch(1 0 0 / 6%);--secondary-foreground:oklch(0.967 0.001 286.375);--muted:oklch(1 0 0 / 6%);--muted-foreground:oklch(0.705 0.015 286.067);--accent:oklch(1 0 0 / 6%);--accent-foreground:oklch(0.967 0.001 286.375);--destructive:oklch(0.637 0.237 25.331);--destructive-foreground:oklch(0.704 0.191 22.216);--border:oklch(1 0 0 / 12%);--input:oklch(1 0 0 / 12%);--ring:oklch(0.552 0.016 285.938);--success:oklch(0.696 0.17 162.48);--warning:oklch(0.769 0.188 70.08);--info:oklch(0.623 0.214 259.815);--info-foreground:oklch(0.707 0.165 254.624)}.tickets-wrapper{padding:0;width:100%}.tickets-heading{color:var(--internal-foreground);font-size:var(--internal-font-size-lg);font-weight:var(--internal-font-weight-semibold);margin:0 0 var(--internal-spacing-md)}.door-alert,.empty-ticketing-state,.passcode-form,.passcode-form input,.ticket-section,.more-info-badge,.quantity-controls,.sold-out-controls,.coupon-row,.coupon-apply,.coupon-remove{border:1px solid var(--internal-input);box-shadow:var(--internal-shadow-edge-light)}.external-ticket-button,.checkout-btn{display:inline-flex;align-items:center;justify-content:center;background:var(--internal-primary);color:var(--internal-primary-foreground);border:1px solid oklch(from var(--internal-primary) calc(l - 0.08) c h);border-radius:calc(var(--internal-radius) - 2px);cursor:pointer;box-shadow:var(--internal-shadow-edge-light);transition:all var(--internal-transition-fast)}.external-ticket-button:hover,.checkout-btn:hover:not(:disabled){background:oklch(from var(--internal-primary) calc(l - 0.08) c h);transform:translateY(-1px)}.door-alert,.empty-ticketing-state,.passcode-form{display:flex;flex-direction:column;gap:var(--internal-spacing-sm);padding:var(--internal-spacing-lg);margin-bottom:var(--internal-spacing-md);background:var(--internal-card);border-radius:var(--internal-radius)}.door-alert{background:oklch(from var(--internal-success) l c h / 0.1);border-color:oklch(from var(--internal-success) l c h / 0.48)}.door-alert strong,.empty-ticketing-state strong,.passcode-form h2{color:var(--internal-foreground);font-size:var(--internal-font-size-base);font-weight:var(--internal-font-weight-semibold);line-height:1.3}.door-alert span,.empty-ticketing-state span,.passcode-form p{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);line-height:1.5}.external-ticket-button{width:100%;padding:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs))\n var(--internal-spacing-lg);font-size:var(--internal-font-size-base);font-weight:var(--internal-font-weight-bold);text-decoration:none}.passcode-form input{width:100%;min-width:0;padding:calc(var(--internal-spacing-sm) + 0.125rem)\n var(--internal-spacing-sm);background:var(--internal-card);color:var(--internal-foreground);border-radius:calc(var(--internal-radius) - 2px);font:inherit}.passcode-form input:disabled{opacity:0.6;cursor:not-allowed}.ticket-section{background:var(--internal-card);border-radius:var(--internal-radius);margin:0 0 var(--internal-spacing-lg) 0;overflow:hidden;width:100%;transition:all var(--internal-transition-base)}.tickets-wrapper>.ticket-section:last-child{margin-bottom:0}.ticket-section.section-sold-out{position:relative}.ticket-section.section-sold-out .section-header{padding-bottom:var(--internal-spacing-md)}.ticket-section.section-sold-out .section-name,.ticket-section.section-sold-out .section-time,.ticket-section.section-sold-out .section-venue{opacity:0.8}.ticket-section.section-sold-out .admissions-list{opacity:0.6;pointer-events:none;filter:grayscale(0.3)}.ticket-section.section-sold-out .admission-card{background:var(--internal-card)}.ticket-section.section-sold-out .quantity-controls,.ticket-section.section-sold-out .sold-out-controls{opacity:0.7}.section-header{padding:var(--internal-spacing-md) var(--internal-spacing-lg);border-bottom:1px solid var(--internal-border);background:var(--internal-card)}.section-name{color:var(--internal-foreground);font-size:var(--internal-font-size-lg);font-weight:var(--internal-font-weight-semibold);letter-spacing:-0.025em;margin:0 0 var(--internal-spacing-xs) 0;display:flex;align-items:center;gap:var(--internal-spacing-sm)}.section-time,.section-venue{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);display:flex;align-items:center;gap:var(--internal-spacing-xs)}.section-time,.admission-time{margin-bottom:var(--internal-spacing-xs)}.section-time svg,.section-venue svg,.admission-time svg,.admission-venue svg{width:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs));height:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs));flex-shrink:0;opacity:0.8}.admissions-list{padding:0}.admission-card{border-bottom:1px solid var(--internal-border);padding:var(--internal-spacing-md) var(--internal-spacing-lg);position:relative;transition:background-color var(--internal-transition-base);cursor:default}.admission-card:focus-visible{outline:2px solid var(--internal-ring);outline-offset:-2px;z-index:1}.admission-card.sold-out{background:var(--internal-card)}.admission-card.unavailable{opacity:0.72}.admission-card.sold-out .admission-price{opacity:0.5}.admission-card:last-child{border-bottom:none}.admission-content{display:flex;justify-content:space-between;align-items:center}.admission-details{flex:1}.admission-header{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--internal-spacing-md);margin-bottom:var(--internal-spacing-sm)}.admission-header-text{flex:1;min-width:0}.admission-title{color:var(--internal-foreground);font-size:var(--internal-font-size-lg);font-weight:var(--internal-font-weight-semibold);margin-bottom:0;display:flex;align-items:center;gap:var(--internal-spacing-sm)}.admission-subtitle{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);margin-top:var(--internal-spacing-xs);line-height:1.4}.more-info-badge{display:inline-flex;align-items:center;gap:calc(var(--internal-spacing-xs) * 1.5);padding:calc(var(--internal-spacing-xs) * 1.5) var(--internal-spacing-sm);background:oklch(from var(--internal-info) l c h / 0.08);color:var(--internal-info-foreground);border-radius:calc(var(--internal-radius) - 2px);font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);cursor:pointer;transition:all var(--internal-transition-fast);white-space:nowrap;flex-shrink:0}.more-info-badge:hover{background:oklch(from var(--internal-info) l c h / 0.16)}.more-info-badge:focus-visible{outline:2px solid var(--internal-ring);outline-offset:2px}.more-info-badge svg{flex-shrink:0}.admission-time,.admission-venue{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);display:flex;align-items:center;gap:var(--internal-spacing-xs)}.admission-venue{margin-bottom:var(--internal-spacing-sm)}.solo-admission .admission-content{flex-direction:column;align-items:stretch}.solo-admission .admission-details{width:100%}.solo-admission .admission-price-info{margin-top:var(--internal-spacing-md);display:flex;justify-content:space-between;align-items:center;width:100%}.solo-admission .quantity-controls{margin-left:auto;flex-shrink:0}.sold-out-badge{display:inline-flex;align-items:center;justify-content:center;padding:0;background:transparent;color:var(--internal-destructive);border:none;font-size:var(--internal-font-size-sm);font-weight:var(--internal-font-weight-medium);text-transform:uppercase;letter-spacing:0.05em;margin-left:auto;opacity:0.7}.admission-price-info{display:flex;align-items:center;justify-content:space-between;gap:var(--internal-spacing-sm);margin-bottom:var(--internal-spacing-sm);width:100%}.admission-price-wrapper{display:flex;flex-direction:column;row-gap:calc(var(--internal-spacing-xs) * 0.5)}.admission-price{color:var(--internal-foreground);font-size:var(--internal-font-size-xl);font-weight:var(--internal-font-weight-bold);letter-spacing:-0.025em;line-height:1.1}.admission-price-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--internal-spacing-sm)}.admission-price-original{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-base);text-decoration:line-through}.admission-booking-fee{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);line-height:1.2}.admission-savings,.admission-availability{font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);line-height:1.2}.admission-savings{color:var(--internal-success)}.admission-availability{color:var(--internal-warning)}.admission-sale-label{display:block;margin-top:var(--internal-spacing-xs);color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);font-weight:var(--internal-font-weight-medium);line-height:1.35}.admission-sale-label.success{color:var(--internal-success)}.quantity-controls{display:inline-flex;align-items:center;gap:0;background:var(--internal-secondary);border-radius:calc(var(--internal-radius) - 2px);overflow:hidden;transition:all var(--internal-transition-fast)}.quantity-controls:has(.quantity-value:focus-visible){box-shadow:0 0 0 2px var(--internal-ring)}.quantity-btn{width:calc(var(--internal-spacing-lg) * 1.5);height:calc(var(--internal-spacing-lg) * 1.5);border:none;background:transparent;color:var(--internal-muted-foreground);font-size:var(--internal-font-size-base);font-weight:var(--internal-font-weight-medium);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--internal-transition-fast);position:relative}.quantity-btn:focus-visible{outline:2px solid var(--internal-ring);outline-offset:-2px;z-index:1}.quantity-btn:hover:not(:disabled){background:var(--internal-accent);color:var(--internal-accent-foreground)}.quantity-btn:active:not(:disabled){transform:scale(0.95)}.quantity-btn:disabled{opacity:0.6;cursor:not-allowed;background:var(--internal-secondary);color:var(--internal-muted-foreground);border-color:var(--internal-border)}.quantity-btn.decrease{border-right:1px solid var(--internal-input)}.quantity-btn.increase{border-left:1px solid var(--internal-input)}.quantity-value{appearance:textfield;width:2.75rem;height:calc(var(--internal-spacing-lg) * 1.5);border:none;background:transparent;min-width:2.5rem;text-align:center;font-size:var(--internal-font-size-sm);font-weight:var(--internal-font-weight-semibold);color:var(--internal-foreground);padding:0 var(--internal-spacing-xs)}.quantity-value:focus-visible{outline:none}.quantity-value::-webkit-inner-spin-button,.quantity-value::-webkit-outer-spin-button{appearance:none;margin:0}.quantity-value:disabled{opacity:0.6;cursor:not-allowed}.sold-out-controls{display:inline-flex;align-items:center;justify-content:center;min-width:calc(var(--internal-spacing-lg) * 1.5 * 2 + 2.5rem);height:calc(var(--internal-spacing-lg) * 1.5);padding:0;background:transparent;border:none;box-shadow:none}.sold-out-controls,.sold-out-text{color:var(--internal-destructive);font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);letter-spacing:0.025em;text-transform:uppercase}.sold-out-controls.success,.sold-out-controls.success .sold-out-text{color:var(--internal-success)}.checkout-actions{margin:var(--internal-spacing-lg) 0 0 0;width:100%}.coupon-panel{margin-bottom:var(--internal-spacing-md)}.coupon-row{position:relative;display:flex;align-items:center;width:100%;min-width:0;overflow:hidden;background:var(--internal-background);background-clip:padding-box;border-radius:var(--internal-radius);transition:border-color var(--internal-transition-fast)}.coupon-row:focus-within{border-color:var(--internal-ring)}.coupon-row:has(input[aria-invalid="true"]){border-color:var(--internal-destructive)}.coupon-row:has(input:disabled){opacity:0.64}.coupon-row input{width:100%;min-width:0;padding:calc(var(--internal-spacing-sm) - 1px)\n calc(var(--internal-spacing-xl) * 2.75)\n calc(var(--internal-spacing-sm) - 1px)\n calc(var(--internal-spacing-md) - 1px);background:var(--internal-card);color:var(--internal-foreground);border:none;border-radius:inherit;font:inherit;font-size:var(--internal-font-size-sm);line-height:1.25rem;outline:none}.coupon-row input::placeholder{color:oklch(from var(--internal-muted-foreground) l c h / 0.64)}.coupon-row input:disabled{cursor:not-allowed}.coupon-apply,.coupon-remove{position:absolute;right:calc((var(--internal-spacing-xs) * 1.5) - 3px);top:50%;transform:translateY(-50%);padding:calc(var(--internal-spacing-xs) * 1.25) var(--internal-spacing-sm);background:var(--internal-secondary);color:var(--internal-foreground);border-radius:calc(var(--internal-radius) - 2px);font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);cursor:pointer;transition:all var(--internal-transition-fast)}.coupon-apply:hover:not(:disabled),.coupon-remove:hover:not(:disabled){background:oklch(from var(--internal-accent) l c h / 0.8)}.coupon-apply:focus-visible,.coupon-remove:focus-visible{outline:2px solid var(--internal-ring);outline-offset:-1px}.coupon-apply:disabled,.coupon-remove:disabled{opacity:0.6;cursor:not-allowed}.checkout-btn{width:100%;padding:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs))\n var(--internal-spacing-lg);font-size:var(--internal-font-size-base);font-weight:var(--internal-font-weight-bold);line-height:1.25;position:relative;overflow:hidden}.checkout-btn:focus-visible{outline:2px solid var(--internal-ring);outline-offset:2px}.checkout-btn:active:not(:disabled){transform:translateY(0)}.checkout-btn:disabled{opacity:0.5;cursor:not-allowed}.checkout-spinner-wrapper{display:inline-flex;align-items:center;justify-content:center;height:1.25em;vertical-align:middle}.checkout-spinner{width:1.125em;height:1.125em;animation:checkout-spinner 0.8s linear infinite}@keyframes checkout-spinner{to{transform:rotate(360deg)}}.sticky-checkout-bar{position:fixed;right:0;bottom:0;left:0;z-index:40;display:none;padding:var(--internal-spacing-md);background:var(--internal-card);border-top:1px solid var(--internal-border);box-shadow:var(--internal-shadow-lg)}.sticky-checkout-btn.selection-prompt{animation:selection-prompt-shake 400ms ease-in-out}@keyframes selection-prompt-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}.loading-state{display:flex;justify-content:center;align-items:center;padding:var(--internal-spacing-xl);text-align:center;min-height:200px}.error-banner{background:oklch(\n from var(--internal-destructive) calc(l + 0.4) calc(c * 0.2) h / 0.05\n );border:1px solid oklch(from var(--internal-destructive) l c h / 0.2);border-radius:var(--internal-radius);padding:var(--internal-spacing-lg);margin:var(--internal-spacing-lg);text-align:center}.error-banner strong{display:block;color:var(--internal-destructive);font-size:var(--internal-font-size-lg);margin-bottom:var(--internal-spacing-sm)}.error-banner p{color:var(--internal-muted-foreground);margin-bottom:var(--internal-spacing-md)}.retry-button{background:var(--internal-primary);color:var(--internal-primary-foreground);border:1px solid oklch(from var(--internal-primary) calc(l - 0.08) c h);padding:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs))\n var(--internal-spacing-lg);border-radius:calc(var(--internal-radius) - 2px);font-size:var(--internal-font-size-sm);font-weight:var(--internal-font-weight-medium);cursor:pointer;transition:all var(--internal-transition-fast);box-shadow:var(--internal-shadow-edge-light)}.retry-button:focus-visible{outline:2px solid var(--internal-ring);outline-offset:2px}.retry-button:hover{background:oklch(from var(--internal-primary) calc(l - 0.08) c h);transform:translateY(-1px)}.retry-button:active{transform:translateY(0)}.error-message{background:oklch(\n from var(--internal-destructive) calc(l + 0.4) calc(c * 0.2) h / 0.05\n );border:1px solid oklch(from var(--internal-destructive) l c h / 0.2);color:var(--internal-destructive);padding:var(--internal-spacing-sm) var(--internal-spacing-md);border-radius:var(--internal-radius);margin-bottom:var(--internal-spacing-md);font-size:var(--internal-font-size-sm)}@media (min-width: 768px){.ticket-section{border-radius:var(--internal-radius);margin:0 0 var(--internal-spacing-md) 0}}@media (max-width: 767px){:host([data-sticky-checkout="true"]) .session-services-ticketing-container{padding-bottom:calc(var(--internal-spacing-xl) * 3)}.sticky-checkout-bar{display:block}}.modal-backdrop{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:var(--internal-spacing-md);background:var(--internal-backdrop);backdrop-filter:blur(4px);animation:modal-backdrop-fade-in var(--internal-transition-base) ease-out}@keyframes modal-backdrop-fade-in{from{opacity:0}to{opacity:1}}.modal-content{position:relative;width:100%;max-width:32rem;max-height:calc(100vh - var(--internal-spacing-xl) * 2);overflow-y:auto;background:var(--internal-popover);color:var(--internal-popover-foreground);border:1px solid var(--internal-border);border-radius:var(--internal-radius);padding:var(--internal-spacing-lg);box-shadow:var(--internal-shadow-xl);animation:modal-content-scale-in var(--internal-transition-base) ease-out}@keyframes modal-content-scale-in{from{opacity:0;transform:scale(0.98)}to{opacity:1;transform:scale(1)}}.modal-close-btn{position:absolute;top:var(--internal-spacing-sm);right:var(--internal-spacing-sm);display:flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;background:transparent;border:1px solid transparent;border-radius:calc(var(--internal-radius) - 4px);color:var(--internal-muted-foreground);cursor:pointer;opacity:0.72;transition:all var(--internal-transition-fast)}.modal-close-btn:hover{opacity:1;background:var(--internal-accent)}.modal-close-btn:focus-visible{outline:2px solid var(--internal-ring);outline-offset:1px;opacity:1}.modal-header{margin-bottom:var(--internal-spacing-md);padding-right:var(--internal-spacing-xl)}.modal-title{font-size:var(--internal-font-size-xl);font-weight:var(--internal-font-weight-semibold);color:var(--internal-foreground);margin:0;line-height:1.2}.modal-subtitle{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);margin-top:var(--internal-spacing-xs);line-height:1.4}.modal-description{color:var(--internal-foreground);font-size:var(--internal-font-size-base);line-height:1.6;white-space:pre-wrap;margin:0}';export{nR as session_services_ticketing}
|
|
1
|
+
import{r as e,c as t,g as n,h as r,H as i}from"./p-CNOpF6tk.js";function o(e){return Array.isArray(e)?e:null==e?[]:[e]}const a="orpc";var s=class extends Error{constructor(...e){super(...e),this.name="AbortError"}};function d(e){let t;return()=>{if(t)return t.result;let n=e();return t={result:n},n}}function c(){return globalThis["__@orpc/shared@1.13.7/otel/config__"]}function u(e,t={},n){return(c()?.tracer)?.startSpan(e,t,n)}function l(e,t,n={}){if(!e)return;let r=function(e){if(e instanceof Error){let t={message:e.message,name:e.name,stack:e.stack};return"code"in e&&("string"==typeof e.code||"number"==typeof e.code)&&(t.code=e.code),t}return{message:String(e)}}(t);e.recordException(r),(!n.signal?.aborted||n.signal.reason!==t)&&e.setStatus({code:2,message:r.message})}async function p({name:e,context:t,...n},r){let i=c()?.tracer;if(!i)return r();let o=async e=>{try{return await r(e)}catch(t){throw l(e,t,n),t}finally{e.end()}};return t?i.startActiveSpan(e,n,t,o):i.startActiveSpan(e,n,o)}async function m(e,t){let n=c();if(!e||!n)return t();let r=n.trace.setSpan(n.context.active(),e);return n.context.with(r,t)}function f(e){return!(!e||"object"!=typeof e)&&"next"in e&&"function"==typeof e.next&&Symbol.asyncIterator in e&&"function"==typeof e[Symbol.asyncIterator]}const h=Symbol.for("asyncDispose"),v=Symbol.asyncDispose??h;var g=class{#e=!1;#t=!1;#n;#r;constructor(e,t){this.#n=t,this.#r=function(e){let t=Promise.resolve();return(...n)=>t=t.catch((()=>{})).then((()=>e(...n)))}((async()=>{if(this.#e)return{done:!0,value:void 0};try{let t=await e();return t.done&&(this.#e=!0),t}catch(e){throw this.#e=!0,e}finally{this.#e&&!this.#t&&(this.#t=!0,await this.#n("next"))}}))}next(){return this.#r()}async return(e){return this.#e=!0,this.#t||(this.#t=!0,await this.#n("return")),{done:!0,value:e}}async throw(e){throw this.#e=!0,this.#t||(this.#t=!0,await this.#n("throw")),e}async[v](){this.#e=!0,this.#t||(this.#t=!0,await this.#n("dispose"))}[Symbol.asyncIterator](){return this}};function y({name:e,...t},n){let r;return new g((async()=>{r??=u(e);try{let e=await m(r,(()=>n.next()));return r?.addEvent(e.done?"completed":"yielded"),e}catch(e){throw l(r,e,t),e}}),(async e=>{try{"next"!==e&&await m(r,(()=>n.return?.()))}catch(e){throw l(r,e,t),e}finally{r?.end()}}))}function b(e,t,n){let r=(t,i)=>{let o=e[i];return o?o({...t,next:(e=t)=>r(e,i+1)}):n(t)};return r(t,0)}function w(e){if(e)return JSON.parse(e)}function $(e){return JSON.stringify(e)}function k(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||!t||!t.constructor}function I(e){return!!e&&("object"==typeof e||"function"==typeof e)}function x(e,t){let n=e;for(let e of t){if(!I(n))return;n=n[e]}return n}const E=(()=>{let e=function(){};return e.prototype=Object.create(null),Object.freeze(e.prototype),e})();function A(e,...t){return"function"==typeof e?e(...t):e}function T(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return"then"!==t||"function"!=typeof r?r:new Proxy(r,{apply(t,n,r){if(2!==r.length||r.some((e=>!function(e){return"function"==typeof e&&O.test(e.toString())}(e))))return Reflect.apply(t,n,r);let i=!0;r[0].call(n,T(new Proxy(e,{get:(e,t,n)=>{if(!i||"then"!==t)return Reflect.get(e,t,n);i=!1}})))}})}})}const O=/^\s*function\s*\(\)\s*\{\s*\[native code\]\s*\}\s*$/,_={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"}},D=Symbol.for("__@orpc/client@1.13.7/error/ORPC_ERROR_CONSTRUCTORS__");globalThis[D]??=new WeakSet;const S=globalThis[D];var M=class extends Error{defined;code;status;data;constructor(e,...t){let n=function(e){return e[0]??{}}(t);if(void 0!==n.status&&!j(n.status))throw Error("[ORPCError] Invalid error status code.");let r=function(e,t){return t||_[e]?.message||e}(e,n.message);super(r,n),this.code=e,this.status=function(e,t){return t??_[e]?.status??500}(e,n.status),this.defined=n.defined??!1,this.data=n.data}toJSON(){return{defined:this.defined,code:this.code,status:this.status,message:this.message,data:this.data}}static[Symbol.hasInstance](e){if(S.has(this)){let t=function(e){return I(e)?Object.getPrototypeOf(e)?.constructor:null}(e);if(t&&S.has(t))return!0}return super[Symbol.hasInstance](e)}};function P(e){return e instanceof M?e:new M("INTERNAL_SERVER_ERROR",{message:"Internal server error",cause:e})}function j(e){return e<200||e>=400}function C(e){if(!k(e))return!1;let t=["defined","code","status","message","data"];return!Object.keys(e).some((e=>!t.includes(e)))&&"defined"in e&&"boolean"==typeof e.defined&&"code"in e&&"string"==typeof e.code&&"status"in e&&"number"==typeof e.status&&j(e.status)&&"message"in e&&"string"==typeof e.message}function N(e,t={}){return new M(e.code,{...t,...e})}S.add(M);var R=class extends TypeError{},U=class extends TypeError{},L=class extends Error{data;constructor(e){super(e?.message??"An error event was received",e),this.data=e?.data}};function q(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=-1===t?e:e.slice(0,t),i=-1===t?"":e.slice(t+1).replace(/^\s/,"");if(0===t)n.comments.push(i);else if("data"===r)n.data??="",n.data+=`${i}\n`;else if("event"===r)n.event=i;else if("id"===r)n.id=i;else if("retry"===r){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 G=class{constructor(e={}){this.options=e}incomplete="";feed(e){this.incomplete+=e;let t=this.incomplete.lastIndexOf("\n\n");if(-1===t)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=q(`${e}\n\n`);this.options.onEvent&&this.options.onEvent(t)}}end(){if(this.incomplete)throw new U("Event Iterator ended before complete")}},z=class extends TransformStream{constructor(){let e;super({start(t){e=new G({onEvent:e=>{t.enqueue(e)}})},transform(t){e.feed(t)},flush(){e.end()}})}};function F(e){if(e.includes("\n"))throw new R("Event's id must not contain a newline character")}function B(e){if(!Number.isInteger(e)||e<0)throw new R("Event's retry must be a integer and >= 0")}function W(e){if(e.includes("\n"))throw new R("Event's comment must not contain a newline character")}function Z(e){let t="";return t+=function(e){let t="";for(let n of e??[])W(n),t+=`: ${n}\n`;return t}(e.comments),void 0!==e.event&&(function(e){if(e.includes("\n"))throw new R("Event's event must not contain a newline character")}(e.event),t+=`event: ${e.event}\n`),void 0!==e.retry&&(B(e.retry),t+=`retry: ${e.retry}\n`),void 0!==e.id&&(F(e.id),t+=`id: ${e.id}\n`),t+=function(e){let t=e?.split(/\n/)??[],n="";for(let e of t)n+=`data: ${e}\n`;return n}(e.data),t+="\n",t}const Y=Symbol("ORPC_EVENT_SOURCE_META");function V(e,t){if(void 0===t.id&&void 0===t.retry&&!t.comments?.length)return e;if(void 0!==t.id&&F(t.id),void 0!==t.retry&&B(t.retry),void 0!==t.comments)for(let e of t.comments)W(e);return new Proxy(e,{get:(e,n,r)=>n===Y?t:Reflect.get(e,n,r)})}function H(e){return I(e)?Reflect.get(e,Y):void 0}function K(e,t){let n={...e};for(let e in t)Array.isArray(t[e])?n[e]=[...o(n[e]),...t[e]]:void 0!==t[e]&&(n[e]=Array.isArray(n[e])?[...n[e],t[e]]:void 0===n[e]?t[e]:[n[e],t[e]]);return n}function J(e,t){let n=async e=>{let n=await t.error(e);if(n!==e){let t=H(e);t&&I(n)&&(n=V(n,t))}return n};return new g((async()=>{let{done:r,value:i}=await(async()=>{try{return await e.next()}catch(e){throw await n(e)}})(),o=await t.value(i,r);if(o!==i){let e=H(i);e&&I(o)&&(o=V(o,e))}return{done:r,value:o}}),(async()=>{try{await(e.return?.())}catch(e){throw await n(e)}}))}function Q(e,t={}){let n=t.path??[];return T(new Proxy((async(...[t,r={}])=>await e.call(n,t,function(e){return{...e,context:e.context??{}}}(r))),{get:(t,r)=>"string"==typeof r?Q(e,{path:[...n,r]}):Reflect.get(t,r)}))}function X(e,t={}){return p({name:"parse_standard_body",signal:t.signal},(async()=>{let n=e.headers.get("content-disposition");if("string"==typeof n){let t=function(e){let t=e.match(/filename\*=(UTF-8'')?([^;]*)/i);if(t&&"string"==typeof t[2])return function(e){try{return decodeURIComponent(e)}catch{return e}}(t[2]);let n=e.match(/filename="((?:\\"|[^"])*)"/i);return n&&"string"==typeof n[1]?n[1].replace(/\\"/g,'"'):void 0}(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 w(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 function(e,t={}){let n,r=(e?.pipeThrough(new TextDecoderStream).pipeThrough(new z))?.getReader(),i=!1;return new g((async()=>{n??=u("consume_event_iterator_stream");try{for(;;){if(void 0===r)return{done:!0,value:void 0};let{done:e,value:t}=await m(n,(()=>r.read()));if(e){if(i)throw new s("Stream was cancelled");return{done:!0,value:void 0}}switch(t.event){case"message":{let e=w(t.data);return I(e)&&(e=V(e,t)),n?.addEvent("message"),{done:!1,value:e}}case"error":{let e=new L({data:w(t.data)});throw e=V(e,t),n?.addEvent("error"),e}case"done":{let e=w(t.data);return I(e)&&(e=V(e,t)),n?.addEvent("done"),{done:!0,value:e}}default:n?.addEvent("maybe_keepalive")}}}catch(e){throw e instanceof L||l(n,e,t),e}}),(async e=>{try{"next"!==e&&(i=!0,n?.addEvent("cancelled")),await m(n,(()=>r?.cancel()))}catch(e){throw l(n,e,t),e}finally{n?.end()}}))}(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 ee(e,t={}){return e.forEach(((e,n)=>{Array.isArray(t[n])?t[n].push(e):t[n]=void 0===t[n]?e:[t[n],e]})),t}function te(e,t={}){let n=function(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 void 0!==r&&t.append(n,r);return t}(e.headers),r=function(e,t,n={}){let r=t.get("content-disposition");if(t.delete("content-type"),t.delete("content-disposition"),void 0!==e)return e instanceof Blob?(t.set("content-type",e.type),t.set("content-length",e.size.toString()),t.set("content-disposition",r??function(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))))}`}(e instanceof File?e.name:"blob")),e):e instanceof FormData||e instanceof URLSearchParams?e:f(e)?(t.set("content-type","text/event-stream"),function(e,t={}){let n,r,i=t.eventIteratorKeepAliveEnabled??!0,o=t.eventIteratorKeepAliveInterval??5e3,a=t.eventIteratorKeepAliveComment??"",s=t.eventIteratorInitialCommentEnabled??!0,d=t.eventIteratorInitialComment??"",c=!1;return new ReadableStream({start(e){r=u("stream_event_iterator"),s&&e.enqueue(Z({comments:[d]}))},async pull(t){try{i&&(n=setInterval((()=>{t.enqueue(Z({comments:[a]})),r?.addEvent("keepalive")}),o));let s=await m(r,(()=>e.next()));if(clearInterval(n),c)return;let d=H(s.value);if(!s.done||void 0!==s.value||void 0!==d){let e=s.done?"done":"message";t.enqueue(Z({...d,event:e,data:$(s.value)})),r?.addEvent(e)}s.done&&(t.close(),r?.end())}catch(e){if(clearInterval(n),c)return;e instanceof L?(t.enqueue(Z({...H(e),event:"error",data:$(e.data)})),r?.addEvent("error"),t.close()):(l(r,e),t.error(e)),r?.end()}},async cancel(){try{c=!0,clearInterval(n),r?.addEvent("cancelled"),await m(r,(()=>e.return?.()))}catch(e){throw l(r,e),e}finally{r?.end()}}}).pipeThrough(new TextEncoderStream)}(e,n)):(t.set("content-type","application/json"),$(e))}(e.body,n,t);return new Request(e.url,{signal:e.signal,method:e.method,headers:n,body:r})}var ne=class{plugins;constructor(e=[]){this.plugins=[...e].sort(((e,t)=>(e.order??0)-(t.order??0)))}init(e){for(let t of this.plugins)t.init?.(e)}},re=class{constructor(e,t,n={}){this.codec=e,this.sender=t,new ne(n.plugins).init(n),this.interceptors=o(n.interceptors),this.clientInterceptors=o(n.clientInterceptors)}interceptors;clientInterceptors;call(e,t,n){return p({name:`${a}.${e.join("/")}`,signal:n.signal},(r=>(r?.setAttribute("rpc.system",a),r?.setAttribute("rpc.method",e.join(".")),f(t)&&(t=y({name:"consume_event_iterator_input",signal:n.signal},t)),b(this.interceptors,{...n,path:e,input:t},(async({path:e,input:t,...n})=>{let i,o=c(),a=o?.trace.getActiveSpan()??r;a&&o&&(i=o?.trace.setSpan(o.context.active(),a));let s=await p({name:"encode_request",context:i},(()=>this.codec.encode(e,t,n))),d=await b(this.clientInterceptors,{...n,input:t,path:e,request:s},(({input:e,path:t,request:n,...r})=>p({name:"send_request",signal:r.signal,context:i},(()=>this.sender.call(n,r,t,e))))),u=await p({name:"decode_response",context:i},(()=>this.codec.decode(d,n,e,t)));return f(u)?y({name:"consume_event_iterator_output",signal:n.signal},u):u})))))}};function ie(e){return`/${e.map(encodeURIComponent).join("/")}`}function oe(e,t){return{...e,...t}}var ae=class{"~orpc";constructor(e){if(e.route?.successStatus&&j(e.route.successStatus))throw Error("[ContractProcedure] Invalid successStatus.");if(Object.values(e.errorMap).some((e=>e&&e.status&&!j(e.status))))throw Error("[ContractProcedure] Invalid error status code.");this["~orpc"]=e}};function se(e){return e instanceof ae||("object"==typeof e||"function"==typeof e)&&null!==e&&"~orpc"in e&&"object"==typeof e["~orpc"]&&null!==e["~orpc"]&&"errorMap"in e["~orpc"]&&"route"in e["~orpc"]&&"meta"in e["~orpc"]}function de(e,t){return{...e,...t}}function ce(e,t){return{...e,...t}}function ue(e,t){return e?`${e}${t}`:t}function le(e,t){return e?[...e,...t]:t}function pe(e,t){let n=e;return t.prefix&&(n=function(e,t){return e.path?{...e,path:`${t}${e.path}`}:e}(n,t.prefix)),t.tags?.length&&(n=function(e,t){return{...e,tags:[...t,...e.tags??[]]}}(n,t.tags)),n}function me(e,t){if(se(e))return new ae({...e["~orpc"],errorMap:oe(t.errorMap,e["~orpc"].errorMap),route:pe(e["~orpc"].route,t)});let n={};for(let r in e)n[r]=me(e[r],t);return n}const fe=new class e extends ae{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:oe(this["~orpc"].errorMap,t)})}meta(t){return new e({...this["~orpc"],meta:de(this["~orpc"].meta,t)})}route(t){return new e({...this["~orpc"],route:ce(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:ue(this["~orpc"].prefix,t)})}tag(...t){return new e({...this["~orpc"],tags:le(this["~orpc"].tags,t)})}router(e){return me(e,this["~orpc"])}}({errorMap:{},route:{},meta:{}}),he={defaultMethod:"POST",defaultSuccessStatus:200,defaultSuccessDescription:"OK",defaultInputStructure:"compact",defaultOutputStructure:"compact"};function ve(e,t){return void 0===t?he[e]:t}const ge=Symbol.for("constructDateFrom");function ye(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&ge in e?e[ge](t):e instanceof Date?new e.constructor(t):new Date(t)}function be(e,t){let n=function(e){return ye(e,e)}(e);return isNaN(t)?ye(e,NaN):(t&&n.setDate(n.getDate()+t),n)}const we={},$e={};function ke(e,t){try{let n=(we[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return n in $e?$e[n]:xe(n,n.split(":"))}catch{if(e in $e)return $e[e];let t=e?.match(Ie);return t?xe(e,t.slice(1)):NaN}}const Ie=/([+-]\d\d):?(\d\d)?/;function xe(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return $e[e]=60*n+r>0?60*n+r+i:60*n-r-i}var Ee=class e extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(ke(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),Oe(this),Te(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=-ke(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Te(this),+this}[Symbol.for("constructDateFrom")](t){return new e(+new Date(t),this.timeZone)}};const Ae=/^(get|set)(?!UTC)/;function Te(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(60*-ke(e.timeZone,e)))}function Oe(e){let t=ke(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(),o=i- -new Date(+r).getTimezoneOffset(),a=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();o&&a&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+o);let s=i-n;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);let d=new Date(+e);d.setUTCSeconds(0);let c=i>0?d.getSeconds():(d.getSeconds()-60)%60,u=Math.round(-60*ke(e.timeZone,e))%60;(u||c)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+u),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+u+c));let l=ke(e.timeZone,e),p=l>0?Math.floor(l):Math.ceil(l),m=-new Date(+e).getTimezoneOffset()-p-s;if(p!==n&&m){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+m);let t=ke(e.timeZone,e),n=p-(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 _e(e){return("string"==typeof e?new Date(e):e).toISOString().replace(/\.\d{3}Z$/,"")}let De;function Se(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:a,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=a.prototype,o=Object.keys(i);for(let e=0;e<o.length;e++){let t=o[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class o extends i{}function a(e){var t;let i=n?.Parent?new o:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,"name",{value:e}),Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:t=>!!(n?.Parent&&t instanceof n.Parent)||t?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}Object.getOwnPropertyNames(Date.prototype).forEach((e=>{if(!Ae.test(e))return;let t=e.replace(Ae,"$1UTC");Ee.prototype[t]&&(e.startsWith("get")?Ee.prototype[e]=function(){return this.internal[t]()}:(Ee.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),function(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()),Oe(e)}(this),+this},Ee.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Te(this),+this}))})),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:!1};e.EmailVerification={id:"emlvrf_01jps5cgsd4tzjghtnt45qnhn0",userId:"usr_01jps5cgsd4tzjghtnt45qnhn0",tenantId:t.id,email:"test@session.services",code:"123456",expiresAt:new Date(Date.now()+18e5).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()+9e5).toISOString(),emailVerified:!1,twoFactorVerified:!1,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:!1},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:!1};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:!1};let o=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:!0,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:!0,tenantId:t.id},e.TeamInvite={id:"inv_01jqpjksnsen9vprw95et60t4m",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),expiresAt:Math.floor(be(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:!0,promoters:[{...i,member:o}]},e.Session={id:"sess_01jps5cgsd4tzjghtnt45qnhn0",userId:n.id,tenantId:t.id,expiresAt:be(new Date,30).toISOString(),twoFactorVerified:!1,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()},e.BackupCode={id:"bkc_01jps5cgsd4tzjghtnt45qnhn0",userId:n.id,tenantId:t.id,code:"ABC123DEF456",used:!1,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:!0,expiresAt:be(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:!0,credentialBackupState:!1,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:!1,credentialBackupState:!1,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:!0,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()};let a=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:_e(be(new Date,1)),entryEndsAt:_e(be(new Date,2)),publishAt:_e(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:a,teamId:r.id,promoterId:i.id,tenantId:t.id,deleted:!1},d=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:a,passcode:void 0,tenantId:t.id,deleted:!1,orderPadded:"0000000000"},c=e.Admission={id:"adm_01jps5cgsee0xvapbk92e8eb4g",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),sectionId:d.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:_e(be(new Date,1)),entryEndsAt:_e(be(new Date,2)),saleStartsAt:_e(new Date),saleEndsAt:_e(be(new Date,2)),saleEndsBehavior:"SALE_ENDED",price:{base:1e3,booking:200,currency:"AUD"},visibility:"ALWAYS",passcode:void 0,tenantId:t.id,deleted:!1,orderPadded:"0000000000"};e.DetailedEvent={...s,admissions:[c],sections:[d]};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 l=e.Coupon={id:"cpn_01jps5cgsfzs1ksqaet5hba8ac",couponId:"cpn_01jps5cgsfzs1ksqaet5hba8ac",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),name:"Half Price",active:!0,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:!1},p=e.CouponCode={id:"cod_01jps5cgsfzftw7hxcvr2wftk2",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),active:!0,name:"TEST50",uses:0,tenantId:t.id,couponId:l.id,teamId:r.id,deleted:!1},m=e.AmountCoupon={id:"cpn_01jps5cgsfndn8jcsfvh72x811",couponId:"cpn_01jps5cgsfndn8jcsfvh72x811",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),name:"Half Price",active:!0,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:!0,name:"TEST5DOLLAR",uses:0,tenantId:t.id,couponId:m.id,teamId:r.id};let f=e.Customer={id:"cus_01jps5cgsf4pn2a32eamppnap1",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),firstName:"Test",lastName:"User",email:"test@session.services",phone:"+61411111111",tenantId:t.id},h=e.PayoutTransfer={id:"xfr_01jq8s6c38f97w9yfrfcdhf47v",createdAt:(new Date).toISOString(),kind:"TICKETS",amount:1e3,currency:"AUD",fee:0,feeCurrency:"AUD",reference:"XYZ",gateway:"AIRWALLEX",gatewayId:"fe33fb0f-d9d8-47cd-8eef-6a19bd6223eb",beneficiary:u.name,beneficiaryId:u.id},v=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},g=e.Payout={id:"pyt_01jps5cgsfv2wre6hd0rc4w4t8",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),paidAt:(new Date).toISOString(),status:"PAID",method:"AIRWALLEX",structure:"DEFAULT",approval:"PENDING",frequency:"AFTER_EVENT",transfers:[h],deductions:[v],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},y=e.OrderItem={id:"itm_01jps5cgsfwyxj0516571eaf17",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),orderId:"ord_01jps5cgsfgve5b5g2666kyryh",kind:"ADMISSION",quantity:2,admissionId:c.id,sectionId:d.id,price:{net:c.price.base+c.price.booking,total:c.price.base+c.price.booking,gross:c.price.base+c.price.booking,base:c.price.base,booking:c.price.booking,refunded:0,discount:0,currency:c.price.currency}};e.OrderFee={id:"fee_01jps5cgsgamykd6kh2t738qkh",createdAt:(new Date).toISOString(),reason:"Gateway Fee",amount:-30,currency:"AUD",requestId:"att_sgpdz4v2ph1axmdmdx8_m8w6qv"};let b=e.OrderOffer={kind:"SMS_DELIVERY",label:"SMS ticket delivery",price:{amount:200,currency:"AUD"}},w=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:p.id,name:p.name},event:{id:s.id,name:s.name,slug:s.slug},fees:[],items:[y],customer:De.Customer,customerId:De.Customer.id,teamId:De.Team.id,promoterId:De.Promoter.id,promoterSlug:De.Promoter.slug,eventId:De.Event.id,eventSlug:De.Event.slug,payment:{method:"AIRWALLEX",source:"CARD"},payoutIds:[g.id],refunds:[],offers:[b],tenantId:De.Tenant.id,checkoutUrl:`${t.baseUrl.dev}/checkout/ord_01jps5cgsfgve5b5g2666kyryh`,signature:"Q2hXbG9uZ1NpZzE2"},$=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:!0,ticketsCancelledCount:2,gateway:"STRIPE",gatewayRefundId:"re_1234567890abcdef",initiatedBy:"USER",userId:n.id,createdAt:(new Date).toISOString()},e.OrderRefundItem={orderItemId:y.id,quantity:2,amount:1200,ticketIds:["tkt_01jps5cgsg0s32w2pr73vbccde"]},e.Notification={id:"ntf_01jps5cgsfgve5b5g2666kyryh",aggregateType:"ORDER",aggregateId:w.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:[$],token:"7b81e13025f78f9935d5933eec3ab25e3c2bb811c99f2470182dd6ba4394ff82",attendee:{email:f.email,firstName:f.firstName,lastName:f.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:c.id,name:c.name,price:c.price,entryStartsAt:c.entryStartsAt,entryEndsAt:c.entryEndsAt},eventId:s.id,admissionId:c.id,customerId:f.id,orderId:w.id,orderItemId:y.id,teamId:r.id,promoterId:i.id,promoterSlug:i.slug,tenantId:t.id}}(De||={});var Me=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Pe=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};const je={};function Ce(){return je}function Ne(e,t){return"bigint"==typeof t?t.toString():t}function Re(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Ue(e){return null==e}function Le(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const qe=Symbol("evaluating");function Ge(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==qe)return void 0===r&&(r=qe,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function ze(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Fe(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function Be(e){return JSON.stringify(e)}const We="captureStackTrace"in Error?Error.captureStackTrace:()=>{};function Ze(e){return"object"==typeof e&&!!e&&!Array.isArray(e)}const Ye=Re((()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch{return!1}}));function Ve(e){if(!1===Ze(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let n=t.prototype;return!(!1===Ze(n)||!1===Object.prototype.hasOwnProperty.call(n,"isPrototypeOf"))}function He(e){return Ve(e)?{...e}:Array.isArray(e)?[...e]:e}const Ke=new Set(["string","number","symbol"]);function Je(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Qe(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Xe(e){let t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(void 0!==t?.message){if(void 0!==t?.error)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,"string"==typeof t.error?{...t,error:()=>t.error}:t}const et={safeint:[-9007199254740991,2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function tt(e,t=0){if(!0===e.aborted)return!0;for(let n=t;n<e.issues.length;n++)if(!0!==e.issues[n]?.continue)return!0;return!1}function nt(e,t){return t.map((t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t}))}function rt(e){return"string"==typeof e?e:e?.message}function it(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=rt(e.inst?._zod.def?.error?.(e))??rt(t?.error?.(e))??rt(n.customError?.(e))??rt(n.localeError?.(e))??"Invalid input"),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function ot(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function at(...e){let[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}const st=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ne,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},dt=Se("$ZodError",st),ct=Se("$ZodError",st,{Parent:Error}),ut=e=>(t,n,r,i)=>{let o=r?Object.assign(r,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Me;if(a.issues.length){let t=new(i?.Err??e)(a.issues.map((e=>it(e,o,Ce()))));throw We(t,i?.callee),t}return a.value},lt=e=>async(t,n,r,i)=>{let o=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let t=new(i?.Err??e)(a.issues.map((e=>it(e,o,Ce()))));throw We(t,i?.callee),t}return a.value},pt=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new Me;return o.issues.length?{success:!1,error:new(e??dt)(o.issues.map((e=>it(e,i,Ce()))))}:{success:!0,data:o.value}},mt=pt(ct),ft=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map((e=>it(e,i,Ce()))))}:{success:!0,data:o.value}},ht=ft(ct),vt=/^[cC][^\s-]{8,}$/,gt=/^[0-9a-z]+$/,yt=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,bt=/^[0-9a-vA-V]{20}$/,wt=/^[A-Za-z0-9]{27}$/,$t=/^[a-zA-Z0-9_-]{21}$/,kt=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,It=/^([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})$/,xt=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Et=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,At=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Tt=/^(([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}|:))$/,Ot=/^((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])$/,_t=/^(([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])$/,Dt=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,St=/^[A-Za-z0-9_-]*$/,Mt=/^\+(?:[0-9]){6,14}[0-9]$/,Pt="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",jt=RegExp(`^${Pt}$`);function Ct(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}const Nt=/^-?\d+$/,Rt=/^-?\d+(?:\.\d+)?/,Ut=/^(?:true|false)$/i,Lt=/^null$/i,qt=/^[^A-Z]*$/,Gt=/^[^a-z]*$/,zt=Se("$ZodCheck",((e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])})),Ft={number:"number",bigint:"bigint",object:"date"},Bt=Se("$ZodCheckLessThan",((e,t)=>{zt.init(e,t);let n=Ft[typeof t.value];e._zod.onattach.push((e=>{let n=e._zod.bag;t.value<((t.inclusive?n.maximum:n.exclusiveMaximum)??1/0)&&(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})}})),Wt=Se("$ZodCheckGreaterThan",((e,t)=>{zt.init(e,t);let n=Ft[typeof t.value];e._zod.onattach.push((e=>{let n=e._zod.bag;t.value>((t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0)&&(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})}})),Zt=Se("$ZodCheckMultipleOf",((e,t)=>{zt.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.");("bigint"==typeof n.value?n.value%t.value===BigInt(0):0===function(e,t){let n=(e.toString().split(".")[1]||"").length,r=t.toString(),i=(r.split(".")[1]||"").length;if(0===i&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let o=n>i?n:i;return Number.parseInt(e.toFixed(o).replace(".",""))%Number.parseInt(t.toFixed(o).replace(".",""))/10**o}(n.value,t.value))||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}})),Yt=Se("$ZodCheckNumberFormat",((e,t)=>{zt.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[i,o]=et[t.format];e._zod.onattach.push((e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=o,n&&(r.pattern=Nt)})),e._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s))return void a.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void a.issues.push(s>0?{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}:{input:s,code:"too_small",minimum:-9007199254740991,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort})}s<i&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inst:e})}})),Vt=Se("$ZodCheckMaxLength",((e,t)=>{var n;zt.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ue(t)&&void 0!==t.length}),e._zod.onattach.push((e=>{t.maximum<(e._zod.bag.maximum??1/0)&&(e._zod.bag.maximum=t.maximum)})),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=ot(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}})),Ht=Se("$ZodCheckMinLength",((e,t)=>{var n;zt.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ue(t)&&void 0!==t.length}),e._zod.onattach.push((e=>{t.minimum>(e._zod.bag.minimum??-1/0)&&(e._zod.bag.minimum=t.minimum)})),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=ot(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}})),Kt=Se("$ZodCheckLengthEquals",((e,t)=>{var n;zt.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Ue(t)&&void 0!==t.length}),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 o=ot(r);n.issues.push({origin:o,...i>t.length?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}})),Jt=Se("$ZodCheckStringFormat",((e,t)=>{var n,r;zt.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=()=>{})})),Qt=Se("$ZodCheckRegex",((e,t)=>{Jt.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})}})),Xt=Se("$ZodCheckLowerCase",((e,t)=>{t.pattern??=qt,Jt.init(e,t)})),en=Se("$ZodCheckUpperCase",((e,t)=>{t.pattern??=Gt,Jt.init(e,t)})),tn=Se("$ZodCheckIncludes",((e,t)=>{zt.init(e,t);let n=Je(t.includes),r=new RegExp("number"==typeof t.position?`^.{${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})}})),nn=Se("$ZodCheckStartsWith",((e,t)=>{zt.init(e,t);let n=RegExp(`^${Je(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})}})),rn=Se("$ZodCheckEndsWith",((e,t)=>{zt.init(e,t);let n=RegExp(`.*${Je(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})}})),on=Se("$ZodCheckOverwrite",((e,t)=>{zt.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}));var an=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});let t=e.split("\n").filter((e=>e)),n=Math.min(...t.map((e=>e.length-e.trimStart().length))),r=t.map((e=>e.slice(n))).map((e=>" ".repeat(2*this.indent)+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("\n"))}};const sn={major:4,minor:1,patch:13},dn=Se("$ZodType",((e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=sn;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(0===r.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push((()=>{e._zod.run=e._zod.parse}));else{let t=(e,t,n)=>{let r,i=tt(e);for(let o of t){if(o._zod.def.when){if(!o._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,a=o._zod.check(e);if(a instanceof Promise&&!1===n?.async)throw new Me;if(r||a instanceof Promise)r=(r??Promise.resolve()).then((async()=>{await a,e.issues.length!==t&&(i||=tt(e,t))}));else{if(e.issues.length===t)continue;i||=tt(e,t)}}return r?r.then((()=>e)):e},n=(n,i,o)=>{if(tt(n))return n.aborted=!0,n;let a=t(i,r,o);if(a instanceof Promise){if(!1===o.async)throw new Me;return a.then((t=>e._zod.parse(t,o)))}return e._zod.parse(a,o)};e._zod.run=(i,o)=>{if(o.skipChecks)return e._zod.parse(i,o);if("backward"===o.direction){let t=e._zod.parse({value:i.value,issues:[]},{...o,skipChecks:!0});return t instanceof Promise?t.then((e=>n(e,i,o))):n(t,i,o)}let a=e._zod.parse(i,o);if(a instanceof Promise){if(!1===o.async)throw new Me;return a.then((e=>t(e,r,o)))}return t(a,r,o)}}e["~standard"]={validate:t=>{try{let n=mt(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return ht(e,t).then((e=>e.success?{value:e.data}:{issues:e.error?.issues}))}},vendor:"zod",version:1}})),cn=Se("$ZodString",((e,t)=>{dn.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(e=>RegExp(`^${e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*"}$`))(e._zod.bag),e._zod.parse=n=>{if(t.coerce)try{n.value=String(n.value)}catch{}return"string"==typeof n.value||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}})),un=Se("$ZodStringFormat",((e,t)=>{Jt.init(e,t),cn.init(e,t)})),ln=Se("$ZodGUID",((e,t)=>{t.pattern??=It,un.init(e,t)})),pn=Se("$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(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=xt(e)}else t.pattern??=xt();un.init(e,t)})),mn=Se("$ZodEmail",((e,t)=>{t.pattern??=Et,un.init(e,t)})),fn=Se("$ZodURL",((e,t)=>{un.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);return 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})),void(n.value=t.normalize?i.href:r)}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}})),hn=Se("$ZodEmoji",((e,t)=>{t.pattern??=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u"),un.init(e,t)})),vn=Se("$ZodNanoID",((e,t)=>{t.pattern??=$t,un.init(e,t)})),gn=Se("$ZodCUID",((e,t)=>{t.pattern??=vt,un.init(e,t)})),yn=Se("$ZodCUID2",((e,t)=>{t.pattern??=gt,un.init(e,t)})),bn=Se("$ZodULID",((e,t)=>{t.pattern??=yt,un.init(e,t)})),wn=Se("$ZodXID",((e,t)=>{t.pattern??=bt,un.init(e,t)})),$n=Se("$ZodKSUID",((e,t)=>{t.pattern??=wt,un.init(e,t)})),kn=Se("$ZodISODateTime",((e,t)=>{t.pattern??=function(e){let t=Ct({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${t}(?:${n.join("|")})`;return RegExp(`^${Pt}T(?:${r})$`)}(t),un.init(e,t)})),In=Se("$ZodISODate",((e,t)=>{t.pattern??=jt,un.init(e,t)})),xn=Se("$ZodISOTime",((e,t)=>{t.pattern??=function(e){return RegExp(`^${Ct(e)}$`)}(t),un.init(e,t)})),En=Se("$ZodISODuration",((e,t)=>{t.pattern??=kt,un.init(e,t)})),An=Se("$ZodIPv4",((e,t)=>{t.pattern??=At,un.init(e,t),e._zod.bag.format="ipv4"})),Tn=Se("$ZodIPv6",((e,t)=>{t.pattern??=Tt,un.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})}}})),On=Se("$ZodCIDRv4",((e,t)=>{t.pattern??=Ot,un.init(e,t)})),_n=Se("$ZodCIDRv6",((e,t)=>{t.pattern??=_t,un.init(e,t),e._zod.check=n=>{let r=n.value.split("/");try{if(2!==r.length)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 Dn(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const Sn=Se("$ZodBase64",((e,t)=>{t.pattern??=Dt,un.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Dn(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}})),Mn=Se("$ZodBase64URL",((e,t)=>{t.pattern??=St,un.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{(function(e){if(!St.test(e))return!1;let t=e.replace(/[-_]/g,(e=>"-"===e?"+":"/"));return Dn(t.padEnd(4*Math.ceil(t.length/4),"="))})(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}})),Pn=Se("$ZodE164",((e,t)=>{t.pattern??=Mt,un.init(e,t)})),jn=Se("$ZodJWT",((e,t)=>{un.init(e,t),e._zod.check=n=>{(function(e,t=null){try{let n=e.split(".");if(3!==n.length)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!("typ"in i&&"JWT"!==i?.typ||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}})(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}})),Cn=Se("$ZodNumber",((e,t)=>{dn.init(e,t),e._zod.pattern=e._zod.bag.pattern??Rt,e._zod.parse=n=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let r=n.value;if("number"==typeof r&&!Number.isNaN(r)&&Number.isFinite(r))return n;let i="number"==typeof r?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),n}})),Nn=Se("$ZodNumberFormat",((e,t)=>{Yt.init(e,t),Cn.init(e,t)})),Rn=Se("$ZodBoolean",((e,t)=>{dn.init(e,t),e._zod.pattern=Ut,e._zod.parse=n=>{if(t.coerce)try{n.value=!!n.value}catch{}let r=n.value;return"boolean"==typeof r||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}})),Un=Se("$ZodNull",((e,t)=>{dn.init(e,t),e._zod.pattern=Lt,e._zod.values=new Set([null]),e._zod.parse=t=>{let n=t.value;return null===n||t.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),t}})),Ln=Se("$ZodAny",((e,t)=>{dn.init(e,t),e._zod.parse=e=>e})),qn=Se("$ZodUnknown",((e,t)=>{dn.init(e,t),e._zod.parse=e=>e})),Gn=Se("$ZodNever",((e,t)=>{dn.init(e,t),e._zod.parse=t=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)})),zn=Se("$ZodVoid",((e,t)=>{dn.init(e,t),e._zod.parse=t=>{let n=t.value;return void 0===n||t.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),t}})),Fn=Se("$ZodDate",((e,t)=>{dn.init(e,t),e._zod.parse=n=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let r=n.value,i=r instanceof Date;return i&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...i?{received:"Invalid Date"}:{},inst:e}),n}}));function Bn(e,t,n){e.issues.length&&t.issues.push(...nt(n,e.issues)),t.value[n]=e.value}const Wn=Se("$ZodArray",((e,t)=>{dn.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 o=[];for(let e=0;e<i.length;e++){let a=t.element._zod.run({value:i[e],issues:[]},r);a instanceof Promise?o.push(a.then((t=>Bn(t,n,e)))):Bn(a,n,e)}return o.length?Promise.all(o).then((()=>n)):n}}));function Zn(e,t,n,r){e.issues.length&&t.issues.push(...nt(n,e.issues)),void 0===e.value?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Yn(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=function(e){return Object.keys(e).filter((t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout))}(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Vn(e,t,n,r,i,o){let a=[],s=i.keySet,d=i.catchall._zod,c=d.def.type;for(let i in t){if(s.has(i))continue;if("never"===c){a.push(i);continue}let o=d.run({value:t[i],issues:[]},r);o instanceof Promise?e.push(o.then((e=>Zn(e,n,i,t)))):Zn(o,n,i,t)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then((()=>n)):n}const Hn=Se("$ZodObject",((e,t)=>{if(dn.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=Re((()=>Yn(t)));Ge(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,i=Ze,o=t.catchall;e._zod.parse=(t,a)=>{r??=n.value;let s=t.value;if(!i(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value={};let d=[],c=r.shape;for(let e of r.keys){let n=c[e]._zod.run({value:s[e],issues:[]},a);n instanceof Promise?d.push(n.then((n=>Zn(n,t,e,s)))):Zn(n,t,e,s)}return o?Vn(d,s,t,a,n.value,e):d.length?Promise.all(d).then((()=>t)):t}})),Kn=Se("$ZodObjectJIT",((e,t)=>{Hn.init(e,t);let n,r,i=e._zod.parse,o=Re((()=>Yn(t))),a=Ze,s=!je.jitless,d=s&&Ye.value,c=t.catchall;e._zod.parse=(u,l)=>{r??=o.value;let p=u.value;return a(p)?s&&d&&!1===l?.async&&!0!==l.jitless?(n||=(e=>{let t=new an(["shape","payload","ctx"]),n=o.value,r=e=>{let t=Be(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),a=0;for(let e of n.keys)i[e]="key_"+a++;t.write("const newResult = {};");for(let e of n.keys){let n=i[e],o=Be(e);t.write(`const ${n} = ${r(e)};`),t.write(`\n if (${n}.issues.length) {\n payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${o}, ...iss.path] : [${o}]\n })));\n }\n \n \n if (${n}.value === undefined) {\n if (${o} in input) {\n newResult[${o}] = undefined;\n }\n } else {\n newResult[${o}] = ${n}.value;\n }\n \n `)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,n)=>s(e,t,n)})(t.shape),u=n(u,l),c?Vn([],p,u,l,r,e):u):i(u,l):(u.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),u)}}));function Jn(e,t,n,r){for(let n of e)if(0===n.issues.length)return t.value=n.value,t;let i=e.filter((e=>!tt(e)));return 1===i.length?(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=>it(e,r,Ce())))))}),t)}const Qn=Se("$ZodUnion",((e,t)=>{dn.init(e,t),Ge(e._zod,"optin",(()=>t.options.some((e=>"optional"===e._zod.optin))?"optional":void 0)),Ge(e._zod,"optout",(()=>t.options.some((e=>"optional"===e._zod.optout))?"optional":void 0)),Ge(e._zod,"values",(()=>{if(t.options.every((e=>e._zod.values)))return new Set(t.options.flatMap((e=>Array.from(e._zod.values))))})),Ge(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=>Le(e.source))).join("|")})$`)}}));let n=1===t.options.length,r=t.options[0]._zod.run;e._zod.parse=(i,o)=>{if(n)return r(i,o);let a=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},o);if(t instanceof Promise)s.push(t),a=!0;else{if(0===t.issues.length)return t;s.push(t)}}return a?Promise.all(s).then((t=>Jn(t,i,e,o))):Jn(s,i,e,o)}})),Xn=Se("$ZodDiscriminatedUnion",((e,t)=>{Qn.init(e,t);let n=e._zod.parse;Ge(e._zod,"propValues",(()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||0===Object.keys(r).length)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=Re((()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||0===e.size)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,o)=>{let a=i.value;if(!Ze(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;let s=r.value.get(a?.[t.discriminator]);return s?s._zod.run(i,o):t.unionFallback?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),i)}})),er=Se("$ZodIntersection",((e,t)=>{dn.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),o=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then((([t,n])=>nr(e,t,n))):nr(e,i,o)}}));function tr(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Ve(e)&&Ve(t)){let n=Object.keys(t),r=Object.keys(e).filter((e=>-1!==n.indexOf(e))),i={...e,...t};for(let n of r){let r=tr(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=tr(e[r],t[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function nr(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),tt(e))return e;let r=tr(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const rr=Se("$ZodRecord",((e,t)=>{dn.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Ve(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;let o=[],a=t.keyType._zod.values;if(a){n.value={};let s,d=new Set;for(let e of a)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){d.add("number"==typeof e?e.toString():e);let a=t.valueType._zod.run({value:i[e],issues:[]},r);a instanceof Promise?o.push(a.then((t=>{t.issues.length&&n.issues.push(...nt(e,t.issues)),n.value[e]=t.value}))):(a.issues.length&&n.issues.push(...nt(e,a.issues)),n.value[e]=a.value)}for(let e in i)d.has(e)||(s??=[],s.push(e));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else{n.value={};for(let a of Reflect.ownKeys(i)){if("__proto__"===a)continue;let s=t.keyType._zod.run({value:a,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=>it(e,r,Ce()))),input:a,path:[a],inst:e}),n.value[s.value]=s.value;continue}let d=t.valueType._zod.run({value:i[a],issues:[]},r);d instanceof Promise?o.push(d.then((e=>{e.issues.length&&n.issues.push(...nt(a,e.issues)),n.value[s.value]=e.value}))):(d.issues.length&&n.issues.push(...nt(a,d.issues)),n.value[s.value]=d.value)}}return o.length?Promise.all(o).then((()=>n)):n}})),ir=Se("$ZodEnum",((e,t)=>{dn.init(e,t);let n=function(e){let t=Object.values(e).filter((e=>"number"==typeof e));return Object.entries(e).filter((([e,n])=>-1===t.indexOf(+e))).map((([e,t])=>t))}(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter((e=>Ke.has(typeof e))).map((e=>"string"==typeof e?Je(e):e.toString())).join("|")})$`),e._zod.parse=t=>{let i=t.value;return r.has(i)||t.issues.push({code:"invalid_value",values:n,input:i,inst:e}),t}})),or=Se("$ZodLiteral",((e,t)=>{if(dn.init(e,t),0===t.values.length)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=>"string"==typeof e?Je(e):e?Je(e.toString()):String(e))).join("|")})$`),e._zod.parse=r=>{let i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}})),ar=Se("$ZodTransform",((e,t)=>{dn.init(e,t),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new Pe(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 Me;return n.value=i,n}}));function sr(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}const dr=Se("$ZodOptional",((e,t)=>{dn.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ge(e._zod,"values",(()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0)),Ge(e._zod,"pattern",(()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Le(e.source)})?$`):void 0})),e._zod.parse=(e,n)=>{if("optional"===t.innerType._zod.optin){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then((t=>sr(t,e.value))):sr(r,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,n)}})),cr=Se("$ZodNullable",((e,t)=>{dn.init(e,t),Ge(e._zod,"optin",(()=>t.innerType._zod.optin)),Ge(e._zod,"optout",(()=>t.innerType._zod.optout)),Ge(e._zod,"pattern",(()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Le(e.source)}|null)$`):void 0})),Ge(e._zod,"values",(()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0)),e._zod.parse=(e,n)=>null===e.value?e:t.innerType._zod.run(e,n)})),ur=Se("$ZodDefault",((e,t)=>{dn.init(e,t),e._zod.optin="optional",Ge(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);if(void 0===e.value)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then((e=>lr(e,t))):lr(r,t)}}));function lr(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}const pr=Se("$ZodPrefault",((e,t)=>{dn.init(e,t),e._zod.optin="optional",Ge(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,n)=>("backward"===n.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))})),mr=Se("$ZodNonOptional",((e,t)=>{dn.init(e,t),Ge(e._zod,"values",(()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter((e=>void 0!==e))):void 0})),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then((t=>fr(t,e))):fr(i,e)}}));function fr(e,t){return!e.issues.length&&void 0===e.value&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const hr=Se("$ZodCatch",((e,t)=>{dn.init(e,t),Ge(e._zod,"optin",(()=>t.innerType._zod.optin)),Ge(e._zod,"optout",(()=>t.innerType._zod.optout)),Ge(e._zod,"values",(()=>t.innerType._zod.values)),e._zod.parse=(e,n)=>{if("backward"===n.direction)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=>it(e,n,Ce())))},input:e.value}),e.issues=[]),e))):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map((e=>it(e,n,Ce())))},input:e.value}),e.issues=[]),e)}})),vr=Se("$ZodPipe",((e,t)=>{dn.init(e,t),Ge(e._zod,"values",(()=>t.in._zod.values)),Ge(e._zod,"optin",(()=>t.in._zod.optin)),Ge(e._zod,"optout",(()=>t.out._zod.optout)),Ge(e._zod,"propValues",(()=>t.in._zod.propValues)),e._zod.parse=(e,n)=>{if("backward"===n.direction){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then((e=>gr(e,t.in,n))):gr(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then((e=>gr(e,t.out,n))):gr(r,t.out,n)}}));function gr(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const yr=Se("$ZodReadonly",((e,t)=>{dn.init(e,t),Ge(e._zod,"propValues",(()=>t.innerType._zod.propValues)),Ge(e._zod,"values",(()=>t.innerType._zod.values)),Ge(e._zod,"optin",(()=>t.innerType?._zod?.optin)),Ge(e._zod,"optout",(()=>t.innerType?._zod?.optout)),e._zod.parse=(e,n)=>{if("backward"===n.direction)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(br):br(r)}}));function br(e){return e.value=Object.freeze(e.value),e}const wr=Se("$ZodLazy",((e,t)=>{dn.init(e,t),Ge(e._zod,"innerType",(()=>t.getter())),Ge(e._zod,"pattern",(()=>e._zod.innerType?._zod?.pattern)),Ge(e._zod,"propValues",(()=>e._zod.innerType?._zod?.propValues)),Ge(e._zod,"optin",(()=>e._zod.innerType?._zod?.optin??void 0)),Ge(e._zod,"optout",(()=>e._zod.innerType?._zod?.optout??void 0)),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)})),$r=Se("$ZodCustom",((e,t)=>{zt.init(e,t),dn.init(e,t),e._zod.parse=e=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then((t=>kr(t,n,r,e)));kr(i,n,r,e)}}));function kr(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(at(e))}}var Ir;(Ir=globalThis).__zod_globalRegistry??(Ir.__zod_globalRegistry=new class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];if(this._map.set(e,n),n&&"object"==typeof n&&"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&&"object"==typeof t&&"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)}});const xr=globalThis.__zod_globalRegistry;function Er(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Xe(t)})}function Ar(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Xe(t)})}function Tr(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Xe(t)})}function Or(e,t){return new Bt({check:"less_than",...Xe(t),value:e,inclusive:!1})}function _r(e,t){return new Bt({check:"less_than",...Xe(t),value:e,inclusive:!0})}function Dr(e,t){return new Wt({check:"greater_than",...Xe(t),value:e,inclusive:!1})}function Sr(e,t){return new Wt({check:"greater_than",...Xe(t),value:e,inclusive:!0})}function Mr(e,t){return new Zt({check:"multiple_of",...Xe(t),value:e})}function Pr(e,t){return new Vt({check:"max_length",...Xe(t),maximum:e})}function jr(e,t){return new Ht({check:"min_length",...Xe(t),minimum:e})}function Cr(e,t){return new Kt({check:"length_equals",...Xe(t),length:e})}function Nr(e){return new on({check:"overwrite",tx:e})}const Rr=Se("ZodISODateTime",((e,t)=>{kn.init(e,t),di.init(e,t)}));function Ur(e){return new Rr({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Xe(e)})}const Lr=Se("ZodISODate",((e,t)=>{In.init(e,t),di.init(e,t)}));function qr(e){return new Lr({type:"string",format:"date",check:"string_format",...Xe(e)})}const Gr=Se("ZodISOTime",((e,t)=>{xn.init(e,t),di.init(e,t)}));const zr=Se("ZodISODuration",((e,t)=>{En.init(e,t),di.init(e,t)}));const Fr=(e,t)=>{dt.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>function(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code&&i.errors.length)i.errors.map((e=>r({issues:e})));else if("invalid_key"===i.code)r({issues:i.issues});else if("invalid_element"===i.code)r({issues:i.issues});else if(0===i.path.length)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}(e,t)},flatten:{value:t=>function(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}}(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Ne,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Ne,2)}},isEmpty:{get:()=>0===e.issues.length}})};Se("ZodError",Fr);const Br=Se("ZodError",Fr,{Parent:Error}),Wr=ut(Br),Zr=lt(Br),Yr=pt(Br),Vr=ft(Br),Hr=(ai=Br,(e,t,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ut(ai)(e,t,r)}),Kr=(e=>(t,n,r)=>ut(e)(t,n,r))(Br),Jr=(e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return lt(e)(t,n,i)})(Br),Qr=(e=>async(t,n,r)=>lt(e)(t,n,r))(Br),Xr=(e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return pt(e)(t,n,i)})(Br),ei=(e=>(t,n,r)=>pt(e)(t,n,r))(Br),ti=(e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return ft(e)(t,n,i)})(Br),ni=(e=>async(t,n,r)=>ft(e)(t,n,r))(Br),ri=Se("ZodType",((e,t)=>(dn.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Fe(t,{checks:[...t.checks??[],...n.map((e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e))]})),e.clone=(t,n)=>Qe(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e),e.parse=(t,n)=>Wr(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Yr(e,t,n),e.parseAsync=async(t,n)=>Zr(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Vr(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Hr(e,t,n),e.decode=(t,n)=>Kr(e,t,n),e.encodeAsync=async(t,n)=>Jr(e,t,n),e.decodeAsync=async(t,n)=>Qr(e,t,n),e.safeEncode=(t,n)=>Xr(e,t,n),e.safeDecode=(t,n)=>ei(e,t,n),e.safeEncodeAsync=async(t,n)=>ti(e,t,n),e.safeDecodeAsync=async(t,n)=>ni(e,t,n),e.refine=(t,n)=>e.check(function(e,t={}){return function(e,t,n){return new xo({type:"custom",check:"custom",fn:t,...Xe(n)})}(0,e,t)}(t,n)),e.superRefine=t=>e.check(function(e){return function(e){let t=function(e){let t=new zt({check:"custom",...Xe(void 0)});return t._zod.check=e,t}((n=>(n.addIssue=e=>{if("string"==typeof e)n.issues.push(at(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??="custom",r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(at(r))}},e(n.value,n))));return t}(e)}(t)),e.overwrite=t=>e.check(Nr(t)),e.optional=()=>mo(e),e.nullable=()=>ho(e),e.nullish=()=>mo(ho(e)),e.nonoptional=t=>function(e,t){return new yo({type:"nonoptional",innerType:e,...Xe(t)})}(e,t),e.array=()=>Vi(e),e.or=t=>Qi([e,t]),e.and=t=>no(e,t),e.transform=t=>$o(e,lo(t)),e.default=t=>function(e,t){return new vo({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():He(t)}})}(e,t),e.prefault=t=>function(e,t){return new go({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():He(t)}})}(e,t),e.catch=t=>function(e,t){return new bo({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}(e,t),e.pipe=t=>$o(e,t),e.readonly=()=>function(e){return new ko({type:"readonly",innerType:e})}(e),e.describe=t=>{let n=e.clone();return xr.add(n,{description:t}),n},Object.defineProperty(e,"description",{get:()=>xr.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return xr.get(e);let n=e.clone();return xr.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e))),ii=Se("_ZodString",((e,t)=>{cn.init(e,t),ri.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(function(e,t){return new Qt({check:"string_format",format:"regex",...Xe(t),pattern:e})}(...t)),e.includes=(...t)=>e.check(function(e,t){return new tn({check:"string_format",format:"includes",...Xe(t),includes:e})}(...t)),e.startsWith=(...t)=>e.check(function(e,t){return new nn({check:"string_format",format:"starts_with",...Xe(t),prefix:e})}(...t)),e.endsWith=(...t)=>e.check(function(e,t){return new rn({check:"string_format",format:"ends_with",...Xe(t),suffix:e})}(...t)),e.min=(...t)=>e.check(jr(...t)),e.max=(...t)=>e.check(Pr(...t)),e.length=(...t)=>e.check(Cr(...t)),e.nonempty=(...t)=>e.check(jr(1,...t)),e.lowercase=t=>e.check(function(e){return new Xt({check:"string_format",format:"lowercase",...Xe(e)})}(t)),e.uppercase=t=>e.check(function(e){return new en({check:"string_format",format:"uppercase",...Xe(e)})}(t)),e.trim=()=>e.check(Nr((e=>e.trim()))),e.normalize=(...t)=>e.check(function(e){return Nr((t=>t.normalize(e)))}(...t)),e.toLowerCase=()=>e.check(Nr((e=>e.toLowerCase()))),e.toUpperCase=()=>e.check(Nr((e=>e.toUpperCase()))),e.slugify=()=>e.check(Nr((e=>function(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}(e))))})),oi=Se("ZodString",((e,t)=>{cn.init(e,t),ii.init(e,t),e.email=t=>e.check(Er(ci,t)),e.url=t=>e.check(Tr(mi,t)),e.jwt=t=>e.check(function(e,t){return new _i({type:"string",format:"jwt",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.emoji=t=>e.check(function(e,t){return new hi({type:"string",format:"emoji",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.guid=t=>e.check(Ar(li,t)),e.uuid=t=>e.check(function(e,t){return new pi({type:"string",format:"uuid",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.uuidv4=t=>e.check(function(e,t){return new pi({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Xe(t)})}(0,t)),e.uuidv6=t=>e.check(function(e,t){return new pi({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Xe(t)})}(0,t)),e.uuidv7=t=>e.check(function(e,t){return new pi({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Xe(t)})}(0,t)),e.nanoid=t=>e.check(function(e,t){return new vi({type:"string",format:"nanoid",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.guid=t=>e.check(Ar(li,t)),e.cuid=t=>e.check(function(e,t){return new gi({type:"string",format:"cuid",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.cuid2=t=>e.check(function(e,t){return new yi({type:"string",format:"cuid2",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.ulid=t=>e.check(function(e,t){return new bi({type:"string",format:"ulid",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.base64=t=>e.check(function(e,t){return new Ai({type:"string",format:"base64",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.base64url=t=>e.check(function(e,t){return new Ti({type:"string",format:"base64url",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.xid=t=>e.check(function(e,t){return new wi({type:"string",format:"xid",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.ksuid=t=>e.check(function(e,t){return new $i({type:"string",format:"ksuid",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.ipv4=t=>e.check(function(e,t){return new ki({type:"string",format:"ipv4",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.ipv6=t=>e.check(function(e,t){return new Ii({type:"string",format:"ipv6",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.cidrv4=t=>e.check(function(e,t){return new xi({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.cidrv6=t=>e.check(function(e,t){return new Ei({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.e164=t=>e.check(function(e,t){return new Oi({type:"string",format:"e164",check:"string_format",abort:!1,...Xe(t)})}(0,t)),e.datetime=t=>e.check(Ur(t)),e.date=t=>e.check(qr(t)),e.time=t=>e.check(function(e){return new Gr({type:"string",format:"time",check:"string_format",precision:null,...Xe(e)})}(t)),e.duration=t=>e.check(function(e){return new zr({type:"string",format:"duration",check:"string_format",...Xe(e)})}(t))}));var ai;function si(e){return new oi({type:"string",...Xe(e)})}const di=Se("ZodStringFormat",((e,t)=>{un.init(e,t),ii.init(e,t)})),ci=Se("ZodEmail",((e,t)=>{mn.init(e,t),di.init(e,t)}));function ui(e){return Er(ci,e)}const li=Se("ZodGUID",((e,t)=>{ln.init(e,t),di.init(e,t)})),pi=Se("ZodUUID",((e,t)=>{pn.init(e,t),di.init(e,t)})),mi=Se("ZodURL",((e,t)=>{fn.init(e,t),di.init(e,t)}));function fi(e){return Tr(mi,e)}const hi=Se("ZodEmoji",((e,t)=>{hn.init(e,t),di.init(e,t)})),vi=Se("ZodNanoID",((e,t)=>{vn.init(e,t),di.init(e,t)})),gi=Se("ZodCUID",((e,t)=>{gn.init(e,t),di.init(e,t)})),yi=Se("ZodCUID2",((e,t)=>{yn.init(e,t),di.init(e,t)})),bi=Se("ZodULID",((e,t)=>{bn.init(e,t),di.init(e,t)})),wi=Se("ZodXID",((e,t)=>{wn.init(e,t),di.init(e,t)})),$i=Se("ZodKSUID",((e,t)=>{$n.init(e,t),di.init(e,t)})),ki=Se("ZodIPv4",((e,t)=>{An.init(e,t),di.init(e,t)})),Ii=Se("ZodIPv6",((e,t)=>{Tn.init(e,t),di.init(e,t)})),xi=Se("ZodCIDRv4",((e,t)=>{On.init(e,t),di.init(e,t)})),Ei=Se("ZodCIDRv6",((e,t)=>{_n.init(e,t),di.init(e,t)})),Ai=Se("ZodBase64",((e,t)=>{Sn.init(e,t),di.init(e,t)})),Ti=Se("ZodBase64URL",((e,t)=>{Mn.init(e,t),di.init(e,t)})),Oi=Se("ZodE164",((e,t)=>{Pn.init(e,t),di.init(e,t)})),_i=Se("ZodJWT",((e,t)=>{jn.init(e,t),di.init(e,t)})),Di=Se("ZodNumber",((e,t)=>{Cn.init(e,t),ri.init(e,t),e.gt=(t,n)=>e.check(Dr(t,n)),e.gte=(t,n)=>e.check(Sr(t,n)),e.min=(t,n)=>e.check(Sr(t,n)),e.lt=(t,n)=>e.check(Or(t,n)),e.lte=(t,n)=>e.check(_r(t,n)),e.max=(t,n)=>e.check(_r(t,n)),e.int=t=>e.check(Pi(t)),e.safe=t=>e.check(Pi(t)),e.positive=t=>e.check(Dr(0,t)),e.nonnegative=t=>e.check(Sr(0,t)),e.negative=t=>e.check(Or(0,t)),e.nonpositive=t=>e.check(_r(0,t)),e.multipleOf=(t,n)=>e.check(Mr(t,n)),e.step=(t,n)=>e.check(Mr(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=!0,e.format=n.format??null}));function Si(e){return new Di({type:"number",checks:[],...Xe(e)})}const Mi=Se("ZodNumberFormat",((e,t)=>{Nn.init(e,t),Di.init(e,t)}));function Pi(e){return new Mi({type:"number",check:"number_format",abort:!1,format:"safeint",...Xe(e)})}const ji=Se("ZodBoolean",((e,t)=>{Rn.init(e,t),ri.init(e,t)}));function Ci(e){return new ji({type:"boolean",...Xe(e)})}const Ni=Se("ZodNull",((e,t)=>{Un.init(e,t),ri.init(e,t)}));function Ri(e){return new Ni({type:"null",...Xe(e)})}const Ui=Se("ZodAny",((e,t)=>{Ln.init(e,t),ri.init(e,t)})),Li=Se("ZodUnknown",((e,t)=>{qn.init(e,t),ri.init(e,t)}));function qi(){return new Li({type:"unknown"})}const Gi=Se("ZodNever",((e,t)=>{Gn.init(e,t),ri.init(e,t)}));function zi(e){return new Gi({type:"never",...Xe(e)})}const Fi=Se("ZodVoid",((e,t)=>{zn.init(e,t),ri.init(e,t)}));function Bi(e){return new Fi({type:"void",...Xe(e)})}const Wi=Se("ZodDate",((e,t)=>{Fn.init(e,t),ri.init(e,t),e.min=(t,n)=>e.check(Sr(t,n)),e.max=(t,n)=>e.check(_r(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 Zi(e){return new Wi({type:"date",...Xe(e)})}const Yi=Se("ZodArray",((e,t)=>{Wn.init(e,t),ri.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(jr(t,n)),e.nonempty=t=>e.check(jr(1,t)),e.max=(t,n)=>e.check(Pr(t,n)),e.length=(t,n)=>e.check(Cr(t,n)),e.unwrap=()=>e.element}));function Vi(e,t){return function(e,t,n){return new Yi({type:"array",element:t,...Xe(n)})}(0,e,t)}const Hi=Se("ZodObject",((e,t)=>{Kn.init(e,t),ri.init(e,t),Ge(e,"shape",(()=>t.shape)),e.keyof=()=>ao(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:qi()}),e.loose=()=>e.clone({...e._zod.def,catchall:qi()}),e.strict=()=>e.clone({...e._zod.def,catchall:zi()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>function(e,t){if(!Ve(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 Qe(e,Fe(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ze(this,"shape",n),n},checks:[]}))}(e,t),e.safeExtend=t=>function(e,t){if(!Ve(t))throw Error("Invalid input to safeExtend: expected a plain object");return Qe(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return ze(this,"shape",n),n},checks:e._zod.def.checks})}(e,t),e.merge=t=>function(e,t){return Qe(e,Fe(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ze(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}(e,t),e.pick=t=>function(e,t){let n=e._zod.def;return Qe(e,Fe(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 ze(this,"shape",e),e},checks:[]}))}(e,t),e.omit=t=>function(e,t){let n=e._zod.def;return Qe(e,Fe(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 ze(this,"shape",r),r},checks:[]}))}(e,t),e.partial=(...t)=>function(e,t,n){return Qe(t,Fe(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 ze(this,"shape",i),i},checks:[]}))}(po,e,t[0]),e.required=(...t)=>function(e,t,n){return Qe(t,Fe(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 ze(this,"shape",i),i},checks:[]}))}(yo,e,t[0])}));function Ki(e,t){return new Hi({type:"object",shape:e??{},...Xe(t)})}const Ji=Se("ZodUnion",((e,t)=>{Qn.init(e,t),ri.init(e,t),e.options=t.options}));function Qi(e,t){return new Ji({type:"union",options:e,...Xe(t)})}const Xi=Se("ZodDiscriminatedUnion",((e,t)=>{Ji.init(e,t),Xn.init(e,t)}));function eo(e,t,n){return new Xi({type:"union",options:t,discriminator:e,...Xe(n)})}const to=Se("ZodIntersection",((e,t)=>{er.init(e,t),ri.init(e,t)}));function no(e,t){return new to({type:"intersection",left:e,right:t})}const ro=Se("ZodRecord",((e,t)=>{rr.init(e,t),ri.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType}));function io(e,t,n){return new ro({type:"record",keyType:e,valueType:t,...Xe(n)})}const oo=Se("ZodEnum",((e,t)=>{ir.init(e,t),ri.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))throw Error(`Key ${r} not found in enum`);i[r]=t.entries[r]}return new oo({...t,checks:[],...Xe(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e){if(!n.has(t))throw Error(`Key ${t} not found in enum`);delete i[t]}return new oo({...t,checks:[],...Xe(r),entries:i})}}));function ao(e,t){return new oo({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map((e=>[e,e]))):e,...Xe(t)})}const so=Se("ZodLiteral",((e,t)=>{or.init(e,t),ri.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 co(e,t){return new so({type:"literal",values:Array.isArray(e)?e:[e],...Xe(t)})}const uo=Se("ZodTransform",((e,t)=>{ar.init(e,t),ri.init(e,t),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new Pe(e.constructor.name);n.addIssue=r=>{if("string"==typeof r)n.issues.push(at(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??="custom",t.input??=n.value,t.inst??=e,n.issues.push(at(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then((e=>(n.value=e,n))):(n.value=i,n)}}));function lo(e){return new uo({type:"transform",transform:e})}const po=Se("ZodOptional",((e,t)=>{dr.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType}));function mo(e){return new po({type:"optional",innerType:e})}const fo=Se("ZodNullable",((e,t)=>{cr.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType}));function ho(e){return new fo({type:"nullable",innerType:e})}const vo=Se("ZodDefault",((e,t)=>{ur.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap})),go=Se("ZodPrefault",((e,t)=>{pr.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType})),yo=Se("ZodNonOptional",((e,t)=>{mr.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType})),bo=Se("ZodCatch",((e,t)=>{hr.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap})),wo=Se("ZodPipe",((e,t)=>{vr.init(e,t),ri.init(e,t),e.in=t.in,e.out=t.out}));function $o(e,t){return new wo({type:"pipe",in:e,out:t})}const ko=Se("ZodReadonly",((e,t)=>{yr.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.innerType})),Io=Se("ZodLazy",((e,t)=>{wr.init(e,t),ri.init(e,t),e.unwrap=()=>e._zod.def.getter()})),xo=Se("ZodCustom",((e,t)=>{$r.init(e,t),ri.init(e,t)}));function Eo(e){return new Di({type:"number",coerce:!0,checks:[],...Xe(e)})}function Ao(e){return new ji({type:"boolean",coerce:!0,...Xe(e)})}const To=ao(["PENDING","APPROVED","REJECTED"]).meta({description:"Approval status. PENDING: awaiting review, APPROVED: approved for operation, REJECTED: rejected and cannot operate"}),Oo=ao("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(".")).meta({examples:["AUD"],description:"Three-letter ISO 4217 currency code for transactions and payouts"}),_o=ao([{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))),Do=Vi(_o).max(10).optional().meta({description:"Event characteristics like vibe, venue type, and amenities (up to 10 categories)",examples:[["Day Party","Open Air","Free Entry"]]}),So=ao([{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))),Mo=Vi(So).min(1).max(5).meta({description:"Music genres for the event (1-5 genres)",examples:[["Tech House","Melodic Techno"]]});function Po(e,t){return si().regex(RegExp(`^${e}_[0-9a-z]{26}$`),`Must be a valid ${t} ID`).describe(`Unique ${t} identifier`)}Vi(So).max(5).optional().meta({description:"Music genres for the event (up to 5 genres)",examples:[["Tech House","Melodic Techno"]]});const jo=Po("tem","team"),Co=Po("evt","event"),No=Po("ven","venue"),Ro=Po("loc","location"),Uo=Po("usr","user"),Lo=Po("ord","order"),qo=Po("tkt","ticket"),Go=Po("pmt","promoter");Po("cpn","coupon"),Po("cod","coupon code");const zo=Po("cus","customer"),Fo=Po("adm","admission"),Bo=Po("sct","section");Po("ben","beneficiary");const Wo=Po("pyt","payout"),Zo=Po("mbr","team member"),Yo=Po("inv","team invite"),Vo=Po("ecl","event collaborator"),Ho=Po("psc","permission scope"),Ko=Po("prl","permission role"),Jo=Po("ntf","notification"),Qo=Ki({src:fi().meta({examples:["https://assets.session.services/my-image.jpg"]}),alt:si().meta({examples:["My Image"]}),width:Si().meta({examples:[1080]}),height:Si().meta({examples:[1080]})});function Xo(){return Si().min(-1)}function ea(){return Si().min(-1).refine((e=>0!==e),{message:"Limit cannot be 0. Use -1 for unlimited or a positive number for a specific limit"})}const ta=Qi([si(),Si(),Ci(),Ri()]),na=new Io({type:"lazy",getter:()=>Qi([ta,Vi(na),io(si(),na)])}),ra=io(si().min(1).max(40).meta({description:"Metadata key. Must be 1-40 characters"}),si().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."}),ia=si().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 oa(e){return Eo().int().min(1).max(100).prefault(20).meta({examples:[20],description:`Maximum number of ${e} to return per request (1-100, default: 20)`})}const aa=si().meta({description:"Opaque cursor for pagination. Use the cursor from the previous response to continue fetching results."}),sa="[a-z][a-z0-9-]*",da=RegExp(`^-?(?:\\*|(?:${sa})(?:\\.${sa})*(?:\\.\\*|\\.bypass|\\.[a-z]{3}_[0-9a-z]{26})?)$`),ca=/^[a-z]{3}_[0-9a-z]{26}$/,ua=["tem","pmt","ven","evt","ord","tkt","cpn"],la="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(","),pa=new Set(la),ma=new Set(["tenant","team","team.member","team.invite","team.gateway","team.performance","cms","role","event","event.performance","promoter","promoter.performance","venue","order","ticket","coupon","beneficiary","payout"]),fa={"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 ha(e){let[t]=e.split("_");return!!t&&ua.includes(t)}function va(e,t){return!(!pa.has(e)||!function(e){return ca.test(e)&&ha(e)}(t))&&function(e,t){let n=function(e){let[t]=e.split("_");return t&&ha(e)?t:null}(t);return!!n&&(fa[e]??[]).includes(n)}(e,t)}const ga=[function(e){return pa.has(e)},function(e){return!!e.endsWith(".bypass")&&pa.has(e.slice(0,-7))},function(e){let t=function(e){let t=e.match(/^((?:[a-z][a-z0-9-]*)(?:\.[a-z][a-z0-9-]*)*)\.([a-z]{3}_[0-9a-z]{26})$/);return t?function(e){let t=e[1],n=e[2];return t&&n?{base:t,resourceId:n}:null}(t):null}(e);return!!t&&va(t.base,t.resourceId)},function(e){if(!e.endsWith(".*"))return!1;let t=e.slice(0,-2);return ma.has(t)||pa.has(t)}],ya=si().regex(da,"Invalid permission node. Use lowercase dot notation with optional wildcard, resource target, bypass target, and deny prefix.").refine((function(e){let t=function(e){return e.startsWith("-")?e.slice(1):e}(e);return ga.some((e=>e(t)))}),{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"]}),ba=Vi(ya).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"]]}),wa=ba.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"]]}),$a=si().length(16).meta({examples:[De.signature],description:"HMAC signature for secure access (16 characters, base64url encoded)"}),ka=ao(["SALE_ENDED","SOLD_OUT","DOOR"]);function Ia(e){return Ki({base:Pi().min(0).meta({examples:[De.Admission.price.base],description:"Base cost of a ticket for this admission type before fees, in cents"}),booking:Pi().min(0).meta({examples:[De.Admission.price.booking],description:e.booking}),currency:Oo.meta({examples:[De.Admission.price.currency],description:e.currency})}).meta({examples:[De.Admission.price],description:e.price})}const xa=Ki({id:Fo.readonly().meta({description:"A unique identifier for this admission",examples:[De.Admission.id]}),name:si().meta({description:"The display name of the admission type shown to customers",examples:[De.Admission.name]}),subtitle:si().max(100).optional().meta({description:"Short supporting text shown below the admission name",examples:[De.Admission.subtitle]}),description:si().max(500).optional().meta({description:"Detailed information shown when customers expand 'More info'",examples:[De.Admission.description]}),capacity:Xo().prefault(-1).meta({examples:[De.Admission.capacity],description:"Maximum number of tickets that can be sold for this admission type. A value of -1 indicates unlimited"}),limit:ea().prefault(-1).meta({examples:[De.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:Si().min(-1).readonly().meta({examples:[De.Admission.available],description:"Current number of tickets available for purchase, calculated as capacity minus sold minus reserved. A value of -1 indicates unlimited"}),sold:Si().min(0).readonly().meta({examples:[De.Admission.sold],description:"Total number of tickets of this admission type that have been purchased"}),reserved:Si().min(0).readonly().meta({examples:[De.Admission.reserved],description:"Number of tickets held for customers during checkout and not available to others"}),order:Si().min(0).meta({examples:[De.Admission.order],description:"Determines the position in which this admission type appears when listed. Lower values appear first"}),createdAt:Ur().readonly().meta({examples:[De.Admission.createdAt],description:"Timestamp in ISO 8601 format when this admission type was created"}),updatedAt:Ur().readonly().meta({examples:[De.Admission.updatedAt],description:"Timestamp in ISO 8601 format when this admission type was last updated"}),entryStartsAt:ia.meta({examples:[De.Admission.entryStartsAt],description:"Wall clock time from which tickets of this type are valid for entry (no timezone)"}),entryEndsAt:ia.meta({examples:[De.Admission.entryEndsAt],description:"Wall clock time until which tickets of this type are valid for entry (no timezone)"}),saleStartsAt:ia.meta({examples:[De.Admission.saleStartsAt],description:"Wall clock time when ticket sales for this admission type begin (no timezone)"}),saleEndsAt:ia.meta({examples:[De.Admission.saleEndsAt],description:"Wall clock time when ticket sales for this admission type end (no timezone)"}),saleEndsBehavior:ka.default("SALE_ENDED").meta({examples:[De.Admission.saleEndsBehavior],description:"Label to display for this admission after ticket sales have ended"}),price:Ia({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:ao(["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:si().optional().meta({examples:["VIPACCESS"],description:"Code required to reveal this admission type when visibility is 'HIDDEN'. Case-insensitive comparison"}),sectionId:Bo.nullable().optional().meta({examples:[De.Admission.sectionId],description:"Identifier of the section this admission type belongs to, if any"}),teamId:jo.meta({description:"Team that owns this admission. Denormalized for efficient queries."}),promoterId:Go.meta({examples:[De.Admission.promoterId],description:"Identifier of the promoter responsible for this admission type"}),eventId:Co.meta({examples:[De.Admission.eventId],description:"Identifier of the event to which this admission type is linked"}),eventSlug:si().meta({examples:[De.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:[De.Admission]}),Ea=xa.omit({id:!0,createdAt:!0,updatedAt:!0,available:!0,sold:!0,reserved:!0}).meta({description:"Schema for creating a new admission type for an event"}),Aa=xa.pick({id:!0}).extend({eventId:xa.shape.eventId.meta({examples:[De.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"}),Ta=xa.pick({id:!0}).extend({eventId:Co.meta({examples:[De.Admission.eventId],description:"Identifier of the event to which this admission type belongs"})}).meta({description:"Schema for retrieving a specific admission type"}),Oa=Ki({eventId:si().meta({examples:[De.Admission.eventId],description:"Identifier of the event to list admission types for"}),sectionId:si().optional().meta({examples:[De.Admission.sectionId],description:"Filter admission types by section identifier. If provided, only admissions for this section are returned"}),query:si().optional().meta({examples:["Early Bird"],description:"Optional search query to filter admissions by name. When provided, search-backed pagination is used."}),limit:oa("admission types").optional(),cursor:si().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 _a(e,t){return Ki({[t]:Vi(e).meta({description:`Array of ${t} for the current result set`}),before:si().nullish().meta({examples:["eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNqIn19"],description:"Cursor for navigating backward in the result set. Omitted when there are no prior results."}),after:si().nullish().meta({examples:["eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNkIn19"],description:"Cursor for navigating forward in the result set. Omitted when there are no subsequent results."}),limit:Eo().min(1).meta({examples:[20],description:"Maximum number of items to return in each result set"})})}const Da=_a(xa,"admissions"),Sa=xa.pick({eventId:!0}).extend({message:si().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:Ia({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"}),Ma=xa.pick({eventId:!0}).extend({base:Pi().min(0).meta({examples:[De.Admission.price.base],description:"Base cost of a ticket for this admission type before fees, in cents"}),currency:Oo.meta({examples:[De.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"}),Pa=Ki({quote:Sa}),ja=Ki({admission:xa}),Ca=Ki({id:xa.shape.id,eventId:xa.shape.eventId,name:xa.shape.name.optional(),subtitle:xa.shape.subtitle,description:xa.shape.description,capacity:Xo().optional(),limit:ea().optional(),order:xa.shape.order.optional(),entryStartsAt:xa.shape.entryStartsAt.optional(),entryEndsAt:xa.shape.entryEndsAt.optional(),saleStartsAt:xa.shape.saleStartsAt.optional(),saleEndsAt:xa.shape.saleEndsAt.optional(),saleEndsBehavior:ka.optional(),price:xa.shape.price.optional(),visibility:ao(["ALWAYS","STACKED","HIDDEN"]).optional(),passcode:si().optional(),sectionId:Bo.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."}),Na=Ki({eventId:Co.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:[De.Event.id]}),description:si().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:si().optional().meta({description:"Optional event name for additional context",examples:["Warehouse Sessions Vol. 5"]}),imageUrl:fi().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"}),Ra=Ki({genres:Vi(So).max(5).meta({description:"Suggested music genres based on event description and artwork",examples:[["Tech House","Melodic Techno"]]}),categories:Vi(_o).max(10).meta({description:"Suggested event categories based on description and artwork",examples:[["Warehouse","Underground","BYO"]]}),confidence:Si().min(0).max(1).meta({description:"AI confidence score for the suggestions (0-1)",examples:[.85]}),startDate:si().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:si().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:si().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:fi().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"});Ki({estimatedInputTokens:Si().int().meta({description:"Estimated input tokens for the request",examples:[500]}),estimatedOutputTokens:Si().int().meta({description:"Estimated output tokens for the response",examples:[100]}),estimatedCostUsd:Si().meta({description:"Estimated cost in USD",examples:[.002]}),includesImage:Ci().meta({description:"Whether the estimate includes image analysis",examples:[!0]})}).meta({description:"Cost estimate for an AI tag suggestion request"});for(var Ua=/^(?:[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,La=[],qa=0;qa<256;++qa)La.push((qa+256).toString(16).slice(1));function Ga(e,t=0){return(La[e[t+0]]+La[e[t+1]]+La[e[t+2]]+La[e[t+3]]+"-"+La[e[t+4]]+La[e[t+5]]+"-"+La[e[t+6]]+La[e[t+7]]+"-"+La[e[t+8]]+La[e[t+9]]+"-"+La[e[t+10]]+La[e[t+11]]+La[e[t+12]]+La[e[t+13]]+La[e[t+14]]+La[e[t+15]]).toLowerCase()}var za,Fa=function(e,t=0){var n=Ga(e,t);if(!function(e){return"string"==typeof e&&Ua.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},Ba=new Uint8Array(16);function Wa(){if(!za&&!(za=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return za(Ba)}var Za=null,Ya=null,Va=0,Ha=function(e,t,n){e||={};var r=t&&n||0,i=t||new Uint8Array(16),o=e.random||(e.rng||Wa)(),a=void 0===e.msecs?Date.now():e.msecs,s=void 0===e.seq?null:e.seq,d=Ya,c=Za;return a>Va&&void 0===e.msecs&&(Va=a,null!==s&&(d=null,c=null)),null!==s&&(s>2147483647&&(s=2147483647),d=s>>>19&4095,c=524287&s),(null===d||null===c)&&(d=(d=127&o[6])<<8|o[7],c=(c=(c=63&o[8])<<8|o[9])<<5|o[10]>>>3),a+1e4>Va&&null===s?++c>524287&&(c=0,++d>4095&&(d=0,Va++)):Va=a,Ya=d,Za=c,i[r++]=Va/1099511627776&255,i[r++]=Va/4294967296&255,i[r++]=Va/16777216&255,i[r++]=Va/65536&255,i[r++]=Va/256&255,i[r++]=255&Va,i[r++]=d>>>4&15|112,i[r++]=255&d,i[r++]=c>>>13&63|128,i[r++]=c>>>5&255,i[r++]=c<<3&255|7&o[10],i[r++]=o[11],i[r++]=o[12],i[r++]=o[13],i[r++]=o[14],i[r++]=o[15],t||Ga(i)},Ka="0123456789abcdefghjkmnpqrstvwxyz",Ja=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 Qa(e){let t=Array(26).fill("");if(16!==e.length)throw Error(`Invalid length. Expected 16 bytes, got ${e.length}. Input: ${e}`);return t[0]=Ka[(224&e[0])>>5],t[1]=Ka[31&e[0]],t[2]=Ka[(248&e[1])>>3],t[3]=Ka[(7&e[1])<<2|(192&e[2])>>6],t[4]=Ka[(62&e[2])>>1],t[5]=Ka[(1&e[2])<<4|(240&e[3])>>4],t[6]=Ka[(15&e[3])<<1|(128&e[4])>>7],t[7]=Ka[(124&e[4])>>2],t[8]=Ka[(3&e[4])<<3|(224&e[5])>>5],t[9]=Ka[31&e[5]],t[10]=Ka[(248&e[6])>>3],t[11]=Ka[(7&e[6])<<2|(192&e[7])>>6],t[12]=Ka[(62&e[7])>>1],t[13]=Ka[(1&e[7])<<4|(240&e[8])>>4],t[14]=Ka[(15&e[8])<<1|(128&e[9])>>7],t[15]=Ka[(124&e[9])>>2],t[16]=Ka[(3&e[9])<<3|(224&e[10])>>5],t[17]=Ka[31&e[10]],t[18]=Ka[(248&e[11])>>3],t[19]=Ka[(7&e[11])<<2|(192&e[12])>>6],t[20]=Ka[(62&e[12])>>1],t[21]=Ka[(1&e[12])<<4|(240&e[13])>>4],t[22]=Ka[(15&e[13])<<1|(128&e[14])>>7],t[23]=Ka[(124&e[14])>>2],t[24]=Ka[(3&e[14])<<3|(224&e[15])>>5],t[25]=Ka[31&e[15]],t.join("")}function Xa(e){if(26!==e.length)throw Error(`Invalid length. Expected 26 bytes, got ${e.length}. Input: ${e}`);let t=(new TextEncoder).encode(e);if(255===Ja[t[0]]||255===Ja[t[1]]||255===Ja[t[2]]||255===Ja[t[3]]||255===Ja[t[4]]||255===Ja[t[5]]||255===Ja[t[6]]||255===Ja[t[7]]||255===Ja[t[8]]||255===Ja[t[9]]||255===Ja[t[10]]||255===Ja[t[11]]||255===Ja[t[12]]||255===Ja[t[13]]||255===Ja[t[14]]||255===Ja[t[15]]||255===Ja[t[16]]||255===Ja[t[17]]||255===Ja[t[18]]||255===Ja[t[19]]||255===Ja[t[20]]||255===Ja[t[21]]||255===Ja[t[22]]||255===Ja[t[23]]||255===Ja[t[24]]||255===Ja[t[25]])throw Error("Invalid base32 character");let n=new Uint8Array(16);return n[0]=Ja[t[0]]<<5|Ja[t[1]],n[1]=Ja[t[2]]<<3|Ja[t[3]]>>2,n[2]=(3&Ja[t[3]])<<6|Ja[t[4]]<<1|Ja[t[5]]>>4,n[3]=(15&Ja[t[5]])<<4|Ja[t[6]]>>1,n[4]=(1&Ja[t[6]])<<7|Ja[t[7]]<<2|Ja[t[8]]>>3,n[5]=(7&Ja[t[8]])<<5|Ja[t[9]],n[6]=Ja[t[10]]<<3|Ja[t[11]]>>2,n[7]=(3&Ja[t[11]])<<6|Ja[t[12]]<<1|Ja[t[13]]>>4,n[8]=(15&Ja[t[13]])<<4|Ja[t[14]]>>1,n[9]=(1&Ja[t[14]])<<7|Ja[t[15]]<<2|Ja[t[16]]>>3,n[10]=(7&Ja[t[16]])<<5|Ja[t[17]],n[11]=Ja[t[18]]<<3|Ja[t[19]]>>2,n[12]=(3&Ja[t[19]])<<6|Ja[t[20]]<<1|Ja[t[21]]>>4,n[13]=(15&Ja[t[21]])<<4|Ja[t[22]]>>1,n[14]=(1&Ja[t[22]])<<7|Ja[t[23]]<<2|Ja[t[24]]>>3,n[15]=(7&Ja[t[24]])<<5|Ja[t[25]],n}var es=class extends Error{constructor(e){super(`Invalid prefix "${e}". Must be at most 63 ASCII letters [a-z_]`),this.name="InvalidPrefixError"}},ts=class extends Error{constructor(e,t){super(`Invalid TypeId. Prefix mismatch. Expected ${e}, got ${t}`),this.name="PrefixMismatchError"}},ns=class extends Error{constructor(e){super(`Invalid TypeId. Prefix cannot be empty when there's a separator: ${e}`),this.name="EmptyPrefixError"}},rs=class extends Error{constructor(e){super(`Invalid length. Suffix should have 26 characters, got ${e}`),this.name="InvalidSuffixLengthError"}},is=class extends Error{constructor(e){super(`Invalid suffix. First character "${e}" must be in the range [0-7]`),this.name="InvalidSuffixCharacterError"}},os=class extends Error{constructor(e,t){super(`Cannot convert TypeID of type ${e} to type ${t}`),this.name="TypeIDConversionError"}};function as(e="",t=""){if(!function(e){if(e.length>63)return!1;let t,n,r;for(n=0,r=e.length;n<r;n+=1){t=e.charCodeAt(n);let i=t>96&&t<123;if((0===n||n===r-1)&&!i||!i&&95!==t)return!1}return!0}(e))throw new es(e);let n;if(t)n=t;else{let e=new Uint8Array(16);Ha(void 0,e),n=Qa(e)}if(26!==n.length)throw new rs(n.length);if(n[0]>"7")throw new is(n[0]);return Xa(n),""===e?n:`${e}_${n}`}function ss(e){let t=e.lastIndexOf("_");return-1===t?"":e.substring(0,t)}function ds(e){let t=e.lastIndexOf("_");return-1===t?e:e.substring(t+1)}var cs=class{constructor(e,t=""){this.prefix=e,this.suffix=t;let n=as(e,t);this.prefix=ss(n),this.suffix=ds(n)}getType(){return this.prefix}getSuffix(){return this.suffix}asType(e){let t=this;if(t.prefix!==e)throw new os(t.prefix,e);return t}toUUIDBytes(){return Xa(this.suffix)}toUUID(){return Fa(this.toUUIDBytes())}toString(){return""===this.prefix?this.suffix:`${this.prefix}_${this.suffix}`}static fromString(e,t){let n=function(e,t){let n,r,i=e.lastIndexOf("_");if(-1===i)n="",r=e;else if(n=e.substring(0,i),r=e.substring(i+1),!n)throw new ns(e);if(!r)throw new rs(0);if(t&&n!==t)throw new ts(t,n);return as(n,r)}(e,t);return new cs(ss(n),ds(n))}static fromUUIDBytes(e,t){return new cs(e,Qa(t))}static fromUUID(e,t){return new cs(e,Qa(function(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]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,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]=255&t,n}(t)))}};const us={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 ls(e){return function(e="",t=""){return new cs(e,t)}(us[e])}const ps="ses_sid",ms="ses_aid";function fs(){return ls("session").toString()}function hs(){return ls("anonymous").toString()}const vs=qr().describe("Date (YYYY-MM-DD)"),gs=Ki({startDate:vs.describe("Start date (YYYY-MM-DD)"),endDate:vs.describe("End date (YYYY-MM-DD)")}),ys=Ki({startDate:vs.optional().describe("Start date (YYYY-MM-DD)"),endDate:vs.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 bs(e){return Ki(e).extend(gs.shape)}function ws(e){return no(Ki(e),ys)}const $s=Ki({value:Si().describe("Current period value"),previous:Si().describe("Comparison period value"),change:Si().describe("Percentage change from previous period"),changeType:ao(["increase","decrease","unchanged"]).describe("Direction of change")}),ks=Ki({eventId:si().describe("Event identifier"),eventName:si().describe("Event name"),ticketCount:Si().describe("Number of tickets sold"),sharePercent:Si().describe("Percentage of total tickets")}),Is=Ki({start:si().describe("Period start date"),end:si().describe("Period end date")}),xs=Ki({start:si().describe("Comparison period start date"),end:si().describe("Comparison period end date")}),Es=ao(["HOUR","DAY","WEEK","MONTH"]),As=Ki({date:si().describe("Date (YYYY-MM-DD)"),revenue:Si().describe("Revenue in cents"),tickets:Si().describe("Tickets sold")}),Ts=As.extend({orders:Si().describe("Orders placed")}),Os=Ki({revenue:Si().describe("Total revenue for period in cents"),tickets:Si().describe("Total tickets for period")}),_s=Os.extend({orders:Si().describe("Total orders for period")}),Ds=Ki({revenue:$s.describe("Total revenue in cents"),ticketsSold:$s.describe("Number of tickets sold"),averageOrderValue:$s.describe("Average order value in cents"),conversionRate:$s.describe("Overall conversion rate (%)"),activeEvents:$s.describe("Number of active events in period"),uniqueCustomers:$s.describe("Unique customers (estimated)"),orderCount:$s.describe("Number of orders placed"),pageViews:$s.describe("Total page views from tracking")}),Ss=Ki({events:Vi(ks),totalTickets:Si().describe("Total tickets across all events")});function Ms(e,t){return bs({...Ns(e,t),currency:si().optional().describe("Currency code for revenue metrics")})}function Ps(e){return Ki({meta:Ki({...e,currency:si().describe("Primary currency code"),currencies:Vi(si()).describe("All currencies with transactions"),dateRange:Is,comparisonRange:xs}),metrics:Ds})}function js(e,t){return bs({...Ns(e,t),granularity:Es.optional().default("DAY").describe("Time granularity"),currency:si().optional().describe("Currency filter")})}function Cs(e,t){return bs({...Ns(e,t),limit:Si().optional().default(5).describe("Maximum number of events to return")})}function Ns(e,t){return{[e]:si().describe(t)}}const Rs=ws({eventId:si().describe("Event identifier")}).meta({description:"Event performance summary request"}),Us=Ki({meta:Ki({eventId:si().describe("Event identifier"),eventName:si().describe("Event name"),currency:si().describe("Currency code (e.g., USD, EUR)"),dateRange:Is.optional().describe("Present only when startDate/endDate are provided"),comparisonRange:xs.optional().describe("Present only when startDate/endDate are provided")}),metrics:Ki({revenue:$s.describe("Total revenue in cents"),ticketsSold:$s.describe("Number of tickets sold"),orderCount:$s.describe("Number of orders placed"),averageOrderValue:$s.describe("Average order value in cents"),conversionRate:$s.describe("Conversion rate as percentage"),pageViews:$s.describe("Total page/product views"),uniqueVisitors:$s.describe("Unique visitors (estimated)"),checkoutStarted:$s.describe("Number of checkout started events (external link clicks for external events)")})}),Ls=bs({eventId:si().describe("Event identifier"),granularity:Es.optional().default("DAY").describe("Time granularity for aggregation"),breakdown:ao(["TOTAL"]).optional().default("TOTAL").describe("Breakdown type (always TOTAL for performance)"),includeBreakdowns:Ci().optional().default(!0).describe("Whether to include admission and section breakdowns in each time bucket")}),qs=Ki({meta:Ki({eventId:si(),eventName:si().describe("Event name"),currency:si().describe("Currency code"),dateRange:Is,granularity:Es}),series:Vi(Ki({date:si().describe("Date or timestamp"),tickets:Si().describe("Tickets sold in period"),revenue:Si().describe("Revenue in period (cents)"),admissions:Vi(Ki({id:si(),name:si(),quantity:Si()})),sections:Vi(Ki({id:si(),name:si(),quantity:Si()}))}))}),Gs=bs({eventId:si().describe("Event identifier")}),zs=Ki({meta:Ki({eventId:si(),eventName:si().describe("Event name"),currency:si().describe("Currency code"),dateRange:Is}),totals:Ki({entered:Si().describe("Total entered funnel (product viewed)"),completed:Si().describe("Total completed (orders)"),overallConversionRate:Si().describe("Overall conversion rate (%)"),totalDropped:Si().describe("Total dropped off")}),stages:Vi(Ki({id:si().describe("Funnel stage identifier"),name:si().describe("Human-readable stage name"),count:Si().describe("Number of events at this stage"),conversionRate:Si().describe("Conversion rate from first stage (%)"),dropoffRate:Si().describe("Dropoff rate from previous stage (%)")}))});Ki({meta:Ki({eventId:si(),dimension:si().describe("Dimension type"),dateRange:Is,limit:Si().optional()}),data:Vi(Ki({name:si().describe("Dimension value (e.g., campaign name)"),views:Si().describe("Page/product views"),conversions:Si().describe("Completed orders"),revenue:Si().describe("Total revenue in cents"),conversionRate:Si().describe("Conversion rate (%)"),share:Si().describe("Percentage share of total").optional()})),totals:Ki({views:Si(),conversions:Si(),revenue:Si()}).optional()});const Fs=ao(["HOUR","DAY","WEEK","MONTH"]),Bs=Ki({eventId:si().describe("Event identifier"),eventName:si().describe("Event name"),currency:si().describe("Currency code (e.g., USD, EUR)"),dateRange:Is}),Ws=Bs.extend({limit:Si().describe("Maximum number of results returned")});bs({eventId:si(),granularity:Fs.optional()}),Ki({granularity:Fs,data:Vi(Ki({date:si(),revenue:Si(),ticketsSold:Si()}))});const Zs=bs({eventId:si(),limit:Si().min(1).max(100).optional().default(10)}),Ys=Ki({meta:Ws,totals:Ki({uses:Si().describe("Total coupon uses across all coupons"),revenue:Si().describe("Total revenue from coupon-discounted orders (cents)")}),coupons:Vi(Ki({id:si().describe("Coupon code identifier"),code:si().describe("Coupon code"),uses:Si().describe("Number of times this coupon was used"),revenue:Si().describe("Revenue from this coupon (cents)"),discount:si().describe("Discount amount or percentage"),share:Si().describe("Share of total coupon uses (%)")})).describe("Coupons sorted by uses descending")}),Vs=bs({eventId:si(),limit:Si().min(1).max(100).optional().default(10)}),Hs=Ki({data:Vi(Ki({campaign:si(),views:Si(),conversions:Si(),conversionRate:Si(),sharePercent:Si()})),totalConversions:Si()}),Ks=bs({eventId:si(),limit:Si().min(1).max(100).optional().default(10)}),Js=Ki({meta:Ws,totals:Ki({views:Si().describe("Total views across all mediums"),conversions:Si().describe("Total conversions across all mediums")}),mediums:Vi(Ki({id:si().describe("Medium identifier (e.g., 'social', 'email')"),name:si().describe("Medium name"),views:Si().describe("Views from this medium"),conversions:Si().describe("Conversions from this medium"),conversionRate:Si().describe("Conversion rate (%)"),share:Si().describe("Share of total conversions (%)")})).describe("Mediums sorted by conversions descending")}),Qs=bs({eventId:si()}),Xs=Ki({meta:Bs,totals:Ki({revenue:Si().describe("Total revenue across all devices (cents)"),orders:Si().describe("Total orders across all devices")}),devices:Vi(Ki({id:ao(["MOBILE","DESKTOP","TABLET"]).describe("Device type"),name:si().describe("Human-readable device name"),revenue:Si().describe("Revenue from this device (cents)"),orders:Si().describe("Orders from this device"),conversionRate:Si().describe("Conversion rate (%)"),share:Si().describe("Share of total revenue (%)")})).describe("Devices sorted by revenue descending")}),ed=bs({eventId:si(),limit:Si().min(1).max(100).optional().default(10)}),td=Ki({meta:Ws,totals:Ki({tickets:Si().describe("Total tickets across all locations"),revenue:Si().describe("Total revenue across all locations (cents)")}),locations:Vi(Ki({id:si().describe("Location/region code (e.g., 'US-CA', 'GB')"),name:si().describe("Human-readable location name"),views:Si().describe("Page views from this location"),tickets:Si().describe("Tickets from this location"),revenue:Si().describe("Revenue from this location (cents)"),share:Si().describe("Share of total views (%)")})).describe("Locations sorted by views descending")}),nd=bs({eventId:si(),limit:Si().min(1).max(100).optional().default(10)}),rd=Ki({meta:Ws,totals:Ki({sessions:Si().describe("Total sessions across all sources"),conversions:Si().describe("Total conversions across all sources"),revenue:Si().describe("Total revenue across all sources (cents)")}),sources:Vi(Ki({id:si().describe("Traffic source identifier"),name:si().describe("Traffic source name"),referrer:si().describe("Referrer URL or domain"),sessions:Si().describe("Sessions from this source"),conversions:Si().describe("Conversions from this source"),conversionRate:Si().describe("Conversion rate (%)"),revenue:Si().describe("Revenue from this source (cents)"),share:Si().describe("Share of total conversions (%)")})).describe("Traffic sources sorted by conversions descending")}),id=Ki({eventId:si(),includeAdmission:Ci().optional().default(!0),includeSection:Ci().optional().default(!0),granularity:ao(["HOUR","MINUTE"]).optional()}),od=Ki({totalTickets:Si(),checkedIn:Si(),notCheckedIn:Si(),checkinRate:Si()}),ad=od.extend({admissionId:si(),admissionName:si()}),sd=od.extend({sectionId:si(),sectionName:si()}),dd=Qi([od.extend({byAdmission:Vi(ad),bySection:Vi(sd)}),Ki({granularity:ao(["HOUR","MINUTE"]),totalTickets:Si(),data:Vi(Ki({timestamp:si(),checkedIn:Si(),rate:Si(),checkinsThisPeriod:Si()})),byAdmission:Vi(Ki({admissionId:si(),admissionName:si(),data:Vi(Ki({timestamp:si(),checkedIn:Si(),rate:Si()}))})).optional(),bySection:Vi(Ki({sectionId:si(),sectionName:si(),data:Vi(Ki({timestamp:si(),checkedIn:Si(),rate:Si()}))})).optional()})]),cd=Ms("promoterId","Promoter identifier"),ud=Ps({promoterId:si().describe("Promoter identifier"),promoterName:si().describe("Promoter name"),teamId:si().describe("Team identifier"),teamName:si().describe("Team name")}),ld=js("promoterId","Promoter identifier"),pd=Ki({meta:Ki({promoterId:si(),dateRange:Is,granularity:Es}),currencies:Vi(Ki({currency:si().describe("Currency code (e.g., USD, EUR)"),series:Vi(As),totals:Os})).describe("Time-series data grouped by currency")}),md=Cs("promoterId","Promoter identifier"),fd=Ss,hd=Ms("teamId","Team identifier"),vd=Ps({teamId:si().describe("Team identifier"),teamName:si().describe("Team name")}),gd=js("teamId","Team identifier"),yd=Ki({meta:Ki({teamId:si(),dateRange:Is,granularity:Es}),currencies:Vi(Ki({currency:si().describe("Currency code (e.g., USD, EUR)"),series:Vi(Ts),totals:_s})).describe("Time-series data grouped by currency")});bs({teamId:si().describe("Team identifier"),limit:Si().optional().default(10).describe("Number of events to return"),sortBy:ao(["revenue","tickets","conversion"]).optional().default("revenue").describe("Sort metric")}),Ki({meta:Ki({teamId:si(),dateRange:Ki({start:si(),end:si()}),limit:Si(),sortBy:si()}),data:Vi(Ki({eventId:si().describe("Event identifier"),eventName:si().describe("Event name"),eventDate:si().describe("Event date").optional(),status:si().describe("Event status"),revenue:Si().describe("Total revenue in cents"),tickets:Si().describe("Tickets sold"),views:Si().describe("Page views"),conversionRate:Si().describe("Conversion rate (%)"),contribution:Si().describe("% of promoter's total revenue")})),totals:Ki({events:Si().describe("Total events in period"),revenue:Si().describe("Combined revenue"),tickets:Si().describe("Combined tickets")})});const bd=Cs("teamId","Team identifier"),wd=Ss,$d=bs({teamId:si().describe("Team identifier")}),kd=Ki({stages:Vi(Ki({stageId:si().describe("Funnel stage identifier"),stageLabel:si().describe("Human-readable stage name"),count:Si().describe("Number of events at this stage"),conversionRate:Si().describe("Conversion rate from first stage (%)"),dropoffPercent:Si().describe("Dropoff rate from previous stage (%)")}))}),Id=bs({teamId:si().describe("Team identifier"),groupBy:ao(["HOUR","DAY_OF_WEEK","DAY","WEEK","MONTH"]).optional().default("HOUR").describe("Time breakdown for aggregation"),timeZone:si().optional().default("UTC").describe("IANA timezone for hour/day aggregation (e.g., 'America/New_York')")}),xd=Ki({groupBy:ao(["HOUR","DAY_OF_WEEK","DAY","WEEK","MONTH"]).describe("The grouping used for aggregation"),buckets:Vi(Ki({key:Qi([Si(),si()]).describe("Bucket key (hour 0-23, day 0-6, or date string)"),label:si().describe("Human-readable label"),orderCount:Si().describe("Number of orders"),sharePercent:Si().describe("Percentage of total orders")})),totalOrders:Si().describe("Total orders across all buckets")}),Ed=bs({teamId:si().describe("Team identifier"),limit:Si().optional().default(10).describe("Maximum number of admissions to return")}),Ad=Ki({admissions:Vi(Ki({admissionId:si().describe("Admission identifier"),admissionName:si().describe("Admission name"),ticketCount:Si().describe("Number of tickets sold"),sharePercent:Si().describe("Percentage of total tickets")})),totalTickets:Si().describe("Total tickets across all admissions")}),Td=bs({teamId:si().describe("Team identifier"),type:ao(["campaign","medium","source"]).describe("Dimension type to analyze"),limit:Si().optional().default(20).describe("Maximum number of results to return")}),Od=Ki({dimensionType:ao(["campaign","medium","source"]).describe("The dimension type analyzed"),data:Vi(Ki({dimensionValue:si().describe("The dimension value (e.g., campaign name)"),dimensionLabel:si().describe("Human-readable label"),views:Si().describe("Total page views"),conversions:Si().describe("Total conversions (orders)"),conversionRate:Si().describe("Conversion rate (%)"),sharePercent:Si().describe("Share of total conversions (%)")})),totalConversions:Si().describe("Total conversions across all dimensions")}),_d=bs({teamId:si().describe("Team identifier"),granularity:ao(["DAY","WEEK","MONTH"]).optional().default("DAY").describe("Time granularity for aggregation")}),Dd=Ki({granularity:ao(["DAY","WEEK","MONTH"]).describe("The granularity used"),series:Vi(Ki({date:si().describe("Date key (YYYY-MM-DD, YYYY-Www, or YYYY-MM)"),label:si().describe("Human-readable label"),productViewed:Si().describe("Page views"),productAdded:Si().describe("Add to cart events"),checkoutStarted:Si().describe("Checkout started events"),orderCompleted:Si().describe("Completed orders")})),totals:Ki({productViewed:Si().describe("Total page views"),productAdded:Si().describe("Total add to cart"),checkoutStarted:Si().describe("Total checkouts started"),orderCompleted:Si().describe("Total orders completed"),uniqueVisitors:Si().describe("Unique visitors (estimated via HyperLogLog, ~0.8% error)")})}),Sd=ao("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(".")),Md=Sd.enum,Pd=Ki({product_id:si().optional().describe("admission_id in ticketing context"),sku:si().optional().describe("admission_id or admission_name"),category:si().optional().describe('event_name or "Admission"'),name:si().optional().describe("admission_name"),brand:si().optional().describe("promoter_name"),variant:si().optional().describe("section_name"),price:Si().optional().describe("admission price (base + booking fee)"),quantity:Si().optional().describe("number of tickets"),coupon:si().optional().describe("coupon code applied"),position:Si().optional().describe("position in list"),url:si().optional().describe("URL to event/admission page"),image_url:si().optional().describe("event image"),admission_id:si().optional().describe("Explicit admission ID"),section_id:si().optional().describe("Section ID if applicable"),event_id:si().optional().describe("Event ID for this admission"),promoter_id:si().optional().describe("Promoter ID"),price_base:Si().nullish().describe("Base price before fees"),price_booking_fee:Si().nullish().describe("Booking fee"),capacity:Si().optional().describe("Total capacity for this admission"),available:Si().optional().describe("Remaining tickets available"),sold:Si().optional().describe("Tickets already sold")}),jd=Ki({type:si(),value:si()}),Cd=Ki({type:si(),value:si()}),Nd=Ki({query:Qi([si(),io(si(),qi())]).optional(),list_id:si().optional(),category:si().optional(),filters:Vi(jd).optional(),sorts:Vi(Cd).optional(),promotion_id:si().optional(),creative:si().optional(),name:si().optional(),position:Qi([si(),Si()]).optional(),product_id:si().optional(),sku:si().optional(),brand:si().optional(),variant:si().optional(),price:Si().optional(),quantity:Si().optional(),coupon:si().optional(),currency:si().optional(),value:Si().optional(),url:si().optional(),image_url:si().optional(),cart_id:si().optional(),checkout_id:si().optional(),step:Si().optional(),shipping_method:si().optional(),payment_method:si().optional(),order_id:si().optional(),affiliation:si().optional(),subtotal:Si().optional(),total:Si().optional(),revenue:Si().optional(),shipping:Si().optional(),tax:Si().optional(),discount:Si().optional(),coupon_id:si().optional(),coupon_name:si().optional(),reason:si().optional(),wishlist_id:si().optional(),wishlist_name:si().optional(),share_via:si().optional(),share_message:si().optional(),recipient:si().optional(),review_id:si().optional(),review_body:si().optional(),rating:si().optional(),products:Vi(Pd).optional(),event_id:si().optional().describe("ID of the ticketed event (evt_xxx)"),event_name:si().optional().describe("Name of the ticketed event"),event_slug:si().optional().describe("URL slug of event"),event_starts_at:ia.optional().describe("When the event starts (naive datetime, no timezone)"),event_ends_at:ia.optional().describe("When the event ends (naive datetime, no timezone)"),event_status:ao(["UPCOMING","LIVE","ENDED","CANCELLED"]).optional(),event_visibility:ao(["PUBLIC","PRIVATE"]).optional(),event_location:si().optional().describe("Venue name"),event_city:si().optional().describe("Venue city"),event_country:si().optional().describe("Venue country"),promoter_id:si().optional().describe("ID of the promoter (pmt_xxx)"),promoter_name:si().optional().describe("Name of the promoter"),promoter_slug:si().optional().describe("URL slug of promoter"),admission_id:si().optional().describe("ID of admission type (adm_xxx)"),admission_name:si().optional().describe('Name of admission (e.g., "General Admission")'),admission_capacity:Si().optional().describe("Total capacity for this admission"),admission_available:Si().optional().describe("Tickets still available"),admission_sold:Si().optional().describe("Tickets already sold"),section_id:si().optional().describe("ID of section (sct_xxx)"),section_name:si().optional().describe('Name of section (e.g., "VIP", "General")'),section_capacity:Si().optional().describe("Total capacity for this section"),section_available:Si().optional().describe("Spots still available in section"),ticket_id:si().optional().describe("Individual ticket ID (tkt_xxx)"),ticket_status:ao(["VALID","REDEEMED","CANCELLED"]).optional(),tickets_quantity:Si().optional().describe("Number of tickets in transaction"),customer_id:si().optional().describe("Customer ID (cus_xxx)"),customer_email:si().optional().describe("Customer email"),customer_first_name:si().optional(),customer_last_name:si().optional(),price_base:Si().nullish().describe("Base price before fees"),price_booking_fee:Si().nullish().describe("Booking fee amount"),price_discount_amount:Si().nullish().describe("Discount amount applied"),sale_starts_at:ia.optional().describe("When tickets go on sale (naive datetime, no timezone)"),sale_ends_at:ia.optional().describe("When ticket sales end (naive datetime, no timezone)"),entry_starts_at:ia.optional().describe("When entry to event begins (naive datetime, no timezone)"),entry_ends_at:ia.optional().describe("When entry to event ends (naive datetime, no timezone)"),funnel_step:si().optional().describe('Current funnel step (e.g., "browse", "cart", "checkout")'),time_to_purchase:Si().optional().describe("Seconds from first view to purchase"),session_duration:Si().optional().describe("Total session duration in seconds"),referrer_type:ao(["DIRECT","SOCIAL","EMAIL","SEARCH","REFERRAL","AD"]).optional(),campaign_id:si().optional().describe("Marketing campaign ID"),affiliate_id:si().optional().describe("Affiliate partner ID"),promo_code_used:si().optional().describe("Promotional code applied"),platform:ao(["WEB","MOBILE_WEB","IOS","ANDROID"]).optional(),app_version:si().optional(),device_type:ao(["MOBILE","TABLET","DESKTOP"]).optional()}),Rd=Ki({session_id:si(),user_id:si().optional(),anonymous_id:si().optional(),utm_source:si().optional(),utm_medium:si().optional(),utm_campaign:si().optional(),utm_term:si().optional(),utm_content:si().optional(),page:Ki({url:si(),path:si(),title:si()}),referrer:si().optional(),user_agent:si().optional(),ip:si().optional(),geo:Ki({country:si().optional().describe('Country code (e.g., "AU")'),countryName:si().optional().describe('Country name (e.g., "Australia")'),region:si().optional().describe("State/province code"),regionName:si().optional().describe('State/province name (e.g., "New South Wales")'),city:si().optional().describe("City name"),latitude:si().optional().describe("Latitude"),longitude:si().optional().describe("Longitude")}).optional(),fbc:si().optional().describe("Facebook click ID"),fbp:si().optional().describe("Facebook browser ID"),ttclid:si().optional().describe("TikTok click ID")}),Ud=Ki({id:si(),eventId:si().min(1).describe("Event being tracked (evt_123)"),teamId:si().min(1).describe("Team ID (team_123)"),promoterId:si().min(1).describe("Promoter ID (pmt_123)"),eventType:Sd,timestamp:si(),date:si().describe("YYYY-MM-DD"),hour:Si().int().min(0).max(23),properties:Nd,context:Rd,productId:si().optional(),createdAt:si(),updatedAt:si()}),Ld=Ud.omit({id:!0,timestamp:!0,date:!0,hour:!0,createdAt:!0,updatedAt:!0}).meta({description:"Schema for tracking an analytics event. Excludes system-generated fields"}),qd=Ki({legacyOrgId:si().min(1),legacyEventId:si().min(1),legacyTeamId:si().min(1),legacyEventName:si().optional(),legacyEventSlug:si().optional(),legacyEventCreatedAt:Qi([si(),Zi(),Ri()]).optional(),legacyTeamCreatedAt:Qi([si(),Zi(),Ri()]).optional()}),Gd=Qi([Ld,Ki({eventName:si().min(1).optional(),eventType:Sd.optional(),eventId:si().min(1).optional(),teamId:si().min(1).optional(),promoterId:si().min(1).optional(),properties:io(si(),qi()).optional(),context:Rd.partial().optional(),legacyContext:qd.optional()}).passthrough().meta({description:"Compatibility schema for legacy Sash analytics payloads that require server-side ID normalization"})]).meta({description:"Analytics ingress schema accepting both canonical payloads and legacy Sash-compatible payloads"});ws({eventId:si().meta({description:"Event ID to get tracking events for"}),limit:Eo().int().positive().optional().meta({description:"Maximum number of events to return"})}).meta({description:"Schema for retrieving tracking events for an event"}),Ki({id:si(),email:ui(),firstName:si(),lastName:si(),imageUrl:si().url().optional(),tenantId:si(),createdAt:si().datetime(),updatedAt:si().datetime()});const zd=ao(["AIRWALLEX","STRIPE"]),Fd=Ki({id:si().readonly().meta({examples:[De.Beneficiary.id],description:"A unique identifier for this beneficiary."}),createdAt:Ur().readonly().meta({examples:[De.Beneficiary.createdAt],description:"Timestamp in ISO 8601 format when this beneficiary was created."}),updatedAt:Ur().readonly().meta({examples:[De.Beneficiary.updatedAt],description:"Timestamp in ISO 8601 format when this beneficiary was last updated."}),name:si().meta({examples:[De.Beneficiary.name],description:"The account name for this beneficiary."}),currency:Oo.meta({examples:[De.Beneficiary.currency],description:"Three-letter ISO 4217 currency code for payouts."}),gateway:zd.meta({examples:["STRIPE"],description:"The payment gateway used for processing payouts."}),gatewayId:si().meta({examples:[De.Beneficiary.gatewayId],description:"The identifier assigned by the payment gateway to this account."}),teamId:si().meta({description:"Team that owns this beneficiary account."}),teamIds:Vi(si()).meta({examples:[[]],description:"List of team IDs this beneficiary is assigned to. Empty array means available to all teams."}),venueIds:Vi(si()).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"}),Bd=Ki({city:si().optional(),country_code:si(),postcode:si().optional(),state:si().optional(),street_address:si().optional()}),Wd=Ki({account_currency:si(),account_name:si(),account_number:si().optional(),account_routing_type1:si().optional(),account_routing_value1:si().optional(),account_routing_type2:si().optional(),account_routing_value2:si().optional(),bank_account_category:si().optional(),bank_branch:si().optional(),bank_country_code:si(),bank_name:si().optional(),bank_street_address:si().optional(),binding_mobile_number:si().optional(),fingerprint:si().optional(),iban:si().optional(),local_clearing_system:si().optional(),swift_code:si().optional(),transaction_reference:si().optional(),account_identifier_type:si().optional(),account_identifier_value:si().optional()}),Zd=Ki({transfer_methods:Vi(ao(["SWIFT","LOCAL"])).meta({examples:[["LOCAL"]],description:"Transfer methods supported for this beneficiary"}),beneficiary:Ki({company_name:si().optional(),date_of_birth:si().optional(),entity_type:si().meta({examples:["COMPANY"],description:"Whether the beneficiary is PERSONAL or COMPANY"}),first_name:si().optional(),last_name:si().optional(),address:Bd,bank_details:Wd,additional_info:Ki({personal_email:ui().optional()}).optional()}).meta({description:"Beneficiary details including personal/company info, address, and bank details"})}).meta({description:"Complete beneficiary request structure for Airwallex validation"}),Yd=Zd.extend({id:si().optional()}),Vd=Fd.omit({id:!0,createdAt:!0,updatedAt:!0,currency:!0}).extend({currency:Oo.meta({examples:[De.Beneficiary.currency],description:"Three-letter ISO 4217 currency code for payouts to this beneficiary account"}),airwallex:Yd.optional().meta({examples:[De.AirwallexBeneficiary],description:"Airwallex-specific beneficiary details including bank account information and address (required when gateway is AIRWALLEX)"}),teamIds:Vi(si()).optional().default([]).meta({examples:[[]],description:"List of team IDs to assign this beneficiary to. Empty array or omitted means available to all teams."}),venueIds:Vi(si()).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"}),Hd=Fd.pick({id:!0}).meta({description:"Schema for retrieving a single beneficiary by its unique identifier"}),Kd=Hd.meta({description:"Schema for deleting a beneficiary account - requires the beneficiary ID"}),Jd=Ki({teamId:si().optional().meta({examples:[De.Team.id],description:"Optional identifier of the team whose beneficiaries to list. When provided, only beneficiaries for that team are returned."}),gateway:ao(["AIRWALLEX","STRIPE"]).optional().meta({examples:[De.Beneficiary.gateway],description:"Filter beneficiaries by payment gateway provider (optional)"}),currency:Oo.optional().meta({examples:[De.Beneficiary.currency],description:"Filter beneficiaries by currency code (optional)"}),query:si().optional().meta({examples:["beneficiary"],description:"Optional search query to filter beneficiaries by name or gateway identifier. When provided, search-backed pagination is used."}),limit:oa("beneficiaries").optional(),cursor:si().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"}),Qd=_a(Fd,"beneficiaries"),Xd=Ki({beneficiary:Fd}),ec=Ki({min:Si().optional().meta({description:"Minimum number of time units for the transfer"}),max:Si().optional().meta({description:"Maximum number of time units for the transfer"}),unit:si().optional().meta({examples:["day"],description:"Time unit (e.g., 'day', 'hour')"})}).meta({description:"Expected transfer completion time range"}),tc=Ki({min:Si().optional().meta({description:"Minimum transfer amount"}),max:Si().optional().meta({description:"Maximum transfer amount"})}).meta({description:"Transfer amount limits"}),nc=Ki({label:si().meta({description:"Display label for the option"}),value:si().meta({description:"Value to submit when selected"}),flightTime:ec.optional().meta({description:"Expected transfer time for TRANSFER_METHOD options"}),transferLimit:tc.optional().meta({description:"Transfer amount limits for TRANSFER_METHOD options"}),processingTime:si().optional().meta({description:"Human-readable processing time description"})}).meta({description:"A selectable option in a form field"}),rc=Ki({type:ao(["INPUT","SELECT","RADIO","TRANSFER_METHOD","DYNAMIC_SELECT"]).meta({examples:["INPUT"],description:"The type of form input to render"}),label:si().optional().meta({description:"Display label for the field"}),placeholder:si().optional().meta({description:"Placeholder text for input fields"}),description:si().optional().meta({description:"Detailed description of the field"}),tip:si().optional().meta({description:"Tooltip information shown on hover"}),example:si().optional().meta({description:"Example value for the field"}),default:si().optional().meta({description:"Default value to pre-populate the field"}),key:si().optional().meta({description:"Unique key identifier for the field"}),options:Vi(nc).optional().meta({description:"Available options for SELECT and RADIO field types"}),refresh:Ci().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"}),ic=Ki({pattern:si().optional().meta({description:"Regex pattern for field validation"}),type:si().optional().meta({description:"Validation type identifier"})}).meta({description:"Validation rules for a form field"}),oc=Ki({path:si().meta({examples:["beneficiary.bank_details.account_number"],description:"Dot-notation path to the field in the beneficiary request object"}),enabled:Ci().meta({examples:[!0],description:"Whether this field should be displayed"}),required:Ci().meta({examples:[!0],description:"Whether this field is required for submission"}),field:rc.optional().meta({description:"Field definition with type, label, and options"}),rule:ic.optional().meta({description:"Validation rules for the field"})}).meta({description:"A single field in the beneficiary form schema with display and validation rules"}),ac=Ki({bankCountryCode:si().regex(/^[A-Z]{2}$/).meta({examples:["AU"],description:"Two-letter ISO 3166-1 alpha-2 country code for the bank location"}),accountCurrency:Oo.meta({examples:["AUD"],description:"Three-letter ISO 4217 currency code for the beneficiary account"}),entityType:ao(["PERSONAL","COMPANY"]).meta({examples:["COMPANY"],description:"Whether the beneficiary is an individual or a company"}),transferMethod:ao(["LOCAL","SWIFT"]).optional().meta({examples:["LOCAL"],description:"Transfer method: SWIFT for international wire transfers, LOCAL for domestic transfers"}),localClearingSystem:si().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:io(si(),si()).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."}),sc=Ki({fields:Vi(oc).meta({description:"Array of form fields with their display and validation configuration"}),selectedTransferMethod:ao(["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:si().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"}),dc=fe.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(ac.strict()).output(sc),cc=Ki({source:si().meta({examples:["beneficiary.bank_details.account_number"],description:"Dot-notation path to the field that failed validation"}),code:si().meta({examples:["001"],description:"Airwallex validation error code"}),message:si().meta({examples:["This field is required"],description:"Human-readable error message"})}).meta({description:"Details about a single validation error for a field"}),uc=Zd.meta({description:"Beneficiary request data to validate against Airwallex rules before creating"}),lc=Ki({valid:Ci().meta({examples:[!0],description:"Whether the beneficiary request passed all validation rules"}),errors:Vi(cc).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"}),pc=fe.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(uc.strict()).output(lc),mc=fe.route({method:"GET",path:"/events/{eventId}/admissions/{id}",summary:"Get admission by ID",tags:["Admissions"]}).input(Ta.strict()).output(ja),fc=fe.route({method:"POST",path:"/events/{eventId}/admissions",summary:"Create a new admission",tags:["Admissions"]}).input(Ea.strict()).output(ja),hc=fe.route({method:"PUT",path:"/events/{eventId}/admissions/{id}",summary:"Update an admission",tags:["Admissions"]}).input(Ca.strict()).output(ja);var vc={get:mc,list:fe.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(Oa.strict()).output(Da),create:fc,update:hc,remove:fe.route({method:"DELETE",path:"/events/{eventId}/admissions/{id}",summary:"Delete an admission",tags:["Admissions"]}).input(Aa.strict()).output(ja),quote:fe.route({method:"POST",path:"/events/{eventId}/admissions/quote",summary:"Create an admission quote",tags:["Admissions"]}).input(Ma.strict()).output(Pa)},gc={track:fe.route({method:"POST",path:"/analytics/track",summary:"Track event",tags:["Analytics"]}).input(Gd).output(Ud),page:fe.route({method:"POST",path:"/analytics/page",summary:"Page event",tags:["Analytics"]}).input(Gd).output(Ud),identify:fe.route({method:"POST",path:"/analytics/identify",summary:"Identify event",tags:["Analytics"]}).input(Gd).output(Ud),alias:fe.route({method:"POST",path:"/analytics/alias",summary:"Alias event",tags:["Analytics"]}).input(Gd).output(Ud),group:fe.route({method:"POST",path:"/analytics/group",summary:"Group event",tags:["Analytics"]}).input(Gd).output(Ud),screen:fe.route({method:"POST",path:"/analytics/screen",summary:"Screen event",tags:["Analytics"]}).input(Gd).output(Ud)};const yc=fe.route({method:"GET",path:"/beneficiaries/{id}",summary:"Get beneficiary by ID",tags:["Beneficiaries"]}).input(Hd.strict()).output(Xd),bc=fe.route({method:"POST",path:"/beneficiaries",summary:"Create a new beneficiary",tags:["Beneficiaries"]}).input(Vd.strict()).output(Xd);var wc={get:yc,list:fe.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(Jd.strict()).output(Qd),create:bc,remove:fe.route({method:"DELETE",path:"/beneficiaries/{id}",summary:"Delete a beneficiary",tags:["Beneficiaries"]}).input(Kd.strict()).output(Xd),schema:dc,validate:pc};const $c=ao(["AMOUNT","PERCENT"]),kc=ao(["TEAM","PROMOTER","EVENTS","SECTIONS","ADMISSIONS"]),Ic=Ki({id:si().readonly().meta({examples:[De.Coupon.id],description:"A unique identifier for this coupon."}),couponId:si().optional().readonly().meta({examples:[De.Coupon.couponId],description:"Duplicate of id field for GSI queries."}),createdAt:Ur().readonly().meta({examples:[De.Coupon.createdAt],description:"Timestamp in ISO 8601 format when this coupon was created."}),updatedAt:Ur().readonly().meta({examples:[De.Coupon.updatedAt],description:"Timestamp in ISO 8601 format when this coupon was last updated."}),name:si().meta({examples:[De.Coupon.name],description:"Internal label for the coupon, visible to event organisers."}),active:Ci().optional().meta({examples:[De.Coupon.active],description:"Whether this coupon is currently active."}),kind:$c.meta({examples:["PERCENT"],description:"Type of discount this coupon gives: a fixed amount or a percentage."}),filter:kc.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:Oo.optional().meta({examples:[De.Coupon.currency],description:"Three-letter ISO 4217 currency code. Required for AMOUNT coupons. Optional for PERCENT coupons - when omitted, applies to all currencies."}),discount:Si().min(0).meta({examples:[De.Coupon.discount],description:"The discount value. If kind is 'amount', this is a currency amount. If kind is 'percent', this is a percentage."}),limit:Si().meta({examples:[De.Coupon.limit],description:"Maximum number of times the coupon can be redeemed across all customers."}),uses:Si().optional().meta({examples:[De.Coupon.uses],description:"Number of times this coupon has been redeemed so far."}),promoters:Vi(Ki({id:si().meta({description:"Identifier of a promoter this coupon applies to."}),name:si().meta({description:"Name of a promoter this coupon applies to."}),slug:si().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:Vi(Ki({id:si().meta({description:"Identifier of an event this coupon applies to."}),name:si().meta({description:"Name of an event this coupon applies to."}),slug:si().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:Vi(Ki({id:si().meta({description:"Identifier of a section this coupon applies to."}),name:si().meta({description:"Name of a section this coupon applies to."}),eventId:si().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:Vi(Ki({id:si().meta({description:"Identifier of an admission this coupon applies to."}),name:si().meta({description:"Name of an admission this coupon applies to."}),eventId:si().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:ia.meta({examples:[De.Coupon.saleStartsAt],description:"Wall clock time when this coupon becomes valid (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)"}),saleEndsAt:ia.optional().meta({examples:[De.Coupon.saleEndsAt],description:"Wall clock time when this coupon expires (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)"}),teamId:si().meta({description:"Team that created this coupon."})}).meta({description:"coupon"}),xc=Ki({id:si().readonly().meta({examples:[De.CouponCode.id],description:"A unique identifier for this coupon code."}),createdAt:Ur().readonly().meta({examples:[De.CouponCode.createdAt],description:"Timestamp in ISO 8601 format when this coupon code was created."}),updatedAt:Ur().readonly().meta({examples:[De.CouponCode.updatedAt],description:"Timestamp in ISO 8601 format when this coupon code was last updated."}),name:si().meta({examples:[De.CouponCode.name],description:"The code string that customers enter to redeem the coupon."}),active:Ci().meta({examples:[De.CouponCode.active],description:"Whether this coupon code is currently enabled for use."}),couponId:si().meta({examples:[De.Coupon.id],description:"Identifier of the coupon to which this code belongs."}),teamId:si().meta({description:"Team that created this coupon code."}),uses:Si().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"}),Ec=xc.pick({id:!0});Ki({couponId:si().meta({examples:[De.Coupon.id]})}),Ki({name:si(),couponId:si().optional().meta({examples:[De.Coupon.id]})});const Ac=xc.omit({id:!0,createdAt:!0,updatedAt:!0,uses:!0}),Tc=xc.omit({createdAt:!0,updatedAt:!0,couponId:!0,teamId:!0,uses:!0}).partial().extend({id:xc.shape.id}),Oc=Ec,_c=Ki({couponId:si().optional().meta({examples:[De.Coupon.id],description:"Optional filter to retrieve coupon codes for a specific coupon"}),teamId:si().optional().meta({examples:["tem_01jqpjksnsen9vprw95et60t2m"],description:"Optional filter to retrieve coupon codes created by a specific team"}),active:Ao().optional().meta({examples:[!0],description:"Optional filter to retrieve only active or inactive coupon codes"}),query:si().optional().meta({examples:["SUMMER"],description:"Optional search query to filter coupon codes by name. When provided, search-backed pagination is used."}),limit:oa("coupon codes").optional(),cursor:si().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"}),Dc=_a(xc,"codes"),Sc=Ki({couponCode:xc}),Mc=Ic.omit({id:!0,createdAt:!0,updatedAt:!0}).meta({description:"Schema for creating a new coupon without system-generated fields"}),Pc=Ic.pick({id:!0}).meta({description:"Schema for retrieving a single coupon by ID"}),jc=Pc.meta({description:"Schema for deleting a coupon by ID with optional soft-delete filtering"}),Cc=Ki({teamId:si().meta({examples:[De.Team.id],description:"Unique identifier of the team whose coupons to retrieve"}),active:Ao().optional().meta({examples:[!0],description:"Optional filter to retrieve only active or inactive coupons"}),query:si().optional().meta({examples:["Half Price"],description:"Optional search query to filter coupons by name or description. When provided, search-backed pagination is used."}),limit:oa("coupons").optional(),cursor:si().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"}),Nc=_a(Ic,"coupons"),Rc=Ki({coupon:Ic}),Uc=Ic.omit({createdAt:!0,updatedAt:!0,teamId:!0}).partial().extend({id:Ic.shape.id.meta({examples:[De.Coupon.id],description:"Unique identifier of the coupon to update"}),saleEndsAt:ia.nullable().optional().meta({examples:[De.Coupon.saleEndsAt],description:"Expiry time. Pass null to remove end date; omit to leave unchanged."}),currency:Oo.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."}),Lc=fe.route({method:"GET",path:"/coupon-codes/{id}",summary:"Get coupon code by ID",tags:["Coupon Codes"]}).input(Ec.strict()).output(Sc),qc=fe.route({method:"POST",path:"/coupon-codes",summary:"Create a new coupon code",tags:["Coupon Codes"]}).input(Ac.strict()).output(Sc),Gc=fe.route({method:"PUT",path:"/coupon-codes/{id}",summary:"Update a coupon code",tags:["Coupon Codes"]}).input(Tc.strict()).output(Sc);var zc={get:Lc,list:fe.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(_c.strict()).output(Dc),create:qc,update:Gc,remove:fe.route({method:"DELETE",path:"/coupon-codes/{id}",summary:"Delete a coupon code",tags:["Coupon Codes"]}).input(Oc.strict()).output(Sc)};const Fc=fe.route({method:"GET",path:"/coupons/{id}",summary:"Get coupon by ID",tags:["Coupons"]}).input(Pc.strict()).output(Rc),Bc=fe.route({method:"POST",path:"/coupons",summary:"Create a new coupon",tags:["Coupons"]}).input(Mc.strict()).output(Rc),Wc=fe.route({method:"PUT",path:"/coupons/{id}",summary:"Update a coupon",tags:["Coupons"]}).input(Uc.strict()).output(Rc);var Zc={get:Fc,list:fe.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(Cc.strict()).output(Nc),create:Bc,update:Wc,remove:fe.route({method:"DELETE",path:"/coupons/{id}",summary:"Delete a coupon",tags:["Coupons"]}).input(jc.strict()).output(Rc),code:zc},Yc={suggestTags:fe.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(Na.strict()).output(Ra)};const Vc=Ki({eventId:Co.meta({description:"Event to like"})}).meta({description:"Request to like an event"}),Hc=Ki({limit:oa("likes"),cursor:si().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."}),Kc=Ki({tenantId:si().readonly().meta({description:"Tenant ID for multi-tenant isolation"}),userId:Uo.readonly().meta({description:"User who liked the event"}),eventId:Co.meta({description:"Event the user liked"}),createdAt:Ur().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."}),Jc=_a(Kc,"likes").meta({description:"Paginated list of event likes. Use cursor-based pagination to navigate through results."}),Qc=Ki({eventId:Co.meta({description:"Event to remove like from"})}).meta({description:"Request to remove the current user's like from an event"}),Xc=Ki({like:Kc});var eu={add:fe.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(Vc).output(Xc),remove:fe.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(Qc).output(Bi()),list:fe.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(Hc).output(Jc)};const tu=Ki({id:Ro.readonly().meta({examples:[De.Location.id],description:"Location identifier"}),googlePlaceId:si().optional().meta({examples:["ChIJP3Sa8ziYEmsRUKgyFmh9AQM"],description:"Google Place ID for this location"}),createdAt:Ur().meta({examples:[De.Location.createdAt],description:"Timestamp in ISO 8601 format when the location was created"}),updatedAt:Ur().meta({examples:[De.Location.updatedAt],description:"Timestamp in ISO 8601 format when the location was last updated"}),name:si().meta({examples:[De.Location.name],description:"Location name"}),address:si().meta({examples:[De.Location.address],description:"Formatted address"}),city:si().optional().meta({examples:[De.Location.city],description:"City name"}),state:si().optional().meta({examples:[De.Location.state],description:"State or region"}),postcode:si().optional().meta({examples:[De.Location.postcode],description:"Postal code"}),country:si().meta({examples:[De.Location.country],description:"Country name"}),latitude:Si().min(-90).max(90).meta({examples:[De.Location.latitude],description:"Latitude coordinate"}),longitude:Si().min(-180).max(180).meta({examples:[De.Location.longitude],description:"Longitude coordinate"}),timeZone:si().min(1).regex(/^[A-Za-z0-9_+-]+(\/[A-Za-z0-9_+-]+)*$/,{message:"Must be a valid IANA timezone identifier format"}).meta({examples:[De.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:Vi(si()).optional().meta({examples:[["establishment","point_of_interest","stadium"]],description:"Google Place types indicating the category and nature of this location"}),description:si().optional().meta({examples:["Historic outdoor amphitheater known for summer concerts"],description:"AI-generated description of the place, when available"}),image:Qo.optional().meta({description:"Primary location photo"}),venueId:No.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"}),nu=tu.omit({venueId:!0}).extend({venue:Ki({id:No.meta({description:"Venue identifier"}),name:si().meta({description:"Venue name"}),slug:si().meta({description:"URL-friendly venue slug"}),teamId:si().meta({description:"Team that owns this venue"}),approval:To.meta({description:"Venue approval status"}),image:Qo.optional().meta({description:"Venue image"}),description:si().optional().meta({description:"Venue description"})}).optional().meta({description:"Denormalized venue details if this location is a managed venue. Only included when venue is approved."})}),ru=Ki({id:Go.readonly().meta({examples:[De.Promoter.id],description:"Unique identifier for the promoter organization"}),createdAt:Ur().readonly().meta({examples:[De.Promoter.createdAt],description:"Timestamp in ISO 8601 format when the promoter was created"}),updatedAt:Ur().readonly().meta({examples:[De.Promoter.updatedAt],description:"Timestamp in ISO 8601 format when the promoter was last updated"}),name:si().min(3).max(30).meta({examples:[De.Promoter.name],description:"Display name of the promoter organization. Must be between 3 and 30 characters"}),slug:si().min(3).max(30).meta({examples:[De.Promoter.slug],description:"URL-friendly slug for the promoter organization. Must be unique and between 3 and 30 characters"}),teamId:jo.meta({examples:["tem_01jqpjksnsen9vprw95et60t2m"],description:"ID of the team that owns this promoter. Establishes team-based organization and permissions."}),description:si().meta({examples:[De.Promoter.description],description:"Detailed description of the promoter organization and their events"}),approval:To.meta({examples:[De.Promoter.approval],description:"Approval status of the promoter. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate"}),image:Qo.optional().meta({description:"Optional promotional image for the promoter organization with dimensions and alt text"}),location:nu.meta({description:"Primary location details for the promoter including address, coordinates, and timezone"}),geohash:si().meta({examples:[De.Promoter.geohash],description:"Geohash encoding of the promoter's location for efficient spatial queries"}),tracking:Ki({fbId:si().optional().meta({examples:[De.Promoter.tracking.fbId],description:"Facebook pixel ID for tracking conversions and analytics"}),gtmId:si().optional().meta({examples:[De.Promoter.tracking.gtmId],description:"Google Tag Manager container ID for web analytics"}),tikTokId:si().optional().meta({examples:[De.Promoter.tracking.tikTokId],description:"TikTok pixel ID for advertising and conversion tracking"})}).optional().meta({description:"Optional tracking configuration for analytics and advertising platforms"}),metadata:ra}).meta({description:"Promoter organization with location and approval status"}),iu=Ki({id:si().readonly().meta({examples:[De.Section.id],description:"Unique identifier for the section"}),createdAt:Ur().readonly().meta({examples:[De.Section.createdAt],description:"Timestamp when the section was created in ISO 8601 format"}),updatedAt:Ur().readonly().meta({examples:[De.Section.updatedAt],description:"Timestamp when the section was last updated in ISO 8601 format"}),name:si().meta({examples:[De.Section.name],description:"Display name of the section (e.g., 'VIP Area', 'General Admission')"}),capacity:Xo().prefault(-1).meta({examples:[De.Section.capacity],description:"Maximum number of attendees for this section. Use -1 for unlimited capacity"}),limit:ea().prefault(-1).meta({examples:[De.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:Si().min(-1).readonly().meta({examples:[De.Section.available],description:"Number of tickets currently available for purchase in this section. Use -1 when capacity is unlimited"}),sold:Si().min(0).readonly().meta({examples:[De.Section.sold],description:"Number of tickets sold for this section"}),reserved:Si().readonly().meta({examples:[De.Section.reserved],description:"Number of tickets currently reserved (in pending orders) for this section"}),order:Si().min(0).meta({examples:[De.Section.order],description:"Display order of the section. Lower numbers appear first in listings"}),location:tu.meta({description:"Physical location details for the section"}),passcode:si().optional().meta({examples:["VIPACCESS"],description:"Code required to reveal all admissions within this section. Case-insensitive comparison"}),teamId:si().meta({description:"Team that owns this section. Denormalized for efficient queries."}),promoterId:si().meta({examples:[De.Section.promoterId],description:"Unique identifier of the promoter who owns this section"}),eventId:si().meta({examples:[De.Section.eventId],description:"Unique identifier of the event this section belongs to"}),eventSlug:si().meta({examples:[De.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"}),ou=ao(["UPCOMING","ENDED"]),au=ao(["PUBLIC","PRIVATE","SCHEDULED","PASSCODE","CANCELLED"]),su=Ki({id:Co.readonly().meta({examples:[De.Event.id],description:"A unique identifier for this event"}),createdAt:Ur().readonly().meta({examples:[De.Event.createdAt],description:"Timestamp in ISO 8601 format when this event was created"}),updatedAt:Ur().readonly().meta({examples:[De.Event.updatedAt],description:"Timestamp in ISO 8601 format when this event was last updated"}),name:si().meta({examples:[De.Event.name],description:"The title of the event shown to attendees"}),slug:si().meta({examples:[De.Event.slug],description:"URL-friendly identifier for the event"}),description:si().meta({examples:[De.Event.description],description:"Detailed description of the event"}),approval:To.meta({examples:["APPROVED"],description:"Approval status of the event"}),status:ou.meta({examples:["UPCOMING","ENDED"],description:"Current stage of the event lifecycle"}),visibility:au.meta({examples:["PUBLIC"],description:"Who can see the event"}),currency:Oo.meta({examples:["AUD"],description:"Three-letter ISO 4217 currency code used for ticket prices"}),url:fi().optional().meta({examples:["https://example.com"],description:"External URL for the event website or ticket page"}),entryStartsAt:ia.meta({examples:[De.Event.entryStartsAt],description:"Wall clock time when event entry begins (no timezone, displays same everywhere)"}),entryEndsAt:ia.meta({examples:[De.Event.entryEndsAt],description:"Wall clock time when event entry ends (no timezone, displays same everywhere)"}),publishAt:ia.meta({examples:[De.Event.publishAt],description:"Wall clock time when the event becomes publicly visible (no timezone)"}),images:Ki({mobile:Qo.meta({description:"Mobile-optimized image for the event"}),desktop:Qo.meta({description:"Desktop-optimized image for the event"})}),geohash:si().meta({examples:[De.Event.geohash],description:"Geohash representing the event location"}),location:nu.meta({description:"Structured location details for the event"}),teamId:jo.meta({description:"Team that owns this event. Denormalized for efficient queries."}),promoterId:Go.meta({examples:[De.Promoter.id],description:"Promoter organizing the event. Must belong to the team."}),metadata:ra,genres:Vi(si()).optional().meta({description:"Music genres for the event (1-5 genres)",examples:[["Tech House","Melodic Techno"]]}),categories:Vi(si()).optional().meta({description:"Event characteristics like vibe, venue type, and amenities (up to 10)",examples:[["Day Party","Open Air","Free Entry"]]}),featured:Ci().optional().meta({description:"Whether this event is an editorial pick",examples:[!0]}),likes:Si().int().min(0).optional().meta({description:"Number of users who liked this event",examples:[42]})}).meta({description:"event"}),du=ru.pick({id:!0,name:!0,slug:!0,description:!0,image:!0}),cu=Ki({event:su.extend({sections:Vi(iu),admissions:Vi(xa),promoter:du.optional().meta({description:"Public summary of the promoter organizing this event. Included on event detail responses only."}),liked:Ci().optional().meta({description:"Whether the current user has liked this event",examples:[!0,!1]})})}),uu=su.omit({id:!0,teamId:!0,createdAt:!0,updatedAt:!0,status:!0,approval:!0,geohash:!0,location:!0,featured:!0,likes:!0}).extend({slug:si().min(3).max(100).optional().meta({examples:[De.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:si().optional().meta({description:"Passcode for protected access to the event"}),locationId:Ro.optional().meta({examples:["loc_01jqpjksnsen9vprw95et60t2m"],description:"ID of an existing location. Either locationId or googlePlaceId must be provided."}),googlePlaceId:si().optional().meta({examples:["ChIJN1t_tDeuEmsRUsoyG83frY4"],description:"Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided."}),genres:Mo.optional().meta({description:"Music genres for the event (1-5 genres)",examples:[["Tech House","Melodic Techno"]]}),categories:Do.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"}),lu=Ki({key:si().min(1).meta({description:"Event key - either a unique ID (evt_xxx format) or URL-friendly slug",examples:[De.Event.id,De.Event.slug]})}),pu=Ki({key:si().min(1).meta({description:"Event key - either a unique ID (evt_xxx format) or URL-friendly slug",examples:[De.Event.id,De.Event.slug]}),featured:Ci().meta({description:"Whether the event should be featured (editorial pick)",examples:[!0,!1]})}),mu=Ki({key:si().min(1).meta({description:"Event key - either a unique ID (evt_xxx format) or URL-friendly slug",examples:[De.Event.id,De.Event.slug]}),passcode:si().optional().meta({description:"Passcode for accessing protected events"}),teamId:si().optional().meta({description:"Optional team scope. When provided, event must belong to this team."})}),fu=Ki({sold:Si().min(0).meta({description:"Number of tickets sold (net of refunds)"}),reserved:Si().min(0).meta({description:"Number of tickets reserved"}),available:Si().min(-1).meta({description:"Number of tickets available (-1 for unlimited)"}),capacity:Si().min(-1).meta({description:"Total capacity (-1 for unlimited)"})}),hu=Ki({status:ao(["UPCOMING","ENDED"]).optional().meta({examples:["UPCOMING"],description:"Filter events by their current lifecycle status"}),approval:To.optional().meta({examples:["APPROVED"],description:"Filter events by their approval status"}),visibility:ao(["PUBLIC","PRIVATE","SCHEDULED","PASSCODE"]).optional().meta({examples:["PUBLIC"],description:"Filter events by their visibility setting"}),promoterId:si().optional().meta({examples:[De.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:si().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:si().optional().meta({description:"Filter events to only those at a specific venue. If not provided, returns events at all venues"}),limit:Eo().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:si().optional().meta({examples:["evt_01jps5cgsenjrazw6wswmyspa3"],description:"Cursor token for pagination. Provide the cursor from the previous response to continue fetching results"}),query:new oi({type:"string",coerce:!0,...Xe(void 0)}).optional().meta({examples:["Test Event"],description:"Search term to filter events by name, description, or location. Triggers full‑text search when provided"}),latitude:Eo().min(-90).max(90).optional().meta({examples:[De.Event.location.latitude],description:"Latitude coordinate for geographic search. Provide with longitude (and optional radius)"}),longitude:Eo().min(-180).max(180).optional().meta({examples:[De.Event.location.longitude],description:"Longitude coordinate for geographic search. Provide with latitude (and optional radius)"}),radius:Eo().optional().meta({examples:[20],description:"Search radius in kilometers from the provided coordinates. Defaults to 20km"}),country:si().optional().meta({examples:["australia"],description:"Filter by country region slug. Matches events where location.country equals the region name"}),state:si().optional().meta({examples:["nsw"],description:"Filter by state/province region slug. Matches events where location.state equals the region name"}),city:si().optional().meta({examples:["sydney"],description:"Filter by city region slug. Matches events where location.city equals the region name"}),from:si().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:si().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:Vi(So).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:Vi(_o).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:Ci().optional().meta({examples:[!0],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"}),vu=Ia({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"}),gu=_a(su.extend({inventory:fu.optional(),liked:Ci().optional().meta({description:"Whether the current user has liked this event",examples:[!0,!1]}),price:vu.nullable().meta({description:"Cheapest publicly purchasable admission price, or null when no public admission is currently available"})}),"events"),yu=Ki({event:su});ao(["ONLINE","DOOR","SALE_ENDED","SOLD_OUT"]);const bu=su.omit({createdAt:!0,updatedAt:!0,promoterId:!0,geohash:!0,status:!0,location:!0,featured:!0,likes:!0}).partial().extend({key:si().meta({examples:[De.Event.id,De.Event.slug],description:"Event key - either a unique ID (evt_xxx format) or URL-friendly slug"}),passcode:si().nullable().optional().meta({description:"Passcode for protected access. Pass null to clear; omit to leave unchanged."}),url:fi().nullable().optional().meta({examples:["https://example.com/events/summer-festival-2025"],description:"External event URL. Pass null to clear; omit to leave unchanged."}),locationId:Ro.optional().meta({examples:["loc_01jqpjksnsen9vprw95et60t2m"],description:"ID of an existing location to update to. Either locationId or googlePlaceId can be provided."}),googlePlaceId:si().optional().meta({examples:["ChIJN1t_tDeuEmsRUsoyG83frY4"],description:"Google Place ID to update location from. Either locationId or googlePlaceId can be provided."}),genres:Mo.optional().meta({description:"Music genres for the event (1-5 genres)",examples:[["Tech House","Melodic Techno"]]}),categories:Do.meta({description:"Event characteristics like vibe, venue type, and amenities (up to 10)",examples:[["Day Party","Open Air","Free Entry"]]}),notify:Ci().optional().meta({description:"Whether attendees should be notified about this event update.",examples:[!0]})}).meta({description:"Schema for updating an existing event."}),wu=Vs.extend({limit:Eo().min(1).max(100).optional().default(10)}),$u=Zs.extend({limit:Eo().min(1).max(100).optional().default(10)}),ku=Ks.extend({limit:Eo().min(1).max(100).optional().default(10)}),Iu=ed.extend({limit:Eo().min(1).max(100).optional().default(10)}),xu=nd.extend({limit:Eo().min(1).max(100).optional().default(10)});var Eu={summary:fe.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(Rs).output(Us),tickets:fe.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(Ls).output(qs),funnel:fe.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(Gs).output(zs),campaigns:fe.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(wu).output(Hs),coupons:fe.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($u).output(Ys),mediums:fe.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(ku).output(Js),devices:fe.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(Qs).output(Xs),locations:fe.route({method:"GET",path:"/events/{eventId}/performance/locations",summary:"Get geographic performance",description:"Performance by geographic location from tracking events",tags:["Event Performance"]}).input(Iu).output(td),traffic:fe.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(xu).output(rd),attendance:fe.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(id).output(dd)};const Au=fe.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(mu).output(cu),Tu=fe.route({method:"POST",path:"/events",summary:"Create a new event",tags:["Events"]}).input(uu.strict()).output(yu),Ou=fe.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(bu.strict()).output(yu);var _u={get:Au,list:fe.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(hu).output(gu),create:Tu,update:Ou,remove:fe.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(lu.strict()).output(yu),feature:fe.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(pu.strict()).output(yu),like:eu,performance:Eu,tags:Yc.suggestTags};const Du=Ki({id:Vo.readonly().meta({description:"Unique identifier for the event collaborator"}),createdAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the collaborator was added"}),updatedAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the collaborator was last updated"}),eventId:Co.meta({description:"Event this collaboration applies to"}),promoterId:Go.meta({description:"Promoter collaborating on the event"}),acceptedBy:Uo.meta({description:"User ID who accepted the invitation to collaborate"}),promoter:Ki({id:Go.meta({description:"Unique identifier of the promoter"}),name:si().meta({description:"Name of the promoter"}),teamId:jo.meta({description:"Team ID of the promoter"})}).optional().meta({description:"Populated promoter details. Only included when explicitly requested."}),permissions:ba.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:si().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."}),Su=Du.pick({id:!0,eventId:!0}).meta({description:"Schema for accepting an event promoter collaboration invitation. User accepting must be a member of the invited promoter's team."}),Mu=Ki({id:Vo.readonly().meta({description:"Unique identifier for the event collaboration invitation"}),createdAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the invitation was created"}),updatedAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the invitation was last updated"}),eventId:Co.meta({description:"Event this invitation applies to"}),promoterId:Go.meta({description:"Promoter being invited to collaborate on the event."}),invitedByPromoterId:Go.meta({description:"Promoter who sent this invitation (event owner or collaborator with permission)."}),permissions:ba.meta({description:"Permissions the promoter will receive upon accepting the invitation.",examples:[[],["event.read","event.write"],["order.read"],["ticket.scan"],["*"]]}),token:si().readonly().meta({description:"Secure token for invite acceptance. Required to accept the invitation."}),invitedBy:Uo.meta({description:"User ID who sent the invitation"}),expiresAt:Si().int().positive().meta({description:"Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days."}),tenantId:si().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."}),Pu=Mu.omit({id:!0,tenantId:!0,createdAt:!0,updatedAt:!0,token:!0,expiresAt:!0,invitedByPromoterId:!0}).meta({description:"Schema for inviting a promoter to collaborate on an event. Creates a pending invitation that the promoter can accept."}),ju=Ki({eventId:Co.meta({description:"Event ID that the collaboration belongs to"}),id:Vo.meta({description:"Event team access grant ID to retrieve"})}),Cu=Ki({invite:Mu}),Nu=Ki({eventId:si().meta({description:"Event ID to list collaborators for"}),accessPromoterId:si().optional().meta({description:"DEPRECATED: Use 'promoterId' instead. Filter by collaborating promoter ID (what events can this promoter access). Maintained for backward compatibility."}),ownerPromoterId:si().optional().meta({description:"DEPRECATED: No longer used. Maintained for backward compatibility only."}),limit:oa("event collaborators"),cursor:si().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."}),Ru=_a(Du,"grants"),Uu=Ki({collaborator:Du});var Lu={get:fe.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(ju.strict()).output(Uu),list:fe.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(Nu.strict()).output(Ru),create:fe.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(Pu.strict()).output(Cu),accept:fe.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(Su.strict()).output(Uu),remove:fe.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(ju.strict()).output(Bi())};const qu=ao(["default","custom"]),Gu=ao(["active","pending","pending_certificate","pending_dns_validation","pending_cloudfront","cloudfront_deploying","pending_activation","failed"]),zu=ao(["pending_validation","issued","failed","expired"]),Fu=Ki({domain:si(),name:si(),value:si(),type:si(),purpose:ao(["ssl_validation","traffic_routing"]).optional()}),Bu=Ki({domain:si(),type:qu,status:Gu,isPrimary:Ci(),teamId:si(),tenantId:si(),certificateArn:si().optional(),certificateStatus:zu.optional(),distributionId:si().optional(),distributionDomain:si().optional(),dnsRecords:Vi(Fu).optional(),dnsValidationRecords:Vi(Fu).optional(),errorMessage:si().optional(),verifiedAt:Ur().optional(),createdAt:Ur(),updatedAt:Ur()}),Wu=Ki({host:si()}),Zu=eo("type",[Ki({type:co("resolved"),data:Ki({teamId:si(),tenantId:si()})}),Ki({type:co("pending"),data:Ki({status:Gu.exclude(["active","pending"]),errorMessage:si().optional()})}),Ki({type:co("not_found")})]),Yu=Ki({file:new Ui({type:"any"}).describe("Image file to upload (max 10MB)"),folder:ao(["avatars","events","teams","promoters","venues"]).describe("Folder to upload to"),width:Eo().int().positive().optional().describe("Target width in pixels"),height:Eo().int().positive().optional().describe("Target height in pixels")}),Vu=Qo,Hu=Ki({language:si().trim().max(80).optional(),platform:si().trim().max(120).optional(),timezone:si().trim().max(120).optional(),userAgent:si().trim().max(800).optional(),viewport:Ki({width:Si().int().positive().max(1e4),height:Si().int().positive().max(1e4),devicePixelRatio:Si().positive().max(10).optional()}).optional()}),Ku=Ki({key:si().trim().min(1),message:si().trim().min(10).max(4e3),pageUrl:fi().max(2e3),pageTitle:si().trim().max(300).optional(),browser:Hu.optional()}),Ju=Ki({ok:co(!0)}),Qu=fe.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(Yu.strict()).output(Vu);var Xu={resolveDomain:fe.route({method:"GET",path:"/internal/domains/resolve",summary:"Resolve host to team and tenant context",tags:["Internal"]}).input(Wu.strict()).output(Zu),shareFeedback:fe.route({method:"POST",path:"/internal/feedback",summary:"Share product feedback",description:"Send authenticated tenant dashboard feedback to the Sessions team.",tags:["Internal"]}).input(Ku.strict()).output(Ju),uploadImage:Qu};const el=Ki({key:si().min(1).meta({description:"Location key - either a location ID (loc_xxx format) or provider-specific identifier (e.g., Google Place ID)",examples:[De.Location.id,"ChIJP3Sa8ziYEmsRUKgyFmh9AQM"]})}),tl=Ki({query:si().min(1).meta({examples:["sydney opera"],description:"Search query for location search"}),latitude:Eo().min(-90).max(90).optional().meta({examples:[De.Location.latitude],description:"User's latitude for proximity-based results (optional for better relevance)"}),longitude:Eo().min(-180).max(180).optional().meta({examples:[De.Location.longitude],description:"User's longitude for proximity-based results (optional for better relevance)"}),types:Vi(si()).optional().meta({examples:[["establishment"]],description:"Filter results by Google Place types (e.g., 'establishment', 'night_club', 'bar')"})}).meta({description:"Parameters for searching locations"}),nl=Ki({googlePlaceId:si().meta({examples:["ChIJP3Sa8ziYEmsRUKgyFmh9AQM"],description:"Google Place ID for this location"}),name:si().meta({examples:[De.Location.name],description:"Primary name of the location"}),description:si().meta({examples:[De.Location.address],description:"Full formatted address"}),venue:Ki({id:No.meta({examples:[De.Venue.id],description:"Venue ID if this location is a managed venue"}),name:si().meta({examples:[De.Venue.name],description:"Venue name"}),teamId:si().meta({description:"Team that manages this venue"}),image:Qo.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"}),rl=Ki({predictions:Vi(nl).meta({description:"Array of location predictions"})}).meta({description:"Response containing location search results"}),il=Ki({location:nu});var ol={list:fe.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(tl.strict()).output(rl),get:fe.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(el.strict()).output(il)};const al=Ki({name:si().meta({examples:["tenant-web","team-web","api","partner"],description:"Free-form channel identifier describing where the order originated."}),referrer:si().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:si().optional().meta({examples:["instagram"],description:"Optional UTM source captured from the originating URL."}),utmMedium:si().optional().meta({examples:["social"],description:"Optional UTM medium captured from the originating URL."}),utmCampaign:si().optional().meta({examples:["summer-launch"],description:"Optional UTM campaign captured from the originating URL."}),deviceType:ao(["MOBILE","TABLET","DESKTOP"]).optional().meta({examples:["MOBILE"],description:"Optional analytics device classification captured at order creation."}),country:si().optional().meta({examples:["Australia"],description:"Optional viewer country captured at order creation for analytics attribution."}),region:si().optional().meta({examples:["Australia - New South Wales"],description:"Optional viewer region captured at order creation for analytics attribution."})}),sl=Ki({id:si().meta({examples:[De.CouponCode.id],description:"Unique identifier of the coupon code used in the order"}),name:si().meta({examples:[De.CouponCode.name],description:"The coupon code string that was entered by the customer"}),couponId:si().meta({examples:[De.CouponCode.couponId],description:"Unique identifier of the parent coupon configuration"})}),dl=Ki({id:si().meta({examples:[De.Customer.id],description:"Unique identifier of the customer who placed the order"}),firstName:si().meta({examples:[De.Customer.firstName],description:"First name of the customer"}),lastName:si().meta({examples:[De.Customer.lastName],description:"Last name of the customer"}),email:ui().meta({examples:[De.Customer.email],description:"Email address of the customer"}),phone:si().meta({examples:[De.Customer.phone],description:"Customer phone number in E.164 format for SMS delivery"}).optional()}),cl=Ki({id:si().meta({examples:[De.Event.id],description:"Unique identifier of the event associated with the order"}),name:si().meta({examples:[De.Event.name],description:"Display name of the event"}),slug:si().meta({examples:[De.Event.slug],description:"URL-friendly slug of the event"}),location:si().meta({examples:[De.Event.location.name],description:"Name of the venue or location where the event takes place"}).optional()}),ul=ao(["GATEWAY","SHIPPING","SMS_DELIVERY"]).meta({description:"Type of fee applied to an order"}),ll=Ki({id:si().meta({examples:[De.OrderFee.id],description:"Unique identifier for this order fee"}),createdAt:Ur().readonly().meta({examples:[De.OrderFee.createdAt],description:"Timestamp in ISO 8601 format when this fee was created"}),reason:si().meta({examples:[De.OrderFee.reason],description:"Description explaining why this fee was applied to the order"}),amount:Si().finite("Amount must be a valid number").meta({examples:[De.OrderFee.amount],description:"Fee amount in cents (positive value indicates charge to customer, negative value indicates credit or discount)"}),currency:Oo.meta({examples:[De.OrderFee.currency],description:"Currency code in ISO 4217 format"}),requestId:si().meta({examples:[De.OrderFee.requestId],description:"External payment processor request identifier for tracking this fee"}),kind:ul.optional().meta({examples:["GATEWAY"],description:"Type of fee for categorization and reporting"})}),pl=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:_e(be(new Date,1)),entryEndsAt:_e(be(new Date,2)),publishAt:_e(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:e.location,teamId:e.teamId,promoterId:e.promoterId,tenantId:e.tenantId}),ml=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:_e(be(new Date,1)),entryEndsAt:_e(be(new Date,2)),saleStartsAt:_e(new Date),saleEndsAt:_e(be(new Date,2)),price:{base:1e3,booking:200,currency:"AUD"},tenantId:e.tenantId}),fl=e=>({id:"tkt_01jps5cgsh51kzg7534pzap7gk",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),status:"REDEEMED",scans:[],token:e.token,attendee:{email:vl.Customer.email,firstName:vl.Customer.firstName,lastName:vl.Customer.lastName},event:{id:vl.WrongEvent.id,name:vl.WrongEvent.name,slug:vl.WrongEvent.slug,location:vl.WrongEvent.location,entryStartsAt:vl.WrongEvent.entryStartsAt,entryEndsAt:vl.WrongEvent.entryEndsAt,images:vl.WrongEvent.images},admission:{id:vl.WrongAdmission.id,name:vl.WrongAdmission.name,price:vl.WrongAdmission.price,entryStartsAt:vl.WrongAdmission.entryStartsAt,entryEndsAt:vl.WrongAdmission.entryEndsAt},eventId:vl.WrongEvent.id,customerId:vl.Customer.id,orderId:vl.WrongOrder.id,orderItemId:vl.WrongOrderItem.id,admissionId:vl.WrongOrderItem.admissionId,...e.teamId?{teamId:e.teamId}:{},promoterId:vl.WrongPromoter.id,promoterSlug:vl.WrongPromoter.slug,tenantId:vl.Tenant.id}),hl=e=>{let t=new Date(2020,1,1);return{...De.Event,id:e.id,status:e.status,createdAt:t.toISOString(),updatedAt:t.toISOString(),publishAt:_e(t),entryStartsAt:_e(t),entryEndsAt:_e(new Date(2020,1,2)),slug:e.slug,name:e.name}};let vl;!function(e){let{Tenant:t,Team:n,TeamMember:r,TeamInvite:i,Venue:o,User:a,Session:s,EmailVerification:d,PasswordReset:c,Promoter:u,PromoterMember:l,CurrentSession:p,Event:m,DetailedEvent:f,Location:h,CarouselLocation:v,Section:g,Admission:y,Beneficiary:b,AirwallexBeneficiary:w,Coupon:$,CouponCode:k,AmountCoupon:I,AmountCouponCode:x,Customer:E,Payout:A,Order:T,OrderItem:O,OrderFee:_,Ticket:D}=De;e.Tenant=t,e.Team=n,e.TeamMember=r,e.TeamInvite=i,e.Venue=o,e.User=a,e.Session=s,e.EmailVerification=d,e.PasswordReset=c,e.Promoter=u,e.PromoterMember=l,e.CurrentSession=p,e.Event=m,e.DetailedEvent=f,e.Location=h,e.CarouselLocation=v,e.Section=g,e.Admission=y,e.Beneficiary=b,e.AirwallexBeneficiary=w,e.Coupon=$,e.CouponCode=k,e.AmountCoupon=I,e.AmountCouponCode=x,e.Customer=E,e.Payout=A,e.Order=T,e.OrderItem=O,e.OrderFee=_,e.Ticket=D,e.JayUser={...a,id:"usr_01k5hbpkfje048zccqmqfhjpep",email:"j@1f.io",firstName:"Jay",lastName:"McMullen"};let S=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:S.id,user:S,permissions:["*"],isOwner:!1,tenantId:t.id},e.SystemUser={...a,id:"usr_01jps5cgsgn1ee4txxn0fz81f2",email:"system@session.services",firstName:"Session",lastName:"Services"},e.DeletedAdmission={...y,id:"adm_01jps5cgsg63gr2s1g2d87cqfy",deletedAt:(new Date).toISOString(),deleted:!0},e.SoloAdmission={...y,id:"adm_01jpsf2h7r4z8kmd9x1q3w4vty",name:"Solo Admission",sectionId:void 0},e.DeletedCoupon={...$,id:"cpn_01jps5cgsgzxf6xvmx3dnt9h1p",couponId:"cpn_01jps5cgsgzxf6xvmx3dnt9h1p",deletedAt:(new Date).toISOString(),deleted:!0},e.DeletedCouponCode={...k,id:"cod_01jps5cgsg7ep2gvwzghp1ppv6",deletedAt:(new Date).toISOString(),deleted:!0},e.DeletedSection={...g,id:"sct_01jps5cgsgy7681swwcvf01wxh",deletedAt:(new Date).toISOString(),deleted:!0},e.DeletedEvent={...m,id:"evt_01jps5cgsg8pyd64pc89tcbg9j",slug:"deleted-event",name:"Deleted Event",deletedAt:(new Date).toISOString(),deleted:!0},e.PastEvent=hl({id:"evt_01jqqt1ztw4676fdrr27z7de1c",status:"ENDED",slug:"past-event",name:"Past Event"}),e.CancelledEvent=hl({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:!0},e.DeletedPromoterMember={...l,userId:vl.User.id,user:vl.User,id:"mbr_01jpwzceh3zvab64kwq633q4cc"},e.SmsOrder={...T,id:De.SmsOrder.id,status:"SUCCESSFUL",price:{...T.price,sms:200},customer:{...E,phone:"+61412345678"},offers:[]},e.ExpiredOrder={...T,id:"ord_01jq0xwysx1hzs3wqt2fns4578",token:"c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0",status:"PENDING",createdAt:new Date(2020,1,1).toISOString(),updatedAt:new Date(2020,1,1).toISOString()},e.AbandonedOrder={...T,id:"ord_01jq0xdzwsfjpd329r8gv3txr2",token:"c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0",status:"ABANDONED",createdAt:new Date(2020,1,1).toISOString(),updatedAt:new Date(2020,1,1).toISOString()},e.ProcessingOrder={...T,id:"ord_01jq289n4kcz2tnre24x3v2get",token:"c76e3a5d7105345b58e383e6d90fe7728b75f938b727f0b9ecc5b977e8c3b5d0",status:"PROCESSING",customer:De.Customer,customerId:De.Customer.id},e.FreeAdmission={...y,id:"adm_01jpykjbrdgy8jxmz57hmampww",price:{base:0,booking:0,currency:"AUD"}},e.SoldOutAdmission={...y,id:"adm_01jps5cgse6m3567vzvk69hkrm",name:"First Release",capacity:100,available:0,sold:100,reserved:0},e.UnlimitedAdmission={...y,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:m.id,eventSlug:m.slug,name:"Sold Out Section",capacity:-1,limit:-1,available:-1,sold:200,reserved:0,order:0,location:h,tenantId:t.id};let M=e.SoldOutSection={id:"sct_01jq1rcqbkzqbbakgwy8ptpmvq",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),teamId:n.id,promoterId:u.id,eventId:m.id,eventSlug:m.slug,name:"Sold Out Section",capacity:200,limit:-1,sold:200,available:0,reserved:0,order:0,location:h,tenantId:t.id};e.SoldOutSectionAdmission={...y,sectionId:M.id,id:"adm_01jq1rcjah79628zsafg3k8wyz",name:"First Release",capacity:100,available:100,sold:0,reserved:0,order:0};let P=e.MaxReservedSection={id:"sct_01jq1rcqbkzrkea9ng8e4kngvq",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),teamId:n.id,promoterId:u.id,eventId:m.id,eventSlug:m.slug,name:"Max Reserved Section",capacity:200,limit:-1,sold:0,available:0,reserved:200,location:h,tenantId:t.id,order:0};e.MaxReservedAdmission={...y,id:"adm_01jq1rcqbk5s86df68xvz66fh4",name:"First Release",capacity:100,available:0,sold:0,reserved:100},e.MaxReservedSectionAdmission={...y,sectionId:P.id,id:"adm_01jq1rcqbkhkxq67e9rs8rpngt",name:"First Release",capacity:100,available:100,sold:0,reserved:0},e.SessionsBeneficiary={...b,id:"ben_01jps5cgse5n6mg1ymkew9tsss",promoterId:"pmt_01jqpjksnsen9vprw95et60t2m"},e.AnotherBeneficiary={...b,id:"ben_01jpsbxdthxadywamz2yj4zt75",currency:"USD",name:"Another Bank Account"},e.AnotherSection={...g,id:"sct_01jps5cgsg3spk97pwwp4352z9"},e.AnotherEvent={...m,id:"evt_01jps5cgsgkegpptzf3dsmkbpy",slug:"another-event",name:"Another Event",visibility:"PUBLIC"},e.AnotherCouponCode={...k,name:"ANOTHER",id:"cod_01jps5cgsghcvnjsf5nax5d7z7"},e.PrivateEvent={...m,id:"evt_01jps5cgsgavb91qw967y3d64f",slug:"private-event",name:"Private Event",visibility:"PRIVATE"},e.PendingEvent={...m,id:"evt_01jps5cgsh7mpevnq8pngdqs8q",slug:"pending-event",name:"Pending Event",approval:"PENDING"};let j=e.WrongUser={id:"usr_01jps5cgshwa2sts0fj53pksk0",email:"wrong@session.services",firstName:"Wrong",lastName:"User",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),tenantId:t.id},C=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"},N=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:C.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:N.id,userId:j.id,user:{id:j.id,email:j.email,firstName:j.firstName,lastName:j.lastName},permissions:["*"],tenantId:t.id};let R=e.WrongEvent=pl({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:C.id,promoterId:N.id,tenantId:t.id}),U=e.WrongAdmission=ml({id:"adm_01jps5cgshfggkvmjhfkevy5en",sectionId:(e.WrongSection={id:"sct_01jps5cgsh6asm2d0ghfqq6br2",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),teamId:C.id,promoterId:N.id,eventId:R.id,eventSlug:R.slug,name:"Wrong Admission",capacity:200,limit:-1,available:200,reserved:0,order:0,sold:0,location:h,tenantId:t.id}).id,teamId:C.id,promoterId:N.id,eventId:R.id,eventSlug:R.slug,name:"Wrong Release",tenantId:t.id});e.ExpiredAdmission={...y,id:"adm_01jq6cazzbswynyvg8d0hpx1n5",entryStartsAt:_e(new Date(2020,0,1)),entryEndsAt:_e(be(new Date(2020,0,1),2))};let L=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:C.id,promoterId:N.id,tenantId:t.id},q=e.WrongCoupon={id:"cpn_01jps5cgsh4fy01mvwvzn7xbc9",couponId:"cpn_01jps5cgsh4fy01mvwvzn7xbc9",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),name:"Wrong Price",active:!0,kind:"PERCENT",filter:"TEAM",currency:"AUD",discount:50,uses:0,limit:-1,saleStartsAt:_e(new Date(2025,1,10,3,0,0)),saleEndsAt:void 0,deletedAt:void 0,teamId:C.id,tenantId:t.id},G=e.WrongCouponCode={id:"cod_01jps5cgsh2hevcp6av50kbgyf",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),active:!0,name:"WRONG",tenantId:t.id,couponId:q.id,teamId:C.id},z=e.WrongPayout={id:"pyt_01jps5cgshynssderz1k0fd7z3",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),paidAt:(new Date).toISOString(),structure:"default",items:{tickets:{beneficiaryId:L.id,feeAmount:0,feeCurrency:"AUD",transferAmount:1e3,transferCurrency:"AUD"},sessions:{beneficiaryId:L.id,feeAmount:0,feeCurrency:"AUD",transferAmount:650,transferCurrency:"AUD"}},eventId:R.id,teamId:C.id,promoterId:N.id},F=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:G.id,name:G.name},customer:E,teamId:C.id,promoterId:N.id,eventId:R.id,paymentId:"",payoutIds:[z.id]};e.WrongOrderItem={id:"itm_01jps5cgsh14bjvyywkvt6f37e",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),orderId:F.id,kind:"ADMISSION",quantity:2,admissionId:U.id,price:{base:U.price.base,booking:U.price.booking,discount:0,currency:U.price.currency}},e.WrongOrderFee={id:"fee_01jps5cgshgebpv67sppjfrgb8",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),orderId:F.id,reason:"Gateway Fee",amount:-30,currency:"AUD",requestId:"att_sgpdz4v2ph1axmdmdx8_m8w6qv"},e.WrongTicket=fl({token:"a1b2c3d4e5f6789012345678901234567890123456789012345678901234abcd",teamId:C.id}),e.AnotherTicket={...D,id:"tkt_01jq6v4gmad9m28kzw8g8910jw"},e.ExpiredTicket=fl({token:"e1f2a3b4c5d6789012345678901234567890123456789012345678901234efab"}),e.UpcomingPayout={...A,id:"pyt_01jq9cvaxvatez34jmwn11rzt8",status:"UPCOMING",transfers:[],deductions:[]},e.PayoutNotePayout={...A,id:"pyt_01kr2note0000000000000001",transfers:[],deductions:[]};let B=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"},W=e.MixmagUser={id:"usr_01jps5cgsmh2d4ez6xz2t23fsf",email:"mixmag@session.services",firstName:"Mixmag",lastName:"User",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),tenantId:B.id},Z=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"},Y=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:Z.id,tenantId:"tnt_01jqpj2t2kfvmstt6f6tzkbaf2"},V=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:B.id},H=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:B.id},K=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:{...v,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString()},tracking:{fbId:"485739562847563",gtmId:"GTM-K8WPM5N",tikTokId:"BQCKPH3RC77U8GPMLJ5G"},teamId:H.id,tenantId:B.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:{...v,createdAt:"2025-12-12T08:13:11.004Z",updatedAt:"2025-12-12T08:13:11.171Z"},teamId:H.id,promoterId:K.id,tenantId:B.id},e.MixmagPromoterMember={id:"mbr_01jps5cgsmk2femegmakpgrjdq",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),promoterId:Y.id,promoterSlug:Y.slug,userId:W.id,user:{id:W.id,email:W.email,firstName:W.firstName,lastName:W.lastName},permissions:["*"],tenantId:B.id};let J=e.MixmagEvent=pl({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:Z.id,promoterId:Y.id,tenantId:B.id}),Q=e.MixmagSashEvent=pl({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:Z.id,promoterId:Y.id,tenantId:B.id}),X=e.MixmagAdmission=ml({id:"adm_01jps5cgsmbepdasrtxvh9xa0k",sectionId:(e.MixmagSection={id:"sct_01jps5cgsmhrfxjn18y9bfdqc2",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),teamId:Z.id,promoterId:Y.id,eventId:J.id,eventSlug:J.slug,name:"Mixmag Admission",capacity:200,limit:-1,available:200,reserved:0,order:0,sold:0,location:h,tenantId:B.id}).id,teamId:Z.id,promoterId:Y.id,eventId:J.id,eventSlug:J.slug,name:"Mixmag Release",tenantId:B.id});e.MixmagSashAdmission=ml({id:"adm_01jps5cgsm5c3scpdyf25bhntd",promoterId:V.id,eventId:Q.id,eventSlug:Q.slug,name:"Final Release",tenantId:B.id});let ee=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:Z.id,promoterId:Y.id,tenantId:B.id},te=e.MixmagCoupon={id:"cpn_01kb1vvpa0ecrbpyh2j5mvzdp9",couponId:"cpn_01kb1vvpa0ecrbpyh2j5mvzdp9",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),name:"Mixmag Price",active:!0,kind:"PERCENT",filter:"TEAM",currency:"AUD",discount:50,uses:0,limit:-1,saleStartsAt:_e(new Date(2025,1,10,3,0,0)),saleEndsAt:void 0,deletedAt:void 0,teamId:Z.id,tenantId:B.id},ne=e.MixmagCouponCode={id:"cod_01jps5cgsmc53405wk7t2v8ka7",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),active:!0,name:"MIXMAG",tenantId:B.id,couponId:te.id,teamId:Z.id},re=e.MixmagPayout={id:"pyt_01jps5cgsmx1x39hnrmvvtcets",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),paidAt:(new Date).toISOString(),structure:"default",items:{tickets:{beneficiaryId:ee.id,feeAmount:0,feeCurrency:"AUD",transferAmount:1e3,transferCurrency:"AUD"},sessions:{beneficiaryId:ee.id,feeAmount:0,feeCurrency:"AUD",transferAmount:650,transferCurrency:"AUD"}},eventId:J.id,promoterId:Y.id},ie=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:ne.id,name:ne.name},customer:E,promoterId:Y.id,eventId:J.id,paymentId:"",payoutIds:[re.id]},oe=e.MixmagOrderItem={id:"itm_01jps5cgsmqrkg0btn7khdyjyg",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),orderId:ie.id,kind:"ADMISSION",quantity:2,admissionId:X.id,price:{base:X.price.base,booking:X.price.booking,discount:0,currency:X.price.currency}};e.MixmagOrderFee={id:"fee_01jps5cgsm4jgpnfqxahmwm7he",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),orderId:ie.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:E.email,firstName:E.firstName,lastName:E.lastName},event:{id:J.id,name:J.name,slug:J.slug,location:J.location,entryStartsAt:J.entryStartsAt,entryEndsAt:J.entryEndsAt,images:J.images},admission:{id:X.id,name:X.name,price:X.price,entryStartsAt:X.entryStartsAt,entryEndsAt:X.entryEndsAt},eventId:J.id,customerId:E.id,orderId:ie.id,orderItemId:oe.id,admissionId:X.id,promoterId:Y.id,promoterSlug:Y.slug,tenantId:B.id},e.InactiveCoupon={...$,id:"cpn_01kb1ve66keh4rntfm5z89yskj",couponId:"cpn_01kb1ve66keh4rntfm5z89yskj",name:"Inactive Coupon",active:!1};let ae=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={...o,id:"ven_01kb1ve66heh4rntebeywafbwj",name:"Melbourne Convention Centre",slug:"melbourne-convention-centre",description:"Premier convention and exhibition venue in Melbourne",locationId:ae.id,location:ae,geohash:"r1r0f"};let se=e.MelbournePromoter={...u,id:"pmt_01kb1ve66keh4rntehghtb8j43",name:"Melbourne Promoter",slug:"melbourne-promoter",description:"A promoter based in Melbourne",geohash:"r1r0f",location:ae};e.MelbourneEvent={...m,id:"evt_01kb1ve66keh4rnteypq587crh",name:"Melbourne Event",slug:"melbourne-event",description:"An event in Melbourne for geo testing",promoterId:se.id,geohash:"r1r0f",location:ae},e.PendingVenue={...o,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:{...v,createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),types:[...v.types],image:v.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}}}}(vl||={});const gl=Ki({net:Pi().min(0).meta({examples:[De.OrderItem.price.net],description:"Total amount to pay to promoter in cents.\nCalculated as: total - booking - refunded"}),total:Pi().min(0).meta({examples:[De.OrderItem.price.total],description:"Total amount the customer should pay in cents.\nCalculated as: gross - discount"}),gross:Pi().min(0).meta({examples:[De.OrderItem.price.gross],description:"Total amount before refunds and discounts in cents.\nCalculated as: base + booking"}),base:Pi().min(0).meta({examples:[De.OrderItem.price.base],description:"Total ticket price in cents"}),booking:Pi().min(0).meta({examples:[De.OrderItem.price.booking],description:"Total booking fees in cents (non-refundable)"}),refunded:Pi().max(0).meta({examples:[De.OrderItem.price.refunded],description:"Total amount refunded in cents"}),discount:Pi().max(0).meta({examples:[De.OrderItem.price.discount],description:"Total amount discounted in cents"}),currency:Oo.meta({examples:[De.OrderItem.price.currency],description:"Currency code in ISO 4217 format."})}),yl=ao(["ADMISSION","ADDON"]),bl=Ki({id:si().meta({examples:[De.OrderItem.id],description:"Unique identifier for this order item"}),kind:yl.meta({examples:[De.OrderItem.kind],description:"Type of item: ADMISSION for tickets, ADDON for additional products or services"}),quantity:Pi().min(1).meta({examples:[De.OrderItem.quantity],description:"Number of items purchased (minimum 1)"}),admissionId:si().optional().meta({examples:[De.OrderItem.admissionId],description:"Unique identifier of the admission ticket type, required for ADMISSION items"}),sectionId:si().optional().meta({examples:[De.OrderItem.sectionId],description:"Unique identifier of the venue section for this admission"}),admission:xa.optional().meta({examples:[vl.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:iu.optional().meta({examples:[vl.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:gl.meta({description:"Pricing breakdown for this order item including all fees and discounts"})}),wl=Ki({promoter:Ci(),tenant:Ci()}),$l=ao(["SMS_DELIVERY"]).meta({description:"Type of pre-computed offer available for this order"}),kl=Ki({amount:Pi().min(0).meta({examples:[200],description:"Offer price in the smallest currency unit (e.g. cents)"}),currency:Oo.meta({examples:["AUD"],description:"Three-letter ISO 4217 currency code"})}),Il=Ki({kind:$l.meta({examples:["SMS_DELIVERY"],description:"Discriminator identifying the type of offer"}),label:si().meta({examples:["SMS ticket delivery"],description:"Human-readable label for the offer"}),price:kl.meta({description:"Pre-computed price for this offer"})}),xl=ao(["FREE","AIRWALLEX","STRIPE"]),El=ao(["AMERICAN_EXPRESS","CHINA_UNION_PAY","DINERS_CLUB_INTERNATIONAL","DISCOVER","JCB","MAESTRO","MASTERCARD","UNION_PAY","VISA"]),Al=ao("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(".")),Tl=Ki({method:xl.meta({examples:["FREE"],description:"Payment gateway used to process this order: FREE for no-cost orders, AIRWALLEX or STRIPE for paid orders"}),source:Al.optional().meta({examples:["APPLEPAY","GOOGLEPAY","CARD"],description:"Payment method used by the customer such as ApplePay, GooglePay, or card-based payments"}),brand:El.optional().meta({examples:["VISA","MASTERCARD","AMERICAN_EXPRESS"],description:"Card brand when source is CARD (Visa, Mastercard, American Express, etc.)"}),last4:si().optional().meta({examples:["4242"],description:"Last 4 digits of the card number when source is CARD"}),stripeId:si().optional().meta({examples:["pi_1234567890abcdef"],description:"Stripe payment intent identifier when using Stripe gateway"}),stripeClientSecret:si().optional().meta({examples:["pi_1234567890abcdef_secret_xyz"],description:"Stripe PaymentIntent client secret associated with the order, used to complete the payment flow"}),stripeAccountId:si().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:si().optional().meta({examples:["int_hkdmr7v9rg1j8donpkmv96"],description:"Airwallex payment intent identifier when using Airwallex gateway"}),airwallexClientSecret:si().optional().meta({examples:["eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiaW50ZW50X2lkIjoiaW50X2hrZG1yN3Y5cmcxajhkb25wa212OTYifQ.K8vLx2nPzQHdR5mT1wYcBfJkLmNpS3xG7aE9dH4qZvM"],description:"Airwallex client secret used to authenticate requests for payment initialization"}),airwallexCustomerId:si().optional().meta({examples:["cus_hkdmrhkh8he4j3kvela"],description:"Airwallex customer ID attached to the PaymentIntent for saved cards functionality"}),airwallexCustomerClientSecret:si().optional().meta({examples:["eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiY3VzdG9tZXJfaWQiOiJjdXNfaGtkbXJoa2g4aGU0ajNrdmVsYSJ9.abc123"],description:"Airwallex customer client secret for accessing saved payment methods in the Drop-in Element"})}),Ol=Ki({net:Pi().meta({examples:[De.Order.price.net],description:"Total amount to pay to promoter in cents.\nCalculated as: total + booking + refunded + dispute"}),total:Pi().meta({examples:[De.Order.price.total],description:"Total amount the customer should pay in cents.\nCalculated as: gross + discount"}),gross:Pi().min(0).meta({examples:[De.Order.price.gross],description:"Total amount before refunds and discounts in cents.\nCalculated as: base + booking + shipping"}),base:Pi().min(0).meta({examples:[De.Order.price.base],description:"Total ticket price in cents"}),booking:Pi().min(0).meta({examples:[De.Order.price.booking],description:"Total booking fees in cents (non-refundable)"}),shipping:Pi().min(0).meta({examples:[De.Order.price.shipping],description:"Total shipping amount in cents"}),sms:Pi().min(0).default(0).meta({examples:[De.Order.price.sms],description:"SMS delivery fee in cents (customer-facing price in event currency)"}),refunded:Pi().max(0).meta({examples:[De.Order.price.refunded],description:"Total amount refunded in cents (negative value)"}),discount:Pi().max(0).meta({examples:[De.Order.price.discount],description:"Total amount discounted in cents (negative value)"}),gateway:Pi().max(0).meta({examples:[De.Order.price.gateway],description:"Total absorbed payment gateway fees in cents (negative value)"}),dispute:Pi().max(0).meta({examples:[De.Order.price.dispute],description:"Total non-absorbed payment gateway fees in cents (negative value)"}),currency:Oo.meta({examples:[De.Order.price.currency],description:"Currency code in ISO 4217 format"})}),_l=ao(["PENDING","PROCESSING","SUCCEEDED","FAILED"]),Dl=ao(["CUSTOMER_REQUEST","DUPLICATE","EVENT_CANCELLED","OTHER"]),Sl=ao(["USER","GATEWAY"]),Ml=Ki({orderItemId:si().meta({examples:[De.OrderRefundItem.orderItemId],description:"Identifier of the order item being refunded"}),quantity:Pi().min(1).meta({examples:[De.OrderRefundItem.quantity],description:"Number of units refunded for this item"}),amount:Pi().min(0).meta({examples:[De.OrderRefundItem.amount],description:"Refund amount for this item in cents (base price only, excludes booking fee)"}),ticketIds:Vi(si()).meta({examples:[De.OrderRefundItem.ticketIds],description:"Specific ticket identifiers that were refunded (selected via FIFO)"})}),Pl=Ki({id:si().meta({examples:[De.OrderRefund.id],description:"Unique identifier for this refund"}),idempotencyKey:si().optional().meta({examples:[De.OrderRefund.idempotencyKey],description:"Client-provided key to prevent duplicate refund processing"}),status:_l.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:Ur().optional().meta({examples:[De.OrderRefund.processedAt],description:"Timestamp when the payment gateway confirmed the refund"}),failureReason:si().optional().meta({examples:["Insufficient funds for refund"],description:"Error message from payment gateway if refund failed"}),amount:Pi().min(1).meta({examples:[De.OrderRefund.amount],description:"Total refund amount in cents (excludes booking fee, includes shipping if applicable)"}),shippingRefunded:Pi().min(0).meta({examples:[De.OrderRefund.shippingRefunded],description:"Shipping portion of the refund in cents"}),reason:Dl.meta({examples:["CUSTOMER_REQUEST","DUPLICATE","EVENT_CANCELLED"],description:"Categorized reason for the refund used for analytics"}),note:si().optional().meta({examples:[De.OrderRefund.note],description:"Free-form notes explaining the refund"}),items:Vi(Ml).meta({description:"Line items included in this refund with quantities and amounts"}),ticketsCancelled:Ci().meta({examples:[De.OrderRefund.ticketsCancelled],description:"Whether tickets were cancelled as part of this refund"}),ticketsCancelledCount:Pi().optional().meta({examples:[De.OrderRefund.ticketsCancelledCount],description:"Number of tickets that were cancelled"}),gateway:xl.meta({examples:["STRIPE","AIRWALLEX"],description:"Payment gateway used to process the refund"}),gatewayRefundId:si().optional().meta({examples:[De.OrderRefund.gatewayRefundId],description:"Refund identifier from the payment gateway"}),initiatedBy:Sl.meta({examples:["USER","GATEWAY"],description:"Whether refund was initiated by a user or directly through the payment gateway"}),userId:si().optional().meta({examples:[De.OrderRefund.userId],description:"Identifier of the user who initiated the refund (when initiatedBy is USER)"}),metadata:io(si(),si()).optional().meta({examples:[{supportTicket:"#12345"}],description:"Custom key-value pairs passed through to the payment gateway"}),createdAt:Ur().meta({examples:[De.OrderRefund.createdAt],description:"Timestamp when the refund was created"})}),jl=Ol.extend({exchangeRate:Si().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 Cl(e,t,n={}){return Ki({id:si().meta({examples:t.idExamples,description:t.idDescription}),createdAt:Ur().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:Ci().meta({examples:[!1],description:"Whether this timeline entry can be edited by users"}),pinned:Ci().meta({examples:[!1],description:"Whether this timeline entry is pinned to the top of the timeline"}),description:si().meta({examples:t.descriptionExamples,description:"Human-readable description of what happened in this timeline event"}),author:si().meta({examples:["System"],description:"Name of the user or system that created this timeline entry"}),userId:si().optional().meta({examples:[De.User.id],description:t.userIdDescription??"Identifier of the user who created this timeline entry, when available"}),externalId:si().optional().meta({examples:t.externalIdExamples,description:t.externalIdDescription})})}const Nl=Cl(ao("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(".")),{createdAtExamples:[De.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:[De.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:si().optional().meta({examples:["SUCCESSFUL"],description:"Order status associated with this timeline entry, when applicable."})}),Rl=ao(["PENDING","PROCESSING","SUCCESSFUL","DISPUTED","ABANDONED"]),Ul=Ki({id:Lo.readonly().meta({examples:[De.Order.id],description:"A unique identifier for this order."}),createdAt:Ur().readonly().meta({examples:[De.Order.createdAt],description:"Timestamp in ISO 8601 format when this order was created."}),updatedAt:Ur().readonly().meta({examples:[De.Order.updatedAt],description:"Timestamp in ISO 8601 format when this order was last updated."}),status:Rl.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:Tl.optional().meta({description:"Payment gateway details including method, card brand, and transaction identifiers. Absent for free orders."}),items:Vi(bl).meta({description:"Line items in this order, each with a ticket type, quantity, and price breakdown."}),fees:Vi(ll).meta({description:"Gateway fees recorded against this order from settlement processing (e.g. payment processing fees, dispute fees)."}),price:Ol.meta({description:"Price breakdown in the event currency. This reflects what the customer was charged."}),settlement:jl.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:sl.optional().meta({description:"Coupon code applied to this order for discount calculation."}),customer:dl.optional().meta({description:"Customer who placed this order. Absent for guest checkouts before customer details are captured."}),marketingConsent:wl.optional().meta({description:"Marketing opt-in choices captured during checkout."}),timeline:Vi(Nl).optional().meta({description:"Chronological audit trail of events for this order (payments, refunds, emails, scans)."}),refunds:Vi(Pl).default([]).meta({description:"Refunds processed for this order including pending, succeeded, and failed attempts."}),offers:Vi(Il).default([]).meta({description:"Pre-computed add-on offers available during checkout (e.g. SMS ticket delivery)."}),customerId:zo.optional().meta({examples:[De.Customer.id],description:"Identifier of the customer who placed this order."}),createdBy:dl.optional().meta({description:"Admin user who created this order on behalf of the customer."}),teamId:jo.meta({description:"Team that owns this order."}),promoterId:Go.meta({examples:[De.Promoter.id],description:"Promoter managing this order."}),event:cl.meta({description:"Snapshot of the event at time of purchase (name, slug, location)."}),payoutIds:Vi(Wo.meta({examples:["pay_01HQXYZ"],description:"Payout identifier."})).meta({description:"Payout identifiers for settlements that included this order."}),eventId:Co.meta({examples:[De.Event.id],description:"Identifier of the event this order belongs to."}),checkoutUrl:si().optional().readonly().meta({examples:["https://example.com/checkout/ord_1234567890"],description:"Derived checkout URL where the customer can complete payment for this order."}),returnUrl:si().optional().meta({examples:["https://example.com/event/success"],description:"URL to redirect to after successful payment completion."}),channel:al.optional().meta({description:"Channel metadata captured at order creation to identify origin and redirect context."}),reservedAt:Ur().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."}),Ll=Ki({id:si().meta({examples:[De.Order.id],description:"Unique identifier of the order to add a note to"}),note:si().min(1).max(1e3).meta({examples:["Customer requested special seating arrangements"],description:"Note text content (1-1000 characters)"})}),ql=bl.omit({id:!0,price:!0,kind:!0}).extend({id:si().optional().meta({examples:["itm_01jps5cgsfwyxj0516571eaf17"],description:"Unique identifier for this order item. When omitted, the server assigns an id during processing"})}),Gl=Ki({eventId:si().meta({examples:["evt_01jps5cgsenjrazw6wswmyspa3"],description:"Unique identifier of the event for which to create the order"}),items:Vi(ql).meta({description:"List of items to include in the new order"}),couponCode:si().optional().meta({examples:["TEST50"],description:"Optional coupon code to apply discount to the order"}),returnUrl:si().optional().meta({examples:["https://example.com/event/success"],description:"Optional URL to redirect to after successful payment"}),channel:al.optional().meta({description:"Optional channel metadata for where the order originated (for attribution and redirect routing)."})}),zl=Ki({id:si().meta({examples:[De.Order.id],description:"Unique identifier of the order"}),noteId:si().meta({examples:["tl_1234567890_abc123"],description:"Unique identifier of the timeline note to delete"})}),Fl=ao(["EMAIL","SMS"]).meta({examples:["EMAIL"],description:"Method used to deliver tickets to the customer: EMAIL or SMS"});Ki({id:si().meta({examples:[De.Order.id],description:"Unique identifier of the order to edit"}),signature:$a.meta({description:"HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for editing order items."}),items:Vi(ql).min(1).meta({description:"Updated list of items for the order (replaces existing items). Prices will be recalculated and payment intent updated."})});const Bl=Ki({id:si().meta({examples:[De.Order.id],description:"Unique identifier of the order to retrieve"}),signature:$a.optional().meta({description:"HMAC signature for public order access (16 characters, base64url encoded)"})}),Wl="Either locationId or googlePlaceId must be provided",Zl={locationId:Ro.optional().meta({examples:["loc_01jqpjksnsen9vprw95et60t2m"],description:"ID of an existing location. Either locationId or googlePlaceId must be provided."}),googlePlaceId:si().optional().meta({examples:["ChIJN1t_tDeuEmsRUsoyG83frY4"],description:"Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided."})};function Yl(e){return!(!e.locationId&&!e.googlePlaceId)}const Vl=iu.omit({id:!0,createdAt:!0,updatedAt:!0,order:!0,available:!0,sold:!0,reserved:!0,promoterId:!0,eventSlug:!0,location:!0}).extend({order:Si().optional().meta({examples:[De.Section.order],description:"Display order of the section. Lower numbers appear first in listings. Defaults to 0 if not specified"}),...Zl}).refine(Yl,{message:Wl}).meta({description:"Schema for creating a new section within an event venue. Excludes system-generated fields and fields derived from the event"}),Hl=iu.pick({id:!0}).extend({eventId:si().meta({examples:[De.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"}),Kl=iu.pick({id:!0}).extend({eventId:si().meta({examples:[De.Section.eventId],description:"Unique identifier of the event to verify section belongs to"})}).meta({description:"Schema for retrieving a specific section by ID"}),Jl=Ki({eventId:iu.shape.eventId,query:si().optional().meta({examples:["VIP"],description:"Optional search query. When provided, automatically uses search-backed pagination for full-text search capabilities"}),limit:Eo().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:si().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"}),Ql=_a(iu,"sections"),Xl=Ki({section:iu}),ep=iu.omit({promoterId:!0,createdAt:!0,updatedAt:!0,eventSlug:!0,available:!0,sold:!0,reserved:!0,location:!0,teamId:!0,name:!0,capacity:!0,limit:!0,order:!0,passcode:!0}).extend({id:si().meta({examples:[De.Section.id],description:"Unique identifier of the section to update"}),eventId:si().meta({examples:[De.Section.eventId],description:"Unique identifier of the event to verify section belongs to"}),name:iu.shape.name.optional(),capacity:Xo().optional(),limit:ea().optional(),order:iu.shape.order.optional(),passcode:iu.shape.passcode,locationId:Ro.optional().meta({examples:["loc_01jqpjksnsen9vprw95et60t2m"],description:"ID of an existing location to update to. Either locationId or googlePlaceId can be provided."}),googlePlaceId:si().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."}),tp=bl.extend({admission:xa.optional().meta({description:"Complete admission details for this order item when available"}),section:iu.optional().meta({description:"Complete section details for this order item when applicable"})}),np=ao(["asc","desc"]),rp=Ki({mine:Ci().optional().meta({examples:[!0],description:"When true, returns only the authenticated user's orders. Can be combined with teamId or eventId to further filter results."}),teamId:si().optional().meta({description:"Filter orders by team unique identifier"}),eventId:si().optional().meta({examples:["evt_01jps5cgsenjrazw6wswmyspa3"],description:"Filter orders by event unique identifier"}),status:Rl.optional().meta({examples:["SUCCESSFUL"],description:"Filter orders by payment status"}),query:si().optional().meta({examples:["John Doe"],description:"Optional search query to filter orders by customer details. When provided, search-backed pagination is used."}),includeEventTerms:Ci().optional().meta({examples:[!0],description:"When true for authenticated user-owned order searches, also matches event name, slug, and location unless eventId is already provided."}),direction:np.optional().meta({examples:["asc","desc"],description:"Sort direction for order lists. Orders are always sorted by creation time. Defaults to `desc` when omitted."}),from:si().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:si().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:oa("orders"),cursor:si().optional().meta({examples:["eyJpZCI6Im9yZF8wMWpwczVjZ3NmZ3ZlNWI1ZzI2NjZreXJ5aCJ9"],description:"Pagination cursor for continuing to fetch subsequent results"})}),ip=_a(Ul,"orders"),op=Ki({items:Vi(tp).meta({description:"List of order items with complete pricing and admission details"}),price:Ol.meta({description:"Total pricing breakdown for the entire order quote"}),couponCode:xc.optional().meta({description:"Applied coupon code details if a discount was used in this quote"})}),ap=Ki({eventId:si().meta({examples:["evt_01jps5cgsenjrazw6wswmyspa3"],description:"Unique identifier of the event for which to generate a price quote"}),items:Vi(ql).meta({description:"List of items to include in the price quote calculation"}),couponCode:si().optional().meta({examples:["TEST50"],description:"Optional coupon code to apply discount to the quote"})}),sp=Ki({quote:op}),dp=Ki({orderItemId:si().meta({examples:[De.OrderRefundItem.orderItemId],description:"Identifier of the order item to refund"}),quantity:Pi().min(1).meta({examples:[De.OrderRefundItem.quantity],description:"Number of units to refund for this item"})}),cp=Ki({id:Lo.meta({examples:[De.Order.id],description:"Identifier of the order to refund"}),fullRefund:Ci().default(!1).meta({examples:[!1],description:"When true, refunds all remaining refundable items. Mutually exclusive with items."}),items:Vi(dp).optional().meta({description:"Specific items and quantities to refund. Required if fullRefund is false."}),shippingAmount:Pi().min(0).optional().meta({examples:[500],description:"Amount of shipping to refund in cents. Cannot exceed remaining refundable shipping."}),cancelTickets:Ci().default(!0).meta({examples:[!0],description:"Whether to cancel tickets associated with refunded items. Defaults to true."}),notify:Ci().default(!0).meta({examples:[!0],description:"Whether to send a refund confirmation email to the customer. Defaults to true."}),reason:Dl.meta({examples:["CUSTOMER_REQUEST","DUPLICATE","EVENT_CANCELLED"],description:"Categorized reason for the refund"}),note:si().optional().meta({examples:["Customer requested refund due to schedule conflict"],description:"Free-form notes explaining the refund"}),idempotencyKey:si().optional().meta({examples:["refund_12345_customer_request"],description:"Client-provided key to prevent duplicate refund processing. Recommended for programmatic refunds."}),metadata:io(si(),si()).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"}),up=Ki({refund:Pl}),lp=Ki({id:si().meta({examples:[De.Order.id],description:"Order ID to resend tickets for"}),email:si().email().optional().meta({examples:["customer@example.com"],description:"Email address to send tickets to. If not provided, uses order.customer.email"})}),pp=Ki({id:si().meta({examples:[De.Order.id],description:"Unique identifier of the order to reserve inventory for"}),signature:$a.meta({description:"HMAC signature for customer access during checkout (16 characters, base64url encoded)."})}),mp=Ki({order:Ul});var fp={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 hp(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var o=Number(n[i]),a=Number(r[i]);if(o>a)return 1;if(a>o)return-1;if(!isNaN(o)&&isNaN(a))return 1;if(isNaN(o)&&!isNaN(a))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 vp={}.constructor;function gp(e){return null!=e&&e.constructor===vp}function yp(e){return yp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yp(e)}function bp(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function wp(e,t){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$p(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $p(e){var t=function(e){if("object"!=yp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yp(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yp(t)?t:t+""}var kp=" ext. ",Ip=/^\d+$/,xp=wp((function e(t){bp(this,e),Dp(t),this.metadata=t,Pp.call(this,t)}),[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{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 void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{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&&Ip.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw Error(`Unknown country: ${e}`);this.numberingPlan=new Ep(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw Error(`Unknown calling code: ${t}`);this.numberingPlan=new Ep(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t)return 1===t.length&&3===t[0].length?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&&1===r.length&&"001"===r[0])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 void 0!==this.numberingPlan}}]),Ep=wp((function e(t,n){bp(this,e),this.globalMetadataObject=n,this.metadata=t,Pp.call(this,n.metadata)}),[{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 Ap(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()&&0===this.types().length||!this.types())}},{key:"type",value:function(e){if(this.hasTypes()&&_p(this.types(),e))return new Op(_p(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?kp:this.metadata[13]||kp}}]),Ap=wp((function e(t,n){bp(this,e),this._format=t,this.metadata=n}),[{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()||Tp.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),Tp=/^\(?\$1\)?$/,Op=wp((function e(t,n){bp(this,e),this.type=t,this.metadata=n}),[{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 _p(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 Dp(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!gp(e)||!gp(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 ${gp(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Sp(e)+": "+e}.`)}var Sp=function(e){return yp(e)};function Mp(e,t){if((t=new xp(t)).hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw Error(`Unknown country: ${e}`)}function Pp(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===hp(t,"1.2.0")?this.v2=!0:-1===hp(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}function jp(e,t,n){return function(e,t,n,r){t&&(r=new xp(r.metadata)).selectNumberingPlan(t);var i=r.type(void 0),o=i&&i.possibleLengths()||r.possibleLengths();if(!o)return"IS_POSSIBLE";var a=e.length,s=o[0];return s===a?"IS_POSSIBLE":s>a?"TOO_SHORT":o[o.length-1]<a?"TOO_LONG":o.indexOf(a,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}(e,t,0,n)}function Cp(e,t,n){return"IS_POSSIBLE"===jp(e,t,n)}function Np(e,t){return e||="",RegExp("^(?:"+t+")$").test(e)}function Rp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Up=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Lp(e,t,n){if(t||={},e.country||e.countryCallingCode){(n=new xp(n)).selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(Np(r,n.nationalNumberPattern())){if(qp(r,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()||!n.type("MOBILE")||qp(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var i,o=function(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=function(e,t){if(e){if("string"==typeof e)return Rp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rp(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(Up);!(i=o()).done;){var a=i.value;if(qp(r,a,n))return a}}}}function qp(e,t,n){return!(!(t=n.type(t))||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&Np(e,t.pattern())}var Gp="0-90-9٠-٩۰-۹",zp="-‐-―−ー-//.. ()()[]\\[\\]~⁓∼~",Fp=RegExp("(["+Gp+"])");function Bp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Wp(e,t){var n=t.nationalNumber,r=t.metadata,i=r.getCountryCodesForCallingCode(e);if(i)return 1===i.length?i[0]:function(e,t){var n=t.countries,r=t.metadata;r=new xp(r);for(var i,o=function(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=function(e,t){if(e){if("string"==typeof e)return Bp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bp(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(i=o()).done;){var a=i.value;if(r.selectNumberingPlan(a),r.leadingDigits()){if(e&&0===e.search(r.leadingDigits()))return a}else if(Lp({phone:e,country:a},void 0,r.metadata))return a}}(n,{countries:i,metadata:r.metadata})}function Zp(e,t,n){var r=function(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,o,a,s=r.length-1,d=s>0&&r[s];if(t.nationalPrefixTransformRule()&&d?(i=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(o=r[1])):(i=e.slice(r[0].length),d&&(o=r[1])),d){var c=e.indexOf(r[1]);e.slice(0,c)===t.numberingPlan.nationalPrefix()&&(a=t.numberingPlan.nationalPrefix())}else a=r[0];return{nationalNumber:i,nationalPrefix:a,carrierCode:o}}}return{nationalNumber:e}}(e,n),i=r.carrierCode,o=r.nationalNumber;return o===e||function(e,t,n){return!(Np(e,n.nationalNumberPattern())&&!Np(t,n.nationalNumberPattern()))}(e,o,n)&&(!n.numberingPlan.possibleLengths()||(t||=Wp(n.numberingPlan.callingCode(),{nationalNumber:o,metadata:n}),function(e,t,n){switch(jp(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(o,t,n)))?{nationalNumber:o,carrierCode:i}:{nationalNumber:e}}function Yp(e,t,n,r,i){if(!e)return{};var o;if("+"!==e[0]){var a=function(e,t,n,r){if(t){var i=new xp(r);i.selectNumberingPlan(t,n);var o=new RegExp(i.IDDPrefix());if(0===e.search(o)){var a=(e=e.slice(e.match(o)[0].length)).match(Fp);if(!(a&&null!=a[1]&&a[1].length>0&&"0"===a[1]))return e}}}(e,n,r,i);if(!a||a===e){if(n||r){var s=function(e,t,n,r,i){var o=n?Mp(n,i):r;if(0===e.indexOf(o)){(i=new xp(i)).selectNumberingPlan(n,o);var a=e.slice(o.length),s=Zp(a,t,i).nationalNumber,d=Zp(e,t,i).nationalNumber;if(!Np(d,i.nationalNumberPattern())&&Np(s,i.nationalNumberPattern())||"TOO_LONG"===jp(d,t,i))return{countryCallingCode:o,number:a}}return{number:e}}(e,t,n,r,i),d=s.countryCallingCode;if(d)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:d,number:s.number}}return{number:e}}o=!0,e="+"+a}if("0"===e[1])return{};i=new xp(i);for(var c=2;c-1<=3&&c<=e.length;){var u=e.slice(1,c);if(i.hasCallingCode(u))return i.selectNumberingPlan(u),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:u,number:e.slice(c)};c++}return{}}var Vp=/(\$\d)/;var Hp=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/,Kp=function(e){return`([${Gp}]{1,${e}})`};function Jp(){var e="[ \\t,]*",t="[:\\..]?[ \\t,-]*",n="#?",r="[ \\t]*";return";ext="+Kp("20")+"|"+e+"(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)"+t+Kp("20")+"#?|"+e+"(?:[xx##~~]|int|int)"+t+Kp("9")+"#?|[- ]+"+Kp("6")+"#|"+r+"(?:,{2}|;)"+t+Kp("15")+"#?|"+r+"(?:,)+"+t+Kp("9")+n}var Qp="["+Gp+"]{2}",Xp="[++]{0,1}(?:["+zp+"]*["+Gp+"]){3,}["+zp+Gp+"]*",em=RegExp("^[++]{0,1}(?:["+zp+"]*["+Gp+"]){1,2}$","i"),tm=Xp+"(?:"+Jp()+")?",nm=RegExp("^"+Qp+"$|^"+tm+"$","i"),rm={formatExtension:function(e,t,n){return`${e}${n.ext()}${t}`}};function im(e,t,n,r,i){var o=function(e,t){return function(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}(e,(function(e){if(e.leadingDigitsPatterns().length>0){var n=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(0!==t.search(n))return!1}return Np(t,e.pattern())}))}(r.formats(),e);return o?function(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix,o=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(Vp,t.nationalPrefixFormattingRule()):t.format());return r?function(e){return e.replace(RegExp(`[${zp}]+`,"g")," ").trim()}(o):o}(e,o,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!(o.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&!1===i.nationalPrefix)}):e}function om(e,t,n,r){return t?r(e,t,n):e}function am(e){return am="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},am(e)}function sm(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 dm(e){for(var t=1;t<arguments.length;t++){var n=null==arguments[t]?{}:arguments[t];t%2?sm(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cm(e,t,n){return(t=um(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function um(e){var t=function(e){if("object"!=am(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=am(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==am(t)?t:t+""}var lm=function(e,t){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,um(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n,r){if(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),!t)throw TypeError("First argument is required");if("string"!=typeof t)throw TypeError("First argument must be a string");if("+"===t[0]&&!n)throw TypeError("`metadata` argument not passed");if(gp(n)&&gp(n.countries)){r=n;var i=t;if(!mm.test(i))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var o=Yp(i,void 0,void 0,void 0,r);if(t=o.countryCallingCode,!(n=o.number))throw Error("Invalid `number` argument passed: too short")}if(!n)throw TypeError("`nationalNumber` argument is required");if("string"!=typeof n)throw TypeError("`nationalNumber` argument must be a string");Dp(r);var a=function(e,t){var n,r,i=new xp(t);return pm(e)?(i.selectNumberingPlan(n=e),r=i.countryCallingCode()):r=e,{country:n,countryCallingCode:r}}(t,r),s=a.countryCallingCode;this.country=a.country,this.countryCallingCode=s,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}),[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:function(e,t,n){var r=new xp(n).getCountryCodesForCallingCode(e);return r?r.filter((function(e){return function(e,t,n){var r=new xp(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}(t,e,n)})):[]}(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function(e,t,n){if(void 0===t&&(t={}),n=new xp(n),t.v2){if(!e.countryCallingCode)throw Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;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 Cp(e.phone||e.nationalNumber,e.country,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return function(e,t,n){return t||={},(n=new xp(n)).selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?void 0!==Lp(e,t,n.metadata):Np(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new xp(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return Lp(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return function(e,t,n,r){if(n=n?function(){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]}({},rm,n):rm,r=new xp(r),e.country&&"001"!==e.country){if(!r.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)return e.phone||"";r.selectNumberingPlan(e.countryCallingCode)}var i=r.countryCallingCode(),o=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return o?om(im(o,0,"NATIONAL",r,n),e.ext,r,n.formatExtension):"";case"INTERNATIONAL":return o?om(`+${i} ${im(o,0,"INTERNATIONAL",r,n)}`,e.ext,r,n.formatExtension):`+${i}`;case"E.164":return`+${i}${o}`;case"RFC3966":return function(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:""}`}({number:`+${i}${o}`,ext:e.ext});case"IDD":if(!n.fromCountry)return;var a=function(e,t,n,r,i){if(Mp(r,i.metadata)===n){var o=im(e,0,"NATIONAL",i);return"1"===n?n+" "+o:o}var a=function(e,t,n){var r=new xp(n);return r.selectNumberingPlan(e,void 0),r.defaultIDDPrefix()?r.defaultIDDPrefix():Hp.test(r.IDDPrefix())?r.IDDPrefix():void 0}(r,0,i.metadata);if(a)return`${a} ${n} ${im(e,0,"INTERNATIONAL",i)}`}(o,0,i,n.fromCountry,r);return a?om(a,e.ext,r,n.formatExtension):void 0;default:throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`)}}(this,e,t?dm(dm({},t),{},{v2:!0}):{v2:!0},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)}}]),pm=function(e){return/^[A-Z]{2}$/.test(e)},mm=/^\+\d+$/;function fm(e){return fm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fm(e)}function hm(e){var t="function"==typeof Map?new Map:void 0;return hm=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch{return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(vm())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&gm(i,n.prototype),i}(e,arguments,ym(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),gm(n,e)},hm(e)}function vm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(vm=function(){return!!e})()}function gm(e,t){return gm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gm(e,t)}function ym(e){return ym=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ym(e)}var bm=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),n=function(e,t,n){return t=ym(t),function(e,t){if(t&&("object"==fm(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,vm()?Reflect.construct(t,n||[],ym(e).constructor):t.apply(e,n))}(this,e,[t]),Object.setPrototypeOf(n,e.prototype),n.name=n.constructor.name,n}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gm(e,t)}(e,hm(Error)),function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(e)}(),wm=RegExp("(?:"+Jp()+")$","i"),$m={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 km(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Im(e){for(var t,n="",r=function(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=function(e,t){if(e){if("string"==typeof e)return km(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?km(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.split(""));!(t=r()).done;)n+=xm(t.value,n)||"";return n}function xm(e,t){if("+"===e){if(t)return;return"+"}return function(e){return $m[e]}(e)}var Em="(["+Gp+"]|[\\-\\.\\(\\)]?)",Am=new RegExp("^\\+"+Em+"*["+Gp+"]"+Em+"*$","g"),Tm=new RegExp("^(["+Gp+"]+((\\-)*["+Gp+"])*\\.)*[a-zA-Z]+((\\-)*["+Gp+"])*\\.?$","g"),Om=";phone-context=";var _m=RegExp("[++"+Gp+"]"),Dm=RegExp("[^"+Gp+"#]+$");function Sm(e,t,n){if(t||={},n=new xp(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new bm("INVALID_COUNTRY"):Error(`Unknown country: ${t.defaultCountry}`);var r=function(e,t,n){var r=function(e,t){var n,r=t.extractFormattedPhoneNumber,i=function(e){var t=e.indexOf(Om);if(t<0)return null;var n=t+15;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}(e);if(!function(e){return null===e||0!==e.length&&(Am.test(e)||Tm.test(e))}(i))throw new bm("NOT_A_NUMBER");if(null===i)n=r(e)||"";else{n="","+"===i.charAt(0)&&(n+=i);var o=e.indexOf("tel:"),a=o>=0?o+4:0,s=e.indexOf(Om);n+=e.substring(a,s)}var d=n.indexOf(";isub=");if(d>0&&(n=n.substring(0,d)),""!==n)return n}(e,{extractFormattedPhoneNumber:function(e){return function(e,t,n){if(e){if(e.length>250){if(n)throw new bm("TOO_LONG");return}if(!1===t)return e;var r=e.search(_m);if(!(r<0))return e.slice(r).replace(Dm,"")}}(e,n,t)}});if(!r)return{};if(!function(e){return e.length>=2&&nm.test(e)}(r))return function(e){return em.test(e)}(r)?{error:"TOO_SHORT"}:{};var i=function(e){var t=e.search(wm);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(wm),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}(r);return i.ext?i:{number:r}}(e,t.v2,t.extract),i=r.number,o=r.ext;if(!i){if(t.v2)throw new bm("TOO_SHORT"===r.error?"TOO_SHORT":"NOT_A_NUMBER");return{}}var a=function(e,t,n,r){var i,o=Yp(Im(e),void 0,t,n,r.metadata),a=o.countryCallingCodeSource,s=o.countryCallingCode,d=o.number;if(s)r.selectNumberingPlan(s);else{if(!d||!t&&!n)return{};r.selectNumberingPlan(t,n),t&&(i=t),s=n||Mp(t,r.metadata)}if(!d)return{countryCallingCodeSource:a,countryCallingCode:s};var c=Zp(Im(d),i,r),u=c.nationalNumber,l=c.carrierCode,p=Wp(s,{nationalNumber:u,metadata:r});return p&&(i=p,"001"===p||r.selectNumberingPlan(i)),{country:i,countryCallingCode:s,countryCallingCodeSource:a,nationalNumber:u,carrierCode:l}}(i,t.defaultCountry,t.defaultCallingCode,n),s=a.country,d=a.nationalNumber,c=a.countryCallingCode,u=a.countryCallingCodeSource,l=a.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new bm("INVALID_COUNTRY");return{}}if(!d||d.length<2){if(t.v2)throw new bm("TOO_SHORT");return{}}if(d.length>17){if(t.v2)throw new bm("TOO_LONG");return{}}if(t.v2){var p=new lm(c,d,n.metadata);return s&&(p.country=s),l&&(p.carrierCode=l),o&&(p.ext=o),p.__countryCallingCodeSource=u,p}var m=!!(t.extended?n.hasSelectedNumberingPlan():s)&&Np(d,n.nationalNumberPattern());return t.extended?{country:s,countryCallingCode:c,carrierCode:l,valid:m,possible:!!m||!(!0!==t.extended||!n.possibleLengths()||!Cp(d,s,n)),phone:d,ext:o}:m?function(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}(s,d,o):{}}function Mm(e){return Mm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mm(e)}function Pm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jm(e){for(var t=1;t<arguments.length;t++){var n=null==arguments[t]?{}:arguments[t];t%2?Pm(Object(n),!0).forEach((function(t){Cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cm(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Mm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Mm(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Mm(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nm(e){return Nm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nm(e)}function Rm(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 Um(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Nm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Nm(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Nm(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qm(e){var t,n,r,i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],d=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(d=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);d=!0);}catch(e){c=!0,i=e}finally{try{if(!d&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Lm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lm(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Array.prototype.slice.call(e),4),o=i[0],a=i[1],s=i[2],d=i[3];if("string"!=typeof o)throw TypeError("A text for parsing must be a string.");if(t=o,a&&"string"!=typeof a){if(!gp(a))throw Error(`Invalid second argument: ${a}`);s?(n=a,r=s):r=a}else d?(n=s,r=d):(n=void 0,r=s),a&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null==arguments[t]?{}:arguments[t];t%2?Rm(Object(n),!0).forEach((function(t){Um(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({defaultCountry:a},n));return{text:t,options:n,metadata:r}}function Gm(e){return Gm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gm(e)}function zm(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 Fm(e){for(var t=1;t<arguments.length;t++){var n=null==arguments[t]?{}:arguments[t];t%2?zm(Object(n),!0).forEach((function(t){Bm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bm(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Gm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Gm(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Gm(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wm(e){return Wm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wm(e)}function Zm(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 Ym(e){for(var t=1;t<arguments.length;t++){var n=null==arguments[t]?{}:arguments[t];t%2?Zm(Object(n),!0).forEach((function(t){Vm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vm(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Wm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Wm(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Wm(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hm(){var e=qm(arguments),t=e.options,n=e.metadata,r=function(e,t,n){t&&t.defaultCountry&&!function(e,t){return t.countries.hasOwnProperty(e)}(t.defaultCountry,n)&&(t=Fm(Fm({},t),{},{defaultCountry:void 0}));try{return function(e,t,n){return Sm(e,jm(jm({},t),{},{v2:!0}),n)}(e,t,n)}catch(e){if(!(e instanceof bm))throw e}}(e.text,t=Ym(Ym({},t),{},{extract:!1}),n);return r&&r.isValid()||!1}const Km=Gl.omit({eventId:!0,channel:!0}).partial().extend({id:si().meta({examples:[De.Order.id],description:"Unique identifier of the order to update"}),signature:$a.meta({description:"HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for all order updates."}),items:Vi(ql).min(1).optional().meta({description:"Updated list of items for the order. Requires signature. Prices will be recalculated and payment intent updated."}),customer:Ki({firstName:si().meta({examples:[De.Customer.firstName],description:"Updated first name of the customer"}).optional(),lastName:si().meta({examples:[De.Customer.lastName],description:"Updated last name of the customer"}).optional(),email:ui().meta({examples:[De.Customer.email],description:"Updated email address of the customer"}).optional(),phone:si().refine((e=>!e||function(){return function(e,t){var n=Array.prototype.slice.call(t);return n.push(fp),e.apply(this,n)}(Hm,arguments)}(e)),{message:"Phone must be in E.164 format (e.g., +61412345678)"}).meta({examples:[De.Customer.phone],description:"Updated phone number in E.164 format (e.g., +61412345678)"}).optional(),deliveryMethod:Fl.optional()}).optional().meta({description:"Updated customer information for the order. All fields are optional for partial updates."}),marketingConsent:wl.optional().meta({description:"Marketing opt-in choices captured during checkout."})}),Jm=Ki({id:si().meta({examples:[De.Order.id],description:"Unique identifier of the order"}),noteId:si().meta({examples:["tl_1234567890_abc123"],description:"Unique identifier of the timeline note to update"}),note:si().min(1).max(1e3).meta({examples:["Updated: Customer confirmed special seating arrangements"],description:"Updated note text content (1-1000 characters)"})});var Qm={create:fe.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(Ll.strict()).output(mp),update:fe.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(Jm.strict()).output(mp),remove:fe.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(zl.strict()).output(Bi())};const Xm=fe.route({method:"GET",path:"/orders/{id}",summary:"Get order by ID",tags:["Orders"]}).input(Bl.strict()).output(mp),ef=fe.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(rp.strict()).output(ip),tf=fe.route({method:"POST",path:"/orders/quote",summary:"Create order quote",tags:["Orders"]}).input(ap.strict()).output(sp);var nf={get:Xm,list:ef,create:fe.route({method:"POST",path:"/orders",summary:"Create a new order",tags:["Orders"]}).input(Gl.strict()).output(mp),update:fe.route({method:"PUT",path:"/orders/{id}",summary:"Update an order",tags:["Orders"]}).input(Km.strict()).output(mp),reserve:fe.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(pp.strict()).output(mp),quote:tf,resend:fe.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(lp.strict()).output(mp),refund:fe.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(cp.strict()).output(up),note:Qm};Ki({success:Ci().meta({description:"Whether the payout approval was successful"}),message:si().optional().meta({description:"Optional message about the approval result"}),payoutId:si().meta({description:"ID of the payout that was approved"})});const rf=Ki({payoutId:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout for which to retrieve the detailed breakdown of orders and financial calculations."})}),of=Ki({id:si().readonly().meta({examples:[De.PayoutDeduction.id],description:"Unique identifier for this deduction record."}),createdAt:Ur().readonly().meta({examples:[De.PayoutDeduction.createdAt],description:"Timestamp in ISO 8601 format when this deduction was created."}),updatedAt:Ur().readonly().meta({examples:[De.PayoutDeduction.updatedAt],description:"Timestamp in ISO 8601 format when this deduction was last updated."}),amount:Pi().min(0).meta({examples:[De.PayoutDeduction.amount],description:"Deduction amount in cents. Positive values represent money being deducted from the payout."}),currency:Oo.meta({examples:[De.PayoutDeduction.currency],description:"Currency code in ISO 4217 format for the deduction amount."}),description:si().meta({examples:[De.PayoutDeduction.description],description:"Human-readable description explaining the reason for this deduction (e.g., 'Minimum bar spend not met', 'Venue damage charge')."}),gateway:si().meta({examples:[De.PayoutDeduction.gateway],description:"Payment gateway identifier where this deduction was processed."}),gatewayId:si().meta({examples:[De.PayoutDeduction.gatewayId],description:"Unique identifier assigned by the payment gateway for this deduction transaction."}),beneficiary:si().meta({examples:[De.PayoutDeduction.beneficiary],description:"Human-readable name of the beneficiary account from which this deduction was taken."}),beneficiaryId:si().meta({examples:[De.PayoutDeduction.beneficiaryId],description:"Unique identifier of the beneficiary account from which this deduction was taken."}),transferId:si().optional().meta({description:"Optional reference to a transfer record when this deduction results in money being moved to a future payout."}),transferPayoutId:si().optional().meta({description:"Optional reference to a future payout where the deducted amount will be applied."})}),af=Ki({id:si().meta({examples:[De.Event.id],description:"Unique identifier for the event associated with this payout."}),name:si().meta({examples:[De.Event.name],description:"Human-readable name of the event."}),slug:si().meta({examples:[De.Event.slug],description:"URL-friendly slug identifier for the event."}),location:si().optional().meta({examples:[De.Event.location.name],description:"Optional human-readable location name where the event takes place."})}),sf=Ki({net:Pi().meta({examples:[De.Payout.price.net],description:"Total amount to pay to promoter.\nCalculated as: total + booking + refunded + dispute + deductions"}),total:Pi().meta({examples:[De.Payout.price.total],description:"Total amount the collected in ticket revenue.\nCalculated as: gross + discount"}),gross:Pi().min(0).meta({examples:[De.Payout.price.gross],description:"Total amount before refunds, disputes, deductions and discounts.\nCalculated as: base + booking + shipping"}),base:Pi().min(0).meta({examples:[De.Payout.price.base],description:"Total value of tickets."}),booking:Pi().min(0).meta({examples:[De.Payout.price.booking],description:"Total value of booking fees (non-refundable)."}),shipping:Pi().min(0).meta({examples:[De.Payout.price.shipping],description:"Total value of shipping."}),sms:Pi().min(0).default(0).meta({examples:[De.Payout.price.sms],description:"Total SMS delivery fees collected in cents (owed to Session Services, not the event organiser)."}),refunded:Pi().max(0).meta({examples:[De.Payout.price.refunded],description:"Total value of refunds (negative value)."}),discount:Pi().max(0).meta({examples:[De.Payout.price.discount],description:"Total value of discounts (negative value)."}),gateway:Pi().max(0).meta({examples:[De.Payout.price.gateway],description:"Total value of absorbed payment gateway fees (negative value)."}),dispute:Pi().max(0).meta({examples:[De.Payout.price.dispute],description:"Total value of non-absorbed payment gateway fees (negative value)."}),deductions:Pi().max(0).meta({examples:[De.Payout.price.deductions],description:"Total value of deductions for when money is owed (negative value)."}),currency:Oo.meta({examples:[De.Payout.price.currency],description:"Currency code in ISO 4217 format."})}),df=Cl(ao(["CREATED","APPROVED","REJECTED","PROCESSING","PAID","FAILED","CANCELLED","NOTE"]),{createdAtExamples:[De.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"]}),cf=Ki({id:si().meta({examples:[De.PayoutTransfer.id],description:"Unique identifier for this transfer record."}),createdAt:Ur().meta({examples:[De.PayoutTransfer.createdAt],description:"Timestamp in ISO 8601 format when this transfer was created."}),kind:ao(["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:Pi().min(0).meta({examples:[De.PayoutTransfer.amount],description:"Transfer amount in cents. Positive values represent money being transferred to the beneficiary."}),currency:Oo.meta({examples:[De.PayoutTransfer.currency],description:"Currency code in ISO 4217 format for the transfer amount."}),fee:Pi().min(0).meta({examples:[De.PayoutTransfer.fee],description:"Gateway processing fee for this transfer in cents. This fee is deducted from the transfer amount."}),feeCurrency:Oo.meta({examples:[De.PayoutTransfer.feeCurrency],description:"Currency code in ISO 4217 format for the gateway fee."}),reference:si().meta({examples:[De.PayoutTransfer.reference],description:"External reference identifier for tracking this transfer with the payment gateway."}),gateway:ao(["AIRWALLEX","STRIPE"]).meta({examples:["AIRWALLEX"],description:"Payment gateway used to process this transfer."}),gatewayId:si().meta({examples:[De.PayoutTransfer.gatewayId],description:"Unique identifier assigned by the payment gateway for this transfer."}),beneficiary:si().meta({examples:[De.PayoutTransfer.beneficiary],description:"Human-readable name of the beneficiary receiving this transfer."}),beneficiaryId:si().meta({examples:[De.PayoutTransfer.beneficiaryId],description:"Unique identifier of the beneficiary account receiving this transfer."}),status:si().optional().meta({examples:["SCHEDULED"],description:"Transfer status from the payment gateway (e.g. SCHEDULED, IN_PROGRESS, COMPLETED)."}),settlementAmount:Pi().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:Oo.optional().meta({examples:["USD"],description:"Currency code in ISO 4217 format for the settlement amount. Present only for cross-currency transfers."}),deductionId:si().optional().meta({description:"Optional reference to a deduction record when this transfer represents money being held back from a previous negative payout."}),deductionPayoutId:si().optional().meta({description:"Optional reference to the payout that originated this transfer when it represents an outstanding balance being carried forward."})}),uf=ao(["UPCOMING","FAILED","PROCESSING","PAID","CANCELLED"]),lf=ao(["AIRWALLEX","STRIPE","MANUAL"]),pf=ao(["DAILY","WEEKLY","AFTER_EVENT","ON_DEMAND"]),mf=Ki({id:si().readonly().meta({examples:[De.Payout.id],description:"A unique identifier for this payout."}),createdAt:Ur().readonly().meta({examples:[De.Payout.createdAt],description:"Timestamp in ISO 8601 format when this payout was created."}),updatedAt:Ur().readonly().meta({examples:[De.Payout.updatedAt],description:"Timestamp in ISO 8601 format when this payout was last updated."}),paidAt:Ur().optional().meta({examples:[De.Payout.paidAt],description:"Timestamp in ISO 8601 format when this payout was completed."}),dueAt:Ur().optional().meta({examples:[De.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:uf.meta({examples:["PAID"],description:"Current payment status of this payout."}),method:lf.meta({examples:["MANUAL"],description:"The payout channel used for disbursing funds."}),approval:To.meta({examples:["APPROVED"],description:"Approval status for this payout."}),frequency:pf.default("AFTER_EVENT").meta({examples:["AFTER_EVENT"],description:"Schedule on which this payout is generated."}),structure:si().meta({examples:[De.Payout.structure],description:"Data structure defining how funds are allocated in this payout."}),transfers:Vi(cf).meta({description:"List of individual transfer records included in this payout."}),deductions:Vi(of).meta({description:"List of deductions applied before calculating the payout total."}),price:sf.meta({description:"Summary of amounts for transfers and deductions in this payout."}),event:af.meta({description:"Information about the event associated with this payout."}),timeline:Vi(df).optional().meta({description:"Chronological list of status changes and notes for this payout."}),eventId:si().meta({examples:[De.Payout.eventId],description:"Identifier of the event for which this payout was generated."}),teamId:si().meta({description:"Team receiving this payout. BREAKING CHANGE: Replaced promoterId/promoterSlug."})}).meta({description:"payout"});Ki({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout to approve for processing."})}),Ki({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout to reject."}),reason:si().optional().meta({examples:["Insufficient funds in account"],description:"Optional reason for rejecting the payout. This will be recorded for audit purposes."})}),Ki({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout to process and initiate transfers."})}),Ki({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout to retry transfer processing for."})});const ff=Ki({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout to add a note to"}),note:si().trim().min(1).max(1e3).meta({examples:["Transfer confirmed via bank statement"],description:"Note text content (1-1000 characters)"})}),hf=Ki({name:si(),gateway:ao(["AIRWALLEX","STRIPE","FREE"]),message:si(),eventIds:Vi(si()).optional(),venues:Vi(si()).optional(),tenants:Vi(si()).optional(),teams:Vi(si()).optional(),ticketBeneficiaryTeamId:si().optional(),min:Si().optional(),max:Si().optional(),percent:Si().optional(),split:Ki({tenant:Si(),team:Si(),venue:Si(),sessions:Si()})}),vf=Ki({tenant:Si().meta({examples:[5e4],description:"Amount allocated to the tenant (platform) in cents. This represents the platform's share of the revenue."}),venue:Si().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:Si().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:Si().meta({examples:[3e3],description:"Amount allocated to Sessions platform commission in cents. This represents the platform's service fees."}),tickets:Si().meta({examples:[2e3],description:"Amount allocated to ticketing fees in cents. This represents fees charged for ticket processing and management."})});Ki({payout:mf.meta({description:"Complete payout record containing all financial details and metadata for calculating beneficiary allocations."}),feeStructure:hf.meta({description:"Fee structure configuration that defines how revenue is split between different parties (promoter, venue, platform, etc.)."}),split:vf.meta({description:"Calculated split amounts showing how the payout total is divided among the different beneficiaries in cents."})});const gf=Ki({orders:Si().meta({examples:[150],description:"Total number of orders included in this payout breakdown."}),price:Ol.meta({description:"Aggregated price information for all orders included in this payout, showing total revenue, fees, and deductions."}),split:vf.meta({description:"How the total payout amount is split between different beneficiaries (tenant, venue, promoter, etc.) in cents."}),structure:si().meta({examples:["DEFAULT"],description:"Fee structure identifier that was used to calculate the payout split and allocations."})}),yf=Ki({total:gf.meta({description:"Summary totals for all orders included in this payout breakdown, including aggregated financial calculations."}),orders:Vi(Ki({order:Ul.meta({description:"Complete order information including customer details, items, and payment status."}),price:Ol.meta({description:"Settled price information for this specific order, showing final amounts after refunds and adjustments."}),split:vf.meta({description:"How this individual order's revenue is split between different beneficiaries in cents."}),structure:si().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."})});mf.pick({id:!0,eventId:!0}).extend({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout for which to retrieve the detailed breakdown."}),eventId:si().meta({examples:[De.Event.id],description:"Unique identifier of the event associated with the payout breakdown."})}),mf.pick({eventId:!0,teamId:!0,method:!0,frequency:!0}).partial({method:!0,frequency:!0}).meta({description:"Schema for creating a new payout record"}).extend({eventId:si().meta({examples:[De.Event.id],description:"Unique identifier of the event for which the payout is being created"}),teamId:si().meta({examples:["tem_01jqpjksnsen9vprw95et60t2m"],description:"Unique identifier of the team who will receive the payout"}),method:ao(["AIRWALLEX","STRIPE","MANUAL"]).optional().meta({examples:["AIRWALLEX"],description:"Optional payment method for the payout. Defaults to promoter's preferred method if not specified"}),frequency:ao(["DAILY","WEEKLY","AFTER_EVENT"]).optional().meta({examples:["AFTER_EVENT"],description:"Optional payout frequency. Defaults to 'AFTER_EVENT' if not specified"})});const bf=Ki({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout"}),noteId:si().meta({examples:["tl_1234567890_abc123"],description:"Unique identifier of the timeline note to delete"})}),wf=mf.pick({id:!0}).extend({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout to retrieve."})}),$f=Ki({mine:Ci().optional().meta({examples:[!0],description:"When true, returns payouts from teams where the authenticated user has payout access (for example, `payout.read` or `payout.write`)."}),teamId:si().optional().meta({description:"Filter payouts by specific team unique identifier. BREAKING CHANGE: Replaced promoterId filter."}),eventId:si().optional().meta({examples:[De.Event.id],description:"Filter payouts by specific event unique identifier. When provided, only returns payouts for this event."}),status:ao(["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:To.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:si().optional().meta({examples:["PAID venue:sydney"],description:"Optional search query to filter payouts by text fields. When provided, search-backed pagination is used."}),limit:oa("payouts").optional(),cursor:si().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"}),kf=_a(mf,"payouts"),If=Ki({status:ao(["VALID","FALLBACK","MISSING"]).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:si().optional().meta({examples:["Using fallback beneficiary with matching gateway only."],description:"Optional warning message shown when fallback or missing beneficiary resolution was required."}),beneficiary:Ki({id:si().optional().meta({examples:[De.Beneficiary.id],description:"Identifier for the beneficiary."}),teamId:si().optional().meta({examples:[De.Team.id],description:"Team that owns this beneficiary configuration."}),name:si().meta({examples:[De.Beneficiary.name],description:"Display name for the resolved beneficiary."}),gateway:ao(["AIRWALLEX","STRIPE"]).optional().meta({examples:[De.Beneficiary.gateway],description:"Payment gateway for this beneficiary when available from configuration."}),gatewayId:si().meta({examples:[De.Beneficiary.gatewayId],description:"Gateway-specific beneficiary identifier used for transfer creation."}),currency:Oo.meta({examples:[De.Beneficiary.currency],description:"Currency configured for this beneficiary."})}).optional()}),xf=Ki({kind:ao(["tickets","tenant","venue","team","sessions"]).meta({examples:["tickets"],description:"Split component represented by this row."}),amount:Si().int().meta({examples:[114500],description:"Amount in cents for this split component."}),currency:Oo.meta({examples:[De.Payout.price.currency],description:"Currency code for this split component."}),beneficiary:If}),Ef=ao(["TRACKED","N_A","SKIPPED"]),Af=Ki({orders:Si().int().meta({examples:[12],description:"Number of orders in this settlement bucket."}),price:Ol.meta({description:"Aggregated totals for the orders in this bucket, in the bucket's native currency."})}),Tf=Ki({state:Ef.meta({examples:["TRACKED"],description:"Whether settlement tracking applies to this payout preview. Non-Airwallex payouts return N_A."}),settled:Af.optional().meta({description:"Completed Airwallex orders that already have settlement data available."}),awaitingSettlement:Af.optional().meta({description:"Completed Airwallex orders still waiting on settlement ingestion."})}),Of=Ki({payout:mf.pick({id:!0,status:!0,approval:!0,method:!0,frequency:!0,structure:!0,createdAt:!0,dueAt:!0,teamId:!0,eventId:!0,event:!0,price:!0}).meta({description:"Lightweight payout summary used by approvals and payout queue UIs."}),rows:Vi(xf).meta({description:"Non-zero split rows with beneficiary resolution status and warnings."}),settlementSummary:Tf.meta({description:"Settlement status summary for the payout event. Airwallex payouts expose settled vs awaiting-settlement buckets."})}),_f=wf.extend({includeSettlementSummary:Ci().optional().meta({examples:[!0],description:"When true, includes the Airwallex settlement summary for the payout preview."})}),Df=Ki({payout:mf,breakdown:yf}),Sf=io(si(),io(si(),Ki({net:Si(),total:Si(),gross:Si(),base:Si(),booking:Si(),shipping:Si(),refunded:Si(),discount:Si(),gateway:Si(),dispute:Si(),deductions:Si()}))).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}}}]}),Mf=Ki({teamId:si().optional().meta({description:"Filter stats by team ID"}),startDate:si().optional().meta({description:"Start date for stats period (YYYY-MM-DD)"}),endDate:si().optional().meta({description:"End date for stats period (YYYY-MM-DD)"})}),Pf=mf.pick({id:!0}).merge(mf.pick({status:!0,approval:!0}).partial()).extend({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout to update."}),status:ao(["CANCELLED"]).optional().meta({examples:["CANCELLED"],description:"Optional new payment status for the payout. Only CANCELLED is allowed for manual updates."}),approval:To.optional().meta({examples:["APPROVED"],description:"Optional new approval status for the payout. PENDING: awaiting approval, APPROVED: approved for processing, REJECTED: rejected."})}),jf=Ki({id:si().meta({examples:[De.Payout.id],description:"Unique identifier of the payout"}),noteId:si().meta({examples:["tl_1234567890_abc123"],description:"Unique identifier of the timeline note to update"}),note:si().trim().min(1).max(1e3).meta({examples:["Updated: Transfer confirmed - reference #12345"],description:"Updated note text content (1-1000 characters)"})}),Cf=Ki({payout:mf});var Nf={create:fe.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(ff.strict()).output(Cf),update:fe.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(jf.strict()).output(Cf),remove:fe.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(bf.strict()).output(Cf)},Rf={get:fe.route({method:"GET",path:"/payouts/{id}",summary:"Get payout by ID with breakdown",tags:["Payouts"]}).input(wf.strict()).output(Df),list:fe.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($f.strict()).output(kf),preview:fe.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(_f.strict()).output(Of),stats:fe.route({method:"POST",path:"/payouts/stats",summary:"Get payout statistics",tags:["Payouts"]}).input(Mf.strict()).output(Sf),breakdown:fe.route({method:"GET",path:"/payouts/{payoutId}/breakdown",summary:"Get payout breakdown",tags:["Payouts"]}).input(rf.strict()).output(yf),update:fe.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(Pf.strict()).output(mf),note:Nf};const Uf=ao(["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."}),Lf=Ki({id:si().readonly().meta({description:"Unique identifier for the permission scope"}),createdAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the scope was created"}),updatedAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the scope was last updated"}),teamMemberId:si().meta({description:"Team member this scope applies to"}),teamId:si().meta({description:"Team the member belongs to"}),userId:si().meta({description:"ID of the user this permission scope applies to"}),permissions:Vi(ya).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:Vi(si()).optional().meta({description:"Optional role IDs applied at this scope. Role-derived permissions are merged with explicit scoped nodes."}),tenantId:si().readonly().meta({description:"Tenant identifier"})}),qf=eo("kind",[Lf.extend({kind:co("PROMOTER").meta({description:"Scope type: PROMOTER-specific permissions"}),promoterId:si().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."}),Lf.extend({kind:co("VENUE").meta({description:"Scope type: VENUE-specific permissions"}),venueId:si().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."}),Gf=Ki({permissions:Vi(ya).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:Vi(si()).optional().meta({description:"Optional role IDs to apply at this scope."})}),zf=eo("kind",[Gf.extend({kind:co("PROMOTER").meta({description:"Scope type: PROMOTER-specific permissions"}),promoterId:si().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."}),Gf.extend({kind:co("VENUE").meta({description:"Scope type: VENUE-specific permissions"}),venueId:si().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."}),Ff=Ki({id:Ho.meta({description:"Unique identifier for the permission scope"})}).meta({description:"Schema for retrieving a single permission scope by ID"}),Bf=Ki({teamMemberId:si().optional().meta({description:"Filter by team member ID"}),userId:si().optional().meta({description:"Filter by user ID"}),kind:Uf.optional().meta({description:"Filter by scope kind (PROMOTER or VENUE)"}),promoterId:si().optional().meta({description:"Filter by promoter ID (only for kind=PROMOTER scopes)"}),venueId:si().optional().meta({description:"Filter by venue ID (only for kind=VENUE scopes)"}),limit:oa("permission scopes"),cursor:si().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"}),Wf=_a(qf,"items").meta({description:"Paginated response containing permission scopes with cursor for next page"}),Zf=Gf.meta({description:"Schema for updating an existing permission scope. Only permissions array can be modified."}),Yf=Ki({key:si(),memberId:si()}),Vf=Yf.merge(Ff).strict();var Hf={get:fe.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(Vf).output(qf),list:fe.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(Yf.merge(Bf).strict()).output(Wf),create:fe.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(Yf.and(zf)).output(qf),update:fe.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(Yf.extend({id:si()}).merge(Zf).strict()).output(qf),remove:fe.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(Vf).output(qf)};const Kf=Ki({id:Ko.meta({description:"Permission role ID"}),teamId:jo.meta({description:"Team that owns this role"}),name:si().min(1).meta({description:"Role display name"}),description:si().optional().meta({description:"Optional role description"}),permissions:wa.meta({description:"Permission nodes granted by this role"}),createdAt:Ur().meta({description:"Timestamp in ISO 8601 format when the role was created"}),updatedAt:Ur().meta({description:"Timestamp in ISO 8601 format when the role was last updated"})}).meta({description:"Team-scoped permission role"}),Jf=Ki({role:Kf}),Qf=Ki({roles:Vi(Kf)}),Xf=Ki({key:si().meta({description:"Team identifier (ID or slug)"})}),eh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),roleId:Ko}),th=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),name:si().min(1).meta({description:"Role display name"}),description:si().optional().meta({description:"Optional role description"}),permissions:wa}),nh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),roleId:Ko,name:si().min(1).meta({description:"Role display name"}),description:si().optional().meta({description:"Optional role description"}),permissions:wa}),rh=Ki({memberId:Zo,permissions:Vi(ya),updatedAt:Ur()}),ih=Ki({member:rh}),oh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),memberId:Zo}),ah=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),memberId:Zo,permissions:Vi(ya).meta({description:"Direct permission nodes for this member. Full-replace semantics; use an empty array to remove all direct grants."})}),sh=Ki({memberId:Zo,roleIds:Vi(Ko).meta({description:"Role IDs assigned to this member"}),updatedAt:Ur()}),dh=Ki({member:sh}),ch=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),memberId:Zo}),uh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),memberId:Zo,roleIds:Vi(Ko)}),lh=Ki({direct:Vi(si()),fromRoles:Vi(si()),effective:Vi(si()),denied:Vi(si())});Ki({memberId:Zo,permissions:lh}),Ki({key:si().meta({description:"Team identifier (ID or slug)"}),memberId:Zo,domain:si().optional().meta({description:"Optional domain filter (for example: ticket, event)"}),action:si().optional().meta({description:"Optional action filter (for example: read, write, scan)"}),resourceId:si().optional().meta({description:"Optional resource ID filter"})});var ph={roles:{list:fe.route({method:"GET",path:"/teams/{key}/roles",summary:"List team roles",description:"Returns all roles configured for a team.",tags:["Permissions"]}).input(Xf.strict()).output(Qf),create:fe.route({method:"POST",path:"/teams/{key}/roles",summary:"Create team role",description:"Creates a team-scoped permission role.",tags:["Permissions"]}).input(th.strict()).output(Jf),get:fe.route({method:"GET",path:"/teams/{key}/roles/{roleId}",summary:"Get team role",description:"Retrieves a team role by ID.",tags:["Permissions"]}).input(eh.strict()).output(Jf),update:fe.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(nh.strict()).output(Jf),remove:fe.route({method:"DELETE",path:"/teams/{key}/roles/{roleId}",summary:"Delete team role",description:"Deletes a team role.",tags:["Permissions"]}).input(eh.strict()).output(Jf)},members:{permissions:{get:fe.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(oh.strict()).output(ih),replace:fe.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(ah.strict()).output(ih)},roles:{get:fe.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(ch.strict()).output(dh),replace:fe.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(uh.strict()).output(dh)}}};const mh=Ki({key:si().min(1).meta({description:"Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug",examples:[De.Promoter.id,De.Promoter.slug]})}).meta({description:"Request schema for retrieving a promoter by either its unique ID or slug"});ru.pick({slug:!0});const fh=ru.omit({id:!0,createdAt:!0,updatedAt:!0,geohash:!0,approval:!0,location:!0}).extend({teamId:si().meta({examples:["tem_01jqpjksnsen9vprw95et60t2m"],description:"ID of the team that will own this promoter. User must be a member of this team."}),slug:si().min(3).max(30).optional().meta({examples:[De.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"}),...Zl}).refine(Yl,{message:Wl}).meta({description:"Schema for creating a new promoter organization. The system automatically generates the ID, tenant association, geohash, and timestamps"}),hh=Ki({key:si().min(1).meta({description:"Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug",examples:[De.Promoter.id,De.Promoter.slug]})}).meta({description:"Schema for removing (soft deleting) a promoter organization by key (ID or slug)"});ru.pick({id:!0}).meta({description:"Schema for retrieving a specific promoter by ID"});const vh=Ki({teamId:si().optional().meta({description:"Filter promoters to only those belonging to a specific team"}),approval:To.optional().meta({examples:[De.Promoter.approval],description:"Filter promoters by approval status. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate"}),query:si().optional().meta({examples:["Session Services"],description:"Optional search query. When provided, results are fetched from search with unified cursor pagination."}),latitude:Eo().min(-90).max(90).optional().meta({examples:[De.Promoter.location.latitude],description:"Latitude used with longitude and radius to filter promoters by proximity when searching."}),longitude:Eo().min(-180).max(180).optional().meta({examples:[De.Promoter.location.longitude],description:"Longitude used with latitude and radius to filter promoters by proximity when searching."}),radius:Eo().optional().meta({examples:[50],description:"Search radius in kilometers applied when latitude and longitude are provided."}),mine:Ao().optional().meta({examples:[!0],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:function(e,t){return $o(lo(e),t)}((e=>{if(null!=e)return"string"==typeof e?function(e){let t=e.trim();if(0===t.length)return;let n=Number(t);return Number.isNaN(n)?e:n}(e):e}),Si().min(1).max(100).prefault(20)).meta({examples:[20],description:"Maximum number of promoters to return (1-100, defaults to 20)"}).optional(),cursor:si().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"}),gh=_a(ru,"promoters"),yh=Ki({promoter:ru}),bh=ru.omit({createdAt:!0,updatedAt:!0,id:!0,location:!0}).partial().extend({key:si().min(1).meta({description:"Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug",examples:[De.Promoter.id,De.Promoter.slug]}),locationId:Ro.optional().meta({examples:["loc_01jqpjksnsen9vprw95et60t2m"],description:"ID of an existing location to update to. Either locationId or googlePlaceId can be provided."}),googlePlaceId:si().optional().meta({examples:["ChIJN1t_tDeuEmsRUsoyG83frY4"],description:"Google Place ID to update location from. Either locationId or googlePlaceId can be provided."}),image:Qo.nullable().optional().meta({description:"Promoter image. Pass null to clear; omit to leave unchanged.",examples:[De.Promoter.image,null]}),tracking:Ki({fbId:si().optional(),gtmId:si().optional(),tikTokId:si().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 wh={summary:fe.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(cd).output(ud),revenue:fe.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(ld).output(pd),events:fe.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(md).output(fd)};const $h=fe.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(mh.strict()).output(yh),kh=fe.route({method:"POST",path:"/promoters",summary:"Create a new promoter",description:"Create a new promoter brand within a team",tags:["Promoters"]}).input(fh.strict()).output(yh),Ih=fe.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(bh.strict()).output(yh);var xh={get:$h,list:fe.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(vh.strict()).output(gh),create:kh,update:Ih,remove:fe.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(hh.strict()).output(yh),performance:wh};const Eh=fe.route({method:"GET",path:"/events/{eventId}/sections/{id}",summary:"Get section by ID",tags:["Sections"]}).input(Kl.strict()).output(Xl),Ah=fe.route({method:"POST",path:"/events/{eventId}/sections",summary:"Create a new section",tags:["Sections"]}).input(Vl.strict()).output(Xl),Th=fe.route({method:"PUT",path:"/events/{eventId}/sections/{id}",summary:"Update a section",tags:["Sections"]}).input(ep.strict()).output(Xl);var Oh={get:Eh,list:fe.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(Jl.strict()).output(Ql),create:Ah,update:Th,remove:fe.route({method:"DELETE",path:"/events/{eventId}/sections/{id}",summary:"Delete a section",tags:["Sections"]}).input(Hl.strict()).output(Xl)};const _h=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),inviteId:si().meta({description:"Team invite ID to accept"}),token:si().meta({description:"Secure token used to accept the team invite. This token must match the one sent in the invitation email."})}),Dh=Ki({provider:ao(["STRIPE","AIRWALLEX"]).meta({description:"Payment gateway provider type"}),connectedAt:Ur().meta({description:"Timestamp when the payment gateway was connected to this team"}),connectedBy:si().meta({description:"User ID of the team member who connected the payment gateway"}),accountId:si().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"}),Sh=Ki({id:jo.readonly().meta({description:"Unique identifier for the team organization"}),createdAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the team was created"}),updatedAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the team was last updated"}),name:si().min(3).max(30).meta({description:"Display name of the team organization. Must be between 3 and 30 characters"}),slug:si().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:si().email().optional().meta({description:"Support email address for customer inquiries. Used as reply-to address in order confirmation emails"}),publicBaseUrl:fi().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:Qo.optional().meta({description:"Team image with dimensions and alt text for branding across the platform"}),metadata:ra,approval:To.meta({description:"Approval status of the team. PENDING: awaiting review, APPROVED: can create promoters/venues/events, REJECTED: cannot operate"}),deletedAt:Ur().optional().readonly().meta({description:"Timestamp in ISO 8601 format when the team was soft deleted. Only present for deleted teams."}),tenantId:si().readonly().meta({description:"Tenant ID for multi-tenant isolation"}),isAdmin:Ci().optional().meta({description:"Whether this team is the admin team for the tenant"}),gateway:Dh.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."});Sh.extend({promoter:ru.meta({description:"The primary promoter brand associated with this team"})}).meta({description:"Team organization with its primary promoter brand included for convenience"});const Mh=Sh.extend({member:Ki({id:Zo.meta({description:"Current user's team member identifier for this team"}),permissions:ba.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:Ci().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"}),Ph=Ki({key:si().min(1).meta({description:"Team key - either a unique ID (tem_xxx format) or URL-friendly slug",examples:[De.Team.id,De.Team.slug]})}).meta({description:"Request schema for retrieving a team by either its unique ID or slug"}),jh=Sh.omit({id:!0,tenantId:!0,createdAt:!0,updatedAt:!0,deletedAt:!0}).extend({slug:si().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:Sh.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"});Ki({id:jo.meta({description:"Team ID to delete"})}),Ki({id:jo.meta({description:"Team ID to retrieve"})});const Ch=Ki({id:Yo.readonly().meta({description:"Unique identifier for the team invitation"}),createdAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the invitation was created"}),updatedAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the invitation was last updated"}),teamId:jo.meta({description:"Team this invitation is for"}),email:ui().meta({description:"Email address of the invited user. Used for sending invitation."}),permissions:Vi(ya).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:Vi(si()).optional().meta({description:"Role IDs assigned on invite acceptance. Effective permissions are role + explicit nodes."}),token:si().readonly().meta({description:"Secure token for invite acceptance. Required to accept the invitation."}),expiresAt:Si().int().positive().meta({description:"Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days."}),invitedBy:Uo.meta({description:"User ID who sent the invitation"}),tenantId:si().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."}),Nh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),inviteId:si().meta({description:"Team invite ID to cancel"})}),Rh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),email:ui().meta({description:"Email address of the user to invite"}),roleIds:Vi(si()).min(1).meta({description:"Role IDs to grant to the invited user."})}),Uh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),inviteId:Yo.meta({description:"Team invite ID to retrieve"})}),Lh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),query:si().optional().meta({description:"Search query to filter invitations by email. Case-insensitive partial match"}),limit:Si().int().min(1).max(100).default(20).optional().meta({description:"Maximum number of invitations to return per page"}),cursor:si().optional().meta({description:"Pagination cursor for fetching the next page"})}),qh=_a(Ch,"invites"),Gh=Ki({invite:Ch}),zh=Ki({userId:Uo.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:To.optional().meta({description:"Filter teams by approval status. PENDING: awaiting review, APPROVED: can operate, REJECTED: cannot operate"}),query:si().optional().meta({description:"Optional search query for filtering teams by name or slug"}),limit:oa("teams"),cursor:si().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"}),Fh=_a(Mh,"teams"),Bh=ao(["STRIPE","AIRWALLEX"]),Wh=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),provider:Bh.meta({description:"Payment processor to connect",examples:["STRIPE","AIRWALLEX"]})}),Zh=Ki({authorizationUrl:si().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=..."]})}),Yh=Ki({key:si().meta({description:"Team identifier (ID or slug)"})}),Vh=Ki({team:Mh.extend({isAdmin:Ci().optional().meta({description:"Whether this team is the tenant admin team"})})}),Hh=Ki({id:si().meta({description:"Role ID"}),teamId:si().meta({description:"Team ID this role belongs to"}),key:si().meta({description:"Role key"}),name:si().meta({description:"Role display name"}),description:si().optional().meta({description:"Role description"}),permissions:Vi(si()).meta({description:"Permission nodes granted by this role"}),scope:co("TEAM").meta({description:"Role scope"}),isPreset:Ci().meta({description:"Whether this role is a system preset role"})});Ki({roles:Vi(Hh)}),Ki({key:si().meta({description:"Team identifier (ID or slug)"})});const Kh=Sh.omit({tenantId:!0,createdAt:!0,updatedAt:!0,id:!0}).partial().extend({key:si().min(1).meta({description:"Team key - either a unique ID (tem_xxx format) or URL-friendly slug",examples:[De.Team.id,De.Team.slug]}),supportEmail:si().email().nullable().optional().meta({description:"Support email for customer inquiries. Pass null to clear, omit to leave unchanged."}),publicBaseUrl:fi().nullable().optional().meta({description:"Public website base URL for team-owned event and order links. Pass null to clear, omit to leave unchanged."}),image:Qo.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 Jh={summary:fe.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(hd).output(vd),revenue:fe.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(gd).output(yd),funnel:fe.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($d).output(kd),traffic:fe.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(Td).output(Od),events:fe.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(bd).output(wd),admissions:fe.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(Ed).output(Ad),orders:fe.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(Id).output(xd),tracking:fe.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(Dd)},Qh={get:fe.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(Ph.strict()).output(Vh),list:fe.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(zh.strict()).output(Fh),create:fe.route({method:"POST",path:"/teams",summary:"Create a new team",description:"Create a new team organization",tags:["Teams"]}).input(jh.strict()).output(Vh),update:fe.route({method:"PATCH",path:"/teams/{key}",summary:"Update a team",description:"Update an existing team by ID or slug",tags:["Teams"]}).input(Kh.strict()).output(Vh),remove:fe.route({method:"DELETE",path:"/teams/{key}",summary:"Delete a team",description:"Soft delete a team by ID or slug",tags:["Teams"]}).input(Ph.strict()).output(Vh),performance:Jh};const Xh=Ki({key:si()}),ev=Ki({domain:si().nullable()}),tv=Ki({key:si(),domain:si()}),nv=Ki({key:si(),domain:si()}),rv=Ki({key:si()}),iv=Ki({domain:Bu}),ov=Ki({domains:Vi(Bu)}),av=Ki({domain:si()});var sv={list:fe.route({method:"GET",path:"/teams/{key}/domains",summary:"List team domains",tags:["Team Domains"]}).input(rv.strict()).output(ov),create:fe.route({method:"POST",path:"/teams/{key}/domains",summary:"Create team custom domain",tags:["Team Domains"]}).input(tv.strict()).output(iv),get:fe.route({method:"GET",path:"/teams/{key}/domains/{domain}",summary:"Get team domain status",tags:["Team Domains"]}).input(nv.strict()).output(iv),remove:fe.route({method:"DELETE",path:"/teams/{key}/domains/{domain}",summary:"Remove team custom domain",tags:["Team Domains"]}).input(nv.strict()).output(av),setPrimary:fe.route({method:"POST",path:"/teams/{key}/domains/{domain}/primary",summary:"Set primary team domain",tags:["Team Domains"]}).input(nv.strict()).output(iv),canonical:fe.route({method:"GET",path:"/teams/{key}/domains/canonical",summary:"Get canonical team domain",tags:["Team Domains"]}).input(Xh.strict()).output(ev)};const dv=Ki({id:Zo.readonly().meta({description:"Unique identifier for the team member"}),createdAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the member was created"}),updatedAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the member was last updated"}),teamId:jo.meta({description:"Team this member belongs to"}),userId:Uo.meta({description:"User ID of the team member"}),user:Ki({id:Uo.meta({description:"Unique identifier of the user"}),email:ui().meta({description:"Email address of the user"}),firstName:si().meta({description:"First name of the user"}),lastName:si().meta({description:"Last name of the user"}),imageUrl:si().optional().meta({description:"Profile image URL of the user"})}).meta({description:"Denormalized user details for quick access without additional queries."}),permissions:Vi(ya).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:Vi(si()).optional().meta({description:"Role IDs assigned to this team member. Effective permissions are derived from role nodes plus explicit permission nodes."}),isOwner:Ci().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:si().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."}),cv=Ki({member:dv});var uv={list:fe.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(Lh.strict()).output(qh),get:fe.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(Uh.strict()).output(Gh),create:fe.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(Rh.strict()).output(Gh),accept:fe.route({method:"PATCH",path:"/teams/{key}/invites/{inviteId}",summary:"Accept a team invitation",description:"Accept a pending team invitation using the secure token. Team key can be ID or slug. This deletes the invitation and creates an active TeamMember record. Returns the newly created team member.",tags:["Team Invites"]}).input(_h.strict()).output(cv),resend:fe.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(Uh.strict()).output(Gh),cancel:fe.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(Nh.strict()).output(Gh)},lv={connect:fe.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(Wh.strict()).output(Zh),disconnect:fe.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(Yh.strict()).output(Sh)};const pv=dv.omit({id:!0,tenantId:!0,createdAt:!0,updatedAt:!0,user:!0,teamId:!0,permissions:!0}).extend({key:si().meta({description:"Team identifier (ID or slug)"}),roleIds:Vi(si()).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."}),mv=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),userId:si().meta({description:"User ID of the team member to retrieve"})}),fv=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),query:si().optional().meta({description:"Search query to filter members by name or email. Case-insensitive partial match"}),limit:oa("team members"),cursor:si().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"}),hv=_a(dv,"members"),vv=Ki({key:si().meta({description:"Team identifier (ID or slug)"}),newOwnerId:si().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."}),gv=Ki({previousOwner:dv.meta({description:"The previous owner (now a regular member with owner-equivalent access, typically via `*`)"}),newOwner:dv.meta({description:"The new owner (now has isOwner: true)"})}).meta({description:"Response payload for team ownership transfer operation"}),yv=Ki({id:si().meta({description:"Team member ID to update"}),roleIds:Vi(si()).min(1).meta({description:"Replace role assignments for this team member with the provided role IDs."}),isOwner:Ci().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."});var bv={get:fe.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(mv.strict()).output(cv),list:fe.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(fv.strict()).output(hv),create:fe.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(pv.strict()).output(cv),update:fe.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(yv.extend({key:si(),userId:si()}).strict()).output(cv),remove:fe.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(mv.strict()).output(cv),transfer:fe.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(vv.strict()).output(gv)};const wv=ao(["ALL","COUNTRY","STATE","CITY","VENUE"]),$v=Ki({id:si(),name:si(),slug:si(),kind:wv,parentId:si().optional(),latitude:Si().optional(),longitude:Si().optional(),radius:Si().optional(),enabled:Ci(),order:Si(),zoom:Si().optional(),heroImage:si().optional(),description:si().optional()}),kv=Ki({tenant:Ki({id:si(),name:si(),slug:si(),adminTeamId:si(),legacyTenantsToTeams:io(si(),si()).optional(),features:io(si(),Ci()).optional(),defaultCurrency:si(),logo:Ki({email:Ki({src:si(),width:Si(),height:Si()}),website:Ki({src:si(),width:Si(),height:Si()})}),baseUrl:Ki({dev:si().optional(),production:si().optional()}),publicBaseUrl:Ki({dev:si().optional(),sandbox:si().optional(),production:si().optional()}).optional()}),regions:Vi($v)}),Iv=Ki({regions:Vi($v)}),xv=Ki({teamId:si().optional()}),Ev=Ki({counts:Ki({teams:Ci(),promoters:Ci(),venues:Ci(),events:Ci(),payouts:Ci()})}),Av=fe.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(kv),Tv=fe.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(Iv);var Ov={approvals:fe.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(xv).output(Ev),config:Av,regions:Tv};const _v=Ki({id:si().meta({examples:[De.Admission.id],description:"Admission ID reference"}),name:si().meta({examples:["VIP Access","General Admission","Early Bird"],description:"Admission type name at time of purchase"}),price:Ki({base:Si().meta({description:"Base price in smallest currency unit (cents)"}),booking:Si().meta({description:"Booking fee in smallest currency unit (cents)"}),currency:si().meta({examples:["USD","EUR","GBP"],description:"ISO 4217 currency code"})}).meta({description:"Price snapshot at time of purchase"}),entryStartsAt:ia.meta({description:"Wall clock time when ticket holder can enter (no timezone, displays same everywhere)"}),entryEndsAt:ia.meta({description:"Wall clock time when entry period ends (no timezone, displays same everywhere)"})}).meta({description:"Admission details for this ticket"}),Dv=Ki({firstName:si().trim().min(1).meta({examples:[De.Customer.firstName],description:"First name of the ticket attendee"}),lastName:si().trim().min(1).meta({examples:[De.Customer.lastName],description:"Last name of the ticket attendee"}),email:ui().meta({examples:[De.Customer.email],description:"Email address of the ticket attendee"}),phone:si().meta({examples:[De.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."}),Sv=Ki({id:si().meta({examples:[De.Event.id],description:"Event ID reference"}),name:si().meta({examples:[De.Event.name],description:"The title of the event shown to attendees"}),slug:si().meta({examples:[De.Event.slug],description:"URL-friendly identifier for the event"}),location:tu.meta({description:"Structured location details for the event"}),entryStartsAt:ia.meta({examples:[De.Event.entryStartsAt],description:"Wall clock time when event entry begins (no timezone, displays same everywhere)"}),entryEndsAt:ia.meta({examples:[De.Event.entryEndsAt],description:"Wall clock time when event entry ends (no timezone, displays same everywhere)"}),images:Ki({mobile:Qo.meta({description:"Mobile-optimized image for the event"}),desktop:Qo.meta({description:"Desktop-optimized image for the event"})})}).meta({description:"Event details for this ticket"}),Mv=Ki({id:si().meta({examples:[De.User.id],description:"Unique identifier of the user who performed the ticket scan"}),firstName:si().meta({examples:[De.User.firstName],description:"First name of the user who performed the scan"}),lastName:si().meta({examples:[De.User.lastName],description:"Last name of the user who performed the scan"}),email:ui().meta({examples:[De.User.email],description:"Email address of the user who performed the scan"})}).meta({description:"Information about the user who scanned a ticket"}),Pv=ao(["CHECK_IN","CHECK_OUT"]),jv=Ki({id:si().meta({examples:[De.TicketScan.id],description:"Unique identifier of the ticket scan record"}),scannedAt:Ur().readonly().meta({examples:[De.TicketScan.scannedAt],description:"Timestamp when the ticket was scanned in ISO 8601 format"}),scannedById:si().meta({examples:[De.TicketScan.scannedById],description:"Unique identifier of the user who performed the scan"}),scannedBy:Mv.meta({description:"Detailed information about the user who performed the scan"}),deviceId:si().meta({examples:[De.TicketScan.deviceId],description:"Unique identifier of the device used for scanning"}),kind:Pv.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"}),Cv=Ki({id:si().meta({examples:[De.Section.id],description:"Section ID reference"}),name:si().meta({examples:["Floor Section A","Balcony Left","VIP Lounge"],description:"Section name at time of purchase"}),location:Ki({name:si().meta({description:"Venue or location name"}),address:si().optional().meta({description:"Street address"}),city:si().optional().meta({description:"City name"}),state:si().optional().meta({description:"State or province"}),postcode:si().optional().meta({description:"Postal/ZIP code"}),country:si().optional().meta({description:"ISO country code"}),latitude:Si().optional().meta({description:"Geographic latitude coordinate"}),longitude:Si().optional().meta({description:"Geographic longitude coordinate"}),timeZone:si().optional().meta({examples:["America/New_York","Europe/London"],description:"IANA timezone identifier"})}).meta({description:"Physical location details"})}).meta({description:"Section details for this ticket"}),Nv=ao(["ACTIVE","REDEEMED","CANCELLED"]),Rv=Ki({id:si().readonly().meta({examples:[De.Ticket.id],description:"Unique identifier for the ticket"}),createdAt:Ur().readonly().meta({examples:[De.Ticket.createdAt],description:"Timestamp when the ticket was created in ISO 8601 format"}),updatedAt:Ur().readonly().meta({examples:[De.Ticket.updatedAt],description:"Timestamp when the ticket was last updated in ISO 8601 format"}),scans:Vi(jv).meta({description:"Array of all scan records for this ticket (check-ins and check-outs)"}),status:Nv.meta({examples:["ACTIVE"],description:"Current status of the ticket: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)"}),attendee:Dv.meta({description:"Attendee information for this ticket - editable by tenant admins"}),customerId:zo.meta({examples:[De.Ticket.customerId],description:"Unique identifier of the customer who purchased this ticket (read-only)"}),eventId:Co.meta({examples:[De.Ticket.eventId],description:"Unique identifier of the event this ticket grants access to"}),event:Sv.meta({description:"Event details for this ticket"}),admissionId:Fo.meta({examples:[De.Ticket.admissionId],description:"Unique identifier of the admission type/tier this ticket represents"}),admission:_v.meta({description:"Admission details for this ticket"}),section:Cv.optional().meta({description:"Section details for this ticket (if assigned to a section)"}),orderId:Lo.meta({examples:[De.Ticket.orderId],description:"Unique identifier of the order this ticket was purchased in"}),orderItemId:si().meta({examples:[De.Ticket.orderItemId],description:"Unique identifier of the specific order item this ticket represents (optional for legacy tickets)"}).optional(),teamId:jo.meta({examples:[De.Ticket.teamId],description:"Identifier of the team that owns this ticket"}),promoterId:Go.meta({examples:[De.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."}),Uv=Ki({kind:ao(["CHECK_IN","CHECK_OUT"]).meta({description:"The most recent attendee scan action."}),scannedAt:Ur().meta({description:"Timestamp for the most recent attendee scan."})}),Lv=Ki({key:ao("#ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")).meta({description:"Alpha navigation bucket key for attendee roster jumps."}),count:Eo().int().min(0).meta({description:"Number of roster rows currently available in this bucket."}),anchor:si().meta({description:"Server-issued bookmark for the first roster row in this bucket under the active filters."})}),qv=_v.pick({id:!0,name:!0,entryEndsAt:!0}),Gv=Cv.pick({id:!0,name:!0}),zv=Ki({id:qo.meta({examples:[De.Ticket.id],description:"Ticket identifier for this attendee roster row."}),orderId:Lo.meta({examples:[De.Ticket.orderId],description:"Order identifier used to navigate to order details."}),status:Nv.meta({description:"Current ticket status for the attendee row."}),attendee:Dv.meta({description:"Editable attendee identity fields for this ticket."}),admission:qv.meta({description:"Admission snapshot needed for roster labels and expiry state."}),section:Gv.optional().meta({description:"Optional section label shown in the roster row."}),lastScan:Uv.optional().meta({description:"Most recent scan event for compact roster activity text."}),lastCheckInAt:Ur().optional().meta({description:"Timestamp for the most recent check-in scan, used for checked-in labels."})}),Fv=Ki({eventId:Co.meta({examples:[De.Event.id],description:"Event identifier for the attendee alpha index."}),admissionIds:Vi(Fo).optional().meta({examples:[[De.Admission.id]],description:"Optional admission filters used when computing available attendee buckets."}),sectionIds:Vi(Bo).optional().meta({examples:[[De.Section.id]],description:"Optional section filters used when computing available attendee buckets."})}),Bv=Ki({buckets:Vi(Lv).meta({description:"Available attendee alpha buckets for the active filter set."})}),Wv=Eo().int().min(1).max(100).prefault(100).meta({examples:[100],description:"Maximum number of attendee roster rows to return per request (1-100, default: 100)."}),Zv=Ki({eventId:Co.meta({examples:[De.Event.id],description:"Event identifier for the attendee roster."}),admissionIds:Vi(Fo).optional().meta({examples:[[De.Admission.id]],description:"Optional admission filters. When provided, only matching ticket admissions are included."}),sectionIds:Vi(Bo).optional().meta({examples:[[De.Section.id]],description:"Optional section filters. When provided, only matching ticket sections are included."}),query:si().optional().meta({examples:["John","john@example.com","+61400000000"],description:"Optional attendee search query. Matches attendee name, email, and phone."}),cursor:aa.optional(),before:aa.optional().meta({description:"Cursor for loading roster rows before the current window. Mutually exclusive with cursor and anchor."}),anchor:si().optional().meta({description:"Server-issued bookmark used to jump to a roster bucket. Mutually exclusive with cursor and before."}),limit:Wv.optional()}),Yv=_a(zv,"tickets"),Vv=Rv.pick({status:!0,admissionId:!0,orderItemId:!0}).extend({orderId:si().meta({examples:[De.Order.id],description:"The order this ticket belongs to"}),customerId:si().meta({examples:[De.Customer.id],description:"The customer who purchased this ticket"}),attendee:Dv.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"}),Hv=Rv.pick({id:!0}).extend({signature:$a.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"}),Kv=Ki({promoterId:si().optional().meta({examples:[De.Promoter.id],description:"Filter tickets by promoter/organizer unique identifier (optional)"}),eventId:si().optional().meta({examples:[De.Event.id],description:"Filter tickets by event unique identifier (optional)"}),customerId:si().optional().meta({examples:[De.Customer.id],description:"Filter tickets by customer unique identifier (optional)"}),orderId:si().optional().meta({examples:[De.Order.id],description:"Filter tickets by order unique identifier (optional)"}),status:Nv.optional().meta({examples:["ACTIVE"],description:"Filter tickets by status: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)"}),orderSignature:$a.optional().meta({description:"Order signature used to access tickets for a specific order without permissions (16 characters, base64url encoded)"}),query:si().optional().meta({examples:["John Doe"],description:"Optional search query to filter tickets by customer details. When provided, search-backed pagination is used."}),limit:oa("tickets").optional(),cursor:si().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"}),Jv=_a(Rv,"tickets"),Qv=Ki({ticket:Rv}),Xv=Rv.pick({id:!0,eventId:!0}).extend({key:Rv.shape.id.meta({description:"Transition key. Supports canonical ticket IDs (tkt_*), order IDs (ord_*), and legacy Neon ticket IDs."}),deviceId:Rv.shape.scans.element.shape.deviceId.optional().meta({description:"Unique identifier of the scanning device (optional)."}),eventId:Rv.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:Ci().optional().meta({description:"Confirms an order-level check-in when some tickets are already redeemed and some remain active."})}).omit({id:!0}).meta({description:"Schema for check-in/check-out transitions addressed by key, where key may resolve to a ticket, order, or legacy ticket identifier."}),eg=ao(["ticket","order","legacy"]),tg=ao(["NOOP_TRANSITION"]),ng=ao(["PARTIAL_ORDER_CONFIRMATION_REQUIRED"]),rg=ao(["EVENT_MISMATCH"]),ig=Ki({id:Rv.shape.orderId,checkedInCount:Si().int().nonnegative().optional(),items:Vi(Ki({quantity:Si().int().positive()}))}),og=Sv.pick({id:!0,name:!0,slug:!0,entryStartsAt:!0}).extend({teamId:Rv.shape.teamId}),ag=Qi([Ki({reason:tg,kind:ao(["CHECK_IN","CHECK_OUT"]),targetType:eg,order:ig.optional(),ticket:Rv.optional()}),Ki({reason:rg,kind:ao(["CHECK_IN","CHECK_OUT"]),targetType:eg,requestedEventId:Rv.shape.eventId.optional(),event:og,order:ig.optional(),ticket:Rv.optional()}),Ki({reason:ng,kind:co("CHECK_IN"),targetType:co("order"),order:ig,ticket:Rv.optional()})]),sg=Ki({tickets:Vi(Rv).meta({description:"Transition result tickets. Single-item array for ticket/legacy targets and full order tickets for order targets."}),targetType:eg.meta({description:"Resolved target scope from the provided key."}),order:ig.optional()}),dg=ao(["ACTIVE","CANCELLED"]).describe("Status updates allowed via PATCH: ACTIVE (reactivate), CANCELLED (void). REDEEMED is set via scan endpoint."),cg=Ki({id:si().meta({examples:[De.Ticket.id],description:"Unique identifier of the ticket to update"}),status:dg.optional().meta({description:"Update ticket status: CANCELLED to void, ACTIVE to reactivate"}),attendee:Dv.partial().nullable().optional().meta({description:"Attendee info. Pass object to set/update, null to clear, or omit to leave unchanged."}),admissionId:si().optional().meta({examples:[De.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."}),ug=fe.route({method:"GET",path:"/tickets/{id}",summary:"Get ticket by ID",tags:["Tickets"]}).input(Hv.strict()).output(Qv),lg=fe.route({method:"POST",path:"/tickets",summary:"Create a new ticket",tags:["Tickets"]}).input(Vv.strict()).output(Qv),pg=fe.route({method:"PUT",path:"/tickets/{id}",summary:"Update a ticket",tags:["Tickets"]}).input(cg.strict()).output(Qv);var mg={get:ug,list:fe.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(Kv.strict()).output(Jv),attendees:{list:fe.route({method:"GET",path:"/tickets/attendees",summary:"List event attendees with alpha-navigation support",description:"Returns ticket-backed attendee roster rows for an event. Supports bounded browsing, alpha jump bookmarks, and attendee search.",tags:["Tickets"]}).input(Zv.strict()).output(Yv),index:fe.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(Fv.strict()).output(Bv)},create:lg,update:pg,checkInByKey:fe.route({method:"PUT",path:"/tickets/{key}/check-in",summary:"Check in tickets by key",tags:["Tickets"]}).input(Xv.strict()).errors({UNPROCESSABLE_ENTITY:{data:ag}}).output(sg),checkOutByKey:fe.route({method:"PUT",path:"/tickets/{key}/check-out",summary:"Check out tickets by key",tags:["Tickets"]}).input(Xv.strict()).errors({UNPROCESSABLE_ENTITY:{data:ag}}).output(sg)};const fg={id:De.User.id,createdAt:De.User.createdAt,updatedAt:De.User.updatedAt,email:De.User.email,firstName:De.User.firstName,lastName:De.User.lastName,imageUrl:"https://assets.session.services/examples/avatar.jpg",tenantId:De.User.tenantId},hg=Ki({id:si().readonly().meta({description:"Unique identifier for the user",examples:[De.User.id]}),createdAt:Ur().readonly().meta({description:"ISO 8601 timestamp when the user account was created",examples:[De.User.createdAt]}),updatedAt:Ur().readonly().meta({description:"ISO 8601 timestamp when the user account was last updated",examples:[De.User.updatedAt]}),email:ui().meta({description:"User's email address, used for authentication and communication",examples:[De.User.email]}),firstName:si().min(1).meta({description:"User's first name",examples:[De.User.firstName]}),lastName:si().min(1).meta({description:"User's last name",examples:[De.User.lastName]}),imageUrl:fi().optional().meta({description:"Optional URL to the user's profile image or avatar",examples:["https://assets.session.services/examples/avatar.jpg"]}),metadata:io(si(),na).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:[fg]}),vg=dv.meta({ref:"MeTeamMember",description:"Team membership for the current user with denormalized user details and role-expanded team permissions."}),gg=Ki({access:si().meta({description:"JWT access token with updated user data"}),refresh:si().meta({description:"Refresh token for obtaining new access tokens"})}).meta({ref:"Tokens",description:"Authentication tokens for client session management"}),yg=Ki({user:hg.meta({description:"The updated user profile"}),tokens:gg.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."}),bg=Ki({deleted:co(!0).meta({description:"Whether the current user account was deleted."})}).meta({ref:"UserDeleteResponse",description:"Response payload for DELETE /users/me after deleting the current account."}),wg=Ki({user:hg.nullable().meta({description:"Current authenticated user profile, null if not authenticated"}),isAdmin:Ci().meta({description:"Whether the current user has admin privileges for the tenant"}),members:Vi(vg).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:!0,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:!0,tenantId:"tnt_01abc123"}]}]}),$g=fe.route({method:"GET",path:"/users/me",summary:"Get the current user and their team memberships",tags:["Users"]}).output(wg),kg=Ki({firstName:si().min(1).optional(),lastName:si().min(1).optional(),imageUrl:fi().optional(),metadata:io(si(),na).optional(),refreshToken:si().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"}),Ig=fe.route({method:"PATCH",path:"/users/me",summary:"Update the current user's profile",tags:["Users"]}).input(kg).output(yg);var xg={me:$g,remove:fe.route({method:"DELETE",path:"/users/me",summary:"Delete the current user's account",tags:["Users"]}).output(bg),update:Ig};const Eg=Ki({id:si().readonly().meta({description:"Unique identifier for the venue"}),createdAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the venue was created"}),updatedAt:Ur().readonly().meta({description:"Timestamp in ISO 8601 format when the venue was last updated"}),teamId:si().meta({description:"Team that manages this venue"}),locationId:Ro.meta({examples:["loc_01h2xk3j9k8m2n5p7q9r1s3t4v"],description:"Location identifier for this venue"}),googlePlaceId:si().optional().meta({examples:["ChIJP3Sa8ziYEmsRUKgyFmh9AQM"],description:"Google Place ID when this venue is linked to a Google Places location"}),approval:To.meta({examples:["APPROVED"],description:"Approval status of the venue"}),name:si().min(3).max(100).meta({description:"Display name of the venue. Must be between 3 and 100 characters"}),slug:si().min(3).meta({description:"URL-friendly slug for the venue. Must be unique within tenant"}),description:si().max(500).optional().meta({description:"Short description of the venue for listings and discovery"}),image:Qo.optional().meta({description:"Venue image"}),contact:Ki({email:ui().optional().meta({description:"Public contact email for venue inquiries"}),phone:si().optional().meta({description:"Public contact phone number"}),website:fi().optional().meta({description:"Venue website URL"}),instagram:si().optional().meta({description:"Instagram profile URL"}),facebook:si().optional().meta({description:"Facebook page URL"}),twitter:si().optional().meta({description:"Twitter/X profile URL"}),tiktok:si().optional().meta({description:"TikTok profile URL"}),youtube:si().optional().meta({description:"YouTube channel URL"})}).optional().meta({description:"Public contact information and social media links"}),location:tu.omit({venueId:!0}).meta({description:"Physical location details including address, coordinates, and timezone"}),geohash:si().meta({description:"Geohash encoding of the venue's location for efficient spatial queries"}),capacity:Si().int().min(1).optional().meta({description:"Maximum capacity of the venue (number of attendees)"}),metadata:ra,deletedAt:Ur().readonly().optional().meta({description:"Timestamp in ISO 8601 format when the venue was soft-deleted. Null if not deleted"}),tenantId:si().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."}),Ag=Eg.omit({id:!0,tenantId:!0,createdAt:!0,updatedAt:!0,geohash:!0,deletedAt:!0,location:!0,googlePlaceId:!0,approval:!0}).extend({slug:si().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"}),Tg=Ki({key:si().min(1).meta({description:"Venue key - either a unique ID (ven_xxx format) or URL-friendly slug",examples:[De.Venue.id,De.Venue.slug]})}),Og=Ki({key:si().meta({examples:[De.Venue.id,De.Venue.slug],description:"Venue key - either a unique ID (ven_xxx format) or URL-friendly slug"})}),_g=Ki({teamId:si().optional().meta({description:"Filter venues by owner team ID"}),approval:To.optional().meta({description:"Filter venues by approval status. PENDING: awaiting review, APPROVED: can be used for events, REJECTED: cannot be used"}),query:si().optional().meta({description:"Optional search query for filtering venues by name or slug"}),latitude:Eo().min(-90).max(90).optional().meta({description:"Latitude for location-based search. Must be used with longitude"}),longitude:Eo().min(-180).max(180).optional().meta({description:"Longitude for location-based search. Must be used with latitude"}),radius:Eo().min(1).max(2e4).optional().meta({description:"Search radius in kilometers (1-20000). Requires latitude and longitude"}),limit:oa("venues"),cursor:si().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"}),Dg=_a(Eg,"venues").meta({description:"Paginated response containing venues with cursor for next page"}),Sg=Ki({venue:Eg}),Mg=Eg.omit({id:!0,tenantId:!0,teamId:!0,createdAt:!0,updatedAt:!0,deletedAt:!0,geohash:!0}).partial().extend({key:si().meta({examples:[De.Venue.id,De.Venue.slug],description:"Venue key - either a unique ID (ven_xxx format) or URL-friendly slug"}),description:si().max(500).nullable().optional().meta({description:"Short description of the venue. Pass null to clear, omit to leave unchanged."}),image:Qo.nullable().optional().meta({description:"Venue image. Pass null to clear, omit to leave unchanged."}),capacity:Si().int().min(1).nullable().optional().meta({description:"Maximum capacity. Pass null to clear, omit to leave unchanged."}),contact:Ki({email:ui().optional(),phone:si().optional(),website:fi().optional(),instagram:si().optional(),facebook:si().optional(),twitter:si().optional(),tiktok:si().optional(),youtube:si().optional()}).nullable().optional().meta({description:"Contact information. Pass null to clear all contact fields, omit to leave unchanged."}),googlePlaceId:si().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."}),Pg={analytics:gc,beneficiary:wc,section:Oh,event:_u,eventCollaborator:Lu,admission:vc,order:nf,ticket:mg,internal:Xu,location:ol,coupon:Zc,payout:Rf,teams:ph,permissionScope:Hf,promoter:xh,team:Qh,teamDomain:sv,teamInvite:uv,teamPayment:lv,teamMember:bv,tenant:Ov,venue:{get:fe.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(Og.strict()).output(Sg),list:fe.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(_g.strict()).output(Dg),create:fe.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(Ag.strict()).output(Sg),update:fe.route({method:"PATCH",path:"/venues/{key}",summary:"Update a venue",description:"Update an existing venue. Cannot change venue ownership (teamId)",tags:["Venues"]}).input(Mg.strict()).output(Sg),remove:fe.route({method:"DELETE",path:"/venues/{key}",summary:"Delete a venue",description:"Soft delete a venue",tags:["Venues"]}).input(Tg.strict()).output(Sg),linkLocation:fe.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(Og.extend({locationKey:si().meta({description:"Location ID (loc_xxx) or Google Place ID to link to this venue",examples:["loc_01jps5cgsm7qxvh6watsons0eq","ChIJP3Sa8ziYEmsRUKgyFmh9AQM"]})}).strict()).output(Sg),unlinkLocation:fe.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(Og.extend({locationKey:si().meta({description:"Location ID (loc_xxx) or Google Place ID to unlink from this venue",examples:["loc_01jps5cgsm7qxvh6watsons0eq","ChIJP3Sa8ziYEmsRUKgyFmh9AQM"]})}).strict()).output(Sg)},user:xg},jg=ao(["ORDER"]).meta({description:"Aggregate type this notification belongs to"}),Cg=ao(["ORDER_CONFIRMATION","ORDER_REMINDER","ORDER_CANCELLATION","ORDER_TIME_CHANGE","ORDER_VENUE_CHANGE","ORDER_TIME_AND_VENUE_CHANGE"]).meta({description:"Notification kind"}),Ng=ao(["SMS","EMAIL"]).meta({description:"Delivery channel"}),Rg=ao(["PENDING","PROCESSING","SENT","DELIVERED","FAILED","CANCELLED"]).meta({description:"Current notification status"});Ki({id:Jo.meta({examples:[De.Notification.id],description:"Unique notification identifier"}),createdAt:Ur().readonly().meta({examples:[De.Notification.createdAt],description:"Timestamp when notification was created"}),updatedAt:Ur().readonly().meta({examples:[De.Notification.updatedAt],description:"Timestamp when notification was last updated"}),aggregateType:jg.meta({examples:[De.Notification.aggregateType]}),aggregateId:Lo.meta({examples:[De.Notification.aggregateId],description:"Aggregate identifier (order ID for ORDER notifications)"}),eventId:Co.optional().meta({examples:[De.Notification.eventId],description:"Associated event identifier when applicable"}),kind:Cg.meta({examples:[De.Notification.kind]}),channel:Ng.meta({examples:[De.Notification.channel]}),status:Rg.meta({examples:[De.Notification.status]}),providerMessageId:si().optional().meta({examples:[De.Notification.providerMessageId],description:"Provider message identifier"}),sentAt:Ur().optional().meta({examples:[De.Notification.sentAt],description:"Timestamp when provider accepted send request"}),deliveredAt:Ur().optional().meta({examples:[De.Notification.deliveredAt],description:"Timestamp when provider confirmed delivery"}),failedAt:Ur().optional().meta({examples:[De.Notification.failedAt],description:"Timestamp when notification failed"}),failureCode:si().optional().meta({examples:[De.Notification.failureCode],description:"Failure code when notification is FAILED"}),failureReason:si().optional().meta({examples:[De.Notification.failureReason],description:"Failure reason when notification is FAILED"})}).meta({description:"Notification delivery record"}),Ki({id:Zo.meta({description:"Team member ID to delete"})});var Ug=class extends ne{initRuntimeAdapter(e){for(let t of this.plugins)t.initRuntimeAdapter?.(e)}},Lg=class{fetch;toFetchRequestOptions;adapterInterceptors;constructor(e){new Ug(e.plugins).initRuntimeAdapter(e),this.fetch=e.fetch??globalThis.fetch.bind(globalThis),this.toFetchRequestOptions=e,this.adapterInterceptors=o(e.adapterInterceptors)}async call(e,t,n,r){let i=te(e,this.toFetchRequestOptions);return function(e,t={}){return{body:d((()=>X(e,t))),status:e.status,get headers(){let t=ee(e.headers);return Object.defineProperty(this,"headers",{value:t,writable:!0}),t},set headers(e){Object.defineProperty(this,"headers",{value:e,writable:!0})}}}(await b(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})}},qg=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(k(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(0===e.length)return{};let t=new WeakSet,n={value:[]};for(let[r,i]of e){let e=this.parsePath(r),o=n,a="value";e.forEach(((n,r)=>{!Array.isArray(o[a])&&!k(o[a])&&(o[a]=[]),r===e.length-1?Array.isArray(o[a])&&(""===n?o[a].length&&!t.has(o[a])&&(o[a]=zg(o[a])):t.has(o[a])?(t.delete(o[a]),o[a]=Fg(o[a])):Gg(n,this.maxArrayIndex)||(o[a]=zg(o[a]))):Array.isArray(o[a])&&!Gg(n,this.maxArrayIndex)&&(t.has(o[a])?(t.delete(o[a]),o[a]=Fg(o[a])):o[a]=zg(o[a])),o=o[a],a=n})),Array.isArray(o)&&""===a?(t.add(o),o.push(i)):a in o?Array.isArray(o[a])?o[a].push(i):o[a]=[o[a],i]:o[a]=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)=>0===n?t:`${e}[${t}]`),"")}parsePath(e){let t=[],n=!1,r="",i=0;for(let o=0;o<e.length;o++){let a=e[o],s=e[o+1];!n||"]"!==a||void 0!==s&&"["!==s||i%2!=0?0===t.length&&"["===a&&i%2==0?(n=!0,t.push(r),r=""):"\\"===a?i++:(r+="\\".repeat(i/2)+a,i=0):(void 0===s&&(n=!1),t.push(r),r="",o++)}return n||0===t.length?[e]:t}};function Gg(e,t){return/^0$|^[1-9]\d*$/.test(e)&&Number(e)<=t}function zg(e){let t=new E;return e.forEach(((e,n)=>{t[n]=e})),t}function Fg(e){let t=new E;return t[""]=1===e.length?e[0]:e,t}var Bg=class{customSerializers;constructor(e={}){this.customSerializers=e.customJsonSerializers??[]}serialize(e,t={value:!1}){for(let n of this.customSerializers)if(n.condition(e))return this.serialize(n.serialize(e),t);if(e instanceof Blob)return t.value=!0,[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=>void 0===e?null:this.serialize(e,t)[0])),t.value];if(k(e)){let n={};for(let r in e)"toJSON"===r&&"function"==typeof e[r]||(n[r]=this.serialize(e[r],t)[0]);return[n,t.value]}return"bigint"==typeof e||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 Wg(e){return`/${e.replace(/\/{2,}/g,"/").replace(/^\/|\/$/g,"")}`}function Zg(e){return e?Wg(e).match(/\/\{[^}]+\}/g)?.map((e=>({raw:e,name:e.match(/\{\+?([^}]+)\}/)[1]}))):void 0}var Yg=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=function(e){return"function"==typeof e.forEach?ee(e):e}(await A(this.headers,n,e,t));void 0!==n.lastEventId&&(r=K(r,{"last-event-id":n.lastEventId}));let i=await A(this.baseUrl,n,e,t),o=x(this.contract,e);if(!se(o))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${e.join(".")}`);return"compact"===ve("defaultInputStructure",o["~orpc"].route.inputStructure)?this.#e(o,e,t,n,i,r):this.#t(o,e,t,n,i,r)}#e(e,t,n,r,i,o){let a=Wg(e["~orpc"].route.path??ie(t)),s=n,d=Zg(a);if(d?.length){if(!k(n))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "compact" structure when has dynamic params at ${t.join(".")}.`);let e={...n};for(let t of d)a=a.replace(t.raw,`/${encodeURIComponent(`${this.serializer.serialize(n[t.name])}`)}`),delete e[t.name];s=Object.keys(e).length?e:void 0}let c=ve("defaultMethod",e["~orpc"].route.method),u=new URL(i);if(u.pathname=`${u.pathname.replace(/\/$/,"")}${a}`,"GET"===c){let e=this.serializer.serialize(s,{outputFormat:"URLSearchParams"});for(let[t,n]of e)u.searchParams.append(t,n);return{url:u,method:c,headers:o,body:void 0,signal:r.signal}}return{url:u,method:c,headers:o,body:this.serializer.serialize(s),signal:r.signal}}#t(e,t,n,r,i,o){let a=Wg(e["~orpc"].route.path??ie(t)),s=Zg(a);if(!k(n)&&void 0!==n)throw TypeError(`[StandardOpenapiLinkCodec] Invalid input shape for "detailed" structure at ${t.join(".")}.`);if(s?.length){if(!k(n?.params))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input.params shape for "detailed" structure when has dynamic params at ${t.join(".")}.`);for(let e of s)a=a.replace(e.raw,`/${encodeURIComponent(`${this.serializer.serialize(n.params[e.name])}`)}`)}let d=o;if(void 0!==n?.headers){if(!k(n.headers))throw TypeError(`[StandardOpenapiLinkCodec] Invalid input.headers shape for "detailed" structure at ${t.join(".")}.`);d=K(n.headers,o)}let c=ve("defaultMethod",e["~orpc"].route.method),u=new URL(i);if(u.pathname=`${u.pathname.replace(/\/$/,"")}${a}`,void 0!==n?.query){let e=this.serializer.serialize(n.query,{outputFormat:"URLSearchParams"});for(let[t,n]of e)u.searchParams.append(t,n)}return"GET"===c?{url:u,method:c,headers:d,body:void 0,signal:r.signal}:{url:u,method:c,headers:d,body:this.serializer.serialize(n?.body),signal:r.signal}}async decode(e,t,n){let r=!j(e.status),i=await(async()=>{let t=!1;try{let n=await e.body();return t=!0,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)??(C(i)?N(i):new M(function(e){return Object.entries(_).find((([,t])=>t.status===e))?.[0]??"MALFORMED_ORPC_ERROR_RESPONSE"}(e.status),{status:e.status,data:{...e,body:i}}));let o=x(this.contract,n);if(!se(o))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${n.join(".")}`);return"compact"===ve("defaultOutputStructure",o["~orpc"].route.outputStructure)?i:{status:e.status,headers:e.headers,body:i}}},Vg=class{constructor(e,t){this.jsonSerializer=e,this.bracketNotation=t}serialize(e,t={}){return f(e)&&!t.outputFormat?J(e,{value:async e=>this.#e(e,{outputFormat:"plain"}),error:async e=>new L({data:this.#e(P(e).toJSON(),{outputFormat:"plain"}),cause:e})}):this.#e(e,t)}#e(e,t){let[n,r]=this.jsonSerializer.serialize(e);if("plain"===t.outputFormat)return n;if("URLSearchParams"===t.outputFormat){let e=new URLSearchParams;for(let[t,r]of this.bracketNotation.serialize(n))("string"==typeof r||"number"==typeof r||"boolean"==typeof r)&&e.append(t,r.toString());return e}if(n instanceof Blob||void 0===n||!r)return n;let i=new FormData;for(let[e,t]of this.bracketNotation.serialize(n))"string"==typeof t||"number"==typeof t||"boolean"==typeof t?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())):f(e)?J(e,{value:async e=>e,error:async e=>e instanceof L&&C(e.data)?N(e.data,{cause:e}):e}):e}},Hg=class extends re{constructor(e,t,n){super(new Yg(e,new Vg(new Bg(n),new qg({maxBracketNotationArrayIndex:4294967294})),n),t,n)}},Kg=class extends Hg{constructor(e,t){super(e,new Lg(t),t)}};const Jg={sandbox:"https://api.sandbox.session.services",prod:"https://api.session.services"};var Qg,Xg={},ey=function(){if(Qg)return Xg;Qg=1,Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.parse=function(e,t){const n=new o,r=e.length;if(r<2)return n;const i=t?.decode||d;let c=0;do{const t=e.indexOf("=",c);if(-1===t)break;const o=e.indexOf(";",c),d=-1===o?r:o;if(t>d){c=e.lastIndexOf(";",t-1)+1;continue}const u=a(e,c,t),l=s(e,t,u),p=e.slice(u,l);if(void 0===n[p]){let r=a(e,t+1,d),o=s(e,d,r);const c=i(e.slice(r,o));n[p]=c}c=d+1}while(c<r);return n},Xg.serialize=function(o,a,s){const d=s?.encode||encodeURIComponent;if(!e.test(o))throw new TypeError(`argument name is invalid: ${o}`);const c=d(a);if(!t.test(c))throw new TypeError(`argument val is invalid: ${a}`);let u=o+"="+c;if(!s)return u;if(void 0!==s.maxAge){if(!Number.isInteger(s.maxAge))throw new TypeError(`option maxAge is invalid: ${s.maxAge}`);u+="; Max-Age="+s.maxAge}if(s.domain){if(!n.test(s.domain))throw new TypeError(`option domain is invalid: ${s.domain}`);u+="; Domain="+s.domain}if(s.path){if(!r.test(s.path))throw new TypeError(`option path is invalid: ${s.path}`);u+="; Path="+s.path}if(s.expires){if(!function(e){return"[object Date]"===i.call(e)}(s.expires)||!Number.isFinite(s.expires.valueOf()))throw new TypeError(`option expires is invalid: ${s.expires}`);u+="; Expires="+s.expires.toUTCString()}if(s.httpOnly&&(u+="; HttpOnly"),s.secure&&(u+="; Secure"),s.partitioned&&(u+="; Partitioned"),s.priority)switch("string"==typeof s.priority?s.priority.toLowerCase():void 0){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${s.priority}`)}if(s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${s.sameSite}`)}return u};const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,o=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function a(e,t,n){do{const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<n);return n}function s(e,t,n){for(;t>n;){const n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return n}function d(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}return Xg}();function ty(e,t={}){const n=function(e){return e&&"j"===e[0]&&":"===e[1]?e.substr(2):e}(e);if(!t.doNotParse)try{return JSON.parse(n)}catch(e){}return e}class ny{constructor(e,t={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const e=this.cookies;this.cookies=ey.parse(document.cookie),this._checkChanges(e)};const n="undefined"==typeof document?"":document.cookie;this.cookies=function(e){return"string"==typeof e?ey.parse(e):"object"==typeof e&&null!==e?e:{}}(e||n),this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=function(){const e="undefined"==typeof global?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return"boolean"==typeof e?e:"object"==typeof document&&"string"==typeof document.cookie}()}_emitChange(e){for(let t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach((t=>{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:ty(this.cookies[t])})}))}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(e,t={}){return t.doNotUpdate||this.update(),ty(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();const t={};for(let n in this.cookies)t[n]=ty(this.cookies[n],e);return t}set(e,t,n){n=n?Object.assign(Object.assign({},this.defaultSetOptions),n):this.defaultSetOptions;const r="string"==typeof t?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:r}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=ey.serialize(e,r,n)),this._emitChange({name:e,value:t,options:n})}remove(e,t){const n=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=ey.serialize(e,"",n)),this._emitChange({name:e,value:void 0,options:t})}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&1===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(e){const t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&0===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0])}}function ry(e,t){return e.get(t)||void 0}function iy(){if(typeof window>"u")return;let e=new URLSearchParams(window.location.search),t={source:ry(e,"utm_source"),medium:ry(e,"utm_medium"),name:ry(e,"utm_campaign"),term:ry(e,"utm_term"),content:ry(e,"utm_content")};return Object.values(t).some(Boolean)?t:void 0}function oy(){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:iy()}}function ay(e,t,n){n&&(e[t]=n)}function sy(...e){return e.find(Boolean)}function dy(e){return(t,n)=>{e(t,n.product_id),function(e,t){ay(e,"content_name",t.name),ay(e,"value",sy(t.value,t.price)),e.content_type="product"}(t,n)}}function cy(e){return(t,n)=>{e(t,n),ay(t,"content_category",n.category)}}function uy(e,t){ay(e,"value",sy(t.value,t.total))}function ly(e,t){ay(e,"value",sy(t.value,t.total,t.revenue))}function py(e,t){if(Array.isArray(e))return e.map(t)}const my={"Product Viewed":"ViewContent","Product Added":"AddToCart","Checkout Started":"InitiateCheckout","Payment Info Entered":"AddPaymentInfo","Order Completed":"Purchase"},fy=new Set,hy=new Map;function vy(e,t){!t||!Array.isArray(t)||(e.content_ids=t.map((e=>e.product_id)).filter(Boolean),e.num_items=t.length,e.contents=py(t,(e=>({id:e.product_id,quantity:e.quantity||1,item_price:e.price}))))}function gy(e,t){let n=window;typeof window>"u"||!n.fbq||(t?n.fbq("init",e,{external_id:t}):n.fbq("init",e))}function yy(e,t){let n=window;typeof window>"u"||!n.fbq||n.fbq("track",e,t)}function by(e,...t){e&&console.log(...t)}function wy(e,t,n){return!!function(){if(typeof window>"u")return!1;let e=window;if(e.fbq)return!0;let t=(...e)=>{t.callMethod?t.callMethod(...e):t.queue.push(e)};t.push=t,t.loaded=!0,t.version="2.0",t.queue=[],e.fbq=t,e._fbq||=t;let n=document.createElement("script");n.async=!0,n.src="https://connect.facebook.net/en_US/fbevents.js";let r=document.getElementsByTagName("script")[0];return r?.parentNode?.insertBefore(n,r),!0}()&&(function(e,t,n){let r=hy.get(e);return!(!t||t===r||(gy(e,t),hy.set(e,t),fy.add(e),by(n,`[Facebook Pixel] Re-initialized pixel ${e} with userId ${t}`),0))}(e,t,n)||fy.has(e)||function(e,t,n){gy(e,t),fy.add(e),t&&hy.set(e,t),by(n,`[Facebook Pixel] Initialized pixel ${e}`)}(e,t,n),!0)}const $y=dy((function(e,t){t&&(e.content_ids=[t])}));function ky(e,t){vy(e,t.products),uy(e,t),e.content_type="product",ay(e,"order_id",t.order_id)}function Iy(e,t){ay(e,"value",t.value),t.product_id&&(e.content_ids=[t.product_id])}const xy={ViewContent:cy($y),AddToCart:function(e,t){$y(e,t),t.product_id&&(e.contents=[{id:t.product_id,quantity:t.quantity||1,item_price:t.price}])},InitiateCheckout:ky,AddPaymentInfo:ky,Purchase:function(e,t){vy(e,t.products),ly(e,t),e.content_type="product",ay(e,"order_id",t.order_id)}};function Ey(e,t){let n={};return ay(n,"currency",t.currency),ay(n,"event_id",t.event_id),(xy[e]??Iy)(n,t),n}function Ay(e=!1){let t=(t,n)=>{n.fbId&&wy(n.fbId,t.userId,e)&&(yy("PageView",{}),by(e,"[Facebook Pixel] Sent PageView"))};return{name:"Facebook Pixel",track:(t,n)=>{if(!n.fbId||!wy(n.fbId,t.userId,e))return;let r=function(e){let t=function(e){return e.name||"Unknown"}(e);return my[t]||t}(t),i=Ey(r,t.properties);yy(r,i),by(e,`[Facebook Pixel] Sent ${r}:`,i)},page:t,screen:t,identify:(t,n)=>{!n.fbId||!t.userId||(wy(n.fbId,t.userId,e),by(e,`[Facebook Pixel] Identity synced: ${t.userId}`))}}}const Ty={"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"},Oy=new Set;function _y(e){let t=window;typeof window>"u"||!t.dataLayer||t.dataLayer.push(e)}function Dy(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 Sy(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 My(e){return Array.isArray(e.products)?e.products.map(Dy):[]}function Py(e){return[...Sy(e),...My(e)]}function jy(e,t,n){n&&(e[t]=n)}function Cy(e,t){if(e.gtmId)return function(e,t){return!!Oy.has(e)||!!function(e){if(typeof window>"u")return!1;let t=window;t.dataLayer=t.dataLayer||[];let n=`gtm-${e}`;if(document.getElementById(n))return!0;let r=document.createElement("script");r.id=n,r.async=!0,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),!0}(e)&&(Oy.add(e),t&&console.log(`[GTM] Loaded container ${e}`),!0)}(e.gtmId,t)?e.gtmId:void 0}function Ny(e,t){jy(e,"user_id",t.userId)}function Ry(e=!1){return{name:"Google Tag Manager",track:(t,n)=>{if(!Cy(n,e))return;let r=function(e){let t=e||"Unknown";return Ty[t]||t}(t.name);_y({ecommerce:null});let i=function(e,t){let n={items:Py(t)};return jy(n,"currency",t.currency),jy(n,"value",function(e){return e.find(Boolean)}([t.value,t.total,t.revenue,t.price])),function(e,t,n){"purchase"===t&&n.order_id&&(e.transaction_id=n.order_id)}(n,e,t),{event:e,ecommerce:n}}(r,t.properties);Ny(i,t),_y(i),function(e,t,n){e&&console.log(t,n)}(e,`[GTM] Pushed ${r}:`,i)},page:(t,n)=>{if(!Cy(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};jy(r,"page_referrer",t.context.page.referrer),Ny(r,t),_y(r),e&&console.log("[GTM] Pushed page_view:",r)},screen:(t,n)=>{if(!Cy(n,e))return;let r={event:"screen_view",screen_name:t.name||"Unknown"};Ny(r,t),_y(r),e&&console.log("[GTM] Pushed screen_view:",r)},identify:(t,n)=>{!t.userId||!Cy(n,e)||(_y({user_id:t.userId}),e&&console.log(`[GTM] Identity synced: ${t.userId}`))}}}const Uy=new Set(Object.values(Md));function Ly(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 qy(e,t,n){return n&&t?{...e,name:t}:e}const Gy={"Product Viewed":"ViewContent","Product Added":"AddToCart","Checkout Started":"InitiateCheckout","Payment Info Entered":"AddPaymentInfo","Order Completed":"Purchase"},zy=new Set;function Fy(e,...t){e&&console.log(...t)}function By(e,t){return!!function(){if(typeof window>"u")return!1;let e=window;if(e.ttq)return!0;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=!0,n.src="https://analytics.tiktok.com/i18n/pixel/events.js";let r=document.getElementsByTagName("script")[0];return r?.parentNode?.insertBefore(n,r),!0}()&&(zy.has(e)||(function(e){let t=window;typeof window>"u"||!t.ttq||t.ttq("init",e)}(e),zy.add(e),Fy(t,`[TikTok Pixel] Initialized pixel ${e}`)),!0)}const Wy=dy((function(e,t){ay(e,"content_id",t)}));function Zy(e,t){ay(e,"contents",py(t,(e=>({content_id:e.product_id,content_name:e.name,quantity:e.quantity||1,price:e.price}))))}function Yy(e,t){Zy(e,t.products),uy(e,t)}function Vy(e,t){ay(e,"value",t.value)}const Hy={ViewContent:cy(Wy),AddToCart:function(e,t){Wy(e,t),ay(e,"quantity",t.quantity)},InitiateCheckout:Yy,AddPaymentInfo:Yy,Purchase:function(e,t){Zy(e,t.products),ly(e,t),ay(e,"order_id",t.order_id)}};function Ky(e,t){let n={};return ay(n,"currency",t.currency),ay(n,"event_id",t.event_id),(Hy[e]??Vy)(n,t),n}function Jy(e){return e.tikTokId}function Qy(e=!1){let t=(t,n)=>{let r=Jy(n);r&&By(r,e)&&(function(e){let t=window;typeof window>"u"||!t.ttq||t.ttq.instance(e)("page")}(r),Fy(e,"[TikTok Pixel] Sent page view"))};return{name:"TikTok Pixel",track:(t,n)=>{let r=Jy(n);if(!r||!By(r,e))return;let i=function(e){let t=function(e){return e.name||"Unknown"}(e);return Gy[t]||t}(t),o=Ky(i,t.properties);(function(e,t,n){let r=window;typeof window>"u"||!r.ttq||r.ttq.instance(e)("track",t,n)})(r,i,o),Fy(e,`[TikTok Pixel] Sent ${i}:`,o)},page:t,screen:t,identify:(t,n)=>{let r=Jy(n);!r||!t.userId||By(r,e)&&(function(e,t){let n=window;typeof window>"u"||!n.ttq||n.ttq.instance(e)("identify",{external_id:t})}(r,t.userId),Fy(e,`[TikTok Pixel] Identity synced: ${t.userId}`))}}}const Xy={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)},eb=["fbId","gtmId","tikTokId"];function tb(e){return e||void 0}function nb(e,t=!1){let n=new Map,r=new Map,i=function(e,t=!1){let n=async(n,r,i)=>{let o=function(e){let{event_id:t,team_id:n,promoter_id:r,...i}=e;return{eventId:t,teamId:n,promoterId:r,rest:i}}(r.properties);if(!function(e){return!!(e.eventId&&e.teamId&&e.promoterId)}(o))return void function(e,t,n){e&&console.warn(`[Sessions API] Missing required fields, skipping ${t}:`,{eventId:n.eventId,teamId:n.teamId,promoterId:n.promoterId})}(t,n,o);let a=i??r.name;if(!function(e){return!(!e||!Uy.has(e))}(a))return void function(e,t,n){e&&console.warn(`[Sessions API] Invalid or missing eventType "${n}", skipping ${t}`)}(t,n,a);let s=function(e,t,n,r){return{eventId:t.eventId,teamId:t.teamId,promoterId:t.promoterId,eventType:n,properties:qy(t.rest,e.name,r),context:Ly(e)}}(r,o,a,i);(function(e,t,n){e&&console.log(`[Sessions API] Sending ${t}:`,n)})(t,n,s),await e.analytics[n](s)};return{name:"Sessions API",track:e=>{n("track",e).catch((e=>{t&&console.error("[Sessions API] track error:",e)}))},page:e=>{n("page",e,"Page Viewed").catch((e=>{t&&console.error("[Sessions API] page error:",e)}))},screen:e=>{n("screen",e,"Screen Viewed").catch((e=>{t&&console.error("[Sessions API] screen error:",e)}))},identify:e=>{t&&console.log("[Sessions API] Identify received (logged only):",{userId:e.userId,traits:e.traits})}}}(e,t),o=[Ay(t),Ry(t),Qy(t)],a=async n=>{try{let r=function(e){let t=e??{};return Object.fromEntries(eb.map((e=>[e,tb(t[e])])))}((await e.promoter.get({key:n})).promoter?.tracking);return function(e,t,n){e&&console.log(`[DestinationManager] Fetched config for promoter ${t}:`,n)}(t,n,r),r}catch(e){return function(e,t,n){e&&console.warn(`[DestinationManager] Failed to fetch promoter ${t} config:`,n)}(t,n,e),{}}},s=(e,n,r)=>{try{c(e,n,r)}catch(n){t&&console.error(`[DestinationManager] ${e.name} error:`,n)}},d=async e=>{let t=n.get(e);if(t)return t;let i=r.get(e);if(i)return i;i=a(e),r.set(e,i);try{let t=await i;return n.set(e,t),t}finally{r.delete(e)}},c=(e,t,n)=>{Xy[t.type]?.(e,t,n)};return{sendEvent:async(e,t)=>{let n=await d(t);if(s(i,e,n),function(e){return eb.some((t=>!!e[t]))}(n))for(let t of o)s(t,e,n)},clearCache:()=>{n.clear(),r.clear()}}}function rb(){return typeof document>"u"?null:new ny}const ib={deleteCookie:function(e){let t=rb();t&&t.remove(e,{path:"/"})},getCookie:function(e){return rb()?.get(e)??null},getItem:function(e){if(typeof localStorage>"u")return null;try{return localStorage.getItem(e)}catch{return null}},removeItem:function(e){if(!(typeof localStorage>"u"))try{localStorage.removeItem(e)}catch{}},setCookie:function(e,t){let n=rb();n&&n.set(e,t,{path:"/",sameSite:"lax",secure:"https:"===window.location.protocol})},setItem:function(e,t){if(!(typeof localStorage>"u"))try{localStorage.setItem(e,t)}catch{}}};const ob={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}},ab={locale:"en-US",exponent:2};var sb,db,cb={},ub={},lb={},pb={};function mb(){return db||(db=1,pb.tzName=function(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}),pb}var fb,hb,vb,gb={},yb={};function bb(){if(fb)return yb;fb=1,yb.tzOffset=function(i,o){try{const n=(e[i]||=new Intl.DateTimeFormat("en-US",{timeZone:i,timeZoneName:"longOffset"}).format)(o).split("GMT")[1];return n in t?t[n]:r(n,n.split(":"))}catch{if(i in t)return t[i];const e=i?.match(n);return e?r(i,e.slice(1)):NaN}};const e={},t={},n=/([+-]\d\d):?(\d\d)?/;function r(e,n){const r=+(n[0]||0),i=+(n[1]||0),o=+(n[2]||0)/60;return t[e]=60*r+i>0?60*r+i+o:60*r-i-o}return yb}function wb(){if(hb)return gb;hb=1,gb.TZDateMini=void 0;var e=bb();class t extends Date{constructor(...t){super(),t.length>1&&"string"==typeof t[t.length-1]&&(this.timeZone=t.pop()),this.internal=new Date,isNaN((0,e.tzOffset)(this.timeZone,this))?this.setTime(NaN):t.length?"number"==typeof t[0]&&(1===t.length||2===t.length&&"number"!=typeof t[1])?this.setTime(t[0]):"string"==typeof t[0]?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),i(this),r(this)):this.setTime(Date.now())}static tz(e,...n){return n.length?new t(...n,e):new t(Date.now(),e)}withTimeZone(e){return new t(+this,e)}getTimezoneOffset(){const t=-(0,e.tzOffset)(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(e){return Date.prototype.setTime.apply(this,arguments),r(this),+this}[Symbol.for("constructDateFrom")](e){return new t(+new Date(e),this.timeZone)}}gb.TZDateMini=t;const n=/^(get|set)(?!UTC)/;function r(t){t.internal.setTime(+t),t.internal.setUTCSeconds(t.internal.getUTCSeconds()-Math.round(60*-(0,e.tzOffset)(t.timeZone,t)))}function i(t){const n=(0,e.tzOffset)(t.timeZone,t),r=n>0?Math.floor(n):Math.ceil(n),i=new Date(+t);i.setUTCHours(i.getUTCHours()-1);const o=-new Date(+t).getTimezoneOffset(),a=o- -new Date(+i).getTimezoneOffset(),s=Date.prototype.getHours.apply(t)!==t.internal.getUTCHours();a&&s&&t.internal.setUTCMinutes(t.internal.getUTCMinutes()+a);const d=o-r;d&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+d);const c=new Date(+t);c.setUTCSeconds(0);const u=o>0?c.getSeconds():(c.getSeconds()-60)%60,l=Math.round(-60*(0,e.tzOffset)(t.timeZone,t))%60;(l||u)&&(t.internal.setUTCSeconds(t.internal.getUTCSeconds()+l),Date.prototype.setUTCSeconds.call(t,Date.prototype.getUTCSeconds.call(t)+l+u));const p=(0,e.tzOffset)(t.timeZone,t),m=p>0?Math.floor(p):Math.ceil(p),f=-new Date(+t).getTimezoneOffset()-m-d;if(m!==r&&f){Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+f);const n=(0,e.tzOffset)(t.timeZone,t),r=m-(n>0?Math.floor(n):Math.ceil(n));r&&(t.internal.setUTCMinutes(t.internal.getUTCMinutes()+r),Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+r))}}return Object.getOwnPropertyNames(Date.prototype).forEach((e=>{if(!n.test(e))return;const o=e.replace(n,"$1UTC");t.prototype[o]&&(e.startsWith("get")?t.prototype[e]=function(){return this.internal[o]()}:(t.prototype[e]=function(){return Date.prototype[o].apply(this.internal,arguments),function(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()),i(e)}(this),+this},t.prototype[o]=function(){return Date.prototype[o].apply(this,arguments),r(this),+this}))})),gb}function $b(){if(vb)return lb;vb=1,lb.TZDate=void 0;var e=mb(),t=wb();class n extends t.TZDateMini{static tz(e,...t){return t.length?new n(...t,e):new n(Date.now(),e)}toISOString(){const[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,t,n,r]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,i]=this.tzComponents();return`${t} GMT${n}${r}${i} (${(0,e.tzName)(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(e){return new n(+this,e)}[Symbol.for("constructDateFrom")](e){return new n(+new Date(e),this.timeZone)}}return lb.TZDate=n,lb}var kb,Ib,xb,Eb,Ab,Tb={},Ob={},_b=(xb||(xb=1,function(e){var t=(sb||(sb=1,ub.constructFromSymbol=void 0,ub.constructFromSymbol=Symbol.for("constructDateFrom")),ub);Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}));var n=$b();Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))}));var r=wb();Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))}));var i=function(){if(kb)return Tb;kb=1,Tb.tz=void 0;var e=$b();return Tb.tz=t=>n=>e.TZDate.tz(t,+new Date(n)),Tb}();Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===i[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))}));var o=bb();Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===o[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}));var a=function(){if(Ib)return Ob;Ib=1,Ob.tzScan=function(t,n){const r=[],i=new Date(n.start);i.setUTCSeconds(0,0);const o=new Date(n.end);o.setUTCSeconds(0,0);const a=+o;let s=(0,e.tzOffset)(t,i);for(;+i<a;){i.setUTCMonth(i.getUTCMonth()+1);const n=(0,e.tzOffset)(t,i);if(n!=s){const n=new Date(i);n.setUTCMonth(n.getUTCMonth()-1);const o=+i;for(s=(0,e.tzOffset)(t,n);+n<o;){n.setUTCDate(n.getUTCDate()+1);const i=(0,e.tzOffset)(t,n);if(i!=s){const i=new Date(n);i.setUTCDate(i.getUTCDate()-1);const o=+n;for(s=(0,e.tzOffset)(t,i);+i<o;){i.setUTCHours(i.getUTCHours()+1);const n=(0,e.tzOffset)(t,i);n!==s&&r.push({date:new Date(i),change:n-s,offset:n}),s=n}}s=i}}s=n}return r};var e=bb();return Ob}();Object.keys(a).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===a[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}}))}));var s=mb();Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===s[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}}))}))}(cb)),cb),Db={},Sb={},Mb={},Pb={},jb={};function Cb(){if(Eb)return jb;Eb=1,jb.secondsInYear=jb.secondsInWeek=jb.secondsInQuarter=jb.secondsInMonth=jb.secondsInMinute=jb.secondsInHour=jb.secondsInDay=jb.quartersInYear=jb.monthsInYear=jb.monthsInQuarter=jb.minutesInYear=jb.minutesInMonth=jb.minutesInHour=jb.minutesInDay=jb.minTime=jb.millisecondsInWeek=jb.millisecondsInSecond=jb.millisecondsInMinute=jb.millisecondsInHour=jb.millisecondsInDay=jb.maxTime=jb.daysInYear=jb.daysInWeek=jb.constructFromSymbol=void 0,jb.daysInWeek=7;const e=jb.daysInYear=365.2425,t=jb.maxTime=24*Math.pow(10,8)*60*60*1e3;jb.minTime=-t,jb.millisecondsInWeek=6048e5,jb.millisecondsInDay=864e5,jb.millisecondsInMinute=6e4,jb.millisecondsInHour=36e5,jb.millisecondsInSecond=1e3,jb.minutesInYear=525600,jb.minutesInMonth=43200,jb.minutesInDay=1440,jb.minutesInHour=60,jb.monthsInQuarter=3,jb.monthsInYear=12,jb.quartersInYear=4;const n=jb.secondsInHour=3600;jb.secondsInMinute=60;const r=jb.secondsInDay=24*n;jb.secondsInWeek=7*r;const i=jb.secondsInYear=r*e,o=jb.secondsInMonth=i/12;return jb.secondsInQuarter=3*o,jb.constructFromSymbol=Symbol.for("constructDateFrom"),jb}function Nb(){if(Ab)return Pb;Ab=1,Pb.constructFrom=function(t,n){return"function"==typeof t?t(n):t&&"object"==typeof t&&e.constructFromSymbol in t?t[e.constructFromSymbol](n):t instanceof Date?new t.constructor(n):new Date(n)};var e=Cb();return Pb}var Rb,Ub,Lb={};function qb(){if(Rb)return Lb;Rb=1,Lb.toDate=function(t,n){return(0,e.constructFrom)(n||t,t)};var e=Nb();return Lb}function Gb(){if(Ub)return Mb;Ub=1,Mb.addDays=function(n,r,i){const o=(0,t.toDate)(n,i?.in);return isNaN(r)?(0,e.constructFrom)(i?.in||n,NaN):r?(o.setDate(o.getDate()+r),o):o};var e=Nb(),t=qb();return Mb}var zb,Fb,Bb={};function Wb(){if(zb)return Bb;zb=1,Bb.addMonths=function(n,r,i){const o=(0,t.toDate)(n,i?.in);if(isNaN(r))return(0,e.constructFrom)(i?.in||n,NaN);if(!r)return o;const a=o.getDate(),s=(0,e.constructFrom)(i?.in||n,o.getTime());s.setMonth(o.getMonth()+r+1,0);return a>=s.getDate()?s:(o.setFullYear(s.getFullYear(),s.getMonth(),a),o)};var e=Nb(),t=qb();return Bb}function Zb(){if(Fb)return Sb;Fb=1,Sb.add=function(i,o,a){const{years:s=0,months:d=0,weeks:c=0,days:u=0,hours:l=0,minutes:p=0,seconds:m=0}=o,f=(0,r.toDate)(i,a?.in),h=d||s?(0,t.addMonths)(f,d+12*s):f,v=u||c?(0,e.addDays)(h,u+7*c):h,g=1e3*(m+60*(p+60*l));return(0,n.constructFrom)(a?.in||i,+v+g)};var e=Gb(),t=Wb(),n=Nb(),r=qb();return Sb}var Yb,Vb={},Hb={};function Kb(){if(Yb)return Hb;Yb=1,Hb.isSaturday=function(t,n){return 6===(0,e.toDate)(t,n?.in).getDay()};var e=qb();return Hb}var Jb,Qb={};function Xb(){if(Jb)return Qb;Jb=1,Qb.isSunday=function(t,n){return 0===(0,e.toDate)(t,n?.in).getDay()};var e=qb();return Qb}var ew,tw,nw={};function rw(){if(ew)return nw;ew=1,nw.isWeekend=function(t,n){const r=(0,e.toDate)(t,n?.in).getDay();return 0===r||6===r};var e=qb();return nw}function iw(){if(tw)return Vb;tw=1,Vb.addBusinessDays=function(o,a,s){const d=(0,i.toDate)(o,s?.in),c=(0,r.isWeekend)(d,s);if(isNaN(a))return(0,e.constructFrom)(s?.in,NaN);const u=d.getHours(),l=a<0?-1:1,p=Math.trunc(a/5);d.setDate(d.getDate()+7*p);let m=Math.abs(a%5);for(;m>0;)d.setDate(d.getDate()+l),(0,r.isWeekend)(d,s)||(m-=1);return c&&(0,r.isWeekend)(d,s)&&0!==a&&((0,t.isSaturday)(d,s)&&d.setDate(d.getDate()+(l<0?2:-1)),(0,n.isSunday)(d,s)&&d.setDate(d.getDate()+(l<0?1:-2))),d.setHours(u),d};var e=Nb(),t=Kb(),n=Xb(),r=rw(),i=qb();return Vb}var ow,aw,sw={},dw={};function cw(){if(ow)return dw;ow=1,dw.addMilliseconds=function(n,r,i){return(0,e.constructFrom)(i?.in||n,+(0,t.toDate)(n)+r)};var e=Nb(),t=qb();return dw}function uw(){if(aw)return sw;aw=1,sw.addHours=function(n,r,i){return(0,e.addMilliseconds)(n,r*t.millisecondsInHour,i)};var e=cw(),t=Cb();return sw}var lw,pw,mw,fw,hw={},vw={},gw={},yw={},bw={};function ww(){if(lw)return bw;lw=1,bw.getDefaultOptions=function(){return e},bw.setDefaultOptions=function(t){e=t};let e={};return bw}function $w(){if(pw)return yw;pw=1,yw.startOfWeek=function(n,r){const i=(0,e.getDefaultOptions)(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,a=(0,t.toDate)(n,r?.in),s=a.getDay(),d=(s<o?7:0)+s-o;return a.setDate(a.getDate()-d),a.setHours(0,0,0,0),a};var e=ww(),t=qb();return yw}function kw(){if(mw)return gw;mw=1,gw.startOfISOWeek=function(t,n){return(0,e.startOfWeek)(t,{...n,weekStartsOn:1})};var e=$w();return gw}function Iw(){if(fw)return vw;fw=1,vw.getISOWeekYear=function(r,i){const o=(0,n.toDate)(r,i?.in),a=o.getFullYear(),s=(0,e.constructFrom)(o,0);s.setFullYear(a+1,0,4),s.setHours(0,0,0,0);const d=(0,t.startOfISOWeek)(s),c=(0,e.constructFrom)(o,0);c.setFullYear(a,0,4),c.setHours(0,0,0,0);const u=(0,t.startOfISOWeek)(c);return o.getTime()>=d.getTime()?a+1:o.getTime()>=u.getTime()?a:a-1};var e=Nb(),t=kw(),n=qb();return vw}var xw,Ew={},Aw={},Tw={};function Ow(){if(xw)return Tw;xw=1,Tw.getTimezoneOffsetInMilliseconds=function(t){const n=(0,e.toDate)(t),r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),+t-+r};var e=qb();return Tw}var _w,Dw={};function Sw(){if(_w)return Dw;_w=1,Dw.normalizeDates=function(t,...n){const r=e.constructFrom.bind(null,t||n.find((e=>"object"==typeof e)));return n.map(r)};var e=Nb();return Dw}var Mw,Pw,jw={};function Cw(){if(Mw)return jw;Mw=1,jw.startOfDay=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setHours(0,0,0,0),r};var e=qb();return jw}function Nw(){if(Pw)return Aw;Pw=1,Aw.differenceInCalendarDays=function(i,o,a){const[s,d]=(0,t.normalizeDates)(a?.in,i,o),c=(0,r.startOfDay)(s),u=(0,r.startOfDay)(d),l=+c-(0,e.getTimezoneOffsetInMilliseconds)(c),p=+u-(0,e.getTimezoneOffsetInMilliseconds)(u);return Math.round((l-p)/n.millisecondsInDay)};var e=Ow(),t=Sw(),n=Cb(),r=Cw();return Aw}var Rw,Uw,Lw,qw={};function Gw(){if(Rw)return qw;Rw=1,qw.startOfISOWeekYear=function(r,i){const o=(0,t.getISOWeekYear)(r,i),a=(0,e.constructFrom)(i?.in||r,0);return a.setFullYear(o,0,4),a.setHours(0,0,0,0),(0,n.startOfISOWeek)(a)};var e=Nb(),t=Iw(),n=kw();return qw}function zw(){if(Uw)return Ew;Uw=1,Ew.setISOWeekYear=function(i,o,a){let s=(0,r.toDate)(i,a?.in);const d=(0,t.differenceInCalendarDays)(s,(0,n.startOfISOWeekYear)(s,a)),c=(0,e.constructFrom)(a?.in||i,0);return c.setFullYear(o,0,4),c.setHours(0,0,0,0),s=(0,n.startOfISOWeekYear)(c),s.setDate(s.getDate()+d),s};var e=Nb(),t=Nw(),n=Gw(),r=qb();return Ew}function Fw(){if(Lw)return hw;Lw=1,hw.addISOWeekYears=function(n,r,i){return(0,t.setISOWeekYear)(n,(0,e.getISOWeekYear)(n,i)+r,i)};var e=Iw(),t=zw();return hw}var Bw,Ww={};function Zw(){if(Bw)return Ww;Bw=1,Ww.addMinutes=function(n,r,i){const o=(0,t.toDate)(n,i?.in);return o.setTime(o.getTime()+r*e.millisecondsInMinute),o};var e=Cb(),t=qb();return Ww}var Yw,Vw={};function Hw(){if(Yw)return Vw;Yw=1,Vw.addQuarters=function(t,n,r){return(0,e.addMonths)(t,3*n,r)};var e=Wb();return Vw}var Kw,Jw={};function Qw(){if(Kw)return Jw;Kw=1,Jw.addSeconds=function(t,n,r){return(0,e.addMilliseconds)(t,1e3*n,r)};var e=cw();return Jw}var Xw,e$={};function t$(){if(Xw)return e$;Xw=1,e$.addWeeks=function(t,n,r){return(0,e.addDays)(t,7*n,r)};var e=Gb();return e$}var n$,r$={};function i$(){if(n$)return r$;n$=1,r$.addYears=function(t,n,r){return(0,e.addMonths)(t,12*n,r)};var e=Wb();return r$}var o$,a$={};function s$(){if(o$)return a$;o$=1,a$.areIntervalsOverlapping=function(t,n,r){const[i,o]=[+(0,e.toDate)(t.start,r?.in),+(0,e.toDate)(t.end,r?.in)].sort(((e,t)=>e-t)),[a,s]=[+(0,e.toDate)(n.start,r?.in),+(0,e.toDate)(n.end,r?.in)].sort(((e,t)=>e-t));return r?.inclusive?i<=s&&a<=o:i<s&&a<o};var e=qb();return a$}var d$,c$={},u$={};function l$(){if(d$)return u$;d$=1,u$.max=function(n,r){let i,o=r?.in;return n.forEach((n=>{o||"object"!=typeof n||(o=e.constructFrom.bind(null,n));const r=(0,t.toDate)(n,o);(!i||i<r||isNaN(+r))&&(i=r)})),(0,e.constructFrom)(o,i||NaN)};var e=Nb(),t=qb();return u$}var p$,m$,f$={};function h$(){if(p$)return f$;p$=1,f$.min=function(n,r){let i,o=r?.in;return n.forEach((n=>{o||"object"!=typeof n||(o=e.constructFrom.bind(null,n));const r=(0,t.toDate)(n,o);(!i||i>r||isNaN(+r))&&(i=r)})),(0,e.constructFrom)(o,i||NaN)};var e=Nb(),t=qb();return f$}function v$(){if(m$)return c$;m$=1,c$.clamp=function(r,i,o){const[a,s,d]=(0,e.normalizeDates)(o?.in,r,i.start,i.end);return(0,n.min)([(0,t.max)([a,s],o),d],o)};var e=Sw(),t=l$(),n=h$();return c$}var g$,y$={};function b$(){if(g$)return y$;g$=1,y$.closestIndexTo=function(t,n){const r=+(0,e.toDate)(t);if(isNaN(r))return NaN;let i,o;return n.forEach(((t,n)=>{const a=(0,e.toDate)(t);if(isNaN(+a))return i=NaN,void(o=NaN);const s=Math.abs(r-+a);(null==i||s<o)&&(i=n,o=s)})),i};var e=qb();return y$}var w$,$$={};function k$(){if(w$)return $$;w$=1,$$.closestTo=function(r,i,o){const[a,...s]=(0,e.normalizeDates)(o?.in,r,...i),d=(0,t.closestIndexTo)(a,s);return"number"==typeof d&&isNaN(d)?(0,n.constructFrom)(a,NaN):void 0!==d?s[d]:void 0};var e=Sw(),t=b$(),n=Nb();return $$}var I$,x$={};function E$(){if(I$)return x$;I$=1,x$.compareAsc=function(t,n){const r=+(0,e.toDate)(t)-+(0,e.toDate)(n);return r<0?-1:r>0?1:r};var e=qb();return x$}var A$,T$={};function O$(){if(A$)return T$;A$=1,T$.compareDesc=function(t,n){const r=+(0,e.toDate)(t)-+(0,e.toDate)(n);return r>0?-1:r<0?1:r};var e=qb();return T$}var _$,D$={};function S$(){if(_$)return D$;_$=1,D$.constructNow=function(t){return(0,e.constructFrom)(t,Date.now())};var e=Nb();return D$}var M$,P$={};function j$(){if(M$)return P$;M$=1,P$.daysToWeeks=function(t){const n=Math.trunc(t/e.daysInWeek);return 0===n?0:n};var e=Cb();return P$}var C$,N$={},R$={};function U$(){if(C$)return R$;C$=1,R$.isSameDay=function(n,r,i){const[o,a]=(0,e.normalizeDates)(i?.in,n,r);return+(0,t.startOfDay)(o)==+(0,t.startOfDay)(a)};var e=Sw(),t=Cw();return R$}var L$,q$,G$,z$={},F$={};function B$(){return L$||(L$=1,F$.isDate=function(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}),F$}function W$(){if(q$)return z$;q$=1,z$.isValid=function(n){return!(!(0,e.isDate)(n)&&"number"!=typeof n||isNaN(+(0,t.toDate)(n)))};var e=B$(),t=qb();return z$}function Z$(){if(G$)return N$;G$=1,N$.differenceInBusinessDays=function(a,s,d){const[c,u]=(0,e.normalizeDates)(d?.in,a,s);if(!(0,i.isValid)(c)||!(0,i.isValid)(u))return NaN;const l=(0,n.differenceInCalendarDays)(c,u),p=l<0?-1:1,m=Math.trunc(l/7);let f=5*m,h=(0,t.addDays)(u,7*m);for(;!(0,r.isSameDay)(c,h);)f+=(0,o.isWeekend)(h,d)?0:p,h=(0,t.addDays)(h,p);return 0===f?0:f};var e=Sw(),t=Gb(),n=Nw(),r=U$(),i=W$(),o=rw();return N$}var Y$,V$={};function H$(){if(Y$)return V$;Y$=1,V$.differenceInCalendarISOWeekYears=function(n,r,i){const[o,a]=(0,e.normalizeDates)(i?.in,n,r);return(0,t.getISOWeekYear)(o,i)-(0,t.getISOWeekYear)(a,i)};var e=Sw(),t=Iw();return V$}var K$,J$={};function Q$(){if(K$)return J$;K$=1,J$.differenceInCalendarISOWeeks=function(i,o,a){const[s,d]=(0,t.normalizeDates)(a?.in,i,o),c=(0,r.startOfISOWeek)(s),u=(0,r.startOfISOWeek)(d),l=+c-(0,e.getTimezoneOffsetInMilliseconds)(c),p=+u-(0,e.getTimezoneOffsetInMilliseconds)(u);return Math.round((l-p)/n.millisecondsInWeek)};var e=Ow(),t=Sw(),n=Cb(),r=kw();return J$}var X$,ek={};function tk(){if(X$)return ek;X$=1,ek.differenceInCalendarMonths=function(t,n,r){const[i,o]=(0,e.normalizeDates)(r?.in,t,n);return 12*(i.getFullYear()-o.getFullYear())+(i.getMonth()-o.getMonth())};var e=Sw();return ek}var nk,rk,ik={},ok={};function ak(){if(nk)return ok;nk=1,ok.getQuarter=function(t,n){const r=(0,e.toDate)(t,n?.in);return Math.trunc(r.getMonth()/3)+1};var e=qb();return ok}function sk(){if(rk)return ik;rk=1,ik.differenceInCalendarQuarters=function(n,r,i){const[o,a]=(0,e.normalizeDates)(i?.in,n,r);return 4*(o.getFullYear()-a.getFullYear())+((0,t.getQuarter)(o)-(0,t.getQuarter)(a))};var e=Sw(),t=ak();return ik}var dk,ck={};function uk(){if(dk)return ck;dk=1,ck.differenceInCalendarWeeks=function(i,o,a){const[s,d]=(0,t.normalizeDates)(a?.in,i,o),c=(0,r.startOfWeek)(s,a),u=(0,r.startOfWeek)(d,a),l=+c-(0,e.getTimezoneOffsetInMilliseconds)(c),p=+u-(0,e.getTimezoneOffsetInMilliseconds)(u);return Math.round((l-p)/n.millisecondsInWeek)};var e=Ow(),t=Sw(),n=Cb(),r=$w();return ck}var lk,pk={};function mk(){if(lk)return pk;lk=1,pk.differenceInCalendarYears=function(t,n,r){const[i,o]=(0,e.normalizeDates)(r?.in,t,n);return i.getFullYear()-o.getFullYear()};var e=Sw();return pk}var fk,hk={};function vk(){if(fk)return hk;fk=1,hk.differenceInDays=function(r,i,o){const[a,s]=(0,e.normalizeDates)(o?.in,r,i),d=n(a,s),c=Math.abs((0,t.differenceInCalendarDays)(a,s));a.setDate(a.getDate()-d*c);const u=d*(c-Number(n(a,s)===-d));return 0===u?0:u};var e=Sw(),t=Nw();function n(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}return hk}var gk,yk,bk={},wk={};function $k(){return gk||(gk=1,wk.getRoundingMethod=function(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}),wk}function kk(){if(yk)return bk;yk=1,bk.differenceInHours=function(r,i,o){const[a,s]=(0,t.normalizeDates)(o?.in,r,i),d=(+a-+s)/n.millisecondsInHour;return(0,e.getRoundingMethod)(o?.roundingMethod)(d)};var e=$k(),t=Sw(),n=Cb();return bk}var Ik,xk,Ek={},Ak={};function Tk(){if(Ik)return Ak;Ik=1,Ak.subISOWeekYears=function(t,n,r){return(0,e.addISOWeekYears)(t,-n,r)};var e=Fw();return Ak}function Ok(){if(xk)return Ek;xk=1,Ek.differenceInISOWeekYears=function(i,o,a){const[s,d]=(0,e.normalizeDates)(a?.in,i,o),c=(0,t.compareAsc)(s,d),u=Math.abs((0,n.differenceInCalendarISOWeekYears)(s,d,a)),l=(0,r.subISOWeekYears)(s,c*u,a),p=c*(u-Number((0,t.compareAsc)(l,d)===-c));return 0===p?0:p};var e=Sw(),t=E$(),n=H$(),r=Tk();return Ek}var _k,Dk={};function Sk(){if(_k)return Dk;_k=1,Dk.differenceInMilliseconds=function(t,n){return+(0,e.toDate)(t)-+(0,e.toDate)(n)};var e=qb();return Dk}var Mk,Pk={};function jk(){if(Mk)return Pk;Mk=1,Pk.differenceInMinutes=function(r,i,o){const a=(0,n.differenceInMilliseconds)(r,i)/t.millisecondsInMinute;return(0,e.getRoundingMethod)(o?.roundingMethod)(a)};var e=$k(),t=Cb(),n=Sk();return Pk}var Ck,Nk={},Rk={},Uk={};function Lk(){if(Ck)return Uk;Ck=1,Uk.endOfDay=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setHours(23,59,59,999),r};var e=qb();return Uk}var qk,Gk,zk,Fk={};function Bk(){if(qk)return Fk;qk=1,Fk.endOfMonth=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getMonth();return r.setFullYear(r.getFullYear(),i+1,0),r.setHours(23,59,59,999),r};var e=qb();return Fk}function Wk(){if(Gk)return Rk;Gk=1,Rk.isLastDayOfMonth=function(r,i){const o=(0,n.toDate)(r,i?.in);return+(0,e.endOfDay)(o,i)==+(0,t.endOfMonth)(o,i)};var e=Lk(),t=Bk(),n=qb();return Rk}function Zk(){if(zk)return Nk;zk=1,Nk.differenceInMonths=function(i,o,a){const[s,d,c]=(0,e.normalizeDates)(a?.in,i,i,o),u=(0,t.compareAsc)(d,c),l=Math.abs((0,n.differenceInCalendarMonths)(d,c));if(l<1)return 0;1===d.getMonth()&&d.getDate()>27&&d.setDate(30),d.setMonth(d.getMonth()-u*l);let p=(0,t.compareAsc)(d,c)===-u;(0,r.isLastDayOfMonth)(s)&&1===l&&1===(0,t.compareAsc)(s,c)&&(p=!1);const m=u*(l-+p);return 0===m?0:m};var e=Sw(),t=E$(),n=tk(),r=Wk();return Nk}var Yk,Vk={};function Hk(){if(Yk)return Vk;Yk=1,Vk.differenceInQuarters=function(n,r,i){const o=(0,t.differenceInMonths)(n,r,i)/3;return(0,e.getRoundingMethod)(i?.roundingMethod)(o)};var e=$k(),t=Zk();return Vk}var Kk,Jk={};function Qk(){if(Kk)return Jk;Kk=1,Jk.differenceInSeconds=function(n,r,i){const o=(0,t.differenceInMilliseconds)(n,r)/1e3;return(0,e.getRoundingMethod)(i?.roundingMethod)(o)};var e=$k(),t=Sk();return Jk}var Xk,eI={};function tI(){if(Xk)return eI;Xk=1,eI.differenceInWeeks=function(n,r,i){const o=(0,t.differenceInDays)(n,r,i)/7;return(0,e.getRoundingMethod)(i?.roundingMethod)(o)};var e=$k(),t=vk();return eI}var nI,rI={};function iI(){if(nI)return rI;nI=1,rI.differenceInYears=function(r,i,o){const[a,s]=(0,e.normalizeDates)(o?.in,r,i),d=(0,t.compareAsc)(a,s),c=Math.abs((0,n.differenceInCalendarYears)(a,s));a.setFullYear(1584),s.setFullYear(1584);const u=d*(c-+((0,t.compareAsc)(a,s)===-d));return 0===u?0:u};var e=Sw(),t=E$(),n=mk();return rI}var oI,aI,sI={},dI={};function cI(){if(oI)return dI;oI=1,dI.normalizeInterval=function(t,n){const[r,i]=(0,e.normalizeDates)(t,n.start,n.end);return{start:r,end:i}};var e=Sw();return dI}function uI(){if(aI)return sI;aI=1,sI.eachDayOfInterval=function(n,r){const{start:i,end:o}=(0,e.normalizeInterval)(r?.in,n);let a=+i>+o;const s=a?+i:+o,d=a?o:i;d.setHours(0,0,0,0);let c=r?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);const u=[];for(;+d<=s;)u.push((0,t.constructFrom)(i,d)),d.setDate(d.getDate()+c),d.setHours(0,0,0,0);return a?u.reverse():u};var e=cI(),t=Nb();return sI}var lI,pI={};function mI(){if(lI)return pI;lI=1,pI.eachHourOfInterval=function(n,r){const{start:i,end:o}=(0,e.normalizeInterval)(r?.in,n);let a=+i>+o;const s=a?+i:+o,d=a?o:i;d.setMinutes(0,0,0);let c=r?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);const u=[];for(;+d<=s;)u.push((0,t.constructFrom)(i,d)),d.setHours(d.getHours()+c);return a?u.reverse():u};var e=cI(),t=Nb();return pI}var fI,hI={};function vI(){if(fI)return hI;fI=1,hI.eachMinuteOfInterval=function(r,i){const{start:o,end:a}=(0,e.normalizeInterval)(i?.in,r);o.setSeconds(0,0);let s=+o>+a;const d=s?+o:+a;let c=s?a:o,u=i?.step??1;if(!u)return[];u<0&&(u=-u,s=!s);const l=[];for(;+c<=d;)l.push((0,n.constructFrom)(o,c)),c=(0,t.addMinutes)(c,u);return s?l.reverse():l};var e=cI(),t=Zw(),n=Nb();return hI}var gI,yI={};function bI(){if(gI)return yI;gI=1,yI.eachMonthOfInterval=function(n,r){const{start:i,end:o}=(0,e.normalizeInterval)(r?.in,n);let a=+i>+o;const s=a?+i:+o,d=a?o:i;d.setHours(0,0,0,0),d.setDate(1);let c=r?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);const u=[];for(;+d<=s;)u.push((0,t.constructFrom)(i,d)),d.setMonth(d.getMonth()+c);return a?u.reverse():u};var e=cI(),t=Nb();return yI}var wI,$I,kI={},II={};function xI(){if(wI)return II;wI=1,II.startOfQuarter=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getMonth();return r.setMonth(i-i%3,1),r.setHours(0,0,0,0),r};var e=qb();return II}function EI(){if($I)return kI;$I=1,kI.eachQuarterOfInterval=function(i,o){const{start:a,end:s}=(0,e.normalizeInterval)(o?.in,i);let d=+a>+s;const c=d?+(0,r.startOfQuarter)(a):+(0,r.startOfQuarter)(s);let u=(0,r.startOfQuarter)(d?s:a),l=o?.step??1;if(!l)return[];l<0&&(l=-l,d=!d);const p=[];for(;+u<=c;)p.push((0,n.constructFrom)(a,u)),u=(0,t.addQuarters)(u,l);return d?p.reverse():p};var e=cI(),t=Hw(),n=Nb(),r=xI();return kI}var AI,TI={};function OI(){if(AI)return TI;AI=1,TI.eachWeekOfInterval=function(i,o){const{start:a,end:s}=(0,e.normalizeInterval)(o?.in,i);let d=+a>+s;const c=(0,r.startOfWeek)(d?s:a,o),u=(0,r.startOfWeek)(d?a:s,o);c.setHours(15),u.setHours(15);const l=+u.getTime();let p=c,m=o?.step??1;if(!m)return[];m<0&&(m=-m,d=!d);const f=[];for(;+p<=l;)p.setHours(0),f.push((0,n.constructFrom)(a,p)),p=(0,t.addWeeks)(p,m),p.setHours(15);return d?f.reverse():f};var e=cI(),t=t$(),n=Nb(),r=$w();return TI}var _I,DI={};function SI(){if(_I)return DI;_I=1,DI.eachWeekendOfInterval=function(i,o){const{start:a,end:s}=(0,e.normalizeInterval)(o?.in,i),d=(0,n.eachDayOfInterval)({start:a,end:s},o),c=[];let u=0;for(;u<d.length;){const e=d[u++];(0,r.isWeekend)(e)&&c.push((0,t.constructFrom)(a,e))}return c};var e=cI(),t=Nb(),n=uI(),r=rw();return DI}var MI,PI,jI={},CI={};function NI(){if(MI)return CI;MI=1,CI.startOfMonth=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setDate(1),r.setHours(0,0,0,0),r};var e=qb();return CI}function RI(){if(PI)return jI;PI=1,jI.eachWeekendOfMonth=function(r,i){const o=(0,n.startOfMonth)(r,i),a=(0,t.endOfMonth)(r,i);return(0,e.eachWeekendOfInterval)({start:o,end:a},i)};var e=SI(),t=Bk(),n=NI();return jI}var UI,LI={},qI={};function GI(){if(UI)return qI;UI=1,qI.endOfYear=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getFullYear();return r.setFullYear(i+1,0,0),r.setHours(23,59,59,999),r};var e=qb();return qI}var zI,FI,BI={};function WI(){if(zI)return BI;zI=1,BI.startOfYear=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r};var e=qb();return BI}function ZI(){if(FI)return LI;FI=1,LI.eachWeekendOfYear=function(r,i){const o=(0,n.startOfYear)(r,i),a=(0,t.endOfYear)(r,i);return(0,e.eachWeekendOfInterval)({start:o,end:a},i)};var e=SI(),t=GI(),n=WI();return LI}var YI,VI={};function HI(){if(YI)return VI;YI=1,VI.eachYearOfInterval=function(n,r){const{start:i,end:o}=(0,e.normalizeInterval)(r?.in,n);let a=+i>+o;const s=a?+i:+o,d=a?o:i;d.setHours(0,0,0,0),d.setMonth(0,1);let c=r?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);const u=[];for(;+d<=s;)u.push((0,t.constructFrom)(i,d)),d.setFullYear(d.getFullYear()+c);return a?u.reverse():u};var e=cI(),t=Nb();return VI}var KI,JI={};function QI(){if(KI)return JI;KI=1,JI.endOfDecade=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getFullYear(),o=9+10*Math.floor(i/10);return r.setFullYear(o,11,31),r.setHours(23,59,59,999),r};var e=qb();return JI}var XI,ex={};function tx(){if(XI)return ex;XI=1,ex.endOfHour=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setMinutes(59,59,999),r};var e=qb();return ex}var nx,rx,ix={},ox={};function ax(){if(nx)return ox;nx=1,ox.endOfWeek=function(n,r){const i=(0,e.getDefaultOptions)(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,a=(0,t.toDate)(n,r?.in),s=a.getDay(),d=6+(s<o?-7:0)-(s-o);return a.setDate(a.getDate()+d),a.setHours(23,59,59,999),a};var e=ww(),t=qb();return ox}function sx(){if(rx)return ix;rx=1,ix.endOfISOWeek=function(t,n){return(0,e.endOfWeek)(t,{...n,weekStartsOn:1})};var e=ax();return ix}var dx,cx={};function ux(){if(dx)return cx;dx=1,cx.endOfISOWeekYear=function(r,i){const o=(0,t.getISOWeekYear)(r,i),a=(0,e.constructFrom)(i?.in||r,0);a.setFullYear(o+1,0,4),a.setHours(0,0,0,0);const s=(0,n.startOfISOWeek)(a,i);return s.setMilliseconds(s.getMilliseconds()-1),s};var e=Nb(),t=Iw(),n=kw();return cx}var lx,px={};function mx(){if(lx)return px;lx=1,px.endOfMinute=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setSeconds(59,999),r};var e=qb();return px}var fx,hx={};function vx(){if(fx)return hx;fx=1,hx.endOfQuarter=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getMonth();return r.setMonth(i-i%3+3,0),r.setHours(23,59,59,999),r};var e=qb();return hx}var gx,yx={};function bx(){if(gx)return yx;gx=1,yx.endOfSecond=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setMilliseconds(999),r};var e=qb();return yx}var wx,$x={};function kx(){if(wx)return $x;wx=1,$x.endOfToday=function(t){return(0,e.endOfDay)(Date.now(),t)};var e=Lk();return $x}var Ix,xx={};function Ex(){if(Ix)return xx;Ix=1,xx.endOfTomorrow=function(t){const n=(0,e.constructNow)(t?.in),r=n.getFullYear(),i=n.getMonth(),o=n.getDate(),a=(0,e.constructNow)(t?.in);return a.setFullYear(r,i,o+1),a.setHours(23,59,59,999),t?.in?t.in(a):a};var e=S$();return xx}var Ax,Tx={};function Ox(){if(Ax)return Tx;Ax=1,Tx.endOfYesterday=function(n){const r=(0,t.constructNow)(n?.in),i=(0,e.constructFrom)(n?.in,0);return i.setFullYear(r.getFullYear(),r.getMonth(),r.getDate()-1),i.setHours(23,59,59,999),i};var e=Nb(),t=S$();return Tx}var _x,Dx={},Sx={},Mx={},Px={};function jx(){if(_x)return Px;_x=1,Px.formatDistance=void 0;const e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};return Px.formatDistance=(t,n,r)=>{let i;const o=e[t];return i="string"==typeof o?o:1===n?o.one:o.other.replace("{{count}}",n.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i},Px}var Cx,Nx,Rx={},Ux={};function Lx(){return Cx||(Cx=1,Ux.buildFormatLongFn=function(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}),Ux}function qx(){if(Nx)return Rx;Nx=1,Rx.formatLong=void 0;var e=Lx();return Rx.formatLong={date:(0,e.buildFormatLongFn)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,e.buildFormatLongFn)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,e.buildFormatLongFn)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Rx}var Gx,zx={};function Fx(){if(Gx)return zx;Gx=1,zx.formatRelative=void 0;const e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};return zx.formatRelative=t=>e[t],zx}var Bx,Wx,Zx={},Yx={};function Vx(){return Bx||(Bx=1,Yx.buildLocalizeFn=function(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}),Yx}function Hx(){if(Wx)return Zx;Wx=1,Zx.localize=void 0;var e=Vx();return Zx.localize={ordinalNumber:e=>{const t=Number(e),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},era:(0,e.buildLocalizeFn)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,e.buildLocalizeFn)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,e.buildLocalizeFn)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,e.buildLocalizeFn)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,e.buildLocalizeFn)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},Zx}var Kx,Jx={},Qx={};function Xx(){return Kx||(Kx=1,Qx.buildMatchFn=function(e){return(t,n={})=>{const r=n.width,i=t.match(r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth]);if(!i)return null;const o=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?function(e){for(let t=0;t<e.length;t++)if(e[t].test(o))return t}(a):function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(o))return t}(a);let d;return d=e.valueCallback?e.valueCallback(s):s,d=n.valueCallback?n.valueCallback(d):d,{value:d,rest:t.slice(o.length)}}}),Qx}var eE,tE,nE,rE,iE={};function oE(){return eE||(eE=1,iE.buildMatchPatternFn=function(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];return a=n.valueCallback?n.valueCallback(a):a,{value:a,rest:t.slice(i.length)}}}),iE}function aE(){if(tE)return Jx;tE=1,Jx.match=void 0;var e=Xx();return Jx.match={ordinalNumber:(0,oE().buildMatchPatternFn)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,e.buildMatchFn)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,e.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,e.buildMatchFn)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,e.buildMatchFn)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,e.buildMatchFn)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},Jx}function sE(){return nE||(nE=1,Mx.enUS=void 0,Mx.enUS={code:"en-US",formatDistance:jx().formatDistance,formatLong:qx().formatLong,formatRelative:Fx().formatRelative,localize:Hx().localize,match:aE().match,options:{weekStartsOn:0,firstWeekContainsDate:1}}),Mx}function dE(){return rE||(rE=1,function(){Object.defineProperty(Sx,"defaultLocale",{enumerable:!0,get:function(){return e.enUS}});var e=sE()}()),Sx}var cE,uE={},lE={};function pE(){if(cE)return lE;cE=1,lE.getDayOfYear=function(r,i){const o=(0,n.toDate)(r,i?.in);return(0,e.differenceInCalendarDays)(o,(0,t.startOfYear)(o))+1};var e=Nw(),t=WI(),n=qb();return lE}var mE,fE={};function hE(){if(mE)return fE;mE=1,fE.getISOWeek=function(i,o){const a=(0,r.toDate)(i,o?.in),s=+(0,t.startOfISOWeek)(a)-+(0,n.startOfISOWeekYear)(a);return Math.round(s/e.millisecondsInWeek)+1};var e=Cb(),t=kw(),n=Gw(),r=qb();return fE}var vE,gE,yE,bE={},wE={},$E={};function kE(){if(vE)return $E;vE=1,$E.getWeekYear=function(i,o){const a=(0,r.toDate)(i,o?.in),s=a.getFullYear(),d=(0,e.getDefaultOptions)(),c=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,u=(0,t.constructFrom)(o?.in||i,0);u.setFullYear(s+1,0,c),u.setHours(0,0,0,0);const l=(0,n.startOfWeek)(u,o),p=(0,t.constructFrom)(o?.in||i,0);p.setFullYear(s,0,c),p.setHours(0,0,0,0);const m=(0,n.startOfWeek)(p,o);return+a>=+l?s+1:+a>=+m?s:s-1};var e=ww(),t=Nb(),n=$w(),r=qb();return $E}function IE(){if(gE)return wE;gE=1,wE.startOfWeekYear=function(i,o){const a=(0,e.getDefaultOptions)(),s=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,d=(0,n.getWeekYear)(i,o),c=(0,t.constructFrom)(o?.in||i,0);return c.setFullYear(d,0,s),c.setHours(0,0,0,0),(0,r.startOfWeek)(c,o)};var e=ww(),t=Nb(),n=kE(),r=$w();return wE}function xE(){if(yE)return bE;yE=1,bE.getWeek=function(i,o){const a=(0,r.toDate)(i,o?.in),s=+(0,t.startOfWeek)(a,o)-+(0,n.startOfWeekYear)(a,o);return Math.round(s/e.millisecondsInWeek)+1};var e=Cb(),t=$w(),n=IE(),r=qb();return bE}var EE,AE={};function TE(){return EE||(EE=1,AE.addLeadingZeros=function(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}),AE}var OE,_E,DE={};function SE(){if(OE)return DE;OE=1,DE.lightFormatters=void 0;var e=TE();return DE.lightFormatters={y(t,n){const r=t.getFullYear(),i=r>0?r:1-r;return(0,e.addLeadingZeros)("yy"===n?i%100:i,n.length)},M(t,n){const r=t.getMonth();return"M"===n?String(r+1):(0,e.addLeadingZeros)(r+1,2)},d:(t,n)=>(0,e.addLeadingZeros)(t.getDate(),n.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(t,n)=>(0,e.addLeadingZeros)(t.getHours()%12||12,n.length),H:(t,n)=>(0,e.addLeadingZeros)(t.getHours(),n.length),m:(t,n)=>(0,e.addLeadingZeros)(t.getMinutes(),n.length),s:(t,n)=>(0,e.addLeadingZeros)(t.getSeconds(),n.length),S(t,n){const r=n.length,i=t.getMilliseconds(),o=Math.trunc(i*Math.pow(10,r-3));return(0,e.addLeadingZeros)(o,n.length)}},DE}function ME(){if(_E)return uE;_E=1,uE.formatters=void 0;var e=pE(),t=hE(),n=Iw(),r=xE(),i=kE(),o=TE(),a=SE();function s(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return 0===a?n+String(i):n+String(i)+t+(0,o.addLeadingZeros)(a,2)}function d(e,t){return e%60==0?(e>0?"-":"+")+(0,o.addLeadingZeros)(Math.abs(e)/60,2):c(e,t)}function c(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+(0,o.addLeadingZeros)(Math.trunc(r/60),2)+t+(0,o.addLeadingZeros)(r%60,2)}return uE.formatters={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return a.lightFormatters.y(e,t)},Y:function(e,t,n,r){const a=(0,i.getWeekYear)(e,r),s=a>0?a:1-a;return"YY"===t?(0,o.addLeadingZeros)(s%100,2):"Yo"===t?n.ordinalNumber(s,{unit:"year"}):(0,o.addLeadingZeros)(s,t.length)},R:function(e,t){const r=(0,n.getISOWeekYear)(e);return(0,o.addLeadingZeros)(r,t.length)},u:function(e,t){const n=e.getFullYear();return(0,o.addLeadingZeros)(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,o.addLeadingZeros)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,o.addLeadingZeros)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return a.lightFormatters.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return(0,o.addLeadingZeros)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){const a=(0,r.getWeek)(e,i);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):(0,o.addLeadingZeros)(a,t.length)},I:function(e,n,r){const i=(0,t.getISOWeek)(e);return"Io"===n?r.ordinalNumber(i,{unit:"week"}):(0,o.addLeadingZeros)(i,n.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):a.lightFormatters.d(e,t)},D:function(t,n,r){const i=(0,e.getDayOfYear)(t);return"Do"===n?r.ordinalNumber(i,{unit:"dayOfYear"}):(0,o.addLeadingZeros)(i,n.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return(0,o.addLeadingZeros)(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return(0,o.addLeadingZeros)(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return(0,o.addLeadingZeros)(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(i=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(i=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return a.lightFormatters.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):a.lightFormatters.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,o.addLeadingZeros)(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,o.addLeadingZeros)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):a.lightFormatters.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):a.lightFormatters.s(e,t)},S:function(e,t){return a.lightFormatters.S(e,t)},X:function(e,t){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return d(n);case"XXXX":case"XX":return c(n);default:return c(n,":")}},x:function(e,t){const n=e.getTimezoneOffset();switch(t){case"x":return d(n);case"xxxx":case"xx":return c(n);default:return c(n,":")}},O:function(e,t){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+s(n,":");default:return"GMT"+c(n,":")}},z:function(e,t){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+s(n,":");default:return"GMT"+c(n,":")}},t:function(e,t){const n=Math.trunc(+e/1e3);return(0,o.addLeadingZeros)(n,t.length)},T:function(e,t){return(0,o.addLeadingZeros)(+e,t.length)}},uE}var PE,jE={};function CE(){if(PE)return jE;PE=1,jE.longFormatters=void 0;const e=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},t=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};return jE.longFormatters={p:t,P:(n,r)=>{const i=n.match(/(P+)(p+)?/)||[],o=i[1],a=i[2];if(!a)return e(n,r);let s;switch(o){case"P":s=r.dateTime({width:"short"});break;case"PP":s=r.dateTime({width:"medium"});break;case"PPP":s=r.dateTime({width:"long"});break;default:s=r.dateTime({width:"full"})}return s.replace("{{date}}",e(o,r)).replace("{{time}}",t(a,r))}},jE}var NE,RE,UE={};function LE(){if(NE)return UE;NE=1,UE.isProtectedDayOfYearToken=function(t){return e.test(t)},UE.isProtectedWeekYearToken=function(e){return t.test(e)},UE.warnOrThrowProtectedError=function(e,t,r){const i=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(i),n.includes(e))throw new RangeError(i)};const e=/^D+$/,t=/^Y+$/,n=["D","DD","YY","YYYY"];return UE}function qE(){return RE||(RE=1,function(e){e.format=e.formatDate=function(e,u,l){const f=(0,n.getDefaultOptions)(),h=l?.locale??f.locale??t.defaultLocale,v=l?.firstWeekContainsDate??l?.locale?.options?.firstWeekContainsDate??f.firstWeekContainsDate??f.locale?.options?.firstWeekContainsDate??1,g=l?.weekStartsOn??l?.locale?.options?.weekStartsOn??f.weekStartsOn??f.locale?.options?.weekStartsOn??0,y=(0,s.toDate)(e,l?.in);if(!(0,a.isValid)(y))throw new RangeError("Invalid time value");let b=u.match(c).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,i.longFormatters[t])(e,h.formatLong):e})).join("").match(d).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:m(e)};if(r.formatters[t])return{isToken:!0,value:e};if(t.match(p))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));h.localize.preprocessor&&(b=h.localize.preprocessor(y,b));const w={firstWeekContainsDate:v,weekStartsOn:g,locale:h};return b.map((t=>{if(!t.isToken)return t.value;const n=t.value;return(!l?.useAdditionalWeekYearTokens&&(0,o.isProtectedWeekYearToken)(n)||!l?.useAdditionalDayOfYearTokens&&(0,o.isProtectedDayOfYearToken)(n))&&(0,o.warnOrThrowProtectedError)(n,u,String(e)),(0,r.formatters[n[0]])(y,n,h.localize,w)})).join("")},Object.defineProperty(e,"formatters",{enumerable:!0,get:function(){return r.formatters}}),Object.defineProperty(e,"longFormatters",{enumerable:!0,get:function(){return i.longFormatters}});var t=dE(),n=ww(),r=ME(),i=CE(),o=LE(),a=W$(),s=qb();const d=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,c=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,u=/^'([^]*?)'?$/,l=/''/g,p=/[a-zA-Z]/;function m(e){const t=e.match(u);return t?t[1].replace(l,"'"):e}}(Dx)),Dx}var GE,zE={};function FE(){if(GE)return zE;GE=1,zE.formatDistance=function(d,c,u){const l=(0,t.getDefaultOptions)(),p=u?.locale??l.locale??e.defaultLocale,m=(0,i.compareAsc)(d,c);if(isNaN(m))throw new RangeError("Invalid time value");const f=Object.assign({},u,{addSuffix:u?.addSuffix,comparison:m}),[h,v]=(0,r.normalizeDates)(u?.in,...m>0?[c,d]:[d,c]),g=(0,s.differenceInSeconds)(v,h),y=((0,n.getTimezoneOffsetInMilliseconds)(v)-(0,n.getTimezoneOffsetInMilliseconds)(h))/1e3,b=Math.round((g-y)/60);let w;if(b<2)return u?.includeSeconds?g<5?p.formatDistance("lessThanXSeconds",5,f):g<10?p.formatDistance("lessThanXSeconds",10,f):g<20?p.formatDistance("lessThanXSeconds",20,f):g<40?p.formatDistance("halfAMinute",0,f):p.formatDistance(g<60?"lessThanXMinutes":"xMinutes",1,f):0===b?p.formatDistance("lessThanXMinutes",1,f):p.formatDistance("xMinutes",b,f);if(b<45)return p.formatDistance("xMinutes",b,f);if(b<90)return p.formatDistance("aboutXHours",1,f);if(b<o.minutesInDay){const e=Math.round(b/60);return p.formatDistance("aboutXHours",e,f)}if(b<2520)return p.formatDistance("xDays",1,f);if(b<o.minutesInMonth){const e=Math.round(b/o.minutesInDay);return p.formatDistance("xDays",e,f)}if(b<2*o.minutesInMonth)return w=Math.round(b/o.minutesInMonth),p.formatDistance("aboutXMonths",w,f);if(w=(0,a.differenceInMonths)(v,h),w<12){const e=Math.round(b/o.minutesInMonth);return p.formatDistance("xMonths",e,f)}{const e=w%12,t=Math.trunc(w/12);return e<3?p.formatDistance("aboutXYears",t,f):e<9?p.formatDistance("overXYears",t,f):p.formatDistance("almostXYears",t+1,f)}};var e=dE(),t=ww(),n=Ow(),r=Sw(),i=E$(),o=Cb(),a=Zk(),s=Qk();return zE}var BE,WE={};function ZE(){if(BE)return WE;BE=1,WE.formatDistanceStrict=function(s,d,c){const u=(0,t.getDefaultOptions)(),l=c?.locale??u.locale??e.defaultLocale,p=(0,o.compareAsc)(s,d);if(isNaN(p))throw new RangeError("Invalid time value");const m=Object.assign({},c,{addSuffix:c?.addSuffix,comparison:p}),[f,h]=(0,i.normalizeDates)(c?.in,...p>0?[d,s]:[s,d]),v=(0,n.getRoundingMethod)(c?.roundingMethod??"round"),g=h.getTime()-f.getTime(),y=g/a.millisecondsInMinute,b=(g-((0,r.getTimezoneOffsetInMilliseconds)(h)-(0,r.getTimezoneOffsetInMilliseconds)(f)))/a.millisecondsInMinute,w=c?.unit;let $;if($=w||(y<1?"second":y<60?"minute":y<a.minutesInDay?"hour":b<a.minutesInMonth?"day":b<a.minutesInYear?"month":"year"),"second"===$){const e=v(g/1e3);return l.formatDistance("xSeconds",e,m)}if("minute"===$){const e=v(y);return l.formatDistance("xMinutes",e,m)}if("hour"===$){const e=v(y/60);return l.formatDistance("xHours",e,m)}if("day"===$){const e=v(b/a.minutesInDay);return l.formatDistance("xDays",e,m)}if("month"===$){const e=v(b/a.minutesInMonth);return 12===e&&"month"!==w?l.formatDistance("xYears",1,m):l.formatDistance("xMonths",e,m)}{const e=v(b/a.minutesInYear);return l.formatDistance("xYears",e,m)}};var e=dE(),t=ww(),n=$k(),r=Ow(),i=Sw(),o=E$(),a=Cb();return WE}var YE,VE={};function HE(){if(YE)return VE;YE=1,VE.formatDistanceToNow=function(n,r){return(0,t.formatDistance)(n,(0,e.constructNow)(n),r)};var e=S$(),t=FE();return VE}var KE,JE={};function QE(){if(KE)return JE;KE=1,JE.formatDistanceToNowStrict=function(n,r){return(0,t.formatDistanceStrict)(n,(0,e.constructNow)(n),r)};var e=S$(),t=ZE();return JE}var XE,eA={};function tA(){if(XE)return eA;XE=1,eA.formatDuration=function(r,i){const o=(0,t.getDefaultOptions)(),a=i?.locale??o.locale??e.defaultLocale,s=i?.format??n,d=i?.zero??!1,c=i?.delimiter??" ";if(!a.formatDistance)return"";const u=s.reduce(((e,t)=>{const n=`x${t.replace(/(^.)/,(e=>e.toUpperCase()))}`,i=r[t];return void 0!==i&&(d||r[t])?e.concat(a.formatDistance(n,i)):e}),[]).join(c);return u};var e=dE(),t=ww();const n=["years","months","weeks","days","hours","minutes","seconds"];return eA}var nA,rA={};function iA(){if(nA)return rA;nA=1,rA.formatISO=function(n,r){const i=(0,t.toDate)(n,r?.in);if(isNaN(+i))throw new RangeError("Invalid time value");const o=r?.format??"extended",a=r?.representation??"complete";let s="",d="";const c="extended"===o?"-":"",u="extended"===o?":":"";if("time"!==a){const t=(0,e.addLeadingZeros)(i.getDate(),2),n=(0,e.addLeadingZeros)(i.getMonth()+1,2);s=`${(0,e.addLeadingZeros)(i.getFullYear(),4)}${c}${n}${c}${t}`}if("date"!==a){const t=i.getTimezoneOffset();if(0!==t){const n=Math.abs(t);d=`${t<0?"+":"-"}${(0,e.addLeadingZeros)(Math.trunc(n/60),2)}:${(0,e.addLeadingZeros)(n%60,2)}`}else d="Z";s=`${s}${""===s?"":"T"}${[(0,e.addLeadingZeros)(i.getHours(),2),(0,e.addLeadingZeros)(i.getMinutes(),2),(0,e.addLeadingZeros)(i.getSeconds(),2)].join(u)}${d}`}return s};var e=TE(),t=qb();return rA}var oA,aA={};function sA(){if(oA)return aA;oA=1,aA.formatISO9075=function(r,i){const o=(0,n.toDate)(r,i?.in);if(!(0,t.isValid)(o))throw new RangeError("Invalid time value");const a=i?.format??"extended",s=i?.representation??"complete";let d="";const c="extended"===a?"-":"",u="extended"===a?":":"";if("time"!==s){const t=(0,e.addLeadingZeros)(o.getDate(),2),n=(0,e.addLeadingZeros)(o.getMonth()+1,2);d=`${(0,e.addLeadingZeros)(o.getFullYear(),4)}${c}${n}${c}${t}`}return"date"!==s&&(d=`${d}${""===d?"":" "}${(0,e.addLeadingZeros)(o.getHours(),2)}${u}${(0,e.addLeadingZeros)(o.getMinutes(),2)}${u}${(0,e.addLeadingZeros)(o.getSeconds(),2)}`),d};var e=TE(),t=W$(),n=qb();return aA}var dA,cA={};function uA(){return dA||(dA=1,cA.formatISODuration=function(e){const{years:t=0,months:n=0,days:r=0,hours:i=0,minutes:o=0,seconds:a=0}=e;return`P${t}Y${n}M${r}DT${i}H${o}M${a}S`}),cA}var lA,pA={};function mA(){if(lA)return pA;lA=1,pA.formatRFC3339=function(r,i){const o=(0,n.toDate)(r,i?.in);if(!(0,t.isValid)(o))throw new RangeError("Invalid time value");const a=i?.fractionDigits??0,s=(0,e.addLeadingZeros)(o.getDate(),2),d=(0,e.addLeadingZeros)(o.getMonth()+1,2),c=o.getFullYear(),u=(0,e.addLeadingZeros)(o.getHours(),2),l=(0,e.addLeadingZeros)(o.getMinutes(),2),p=(0,e.addLeadingZeros)(o.getSeconds(),2);let m="";if(a>0){const t=o.getMilliseconds(),n=Math.trunc(t*Math.pow(10,a-3));m="."+(0,e.addLeadingZeros)(n,a)}let f="";const h=o.getTimezoneOffset();if(0!==h){const t=Math.abs(h);f=`${h<0?"+":"-"}${(0,e.addLeadingZeros)(Math.trunc(t/60),2)}:${(0,e.addLeadingZeros)(t%60,2)}`}else f="Z";return`${c}-${d}-${s}T${u}:${l}:${p}${m}${f}`};var e=TE(),t=W$(),n=qb();return pA}var fA,hA={};function vA(){if(fA)return hA;fA=1,hA.formatRFC7231=function(o){const a=(0,n.toDate)(o);if(!(0,t.isValid)(a))throw new RangeError("Invalid time value");return`${r[a.getUTCDay()]}, ${(0,e.addLeadingZeros)(a.getUTCDate(),2)} ${i[a.getUTCMonth()]} ${a.getUTCFullYear()} ${(0,e.addLeadingZeros)(a.getUTCHours(),2)}:${(0,e.addLeadingZeros)(a.getUTCMinutes(),2)}:${(0,e.addLeadingZeros)(a.getUTCSeconds(),2)} GMT`};var e=TE(),t=W$(),n=qb();const r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return hA}var gA,yA={};function bA(){if(gA)return yA;gA=1,yA.formatRelative=function(o,a,s){const[d,c]=(0,n.normalizeDates)(s?.in,o,a),u=(0,t.getDefaultOptions)(),l=s?.locale??u.locale??e.defaultLocale,p=s?.weekStartsOn??s?.locale?.options?.weekStartsOn??u.weekStartsOn??u.locale?.options?.weekStartsOn??0,m=(0,r.differenceInCalendarDays)(d,c);if(isNaN(m))throw new RangeError("Invalid time value");let f;f=m<-6?"other":m<-1?"lastWeek":m<0?"yesterday":m<1?"today":m<2?"tomorrow":m<7?"nextWeek":"other";const h=l.formatRelative(f,d,c,{locale:l,weekStartsOn:p});return(0,i.format)(d,h,{locale:l,weekStartsOn:p})};var e=dE(),t=ww(),n=Sw(),r=Nw(),i=qE();return yA}var wA,$A={};function kA(){if(wA)return $A;wA=1,$A.fromUnixTime=function(t,n){return(0,e.toDate)(1e3*t,n?.in)};var e=qb();return $A}var IA,xA={};function EA(){if(IA)return xA;IA=1,xA.getDate=function(t,n){return(0,e.toDate)(t,n?.in).getDate()};var e=qb();return xA}var AA,TA={};function OA(){if(AA)return TA;AA=1,TA.getDay=function(t,n){return(0,e.toDate)(t,n?.in).getDay()};var e=qb();return TA}var _A,DA={};function SA(){if(_A)return DA;_A=1,DA.getDaysInMonth=function(n,r){const i=(0,t.toDate)(n,r?.in),o=i.getFullYear(),a=i.getMonth(),s=(0,e.constructFrom)(i,0);return s.setFullYear(o,a+1,0),s.setHours(0,0,0,0),s.getDate()};var e=Nb(),t=qb();return DA}var MA,PA,jA={},CA={};function NA(){if(MA)return CA;MA=1,CA.isLeapYear=function(t,n){const r=(0,e.toDate)(t,n?.in).getFullYear();return r%400==0||r%4==0&&r%100!=0};var e=qb();return CA}function RA(){if(PA)return jA;PA=1,jA.getDaysInYear=function(n,r){const i=(0,t.toDate)(n,r?.in);return Number.isNaN(+i)?NaN:(0,e.isLeapYear)(i)?366:365};var e=NA(),t=qb();return jA}var UA,LA={};function qA(){if(UA)return LA;UA=1,LA.getDecade=function(t,n){const r=(0,e.toDate)(t,n?.in).getFullYear();return 10*Math.floor(r/10)};var e=qb();return LA}var GA,zA={};function FA(){if(GA)return zA;GA=1,zA.getDefaultOptions=function(){return Object.assign({},(0,e.getDefaultOptions)())};var e=ww();return zA}var BA,WA={};function ZA(){if(BA)return WA;BA=1,WA.getHours=function(t,n){return(0,e.toDate)(t,n?.in).getHours()};var e=qb();return WA}var YA,VA={};function HA(){if(YA)return VA;YA=1,VA.getISODay=function(t,n){const r=(0,e.toDate)(t,n?.in).getDay();return 0===r?7:r};var e=qb();return VA}var KA,JA={};function QA(){if(KA)return JA;KA=1,JA.getISOWeeksInYear=function(r,i){const o=(0,n.startOfISOWeekYear)(r,i),a=(0,n.startOfISOWeekYear)((0,e.addWeeks)(o,60));return Math.round((+a-+o)/t.millisecondsInWeek)};var e=t$(),t=Cb(),n=Gw();return JA}var XA,eT={};function tT(){if(XA)return eT;XA=1,eT.getMilliseconds=function(t){return(0,e.toDate)(t).getMilliseconds()};var e=qb();return eT}var nT,rT={};function iT(){if(nT)return rT;nT=1,rT.getMinutes=function(t,n){return(0,e.toDate)(t,n?.in).getMinutes()};var e=qb();return rT}var oT,aT={};function sT(){if(oT)return aT;oT=1,aT.getMonth=function(t,n){return(0,e.toDate)(t,n?.in).getMonth()};var e=qb();return aT}var dT,cT={};function uT(){if(dT)return cT;dT=1,cT.getOverlappingDaysInIntervals=function(r,i){const[o,a]=[+(0,n.toDate)(r.start),+(0,n.toDate)(r.end)].sort(((e,t)=>e-t)),[s,d]=[+(0,n.toDate)(i.start),+(0,n.toDate)(i.end)].sort(((e,t)=>e-t));if(!(o<d&&s<a))return 0;const c=s<o?o:s,u=c-(0,e.getTimezoneOffsetInMilliseconds)(c),l=d>a?a:d,p=l-(0,e.getTimezoneOffsetInMilliseconds)(l);return Math.ceil((p-u)/t.millisecondsInDay)};var e=Ow(),t=Cb(),n=qb();return cT}var lT,pT={};function mT(){if(lT)return pT;lT=1,pT.getSeconds=function(t){return(0,e.toDate)(t).getSeconds()};var e=qb();return pT}var fT,hT={};function vT(){if(fT)return hT;fT=1,hT.getTime=function(t){return+(0,e.toDate)(t)};var e=qb();return hT}var gT,yT={};function bT(){if(gT)return yT;gT=1,yT.getUnixTime=function(t){return Math.trunc(+(0,e.toDate)(t)/1e3)};var e=qb();return yT}var wT,$T={};function kT(){if(wT)return $T;wT=1,$T.getWeekOfMonth=function(o,a){const s=(0,e.getDefaultOptions)(),d=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,c=(0,t.getDate)((0,i.toDate)(o,a?.in));if(isNaN(c))return NaN;let u=d-(0,n.getDay)((0,r.startOfMonth)(o,a));return u<=0&&(u+=7),Math.ceil((c-u)/7)+1};var e=ww(),t=EA(),n=OA(),r=NI(),i=qb();return $T}var IT,xT,ET={},AT={};function TT(){if(IT)return AT;IT=1,AT.lastDayOfMonth=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getMonth();return r.setFullYear(r.getFullYear(),i+1,0),r.setHours(0,0,0,0),(0,e.toDate)(r,n?.in)};var e=qb();return AT}function OT(){if(xT)return ET;xT=1,ET.getWeeksInMonth=function(i,o){const a=(0,r.toDate)(i,o?.in);return(0,e.differenceInCalendarWeeks)((0,t.lastDayOfMonth)(a,o),(0,n.startOfMonth)(a,o),o)+1};var e=uk(),t=TT(),n=NI(),r=qb();return ET}var _T,DT={};function ST(){if(_T)return DT;_T=1,DT.getYear=function(t,n){return(0,e.toDate)(t,n?.in).getFullYear()};var e=qb();return DT}var MT,PT={};function jT(){if(MT)return PT;MT=1,PT.hoursToMilliseconds=function(t){return Math.trunc(t*e.millisecondsInHour)};var e=Cb();return PT}var CT,NT={};function RT(){if(CT)return NT;CT=1,NT.hoursToMinutes=function(t){return Math.trunc(t*e.minutesInHour)};var e=Cb();return NT}var UT,LT={};function qT(){if(UT)return LT;UT=1,LT.hoursToSeconds=function(t){return Math.trunc(t*e.secondsInHour)};var e=Cb();return LT}var GT,zT={};function FT(){if(GT)return zT;GT=1,zT.interval=function(t,n,r){const[i,o]=(0,e.normalizeDates)(r?.in,t,n);if(isNaN(+i))throw new TypeError("Start date is invalid");if(isNaN(+o))throw new TypeError("End date is invalid");if(r?.assertPositive&&+i>+o)throw new TypeError("End date must be after start date");return{start:i,end:o}};var e=Sw();return zT}var BT,WT={};function ZT(){if(BT)return WT;BT=1,WT.intervalToDuration=function(d,c){const{start:u,end:l}=(0,e.normalizeInterval)(c?.in,d),p={},m=(0,s.differenceInYears)(l,u);m&&(p.years=m);const f=(0,t.add)(u,{years:p.years}),h=(0,o.differenceInMonths)(l,f);h&&(p.months=h);const v=(0,t.add)(f,{months:p.months}),g=(0,n.differenceInDays)(l,v);g&&(p.days=g);const y=(0,t.add)(v,{days:p.days}),b=(0,r.differenceInHours)(l,y);b&&(p.hours=b);const w=(0,t.add)(y,{hours:p.hours}),$=(0,i.differenceInMinutes)(l,w);$&&(p.minutes=$);const k=(0,t.add)(w,{minutes:p.minutes}),I=(0,a.differenceInSeconds)(l,k);return I&&(p.seconds=I),p};var e=cI(),t=Zb(),n=vk(),r=kk(),i=jk(),o=Zk(),a=Qk(),s=iI();return WT}var YT,VT={};function HT(){if(YT)return VT;YT=1,VT.intlFormat=function(t,n,r){let i;var o;return void 0===(o=n)||"locale"in o?r=n:i=n,new Intl.DateTimeFormat(r?.locale,i).format((0,e.toDate)(t))};var e=qb();return VT}var KT,JT={};function QT(){if(KT)return JT;KT=1,JT.intlFormatDistance=function(u,l,p){let m,f=0;const[h,v]=(0,e.normalizeDates)(p?.in,u,l);if(p?.unit)m=p?.unit,"second"===m?f=(0,c.differenceInSeconds)(h,v):"minute"===m?f=(0,d.differenceInMinutes)(h,v):"hour"===m?f=(0,s.differenceInHours)(h,v):"day"===m?f=(0,n.differenceInCalendarDays)(h,v):"week"===m?f=(0,o.differenceInCalendarWeeks)(h,v):"month"===m?f=(0,r.differenceInCalendarMonths)(h,v):"quarter"===m?f=(0,i.differenceInCalendarQuarters)(h,v):"year"===m&&(f=(0,a.differenceInCalendarYears)(h,v));else{const e=(0,c.differenceInSeconds)(h,v);Math.abs(e)<t.secondsInMinute?(f=(0,c.differenceInSeconds)(h,v),m="second"):Math.abs(e)<t.secondsInHour?(f=(0,d.differenceInMinutes)(h,v),m="minute"):Math.abs(e)<t.secondsInDay&&Math.abs((0,n.differenceInCalendarDays)(h,v))<1?(f=(0,s.differenceInHours)(h,v),m="hour"):Math.abs(e)<t.secondsInWeek&&(f=(0,n.differenceInCalendarDays)(h,v))&&Math.abs(f)<7?m="day":Math.abs(e)<t.secondsInMonth?(f=(0,o.differenceInCalendarWeeks)(h,v),m="week"):Math.abs(e)<t.secondsInQuarter?(f=(0,r.differenceInCalendarMonths)(h,v),m="month"):Math.abs(e)<t.secondsInYear&&(0,i.differenceInCalendarQuarters)(h,v)<4?(f=(0,i.differenceInCalendarQuarters)(h,v),m="quarter"):(f=(0,a.differenceInCalendarYears)(h,v),m="year")}return new Intl.RelativeTimeFormat(p?.locale,{numeric:"auto",...p}).format(f,m)};var e=Sw(),t=Cb(),n=Nw(),r=tk(),i=sk(),o=uk(),a=mk(),s=kk(),d=jk(),c=Qk();return JT}var XT,eO={};function tO(){if(XT)return eO;XT=1,eO.isAfter=function(t,n){return+(0,e.toDate)(t)>+(0,e.toDate)(n)};var e=qb();return eO}var nO,rO={};function iO(){if(nO)return rO;nO=1,rO.isBefore=function(t,n){return+(0,e.toDate)(t)<+(0,e.toDate)(n)};var e=qb();return rO}var oO,aO={};function sO(){if(oO)return aO;oO=1,aO.isEqual=function(t,n){return+(0,e.toDate)(t)==+(0,e.toDate)(n)};var e=qb();return aO}var dO,cO={};function uO(){return dO||(dO=1,cO.isExists=function(e,t,n){const r=new Date(e,t,n);return r.getFullYear()===e&&r.getMonth()===t&&r.getDate()===n}),cO}var lO,pO={};function mO(){if(lO)return pO;lO=1,pO.isFirstDayOfMonth=function(t,n){return 1===(0,e.toDate)(t,n?.in).getDate()};var e=qb();return pO}var fO,hO={};function vO(){if(fO)return hO;fO=1,hO.isFriday=function(t,n){return 5===(0,e.toDate)(t,n?.in).getDay()};var e=qb();return hO}var gO,yO={};function bO(){if(gO)return yO;gO=1,yO.isFuture=function(t){return+(0,e.toDate)(t)>Date.now()};var e=qb();return yO}var wO,$O,kO={},IO={},xO={},EO={};function AO(){if(wO)return EO;wO=1,EO.transpose=function(t,n){const r=function(e){return"function"==typeof e&&e.prototype?.constructor===e}(n)?new n(0):(0,e.constructFrom)(n,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),r};var e=Nb();return EO}function TO(){if($O)return xO;$O=1,xO.ValueSetter=xO.Setter=xO.DateTimezoneSetter=void 0;var e=Nb(),t=AO();let n=class{subPriority=0;validate(e,t){return!0}};return xO.Setter=n,xO.ValueSetter=class extends n{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},xO.DateTimezoneSetter=class extends n{priority=10;subPriority=-1;constructor(t,n){super(),this.context=t||(t=>(0,e.constructFrom)(n,t))}set(n,r){return r.timestampIsSet?n:(0,e.constructFrom)(n,(0,t.transpose)(n,this.context))}},xO}var OO,_O,DO={},SO={},MO={};function PO(){if(OO)return MO;OO=1,MO.Parser=void 0;var e=TO();return MO.Parser=class{run(t,n,r,i){const o=this.parse(t,n,r,i);return o?{setter:new e.ValueSetter(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,n){return!0}},MO}function jO(){if(_O)return SO;_O=1,SO.EraParser=void 0;var e=PO();return SO.EraParser=class extends e.Parser{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},SO}var CO,NO,RO,UO={},LO={},qO={};function GO(){return CO||(CO=1,qO.timezonePatterns=qO.numericPatterns=void 0,qO.numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},qO.timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/}),qO}function zO(){if(NO)return LO;NO=1,LO.dayPeriodEnumToHours=function(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}},LO.isLeapYearIndex=function(e){return e%400==0||e%4==0&&e%100!=0},LO.mapValue=function(e,t){return e?{value:t(e.value),rest:e.rest}:e},LO.normalizeTwoDigitYear=function(e,t){const n=t>0,r=n?t:1-t;let i;if(r<=50)i=e||100;else{const t=r+50;i=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?i:1-i},LO.parseAnyDigitsSigned=function(e){return n(t.numericPatterns.anyDigitsSigned,e)},LO.parseNDigits=function(e,r){switch(e){case 1:return n(t.numericPatterns.singleDigit,r);case 2:return n(t.numericPatterns.twoDigits,r);case 3:return n(t.numericPatterns.threeDigits,r);case 4:return n(t.numericPatterns.fourDigits,r);default:return n(new RegExp("^\\d{1,"+e+"}"),r)}},LO.parseNDigitsSigned=function(e,r){switch(e){case 1:return n(t.numericPatterns.singleDigitSigned,r);case 2:return n(t.numericPatterns.twoDigitsSigned,r);case 3:return n(t.numericPatterns.threeDigitsSigned,r);case 4:return n(t.numericPatterns.fourDigitsSigned,r);default:return n(new RegExp("^-?\\d{1,"+e+"}"),r)}},LO.parseNumericPattern=n,LO.parseTimezonePattern=function(t,n){const r=n.match(t);if(!r)return null;if("Z"===r[0])return{value:0,rest:n.slice(1)};const i="+"===r[1]?1:-1,o=r[2]?parseInt(r[2],10):0,a=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:i*(o*e.millisecondsInHour+a*e.millisecondsInMinute+s*e.millisecondsInSecond),rest:n.slice(r[0].length)}};var e=Cb(),t=GO();function n(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}return LO}function FO(){if(RO)return UO;RO=1,UO.YearParser=void 0;var e=PO(),t=zO();return UO.YearParser=class extends e.Parser{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,n,r){const i=e=>({year:e,isTwoDigitYear:"yy"===n});switch(n){case"y":return(0,t.mapValue)((0,t.parseNDigits)(4,e),i);case"yo":return(0,t.mapValue)(r.ordinalNumber(e,{unit:"year"}),i);default:return(0,t.mapValue)((0,t.parseNDigits)(n.length,e),i)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,n,r){const i=e.getFullYear();if(r.isTwoDigitYear){const n=(0,t.normalizeTwoDigitYear)(r.year,i);return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}return e.setFullYear("era"in n&&1!==n.era?1-r.year:r.year,0,1),e.setHours(0,0,0,0),e}},UO}var BO,WO={};function ZO(){if(BO)return WO;BO=1,WO.LocalWeekYearParser=void 0;var e=kE(),t=$w(),n=PO(),r=zO();return WO.LocalWeekYearParser=class extends n.Parser{priority=130;parse(e,t,n){const i=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return(0,r.mapValue)((0,r.parseNDigits)(4,e),i);case"Yo":return(0,r.mapValue)(n.ordinalNumber(e,{unit:"year"}),i);default:return(0,r.mapValue)((0,r.parseNDigits)(t.length,e),i)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(n,i,o,a){const s=(0,e.getWeekYear)(n,a);if(o.isTwoDigitYear){const e=(0,r.normalizeTwoDigitYear)(o.year,s);return n.setFullYear(e,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),(0,t.startOfWeek)(n,a)}return n.setFullYear("era"in i&&1!==i.era?1-o.year:o.year,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),(0,t.startOfWeek)(n,a)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},WO}var YO,VO={};function HO(){if(YO)return VO;YO=1,VO.ISOWeekYearParser=void 0;var e=kw(),t=Nb(),n=PO(),r=zO();return VO.ISOWeekYearParser=class extends n.Parser{priority=130;parse(e,t){return(0,r.parseNDigitsSigned)("R"===t?4:t.length,e)}set(n,r,i){const o=(0,t.constructFrom)(n,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),(0,e.startOfISOWeek)(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},VO}var KO,JO={};function QO(){if(KO)return JO;KO=1,JO.ExtendedYearParser=void 0;var e=PO(),t=zO();return JO.ExtendedYearParser=class extends e.Parser{priority=130;parse(e,n){return(0,t.parseNDigitsSigned)("u"===n?4:n.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},JO}var XO,e_={};function t_(){if(XO)return e_;XO=1,e_.QuarterParser=void 0;var e=PO(),t=zO();return e_.QuarterParser=class extends e.Parser{priority=120;parse(e,n,r){switch(n){case"Q":case"QQ":return(0,t.parseNDigits)(n.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},e_}var n_,r_={};function i_(){if(n_)return r_;n_=1,r_.StandAloneQuarterParser=void 0;var e=PO(),t=zO();return r_.StandAloneQuarterParser=class extends e.Parser{priority=120;parse(e,n,r){switch(n){case"q":case"qq":return(0,t.parseNDigits)(n.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},r_}var o_,a_={};function s_(){if(o_)return a_;o_=1,a_.MonthParser=void 0;var e=GO(),t=PO(),n=zO();return a_.MonthParser=class extends t.Parser{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,r,i){const o=e=>e-1;switch(r){case"M":return(0,n.mapValue)((0,n.parseNumericPattern)(e.numericPatterns.month,t),o);case"MM":return(0,n.mapValue)((0,n.parseNDigits)(2,t),o);case"Mo":return(0,n.mapValue)(i.ordinalNumber(t,{unit:"month"}),o);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},a_}var d_,c_={};function u_(){if(d_)return c_;d_=1,c_.StandAloneMonthParser=void 0;var e=GO(),t=PO(),n=zO();return c_.StandAloneMonthParser=class extends t.Parser{priority=110;parse(t,r,i){const o=e=>e-1;switch(r){case"L":return(0,n.mapValue)((0,n.parseNumericPattern)(e.numericPatterns.month,t),o);case"LL":return(0,n.mapValue)((0,n.parseNDigits)(2,t),o);case"Lo":return(0,n.mapValue)(i.ordinalNumber(t,{unit:"month"}),o);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},c_}var l_,p_,m_={},f_={};function h_(){if(l_)return f_;l_=1,f_.setWeek=function(n,r,i){const o=(0,t.toDate)(n,i?.in),a=(0,e.getWeek)(o,i)-r;return o.setDate(o.getDate()-7*a),(0,t.toDate)(o,i?.in)};var e=xE(),t=qb();return f_}function v_(){if(p_)return m_;p_=1,m_.LocalWeekParser=void 0;var e=h_(),t=$w(),n=GO(),r=PO(),i=zO();return m_.LocalWeekParser=class extends r.Parser{priority=100;parse(e,t,r){switch(t){case"w":return(0,i.parseNumericPattern)(n.numericPatterns.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(n,r,i,o){return(0,t.startOfWeek)((0,e.setWeek)(n,i,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},m_}var g_,y_,b_={},w_={};function $_(){if(g_)return w_;g_=1,w_.setISOWeek=function(n,r,i){const o=(0,t.toDate)(n,i?.in),a=(0,e.getISOWeek)(o,i)-r;return o.setDate(o.getDate()-7*a),o};var e=hE(),t=qb();return w_}function k_(){if(y_)return b_;y_=1,b_.ISOWeekParser=void 0;var e=$_(),t=kw(),n=GO(),r=PO(),i=zO();return b_.ISOWeekParser=class extends r.Parser{priority=100;parse(e,t,r){switch(t){case"I":return(0,i.parseNumericPattern)(n.numericPatterns.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(n,r,i){return(0,t.startOfISOWeek)((0,e.setISOWeek)(n,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},b_}var I_,x_={};function E_(){if(I_)return x_;I_=1,x_.DateParser=void 0;var e=GO(),t=PO(),n=zO();const r=[31,28,31,30,31,30,31,31,30,31,30,31],i=[31,29,31,30,31,30,31,31,30,31,30,31];return x_.DateParser=class extends t.Parser{priority=90;subPriority=1;parse(t,r,i){switch(r){case"d":return(0,n.parseNumericPattern)(e.numericPatterns.date,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){const o=e.getFullYear(),a=(0,n.isLeapYearIndex)(o),s=e.getMonth();return a?t>=1&&t<=i[s]:t>=1&&t<=r[s]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},x_}var A_,T_={};function O_(){if(A_)return T_;A_=1,T_.DayOfYearParser=void 0;var e=GO(),t=PO(),n=zO();return T_.DayOfYearParser=class extends t.Parser{priority=90;subpriority=1;parse(t,r,i){switch(r){case"D":case"DD":return(0,n.parseNumericPattern)(e.numericPatterns.dayOfYear,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){const r=e.getFullYear();return(0,n.isLeapYearIndex)(r)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},T_}var __,D_,S_={},M_={};function P_(){if(__)return M_;__=1,M_.setDay=function(r,i,o){const a=(0,e.getDefaultOptions)(),s=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,d=(0,n.toDate)(r,o?.in),c=d.getDay(),u=7-s;return(0,t.addDays)(d,i<0||i>6?i-(c+u)%7:((i%7+7)%7+u)%7-(c+u)%7,o)};var e=ww(),t=Gb(),n=qb();return M_}function j_(){if(D_)return S_;D_=1,S_.DayParser=void 0;var e=P_(),t=PO();return S_.DayParser=class extends t.Parser{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(t,n,r,i){return(t=(0,e.setDay)(t,r,i)).setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]},S_}var C_,N_={};function R_(){if(C_)return N_;C_=1,N_.LocalDayParser=void 0;var e=P_(),t=PO(),n=zO();return N_.LocalDayParser=class extends t.Parser{priority=90;parse(e,t,r,i){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+i.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return(0,n.mapValue)((0,n.parseNDigits)(t.length,e),o);case"eo":return(0,n.mapValue)(r.ordinalNumber(e,{unit:"day"}),o);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(t,n,r,i){return(t=(0,e.setDay)(t,r,i)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},N_}var U_,L_={};function q_(){if(U_)return L_;U_=1,L_.StandAloneLocalDayParser=void 0;var e=P_(),t=PO(),n=zO();return L_.StandAloneLocalDayParser=class extends t.Parser{priority=90;parse(e,t,r,i){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+i.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return(0,n.mapValue)((0,n.parseNDigits)(t.length,e),o);case"co":return(0,n.mapValue)(r.ordinalNumber(e,{unit:"day"}),o);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(t,n,r,i){return(t=(0,e.setDay)(t,r,i)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},L_}var G_,z_,F_={},B_={};function W_(){if(G_)return B_;G_=1,B_.setISODay=function(r,i,o){const a=(0,n.toDate)(r,o?.in),s=(0,t.getISODay)(a,o);return(0,e.addDays)(a,i-s,o)};var e=Gb(),t=HA(),n=qb();return B_}function Z_(){if(z_)return F_;z_=1,F_.ISODayParser=void 0;var e=W_(),t=PO(),n=zO();return F_.ISODayParser=class extends t.Parser{priority=90;parse(e,t,r){const i=e=>0===e?7:e;switch(t){case"i":case"ii":return(0,n.parseNDigits)(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return(0,n.mapValue)(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i);case"iiiii":return(0,n.mapValue)(r.day(e,{width:"narrow",context:"formatting"}),i);case"iiiiii":return(0,n.mapValue)(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i);default:return(0,n.mapValue)(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i)}}validate(e,t){return t>=1&&t<=7}set(t,n,r){return(t=(0,e.setISODay)(t,r)).setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},F_}var Y_,V_={};function H_(){if(Y_)return V_;Y_=1,V_.AMPMParser=void 0;var e=PO(),t=zO();return V_.AMPMParser=class extends e.Parser{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours((0,t.dayPeriodEnumToHours)(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},V_}var K_,J_={};function Q_(){if(K_)return J_;K_=1,J_.AMPMMidnightParser=void 0;var e=PO(),t=zO();return J_.AMPMMidnightParser=class extends e.Parser{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours((0,t.dayPeriodEnumToHours)(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},J_}var X_,eD={};function tD(){if(X_)return eD;X_=1,eD.DayPeriodParser=void 0;var e=PO(),t=zO();return eD.DayPeriodParser=class extends e.Parser{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours((0,t.dayPeriodEnumToHours)(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]},eD}var nD,rD={};function iD(){if(nD)return rD;nD=1,rD.Hour1to12Parser=void 0;var e=GO(),t=PO(),n=zO();return rD.Hour1to12Parser=class extends t.Parser{priority=70;parse(t,r,i){switch(r){case"h":return(0,n.parseNumericPattern)(e.numericPatterns.hour12h,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const r=e.getHours()>=12;return e.setHours(r&&n<12?n+12:r||12!==n?n:0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},rD}var oD,aD={};function sD(){if(oD)return aD;oD=1,aD.Hour0to23Parser=void 0;var e=GO(),t=PO(),n=zO();return aD.Hour0to23Parser=class extends t.Parser{priority=70;parse(t,r,i){switch(r){case"H":return(0,n.parseNumericPattern)(e.numericPatterns.hour23h,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},aD}var dD,cD={};function uD(){if(dD)return cD;dD=1,cD.Hour0To11Parser=void 0;var e=GO(),t=PO(),n=zO();return cD.Hour0To11Parser=class extends t.Parser{priority=70;parse(t,r,i){switch(r){case"K":return(0,n.parseNumericPattern)(e.numericPatterns.hour11h,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){const r=e.getHours()>=12;return e.setHours(r&&n<12?n+12:n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},cD}var lD,pD={};function mD(){if(lD)return pD;lD=1,pD.Hour1To24Parser=void 0;var e=GO(),t=PO(),n=zO();return pD.Hour1To24Parser=class extends t.Parser{priority=70;parse(t,r,i){switch(r){case"k":return(0,n.parseNumericPattern)(e.numericPatterns.hour24h,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){return e.setHours(n<=24?n%24:n,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},pD}var fD,hD={};function vD(){if(fD)return hD;fD=1,hD.MinuteParser=void 0;var e=GO(),t=PO(),n=zO();return hD.MinuteParser=class extends t.Parser{priority=60;parse(t,r,i){switch(r){case"m":return(0,n.parseNumericPattern)(e.numericPatterns.minute,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]},hD}var gD,yD={};function bD(){if(gD)return yD;gD=1,yD.SecondParser=void 0;var e=GO(),t=PO(),n=zO();return yD.SecondParser=class extends t.Parser{priority=50;parse(t,r,i){switch(r){case"s":return(0,n.parseNumericPattern)(e.numericPatterns.second,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return(0,n.parseNDigits)(r.length,t)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]},yD}var wD,$D={};function kD(){if(wD)return $D;wD=1,$D.FractionOfSecondParser=void 0;var e=PO(),t=zO();return $D.FractionOfSecondParser=class extends e.Parser{priority=30;parse(e,n){return(0,t.mapValue)((0,t.parseNDigits)(n.length,e),(e=>Math.trunc(e*Math.pow(10,3-n.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]},$D}var ID,xD={};function ED(){if(ID)return xD;ID=1,xD.ISOTimezoneWithZParser=void 0;var e=Nb(),t=Ow(),n=GO(),r=PO(),i=zO();return xD.ISOTimezoneWithZParser=class extends r.Parser{priority=10;parse(e,t){switch(t){case"X":return(0,i.parseTimezonePattern)(n.timezonePatterns.basicOptionalMinutes,e);case"XX":return(0,i.parseTimezonePattern)(n.timezonePatterns.basic,e);case"XXXX":return(0,i.parseTimezonePattern)(n.timezonePatterns.basicOptionalSeconds,e);case"XXXXX":return(0,i.parseTimezonePattern)(n.timezonePatterns.extendedOptionalSeconds,e);default:return(0,i.parseTimezonePattern)(n.timezonePatterns.extended,e)}}set(n,r,i){return r.timestampIsSet?n:(0,e.constructFrom)(n,n.getTime()-(0,t.getTimezoneOffsetInMilliseconds)(n)-i)}incompatibleTokens=["t","T","x"]},xD}var AD,TD={};function OD(){if(AD)return TD;AD=1,TD.ISOTimezoneParser=void 0;var e=Nb(),t=Ow(),n=GO(),r=PO(),i=zO();return TD.ISOTimezoneParser=class extends r.Parser{priority=10;parse(e,t){switch(t){case"x":return(0,i.parseTimezonePattern)(n.timezonePatterns.basicOptionalMinutes,e);case"xx":return(0,i.parseTimezonePattern)(n.timezonePatterns.basic,e);case"xxxx":return(0,i.parseTimezonePattern)(n.timezonePatterns.basicOptionalSeconds,e);case"xxxxx":return(0,i.parseTimezonePattern)(n.timezonePatterns.extendedOptionalSeconds,e);default:return(0,i.parseTimezonePattern)(n.timezonePatterns.extended,e)}}set(n,r,i){return r.timestampIsSet?n:(0,e.constructFrom)(n,n.getTime()-(0,t.getTimezoneOffsetInMilliseconds)(n)-i)}incompatibleTokens=["t","T","X"]},TD}var _D,DD={};function SD(){if(_D)return DD;_D=1,DD.TimestampSecondsParser=void 0;var e=Nb(),t=PO(),n=zO();return DD.TimestampSecondsParser=class extends t.Parser{priority=40;parse(e){return(0,n.parseAnyDigitsSigned)(e)}set(t,n,r){return[(0,e.constructFrom)(t,1e3*r),{timestampIsSet:!0}]}incompatibleTokens="*"},DD}var MD,PD,jD,CD,ND={};function RD(){if(MD)return ND;MD=1,ND.TimestampMillisecondsParser=void 0;var e=Nb(),t=PO(),n=zO();return ND.TimestampMillisecondsParser=class extends t.Parser{priority=20;parse(e){return(0,n.parseAnyDigitsSigned)(e)}set(t,n,r){return[(0,e.constructFrom)(t,r),{timestampIsSet:!0}]}incompatibleTokens="*"},ND}function UD(){if(PD)return DO;PD=1,DO.parsers=void 0;var e=jO(),t=FO(),n=ZO(),r=HO(),i=QO(),o=t_(),a=i_(),s=s_(),d=u_(),c=v_(),u=k_(),l=E_(),p=O_(),m=j_(),f=R_(),h=q_(),v=Z_(),g=H_(),y=Q_(),b=tD(),w=iD(),$=sD(),k=uD(),I=mD(),x=vD(),E=bD(),A=kD(),T=ED(),O=OD(),_=SD(),D=RD();return DO.parsers={G:new e.EraParser,y:new t.YearParser,Y:new n.LocalWeekYearParser,R:new r.ISOWeekYearParser,u:new i.ExtendedYearParser,Q:new o.QuarterParser,q:new a.StandAloneQuarterParser,M:new s.MonthParser,L:new d.StandAloneMonthParser,w:new c.LocalWeekParser,I:new u.ISOWeekParser,d:new l.DateParser,D:new p.DayOfYearParser,E:new m.DayParser,e:new f.LocalDayParser,c:new h.StandAloneLocalDayParser,i:new v.ISODayParser,a:new g.AMPMParser,b:new y.AMPMMidnightParser,B:new b.DayPeriodParser,h:new w.Hour1to12Parser,H:new $.Hour0to23Parser,K:new k.Hour0To11Parser,k:new I.Hour1To24Parser,m:new x.MinuteParser,s:new E.SecondParser,S:new A.FractionOfSecondParser,X:new T.ISOTimezoneWithZParser,x:new O.ISOTimezoneParser,t:new _.TimestampSecondsParser,T:new D.TimestampMillisecondsParser},DO}function LD(){return jD||(jD=1,function(e){Object.defineProperty(e,"longFormatters",{enumerable:!0,get:function(){return n.longFormatters}}),e.parse=function(e,h,v,g){const y=()=>(0,i.constructFrom)(g?.in||v,NaN),b=(0,o.getDefaultOptions)(),w=g?.locale??b.locale??t.defaultLocale,$=g?.firstWeekContainsDate??g?.locale?.options?.firstWeekContainsDate??b.firstWeekContainsDate??b.locale?.options?.firstWeekContainsDate??1,k=g?.weekStartsOn??g?.locale?.options?.weekStartsOn??b.weekStartsOn??b.locale?.options?.weekStartsOn??0;if(!h)return e?y():(0,a.toDate)(v,g?.in);const I={firstWeekContainsDate:$,weekStartsOn:k,locale:w},x=[new s.DateTimezoneSetter(g?.in,v)],E=h.match(u).map((e=>{const t=e[0];return t in n.longFormatters?(0,n.longFormatters[t])(e,w.formatLong):e})).join("").match(c),A=[];for(let t of E){!g?.useAdditionalWeekYearTokens&&(0,r.isProtectedWeekYearToken)(t)&&(0,r.warnOrThrowProtectedError)(t,h,e),!g?.useAdditionalDayOfYearTokens&&(0,r.isProtectedDayOfYearToken)(t)&&(0,r.warnOrThrowProtectedError)(t,h,e);const n=t[0],i=d.parsers[n];if(i){const{incompatibleTokens:r}=i;if(Array.isArray(r)){const e=A.find((e=>r.includes(e.token)||e.token===n));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${t}\` at the same time`)}else if("*"===i.incompatibleTokens&&A.length>0)throw new RangeError(`The format string mustn't contain \`${t}\` and any other token at the same time`);A.push({token:n,fullToken:t});const o=i.run(e,t,w.match,I);if(!o)return y();x.push(o.setter),e=o.rest}else{if(n.match(f))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(l)[1].replace(p,"'")),0!==e.indexOf(t))return y();e=e.slice(t.length)}}if(e.length>0&&m.test(e))return y();const T=x.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>x.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let O=(0,a.toDate)(v,g?.in);if(isNaN(+O))return y();const _={};for(const e of T){if(!e.validate(O,I))return y();const t=e.set(O,_,I);Array.isArray(t)?(O=t[0],Object.assign(_,t[1])):O=t}return O},Object.defineProperty(e,"parsers",{enumerable:!0,get:function(){return d.parsers}});var t=dE(),n=CE(),r=LE(),i=Nb(),o=FA(),a=qb(),s=TO(),d=UD();const c=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,u=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,l=/^'([^]*?)'?$/,p=/''/g,m=/\S/,f=/[a-zA-Z]/}(IO)),IO}function qD(){if(CD)return kO;CD=1,kO.isMatch=function(n,r,i){return(0,e.isValid)((0,t.parse)(n,r,new Date,i))};var e=W$(),t=LD();return kO}var GD,zD={};function FD(){if(GD)return zD;GD=1,zD.isMonday=function(t,n){return 1===(0,e.toDate)(t,n?.in).getDay()};var e=qb();return zD}var BD,WD={};function ZD(){if(BD)return WD;BD=1,WD.isPast=function(t){return+(0,e.toDate)(t)<Date.now()};var e=qb();return WD}var YD,VD,HD={},KD={};function JD(){if(YD)return KD;YD=1,KD.startOfHour=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setMinutes(0,0,0),r};var e=qb();return KD}function QD(){if(VD)return HD;VD=1,HD.isSameHour=function(n,r,i){const[o,a]=(0,e.normalizeDates)(i?.in,n,r);return+(0,t.startOfHour)(o)==+(0,t.startOfHour)(a)};var e=Sw(),t=JD();return HD}var XD,eS,tS={},nS={};function rS(){if(XD)return nS;XD=1,nS.isSameWeek=function(n,r,i){const[o,a]=(0,e.normalizeDates)(i?.in,n,r);return+(0,t.startOfWeek)(o,i)==+(0,t.startOfWeek)(a,i)};var e=Sw(),t=$w();return nS}function iS(){if(eS)return tS;eS=1,tS.isSameISOWeek=function(t,n,r){return(0,e.isSameWeek)(t,n,{...r,weekStartsOn:1})};var e=rS();return tS}var oS,aS={};function sS(){if(oS)return aS;oS=1,aS.isSameISOWeekYear=function(n,r,i){const[o,a]=(0,t.normalizeDates)(i?.in,n,r);return+(0,e.startOfISOWeekYear)(o)==+(0,e.startOfISOWeekYear)(a)};var e=Gw(),t=Sw();return aS}var dS,cS,uS={},lS={};function pS(){if(dS)return lS;dS=1,lS.startOfMinute=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setSeconds(0,0),r};var e=qb();return lS}function mS(){if(cS)return uS;cS=1,uS.isSameMinute=function(t,n){return+(0,e.startOfMinute)(t)==+(0,e.startOfMinute)(n)};var e=pS();return uS}var fS,hS={};function vS(){if(fS)return hS;fS=1,hS.isSameMonth=function(t,n,r){const[i,o]=(0,e.normalizeDates)(r?.in,t,n);return i.getFullYear()===o.getFullYear()&&i.getMonth()===o.getMonth()};var e=Sw();return hS}var gS,yS={};function bS(){if(gS)return yS;gS=1,yS.isSameQuarter=function(n,r,i){const[o,a]=(0,e.normalizeDates)(i?.in,n,r);return+(0,t.startOfQuarter)(o)==+(0,t.startOfQuarter)(a)};var e=Sw(),t=xI();return yS}var wS,$S,kS={},IS={};function xS(){if(wS)return IS;wS=1,IS.startOfSecond=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setMilliseconds(0),r};var e=qb();return IS}function ES(){if($S)return kS;$S=1,kS.isSameSecond=function(t,n){return+(0,e.startOfSecond)(t)==+(0,e.startOfSecond)(n)};var e=xS();return kS}var AS,TS={};function OS(){if(AS)return TS;AS=1,TS.isSameYear=function(t,n,r){const[i,o]=(0,e.normalizeDates)(r?.in,t,n);return i.getFullYear()===o.getFullYear()};var e=Sw();return TS}var _S,DS={};function SS(){if(_S)return DS;_S=1,DS.isThisHour=function(r,i){return(0,t.isSameHour)((0,n.toDate)(r,i?.in),(0,e.constructNow)(i?.in||r))};var e=S$(),t=QD(),n=qb();return DS}var MS,PS={};function jS(){if(MS)return PS;MS=1,PS.isThisISOWeek=function(r,i){return(0,n.isSameISOWeek)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r))};var e=Nb(),t=S$(),n=iS();return PS}var CS,NS={};function RS(){if(CS)return NS;CS=1,NS.isThisMinute=function(n){return(0,t.isSameMinute)(n,(0,e.constructNow)(n))};var e=S$(),t=mS();return NS}var US,LS={};function qS(){if(US)return LS;US=1,LS.isThisMonth=function(r,i){return(0,n.isSameMonth)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r))};var e=Nb(),t=S$(),n=vS();return LS}var GS,zS={};function FS(){if(GS)return zS;GS=1,zS.isThisQuarter=function(r,i){return(0,n.isSameQuarter)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r))};var e=Nb(),t=S$(),n=bS();return zS}var BS,WS={};function ZS(){if(BS)return WS;BS=1,WS.isThisSecond=function(n){return(0,t.isSameSecond)(n,(0,e.constructNow)(n))};var e=S$(),t=ES();return WS}var YS,VS={};function HS(){if(YS)return VS;YS=1,VS.isThisWeek=function(r,i){return(0,n.isSameWeek)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r),i)};var e=Nb(),t=S$(),n=rS();return VS}var KS,JS={};function QS(){if(KS)return JS;KS=1,JS.isThisYear=function(r,i){return(0,n.isSameYear)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r))};var e=Nb(),t=S$(),n=OS();return JS}var XS,eM={};function tM(){if(XS)return eM;XS=1,eM.isThursday=function(t,n){return 4===(0,e.toDate)(t,n?.in).getDay()};var e=qb();return eM}var nM,rM={};function iM(){if(nM)return rM;nM=1,rM.isToday=function(r,i){return(0,n.isSameDay)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r))};var e=Nb(),t=S$(),n=U$();return rM}var oM,aM={};function sM(){if(oM)return aM;oM=1,aM.isTomorrow=function(r,i){return(0,n.isSameDay)(r,(0,e.addDays)((0,t.constructNow)(i?.in||r),1),i)};var e=Gb(),t=S$(),n=U$();return aM}var dM,cM={};function uM(){if(dM)return cM;dM=1,cM.isTuesday=function(t,n){return 2===(0,e.toDate)(t,n?.in).getDay()};var e=qb();return cM}var lM,pM={};function mM(){if(lM)return pM;lM=1,pM.isWednesday=function(t,n){return 3===(0,e.toDate)(t,n?.in).getDay()};var e=qb();return pM}var fM,hM={};function vM(){if(fM)return hM;fM=1,hM.isWithinInterval=function(t,n,r){const i=+(0,e.toDate)(t,r?.in),[o,a]=[+(0,e.toDate)(n.start,r?.in),+(0,e.toDate)(n.end,r?.in)].sort(((e,t)=>e-t));return i>=o&&i<=a};var e=qb();return hM}var gM,yM,bM={},wM={};function $M(){if(gM)return wM;gM=1,wM.subDays=function(t,n,r){return(0,e.addDays)(t,-n,r)};var e=Gb();return wM}function kM(){if(yM)return bM;yM=1,bM.isYesterday=function(i,o){return(0,n.isSameDay)((0,e.constructFrom)(o?.in||i,i),(0,r.subDays)((0,t.constructNow)(o?.in||i),1))};var e=Nb(),t=S$(),n=U$(),r=$M();return bM}var IM,xM={};function EM(){if(IM)return xM;IM=1,xM.lastDayOfDecade=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getFullYear(),o=9+10*Math.floor(i/10);return r.setFullYear(o+1,0,0),r.setHours(0,0,0,0),(0,e.toDate)(r,n?.in)};var e=qb();return xM}var AM,TM,OM={},_M={};function DM(){if(AM)return _M;AM=1,_M.lastDayOfWeek=function(n,r){const i=(0,e.getDefaultOptions)(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,a=(0,t.toDate)(n,r?.in),s=a.getDay(),d=6+(s<o?-7:0)-(s-o);return a.setHours(0,0,0,0),a.setDate(a.getDate()+d),a};var e=ww(),t=qb();return _M}function SM(){if(TM)return OM;TM=1,OM.lastDayOfISOWeek=function(t,n){return(0,e.lastDayOfWeek)(t,{...n,weekStartsOn:1})};var e=DM();return OM}var MM,PM={};function jM(){if(MM)return PM;MM=1,PM.lastDayOfISOWeekYear=function(r,i){const o=(0,t.getISOWeekYear)(r,i),a=(0,e.constructFrom)(i?.in||r,0);a.setFullYear(o+1,0,4),a.setHours(0,0,0,0);const s=(0,n.startOfISOWeek)(a,i);return s.setDate(s.getDate()-1),s};var e=Nb(),t=Iw(),n=kw();return PM}var CM,NM={};function RM(){if(CM)return NM;CM=1,NM.lastDayOfQuarter=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getMonth();return r.setMonth(i-i%3+3,0),r.setHours(0,0,0,0),r};var e=qb();return NM}var UM,LM={};function qM(){if(UM)return LM;UM=1,LM.lastDayOfYear=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getFullYear();return r.setFullYear(i+1,0,0),r.setHours(0,0,0,0),r};var e=qb();return LM}var GM,zM={};function FM(){return GM||(GM=1,function(e){e.lightFormat=function(e,d){const c=(0,r.toDate)(e);if(!(0,n.isValid)(c))throw new RangeError("Invalid time value");const u=d.match(i);return u?u.map((e=>{if("''"===e)return"'";const n=e[0];if("'"===n)return function(e){const t=e.match(o);return t?t[1].replace(a,"'"):e}(e);const r=t.lightFormatters[n];if(r)return r(c,e);if(n.match(s))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return e})).join(""):""},Object.defineProperty(e,"lightFormatters",{enumerable:!0,get:function(){return t.lightFormatters}});var t=SE(),n=W$(),r=qb();const i=/(\w)\1*|''|'(''|[^'])+('|$)|./g,o=/^'([^]*?)'?$/,a=/''/g,s=/[a-zA-Z]/}(zM)),zM}var BM,WM={};function ZM(){if(BM)return WM;BM=1,WM.milliseconds=function({years:t,months:n,weeks:r,days:i,hours:o,minutes:a,seconds:s}){let d=0;t&&(d+=t*e.daysInYear),n&&(d+=n*(e.daysInYear/12)),r&&(d+=7*r),i&&(d+=i);let c=24*d*60*60;return o&&(c+=60*o*60),a&&(c+=60*a),s&&(c+=s),Math.trunc(1e3*c)};var e=Cb();return WM}var YM,VM={};function HM(){if(YM)return VM;YM=1,VM.millisecondsToHours=function(t){return Math.trunc(t/e.millisecondsInHour)};var e=Cb();return VM}var KM,JM={};function QM(){if(KM)return JM;KM=1,JM.millisecondsToMinutes=function(t){return Math.trunc(t/e.millisecondsInMinute)};var e=Cb();return JM}var XM,eP={};function tP(){if(XM)return eP;XM=1,eP.millisecondsToSeconds=function(t){return Math.trunc(t/e.millisecondsInSecond)};var e=Cb();return eP}var nP,rP={};function iP(){if(nP)return rP;nP=1,rP.minutesToHours=function(t){return Math.trunc(t/e.minutesInHour)};var e=Cb();return rP}var oP,aP={};function sP(){if(oP)return aP;oP=1,aP.minutesToMilliseconds=function(t){return Math.trunc(t*e.millisecondsInMinute)};var e=Cb();return aP}var dP,cP={};function uP(){if(dP)return cP;dP=1,cP.minutesToSeconds=function(t){return Math.trunc(t*e.secondsInMinute)};var e=Cb();return cP}var lP,pP={};function mP(){if(lP)return pP;lP=1,pP.monthsToQuarters=function(t){return Math.trunc(t/e.monthsInQuarter)};var e=Cb();return pP}var fP,hP={};function vP(){if(fP)return hP;fP=1,hP.monthsToYears=function(t){return Math.trunc(t/e.monthsInYear)};var e=Cb();return hP}var gP,yP={};function bP(){if(gP)return yP;gP=1,yP.nextDay=function(n,r,i){let o=r-(0,t.getDay)(n,i);return o<=0&&(o+=7),(0,e.addDays)(n,o,i)};var e=Gb(),t=OA();return yP}var wP,$P={};function kP(){if(wP)return $P;wP=1,$P.nextFriday=function(t,n){return(0,e.nextDay)(t,5,n)};var e=bP();return $P}var IP,xP={};function EP(){if(IP)return xP;IP=1,xP.nextMonday=function(t,n){return(0,e.nextDay)(t,1,n)};var e=bP();return xP}var AP,TP={};function OP(){if(AP)return TP;AP=1,TP.nextSaturday=function(t,n){return(0,e.nextDay)(t,6,n)};var e=bP();return TP}var _P,DP={};function SP(){if(_P)return DP;_P=1,DP.nextSunday=function(t,n){return(0,e.nextDay)(t,0,n)};var e=bP();return DP}var MP,PP={};function jP(){if(MP)return PP;MP=1,PP.nextThursday=function(t,n){return(0,e.nextDay)(t,4,n)};var e=bP();return PP}var CP,NP={};function RP(){if(CP)return NP;CP=1,NP.nextTuesday=function(t,n){return(0,e.nextDay)(t,2,n)};var e=bP();return NP}var UP,LP={};function qP(){if(UP)return LP;UP=1,LP.nextWednesday=function(t,n){return(0,e.nextDay)(t,3,n)};var e=bP();return LP}var GP,zP={};function FP(){if(GP)return zP;GP=1,zP.parseISO=function(l,p){const m=()=>(0,t.constructFrom)(p?.in,NaN),f=p?.additionalDigits??2,h=function(e){const t={},n=e.split(r.dateTimeDelimiter);let i;if(n.length>2)return t;if(/:/.test(n[0])?i=n[0]:(t.date=n[0],i=n[1],r.timeZoneDelimiter.test(t.date)&&(t.date=e.split(r.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){const e=r.timezone.exec(i);e?(t.time=i.replace(e[1],""),t.timezone=e[1]):t.time=i}return t}(l);let v;if(h.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(h.date,f);v=function(e,t){if(null===t)return new Date(NaN);const n=e.match(i);if(!n)return new Date(NaN);const r=!!n[4],o=s(n[1]),a=s(n[2])-1,d=s(n[3]),l=s(n[4]),p=s(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,l,p)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=7*(t-1)+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}(t,l,p):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(c[t]||(u(e)?29:28))}(t,a,d)&&function(e,t){return t>=1&&t<=(u(e)?366:365)}(t,o)?(e.setUTCFullYear(t,a,Math.max(o,d)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!v||isNaN(+v))return m();const g=+v;let y,b=0;if(h.time&&(b=function(t){const n=t.match(o);if(!n)return NaN;const r=d(n[1]),i=d(n[2]),a=d(n[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(r,i,a)?r*e.millisecondsInHour+i*e.millisecondsInMinute+1e3*a:NaN}(h.time),isNaN(b)))return m();if(!h.timezone){const e=new Date(g+b),t=(0,n.toDate)(0,p?.in);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return y=function(t){if("Z"===t)return 0;const n=t.match(a);if(!n)return 0;const r="+"===n[1]?-1:1,i=parseInt(n[2]),o=n[3]&&parseInt(n[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?r*(i*e.millisecondsInHour+o*e.millisecondsInMinute):NaN}(h.timezone),isNaN(y)?m():(0,n.toDate)(g+b+y,p?.in)};var e=Cb(),t=Nb(),n=qb();const r={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},i=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,o=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,a=/^([+-])(\d{2})(?::?(\d{2}))?$/;function s(e){return e?parseInt(e):1}function d(e){return e&&parseFloat(e.replace(",","."))||0}const c=[31,null,31,30,31,30,31,31,30,31,30,31];function u(e){return e%400==0||e%4==0&&e%100!=0}return zP}var BP,WP={};function ZP(){if(BP)return WP;BP=1,WP.parseJSON=function(t,n){const r=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return(0,e.toDate)(r?Date.UTC(+r[1],+r[2]-1,+r[3],+r[4]-(+r[9]||0)*("-"==r[8]?-1:1),+r[5]-(+r[10]||0)*("-"==r[8]?-1:1),+r[6],+((r[7]||"0")+"00").substring(0,3)):NaN,n?.in)};var e=qb();return WP}var YP,VP={};function HP(){if(YP)return VP;YP=1,VP.previousDay=function(n,r,i){let o=(0,e.getDay)(n,i)-r;return o<=0&&(o+=7),(0,t.subDays)(n,o,i)};var e=OA(),t=$M();return VP}var KP,JP={};function QP(){if(KP)return JP;KP=1,JP.previousFriday=function(t,n){return(0,e.previousDay)(t,5,n)};var e=HP();return JP}var XP,ej={};function tj(){if(XP)return ej;XP=1,ej.previousMonday=function(t,n){return(0,e.previousDay)(t,1,n)};var e=HP();return ej}var nj,rj={};function ij(){if(nj)return rj;nj=1,rj.previousSaturday=function(t,n){return(0,e.previousDay)(t,6,n)};var e=HP();return rj}var oj,aj={};function sj(){if(oj)return aj;oj=1,aj.previousSunday=function(t,n){return(0,e.previousDay)(t,0,n)};var e=HP();return aj}var dj,cj={};function uj(){if(dj)return cj;dj=1,cj.previousThursday=function(t,n){return(0,e.previousDay)(t,4,n)};var e=HP();return cj}var lj,pj={};function mj(){if(lj)return pj;lj=1,pj.previousTuesday=function(t,n){return(0,e.previousDay)(t,2,n)};var e=HP();return pj}var fj,hj={};function vj(){if(fj)return hj;fj=1,hj.previousWednesday=function(t,n){return(0,e.previousDay)(t,3,n)};var e=HP();return hj}var gj,yj={};function bj(){if(gj)return yj;gj=1,yj.quartersToMonths=function(t){return Math.trunc(t*e.monthsInQuarter)};var e=Cb();return yj}var wj,$j={};function kj(){if(wj)return $j;wj=1,$j.quartersToYears=function(t){return Math.trunc(t/e.quartersInYear)};var e=Cb();return $j}var Ij,xj={};function Ej(){if(Ij)return xj;Ij=1,xj.roundToNearestHours=function(r,i){const o=i?.nearestTo??1;if(o<1||o>12)return(0,t.constructFrom)(i?.in||r,NaN);const a=(0,n.toDate)(r,i?.in),s=a.getMinutes()/60,d=a.getSeconds()/60/60,c=a.getMilliseconds()/1e3/60/60,u=a.getHours()+s+d+c,l=(0,e.getRoundingMethod)(i?.roundingMethod??"round")(u/o)*o;return a.setHours(l,0,0,0),a};var e=$k(),t=Nb(),n=qb();return xj}var Aj,Tj={};function Oj(){if(Aj)return Tj;Aj=1,Tj.roundToNearestMinutes=function(r,i){const o=i?.nearestTo??1;if(o<1||o>30)return(0,t.constructFrom)(r,NaN);const a=(0,n.toDate)(r,i?.in),s=a.getSeconds()/60,d=a.getMilliseconds()/1e3/60,c=a.getMinutes()+s+d,u=(0,e.getRoundingMethod)(i?.roundingMethod??"round")(c/o)*o;return a.setMinutes(u,0,0),a};var e=$k(),t=Nb(),n=qb();return Tj}var _j,Dj={};function Sj(){if(_j)return Dj;_j=1,Dj.secondsToHours=function(t){return Math.trunc(t/e.secondsInHour)};var e=Cb();return Dj}var Mj,Pj={};function jj(){if(Mj)return Pj;Mj=1,Pj.secondsToMilliseconds=function(t){return t*e.millisecondsInSecond};var e=Cb();return Pj}var Cj,Nj={};function Rj(){if(Cj)return Nj;Cj=1,Nj.secondsToMinutes=function(t){return Math.trunc(t/e.secondsInMinute)};var e=Cb();return Nj}var Uj,Lj,qj={},Gj={};function zj(){if(Uj)return Gj;Uj=1,Gj.setMonth=function(r,i,o){const a=(0,n.toDate)(r,o?.in),s=a.getFullYear(),d=a.getDate(),c=(0,e.constructFrom)(o?.in||r,0);c.setFullYear(s,i,15),c.setHours(0,0,0,0);const u=(0,t.getDaysInMonth)(c);return a.setMonth(i,Math.min(d,u)),a};var e=Nb(),t=SA(),n=qb();return Gj}function Fj(){if(Lj)return qj;Lj=1,qj.set=function(r,i,o){let a=(0,n.toDate)(r,o?.in);return isNaN(+a)?(0,e.constructFrom)(o?.in||r,NaN):(null!=i.year&&a.setFullYear(i.year),null!=i.month&&(a=(0,t.setMonth)(a,i.month)),null!=i.date&&a.setDate(i.date),null!=i.hours&&a.setHours(i.hours),null!=i.minutes&&a.setMinutes(i.minutes),null!=i.seconds&&a.setSeconds(i.seconds),null!=i.milliseconds&&a.setMilliseconds(i.milliseconds),a)};var e=Nb(),t=zj(),n=qb();return qj}var Bj,Wj={};function Zj(){if(Bj)return Wj;Bj=1,Wj.setDate=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setDate(n),i};var e=qb();return Wj}var Yj,Vj={};function Hj(){if(Yj)return Vj;Yj=1,Vj.setDayOfYear=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setMonth(0),i.setDate(n),i};var e=qb();return Vj}var Kj,Jj={};function Qj(){if(Kj)return Jj;Kj=1,Jj.setDefaultOptions=function(t){const n={},r=(0,e.getDefaultOptions)();for(const e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e]);for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(void 0===t[e]?delete n[e]:n[e]=t[e]);(0,e.setDefaultOptions)(n)};var e=ww();return Jj}var Xj,eC={};function tC(){if(Xj)return eC;Xj=1,eC.setHours=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setHours(n),i};var e=qb();return eC}var nC,rC={};function iC(){if(nC)return rC;nC=1,rC.setMilliseconds=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setMilliseconds(n),i};var e=qb();return rC}var oC,aC={};function sC(){if(oC)return aC;oC=1,aC.setMinutes=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setMinutes(n),i};var e=qb();return aC}var dC,cC={};function uC(){if(dC)return cC;dC=1,cC.setQuarter=function(n,r,i){const o=(0,t.toDate)(n,i?.in),a=r-(Math.trunc(o.getMonth()/3)+1);return(0,e.setMonth)(o,o.getMonth()+3*a)};var e=zj(),t=qb();return cC}var lC,pC={};function mC(){if(lC)return pC;lC=1,pC.setSeconds=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setSeconds(n),i};var e=qb();return pC}var fC,hC={};function vC(){if(fC)return hC;fC=1,hC.setWeekYear=function(o,a,s){const d=(0,e.getDefaultOptions)(),c=s?.firstWeekContainsDate??s?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,u=(0,n.differenceInCalendarDays)((0,i.toDate)(o,s?.in),(0,r.startOfWeekYear)(o,s),s),l=(0,t.constructFrom)(s?.in||o,0);l.setFullYear(a,0,c),l.setHours(0,0,0,0);const p=(0,r.startOfWeekYear)(l,s);return p.setDate(p.getDate()+u),p};var e=ww(),t=Nb(),n=Nw(),r=IE(),i=qb();return hC}var gC,yC={};function bC(){if(gC)return yC;gC=1,yC.setYear=function(n,r,i){const o=(0,t.toDate)(n,i?.in);return isNaN(+o)?(0,e.constructFrom)(i?.in||n,NaN):(o.setFullYear(r),o)};var e=Nb(),t=qb();return yC}var wC,$C={};function kC(){if(wC)return $C;wC=1,$C.startOfDecade=function(t,n){const r=(0,e.toDate)(t,n?.in),i=r.getFullYear(),o=10*Math.floor(i/10);return r.setFullYear(o,0,1),r.setHours(0,0,0,0),r};var e=qb();return $C}var IC,xC={};function EC(){if(IC)return xC;IC=1,xC.startOfToday=function(t){return(0,e.startOfDay)(Date.now(),t)};var e=Cw();return xC}var AC,TC={};function OC(){if(AC)return TC;AC=1,TC.startOfTomorrow=function(n){const r=(0,t.constructNow)(n?.in),i=r.getFullYear(),o=r.getMonth(),a=r.getDate(),s=(0,e.constructFrom)(n?.in,0);return s.setFullYear(i,o,a+1),s.setHours(0,0,0,0),s};var e=Nb(),t=S$();return TC}var _C,DC={};function SC(){if(_C)return DC;_C=1,DC.startOfYesterday=function(t){const n=(0,e.constructNow)(t?.in),r=n.getFullYear(),i=n.getMonth(),o=n.getDate(),a=(0,e.constructNow)(t?.in);return a.setFullYear(r,i,o-1),a.setHours(0,0,0,0),a};var e=S$();return DC}var MC,PC,jC={},CC={};function NC(){if(MC)return CC;MC=1,CC.subMonths=function(t,n,r){return(0,e.addMonths)(t,-n,r)};var e=Wb();return CC}function RC(){if(PC)return jC;PC=1,jC.sub=function(r,i,o){const{years:a=0,months:s=0,weeks:d=0,days:c=0,hours:u=0,minutes:l=0,seconds:p=0}=i,m=(0,n.subMonths)(r,s+12*a,o),f=(0,t.subDays)(m,c+7*d,o),h=1e3*(p+60*(l+60*u));return(0,e.constructFrom)(o?.in||r,+f-h)};var e=Nb(),t=$M(),n=NC();return jC}var UC,LC={};function qC(){if(UC)return LC;UC=1,LC.subBusinessDays=function(t,n,r){return(0,e.addBusinessDays)(t,-n,r)};var e=iw();return LC}var GC,zC={};function FC(){if(GC)return zC;GC=1,zC.subHours=function(t,n,r){return(0,e.addHours)(t,-n,r)};var e=uw();return zC}var BC,WC={};function ZC(){if(BC)return WC;BC=1,WC.subMilliseconds=function(t,n,r){return(0,e.addMilliseconds)(t,-n,r)};var e=cw();return WC}var YC,VC={};function HC(){if(YC)return VC;YC=1,VC.subMinutes=function(t,n,r){return(0,e.addMinutes)(t,-n,r)};var e=Zw();return VC}var KC,JC={};function QC(){if(KC)return JC;KC=1,JC.subQuarters=function(t,n,r){return(0,e.addQuarters)(t,-n,r)};var e=Hw();return JC}var XC,eN={};function tN(){if(XC)return eN;XC=1,eN.subSeconds=function(t,n,r){return(0,e.addSeconds)(t,-n,r)};var e=Qw();return eN}var nN,rN={};function iN(){if(nN)return rN;nN=1,rN.subWeeks=function(t,n,r){return(0,e.addWeeks)(t,-n,r)};var e=t$();return rN}var oN,aN={};function sN(){if(oN)return aN;oN=1,aN.subYears=function(t,n,r){return(0,e.addYears)(t,-n,r)};var e=i$();return aN}var dN,cN={};function uN(){if(dN)return cN;dN=1,cN.weeksToDays=function(t){return Math.trunc(t*e.daysInWeek)};var e=Cb();return cN}var lN,pN={};function mN(){if(lN)return pN;lN=1,pN.yearsToDays=function(t){return Math.trunc(t*e.daysInYear)};var e=Cb();return pN}var fN,hN={};function vN(){if(fN)return hN;fN=1,hN.yearsToMonths=function(t){return Math.trunc(t*e.monthsInYear)};var e=Cb();return hN}var gN,yN,bN={};function wN(){if(gN)return bN;gN=1,bN.yearsToQuarters=function(t){return Math.trunc(t*e.quartersInYear)};var e=Cb();return bN}function $N(){return yN||(yN=1,function(e){var t=Zb();Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}));var n=iw();Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))}));var r=Gb();Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))}));var i=uw();Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===i[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))}));var o=Fw();Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===o[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}));var a=cw();Object.keys(a).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===a[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}}))}));var s=Zw();Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===s[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}}))}));var d=Wb();Object.keys(d).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===d[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))}));var c=Hw();Object.keys(c).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===c[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}}))}));var u=Qw();Object.keys(u).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===u[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}}))}));var l=t$();Object.keys(l).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===l[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}}))}));var p=i$();Object.keys(p).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===p[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}}))}));var m=s$();Object.keys(m).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===m[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return m[t]}}))}));var f=v$();Object.keys(f).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===f[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return f[t]}}))}));var h=b$();Object.keys(h).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===h[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return h[t]}}))}));var v=k$();Object.keys(v).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===v[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return v[t]}}))}));var g=E$();Object.keys(g).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===g[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return g[t]}}))}));var y=O$();Object.keys(y).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===y[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return y[t]}}))}));var b=Nb();Object.keys(b).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===b[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return b[t]}}))}));var w=S$();Object.keys(w).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===w[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return w[t]}}))}));var $=j$();Object.keys($).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===$[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return $[t]}}))}));var k=Z$();Object.keys(k).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===k[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return k[t]}}))}));var I=Nw();Object.keys(I).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===I[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return I[t]}}))}));var x=H$();Object.keys(x).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===x[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return x[t]}}))}));var E=Q$();Object.keys(E).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===E[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return E[t]}}))}));var A=tk();Object.keys(A).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===A[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return A[t]}}))}));var T=sk();Object.keys(T).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===T[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return T[t]}}))}));var O=uk();Object.keys(O).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===O[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return O[t]}}))}));var _=mk();Object.keys(_).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===_[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return _[t]}}))}));var D=vk();Object.keys(D).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===D[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return D[t]}}))}));var S=kk();Object.keys(S).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===S[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return S[t]}}))}));var M=Ok();Object.keys(M).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===M[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return M[t]}}))}));var P=Sk();Object.keys(P).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===P[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return P[t]}}))}));var j=jk();Object.keys(j).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===j[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return j[t]}}))}));var C=Zk();Object.keys(C).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===C[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return C[t]}}))}));var N=Hk();Object.keys(N).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===N[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return N[t]}}))}));var R=Qk();Object.keys(R).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===R[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return R[t]}}))}));var U=tI();Object.keys(U).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===U[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return U[t]}}))}));var L=iI();Object.keys(L).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===L[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return L[t]}}))}));var q=uI();Object.keys(q).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===q[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return q[t]}}))}));var G=mI();Object.keys(G).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===G[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return G[t]}}))}));var z=vI();Object.keys(z).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===z[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return z[t]}}))}));var F=bI();Object.keys(F).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===F[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return F[t]}}))}));var B=EI();Object.keys(B).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===B[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return B[t]}}))}));var W=OI();Object.keys(W).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===W[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return W[t]}}))}));var Z=SI();Object.keys(Z).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Z[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Z[t]}}))}));var Y=RI();Object.keys(Y).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Y[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Y[t]}}))}));var V=ZI();Object.keys(V).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===V[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return V[t]}}))}));var H=HI();Object.keys(H).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===H[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return H[t]}}))}));var K=Lk();Object.keys(K).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===K[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return K[t]}}))}));var J=QI();Object.keys(J).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===J[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return J[t]}}))}));var Q=tx();Object.keys(Q).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Q[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Q[t]}}))}));var X=sx();Object.keys(X).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===X[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return X[t]}}))}));var ee=ux();Object.keys(ee).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ee[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ee[t]}}))}));var te=mx();Object.keys(te).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===te[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return te[t]}}))}));var ne=Bk();Object.keys(ne).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ne[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ne[t]}}))}));var re=vx();Object.keys(re).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===re[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return re[t]}}))}));var ie=bx();Object.keys(ie).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ie[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ie[t]}}))}));var oe=kx();Object.keys(oe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===oe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return oe[t]}}))}));var ae=Ex();Object.keys(ae).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ae[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ae[t]}}))}));var se=ax();Object.keys(se).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===se[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return se[t]}}))}));var de=GI();Object.keys(de).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===de[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return de[t]}}))}));var ce=Ox();Object.keys(ce).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ce[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ce[t]}}))}));var ue=qE();Object.keys(ue).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ue[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ue[t]}}))}));var le=FE();Object.keys(le).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===le[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return le[t]}}))}));var pe=ZE();Object.keys(pe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===pe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return pe[t]}}))}));var me=HE();Object.keys(me).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===me[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return me[t]}}))}));var fe=QE();Object.keys(fe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===fe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return fe[t]}}))}));var he=tA();Object.keys(he).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===he[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return he[t]}}))}));var ve=iA();Object.keys(ve).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ve[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ve[t]}}))}));var ge=sA();Object.keys(ge).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ge[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ge[t]}}))}));var ye=uA();Object.keys(ye).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ye[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ye[t]}}))}));var be=mA();Object.keys(be).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===be[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return be[t]}}))}));var we=vA();Object.keys(we).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===we[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return we[t]}}))}));var $e=bA();Object.keys($e).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===$e[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return $e[t]}}))}));var ke=kA();Object.keys(ke).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ke[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ke[t]}}))}));var Ie=EA();Object.keys(Ie).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ie[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ie[t]}}))}));var xe=OA();Object.keys(xe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===xe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return xe[t]}}))}));var Ee=pE();Object.keys(Ee).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ee[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ee[t]}}))}));var Ae=SA();Object.keys(Ae).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ae[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ae[t]}}))}));var Te=RA();Object.keys(Te).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Te[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Te[t]}}))}));var Oe=qA();Object.keys(Oe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Oe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Oe[t]}}))}));var _e=FA();Object.keys(_e).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===_e[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return _e[t]}}))}));var De=ZA();Object.keys(De).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===De[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return De[t]}}))}));var Se=HA();Object.keys(Se).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Se[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Se[t]}}))}));var Me=hE();Object.keys(Me).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Me[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Me[t]}}))}));var Pe=Iw();Object.keys(Pe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Pe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Pe[t]}}))}));var je=QA();Object.keys(je).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===je[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return je[t]}}))}));var Ce=tT();Object.keys(Ce).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ce[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ce[t]}}))}));var Ne=iT();Object.keys(Ne).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ne[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ne[t]}}))}));var Re=sT();Object.keys(Re).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Re[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Re[t]}}))}));var Ue=uT();Object.keys(Ue).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ue[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ue[t]}}))}));var Le=ak();Object.keys(Le).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Le[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Le[t]}}))}));var qe=mT();Object.keys(qe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===qe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return qe[t]}}))}));var Ge=vT();Object.keys(Ge).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ge[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ge[t]}}))}));var ze=bT();Object.keys(ze).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ze[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ze[t]}}))}));var Fe=xE();Object.keys(Fe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Fe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Fe[t]}}))}));var Be=kT();Object.keys(Be).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Be[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Be[t]}}))}));var We=kE();Object.keys(We).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===We[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return We[t]}}))}));var Ze=OT();Object.keys(Ze).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ze[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ze[t]}}))}));var Ye=ST();Object.keys(Ye).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ye[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ye[t]}}))}));var Ve=jT();Object.keys(Ve).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ve[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ve[t]}}))}));var He=RT();Object.keys(He).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===He[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return He[t]}}))}));var Ke=qT();Object.keys(Ke).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ke[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ke[t]}}))}));var Je=FT();Object.keys(Je).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Je[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Je[t]}}))}));var Qe=ZT();Object.keys(Qe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Qe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Qe[t]}}))}));var Xe=HT();Object.keys(Xe).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Xe[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Xe[t]}}))}));var et=QT();Object.keys(et).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===et[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return et[t]}}))}));var tt=tO();Object.keys(tt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===tt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return tt[t]}}))}));var nt=iO();Object.keys(nt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===nt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return nt[t]}}))}));var rt=B$();Object.keys(rt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===rt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return rt[t]}}))}));var it=sO();Object.keys(it).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===it[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return it[t]}}))}));var ot=uO();Object.keys(ot).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ot[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ot[t]}}))}));var at=mO();Object.keys(at).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===at[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return at[t]}}))}));var st=vO();Object.keys(st).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===st[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return st[t]}}))}));var dt=bO();Object.keys(dt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===dt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return dt[t]}}))}));var ct=Wk();Object.keys(ct).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ct[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ct[t]}}))}));var ut=NA();Object.keys(ut).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ut[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ut[t]}}))}));var lt=qD();Object.keys(lt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===lt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return lt[t]}}))}));var pt=FD();Object.keys(pt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===pt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return pt[t]}}))}));var mt=ZD();Object.keys(mt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===mt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return mt[t]}}))}));var ft=U$();Object.keys(ft).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ft[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ft[t]}}))}));var ht=QD();Object.keys(ht).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ht[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ht[t]}}))}));var vt=iS();Object.keys(vt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===vt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return vt[t]}}))}));var gt=sS();Object.keys(gt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===gt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return gt[t]}}))}));var yt=mS();Object.keys(yt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===yt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return yt[t]}}))}));var bt=vS();Object.keys(bt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===bt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return bt[t]}}))}));var wt=bS();Object.keys(wt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===wt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return wt[t]}}))}));var $t=ES();Object.keys($t).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===$t[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return $t[t]}}))}));var kt=rS();Object.keys(kt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===kt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return kt[t]}}))}));var It=OS();Object.keys(It).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===It[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return It[t]}}))}));var xt=Kb();Object.keys(xt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===xt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return xt[t]}}))}));var Et=Xb();Object.keys(Et).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Et[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Et[t]}}))}));var At=SS();Object.keys(At).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===At[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return At[t]}}))}));var Tt=jS();Object.keys(Tt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Tt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Tt[t]}}))}));var Ot=RS();Object.keys(Ot).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ot[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ot[t]}}))}));var _t=qS();Object.keys(_t).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===_t[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return _t[t]}}))}));var Dt=FS();Object.keys(Dt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Dt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Dt[t]}}))}));var St=ZS();Object.keys(St).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===St[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return St[t]}}))}));var Mt=HS();Object.keys(Mt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Mt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Mt[t]}}))}));var Pt=QS();Object.keys(Pt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Pt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Pt[t]}}))}));var jt=tM();Object.keys(jt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===jt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return jt[t]}}))}));var Ct=iM();Object.keys(Ct).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ct[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ct[t]}}))}));var Nt=sM();Object.keys(Nt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Nt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Nt[t]}}))}));var Rt=uM();Object.keys(Rt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Rt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Rt[t]}}))}));var Ut=W$();Object.keys(Ut).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ut[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ut[t]}}))}));var Lt=mM();Object.keys(Lt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Lt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Lt[t]}}))}));var qt=rw();Object.keys(qt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===qt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return qt[t]}}))}));var Gt=vM();Object.keys(Gt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Gt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Gt[t]}}))}));var zt=kM();Object.keys(zt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===zt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return zt[t]}}))}));var Ft=EM();Object.keys(Ft).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ft[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ft[t]}}))}));var Bt=SM();Object.keys(Bt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Bt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Bt[t]}}))}));var Wt=jM();Object.keys(Wt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Wt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Wt[t]}}))}));var Zt=TT();Object.keys(Zt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Zt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Zt[t]}}))}));var Yt=RM();Object.keys(Yt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Yt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Yt[t]}}))}));var Vt=DM();Object.keys(Vt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Vt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Vt[t]}}))}));var Ht=qM();Object.keys(Ht).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ht[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ht[t]}}))}));var Kt=FM();Object.keys(Kt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Kt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Kt[t]}}))}));var Jt=l$();Object.keys(Jt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Jt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Jt[t]}}))}));var Qt=ZM();Object.keys(Qt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Qt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Qt[t]}}))}));var Xt=HM();Object.keys(Xt).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Xt[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Xt[t]}}))}));var en=QM();Object.keys(en).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===en[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return en[t]}}))}));var tn=tP();Object.keys(tn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===tn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return tn[t]}}))}));var nn=h$();Object.keys(nn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===nn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return nn[t]}}))}));var rn=iP();Object.keys(rn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===rn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return rn[t]}}))}));var on=sP();Object.keys(on).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===on[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return on[t]}}))}));var an=uP();Object.keys(an).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===an[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return an[t]}}))}));var sn=mP();Object.keys(sn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===sn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return sn[t]}}))}));var dn=vP();Object.keys(dn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===dn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return dn[t]}}))}));var cn=bP();Object.keys(cn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===cn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return cn[t]}}))}));var un=kP();Object.keys(un).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===un[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return un[t]}}))}));var ln=EP();Object.keys(ln).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ln[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ln[t]}}))}));var pn=OP();Object.keys(pn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===pn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return pn[t]}}))}));var mn=SP();Object.keys(mn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===mn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return mn[t]}}))}));var fn=jP();Object.keys(fn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===fn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return fn[t]}}))}));var hn=RP();Object.keys(hn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===hn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return hn[t]}}))}));var vn=qP();Object.keys(vn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===vn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return vn[t]}}))}));var gn=LD();Object.keys(gn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===gn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return gn[t]}}))}));var yn=FP();Object.keys(yn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===yn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return yn[t]}}))}));var bn=ZP();Object.keys(bn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===bn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return bn[t]}}))}));var wn=HP();Object.keys(wn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===wn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return wn[t]}}))}));var $n=QP();Object.keys($n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===$n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return $n[t]}}))}));var kn=tj();Object.keys(kn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===kn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return kn[t]}}))}));var In=ij();Object.keys(In).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===In[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return In[t]}}))}));var xn=sj();Object.keys(xn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===xn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return xn[t]}}))}));var En=uj();Object.keys(En).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===En[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return En[t]}}))}));var An=mj();Object.keys(An).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===An[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return An[t]}}))}));var Tn=vj();Object.keys(Tn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Tn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Tn[t]}}))}));var On=bj();Object.keys(On).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===On[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return On[t]}}))}));var _n=kj();Object.keys(_n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===_n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return _n[t]}}))}));var Dn=Ej();Object.keys(Dn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Dn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Dn[t]}}))}));var Sn=Oj();Object.keys(Sn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Sn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Sn[t]}}))}));var Mn=Sj();Object.keys(Mn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Mn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Mn[t]}}))}));var Pn=jj();Object.keys(Pn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Pn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Pn[t]}}))}));var jn=Rj();Object.keys(jn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===jn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return jn[t]}}))}));var Cn=Fj();Object.keys(Cn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Cn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Cn[t]}}))}));var Nn=Zj();Object.keys(Nn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Nn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Nn[t]}}))}));var Rn=P_();Object.keys(Rn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Rn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Rn[t]}}))}));var Un=Hj();Object.keys(Un).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Un[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Un[t]}}))}));var Ln=Qj();Object.keys(Ln).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ln[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ln[t]}}))}));var qn=tC();Object.keys(qn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===qn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return qn[t]}}))}));var Gn=W_();Object.keys(Gn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Gn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Gn[t]}}))}));var zn=$_();Object.keys(zn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===zn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return zn[t]}}))}));var Fn=zw();Object.keys(Fn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Fn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Fn[t]}}))}));var Bn=iC();Object.keys(Bn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Bn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Bn[t]}}))}));var Wn=sC();Object.keys(Wn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Wn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Wn[t]}}))}));var Zn=zj();Object.keys(Zn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Zn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Zn[t]}}))}));var Yn=uC();Object.keys(Yn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Yn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Yn[t]}}))}));var Vn=mC();Object.keys(Vn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Vn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Vn[t]}}))}));var Hn=h_();Object.keys(Hn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Hn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Hn[t]}}))}));var Kn=vC();Object.keys(Kn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Kn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Kn[t]}}))}));var Jn=bC();Object.keys(Jn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Jn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Jn[t]}}))}));var Qn=Cw();Object.keys(Qn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Qn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Qn[t]}}))}));var Xn=kC();Object.keys(Xn).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Xn[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Xn[t]}}))}));var er=JD();Object.keys(er).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===er[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return er[t]}}))}));var tr=kw();Object.keys(tr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===tr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return tr[t]}}))}));var nr=Gw();Object.keys(nr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===nr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return nr[t]}}))}));var rr=pS();Object.keys(rr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===rr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return rr[t]}}))}));var ir=NI();Object.keys(ir).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ir[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ir[t]}}))}));var or=xI();Object.keys(or).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===or[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return or[t]}}))}));var ar=xS();Object.keys(ar).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ar[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ar[t]}}))}));var sr=EC();Object.keys(sr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===sr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return sr[t]}}))}));var dr=OC();Object.keys(dr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===dr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return dr[t]}}))}));var cr=$w();Object.keys(cr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===cr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return cr[t]}}))}));var ur=IE();Object.keys(ur).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===ur[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return ur[t]}}))}));var lr=WI();Object.keys(lr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===lr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return lr[t]}}))}));var pr=SC();Object.keys(pr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===pr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return pr[t]}}))}));var mr=RC();Object.keys(mr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===mr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return mr[t]}}))}));var fr=qC();Object.keys(fr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===fr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return fr[t]}}))}));var hr=$M();Object.keys(hr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===hr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return hr[t]}}))}));var vr=FC();Object.keys(vr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===vr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return vr[t]}}))}));var gr=Tk();Object.keys(gr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===gr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return gr[t]}}))}));var yr=ZC();Object.keys(yr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===yr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return yr[t]}}))}));var br=HC();Object.keys(br).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===br[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return br[t]}}))}));var wr=NC();Object.keys(wr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===wr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return wr[t]}}))}));var $r=QC();Object.keys($r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===$r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return $r[t]}}))}));var kr=tN();Object.keys(kr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===kr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return kr[t]}}))}));var Ir=iN();Object.keys(Ir).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ir[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ir[t]}}))}));var xr=sN();Object.keys(xr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===xr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return xr[t]}}))}));var Er=qb();Object.keys(Er).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Er[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Er[t]}}))}));var Ar=AO();Object.keys(Ar).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Ar[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Ar[t]}}))}));var Tr=uN();Object.keys(Tr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Tr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Tr[t]}}))}));var Or=mN();Object.keys(Or).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Or[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Or[t]}}))}));var _r=vN();Object.keys(_r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===_r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return _r[t]}}))}));var Dr=wN();Object.keys(Dr).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===Dr[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return Dr[t]}}))}))}(Db)),Db}var kN=$N();function IN(e,t){const[n,r,i,o,a,s]=function(e){const[t,n]=e.split("T");if(!t||!n)throw new Error(`Invalid naive datetime format: ${e}`);const r=[...t.split("-"),...n.split(":")].map(Number);if(r.length<6)throw new Error(`Invalid naive datetime format: ${e}`);return r.slice(0,6)}(e);return new _b.TZDate(n,r-1,i,o,a,s,t)}function xN(e,t){const n=kN.parse(e,"yyyy-MM-dd'T'HH:mm:ss",new Date);return kN.format(n,t)}function EN(e,t){return IN(e,t)<new _b.TZDate(new Date,t)}function AN(e,t){return IN(e,t)>new _b.TZDate(new Date,t)}function TN(e){return e?.trim().toUpperCase()??""}function ON(e){return null==e||-1===e?Number.POSITIVE_INFINITY:Math.max(0,e)}function _N(e){return Math.min(ON(e.admission.available),ON(e.admission.limit),ON(e.section?.available),ON(e.section?.limit))}function DN(e){return _N(e)<=0}function SN(e,t){return`${e}::${t||"none"}`}function MN(e){return e?"total"in e&&"number"==typeof e.total?e.total:(e.base??0)+(e.booking??0):0}function PN(e){return e.location?.timeZone??"UTC"}function jN(e){return new Map(e.sections.map((e=>[e.id,e])))}function CN(e,t){return!e.sectionId||t.has(e.sectionId)}function NN(e){const t=jN(e),n=PN(e);return e.admissions.some((e=>function(e,t,n){return!!CN(e,n)&&!!function(e,t){return!AN(e.saleStartsAt,t)&&!EN(e.saleEndsAt,t)}(e,t)&&function(e,t){return _N({admission:e,section:t})>0}(e,function(e,t){if(e.sectionId)return t.get(e.sectionId)}(e,n))}(e,n,t)))}function RN(e,t){return AN(e.saleStartsAt,t)?{text:`On sale ${xN(e.saleStartsAt,"EEE, MMM d · h:mm a")}`,tone:"muted"}:null}function UN(e){const t=function(e){return EN(e.entryEndsAt,PN(e))}(e),n=e.url||void 0,r=function(e){return!NN(e)&&"DOOR"===function(e){const t=jN(e),n=e.admissions.filter((e=>"HIDDEN"!==e.visibility&&CN(e,t)));if(0!==n.length)return NN(e)?"ONLINE":function(e,t){const n=e.filter((e=>EN(e.saleEndsAt,t)));if(0!==n.length)return n.some((e=>"DOOR"===e.saleEndsBehavior))?"DOOR":n.every((e=>"SOLD_OUT"===e.saleEndsBehavior))?"SOLD_OUT":"SALE_ENDED"}(n,PN(e))}(e)}(e),i=!t&&Boolean(n),o=!t&&!i&&function(e){const t=jN(e);return e.admissions.some((e=>CN(e,t)))}(e);return{externalTicketUrl:n,isDoorOnly:r,isEnded:t,isUnavailableForSale:!r&&!NN(e)&&o,showExternalTicketing:i,showTicketing:o,ticketHeading:r?"Tickets at the Door":"Get Tickets"}}function LN(e,t){return e.map((e=>({type:"section",section:e,admissions:t.filter((t=>t.sectionId===e.id)).sort(((e,t)=>e.order-t.order))}))).filter((e=>e.admissions.length>0))}function qN(e){return"section"===e.type?e.section.order:e.admission.order}function GN(e,t,n){return[!t,!n,(e.available??0)>0,(e.available??0)<20].every(Boolean)}function zN(e){const t=PN(e.event),n=AN(e.admission.saleStartsAt,t),r=EN(e.admission.saleEndsAt,t),i=r&&"SOLD_OUT"===e.admission.saleEndsBehavior,o=Boolean(e.sectionSoldOut)||i||DN({admission:e.admission,section:e.section}),a=o||n||r,s=function(e){return"DOOR"===e.value&&(e.soldOut||e.saleEnded)?{text:"Available At Door",tone:"success"}:e.soldOut?{text:"Sold Out",tone:"destructive"}:e.saleEnded?{text:"Sale Ended",tone:"destructive"}:null}({saleEnded:r,soldOut:o,value:e.admission.saleEndsBehavior});return{disabled:a,label:RN(e.admission,t),maxQuantity:(d=e.admission,c=e.section,function(e,t){return-1===(e.available??0)&&-1===e.capacity&&(!t||-1===(t.available??0))}(d,c)?10:Math.min(_N({admission:d,section:c}),10)),postSale:r,showScarcity:GN(e.admission,o,a),soldOut:o,statusLabel:s?.text??null,statusTone:s?.tone??null};var d,c}function FN(e){return function(e){return new Map((e?.items??[]).filter((e=>"ADMISSION"===e.kind&&e.admissionId)).map((e=>{return[(t={admissionId:e.admissionId??"",sectionId:e.sectionId},`${t.admissionId}::${t.sectionId??"none"}`),e];var t})))}(e)}function BN(e){const t=new Set(e.sections.map((e=>e.id))),n=PN(e);return e.admissions.filter((e=>!(e.sectionId&&!t.has(e.sectionId)||AN(e.saleStartsAt,n)||EN(e.saleEndsAt,n)))).map((e=>({admissionId:e.id??"",quantity:1,sectionId:e.sectionId??void 0})))}const WN=e=>e.price?.total??0;function ZN(e,t){return e instanceof Error?e.message:t}function YN(e){try{return JSON.parse(e)}catch{return null}}function VN(e){return[e.location?.venue?.name,e.location?.name].find(Boolean)}function HN(e){return e||void 0}function KN(e){if(!e)return"external site";try{return new URL(e).hostname.replace(/^www\./,"")}catch{return"external site"}}function JN(e){return Boolean(e?.items?.length)}function QN(e){return{product_id:e.admissionId,sku:e.admissionId,quantity:e.quantity,admission_id:e.admissionId,section_id:e.sectionId}}function XN({event:e,admission:t,section:n}){return{name:t?.name,category:e?.name,variant:n?.name}}function eR(e){return{price:MN(e.price)/100,price_base:e.price?.base,price_booking_fee:e.price?.booking}}const tR=()=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("path",{d:"M8 2v4"}),r("path",{d:"M16 2v4"}),r("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}),r("path",{d:"M3 10h18"})),nR=()=>r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"}),r("circle",{cx:"12",cy:"10",r:"3"})),rR=class{constructor(n){e(this,n),this.checkoutInit=t(this,"checkoutInit"),this.cartUpdate=t(this,"cartUpdate"),this.errorOccurred=t(this,"errorOccurred")}get host(){return n(this)}tenantId;eventId;apiUrl="https://api.session.services";locale="en-US";returnUrl;couponCode;initialAdmissionPrices;initialPreviewQuote;passcode;stickyCheckout=!1;theme="system";enableAnalytics=!0;debugAnalytics=!1;event=null;selectedItems=new Map;quote=null;previewQuote=null;loading=!0;error=null;quoteLoading=!1;previewLoading=!1;quoteError=null;couponError=null;couponInput="";appliedCouponCode="";passcodeInput="";activePasscode="";passcodeDenied=!1;selectionPrompt=!1;checkoutLoading=!1;currentTheme="light";openModalAdmissionId=null;checkoutInit;cartUpdate;errorOccurred;client;analytics;mediaQueryList;requestId=0;previewRequestId=0;quoteTimer;promptTimer;async componentWillLoad(){"undefined"!=typeof window&&window.addEventListener("popstate",this.handleDiscountQueryChange),await this.initializeComponent()}async propsChanged(){await this.initializeComponent()}async couponCodeChanged(){await this.setInitialCoupon()}themeChanged(){this.setupTheme()}disconnectedCallback(){"undefined"!=typeof window&&window.removeEventListener("popstate",this.handleDiscountQueryChange),this.mediaQueryList&&this.mediaQueryList.removeEventListener("change",this.handleSystemThemeChange),this.openModalAdmissionId&&document.removeEventListener("keydown",this.handleModalKeyDown),this.clearQuoteTimer(),this.clearPromptTimer()}handleDiscountQueryChange=()=>{TN(this.couponCode)||this.setInitialCoupon().catch((()=>{}))};async initializeComponent(){if(this.error=null,this.event=null,this.selectedItems=new Map,this.quote=null,this.previewQuote=null,this.quoteError=null,this.couponError=null,this.couponInput=this.initialCouponCode(),this.appliedCouponCode=this.couponInput,this.activePasscode=this.passcode||"",this.passcodeInput=this.activePasscode,this.passcodeDenied=!1,!this.tenantId||!this.eventId)return this.error="Missing required configuration: tenantId and eventId",void(this.loading=!1);this.client=function(e){let t=function(e){return e in Jg?Jg[e]:e}(e.environment);return Q(new Kg(Pg,{url:t,headers:{"x-tenant-id":e.tenantId??"tnt_01jqpj2t2kfvmstt6f6tzkbaf2",...e.headers??{}}}))}({environment:this.apiUrl,tenantId:this.tenantId}),this.setupTheme(),await this.loadEventData()}async setInitialCoupon(){const e=this.initialCouponCode();if(this.couponInput=e,this.quote=null,this.previewQuote=this.activeInitialPreviewQuote(e),this.quoteError=null,this.couponError=null,!e)return this.appliedCouponCode="",void await this.updateQuote();this.selectedItems.size>0?await this.applyCartCoupon(e):this.previewQuote||await this.applyPreviewCoupon(e)}initialCouponCode(){return TN(this.couponCode)||("undefined"==typeof window?"":TN((e=window.location.search,new URLSearchParams(e).get("discount")??"")));var e}parsedInitialPreviewQuote(){return this.initialPreviewQuote?"string"!=typeof this.initialPreviewQuote?this.initialPreviewQuote:YN(this.initialPreviewQuote):null}parsedInitialAdmissionPrices(){if(this.initialAdmissionPrices)return"string"!=typeof this.initialAdmissionPrices?this.initialAdmissionPrices:YN(this.initialAdmissionPrices)??void 0}activeInitialPreviewQuote(e=this.appliedCouponCode){return e?e!==this.initialCouponCode()?null:this.parsedInitialPreviewQuote():null}activeInitialAdmissionPrices(){if(this.appliedCouponCode&&this.appliedCouponCode===this.initialCouponCode())return this.parsedInitialAdmissionPrices()}setupTheme(){this.mediaQueryList&&this.mediaQueryList.removeEventListener("change",this.handleSystemThemeChange),"system"===this.theme?(this.mediaQueryList=window.matchMedia("(prefers-color-scheme: dark)"),this.currentTheme=this.mediaQueryList.matches?"dark":"light",this.mediaQueryList.addEventListener("change",this.handleSystemThemeChange)):this.currentTheme=this.theme}handleSystemThemeChange=e=>{"system"===this.theme&&(this.currentTheme=e.matches?"dark":"light")};trackEvent(e,t={}){const n=this.analyticsContext();n&&n.analytics.track(e,{event_id:this.eventId,team_id:n.event.teamId,promoter_id:n.event.promoterId,event_name:n.event.name,event_slug:n.event.slug,currency:n.event.currency,...t})}analyticsContext(){const e=this.activeAnalytics(),t=this.analyticsEvent();if(e&&t)return{analytics:e,event:t}}activeAnalytics(){if(this.enableAnalytics)return this.analytics}analyticsEvent(){const e=this.event;if(e)return function(e){return Boolean(e.teamId&&e.promoterId)}(e)?e:void 0}getLowestPrice(){const e=this.event;return e?.admissions.length?Math.min(...e.admissions.map((e=>MN(e.price)))):0}getAdmissionListProducts(e){return e.admissions.map(((t,n)=>({product_id:t.id,sku:t.id,name:t.name,category:e.name,price:MN(t.price)/100,quantity:1,position:n+1,admission_id:t.id,section_id:t.sectionId,price_base:t.price?.base,price_booking_fee:t.price?.booking,available:t.available,capacity:t.capacity})))}async loadEventData(){try{this.loading=!0,this.error=null,this.passcodeDenied=!1;const e=await this.client.event.get({key:this.eventId,passcode:this.activePasscode||void 0});this.event=e.event,this.trackLoadedEvent(e.event),await this.updatePreviewQuote()}catch(e){this.passcodeDenied=function(e){const t=ZN(e,"");return!!/incorrect passcode/i.test(t)||"UNAUTHORIZED"===function(e){const t=function(e){if(e&&"object"==typeof e)return e.code}(e);return"string"==typeof t?t:void 0}(e)&&/passcode/i.test(t)}(e),this.error=ZN(e,"Failed to load event data"),this.errorOccurred.emit({error:this.error})}finally{this.loading=!1}}trackLoadedEvent(e){this.setupAnalytics(e),this.trackProductViewed(e),this.trackEvent("Product List Viewed",{list_id:this.eventId,category:"Admissions",products:this.getAdmissionListProducts(e)})}setupAnalytics(e){this.enableAnalytics&&!this.analytics&&e.promoterId&&(this.analytics=function(e){let t,n=e.debug??!1,r=nb(e.client,n),i=function(e){let t=e.getCookie(ps);if(t)return t;let n=fs();return e.setCookie(ps,n),n}(ib),o=function(e){let t=e.getItem(ms);if(t)return t;let n=hs();return e.setItem(ms,n),n}(ib);n&&console.log("[Analytics] Initialized:",{sessionId:i,anonymousId:o});let a=(e,n,r)=>({type:e,name:n,properties:r,context:oy(),timestamp:Date.now(),sessionId:i,anonymousId:o,userId:t}),s=(e,t)=>{r.sendEvent(e,t).catch((e=>{n&&console.error("[Analytics] Failed to send event:",e)}))},d=(e,t)=>{let r=e.promoter_id;return!r&&n&&console.warn(`[Analytics] ${t}() called without promoter_id, skipping`),r};return{track:(e,t={})=>{let n=d(t,"track");n&&s(a("track",e,t),n)},page:(e,t={})=>{let n=d(t,"page");n&&s(a("page",e||"Page Viewed",t),n)},screen:(e,t={})=>{let n=d(t,"screen");n&&s(a("screen",e||"Screen Viewed",t),n)},identify:(e,r={})=>{t=e;let a=r.promoter_id;a&&s({type:"identify",properties:{},context:oy(),timestamp:Date.now(),sessionId:i,anonymousId:o,userId:e,traits:r},a),n&&console.log("[Analytics] User identified:",e)},alias:(e,t)=>{n&&console.log("[Analytics] Alias called:",{userId:e,previousId:t})},group:(e,r={})=>{let a=r.promoter_id;a&&s({type:"group",properties:{},context:oy(),timestamp:Date.now(),sessionId:i,anonymousId:o,userId:t,groupId:e,traits:r},a),n&&console.log("[Analytics] Group called:",{groupId:e,traits:r})},reset:()=>{let e=function(e){let t=fs(),n=hs();return e.setCookie(ps,t),e.setItem(ms,n),{sessionId:t,anonymousId:n}}(ib);i=e.sessionId,o=e.anonymousId,t=void 0,r.clearCache(),n&&console.log("[Analytics] Session reset:",{sessionId:i,anonymousId:o})}}}({client:this.client,debug:this.debugAnalytics}),this.analytics.page("Ticketing Widget",{event_id:this.eventId,team_id:e.teamId,promoter_id:e.promoterId,event_name:e.name,event_slug:e.slug}))}trackProductViewed(e){const t=this.getLowestPrice();this.trackEvent("Product Viewed",{product_id:this.eventId,sku:this.eventId,name:e.name,category:"Event",value:t/100,price:t/100,event_date:e.entryStartsAt,venue_name:VN(e),venue_city:e.location?.city})}async updateQuantity(e,t,n){const r=SN(e,t);await this.setQuantity(e,t,(this.selectedItems.get(r)||0)+n)}async setQuantity(e,t,n){const r=SN(e,t),i=this.event?.admissions.find((t=>t.id===e));if(!i)return;const o=this.selectedItems.get(r)||0,a=Math.max(0,Math.min(n,this.getMaxQuantity(i,t)));if(o===a)return;this.selectionPrompt=!1,this.setSelectedQuantity(r,a);const s=t?this.event?.sections.find((e=>e.id===t)):null;this.trackQuantityChange({admission:i,section:s,sectionId:t,delta:a-o}),this.scheduleQuoteUpdate()}setSelectedQuantity(e,t){0===t?this.selectedItems.delete(e):this.selectedItems.set(e,t),this.selectedItems=new Map(this.selectedItems)}trackQuantityChange(e){e.delta>0?this.trackProductAdded(e):e.delta<0&&this.trackProductRemoved(e)}trackProductAdded(e){this.trackEvent("Product Added",{...this.getQuantityAnalytics(e),price_base:e.admission.price?.base,price_booking_fee:e.admission.price?.booking})}trackProductRemoved(e){this.trackEvent("Product Removed",this.getQuantityAnalytics(e))}getQuantityAnalytics(e){return{product_id:e.admission.id,sku:e.admission.id,name:e.admission.name,category:this.event?.name,variant:e.section?.name,price:MN(e.admission.price)/100,quantity:Math.abs(e.delta),admission_id:e.admission.id,section_id:HN(e.sectionId),section_name:e.section?.name}}async updateQuote(){if(this.clearQuoteTimer(),0===this.selectedItems.size)return this.quote=null,this.quoteError=null,this.quoteLoading=!1,void await this.updatePreviewQuote();this.requestId++;const e=this.requestId;try{this.quoteLoading=!0,this.quoteError=null;const t=await this.fetchCartQuote(this.appliedCouponCode);this.applyQuote(t.quote,e)}catch(t){this.handleQuoteError(e)}finally{e===this.requestId&&(this.quoteLoading=!1)}}scheduleQuoteUpdate(){this.clearQuoteTimer(),0!==this.selectedItems.size?(this.quoteLoading=!0,this.quoteTimer=setTimeout((()=>{this.quoteTimer=void 0,this.updateQuote().catch((()=>{}))}),150)):this.updateQuote().catch((()=>{}))}clearQuoteTimer(){this.quoteTimer&&(clearTimeout(this.quoteTimer),this.quoteTimer=void 0)}clearPromptTimer(){this.promptTimer&&(clearTimeout(this.promptTimer),this.promptTimer=void 0)}promptTicketSelection(){this.selectionPrompt=!0,this.clearPromptTimer(),this.promptTimer=setTimeout((()=>{this.selectionPrompt=!1,this.promptTimer=void 0}),800)}getQuoteRequestItems(){return Array.from(this.selectedItems,(([e,t])=>{const n=function(e){const[t,n]=e.split("::");return{admissionId:t,sectionId:"none"===n?void 0:n}}(e);return{quantity:t,admissionId:n.admissionId,sectionId:n.sectionId}}))}fetchCartQuote(e){return this.client.order.quote({eventId:this.eventId,items:this.getQuoteRequestItems(),couponCode:e||void 0})}applyQuote(e,t){t===this.requestId&&(this.quote=e,this.quoteError=null,this.cartUpdate.emit(this.quote),this.trackEvent("Cart Viewed",{products:this.getCartProducts(),value:WN(this.quote)/100,currency:this.event?.currency}))}handleQuoteError(e){e===this.requestId&&(this.quote=null,this.quoteError="Failed to update cart. Please try again.",this.errorOccurred.emit({error:this.quoteError}))}async updatePreviewQuote(){const e=this.event;if(!e||!this.appliedCouponCode)return this.previewRequestId++,this.previewLoading=!1,void(this.previewQuote=null);const t=this.activeInitialPreviewQuote();if(t)return this.previewRequestId++,this.previewLoading=!1,void(this.previewQuote=t);if(0===BN(e).length)return this.previewRequestId++,this.previewLoading=!1,void(this.previewQuote=null);this.previewRequestId++;const n=this.previewRequestId;try{this.previewLoading=!0;const e=await this.fetchPreviewQuote(this.appliedCouponCode);n===this.previewRequestId&&(this.previewQuote=e.quote)}catch(e){n===this.previewRequestId&&(this.previewQuote=null,this.appliedCouponCode="",this.setCouponError())}finally{n===this.previewRequestId&&(this.previewLoading=!1)}}fetchPreviewQuote(e){const t=this.event;if(!t)throw new Error("Missing event");return this.client.order.quote({eventId:t.id,items:BN(t),couponCode:e})}handleCouponInput=e=>{e.target instanceof HTMLInputElement&&(this.couponInput=e.target.value.toUpperCase())};handleCouponKeyDown=e=>{"Enter"===e.key&&(e.preventDefault(),this.applyCoupon().catch((()=>{})))};async applyCoupon(){const e=TN(this.couponInput);this.couponInput=e,this.quoteError=null,this.couponError=null,this.trackCouponEntered(e),this.selectedItems.size>0?await this.applyCartCoupon(e):await this.applyPreviewCoupon(e)}async removeCoupon(){if(this.couponError=null,this.quoteError=null,this.selectedItems.size>0)return void await this.removeCartCoupon();this.couponInput="";const e=this.appliedCouponCode;this.appliedCouponCode="",this.previewRequestId++,this.previewLoading=!1,this.previewQuote=null,this.trackCouponRemoved(e,null)}async applyCartCoupon(e){this.requestId++;const t=this.requestId;try{this.quoteLoading=!0;const n=await this.fetchCartQuote(e);if(t!==this.requestId)return;this.appliedCouponCode=e,this.previewQuote=null,this.applyQuote(n.quote,t),this.trackCouponApplied(e,n.quote)}catch(n){this.handleCouponError(t),this.trackCouponDenied(e)}finally{t===this.requestId&&(this.quoteLoading=!1)}}async applyPreviewCoupon(e){const t=this.event;if(!t)return;const n=this.activeInitialPreviewQuote(e);if(n)return this.appliedCouponCode=e,this.previewQuote=n,void this.trackCouponApplied(e,n);if(0===BN(t).length)return this.appliedCouponCode=e,void(this.previewQuote=null);this.previewRequestId++;const r=this.previewRequestId;try{this.previewLoading=!0;const t=await this.fetchPreviewQuote(e);if(r!==this.previewRequestId)return;this.appliedCouponCode=e,this.previewQuote=t.quote,this.trackCouponApplied(e,t.quote)}catch(t){r===this.previewRequestId&&(this.setCouponError(),this.trackCouponDenied(e))}finally{r===this.previewRequestId&&(this.previewLoading=!1)}}async removeCartCoupon(){this.requestId++;const e=this.requestId,t=this.appliedCouponCode;try{this.quoteLoading=!0;const n=await this.fetchCartQuote("");if(e!==this.requestId)return;this.couponInput="",this.appliedCouponCode="",this.previewQuote=null,this.applyQuote(n.quote,e),this.trackCouponRemoved(t,n.quote)}catch(t){this.handleCouponError(e,"Failed to remove coupon. Please try again.")}finally{e===this.requestId&&(this.quoteLoading=!1)}}handleCouponError(e,t){e===this.requestId&&this.setCouponError(t)}setCouponError(e="Failed to apply coupon. Please check the code."){this.couponError=e,this.errorOccurred.emit({error:this.couponError})}trackCouponEntered(e){e&&this.trackEvent("Coupon Entered",{coupon:e})}trackCouponApplied(e,t){e&&this.trackEvent("Coupon Applied",{coupon:e,products:this.getProductsForQuote(t),total:t?WN(t)/100:0,value:t?WN(t)/100:0})}trackCouponDenied(e){e&&this.trackEvent("Coupon Denied",{coupon:e,reason:this.couponError})}trackCouponRemoved(e,t){e&&this.trackEvent("Coupon Removed",{coupon:e,products:this.getProductsForQuote(t),total:t?WN(t)/100:0,value:t?WN(t)/100:0})}handlePasscodeInput=e=>{e.target instanceof HTMLInputElement&&(this.passcodeInput=e.target.value)};async submitPasscode(e){e.preventDefault(),this.activePasscode=this.passcodeInput.trim(),await this.loadEventData()}async initiateCheckout(){if(!this.isCheckoutDisabled()&&this.quote)try{this.checkoutLoading=!0,this.quoteError=null,this.trackCheckoutStarted(this.quote);const e=await this.client.order.create({eventId:this.eventId,items:this.getCheckoutItems(this.quote),couponCode:this.appliedCouponCode||void 0,returnUrl:this.returnUrl});this.handleCheckoutOrder(e.order)}catch(e){this.handleCheckoutError()}}trackCheckoutStarted(e){const t=WN(e)/100;this.trackEvent("Checkout Started",{value:t,revenue:t,currency:this.event?.currency,products:this.getCheckoutProducts()})}getCheckoutItems(e){return e.items.map((e=>({quantity:e.quantity,admissionId:e.admissionId,sectionId:e.sectionId})))}handleCheckoutOrder(e){this.checkoutInit.emit({orderId:e.id,checkoutUrl:e.checkoutUrl}),e.checkoutUrl?window.location.href=e.checkoutUrl:this.checkoutLoading=!1}handleCheckoutError(){this.quoteError="Failed to initiate checkout. Please try again.",this.errorOccurred.emit({error:this.quoteError}),this.checkoutLoading=!1}handleStickyCheckoutClick(e){if(e.isDoorOnly||!JN(this.quote))return this.promptTicketSelection(),void this.scrollToTicketSelector();this.initiateCheckout().catch((()=>{}))}scrollToTicketSelector(){const e=this.host.shadowRoot?.querySelector(".tickets-wrapper")??this.host;window.scrollTo({behavior:"smooth",top:Math.max(e.getBoundingClientRect().top+window.scrollY-100,0)})}getCartProducts(){return this.quote?this.getProductsForQuote(this.quote):[]}getCheckoutProducts(){return this.quote?this.quote.items.map((e=>({...this.getQuoteProduct(e),section_name:this.getQuoteSection(e)?.name}))):[]}getProductsForQuote(e){return e?e.items.map((e=>this.getQuoteProduct(e))):[]}getQuoteProduct(e){return{...QN(e),...XN(this.quoteProductContext(e)),...eR(e)}}quoteProductContext(e){return{event:this.event,admission:this.getQuoteAdmission(e),section:this.getQuoteSection(e)}}getQuoteAdmission(e){return this.event?.admissions.find((t=>t.id===e.admissionId))}getQuoteSection(e){return e.sectionId?this.event?.sections.find((t=>t.id===e.sectionId)):null}formatDateTimeRange(e,t){return`${xN(e,"EEE, MMM d · h:mm a")} - ${xN(t,"h:mm a")}`}formatPriceValue(e){const t=this.event?.currency;if(!t)return new Intl.NumberFormat(this.locale,{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}).format(e/100);try{return function(e,t){let n=ob[t]??ab,r=10**n.exponent;return new Intl.NumberFormat(n.locale,{style:"currency",currency:t}).format(e/r)}(e,t)}catch(n){return console.error("formatPrice failed, using fallback",{error:n,currency:t,priceInCents:e,locale:this.locale}),new Intl.NumberFormat(this.locale,{style:"currency",currency:t}).format(e/100)}}handleQuantityDecrease=async(e,t)=>{await this.updateQuantity(e,t,-1)};handleQuantityIncrease=async(e,t)=>{await this.updateQuantity(e,t,1)};handleQuantityInput=async(e,t,n)=>{n.target instanceof HTMLInputElement&&await this.setQuantity(e,t,Number(n.target.value)||0)};openModal=(e,t)=>{t.stopPropagation(),this.openModalAdmissionId=e,document.addEventListener("keydown",this.handleModalKeyDown)};closeModal=()=>{this.openModalAdmissionId=null,document.removeEventListener("keydown",this.handleModalKeyDown)};handleModalKeyDown=e=>{"Escape"===e.key&&this.closeModal()};handleBackdropClick=e=>{e.target instanceof HTMLElement&&e.target.classList.contains("modal-backdrop")&&this.closeModal()};renderQuantityControls(e,t,n,i){const o=SN(e.id,t),a=this.selectedItems.get(o)||0;return r("div",{class:"quantity-controls"},r("button",{type:"button",class:"quantity-btn decrease",onClick:()=>this.handleQuantityDecrease(e.id,t),disabled:n||0===a,"aria-label":"Decrease quantity"},"−"),r("input",{class:"quantity-value",type:"number",min:"0",max:i,inputmode:"numeric",value:a,onInput:n=>this.handleQuantityInput(e.id,t,n),disabled:n,"aria-label":`Quantity for ${e.name}`}),r("button",{type:"button",class:"quantity-btn increase",onClick:()=>this.handleQuantityIncrease(e.id,t),disabled:n||a>=i,"aria-label":"Increase quantity"},"+"))}getMaxQuantity(e,t){return this.event?zN({admission:e,event:this.event,section:this.getSection(t)}).maxQuantity:0}getSection(e){if(e)return this.event?.sections.find((t=>t.id===e))}renderEventTimeAndLocation(e){return r(r.Fragment,null,this.renderEventTime(e,"admission-time"),this.renderEventLocation(e,"admission-venue"))}renderEventTime(e,t){return e.entryStartsAt&&e.entryEndsAt?r("div",{class:t},tR(),this.formatDateTimeRange(e.entryStartsAt,e.entryEndsAt)):null}renderAdmissionTime(e,t){return e?.entryStartsAt&&e.entryEndsAt?r("div",{class:t},tR(),this.formatDateTimeRange(e.entryStartsAt,e.entryEndsAt)):null}renderSectionLocation(e){const t=[e.location?.name,e.location?.city].filter(Boolean).join(", ");return t?r("div",{class:"section-venue"},nR(),t):null}renderEventLocation(e,t){return e.location?r("div",{class:t},nR(),e.location.name):null}renderPriceAndControls(e,t,n,i){const o=SN(e.id,t),a=function(e){const t=e.quoteItem??e.previewItem;if(t){const e=function(e){return Math.max(e?.quantity??1,1)}(t),n=Math.round(Math.max((t.price.base+t.price.discount)/e,0)),r=Math.round(t.price.booking/e);return!t.price.discount||t.price.discount>=0?{base:n,discounted:!1,fees:r}:{base:n,discounted:!0,fees:r,gross:Math.round(t.price.base/e)}}if(e.initialPrice&&e.initialPrice.discount<0){const t=e.admission.price.booking??0;return{base:Math.max(e.initialPrice.total-t,0),discounted:!0,fees:t,gross:Math.max(e.initialPrice.gross-t,0)}}return{base:e.admission.price.base??0,discounted:!1,fees:e.admission.price.booking??0}}({admission:e,initialPrice:this.activeInitialAdmissionPrices()?.[o],quoteItem:FN(this.quote).get(o),previewItem:FN(this.previewQuote).get(o)}),s=function(e){return e.discounted&&void 0!==e.gross?Math.max(e.gross-e.base,0):0}(a);return r("div",{class:"admission-price-info"},r("div",{class:"admission-price-wrapper"},s>0&&r("span",{class:"admission-savings"},"Save ",this.formatPriceValue(s)),this.renderAdmissionPrice(a),a.fees>0&&r("span",{class:"admission-booking-fee"},this.formatPriceValue(a.fees)," Booking Fee"),n.showScarcity&&r("span",{class:"admission-availability"},e.available," tickets remaining"),n.label&&r("span",{class:`admission-sale-label ${n.label.tone}`},n.label.text)),this.renderAdmissionControls(e,t,n,i))}renderAdmissionPrice(e){return e.discounted?r("span",{class:"admission-price-row"},r("span",{class:"admission-price discounted"},this.formatPriceValue(e.base)),void 0!==e.gross&&r("span",{class:"admission-price-original"},this.formatPriceValue(e.gross))):r("span",{class:"admission-price"},this.formatPriceValue(e.base))}renderAdmissionControls(e,t,n,i){return n.statusLabel?r("div",{class:`sold-out-controls ${n.statusTone??""}`},r("span",{class:"sold-out-text"},n.statusLabel)):"door"===i?null:this.renderQuantityControls(e,t,n.disabled,n.maxQuantity)}renderAdmission(e,t,n,i=!1,o="default"){const a=zN({admission:e,event:t,section:n,sectionSoldOut:i}),s=n?.id||null;return r("section",{class:this.getAdmissionClassName(a,n),key:SN(e.id,s),tabindex:a.disabled?-1:0,"aria-label":this.getAdmissionAriaLabel(e,n,a)},r("div",{class:"admission-content"},r("div",{class:"admission-details"},this.renderAdmissionHeader(e),this.renderAdmissionBody(e,t,s,a,o))))}getAdmissionClassName(e,t){return`admission-card ${e.soldOut?"sold-out":""} ${e.disabled&&!e.soldOut?"unavailable":""} ${t?"":"solo-admission"}`}getAdmissionAriaLabel(e,t,n){return function(e,t,n){return t?`${e.name} in ${t.name} - ${n}`:`${e.name} - ${n}`}(e,t,n.statusLabel??this.admissionStatusText(e,n.soldOut))}admissionStatusText(e,t){return t?"Sold Out":(e.price.booking??0)<=0?this.formatPriceValue(e.price.base):`${this.formatPriceValue(e.price.base)} plus ${this.formatPriceValue(e.price.booking)} booking fee`}renderAdmissionHeader(e){return r("div",{class:"admission-header"},r("div",{class:"admission-header-text"},r("h3",{class:"admission-title"},e.name),e.subtitle&&r("p",{class:"admission-subtitle"},e.subtitle)),this.renderMoreInfoButton(e))}renderMoreInfoButton(e){return e.description?r("button",{type:"button",class:"more-info-badge",onClick:t=>this.openModal(e.id,t),"aria-label":`More info about ${e.name}`},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("circle",{cx:"12",cy:"12",r:"10"}),r("path",{d:"M12 16v-4"}),r("path",{d:"M12 8h.01"})),r("span",null,"More info")):null}renderAdmissionBody(e,t,n,i,o){return n?this.renderPriceAndControls(e,n,i,o):r(r.Fragment,null,this.renderEventTimeAndLocation(t),this.renderPriceAndControls(e,n,i,o))}renderSectionHeader(e,t){return r("div",{class:"section-header"},r("h2",{class:"section-name"},e.name),this.renderAdmissionTime(t[0],"section-time"),this.renderSectionLocation(e))}renderSectionWithAdmissions(e,t,n,i){const o=function(e){return!!e.section&&(!![(t=e.section).available,t.limit].some((e=>ON(e)<=0))||e.admissions.length>0&&e.admissions.every((t=>DN({admission:t,section:e.section}))));var t}({admissions:t,section:e});return r("div",{class:"ticket-section "+(o?"section-sold-out":""),key:e.id},this.renderSectionHeader(e,t),r("div",{class:"admissions-list"},t.map((t=>this.renderAdmission(t,n,e,o,i)))))}renderLoadingState(){return r(i,{"data-theme":this.currentTheme},r("div",{class:"session-services-ticketing-container"},r("div",{class:"tickets-wrapper"},r("h2",{class:"tickets-heading"},"Get Tickets"),r("div",{class:"ticket-section loading-ticket-section"},r("div",{class:"admissions-list"},[0,1,2].map((e=>r("div",{"aria-hidden":"true",class:"admission-card loading-admission",key:e}))))))))}renderErrorState(){return this.passcodeDenied?this.renderPasscodeState():r(i,{"data-theme":this.currentTheme},r("div",{class:"session-services-ticketing-container"},r("div",{class:"message-state"},r("strong",null,"Tickets Couldn’t Load"),r("span",null,"We couldn’t load ticket details. Try again in a moment."),r("button",{type:"button",class:"retry-button",onClick:()=>this.loadEventData()},"Try Again"))))}renderPasscodeState(){return r(i,{"data-theme":this.currentTheme},r("div",{class:"session-services-ticketing-container"},r("form",{class:"passcode-form",onSubmit:e=>this.submitPasscode(e)},r("h2",null,"Enter passcode"),r("p",null,"Enter the event passcode to view tickets and event details."),r("input",{type:"text",name:"passcode",value:this.passcodeInput,onInput:this.handlePasscodeInput,autocomplete:"one-time-code",placeholder:"Passcode","aria-label":"Passcode"}),this.passcodeDenied&&this.activePasscode&&r("span",{class:"error-message"},"Incorrect passcode"),r("button",{type:"submit",class:"checkout-btn",disabled:!this.passcodeInput.trim()},"Unlock event"))))}renderNotFoundState(){return r(i,{"data-theme":this.currentTheme},r("div",{class:"session-services-ticketing-container"},r("div",{class:"message-state"},r("strong",null,"Event not found"),r("span",null,"We couldn’t find this event. The link may be incorrect or expired."))))}renderCouponPanel(){const e=this.couponInput.trim().length>0,t=this.quoteLoading||this.previewLoading||this.checkoutLoading,n=e&&!t;return r("div",{class:"coupon-panel"},r("div",{class:"coupon-row"},r("input",{id:"coupon-code",name:"coupon-code",placeholder:"Coupon Code",value:this.couponInput,onInput:this.handleCouponInput,onKeyDown:this.handleCouponKeyDown,autocomplete:"off",disabled:t,"aria-label":"Coupon code","aria-invalid":Boolean(this.couponError)}),this.appliedCouponCode?r("button",{type:"button",class:"coupon-remove",onClick:()=>this.removeCoupon(),disabled:t,"aria-label":"Remove coupon"},"Remove"):r("button",{type:"button",class:"coupon-apply",onClick:()=>this.applyCoupon(),disabled:!n},"Apply")),this.couponError&&r("span",{class:"error-message"},this.couponError))}isCheckoutDisabled(){return this.quoteLoading||this.checkoutLoading||Boolean(this.quoteError)||!JN(this.quote)}getCheckoutButtonText(){return this.checkoutLoading?"Processing...":this.quote?this.getQuoteCheckoutText():"Pay"}renderQuoteLoadingContent(){return r("span",{class:"checkout-spinner-wrapper","aria-hidden":"true"},r("svg",{class:"checkout-spinner",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})))}renderCheckoutButtonContent(){return this.quoteLoading?this.renderQuoteLoadingContent():this.getCheckoutButtonText()}isStickyCheckoutDisabled(e){return!e.isDoorOnly&&(e.isEnded||e.isUnavailableForSale||this.checkoutLoading||this.quoteLoading)}getStickyCheckoutText(e){return this.checkoutLoading?"Processing...":this.quote?this.getQuoteCheckoutText():this.selectionPrompt?"Select a ticket":e.isDoorOnly?"Get Tickets at the Door":e.isEnded?"Event Ended":e.isUnavailableForSale?"Tickets Unavailable":"Get Tickets"}renderStickyCheckoutButtonContent(e){return this.quoteLoading?this.renderQuoteLoadingContent():this.getStickyCheckoutText(e)}getQuoteCheckoutText(){return this.quote?0===WN(this.quote)?"Continue":`Pay ${this.getOrderTotalText()}`:"Pay"}getOrderTotalText(){if(!this.quote)return"N/A";const e=WN(this.quote);return 0===e?"Free":this.formatPriceValue(e)}renderCheckoutActions(){return r("div",{class:"checkout-actions"},this.renderCouponPanel(),this.quoteError&&r("div",{class:"error-message"},this.quoteError),r("button",{type:"button",class:"checkout-btn",onClick:()=>this.initiateCheckout(),disabled:this.isCheckoutDisabled(),"aria-label":this.quoteLoading?"Updating":void 0},this.renderCheckoutButtonContent()))}renderStickyCheckout(e){return this.stickyCheckout&&e.showTicketing?r("div",{class:"sticky-checkout-bar"},r("button",{type:"button",class:"checkout-btn sticky-checkout-btn "+(this.selectionPrompt?"selection-prompt":""),onClick:()=>this.handleStickyCheckoutClick(e),disabled:this.isStickyCheckoutDisabled(e),"aria-label":this.quoteLoading?"Updating":void 0},this.renderStickyCheckoutButtonContent(e))):null}renderStickyExternalTicketing(e){if(!this.stickyCheckout)return null;if(!e.externalTicketUrl)return null;const t=KN(e.externalTicketUrl);return r("div",{class:"sticky-checkout-bar"},r("a",{class:"external-ticket-button sticky-checkout-btn",href:e.externalTicketUrl,target:"_blank",rel:"noreferrer"},r("span",{class:"external-ticket-label"},"Get tickets"),r("span",{class:"external-ticket-domain"},"via ",t)))}renderModal(){if(!this.openModalAdmissionId)return null;const e=this.event?.admissions.find((e=>e.id===this.openModalAdmissionId));return e?r("div",{class:"modal-backdrop",onClick:this.handleBackdropClick},r("div",{class:"modal-content",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title"},r("button",{type:"button",class:"modal-close-btn",onClick:()=>this.closeModal(),"aria-label":"Close"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r("path",{d:"M18 6 6 18"}),r("path",{d:"M6 6l12 12"}))),r("div",{class:"modal-header"},r("h2",{id:"modal-title",class:"modal-title"},e.name),e.subtitle&&r("p",{class:"modal-subtitle"},e.subtitle)),r("p",{class:"modal-description"},e.description))):null}renderTicketSections(e){const t=UN(e),n=t.isDoorOnly?"door":"default",i=(o=e.sections,a=function(e,t){if("door"!==t)return e.admissions;const n=PN(e);return e.admissions.filter((e=>"DOOR"===e.saleEndsBehavior&&EN(e.saleEndsAt,n)))}(e,n),[...LN(o,a),...a.filter((e=>!e.sectionId)).map((e=>({type:"admission",admission:e})))].sort(((e,t)=>qN(e)-qN(t))));var o,a;return r("div",{class:"tickets-wrapper"},this.renderDoorAlert(e,n),r("h2",{class:"tickets-heading"},t.ticketHeading),i.map((t=>this.renderTopLevelItem(t,e,n))))}renderTopLevelItem(e,t,n){return"section"===e.type?this.renderSectionWithAdmissions(e.section,e.admissions,t,n):r("div",{class:"ticket-section",key:e.admission.id},r("div",{class:"admissions-list"},this.renderAdmission(e.admission,t,void 0,!1,n)))}renderDoorAlert(e,t){if("door"!==t)return null;const n=e.location?.name?.trim()||"the venue";return r("div",{class:"door-alert"},r("strong",null,"Tickets are available at ",n),r("span",null,"Online sales are closed. Tickets are available at the venue when you arrive."))}loadingView(){return this.loading?this.renderLoadingState():void 0}errorView(){return this.error&&!this.event?this.renderErrorState():void 0}missingEventView(){return this.event?void 0:this.renderNotFoundState()}pendingView(){return this.loadingView()??this.errorView()??this.missingEventView()}renderReadyState(){const e=this.event;if(!e)return this.renderNotFoundState();const t=UN(e);return t.showExternalTicketing?r(i,{"data-theme":this.currentTheme,"data-sticky-checkout":this.stickyCheckout?"true":void 0},r("div",{class:"session-services-ticketing-container"},this.renderExternalTicketing(t)),this.renderStickyExternalTicketing(t)):r(i,{"data-theme":this.currentTheme,"data-sticky-checkout":this.stickyCheckout?"true":void 0},r("div",{class:"session-services-ticketing-container"},t.showTicketing?this.renderTicketSections(e):this.renderUnavailableState(t),!t.isDoorOnly&&t.showTicketing&&this.renderCheckoutActions()),this.renderStickyCheckout(t),this.renderModal())}renderExternalTicketing(e){const t=KN(e.externalTicketUrl);return e.externalTicketUrl?r("div",{class:"tickets-wrapper"},r("h2",{class:"tickets-heading"},e.ticketHeading),r("div",{class:"external-ticket-panel"},r("p",{class:"external-ticket-warning"},"This event sells through an external ticketing site. Checkout, tickets, and support are handled there."),r("a",{class:"external-ticket-button inline-external-ticket-button",href:e.externalTicketUrl,target:"_blank",rel:"noreferrer"},r("span",{class:"external-ticket-label"},"Get tickets"),r("span",{class:"external-ticket-domain"},"via ",t)))):null}renderUnavailableState(e){return r("div",{class:"empty-ticketing-state"},r("strong",null,"Tickets Unavailable"),r("span",null,e.isEnded?"This event has ended, so tickets are no longer available.":"Tickets are not available for this event right now."))}render(){return this.pendingView()??this.renderReadyState()}static get watchers(){return{tenantId:["propsChanged"],eventId:["propsChanged"],apiUrl:["propsChanged"],passcode:["propsChanged"],couponCode:["couponCodeChanged"],initialAdmissionPrices:["couponCodeChanged"],initialPreviewQuote:["couponCodeChanged"],theme:["themeChanged"]}}};rR.style=':host{--background:transparent;--foreground:oklch(0.21 0.006 285.885);--card:oklch(1 0 0);--card-foreground:oklch(0.21 0.006 285.885);--popover:oklch(1 0 0);--popover-foreground:oklch(0.21 0.006 285.885);--primary:oklch(0.537 0.1554 255);--primary-foreground:oklch(0.985 0 0);--secondary:oklch(0 0 0 / 4%);--secondary-foreground:oklch(0.21 0.006 285.885);--muted:oklch(0 0 0 / 4%);--muted-foreground:oklch(0.442 0.017 285.786);--accent:oklch(0 0 0 / 4%);--accent-foreground:oklch(0.21 0.006 285.885);--destructive:oklch(0.637 0.237 25.331);--destructive-foreground:oklch(0.505 0.213 27.518);--border:oklch(0 0 0 / 12%);--input:oklch(0 0 0 / 12%);--ring:oklch(0.705 0.015 286.067);--success:oklch(0.696 0.17 162.48);--warning:oklch(0.769 0.188 70.08);--info:oklch(0.623 0.214 259.815);--info-foreground:oklch(0.488 0.243 264.376);--backdrop:oklch(0 0 0 / 0.32);--radius:0.625rem;--spacing-xs:0.25rem;--spacing-sm:0.5rem;--spacing-md:1rem;--spacing-lg:1.5rem;--spacing-xl:2rem;--font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",\n Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;--font-size-xs:0.75rem;--font-size-sm:0.875rem;--font-size-base:1rem;--font-size-lg:1.125rem;--font-size-xl:1.25rem;--font-size-2xl:1.5rem;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--shadow-sm:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);--shadow-base:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);--shadow-md:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.1);--shadow-lg:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1);--shadow-xl:0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1);--shadow-edge-light:0 1px oklch(0 0 0 / 4%);--shadow-edge-dark:0 -1px oklch(1 0 0 / 8%);--transition-fast:150ms cubic-bezier(0.4, 0, 0.2, 1);--transition-base:200ms cubic-bezier(0.4, 0, 0.2, 1);--transition-slow:300ms cubic-bezier(0.4, 0, 0.2, 1);--internal-background:var(--background, transparent);--internal-foreground:var(--foreground, oklch(0.21 0.006 285.885));--internal-card:var(--card, oklch(1 0 0));--internal-popover:var(--popover, oklch(1 0 0));--internal-popover-foreground:var(--popover-foreground, oklch(0.21 0.006 285.885));--internal-primary:var(--primary, oklch(0.537 0.1554 255));--internal-primary-foreground:var(--primary-foreground, oklch(0.985 0 0));--internal-secondary:var(--secondary, oklch(0 0 0 / 4%));--internal-muted:var(--muted, oklch(0 0 0 / 4%));--internal-muted-foreground:var(--muted-foreground, oklch(0.442 0.017 285.786));--internal-accent:var(--accent, oklch(0 0 0 / 4%));--internal-accent-foreground:var(--accent-foreground, oklch(0.21 0.006 285.885));--internal-destructive:var(--destructive, oklch(0.637 0.237 25.331));--internal-border:var(--border, oklch(0 0 0 / 12%));--internal-input:var(--input, oklch(0 0 0 / 12%));--internal-ring:var(--ring, oklch(0.705 0.015 286.067));--internal-success:var(--success, oklch(0.696 0.17 162.48));--internal-warning:var(--warning, oklch(0.769 0.188 70.08));--internal-info:var(--info, oklch(0.623 0.214 259.815));--internal-info-foreground:var(--info-foreground, oklch(0.488 0.243 264.376));--internal-backdrop:var(--backdrop, oklch(0 0 0 / 0.32));--internal-radius:var(--radius, 0.625rem);--internal-spacing-xs:var(--spacing-xs, 0.25rem);--internal-spacing-sm:var(--spacing-sm, 0.5rem);--internal-spacing-md:var(--spacing-md, 1rem);--internal-spacing-lg:var(--spacing-lg, 1.5rem);--internal-spacing-xl:var(--spacing-xl, 2rem);--internal-font-family:var(--font-family, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif);--internal-font-size-xs:var(--font-size-xs, 0.75rem);--internal-font-size-sm:var(--font-size-sm, 0.875rem);--internal-font-size-base:var(--font-size-base, 1rem);--internal-font-size-lg:var(--font-size-lg, 1.125rem);--internal-font-size-xl:var(--font-size-xl, 1.25rem);--internal-font-weight-medium:var(--font-weight-medium, 500);--internal-font-weight-semibold:var(--font-weight-semibold, 600);--internal-font-weight-bold:var(--font-weight-bold, 700);--internal-shadow-lg:var(--shadow-lg, 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1));--internal-shadow-xl:var(--shadow-xl, 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1));--internal-shadow-edge-light:var(--shadow-edge-light, 0 1px oklch(0 0 0 / 4%));--internal-transition-fast:var(--transition-fast, 150ms cubic-bezier(0.4, 0, 0.2, 1));--internal-transition-base:var(--transition-base, 200ms cubic-bezier(0.4, 0, 0.2, 1));--internal-transition-slow:var(--transition-slow, 300ms cubic-bezier(0.4, 0, 0.2, 1));display:block;font-family:var(--internal-font-family);color:var(--internal-foreground);background:var(--internal-background)}*{box-sizing:border-box;margin:0;padding:0}button,input,select,textarea{font:inherit}*:focus{outline:none}*:focus-visible{outline:2px solid var(--internal-ring);outline-offset:2px;border-radius:calc(var(--internal-radius) - 4px)}.session-services-ticketing-container{width:100%;max-width:100%;margin:0}:host([data-theme="dark"]){--background:transparent;--foreground:oklch(0.967 0.001 286.375);--card:color-mix(\n in srgb,\n oklch(0.21 0.006 285.885) 80%,\n oklch(0.141 0.005 285.823)\n );--card-foreground:oklch(0.967 0.001 286.375);--popover:oklch(0.21 0.006 285.885);--popover-foreground:oklch(0.967 0.001 286.375);--primary:oklch(0.537 0.1554 255);--primary-foreground:oklch(0.985 0 0);--secondary:oklch(1 0 0 / 6%);--secondary-foreground:oklch(0.967 0.001 286.375);--muted:oklch(1 0 0 / 6%);--muted-foreground:oklch(0.705 0.015 286.067);--accent:oklch(1 0 0 / 6%);--accent-foreground:oklch(0.967 0.001 286.375);--destructive:oklch(0.637 0.237 25.331);--destructive-foreground:oklch(0.704 0.191 22.216);--border:oklch(1 0 0 / 12%);--input:oklch(1 0 0 / 12%);--ring:oklch(0.552 0.016 285.938);--success:oklch(0.696 0.17 162.48);--warning:oklch(0.769 0.188 70.08);--info:oklch(0.623 0.214 259.815);--info-foreground:oklch(0.707 0.165 254.624)}.tickets-wrapper{padding:0;width:100%}.tickets-heading{color:var(--internal-foreground);font-size:var(--internal-font-size-lg);font-weight:var(--internal-font-weight-semibold);margin:0 0 var(--internal-spacing-md)}.ticket-section.loading-ticket-section{overflow:visible;background:transparent;border:0;box-shadow:none}.loading-ticket-section .admissions-list{display:flex;flex-direction:column;gap:var(--internal-spacing-sm)}.admission-card.loading-admission{min-height:5.25rem;padding:0;background:oklch(from var(--internal-foreground) l c h / 0.07);border:0;border-radius:var(--internal-radius);box-shadow:none;pointer-events:none;animation:loading-card 1.6s ease-out infinite}@keyframes loading-card{0%,100%{opacity:0.48}50%{opacity:0.74}}.passcode-form,.passcode-form input,.ticket-section,.more-info-badge,.quantity-controls,.sold-out-controls,.coupon-row,.coupon-apply,.coupon-remove{border:1px solid var(--internal-input);box-shadow:var(--internal-shadow-edge-light)}.external-ticket-button,.checkout-btn{display:inline-flex;align-items:center;justify-content:center;background:var(--internal-primary);color:var(--internal-primary-foreground);border:1px solid oklch(from var(--internal-primary) calc(l - 0.08) c h);border-radius:calc(var(--internal-radius) - 2px);cursor:pointer;box-shadow:var(--internal-shadow-edge-light);transition:all var(--internal-transition-fast)}.external-ticket-button:hover,.checkout-btn:hover:not(:disabled){background:oklch(from var(--internal-primary) calc(l - 0.08) c h);transform:translateY(-1px)}.external-ticket-button:focus-visible{outline:2px solid var(--internal-ring);outline-offset:2px}.passcode-form{display:flex;flex-direction:column;gap:var(--internal-spacing-sm);padding:var(--internal-spacing-lg);margin-bottom:var(--internal-spacing-md);background:var(--internal-card);border-radius:var(--internal-radius)}.passcode-form h2{color:var(--internal-foreground);font-size:var(--internal-font-size-base);font-weight:var(--internal-font-weight-semibold);line-height:1.3}.passcode-form p{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);line-height:1.5}.door-alert,.empty-ticketing-state,.message-state{display:flex;flex-direction:column;gap:calc(var(--internal-spacing-xs) * 1.5);margin-bottom:var(--internal-spacing-md);padding:0;background:transparent;border:none;border-radius:0;box-shadow:none}.door-alert strong,.empty-ticketing-state strong,.message-state strong{color:var(--internal-foreground);font-size:var(--internal-font-size-base);font-weight:var(--internal-font-weight-semibold);line-height:1.3}.door-alert span,.empty-ticketing-state span,.message-state span{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);line-height:1.4}.external-ticket-button{flex-direction:column;gap:calc(var(--internal-spacing-xs) * 0.5);width:100%;padding:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs))\n var(--internal-spacing-lg);text-decoration:none}.external-ticket-panel{display:flex;flex-direction:column;gap:var(--internal-spacing-md)}.external-ticket-warning{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);font-weight:var(--internal-font-weight-medium);line-height:1.35}.external-ticket-label{font-size:var(--internal-font-size-base);font-weight:var(--internal-font-weight-bold);line-height:1.2}.external-ticket-domain{font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);line-height:1.2;opacity:0.82}.passcode-form input{width:100%;min-width:0;padding:calc(var(--internal-spacing-sm) + 0.125rem)\n var(--internal-spacing-sm);background:var(--internal-card);color:var(--internal-foreground);border-radius:calc(var(--internal-radius) - 2px);font:inherit}.passcode-form input:disabled{opacity:0.6;cursor:not-allowed}.ticket-section{background:var(--internal-card);border-radius:var(--internal-radius);margin:0 0 var(--internal-spacing-lg) 0;overflow:hidden;width:100%;transition:all var(--internal-transition-base)}.tickets-wrapper>.ticket-section:last-child{margin-bottom:0}.ticket-section.section-sold-out{position:relative}.ticket-section.section-sold-out .section-header{padding-bottom:var(--internal-spacing-md)}.ticket-section.section-sold-out .section-name,.ticket-section.section-sold-out .section-time,.ticket-section.section-sold-out .section-venue{opacity:0.8}.ticket-section.section-sold-out .admissions-list{opacity:0.6;pointer-events:none;filter:grayscale(0.3)}.ticket-section.section-sold-out .admission-card{background:var(--internal-card)}.ticket-section.section-sold-out .quantity-controls,.ticket-section.section-sold-out .sold-out-controls{opacity:0.7}.section-header{padding:var(--internal-spacing-md) var(--internal-spacing-lg);border-bottom:1px solid var(--internal-border);background:var(--internal-card)}.section-name{color:var(--internal-foreground);font-size:var(--internal-font-size-lg);font-weight:var(--internal-font-weight-semibold);letter-spacing:-0.025em;margin:0 0 var(--internal-spacing-xs) 0;display:flex;align-items:center;gap:var(--internal-spacing-sm)}.section-time,.section-venue{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);display:flex;align-items:center;gap:var(--internal-spacing-xs)}.section-time,.admission-time{margin-bottom:var(--internal-spacing-xs)}.section-time svg,.section-venue svg,.admission-time svg,.admission-venue svg{width:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs));height:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs));flex-shrink:0;opacity:0.8}.admissions-list{padding:0}.admission-card{border-bottom:1px solid var(--internal-border);padding:var(--internal-spacing-md) var(--internal-spacing-lg);position:relative;transition:background-color var(--internal-transition-base);cursor:default}.admission-card:focus-visible{outline:2px solid var(--internal-ring);outline-offset:-2px;z-index:1}.admission-card.sold-out{background:var(--internal-card)}.admission-card.unavailable{opacity:0.72}.admission-card.sold-out .admission-price{opacity:0.5}.admission-card:last-child{border-bottom:none}.admission-content{display:flex;justify-content:space-between;align-items:center}.admission-details{flex:1}.admission-header{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--internal-spacing-md);margin-bottom:var(--internal-spacing-sm)}.admission-header-text{flex:1;min-width:0}.admission-title{color:var(--internal-foreground);font-size:var(--internal-font-size-lg);font-weight:var(--internal-font-weight-semibold);margin-bottom:0;display:flex;align-items:center;gap:var(--internal-spacing-sm)}.admission-subtitle{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);margin-top:var(--internal-spacing-xs);line-height:1.4}.more-info-badge{display:inline-flex;align-items:center;gap:calc(var(--internal-spacing-xs) * 1.5);padding:calc(var(--internal-spacing-xs) * 1.5) var(--internal-spacing-sm);background:oklch(from var(--internal-info) l c h / 0.08);color:var(--internal-info-foreground);border-radius:calc(var(--internal-radius) - 2px);font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);cursor:pointer;transition:all var(--internal-transition-fast);white-space:nowrap;flex-shrink:0}.more-info-badge:hover{background:oklch(from var(--internal-info) l c h / 0.16)}.more-info-badge:focus-visible{outline:2px solid var(--internal-ring);outline-offset:2px}.more-info-badge svg{flex-shrink:0}.admission-time,.admission-venue{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);display:flex;align-items:center;gap:var(--internal-spacing-xs)}.admission-venue{margin-bottom:var(--internal-spacing-sm)}.solo-admission .admission-content{flex-direction:column;align-items:stretch}.solo-admission .admission-details{width:100%}.solo-admission .admission-price-info{margin-top:var(--internal-spacing-md);display:flex;justify-content:space-between;align-items:center;width:100%}.solo-admission .quantity-controls{margin-left:auto;flex-shrink:0}.admission-price-info{display:flex;align-items:center;justify-content:space-between;gap:var(--internal-spacing-sm);margin-bottom:var(--internal-spacing-sm);width:100%}.admission-price-wrapper{display:flex;flex-direction:column;row-gap:calc(var(--internal-spacing-xs) * 0.5)}.admission-price{color:var(--internal-foreground);font-size:var(--internal-font-size-xl);font-weight:var(--internal-font-weight-bold);letter-spacing:-0.025em;line-height:1.1}.admission-price-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--internal-spacing-sm)}.admission-price-original{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-base);text-decoration:line-through}.admission-booking-fee{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);line-height:1.2}.admission-savings,.admission-availability{font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);line-height:1.2}.admission-savings{color:var(--internal-success)}.admission-availability{color:var(--internal-warning)}.admission-sale-label{display:block;margin-top:var(--internal-spacing-xs);color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);font-weight:var(--internal-font-weight-medium);line-height:1.35}.admission-sale-label.success{color:var(--internal-success)}.quantity-controls{display:inline-flex;align-items:center;gap:0;background:var(--internal-secondary);border-radius:calc(var(--internal-radius) - 2px);overflow:hidden;transition:all var(--internal-transition-fast)}.quantity-controls:has(.quantity-value:focus-visible){box-shadow:0 0 0 2px var(--internal-ring)}.quantity-btn{width:calc(var(--internal-spacing-lg) * 1.5);height:calc(var(--internal-spacing-lg) * 1.5);border:none;background:transparent;color:var(--internal-muted-foreground);font-size:var(--internal-font-size-base);font-weight:var(--internal-font-weight-medium);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all var(--internal-transition-fast);position:relative}.quantity-btn:focus-visible{outline:2px solid var(--internal-ring);outline-offset:-2px;z-index:1}.quantity-btn:hover:not(:disabled){background:var(--internal-accent);color:var(--internal-accent-foreground)}.quantity-btn:active:not(:disabled){transform:scale(0.95)}.quantity-btn:disabled{opacity:0.6;cursor:not-allowed;background:var(--internal-secondary);color:var(--internal-muted-foreground);border-color:var(--internal-border)}.quantity-btn.decrease{border-right:1px solid var(--internal-input)}.quantity-btn.increase{border-left:1px solid var(--internal-input)}.quantity-value{appearance:textfield;width:2.75rem;height:calc(var(--internal-spacing-lg) * 1.5);border:none;background:transparent;min-width:2.5rem;text-align:center;font-size:var(--internal-font-size-sm);font-weight:var(--internal-font-weight-semibold);color:var(--internal-foreground);padding:0 var(--internal-spacing-xs)}.quantity-value:focus-visible{outline:none}.quantity-value::-webkit-inner-spin-button,.quantity-value::-webkit-outer-spin-button{appearance:none;margin:0}.quantity-value:disabled{opacity:0.6;cursor:not-allowed}.sold-out-controls{display:inline-flex;align-items:center;justify-content:center;min-width:calc(var(--internal-spacing-lg) * 1.5 * 2 + 2.5rem);height:calc(var(--internal-spacing-lg) * 1.5);padding:0;background:transparent;border:none;box-shadow:none}.sold-out-controls,.sold-out-text{color:var(--internal-destructive);font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);letter-spacing:0.025em;text-transform:uppercase}.sold-out-controls.success,.sold-out-controls.success .sold-out-text{color:var(--internal-success)}.checkout-actions{margin:var(--internal-spacing-lg) 0 0 0;width:100%}.coupon-panel{margin-bottom:var(--internal-spacing-md)}.coupon-row{position:relative;display:flex;align-items:center;width:100%;min-width:0;overflow:hidden;background:var(--internal-background);background-clip:padding-box;border-radius:var(--internal-radius);transition:border-color var(--internal-transition-fast)}.coupon-row:focus-within{border-color:var(--internal-ring)}.coupon-row:has(input[aria-invalid="true"]){border-color:var(--internal-destructive)}.coupon-row:has(input:disabled){opacity:0.64}.coupon-row input{width:100%;min-width:0;padding:calc(var(--internal-spacing-sm) - 1px)\n calc(var(--internal-spacing-xl) * 2.75)\n calc(var(--internal-spacing-sm) - 1px)\n calc(var(--internal-spacing-md) - 1px);background:var(--internal-card);color:var(--internal-foreground);border:none;border-radius:inherit;font:inherit;font-size:var(--internal-font-size-sm);line-height:1.25rem;outline:none}.coupon-row input::placeholder{color:oklch(from var(--internal-muted-foreground) l c h / 0.64)}.coupon-row input:disabled{cursor:not-allowed}.coupon-apply,.coupon-remove{position:absolute;right:calc((var(--internal-spacing-xs) * 1.5) - 3px);top:50%;transform:translateY(-50%);padding:calc(var(--internal-spacing-xs) * 1.25) var(--internal-spacing-sm);background:var(--internal-secondary);color:var(--internal-foreground);border-radius:calc(var(--internal-radius) - 2px);font-size:var(--internal-font-size-xs);font-weight:var(--internal-font-weight-medium);cursor:pointer;transition:all var(--internal-transition-fast)}.coupon-apply:hover:not(:disabled),.coupon-remove:hover:not(:disabled){background:oklch(from var(--internal-accent) l c h / 0.8)}.coupon-apply:focus-visible,.coupon-remove:focus-visible{outline:2px solid var(--internal-ring);outline-offset:-1px}.coupon-apply:disabled,.coupon-remove:disabled{opacity:0.6;cursor:not-allowed}.checkout-btn{width:100%;padding:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs))\n var(--internal-spacing-lg);font-size:var(--internal-font-size-base);font-weight:var(--internal-font-weight-bold);line-height:1.25;position:relative;overflow:hidden}.checkout-btn:focus-visible{outline:2px solid var(--internal-ring);outline-offset:2px}.checkout-btn:active:not(:disabled){transform:translateY(0)}.checkout-btn:disabled{opacity:0.5;cursor:not-allowed}.checkout-spinner-wrapper{display:inline-flex;align-items:center;justify-content:center;height:1.25em;vertical-align:middle}.checkout-spinner{width:1.125em;height:1.125em;animation:checkout-spinner 0.8s linear infinite}@keyframes checkout-spinner{to{transform:rotate(360deg)}}.sticky-checkout-bar{position:fixed;right:0;bottom:0;left:0;z-index:40;display:none;padding:var(--internal-spacing-md);background:var(--internal-card);border-top:1px solid var(--internal-border);box-shadow:var(--internal-shadow-lg)}.sticky-checkout-btn.selection-prompt{animation:selection-prompt-shake 400ms ease-in-out}@keyframes selection-prompt-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}.retry-button{align-self:flex-start;margin-top:var(--internal-spacing-xs);background:var(--internal-primary);color:var(--internal-primary-foreground);border:1px solid oklch(from var(--internal-primary) calc(l - 0.08) c h);padding:calc(var(--internal-spacing-sm) + var(--internal-spacing-xs))\n var(--internal-spacing-lg);border-radius:calc(var(--internal-radius) - 2px);font-size:var(--internal-font-size-sm);font-weight:var(--internal-font-weight-medium);cursor:pointer;transition:all var(--internal-transition-fast);box-shadow:var(--internal-shadow-edge-light)}.retry-button:focus-visible{outline:2px solid var(--internal-ring);outline-offset:2px}.retry-button:hover{background:oklch(from var(--internal-primary) calc(l - 0.08) c h);transform:translateY(-1px)}.retry-button:active{transform:translateY(0)}.error-message{background:oklch(\n from var(--internal-destructive) calc(l + 0.4) calc(c * 0.2) h / 0.05\n );border:1px solid oklch(from var(--internal-destructive) l c h / 0.2);color:var(--internal-destructive);padding:var(--internal-spacing-sm) var(--internal-spacing-md);border-radius:var(--internal-radius);margin-bottom:var(--internal-spacing-md);font-size:var(--internal-font-size-sm)}@media (min-width: 768px){.ticket-section{border-radius:var(--internal-radius);margin:0 0 var(--internal-spacing-md) 0}}@media (max-width: 767px){:host([data-sticky-checkout="true"]) .session-services-ticketing-container{padding-bottom:calc(var(--internal-spacing-xl) * 3)}:host([data-sticky-checkout="true"]) .checkout-actions>.checkout-btn,:host([data-sticky-checkout="true"]) .inline-external-ticket-button{display:none}.sticky-checkout-bar{display:block}}.modal-backdrop{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:var(--internal-spacing-md);background:var(--internal-backdrop);backdrop-filter:blur(4px);animation:modal-backdrop-fade-in var(--internal-transition-base) ease-out}@keyframes modal-backdrop-fade-in{from{opacity:0}to{opacity:1}}.modal-content{position:relative;width:100%;max-width:32rem;max-height:calc(100vh - var(--internal-spacing-xl) * 2);overflow-y:auto;background:var(--internal-popover);color:var(--internal-popover-foreground);border:1px solid var(--internal-border);border-radius:var(--internal-radius);padding:var(--internal-spacing-lg);box-shadow:var(--internal-shadow-xl);animation:modal-content-scale-in var(--internal-transition-base) ease-out}@keyframes modal-content-scale-in{from{opacity:0;transform:scale(0.98)}to{opacity:1;transform:scale(1)}}.modal-close-btn{position:absolute;top:var(--internal-spacing-sm);right:var(--internal-spacing-sm);display:flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;background:transparent;border:1px solid transparent;border-radius:calc(var(--internal-radius) - 4px);color:var(--internal-muted-foreground);cursor:pointer;opacity:0.72;transition:all var(--internal-transition-fast)}.modal-close-btn:hover{opacity:1;background:var(--internal-accent)}.modal-close-btn:focus-visible{outline:2px solid var(--internal-ring);outline-offset:1px;opacity:1}.modal-header{margin-bottom:var(--internal-spacing-md);padding-right:var(--internal-spacing-xl)}.modal-title{font-size:var(--internal-font-size-xl);font-weight:var(--internal-font-weight-semibold);color:var(--internal-foreground);margin:0;line-height:1.2}.modal-subtitle{color:var(--internal-muted-foreground);font-size:var(--internal-font-size-sm);margin-top:var(--internal-spacing-xs);line-height:1.4}.modal-description{color:var(--internal-foreground);font-size:var(--internal-font-size-base);line-height:1.6;white-space:pre-wrap;margin:0}';export{rR as session_services_ticketing}
|