@session-services/web-elements 0.1.28 → 0.1.30

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.
Files changed (32) hide show
  1. package/README.md +5 -0
  2. package/dist/cjs/{index-BYBgrATL.js → index-B2ZmNnji.js} +292 -245
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/session-services-elements.cjs.js +3 -3
  5. package/dist/cjs/session-services-formatted-text.cjs.entry.js +8 -20
  6. package/dist/cjs/session-services-ticketing.cjs.entry.js +1051 -526
  7. package/dist/collection/collection-manifest.json +4 -3
  8. package/dist/collection/components/session-services-ticketing/session-services-ticketing.js +116 -45
  9. package/dist/collection/components/session-services-ticketing/session-services-ticketing.logic.js +15 -5
  10. package/dist/collection/components/session-services-ticketing/session-services-ticketing.logic.test.js +28 -1
  11. package/dist/collection/components/session-services-ticketing/session-services-ticketing.test.js +71 -1
  12. package/dist/components/index.d.ts +2 -0
  13. package/dist/components/index.js +1 -1311
  14. package/dist/components/session-services-formatted-text.js +1 -1802
  15. package/dist/components/session-services-ticketing.js +1 -25072
  16. package/dist/esm/{index-CNOpF6tk.js → index-DhbVMqIT.js} +292 -245
  17. package/dist/esm/loader.js +3 -3
  18. package/dist/esm/session-services-elements.js +4 -4
  19. package/dist/esm/session-services-formatted-text.entry.js +8 -20
  20. package/dist/esm/session-services-ticketing.entry.js +1051 -526
  21. package/dist/session-services-elements/p-4dd3f723.entry.js +1 -0
  22. package/dist/session-services-elements/{p-703444ed.entry.js → p-8483ca88.entry.js} +1 -1
  23. package/dist/session-services-elements/p-DhbVMqIT.js +2 -0
  24. package/dist/session-services-elements/session-services-elements.esm.js +1 -1
  25. package/dist/types/components/session-services-ticketing/session-services-ticketing.d.ts +15 -4
  26. package/dist/types/components/session-services-ticketing/session-services-ticketing.logic.d.ts +5 -3
  27. package/dist/types/components.d.ts +36 -8
  28. package/dist/types/index.d.ts +1 -1
  29. package/dist/types/stencil-public-runtime.d.ts +67 -5
  30. package/package.json +17 -13
  31. package/dist/session-services-elements/p-1acfcdfd.entry.js +0 -1
  32. package/dist/session-services-elements/p-CNOpF6tk.js +0 -2
@@ -1 +0,0 @@
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.14.3/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.14.3/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 Y(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 Z=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===Z?t:Reflect.get(e,n,r)})}function H(e){return I(e)?Reflect.get(e,Z):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{...e,...t}}var ee=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 te(e){return e instanceof ee||("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 ne(e,t){return{...e,...t}}function re(e,t){return{...e,...t}}function ie(e,t){return e?`${e}${t}`:t}function oe(e,t){return e?[...e,...t]:t}function ae(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 se(e,t){if(te(e))return new ee({...e["~orpc"],errorMap:X(t.errorMap,e["~orpc"].errorMap),route:ae(e["~orpc"].route,t)});if("object"!=typeof e||!e)return e;let n={};for(let r in e)n[r]=se(e[r],t);return n}const de=new class e extends ee{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:X(this["~orpc"].errorMap,t)})}meta(t){return new e({...this["~orpc"],meta:ne(this["~orpc"].meta,t)})}route(t){return new e({...this["~orpc"],route:re(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:ie(this["~orpc"].prefix,t)})}tag(...t){return new e({...this["~orpc"],tags:oe(this["~orpc"].tags,t)})}router(e){return se(e,this["~orpc"])}}({errorMap:{},route:{},meta:{}}),ce={defaultMethod:"POST",defaultSuccessStatus:200,defaultSuccessDescription:"OK",defaultInputStructure:"compact",defaultOutputStructure:"compact"};function ue(e,t){return void 0===t?ce[e]:t}const le=Symbol.for("constructDateFrom");function pe(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&le in e?e[le](t):e instanceof Date?new e.constructor(t):new Date(t)}function me(e,t){let n=function(e){return pe(e,e)}(e);return isNaN(t)?pe(e,NaN):(t&&n.setDate(n.getDate()+t),n)}const fe={},he={};function ve(e,t){try{let n=(fe[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return n in he?he[n]:ye(n,n.split(":"))}catch{if(e in he)return he[e];let t=e?.match(ge);return t?ye(e,t.slice(1)):NaN}}const ge=/([+-]\d\d):?(\d\d)?/;function ye(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return he[e]=60*n+r>0?60*n+r+i:60*n-r-i}var be=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(ve(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)),ke(this),$e(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=-ve(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),$e(this),+this}[Symbol.for("constructDateFrom")](t){return new e(+new Date(t),this.timeZone)}};const we=/^(get|set)(?!UTC)/;function $e(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(60*-ve(e.timeZone,e)))}function ke(e){let t=ve(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*ve(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=ve(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=ve(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 Ie(e){return("string"==typeof e?new Date(e):e).toISOString().replace(/\.\d{3}Z$/,"")}let xe;function Ee(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(!we.test(e))return;let t=e.replace(we,"$1UTC");be.prototype[t]&&(e.startsWith("get")?be.prototype[e]=function(){return this.internal[t]()}:(be.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()),ke(e)}(this),+this},be.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),$e(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(me(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:me(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:me(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:Ie(me(new Date,1)),entryEndsAt:Ie(me(new Date,2)),publishAt:Ie(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,visibility:"ALWAYS",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:Ie(me(new Date,1)),entryEndsAt:Ie(me(new Date,2)),saleStartsAt:Ie(new Date),saleEndsAt:Ie(me(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:xe.Customer,customerId:xe.Customer.id,teamId:xe.Team.id,promoterId:xe.Promoter.id,promoterSlug:xe.Promoter.slug,eventId:xe.Event.id,eventSlug:xe.Event.slug,payment:{method:"AIRWALLEX",source:"CARD"},payoutIds:[g.id],refunds:[],offers:[b],tenantId:xe.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",request:{idempotencyKey:"refund_12345_customer_request"},status:"SUCCEEDED",acceptedAt:(new Date).toISOString(),failedAt:(new Date).toISOString(),price:{currency:"AUD",total:1200,items:1200,shipping:0,fees:0},reason:"CUSTOMER_REQUEST",note:"Customer requested refund due to schedule conflict",tickets:{cancelRequested:!0,cancelled:!0,cancelledCount:2},gateway:{provider:"STRIPE",refundId:"re_1234567890abcdef",idempotencyKey:"rfd_01jps5cgsfgve5b5g2666kyryh"},actor:{type:"USER",userId:n.id},notification:{requested:!0,sentAt:(new Date).toISOString()},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}}(xe||={});var Ae=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Te=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};const Oe={};function _e(){return Oe}function De(e,t){return"bigint"==typeof t?t.toString():t}function Se(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Me(e){return null==e}function Pe(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const je=Symbol("evaluating");function Ce(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==je)return void 0===r&&(r=je,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function Ne(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Re(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function Ue(e){return JSON.stringify(e)}const Le="captureStackTrace"in Error?Error.captureStackTrace:()=>{};function qe(e){return"object"==typeof e&&!!e&&!Array.isArray(e)}const Ge=Se((()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch{return!1}}));function ze(e){if(!1===qe(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let n=t.prototype;return!(!1===qe(n)||!1===Object.prototype.hasOwnProperty.call(n,"isPrototypeOf"))}function Fe(e){return ze(e)?{...e}:Array.isArray(e)?[...e]:e}const Be=new Set(["string","number","symbol"]);function We(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ye(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function Ze(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 Ve={safeint:[-9007199254740991,2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function He(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 Ke(e,t){return t.map((t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t}))}function Je(e){return"string"==typeof e?e:e?.message}function Qe(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Je(e.inst?._zod.def?.error?.(e))??Je(t?.error?.(e))??Je(n.customError?.(e))??Je(n.localeError?.(e))??"Invalid input"),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Xe(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function et(...e){let[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}}const tt=(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,De,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},nt=Ee("$ZodError",tt),rt=Ee("$ZodError",tt,{Parent:Error}),it=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 Ae;if(a.issues.length){let t=new(i?.Err??e)(a.issues.map((e=>Qe(e,o,_e()))));throw Le(t,i?.callee),t}return a.value},ot=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=>Qe(e,o,_e()))));throw Le(t,i?.callee),t}return a.value},at=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 Ae;return o.issues.length?{success:!1,error:new(e??nt)(o.issues.map((e=>Qe(e,i,_e()))))}:{success:!0,data:o.value}},st=at(rt),dt=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=>Qe(e,i,_e()))))}:{success:!0,data:o.value}},ct=dt(rt),ut=/^[cC][^\s-]{8,}$/,lt=/^[0-9a-z]+$/,pt=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,mt=/^[0-9a-vA-V]{20}$/,ft=/^[A-Za-z0-9]{27}$/,ht=/^[a-zA-Z0-9_-]{21}$/,vt=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,gt=/^([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})$/,yt=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)$/,bt=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,wt=/^(?:(?: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])$/,$t=/^(([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}|:))$/,kt=/^((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])$/,It=/^(([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])$/,xt=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Et=/^[A-Za-z0-9_-]*$/,At=/^\+(?:[0-9]){6,14}[0-9]$/,Tt="(?:(?:\\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])))",Ot=RegExp(`^${Tt}$`);function _t(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 Dt=/^-?\d+$/,St=/^-?\d+(?:\.\d+)?/,Mt=/^(?:true|false)$/i,Pt=/^null$/i,jt=/^undefined$/i,Ct=/^[^A-Z]*$/,Nt=/^[^a-z]*$/,Rt=Ee("$ZodCheck",((e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])})),Ut={number:"number",bigint:"bigint",object:"date"},Lt=Ee("$ZodCheckLessThan",((e,t)=>{Rt.init(e,t);let n=Ut[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})}})),qt=Ee("$ZodCheckGreaterThan",((e,t)=>{Rt.init(e,t);let n=Ut[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})}})),Gt=Ee("$ZodCheckMultipleOf",((e,t)=>{Rt.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})}})),zt=Ee("$ZodCheckNumberFormat",((e,t)=>{Rt.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[i,o]=Ve[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=Dt)})),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})}})),Ft=Ee("$ZodCheckMaxLength",((e,t)=>{var n;Rt.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Me(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=Xe(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}})),Bt=Ee("$ZodCheckMinLength",((e,t)=>{var n;Rt.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Me(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=Xe(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}})),Wt=Ee("$ZodCheckLengthEquals",((e,t)=>{var n;Rt.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Me(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=Xe(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})}})),Yt=Ee("$ZodCheckStringFormat",((e,t)=>{var n,r;Rt.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=()=>{})})),Zt=Ee("$ZodCheckRegex",((e,t)=>{Yt.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})}})),Vt=Ee("$ZodCheckLowerCase",((e,t)=>{t.pattern??=Ct,Yt.init(e,t)})),Ht=Ee("$ZodCheckUpperCase",((e,t)=>{t.pattern??=Nt,Yt.init(e,t)})),Kt=Ee("$ZodCheckIncludes",((e,t)=>{Rt.init(e,t);let n=We(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})}})),Jt=Ee("$ZodCheckStartsWith",((e,t)=>{Rt.init(e,t);let n=RegExp(`^${We(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})}})),Qt=Ee("$ZodCheckEndsWith",((e,t)=>{Rt.init(e,t);let n=RegExp(`.*${We(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})}})),Xt=Ee("$ZodCheckOverwrite",((e,t)=>{Rt.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}));var en=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 tn={major:4,minor:1,patch:13},nn=Ee("$ZodType",((e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=tn;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=He(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 Ae;if(r||a instanceof Promise)r=(r??Promise.resolve()).then((async()=>{await a,e.issues.length!==t&&(i||=He(e,t))}));else{if(e.issues.length===t)continue;i||=He(e,t)}}return r?r.then((()=>e)):e},n=(n,i,o)=>{if(He(n))return n.aborted=!0,n;let a=t(i,r,o);if(a instanceof Promise){if(!1===o.async)throw new Ae;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 Ae;return a.then((e=>t(e,r,o)))}return t(a,r,o)}}e["~standard"]={validate:t=>{try{let n=st(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return ct(e,t).then((e=>e.success?{value:e.data}:{issues:e.error?.issues}))}},vendor:"zod",version:1}})),rn=Ee("$ZodString",((e,t)=>{nn.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}})),on=Ee("$ZodStringFormat",((e,t)=>{Yt.init(e,t),rn.init(e,t)})),an=Ee("$ZodGUID",((e,t)=>{t.pattern??=gt,on.init(e,t)})),sn=Ee("$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??=yt(e)}else t.pattern??=yt();on.init(e,t)})),dn=Ee("$ZodEmail",((e,t)=>{t.pattern??=bt,on.init(e,t)})),cn=Ee("$ZodURL",((e,t)=>{on.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})}}})),un=Ee("$ZodEmoji",((e,t)=>{t.pattern??=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u"),on.init(e,t)})),ln=Ee("$ZodNanoID",((e,t)=>{t.pattern??=ht,on.init(e,t)})),pn=Ee("$ZodCUID",((e,t)=>{t.pattern??=ut,on.init(e,t)})),mn=Ee("$ZodCUID2",((e,t)=>{t.pattern??=lt,on.init(e,t)})),fn=Ee("$ZodULID",((e,t)=>{t.pattern??=pt,on.init(e,t)})),hn=Ee("$ZodXID",((e,t)=>{t.pattern??=mt,on.init(e,t)})),vn=Ee("$ZodKSUID",((e,t)=>{t.pattern??=ft,on.init(e,t)})),gn=Ee("$ZodISODateTime",((e,t)=>{t.pattern??=function(e){let t=_t({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(`^${Tt}T(?:${r})$`)}(t),on.init(e,t)})),yn=Ee("$ZodISODate",((e,t)=>{t.pattern??=Ot,on.init(e,t)})),bn=Ee("$ZodISOTime",((e,t)=>{t.pattern??=function(e){return RegExp(`^${_t(e)}$`)}(t),on.init(e,t)})),wn=Ee("$ZodISODuration",((e,t)=>{t.pattern??=vt,on.init(e,t)})),$n=Ee("$ZodIPv4",((e,t)=>{t.pattern??=wt,on.init(e,t),e._zod.bag.format="ipv4"})),kn=Ee("$ZodIPv6",((e,t)=>{t.pattern??=$t,on.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})}}})),In=Ee("$ZodCIDRv4",((e,t)=>{t.pattern??=kt,on.init(e,t)})),xn=Ee("$ZodCIDRv6",((e,t)=>{t.pattern??=It,on.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 En(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const An=Ee("$ZodBase64",((e,t)=>{t.pattern??=xt,on.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{En(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}})),Tn=Ee("$ZodBase64URL",((e,t)=>{t.pattern??=Et,on.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{(function(e){if(!Et.test(e))return!1;let t=e.replace(/[-_]/g,(e=>"-"===e?"+":"/"));return En(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})}})),On=Ee("$ZodE164",((e,t)=>{t.pattern??=At,on.init(e,t)})),_n=Ee("$ZodJWT",((e,t)=>{on.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})}})),Dn=Ee("$ZodNumber",((e,t)=>{nn.init(e,t),e._zod.pattern=e._zod.bag.pattern??St,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}})),Sn=Ee("$ZodNumberFormat",((e,t)=>{zt.init(e,t),Dn.init(e,t)})),Mn=Ee("$ZodBoolean",((e,t)=>{nn.init(e,t),e._zod.pattern=Mt,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}})),Pn=Ee("$ZodUndefined",((e,t)=>{nn.init(e,t),e._zod.pattern=jt,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=t=>{let n=t.value;return void 0===n||t.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),t}})),jn=Ee("$ZodNull",((e,t)=>{nn.init(e,t),e._zod.pattern=Pt,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}})),Cn=Ee("$ZodAny",((e,t)=>{nn.init(e,t),e._zod.parse=e=>e})),Nn=Ee("$ZodUnknown",((e,t)=>{nn.init(e,t),e._zod.parse=e=>e})),Rn=Ee("$ZodNever",((e,t)=>{nn.init(e,t),e._zod.parse=t=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)})),Un=Ee("$ZodVoid",((e,t)=>{nn.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}})),Ln=Ee("$ZodDate",((e,t)=>{nn.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 qn(e,t,n){e.issues.length&&t.issues.push(...Ke(n,e.issues)),t.value[n]=e.value}const Gn=Ee("$ZodArray",((e,t)=>{nn.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=>qn(t,n,e)))):qn(a,n,e)}return o.length?Promise.all(o).then((()=>n)):n}}));function zn(e,t,n,r){e.issues.length&&t.issues.push(...Ke(n,e.issues)),void 0===e.value?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Fn(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 Bn(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 Wn=Ee("$ZodObject",((e,t)=>{if(nn.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=Se((()=>Fn(t)));Ce(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=qe,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?Bn(d,s,t,a,n.value,e):d.length?Promise.all(d).then((()=>t)):t}})),Yn=Ee("$ZodObjectJIT",((e,t)=>{Wn.init(e,t);let n,r,i=e._zod.parse,o=Se((()=>Fn(t))),a=qe,s=!Oe.jitless,d=s&&Ge.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 en(["shape","payload","ctx"]),n=o.value,r=e=>{let t=Ue(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=Ue(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?Bn([],p,u,l,r,e):u):i(u,l):(u.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),u)}}));function Zn(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=>!He(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=>Qe(e,r,_e())))))}),t)}const Vn=Ee("$ZodUnion",((e,t)=>{nn.init(e,t),Ce(e._zod,"optin",(()=>t.options.some((e=>"optional"===e._zod.optin))?"optional":void 0)),Ce(e._zod,"optout",(()=>t.options.some((e=>"optional"===e._zod.optout))?"optional":void 0)),Ce(e._zod,"values",(()=>{if(t.options.every((e=>e._zod.values)))return new Set(t.options.flatMap((e=>Array.from(e._zod.values))))})),Ce(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=>Pe(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=>Zn(t,i,e,o))):Zn(s,i,e,o)}})),Hn=Ee("$ZodDiscriminatedUnion",((e,t)=>{Vn.init(e,t);let n=e._zod.parse;Ce(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=Se((()=>{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(!qe(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)}})),Kn=Ee("$ZodIntersection",((e,t)=>{nn.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])=>Qn(e,t,n))):Qn(e,i,o)}}));function Jn(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ze(e)&&ze(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=Jn(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=Jn(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 Qn(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),He(e))return e;let r=Jn(t.value,n.value);if(!r.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const Xn=Ee("$ZodRecord",((e,t)=>{nn.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!ze(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(...Ke(e,t.issues)),n.value[e]=t.value}))):(a.issues.length&&n.issues.push(...Ke(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=>Qe(e,r,_e()))),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(...Ke(a,e.issues)),n.value[s.value]=e.value}))):(d.issues.length&&n.issues.push(...Ke(a,d.issues)),n.value[s.value]=d.value)}}return o.length?Promise.all(o).then((()=>n)):n}})),er=Ee("$ZodEnum",((e,t)=>{nn.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=>Be.has(typeof e))).map((e=>"string"==typeof e?We(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}})),tr=Ee("$ZodLiteral",((e,t)=>{if(nn.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?We(e):e?We(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}})),nr=Ee("$ZodTransform",((e,t)=>{nn.init(e,t),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new Te(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 Ae;return n.value=i,n}}));function rr(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}const ir=Ee("$ZodOptional",((e,t)=>{nn.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ce(e._zod,"values",(()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0)),Ce(e._zod,"pattern",(()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Pe(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=>rr(t,e.value))):rr(r,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,n)}})),or=Ee("$ZodNullable",((e,t)=>{nn.init(e,t),Ce(e._zod,"optin",(()=>t.innerType._zod.optin)),Ce(e._zod,"optout",(()=>t.innerType._zod.optout)),Ce(e._zod,"pattern",(()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Pe(e.source)}|null)$`):void 0})),Ce(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)})),ar=Ee("$ZodDefault",((e,t)=>{nn.init(e,t),e._zod.optin="optional",Ce(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=>sr(e,t))):sr(r,t)}}));function sr(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}const dr=Ee("$ZodPrefault",((e,t)=>{nn.init(e,t),e._zod.optin="optional",Ce(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))})),cr=Ee("$ZodNonOptional",((e,t)=>{nn.init(e,t),Ce(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=>ur(t,e))):ur(i,e)}}));function ur(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 lr=Ee("$ZodCatch",((e,t)=>{nn.init(e,t),Ce(e._zod,"optin",(()=>t.innerType._zod.optin)),Ce(e._zod,"optout",(()=>t.innerType._zod.optout)),Ce(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=>Qe(e,n,_e())))},input:e.value}),e.issues=[]),e))):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map((e=>Qe(e,n,_e())))},input:e.value}),e.issues=[]),e)}})),pr=Ee("$ZodPipe",((e,t)=>{nn.init(e,t),Ce(e._zod,"values",(()=>t.in._zod.values)),Ce(e._zod,"optin",(()=>t.in._zod.optin)),Ce(e._zod,"optout",(()=>t.out._zod.optout)),Ce(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=>mr(e,t.in,n))):mr(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then((e=>mr(e,t.out,n))):mr(r,t.out,n)}}));function mr(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const fr=Ee("$ZodReadonly",((e,t)=>{nn.init(e,t),Ce(e._zod,"propValues",(()=>t.innerType._zod.propValues)),Ce(e._zod,"values",(()=>t.innerType._zod.values)),Ce(e._zod,"optin",(()=>t.innerType?._zod?.optin)),Ce(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(hr):hr(r)}}));function hr(e){return e.value=Object.freeze(e.value),e}const vr=Ee("$ZodLazy",((e,t)=>{nn.init(e,t),Ce(e._zod,"innerType",(()=>t.getter())),Ce(e._zod,"pattern",(()=>e._zod.innerType?._zod?.pattern)),Ce(e._zod,"propValues",(()=>e._zod.innerType?._zod?.propValues)),Ce(e._zod,"optin",(()=>e._zod.innerType?._zod?.optin??void 0)),Ce(e._zod,"optout",(()=>e._zod.innerType?._zod?.optout??void 0)),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)})),gr=Ee("$ZodCustom",((e,t)=>{Rt.init(e,t),nn.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=>yr(t,n,r,e)));yr(i,n,r,e)}}));function yr(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(et(e))}}var br;(br=globalThis).__zod_globalRegistry??(br.__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 wr=globalThis.__zod_globalRegistry;function $r(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Ze(t)})}function kr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Ze(t)})}function Ir(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ze(t)})}function xr(e,t){return new Lt({check:"less_than",...Ze(t),value:e,inclusive:!1})}function Er(e,t){return new Lt({check:"less_than",...Ze(t),value:e,inclusive:!0})}function Ar(e,t){return new qt({check:"greater_than",...Ze(t),value:e,inclusive:!1})}function Tr(e,t){return new qt({check:"greater_than",...Ze(t),value:e,inclusive:!0})}function Or(e,t){return new Gt({check:"multiple_of",...Ze(t),value:e})}function _r(e,t){return new Ft({check:"max_length",...Ze(t),maximum:e})}function Dr(e,t){return new Bt({check:"min_length",...Ze(t),minimum:e})}function Sr(e,t){return new Wt({check:"length_equals",...Ze(t),length:e})}function Mr(e){return new Xt({check:"overwrite",tx:e})}const Pr=Ee("ZodISODateTime",((e,t)=>{gn.init(e,t),ii.init(e,t)}));function jr(e){return new Pr({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ze(e)})}const Cr=Ee("ZodISODate",((e,t)=>{yn.init(e,t),ii.init(e,t)}));function Nr(e){return new Cr({type:"string",format:"date",check:"string_format",...Ze(e)})}const Rr=Ee("ZodISOTime",((e,t)=>{bn.init(e,t),ii.init(e,t)}));const Ur=Ee("ZodISODuration",((e,t)=>{wn.init(e,t),ii.init(e,t)}));const Lr=(e,t)=>{nt.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,De,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,De,2)}},isEmpty:{get:()=>0===e.issues.length}})};Ee("ZodError",Lr);const qr=Ee("ZodError",Lr,{Parent:Error}),Gr=it(qr),zr=ot(qr),Fr=at(qr),Br=dt(qr),Wr=(ni=qr,(e,t,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return it(ni)(e,t,r)}),Yr=(e=>(t,n,r)=>it(e)(t,n,r))(qr),Zr=(e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return ot(e)(t,n,i)})(qr),Vr=(e=>async(t,n,r)=>ot(e)(t,n,r))(qr),Hr=(e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return at(e)(t,n,i)})(qr),Kr=(e=>(t,n,r)=>at(e)(t,n,r))(qr),Jr=(e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return dt(e)(t,n,i)})(qr),Qr=(e=>async(t,n,r)=>dt(e)(t,n,r))(qr),Xr=Ee("ZodType",((e,t)=>(nn.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Re(t,{checks:[...t.checks??[],...n.map((e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e))]})),e.clone=(t,n)=>Ye(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e),e.parse=(t,n)=>Gr(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Fr(e,t,n),e.parseAsync=async(t,n)=>zr(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Br(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Wr(e,t,n),e.decode=(t,n)=>Yr(e,t,n),e.encodeAsync=async(t,n)=>Zr(e,t,n),e.decodeAsync=async(t,n)=>Vr(e,t,n),e.safeEncode=(t,n)=>Hr(e,t,n),e.safeDecode=(t,n)=>Kr(e,t,n),e.safeEncodeAsync=async(t,n)=>Jr(e,t,n),e.safeDecodeAsync=async(t,n)=>Qr(e,t,n),e.refine=(t,n)=>e.check(function(e,t={}){return function(e,t,n){return new $o({type:"custom",check:"custom",fn:t,...Ze(n)})}(0,e,t)}(t,n)),e.superRefine=t=>e.check(function(e){return function(e){let t=function(e){let t=new Rt({check:"custom",...Ze(void 0)});return t._zod.check=e,t}((n=>(n.addIssue=e=>{if("string"==typeof e)n.issues.push(et(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(et(r))}},e(n.value,n))));return t}(e)}(t)),e.overwrite=t=>e.check(Mr(t)),e.optional=()=>uo(e),e.nullable=()=>po(e),e.nullish=()=>uo(po(e)),e.nonoptional=t=>function(e,t){return new ho({type:"nonoptional",innerType:e,...Ze(t)})}(e,t),e.array=()=>Yi(e),e.or=t=>Ki([e,t]),e.and=t=>function(e,t){return new Xi({type:"intersection",left:e,right:t})}(e,t),e.transform=t=>yo(e,so(t)),e.default=t=>function(e,t){return new mo({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():Fe(t)}})}(e,t),e.prefault=t=>function(e,t){return new fo({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():Fe(t)}})}(e,t),e.catch=t=>function(e,t){return new vo({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}(e,t),e.pipe=t=>yo(e,t),e.readonly=()=>function(e){return new bo({type:"readonly",innerType:e})}(e),e.describe=t=>{let n=e.clone();return wr.add(n,{description:t}),n},Object.defineProperty(e,"description",{get:()=>wr.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return wr.get(e);let n=e.clone();return wr.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e))),ei=Ee("_ZodString",((e,t)=>{rn.init(e,t),Xr.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 Zt({check:"string_format",format:"regex",...Ze(t),pattern:e})}(...t)),e.includes=(...t)=>e.check(function(e,t){return new Kt({check:"string_format",format:"includes",...Ze(t),includes:e})}(...t)),e.startsWith=(...t)=>e.check(function(e,t){return new Jt({check:"string_format",format:"starts_with",...Ze(t),prefix:e})}(...t)),e.endsWith=(...t)=>e.check(function(e,t){return new Qt({check:"string_format",format:"ends_with",...Ze(t),suffix:e})}(...t)),e.min=(...t)=>e.check(Dr(...t)),e.max=(...t)=>e.check(_r(...t)),e.length=(...t)=>e.check(Sr(...t)),e.nonempty=(...t)=>e.check(Dr(1,...t)),e.lowercase=t=>e.check(function(e){return new Vt({check:"string_format",format:"lowercase",...Ze(e)})}(t)),e.uppercase=t=>e.check(function(e){return new Ht({check:"string_format",format:"uppercase",...Ze(e)})}(t)),e.trim=()=>e.check(Mr((e=>e.trim()))),e.normalize=(...t)=>e.check(function(e){return Mr((t=>t.normalize(e)))}(...t)),e.toLowerCase=()=>e.check(Mr((e=>e.toLowerCase()))),e.toUpperCase=()=>e.check(Mr((e=>e.toUpperCase()))),e.slugify=()=>e.check(Mr((e=>function(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}(e))))})),ti=Ee("ZodString",((e,t)=>{rn.init(e,t),ei.init(e,t),e.email=t=>e.check($r(oi,t)),e.url=t=>e.check(Ir(ci,t)),e.jwt=t=>e.check(function(e,t){return new Ei({type:"string",format:"jwt",check:"string_format",abort:!1,...Ze(t)})}(0,t)),e.emoji=t=>e.check(function(e,t){return new li({type:"string",format:"emoji",check:"string_format",abort:!1,...Ze(t)})}(0,t)),e.guid=t=>e.check(kr(si,t)),e.uuid=t=>e.check(function(e,t){return new di({type:"string",format:"uuid",check:"string_format",abort:!1,...Ze(t)})}(0,t)),e.uuidv4=t=>e.check(function(e,t){return new di({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ze(t)})}(0,t)),e.uuidv6=t=>e.check(function(e,t){return new di({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ze(t)})}(0,t)),e.uuidv7=t=>e.check(function(e,t){return new di({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ze(t)})}(0,t)),e.nanoid=t=>e.check(function(e,t){return new pi({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ze(t)})}(0,t)),e.guid=t=>e.check(kr(si,t)),e.cuid=t=>e.check(function(e,t){return new mi({type:"string",format:"cuid",check:"string_format",abort:!1,...Ze(t)})}(0,t)),e.cuid2=t=>e.check(function(e,t){return new fi({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ze(t)})}(0,t)),e.ulid=t=>e.check(function(e,t){return new hi({type:"string",format:"ulid",check:"string_format",abort:!1,...Ze(t)})}(0,t)),e.base64=t=>e.check(function(e,t){return new ki({type:"string",format:"base64",check:"string_format",abort:!1,...Ze(t)})}(0,t)),e.base64url=t=>e.check(function(e,t){return new Ii({type:"string",format:"base64url",check:"string_format",abort:!1,...Ze(t)})}(0,t)),e.xid=t=>e.check(function(e,t){return new vi({type:"string",format:"xid",check:"string_format",abort:!1,...Ze(t)})}(0,t)),e.ksuid=t=>e.check(function(e,t){return new gi({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ze(t)})}(0,t)),e.ipv4=t=>e.check(function(e,t){return new yi({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ze(t)})}(0,t)),e.ipv6=t=>e.check(function(e,t){return new bi({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ze(t)})}(0,t)),e.cidrv4=t=>e.check(function(e,t){return new wi({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ze(t)})}(0,t)),e.cidrv6=t=>e.check(function(e,t){return new $i({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ze(t)})}(0,t)),e.e164=t=>e.check(function(e,t){return new xi({type:"string",format:"e164",check:"string_format",abort:!1,...Ze(t)})}(0,t)),e.datetime=t=>e.check(jr(t)),e.date=t=>e.check(Nr(t)),e.time=t=>e.check(function(e){return new Rr({type:"string",format:"time",check:"string_format",precision:null,...Ze(e)})}(t)),e.duration=t=>e.check(function(e){return new Ur({type:"string",format:"duration",check:"string_format",...Ze(e)})}(t))}));var ni;function ri(e){return new ti({type:"string",...Ze(e)})}const ii=Ee("ZodStringFormat",((e,t)=>{on.init(e,t),ei.init(e,t)})),oi=Ee("ZodEmail",((e,t)=>{dn.init(e,t),ii.init(e,t)}));function ai(e){return $r(oi,e)}const si=Ee("ZodGUID",((e,t)=>{an.init(e,t),ii.init(e,t)})),di=Ee("ZodUUID",((e,t)=>{sn.init(e,t),ii.init(e,t)})),ci=Ee("ZodURL",((e,t)=>{cn.init(e,t),ii.init(e,t)}));function ui(e){return Ir(ci,e)}const li=Ee("ZodEmoji",((e,t)=>{un.init(e,t),ii.init(e,t)})),pi=Ee("ZodNanoID",((e,t)=>{ln.init(e,t),ii.init(e,t)})),mi=Ee("ZodCUID",((e,t)=>{pn.init(e,t),ii.init(e,t)})),fi=Ee("ZodCUID2",((e,t)=>{mn.init(e,t),ii.init(e,t)})),hi=Ee("ZodULID",((e,t)=>{fn.init(e,t),ii.init(e,t)})),vi=Ee("ZodXID",((e,t)=>{hn.init(e,t),ii.init(e,t)})),gi=Ee("ZodKSUID",((e,t)=>{vn.init(e,t),ii.init(e,t)})),yi=Ee("ZodIPv4",((e,t)=>{$n.init(e,t),ii.init(e,t)})),bi=Ee("ZodIPv6",((e,t)=>{kn.init(e,t),ii.init(e,t)})),wi=Ee("ZodCIDRv4",((e,t)=>{In.init(e,t),ii.init(e,t)})),$i=Ee("ZodCIDRv6",((e,t)=>{xn.init(e,t),ii.init(e,t)})),ki=Ee("ZodBase64",((e,t)=>{An.init(e,t),ii.init(e,t)})),Ii=Ee("ZodBase64URL",((e,t)=>{Tn.init(e,t),ii.init(e,t)})),xi=Ee("ZodE164",((e,t)=>{On.init(e,t),ii.init(e,t)})),Ei=Ee("ZodJWT",((e,t)=>{_n.init(e,t),ii.init(e,t)})),Ai=Ee("ZodNumber",((e,t)=>{Dn.init(e,t),Xr.init(e,t),e.gt=(t,n)=>e.check(Ar(t,n)),e.gte=(t,n)=>e.check(Tr(t,n)),e.min=(t,n)=>e.check(Tr(t,n)),e.lt=(t,n)=>e.check(xr(t,n)),e.lte=(t,n)=>e.check(Er(t,n)),e.max=(t,n)=>e.check(Er(t,n)),e.int=t=>e.check(_i(t)),e.safe=t=>e.check(_i(t)),e.positive=t=>e.check(Ar(0,t)),e.nonnegative=t=>e.check(Tr(0,t)),e.negative=t=>e.check(xr(0,t)),e.nonpositive=t=>e.check(Er(0,t)),e.multipleOf=(t,n)=>e.check(Or(t,n)),e.step=(t,n)=>e.check(Or(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 Ti(e){return new Ai({type:"number",checks:[],...Ze(e)})}const Oi=Ee("ZodNumberFormat",((e,t)=>{Sn.init(e,t),Ai.init(e,t)}));function _i(e){return new Oi({type:"number",check:"number_format",abort:!1,format:"safeint",...Ze(e)})}const Di=Ee("ZodBoolean",((e,t)=>{Mn.init(e,t),Xr.init(e,t)}));function Si(e){return new Di({type:"boolean",...Ze(e)})}const Mi=Ee("ZodUndefined",((e,t)=>{Pn.init(e,t),Xr.init(e,t)}));function Pi(e){return new Mi({type:"undefined",...Ze(e)})}const ji=Ee("ZodNull",((e,t)=>{jn.init(e,t),Xr.init(e,t)}));function Ci(e){return new ji({type:"null",...Ze(e)})}const Ni=Ee("ZodAny",((e,t)=>{Cn.init(e,t),Xr.init(e,t)})),Ri=Ee("ZodUnknown",((e,t)=>{Nn.init(e,t),Xr.init(e,t)}));function Ui(){return new Ri({type:"unknown"})}const Li=Ee("ZodNever",((e,t)=>{Rn.init(e,t),Xr.init(e,t)}));function qi(e){return new Li({type:"never",...Ze(e)})}const Gi=Ee("ZodVoid",((e,t)=>{Un.init(e,t),Xr.init(e,t)}));function zi(e){return new Gi({type:"void",...Ze(e)})}const Fi=Ee("ZodDate",((e,t)=>{Ln.init(e,t),Xr.init(e,t),e.min=(t,n)=>e.check(Tr(t,n)),e.max=(t,n)=>e.check(Er(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 Bi(e){return new Fi({type:"date",...Ze(e)})}const Wi=Ee("ZodArray",((e,t)=>{Gn.init(e,t),Xr.init(e,t),e.element=t.element,e.min=(t,n)=>e.check(Dr(t,n)),e.nonempty=t=>e.check(Dr(1,t)),e.max=(t,n)=>e.check(_r(t,n)),e.length=(t,n)=>e.check(Sr(t,n)),e.unwrap=()=>e.element}));function Yi(e,t){return function(e,t,n){return new Wi({type:"array",element:t,...Ze(n)})}(0,e,t)}const Zi=Ee("ZodObject",((e,t)=>{Yn.init(e,t),Xr.init(e,t),Ce(e,"shape",(()=>t.shape)),e.keyof=()=>ro(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ui()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ui()}),e.strict=()=>e.clone({...e._zod.def,catchall:qi()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>function(e,t){if(!ze(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 Ye(e,Re(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Ne(this,"shape",n),n},checks:[]}))}(e,t),e.safeExtend=t=>function(e,t){if(!ze(t))throw Error("Invalid input to safeExtend: expected a plain object");return Ye(e,{...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return Ne(this,"shape",n),n},checks:e._zod.def.checks})}(e,t),e.merge=t=>function(e,t){return Ye(e,Re(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Ne(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 Ye(e,Re(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 Ne(this,"shape",e),e},checks:[]}))}(e,t),e.omit=t=>function(e,t){let n=e._zod.def;return Ye(e,Re(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 Ne(this,"shape",r),r},checks:[]}))}(e,t),e.partial=(...t)=>function(e,t,n){return Ye(t,Re(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 Ne(this,"shape",i),i},checks:[]}))}(co,e,t[0]),e.required=(...t)=>function(e,t,n){return Ye(t,Re(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 Ne(this,"shape",i),i},checks:[]}))}(ho,e,t[0])}));function Vi(e,t){return new Zi({type:"object",shape:e??{},...Ze(t)})}const Hi=Ee("ZodUnion",((e,t)=>{Vn.init(e,t),Xr.init(e,t),e.options=t.options}));function Ki(e,t){return new Hi({type:"union",options:e,...Ze(t)})}const Ji=Ee("ZodDiscriminatedUnion",((e,t)=>{Hi.init(e,t),Hn.init(e,t)}));function Qi(e,t,n){return new Ji({type:"union",options:t,discriminator:e,...Ze(n)})}const Xi=Ee("ZodIntersection",((e,t)=>{Kn.init(e,t),Xr.init(e,t)})),eo=Ee("ZodRecord",((e,t)=>{Xn.init(e,t),Xr.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType}));function to(e,t,n){return new eo({type:"record",keyType:e,valueType:t,...Ze(n)})}const no=Ee("ZodEnum",((e,t)=>{er.init(e,t),Xr.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 no({...t,checks:[],...Ze(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 no({...t,checks:[],...Ze(r),entries:i})}}));function ro(e,t){return new no({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map((e=>[e,e]))):e,...Ze(t)})}const io=Ee("ZodLiteral",((e,t)=>{tr.init(e,t),Xr.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 oo(e,t){return new io({type:"literal",values:Array.isArray(e)?e:[e],...Ze(t)})}const ao=Ee("ZodTransform",((e,t)=>{nr.init(e,t),Xr.init(e,t),e._zod.parse=(n,r)=>{if("backward"===r.direction)throw new Te(e.constructor.name);n.addIssue=r=>{if("string"==typeof r)n.issues.push(et(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(et(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then((e=>(n.value=e,n))):(n.value=i,n)}}));function so(e){return new ao({type:"transform",transform:e})}const co=Ee("ZodOptional",((e,t)=>{ir.init(e,t),Xr.init(e,t),e.unwrap=()=>e._zod.def.innerType}));function uo(e){return new co({type:"optional",innerType:e})}const lo=Ee("ZodNullable",((e,t)=>{or.init(e,t),Xr.init(e,t),e.unwrap=()=>e._zod.def.innerType}));function po(e){return new lo({type:"nullable",innerType:e})}const mo=Ee("ZodDefault",((e,t)=>{ar.init(e,t),Xr.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap})),fo=Ee("ZodPrefault",((e,t)=>{dr.init(e,t),Xr.init(e,t),e.unwrap=()=>e._zod.def.innerType})),ho=Ee("ZodNonOptional",((e,t)=>{cr.init(e,t),Xr.init(e,t),e.unwrap=()=>e._zod.def.innerType})),vo=Ee("ZodCatch",((e,t)=>{lr.init(e,t),Xr.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap})),go=Ee("ZodPipe",((e,t)=>{pr.init(e,t),Xr.init(e,t),e.in=t.in,e.out=t.out}));function yo(e,t){return new go({type:"pipe",in:e,out:t})}const bo=Ee("ZodReadonly",((e,t)=>{fr.init(e,t),Xr.init(e,t),e.unwrap=()=>e._zod.def.innerType})),wo=Ee("ZodLazy",((e,t)=>{vr.init(e,t),Xr.init(e,t),e.unwrap=()=>e._zod.def.getter()})),$o=Ee("ZodCustom",((e,t)=>{gr.init(e,t),Xr.init(e,t)}));function ko(e){return new Ai({type:"number",coerce:!0,checks:[],...Ze(e)})}function Io(e){return new Di({type:"boolean",coerce:!0,...Ze(e)})}const xo=ro(["PENDING","APPROVED","REJECTED"]).meta({description:"Approval status. PENDING: awaiting review, APPROVED: approved for operation, REJECTED: rejected and cannot operate"}),Eo=ro("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"}),Ao=ro([{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))),To=Yi(Ao).max(10).optional().meta({description:"Event characteristics like vibe, venue type, and amenities (up to 10 categories)",examples:[["Day Party","Open Air","Free Entry"]]}),Oo=ro([{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))),_o=Yi(Oo).min(1).max(5).meta({description:"Music genres for the event (1-5 genres)",examples:[["Tech House","Melodic Techno"]]});function Do(e,t){return ri().regex(RegExp(`^${e}_[0-9a-z]{26}$`),`Must be a valid ${t} ID`).describe(`Unique ${t} identifier`)}Yi(Oo).max(5).optional().meta({description:"Music genres for the event (up to 5 genres)",examples:[["Tech House","Melodic Techno"]]});const So=Do("tem","team"),Mo=Do("evt","event"),Po=Do("ven","venue"),jo=Do("loc","location"),Co=Do("usr","user"),No=Do("ord","order"),Ro=Do("tkt","ticket"),Uo=Do("pmt","promoter");Do("cpn","coupon"),Do("cod","coupon code");const Lo=Do("cus","customer"),qo=Do("adm","admission"),Go=Do("sct","section");Do("ben","beneficiary");const zo=Do("pyt","payout"),Fo=Do("mbr","team member"),Bo=Do("inv","team invite"),Wo=Do("ecl","event collaborator"),Yo=Do("psc","permission scope"),Zo=Do("prl","permission role"),Vo=Do("ntf","notification"),Ho=Vi({src:ui().meta({examples:["https://assets.session.services/my-image.jpg"]}),alt:ri().meta({examples:["My Image"]}),width:Ti().meta({examples:[1080]}),height:Ti().meta({examples:[1080]})});function Ko(){return Ti().min(-1)}function Jo(){return Ti().min(-1).refine((e=>0!==e),{message:"Limit cannot be 0. Use -1 for unlimited or a positive number for a specific limit"})}const Qo=Ki([ri(),Ti(),Si(),Ci()]),Xo=new wo({type:"lazy",getter:()=>Ki([Qo,Yi(Xo),to(ri(),Xo)])}),ea=to(ri().min(1).max(40).meta({description:"Metadata key. Must be 1-40 characters"}),ri().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."}),ta=ri().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 na(e){return ko().int().min(1).max(100).prefault(20).meta({examples:[20],description:`Maximum number of ${e} to return per request (1-100, default: 20)`})}const ra=ri().meta({description:"Opaque cursor for pagination. Use the cursor from the previous response to continue fetching results."}),ia="[a-z][a-z0-9-]*",oa=RegExp(`^-?(?:\\*|(?:${ia})(?:\\.${ia})*(?:\\.\\*|\\.bypass|\\.[a-z]{3}_[0-9a-z]{26})?)$`),aa=/^[a-z]{3}_[0-9a-z]{26}$/,sa=["tem","pmt","ven","evt","ord","tkt","cpn"],da="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(","),ca=new Set(da),ua=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"]),la={"tenant.masquerade":[],"team.read":["tem"],"team.write":["tem"],"team.member.read":["tem"],"team.member.write":["tem"],"team.invite.read":["tem"],"team.invite.write":["tem"],"team.gateway.read":["tem","pmt"],"team.gateway.connect":["tem"],"team.gateway.write":["tem","pmt"],"team.performance.read":["tem","pmt","ven","evt"],"cms.read":[],"cms.write":[],"role.read":["tem"],"role.write":["tem"],"event.read":["tem","pmt","ven","evt"],"event.write":["tem","pmt","ven","evt"],"event.performance.read":["tem","pmt","ven","evt"],"promoter.read":["tem","pmt","evt"],"promoter.write":["tem","pmt","evt"],"promoter.performance.read":["tem","pmt","evt"],"venue.read":["tem","ven","evt"],"venue.write":["tem","ven","evt"],"order.read":["tem","pmt","ven","evt","ord"],"order.write":["tem","pmt","ven","evt","ord"],"ticket.read":["tem","pmt","ven","evt","ord","tkt"],"ticket.write":["tem","pmt","ven","evt","ord","tkt"],"ticket.scan":["tem","pmt","ven","evt","ord","tkt"],"coupon.read":["tem","pmt","evt","cpn"],"coupon.write":["tem","pmt","evt","cpn"],"beneficiary.read":["tem","pmt"],"beneficiary.write":["tem","pmt"],"payout.read":["tem","pmt","ven"],"payout.write":["tem","pmt"],"*":[]};function pa(e){let[t]=e.split("_");return!!t&&sa.includes(t)}function ma(e,t){return!(!ca.has(e)||!function(e){return aa.test(e)&&pa(e)}(t))&&function(e,t){let n=function(e){let[t]=e.split("_");return t&&pa(e)?t:null}(t);return!!n&&(la[e]??[]).includes(n)}(e,t)}const fa=[function(e){return ca.has(e)},function(e){return!!e.endsWith(".bypass")&&ca.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&&ma(t.base,t.resourceId)},function(e){if(!e.endsWith(".*"))return!1;let t=e.slice(0,-2);return ua.has(t)||ca.has(t)}],ha=ri().regex(oa,"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 fa.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"]}),va=Yi(ha).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"]]}),ga=va.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"]]}),ya=ri().length(16).meta({examples:[xe.signature],description:"HMAC signature for secure access (16 characters, base64url encoded)"}),ba=Vi({promoterIds:Yi(Uo).nullable().meta({description:"Null means team-wide promoter access. An array means access is restricted to those promoters."})}).meta({description:"Promoter access assigned to a team member or invite."}),wa=Vi({promoterIds:Yi(Uo).min(1).nullable().meta({description:"Null grants team-wide promoter access. A non-empty array restricts access to those promoters."})}).meta({description:"Promoter access assignment input."}),$a=ro(["SALE_ENDED","SOLD_OUT","DOOR"]);function ka(e){return Vi({base:_i().min(0).meta({examples:[xe.Admission.price.base],description:"Base cost of a ticket for this admission type before fees, in cents"}),booking:_i().min(0).meta({examples:[xe.Admission.price.booking],description:e.booking}),currency:Eo.meta({examples:[xe.Admission.price.currency],description:e.currency})}).meta({examples:[xe.Admission.price],description:e.price})}const Ia=Vi({id:qo.readonly().meta({description:"A unique identifier for this admission",examples:[xe.Admission.id]}),name:ri().meta({description:"The display name of the admission type shown to customers",examples:[xe.Admission.name]}),subtitle:ri().max(100).optional().meta({description:"Short supporting text shown below the admission name",examples:[xe.Admission.subtitle]}),description:ri().max(500).optional().meta({description:"Detailed information shown when customers expand 'More info'",examples:[xe.Admission.description]}),capacity:Ko().prefault(-1).meta({examples:[xe.Admission.capacity],description:"Maximum number of tickets that can be sold for this admission type. A value of -1 indicates unlimited"}),limit:Jo().prefault(-1).meta({examples:[xe.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:Ti().min(-1).readonly().meta({examples:[xe.Admission.available],description:"Current number of tickets available for purchase, calculated as capacity minus sold minus reserved. A value of -1 indicates unlimited"}),sold:Ti().min(0).readonly().meta({examples:[xe.Admission.sold],description:"Total number of tickets of this admission type that have been purchased"}),reserved:Ti().min(0).readonly().meta({examples:[xe.Admission.reserved],description:"Number of tickets held for customers during checkout and not available to others"}),order:Ti().min(0).meta({examples:[xe.Admission.order],description:"Determines the position in which this admission type appears when listed. Lower values appear first"}),createdAt:jr().readonly().meta({examples:[xe.Admission.createdAt],description:"Timestamp in ISO 8601 format when this admission type was created"}),updatedAt:jr().readonly().meta({examples:[xe.Admission.updatedAt],description:"Timestamp in ISO 8601 format when this admission type was last updated"}),entryStartsAt:ta.meta({examples:[xe.Admission.entryStartsAt],description:"Wall clock time from which tickets of this type are valid for entry (no timezone)"}),entryEndsAt:ta.meta({examples:[xe.Admission.entryEndsAt],description:"Wall clock time until which tickets of this type are valid for entry (no timezone)"}),saleStartsAt:ta.meta({examples:[xe.Admission.saleStartsAt],description:"Wall clock time when ticket sales for this admission type begin (no timezone)"}),saleEndsAt:ta.meta({examples:[xe.Admission.saleEndsAt],description:"Wall clock time when ticket sales for this admission type end (no timezone)"}),saleEndsBehavior:$a.default("SALE_ENDED").meta({examples:[xe.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:ro(["ALWAYS","HIDDEN"]).prefault("ALWAYS").meta({examples:["ALWAYS"],description:"Controls whether this admission type is shown publicly or only revealed by a scoped coupon."}),sectionId:Go.nullable().optional().meta({examples:[xe.Admission.sectionId],description:"Identifier of the section this admission type belongs to, if any"}),teamId:So.meta({description:"Team that owns this admission. Denormalized for efficient queries."}),promoterId:Uo.meta({examples:[xe.Admission.promoterId],description:"Identifier of the promoter responsible for this admission type"}),eventId:Mo.meta({examples:[xe.Admission.eventId],description:"Identifier of the event to which this admission type is linked"}),eventSlug:ri().meta({examples:[xe.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:[xe.Admission]}),xa=Ia.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"}),Ea=Ia.pick({id:!0}).extend({eventId:Ia.shape.eventId.meta({examples:[xe.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"}),Aa=Ia.pick({id:!0}).extend({eventId:Mo.meta({examples:[xe.Admission.eventId],description:"Identifier of the event to which this admission type belongs"})}).meta({description:"Schema for retrieving a specific admission type"}),Ta=Vi({eventId:ri().meta({examples:[xe.Admission.eventId],description:"Identifier of the event to list admission types for"}),sectionId:ri().optional().meta({examples:[xe.Admission.sectionId],description:"Filter admission types by section identifier. If provided, only admissions for this section are returned"}),query:ri().optional().meta({examples:["Early Bird"],description:"Optional search query to filter admissions by name. When provided, search-backed pagination is used."}),limit:na("admission types").optional(),cursor:ri().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 Oa(e,t){return Vi({[t]:Yi(e).meta({description:`Array of ${t} for the current result set`}),before:ri().nullish().meta({examples:["eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNqIn19"],description:"Cursor for navigating backward in the result set. Omitted when there are no prior results."}),after:ri().nullish().meta({examples:["eyJ2ZXJzaW9uIjoxLCJpbnRlbnQiOnsic291cmNlIjoiZGVtbyJ9LCJwb3MiOnsicHJpbWFyeUtleSI6InBybV8wMXM4NTNkIn19"],description:"Cursor for navigating forward in the result set. Omitted when there are no subsequent results."}),limit:ko().min(1).meta({examples:[20],description:"Maximum number of items to return in each result set"})})}const _a=Oa(Ia,"admissions"),Da=Ia.pick({eventId:!0}).extend({message:ri().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"}),Sa=Ia.pick({eventId:!0}).extend({base:_i().min(0).meta({examples:[xe.Admission.price.base],description:"Base cost of a ticket for this admission type before fees, in cents"}),currency:Eo.meta({examples:[xe.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"}),Ma=Vi({quote:Da}),Pa=Vi({admission:Ia}),ja=Vi({id:Ia.shape.id,eventId:Ia.shape.eventId,name:Ia.shape.name.optional(),subtitle:Ia.shape.subtitle,description:Ia.shape.description,capacity:Ko().optional(),limit:Jo().optional(),order:Ia.shape.order.optional(),entryStartsAt:Ia.shape.entryStartsAt.optional(),entryEndsAt:Ia.shape.entryEndsAt.optional(),saleStartsAt:Ia.shape.saleStartsAt.optional(),saleEndsAt:Ia.shape.saleEndsAt.optional(),saleEndsBehavior:$a.optional(),price:Ia.shape.price.optional(),visibility:ro(["ALWAYS","HIDDEN"]).optional(),sectionId:Go.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."}),Ca=Vi({eventId:Mo.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:[xe.Event.id]}),description:ri().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:ri().optional().meta({description:"Optional event name for additional context",examples:["Warehouse Sessions Vol. 5"]}),imageUrl:ui().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"}),Na=Vi({genres:Yi(Oo).max(5).meta({description:"Suggested music genres based on event description and artwork",examples:[["Tech House","Melodic Techno"]]}),categories:Yi(Ao).max(10).meta({description:"Suggested event categories based on description and artwork",examples:[["Warehouse","Underground","BYO"]]}),confidence:Ti().min(0).max(1).meta({description:"AI confidence score for the suggestions (0-1)",examples:[.85]}),startDate:ri().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:ri().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:ri().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:ui().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"});Vi({estimatedInputTokens:Ti().int().meta({description:"Estimated input tokens for the request",examples:[500]}),estimatedOutputTokens:Ti().int().meta({description:"Estimated output tokens for the response",examples:[100]}),estimatedCostUsd:Ti().meta({description:"Estimated cost in USD",examples:[.002]}),includesImage:Si().meta({description:"Whether the estimate includes image analysis",examples:[!0]})}).meta({description:"Cost estimate for an AI tag suggestion request"});for(var Ra=/^(?:[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,Ua=[],La=0;La<256;++La)Ua.push((La+256).toString(16).slice(1));function qa(e,t=0){return(Ua[e[t+0]]+Ua[e[t+1]]+Ua[e[t+2]]+Ua[e[t+3]]+"-"+Ua[e[t+4]]+Ua[e[t+5]]+"-"+Ua[e[t+6]]+Ua[e[t+7]]+"-"+Ua[e[t+8]]+Ua[e[t+9]]+"-"+Ua[e[t+10]]+Ua[e[t+11]]+Ua[e[t+12]]+Ua[e[t+13]]+Ua[e[t+14]]+Ua[e[t+15]]).toLowerCase()}var Ga,za=function(e,t=0){var n=qa(e,t);if(!function(e){return"string"==typeof e&&Ra.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},Fa=new Uint8Array(16);function Ba(){if(!Ga&&!(Ga=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 Ga(Fa)}var Wa=null,Ya=null,Za=0,Va=function(e,t,n){e||={};var r=t&&n||0,i=t||new Uint8Array(16),o=e.random||(e.rng||Ba)(),a=void 0===e.msecs?Date.now():e.msecs,s=void 0===e.seq?null:e.seq,d=Ya,c=Wa;return a>Za&&void 0===e.msecs&&(Za=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>Za&&null===s?++c>524287&&(c=0,++d>4095&&(d=0,Za++)):Za=a,Ya=d,Wa=c,i[r++]=Za/1099511627776&255,i[r++]=Za/4294967296&255,i[r++]=Za/16777216&255,i[r++]=Za/65536&255,i[r++]=Za/256&255,i[r++]=255&Za,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||qa(i)},Ha="0123456789abcdefghjkmnpqrstvwxyz",Ka=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 Ja(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]=Ha[(224&e[0])>>5],t[1]=Ha[31&e[0]],t[2]=Ha[(248&e[1])>>3],t[3]=Ha[(7&e[1])<<2|(192&e[2])>>6],t[4]=Ha[(62&e[2])>>1],t[5]=Ha[(1&e[2])<<4|(240&e[3])>>4],t[6]=Ha[(15&e[3])<<1|(128&e[4])>>7],t[7]=Ha[(124&e[4])>>2],t[8]=Ha[(3&e[4])<<3|(224&e[5])>>5],t[9]=Ha[31&e[5]],t[10]=Ha[(248&e[6])>>3],t[11]=Ha[(7&e[6])<<2|(192&e[7])>>6],t[12]=Ha[(62&e[7])>>1],t[13]=Ha[(1&e[7])<<4|(240&e[8])>>4],t[14]=Ha[(15&e[8])<<1|(128&e[9])>>7],t[15]=Ha[(124&e[9])>>2],t[16]=Ha[(3&e[9])<<3|(224&e[10])>>5],t[17]=Ha[31&e[10]],t[18]=Ha[(248&e[11])>>3],t[19]=Ha[(7&e[11])<<2|(192&e[12])>>6],t[20]=Ha[(62&e[12])>>1],t[21]=Ha[(1&e[12])<<4|(240&e[13])>>4],t[22]=Ha[(15&e[13])<<1|(128&e[14])>>7],t[23]=Ha[(124&e[14])>>2],t[24]=Ha[(3&e[14])<<3|(224&e[15])>>5],t[25]=Ha[31&e[15]],t.join("")}function Qa(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===Ka[t[0]]||255===Ka[t[1]]||255===Ka[t[2]]||255===Ka[t[3]]||255===Ka[t[4]]||255===Ka[t[5]]||255===Ka[t[6]]||255===Ka[t[7]]||255===Ka[t[8]]||255===Ka[t[9]]||255===Ka[t[10]]||255===Ka[t[11]]||255===Ka[t[12]]||255===Ka[t[13]]||255===Ka[t[14]]||255===Ka[t[15]]||255===Ka[t[16]]||255===Ka[t[17]]||255===Ka[t[18]]||255===Ka[t[19]]||255===Ka[t[20]]||255===Ka[t[21]]||255===Ka[t[22]]||255===Ka[t[23]]||255===Ka[t[24]]||255===Ka[t[25]])throw Error("Invalid base32 character");let n=new Uint8Array(16);return n[0]=Ka[t[0]]<<5|Ka[t[1]],n[1]=Ka[t[2]]<<3|Ka[t[3]]>>2,n[2]=(3&Ka[t[3]])<<6|Ka[t[4]]<<1|Ka[t[5]]>>4,n[3]=(15&Ka[t[5]])<<4|Ka[t[6]]>>1,n[4]=(1&Ka[t[6]])<<7|Ka[t[7]]<<2|Ka[t[8]]>>3,n[5]=(7&Ka[t[8]])<<5|Ka[t[9]],n[6]=Ka[t[10]]<<3|Ka[t[11]]>>2,n[7]=(3&Ka[t[11]])<<6|Ka[t[12]]<<1|Ka[t[13]]>>4,n[8]=(15&Ka[t[13]])<<4|Ka[t[14]]>>1,n[9]=(1&Ka[t[14]])<<7|Ka[t[15]]<<2|Ka[t[16]]>>3,n[10]=(7&Ka[t[16]])<<5|Ka[t[17]],n[11]=Ka[t[18]]<<3|Ka[t[19]]>>2,n[12]=(3&Ka[t[19]])<<6|Ka[t[20]]<<1|Ka[t[21]]>>4,n[13]=(15&Ka[t[21]])<<4|Ka[t[22]]>>1,n[14]=(1&Ka[t[22]])<<7|Ka[t[23]]<<2|Ka[t[24]]>>3,n[15]=(7&Ka[t[24]])<<5|Ka[t[25]],n}var Xa=class extends Error{constructor(e){super(`Invalid prefix "${e}". Must be at most 63 ASCII letters [a-z_]`),this.name="InvalidPrefixError"}},es=class extends Error{constructor(e,t){super(`Invalid TypeId. Prefix mismatch. Expected ${e}, got ${t}`),this.name="PrefixMismatchError"}},ts=class extends Error{constructor(e){super(`Invalid TypeId. Prefix cannot be empty when there's a separator: ${e}`),this.name="EmptyPrefixError"}},ns=class extends Error{constructor(e){super(`Invalid length. Suffix should have 26 characters, got ${e}`),this.name="InvalidSuffixLengthError"}},rs=class extends Error{constructor(e){super(`Invalid suffix. First character "${e}" must be in the range [0-7]`),this.name="InvalidSuffixCharacterError"}},is=class extends Error{constructor(e,t){super(`Cannot convert TypeID of type ${e} to type ${t}`),this.name="TypeIDConversionError"}};function os(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 Xa(e);let n;if(t)n=t;else{let e=new Uint8Array(16);Va(void 0,e),n=Ja(e)}if(26!==n.length)throw new ns(n.length);if(n[0]>"7")throw new rs(n[0]);return Qa(n),""===e?n:`${e}_${n}`}function as(e){let t=e.lastIndexOf("_");return-1===t?"":e.substring(0,t)}function ss(e){let t=e.lastIndexOf("_");return-1===t?e:e.substring(t+1)}var ds=class{constructor(e,t=""){this.prefix=e,this.suffix=t;let n=os(e,t);this.prefix=as(n),this.suffix=ss(n)}getType(){return this.prefix}getSuffix(){return this.suffix}asType(e){let t=this;if(t.prefix!==e)throw new is(t.prefix,e);return t}toUUIDBytes(){return Qa(this.suffix)}toUUID(){return za(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 ts(e);if(!r)throw new ns(0);if(t&&n!==t)throw new es(t,n);return os(n,r)}(e,t);return new ds(as(n),ss(n))}static fromUUIDBytes(e,t){return new ds(e,Ja(t))}static fromUUID(e,t){return new ds(e,Ja(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 cs={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 us(e){return function(e="",t=""){return new ds(e,t)}(cs[e])}const ls="ses_sid",ps="ses_aid";function ms(){return us("session").toString()}function fs(){return us("anonymous").toString()}const hs=Nr().describe("Date (YYYY-MM-DD)"),vs=ri().min(1).max(128).optional().describe("IANA time zone for interpreting date ranges"),gs=Vi({startDate:hs.describe("Start date (YYYY-MM-DD)"),endDate:hs.describe("End date (YYYY-MM-DD)"),timeZone:vs}),ys={startDate:hs.optional().describe("Start date (YYYY-MM-DD)"),endDate:hs.optional().describe("End date (YYYY-MM-DD)"),timeZone:vs},bs=e=>!e.startDate&&!e.endDate||!(!e.startDate||!e.endDate);function ws(e){return Vi(e).extend(gs.shape)}function $s(e){return Vi({...e,...ys}).refine(bs,{message:"Both startDate and endDate must be provided together, or omit both for all-time data"})}Vi(ys).refine(bs,{message:"Both startDate and endDate must be provided together, or omit both for all-time data"});const ks=Vi({value:Ti().describe("Current period value"),previous:Ti().describe("Comparison period value"),change:Ti().describe("Percentage change from previous period"),changeType:ro(["increase","decrease","unchanged"]).describe("Direction of change")}),Is=Vi({eventId:ri().describe("Event identifier"),eventName:ri().describe("Event name"),ticketCount:Ti().describe("Number of tickets sold"),sharePercent:Ti().describe("Percentage of total tickets")}),xs=Vi({start:ri().describe("Period start date"),end:ri().describe("Period end date")}),Es=Vi({start:ri().describe("Comparison period start date"),end:ri().describe("Comparison period end date")}),As=ro(["HOUR","DAY","WEEK","MONTH"]),Ts=Vi({date:ri().describe("Date (YYYY-MM-DD)"),revenue:Ti().describe("Revenue in cents"),tickets:Ti().describe("Tickets sold")}),Os=Ts.extend({orders:Ti().describe("Orders placed")}),_s=Vi({revenue:Ti().describe("Total revenue for period in cents"),tickets:Ti().describe("Total tickets for period")}),Ds=_s.extend({orders:Ti().describe("Total orders for period")}),Ss=Vi({revenue:ks.describe("Total revenue in cents"),ticketsSold:ks.describe("Number of tickets sold"),averageOrderValue:ks.describe("Average order value in cents"),conversionRate:ks.describe("Overall conversion rate (%)"),activeEvents:ks.describe("Number of active events in period"),uniqueCustomers:ks.describe("Unique customers (estimated)"),orderCount:ks.describe("Number of orders placed"),pageViews:ks.describe("Total page views from tracking")}),Ms=Vi({events:Yi(Is),totalTickets:Ti().describe("Total tickets across all events")});function Ps(e,t){return ws({...Rs(e,t),currency:ri().optional().describe("Currency code for revenue metrics")})}function js(e){return Vi({meta:Vi({...e,currency:ri().describe("Primary currency code"),currencies:Yi(ri()).describe("All currencies with transactions"),dateRange:xs,comparisonRange:Es}),metrics:Ss})}function Cs(e,t){return ws({...Rs(e,t),granularity:As.optional().default("DAY").describe("Time granularity"),currency:ri().optional().describe("Currency filter")})}function Ns(e,t){return ws({...Rs(e,t),limit:Ti().optional().default(5).describe("Maximum number of events to return")})}function Rs(e,t){return{[e]:ri().describe(t)}}const Us=$s({eventId:ri().describe("Event identifier")}).meta({description:"Event performance summary request"}),Ls=Vi({meta:Vi({eventId:ri().describe("Event identifier"),eventName:ri().describe("Event name"),currency:ri().describe("Currency code (e.g., USD, EUR)"),dateRange:xs.optional().describe("Present only when startDate/endDate are provided"),comparisonRange:Es.optional().describe("Present only when startDate/endDate are provided")}),metrics:Vi({revenue:ks.describe("Total revenue in cents"),ticketsSold:ks.describe("Number of tickets sold"),orderCount:ks.describe("Number of orders placed"),averageOrderValue:ks.describe("Average order value in cents"),conversionRate:ks.describe("Conversion rate as percentage"),pageViews:ks.describe("Total page/product views"),uniqueVisitors:ks.describe("Unique visitors (estimated)"),checkoutStarted:ks.describe("Number of checkout started events (external link clicks for external events)")})}),qs=ws({eventId:ri().describe("Event identifier"),granularity:As.optional().default("DAY").describe("Time granularity for aggregation"),breakdown:ro(["TOTAL"]).optional().default("TOTAL").describe("Breakdown type (always TOTAL for performance)"),includeBreakdowns:Si().optional().default(!0).describe("Whether to include admission and section breakdowns in each time bucket")}),Gs=Vi({meta:Vi({eventId:ri(),eventName:ri().describe("Event name"),currency:ri().describe("Currency code"),dateRange:xs,granularity:As}),series:Yi(Vi({date:ri().describe("Date or timestamp"),tickets:Ti().describe("Tickets sold in period"),revenue:Ti().describe("Revenue in period (cents)"),admissions:Yi(Vi({id:ri(),name:ri(),quantity:Ti()})),sections:Yi(Vi({id:ri(),name:ri(),quantity:Ti()}))}))}),zs=ro(["HOUR","DAY","WEEK","MONTH"]).describe("Time granularity for aggregation"),Fs=ws({eventId:ri().describe("Event identifier"),granularity:zs.optional().default("DAY")}).meta({description:"Event performance time series request"}),Bs=Vi({meta:Vi({eventId:ri(),eventName:ri().describe("Event name"),currency:ri().describe("Currency code"),dateRange:xs,granularity:zs}),series:Yi(Vi({date:ri().describe("Date or timestamp"),revenue:Ti().describe("Net revenue in period (cents)"),tickets:Ti().describe("Tickets sold in period"),orders:Ti().describe("Completed orders in period"),pageViews:Ti().describe("Product/page views in period"),visitors:Ti().describe("Unique visitors in period (estimated)"),checkoutStarted:Ti().describe("Checkout started events in period"),convertedVisitors:Ti().describe("Unique visitors who completed an order in period"),eligibleVisitors:Ti().describe("Unique visitors eligible for conversion in period"),conversionRate:Ti().describe("Converted visitors divided by eligible visitors in period (%)")}))}),Ws=ws({eventId:ri().describe("Event identifier")}),Ys=Vi({meta:Vi({eventId:ri(),eventName:ri().describe("Event name"),currency:ri().describe("Currency code"),dateRange:xs}),totals:Vi({entered:Ti().describe("Total entered funnel (product viewed)"),completed:Ti().describe("Total completed (orders)"),overallConversionRate:Ti().describe("Overall conversion rate (%)"),totalDropped:Ti().describe("Total dropped off")}),stages:Yi(Vi({id:ri().describe("Funnel stage identifier"),name:ri().describe("Human-readable stage name"),count:Ti().describe("Number of events at this stage"),conversionRate:Ti().describe("Conversion rate from first stage (%)"),dropoffRate:Ti().describe("Dropoff rate from previous stage (%)")}))});Vi({meta:Vi({eventId:ri(),dimension:ri().describe("Dimension type"),dateRange:xs,limit:Ti().optional()}),data:Yi(Vi({name:ri().describe("Dimension value (e.g., campaign name)"),views:Ti().describe("Page/product views"),clicks:Ti().describe("Ticket link clicks").optional(),conversions:Ti().describe("Completed orders"),revenue:Ti().describe("Total revenue in cents"),conversionRate:Ti().describe("Conversion rate (%)"),share:Ti().describe("Percentage share of total").optional()})),totals:Vi({views:Ti(),conversions:Ti(),revenue:Ti()}).optional()});const Zs=ro(["HOUR","DAY","WEEK","MONTH"]),Vs=Vi({eventId:ri().describe("Event identifier"),eventName:ri().describe("Event name"),currency:ri().describe("Currency code (e.g., USD, EUR)"),dateRange:xs}),Hs=Vs.extend({limit:Ti().describe("Maximum number of results returned")}),Ks=ro(["MOBILE","DESKTOP","TABLET","Unknown"]),Js=ro(["revenue","tickets","orders","pageViews","visitors","conversion","clicks","clickRate"]).describe("Metric used to sort breakdown rows before limiting results");ws({eventId:ri(),granularity:Zs.optional()}),Vi({granularity:Zs,data:Yi(Vi({date:ri(),revenue:Ti(),ticketsSold:Ti()}))});const Qs=ws({eventId:ri(),limit:Ti().min(1).max(100).optional().default(10)}),Xs=Vi({meta:Hs,totals:Vi({uses:Ti().describe("Total coupon uses across all coupons"),revenue:Ti().describe("Total revenue from coupon-discounted orders (cents)")}),coupons:Yi(Vi({id:ri().describe("Coupon code identifier"),code:ri().describe("Coupon code"),uses:Ti().describe("Number of times this coupon was used"),revenue:Ti().describe("Revenue from this coupon (cents)"),discount:ri().describe("Discount amount or percentage"),share:Ti().describe("Share of total coupon uses (%)")})).describe("Coupons sorted by uses descending")}),ed=ws({eventId:ri(),limit:Ti().min(1).max(100).optional().default(10),sortBy:Js.optional().default("orders")}),td=Vi({data:Yi(Vi({campaign:ri(),views:Ti(),visitors:Ti(),clicks:Ti().optional(),orders:Ti(),tickets:Ti(),revenue:Ti(),conversionRate:Ti(),sharePercent:Ti()})),totalOrders:Ti(),totalTickets:Ti(),totalRevenue:Ti()}),nd=ws({eventId:ri(),limit:Ti().min(1).max(100).optional().default(10),sortBy:Js.optional().default("orders")}),rd=Vi({meta:Hs,totals:Vi({views:Ti().describe("Total views across all mediums"),visitors:Ti().describe("Total unique visitors across all mediums"),orders:Ti().describe("Total orders across all mediums"),tickets:Ti().describe("Total tickets across all mediums"),revenue:Ti().describe("Total revenue across all mediums (cents)")}),mediums:Yi(Vi({id:ri().describe("Medium identifier (e.g., 'social', 'email')"),name:ri().describe("Medium name"),views:Ti().describe("Views from this medium"),visitors:Ti().describe("Unique visitors from this medium"),clicks:Ti().optional().describe("Ticket link clicks"),orders:Ti().describe("Orders from this medium"),tickets:Ti().describe("Tickets from this medium"),revenue:Ti().describe("Revenue from this medium (cents)"),conversionRate:Ti().describe("Conversion rate (%)"),share:Ti().describe("Share of total orders (%)")})).describe("Mediums sorted by orders descending")}),id=ws({eventId:ri(),limit:Ti().min(1).max(100).optional().default(10),sortBy:Js.optional().default("orders")}),od=Vi({meta:Vs,totals:Vi({views:Ti().describe("Total views across all devices"),visitors:Ti().describe("Total unique visitors across all devices"),revenue:Ti().describe("Total revenue across all devices (cents)"),orders:Ti().describe("Total orders across all devices"),tickets:Ti().describe("Total tickets across all devices")}),devices:Yi(Vi({id:Ks.describe("Device type"),name:ri().describe("Human-readable device name"),views:Ti().optional().describe("Page views from this device"),visitors:Ti().describe("Unique visitors from this device"),revenue:Ti().describe("Revenue from this device (cents)"),clicks:Ti().optional().describe("Ticket link clicks"),orders:Ti().describe("Orders from this device"),tickets:Ti().describe("Tickets from this device"),conversionRate:Ti().describe("Conversion rate (%)"),share:Ti().describe("Share of total orders (%)")})).describe("Devices sorted by orders descending")}),ad=ws({eventId:ri(),limit:Ti().min(1).max(100).optional().default(10),sortBy:Js.optional().default("visitors")}),sd=Vi({meta:Hs,totals:Vi({views:Ti().describe("Total views across all browsers"),visitors:Ti().describe("Total unique visitors across all browsers"),orders:Ti().describe("Total orders across all browsers"),tickets:Ti().describe("Total tickets across all browsers"),revenue:Ti().describe("Total revenue across all browsers (cents)")}),browsers:Yi(Vi({id:ri().describe("Browser identifier"),name:ri().describe("Human-readable browser name"),views:Ti().describe("Page views from this browser"),clicks:Ti().optional().describe("Ticket link clicks"),visitors:Ti().describe("Unique visitors from this browser"),orders:Ti().describe("Orders from this browser"),tickets:Ti().describe("Tickets from this browser"),revenue:Ti().describe("Revenue from this browser (cents)"),conversionRate:Ti().describe("Conversion rate (%)"),share:Ti().describe("Share of total visitors (%)")})).describe("Browsers sorted by visitors descending")}),dd=ws({eventId:ri(),limit:Ti().min(1).max(100).optional().default(10),sortBy:Js.optional().default("pageViews")}),cd=Vi({meta:Hs,totals:Vi({views:Ti().describe("Total views across all locations"),visitors:Ti().describe("Total unique visitors across all locations"),orders:Ti().describe("Total orders across all locations"),tickets:Ti().describe("Total tickets across all locations"),revenue:Ti().describe("Total revenue across all locations (cents)")}),locations:Yi(Vi({id:ri().describe("Location/region code (e.g., 'US-CA', 'GB')"),name:ri().describe("Human-readable location name"),views:Ti().describe("Page views from this location"),visitors:Ti().describe("Unique visitors from this location"),clicks:Ti().optional().describe("Ticket link clicks"),orders:Ti().describe("Orders from this location"),tickets:Ti().describe("Tickets from this location"),revenue:Ti().describe("Revenue from this location (cents)"),conversionRate:Ti().describe("Conversion rate (%)"),share:Ti().describe("Share of total views (%)")})).describe("Locations sorted by views descending")}),ud=ws({eventId:ri(),limit:Ti().min(1).max(100).optional().default(10),sortBy:Js.optional().default("pageViews")}),ld=Vi({meta:Hs,totals:Vi({sessions:Ti().describe("Total sessions across all sources"),visitors:Ti().describe("Total unique visitors across all sources"),orders:Ti().describe("Total orders across all sources"),tickets:Ti().describe("Total tickets across all sources"),revenue:Ti().describe("Total revenue across all sources (cents)")}),sources:Yi(Vi({id:ri().describe("Traffic source identifier"),name:ri().describe("Traffic source name"),referrer:ri().describe("Referrer URL or domain"),sessions:Ti().describe("Sessions from this source"),visitors:Ti().describe("Unique visitors from this source"),clicks:Ti().optional().describe("Ticket link clicks"),orders:Ti().describe("Orders from this source"),tickets:Ti().describe("Tickets from this source"),conversionRate:Ti().describe("Conversion rate (%)"),revenue:Ti().describe("Revenue from this source (cents)"),share:Ti().describe("Share of total sessions (%)")})).describe("Traffic sources sorted by sessions descending")}),pd=Vi({eventId:ri(),includeAdmission:Si().optional().default(!0),includeSection:Si().optional().default(!0),granularity:ro(["HOUR","MINUTE"]).optional()}),md=Vi({totalTickets:Ti(),checkedIn:Ti(),notCheckedIn:Ti(),checkinRate:Ti()}),fd=md.extend({admissionId:ri(),admissionName:ri()}),hd=md.extend({sectionId:ri(),sectionName:ri()}),vd=Ki([md.extend({byAdmission:Yi(fd),bySection:Yi(hd)}),Vi({granularity:ro(["HOUR","MINUTE"]),totalTickets:Ti(),data:Yi(Vi({timestamp:ri(),checkedIn:Ti(),rate:Ti(),checkinsThisPeriod:Ti()})),byAdmission:Yi(Vi({admissionId:ri(),admissionName:ri(),data:Yi(Vi({timestamp:ri(),checkedIn:Ti(),rate:Ti()}))})).optional(),bySection:Yi(Vi({sectionId:ri(),sectionName:ri(),data:Yi(Vi({timestamp:ri(),checkedIn:Ti(),rate:Ti()}))})).optional()})]),gd=Vi({eventId:ri(),limit:Ti().min(1).max(50).optional().default(10)}),yd=Vi({totalCheckIns:Ti(),scanners:Yi(Vi({userId:ri(),name:ri(),email:ri(),checkIns:Ti(),sharePercent:Ti(),firstScanAt:ri().nullable(),lastScanAt:ri().nullable(),activeMinutes:Ti(),scansPerHour:Ti(),devices:Yi(Vi({deviceId:ri(),checkIns:Ti()}))})).describe("Door staff sorted by check-ins descending")}),bd=Vi({eventId:ri(),includeAdmission:Si().optional().default(!0),includeSection:Si().optional().default(!0)}),wd=Vi({totalTickets:Ti(),checkedIn:Ti(),noShows:Ti(),checkInRate:Ti(),noShowRate:Ti()}),$d=wd.extend({admissionId:ri(),admissionName:ri()}),kd=wd.extend({sectionId:ri(),sectionName:ri()}),Id=wd.extend({byAdmission:Yi($d),bySection:Yi(kd)}),xd=Vi({eventId:ri(),granularity:ro(["MINUTE","FIFTEEN_MINUTE","HOUR"]).optional().default("FIFTEEN_MINUTE")}),Ed=Vi({granularity:ro(["MINUTE","FIFTEEN_MINUTE","HOUR"]),totalCheckIns:Ti(),peakWindow:Vi({start:ri().nullable(),end:ri().nullable(),checkIns:Ti()}),data:Yi(Vi({timestamp:ri(),checkIns:Ti(),cumulativeCheckIns:Ti(),cumulativeRate:Ti()}))}),Ad=Ps("promoterId","Promoter identifier"),Td=js({promoterId:ri().describe("Promoter identifier"),promoterName:ri().describe("Promoter name"),teamId:ri().describe("Team identifier"),teamName:ri().describe("Team name")}),Od=Cs("promoterId","Promoter identifier"),_d=Vi({meta:Vi({promoterId:ri(),dateRange:xs,granularity:As}),currencies:Yi(Vi({currency:ri().describe("Currency code (e.g., USD, EUR)"),series:Yi(Ts),totals:_s})).describe("Time-series data grouped by currency")}),Dd=Ns("promoterId","Promoter identifier"),Sd=Ms,Md=Ps("teamId","Team identifier"),Pd=js({teamId:ri().describe("Team identifier"),teamName:ri().describe("Team name")}),jd=Cs("teamId","Team identifier"),Cd=Vi({meta:Vi({teamId:ri(),dateRange:xs,granularity:As}),currencies:Yi(Vi({currency:ri().describe("Currency code (e.g., USD, EUR)"),series:Yi(Os),totals:Ds})).describe("Time-series data grouped by currency")});ws({teamId:ri().describe("Team identifier"),limit:Ti().optional().default(10).describe("Number of events to return"),sortBy:ro(["revenue","tickets","conversion"]).optional().default("revenue").describe("Sort metric")}),Vi({meta:Vi({teamId:ri(),dateRange:Vi({start:ri(),end:ri()}),limit:Ti(),sortBy:ri()}),data:Yi(Vi({eventId:ri().describe("Event identifier"),eventName:ri().describe("Event name"),eventDate:ri().describe("Event date").optional(),status:ri().describe("Event status"),revenue:Ti().describe("Total revenue in cents"),tickets:Ti().describe("Tickets sold"),views:Ti().describe("Page views"),conversionRate:Ti().describe("Conversion rate (%)"),contribution:Ti().describe("% of promoter's total revenue")})),totals:Vi({events:Ti().describe("Total events in period"),revenue:Ti().describe("Combined revenue"),tickets:Ti().describe("Combined tickets")})});const Nd=Ns("teamId","Team identifier"),Rd=Ms,Ud=ws({teamId:ri().describe("Team identifier")}),Ld=Vi({stages:Yi(Vi({stageId:ri().describe("Funnel stage identifier"),stageLabel:ri().describe("Human-readable stage name"),count:Ti().describe("Number of events at this stage"),conversionRate:Ti().describe("Conversion rate from first stage (%)"),dropoffPercent:Ti().describe("Dropoff rate from previous stage (%)")}))}),qd=ws({teamId:ri().describe("Team identifier"),groupBy:ro(["HOUR","DAY_OF_WEEK","DAY","WEEK","MONTH"]).optional().default("HOUR").describe("Time breakdown for aggregation"),timeZone:ri().optional().default("UTC").describe("IANA timezone for hour/day aggregation (e.g., 'America/New_York')")}),Gd=Vi({groupBy:ro(["HOUR","DAY_OF_WEEK","DAY","WEEK","MONTH"]).describe("The grouping used for aggregation"),buckets:Yi(Vi({key:Ki([Ti(),ri()]).describe("Bucket key (hour 0-23, day 0-6, or date string)"),label:ri().describe("Human-readable label"),orderCount:Ti().describe("Number of orders"),sharePercent:Ti().describe("Percentage of total orders")})),totalOrders:Ti().describe("Total orders across all buckets")}),zd=ws({teamId:ri().describe("Team identifier"),limit:Ti().optional().default(10).describe("Maximum number of admissions to return")}),Fd=Vi({admissions:Yi(Vi({admissionId:ri().describe("Admission identifier"),admissionName:ri().describe("Admission name"),ticketCount:Ti().describe("Number of tickets sold"),sharePercent:Ti().describe("Percentage of total tickets")})),totalTickets:Ti().describe("Total tickets across all admissions")}),Bd=ws({teamId:ri().describe("Team identifier"),type:ro(["campaign","medium","source"]).describe("Dimension type to analyze"),limit:Ti().optional().default(20).describe("Maximum number of results to return")}),Wd=Vi({dimensionType:ro(["campaign","medium","source"]).describe("The dimension type analyzed"),data:Yi(Vi({dimensionValue:ri().describe("The dimension value (e.g., campaign name)"),dimensionLabel:ri().describe("Human-readable label"),views:Ti().describe("Total page views"),conversions:Ti().describe("Total conversions (orders)"),conversionRate:Ti().describe("Conversion rate (%)"),sharePercent:Ti().describe("Share of total conversions (%)")})),totalConversions:Ti().describe("Total conversions across all dimensions")}),Yd=Vi({teamId:ri().describe("Team identifier"),startAt:jr().describe("Inclusive period start timestamp"),endAt:jr().describe("Exclusive period end timestamp")}),Zd=Vi({currency:ri().describe("Currency code"),disputedOrders:Ti().describe("Orders currently marked as disputed"),orderCount:Ti().describe("Successful orders"),refunded:Ti().describe("Refunded amount in cents"),refundCount:Ti().describe("Orders with refunded value"),refundRate:Ti().describe("Refunded order rate as a percentage"),revenue:Ti().describe("Total order value in cents"),ticketsSold:Ti().describe("Tickets sold")}),Vd=Zd.omit({currency:!0}),Hd=Vi({currencies:Yi(Zd),comparison:Vi({totals:Vd}),meta:Vi({endAt:ri().describe("Exclusive period end timestamp"),startAt:ri().describe("Inclusive period start timestamp"),teamId:ri().describe("Team identifier")}),totals:Vd}),Kd=Vi({teamId:ri().describe("Team identifier")}),Jd=Ki([Kd.extend({startDate:hs.describe("Start date (YYYY-MM-DD)"),endDate:hs.describe("End date (YYYY-MM-DD)")}),Kd.extend({startDate:Pi().optional(),endDate:Pi().optional()})]),Qd=Vi({amount:Ti().describe("Payout net amount in cents"),count:Ti().describe("Number of payouts in this currency"),currency:ri().describe("Currency code")}),Xd=Vi({amount:Ti().describe("Payout net amount in cents"),currency:ri().nullable().describe("Currency code"),dueAt:ri().nullable().describe("Payout due timestamp"),payoutId:ri().nullable().describe("Payout identifier")}),ec=Vi({amount:Ti().describe("Payout net amount in cents"),currency:ri().nullable().describe("Currency code"),paidAt:ri().nullable().describe("Payout paid timestamp"),payoutId:ri().nullable().describe("Payout identifier")}),tc=Vi({upcoming:Vi({count:Ti().describe("Upcoming payouts matching the request"),pendingApproval:Ti().describe("Upcoming payouts still awaiting approval"),totals:Yi(Qd).describe("Upcoming payout totals by currency"),next:Xd}),lastPaid:ec}),nc=ws({teamId:ri().describe("Team identifier"),granularity:ro(["DAY","WEEK","MONTH"]).optional().default("DAY").describe("Time granularity for aggregation")}),rc=Vi({granularity:ro(["DAY","WEEK","MONTH"]).describe("The granularity used"),series:Yi(Vi({date:ri().describe("Date key (YYYY-MM-DD, YYYY-Www, or YYYY-MM)"),label:ri().describe("Human-readable label"),productViewed:Ti().describe("Page views"),productAdded:Ti().describe("Add to cart events"),checkoutStarted:Ti().describe("Checkout started events"),orderCompleted:Ti().describe("Completed orders")})),totals:Vi({productViewed:Ti().describe("Total page views"),productAdded:Ti().describe("Total add to cart"),checkoutStarted:Ti().describe("Total checkouts started"),orderCompleted:Ti().describe("Total orders completed"),uniqueVisitors:Ti().describe("Unique visitors (estimated via HyperLogLog, ~0.8% error)")})}),ic=ro("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(".")),oc=ic.enum,ac=Vi({product_id:ri().optional().describe("admission_id in ticketing context"),sku:ri().optional().describe("admission_id or admission_name"),category:ri().optional().describe('event_name or "Admission"'),name:ri().optional().describe("admission_name"),brand:ri().optional().describe("promoter_name"),variant:ri().optional().describe("section_name"),price:Ti().optional().describe("admission price (base + booking fee)"),quantity:Ti().optional().describe("number of tickets"),coupon:ri().optional().describe("coupon code applied"),position:Ti().optional().describe("position in list"),url:ri().optional().describe("URL to event/admission page"),image_url:ri().optional().describe("event image"),admission_id:ri().optional().describe("Explicit admission ID"),section_id:ri().optional().describe("Section ID if applicable"),event_id:ri().optional().describe("Event ID for this admission"),promoter_id:ri().optional().describe("Promoter ID"),price_base:Ti().nullish().describe("Base price before fees"),price_booking_fee:Ti().nullish().describe("Booking fee"),capacity:Ti().optional().describe("Total capacity for this admission"),available:Ti().optional().describe("Remaining tickets available"),sold:Ti().optional().describe("Tickets already sold")}),sc=Vi({type:ri(),value:ri()}),dc=Vi({type:ri(),value:ri()}),cc=Vi({query:Ki([ri(),to(ri(),Ui())]).optional(),list_id:ri().optional(),category:ri().optional(),filters:Yi(sc).optional(),sorts:Yi(dc).optional(),promotion_id:ri().optional(),creative:ri().optional(),name:ri().optional(),position:Ki([ri(),Ti()]).optional(),product_id:ri().optional(),sku:ri().optional(),brand:ri().optional(),variant:ri().optional(),price:Ti().optional(),quantity:Ti().optional(),coupon:ri().optional(),currency:ri().optional(),value:Ti().optional(),url:ri().optional(),image_url:ri().optional(),cart_id:ri().optional(),step:Ti().optional(),shipping_method:ri().optional(),payment_method:ri().optional(),ticketing_mode:ro(["internal","external"]).optional(),external_ticket_url:ri().optional(),external_ticket_domain:ri().optional(),cta_surface:ri().optional(),order_id:ri().optional(),affiliation:ri().optional(),subtotal:Ti().optional(),total:Ti().optional(),revenue:Ti().optional(),shipping:Ti().optional(),tax:Ti().optional(),discount:Ti().optional(),coupon_id:ri().optional(),coupon_name:ri().optional(),reason:ri().optional(),wishlist_id:ri().optional(),wishlist_name:ri().optional(),share_via:ri().optional(),share_message:ri().optional(),recipient:ri().optional(),review_id:ri().optional(),review_body:ri().optional(),rating:ri().optional(),products:Yi(ac).optional(),event_id:ri().optional().describe("ID of the ticketed event (evt_xxx)"),event_name:ri().optional().describe("Name of the ticketed event"),event_slug:ri().optional().describe("URL slug of event"),event_starts_at:ta.optional().describe("When the event starts (naive datetime, no timezone)"),event_ends_at:ta.optional().describe("When the event ends (naive datetime, no timezone)"),event_status:ro(["UPCOMING","LIVE","ENDED","CANCELLED"]).optional(),event_visibility:ro(["PUBLIC","PRIVATE"]).optional(),event_location:ri().optional().describe("Venue name"),event_city:ri().optional().describe("Venue city"),event_country:ri().optional().describe("Venue country"),promoter_id:ri().optional().describe("ID of the promoter (pmt_xxx)"),promoter_name:ri().optional().describe("Name of the promoter"),promoter_slug:ri().optional().describe("URL slug of promoter"),admission_id:ri().optional().describe("ID of admission type (adm_xxx)"),admission_name:ri().optional().describe('Name of admission (e.g., "General Admission")'),admission_capacity:Ti().optional().describe("Total capacity for this admission"),admission_available:Ti().optional().describe("Tickets still available"),admission_sold:Ti().optional().describe("Tickets already sold"),section_id:ri().optional().describe("ID of section (sct_xxx)"),section_name:ri().optional().describe('Name of section (e.g., "VIP", "General")'),section_capacity:Ti().optional().describe("Total capacity for this section"),section_available:Ti().optional().describe("Spots still available in section"),ticket_id:ri().optional().describe("Individual ticket ID (tkt_xxx)"),ticket_status:ro(["VALID","REDEEMED","CANCELLED"]).optional(),tickets_quantity:Ti().optional().describe("Number of tickets in transaction"),customer_id:ri().optional().describe("Customer ID (cus_xxx)"),customer_email:ri().optional().describe("Customer email"),customer_first_name:ri().optional(),customer_last_name:ri().optional(),price_base:Ti().nullish().describe("Base price before fees"),price_booking_fee:Ti().nullish().describe("Booking fee amount"),price_discount_amount:Ti().nullish().describe("Discount amount applied"),sale_starts_at:ta.optional().describe("When tickets go on sale (naive datetime, no timezone)"),sale_ends_at:ta.optional().describe("When ticket sales end (naive datetime, no timezone)"),entry_starts_at:ta.optional().describe("When entry to event begins (naive datetime, no timezone)"),entry_ends_at:ta.optional().describe("When entry to event ends (naive datetime, no timezone)"),funnel_step:ri().optional().describe('Current funnel step (e.g., "browse", "cart", "checkout")'),time_to_purchase:Ti().optional().describe("Seconds from first view to purchase"),session_duration:Ti().optional().describe("Total session duration in seconds"),referrer_type:ro(["DIRECT","SOCIAL","EMAIL","SEARCH","REFERRAL","AD"]).optional(),campaign_id:ri().optional().describe("Marketing campaign ID"),affiliate_id:ri().optional().describe("Affiliate partner ID"),promo_code_used:ri().optional().describe("Promotional code applied"),platform:ro(["WEB","MOBILE_WEB","IOS","ANDROID"]).optional(),app_version:ri().optional(),device_type:ro(["MOBILE","TABLET","DESKTOP"]).optional(),anonymous_id:ri().optional(),browser:ri().optional(),browser_session_id:ri().optional(),country:ri().optional(),page_path:ri().optional(),page_title:ri().optional(),page_url:ri().optional(),referrer:ri().optional(),region:ri().optional(),user_agent:ri().optional(),utm_source:ri().optional(),utm_medium:ri().optional(),utm_campaign:ri().optional(),utm_term:ri().optional(),utm_content:ri().optional()}),uc=Vi({session_id:ri(),user_id:ri().optional(),anonymous_id:ri().optional(),utm_source:ri().optional(),utm_medium:ri().optional(),utm_campaign:ri().optional(),utm_term:ri().optional(),utm_content:ri().optional(),page:Vi({url:ri(),path:ri(),title:ri()}),referrer:ri().optional(),user_agent:ri().optional(),ip:ri().optional(),geo:Vi({country:ri().optional().describe('Country code (e.g., "AU")'),countryName:ri().optional().describe('Country name (e.g., "Australia")'),region:ri().optional().describe("State/province code"),regionName:ri().optional().describe('State/province name (e.g., "New South Wales")'),city:ri().optional().describe("City name"),latitude:ri().optional().describe("Latitude"),longitude:ri().optional().describe("Longitude")}).optional(),fbc:ri().optional().describe("Facebook click ID"),fbp:ri().optional().describe("Facebook browser ID"),ttclid:ri().optional().describe("TikTok click ID")}),lc=Vi({id:ri(),eventId:ri().min(1).describe("Event being tracked (evt_123)"),teamId:ri().min(1).describe("Team ID (team_123)"),promoterId:ri().min(1).describe("Promoter ID (pmt_123)"),eventType:ic,timestamp:ri(),date:ri().describe("YYYY-MM-DD"),hour:Ti().int().min(0).max(23),properties:cc,context:uc,productId:ri().optional(),createdAt:ri(),updatedAt:ri()}),pc=lc.omit({id:!0,timestamp:!0,date:!0,hour:!0,createdAt:!0,updatedAt:!0}).extend({messageId:ri().min(1).optional().meta({description:"Analytics message id for retry-safe event delivery and linking."}),occurredAt:jr().optional().meta({description:"Client-observed event time. Server ingest time remains authoritative for writes."})}).meta({description:"Schema for tracking an analytics event. Excludes system-generated fields"}),mc=Vi({legacyOrgId:ri().min(1),legacyEventId:ri().min(1),legacyTeamId:ri().min(1),legacyEventName:ri().optional(),legacyEventSlug:ri().optional(),legacyEventCreatedAt:Ki([ri(),Bi(),Ci()]).optional(),legacyTeamCreatedAt:Ki([ri(),Bi(),Ci()]).optional()}),fc=Ki([pc,Vi({eventName:ri().min(1).optional(),eventType:ic.optional(),eventId:ri().min(1).optional(),teamId:ri().min(1).optional(),promoterId:ri().min(1).optional(),properties:to(ri(),Ui()).optional(),context:uc.partial().optional(),legacyContext:mc.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"});$s({eventId:ri().meta({description:"Event ID to get tracking events for"}),limit:ko().int().positive().optional().meta({description:"Maximum number of events to return"})}).meta({description:"Schema for retrieving tracking events for an event"}),Vi({id:ri(),email:ai(),firstName:ri(),lastName:ri(),imageUrl:ri().url().optional(),tenantId:ri(),createdAt:ri().datetime(),updatedAt:ri().datetime()});const hc=ro(["AIRWALLEX","STRIPE"]),vc=Vi({id:ri().readonly().meta({examples:[xe.Beneficiary.id],description:"A unique identifier for this beneficiary."}),createdAt:jr().readonly().meta({examples:[xe.Beneficiary.createdAt],description:"Timestamp in ISO 8601 format when this beneficiary was created."}),updatedAt:jr().readonly().meta({examples:[xe.Beneficiary.updatedAt],description:"Timestamp in ISO 8601 format when this beneficiary was last updated."}),name:ri().meta({examples:[xe.Beneficiary.name],description:"The account name for this beneficiary."}),currency:Eo.meta({examples:[xe.Beneficiary.currency],description:"Three-letter ISO 4217 currency code for payouts."}),gateway:hc.meta({examples:["STRIPE"],description:"The payment gateway used for processing payouts."}),gatewayId:ri().meta({examples:[xe.Beneficiary.gatewayId],description:"The identifier assigned by the payment gateway to this account."}),teamId:ri().meta({description:"Team that owns this beneficiary account."}),teamIds:Yi(ri()).meta({examples:[[]],description:"List of team IDs this beneficiary is assigned to. Empty array means available to all teams."}),venueIds:Yi(ri()).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"}),gc=Vi({city:ri().optional(),country_code:ri(),postcode:ri().optional(),state:ri().optional(),street_address:ri().optional()}),yc=Vi({account_currency:ri(),account_name:ri(),account_number:ri().optional(),account_routing_type1:ri().optional(),account_routing_value1:ri().optional(),account_routing_type2:ri().optional(),account_routing_value2:ri().optional(),bank_account_category:ri().optional(),bank_branch:ri().optional(),bank_country_code:ri(),bank_name:ri().optional(),bank_street_address:ri().optional(),binding_mobile_number:ri().optional(),fingerprint:ri().optional(),iban:ri().optional(),local_clearing_system:ri().optional(),swift_code:ri().optional(),transaction_reference:ri().optional(),account_identifier_type:ri().optional(),account_identifier_value:ri().optional()}),bc=Vi({transfer_methods:Yi(ro(["SWIFT","LOCAL"])).meta({examples:[["LOCAL"]],description:"Transfer methods supported for this beneficiary"}),beneficiary:Vi({company_name:ri().optional(),date_of_birth:ri().optional(),entity_type:ri().meta({examples:["COMPANY"],description:"Whether the beneficiary is PERSONAL or COMPANY"}),first_name:ri().optional(),last_name:ri().optional(),address:gc,bank_details:yc,additional_info:Vi({personal_email:ai().optional()}).optional()}).meta({description:"Beneficiary details including personal/company info, address, and bank details"})}).meta({description:"Complete beneficiary request structure for Airwallex validation"}),wc=bc.extend({id:ri().optional()}),$c=vc.omit({id:!0,createdAt:!0,updatedAt:!0,currency:!0}).extend({currency:Eo.meta({examples:[xe.Beneficiary.currency],description:"Three-letter ISO 4217 currency code for payouts to this beneficiary account"}),airwallex:wc.optional().meta({examples:[xe.AirwallexBeneficiary],description:"Airwallex-specific beneficiary details including bank account information and address (required when gateway is AIRWALLEX)"}),teamIds:Yi(ri()).optional().default([]).meta({examples:[[]],description:"List of team IDs to assign this beneficiary to. Empty array or omitted means available to all teams."}),venueIds:Yi(ri()).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"}),kc=vc.pick({id:!0}).meta({description:"Schema for retrieving a single beneficiary by its unique identifier"}),Ic=kc.meta({description:"Schema for deleting a beneficiary account - requires the beneficiary ID"}),xc=Vi({teamId:ri().optional().meta({examples:[xe.Team.id],description:"Optional identifier of the team whose beneficiaries to list. When provided, only beneficiaries for that team are returned."}),gateway:ro(["AIRWALLEX","STRIPE"]).optional().meta({examples:[xe.Beneficiary.gateway],description:"Filter beneficiaries by payment gateway provider (optional)"}),currency:Eo.optional().meta({examples:[xe.Beneficiary.currency],description:"Filter beneficiaries by currency code (optional)"}),query:ri().optional().meta({examples:["beneficiary"],description:"Optional search query to filter beneficiaries by name or gateway identifier. When provided, search-backed pagination is used."}),limit:na("beneficiaries").optional(),cursor:ri().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"}),Ec=Oa(vc,"beneficiaries"),Ac=Vi({beneficiary:vc}),Tc=Vi({min:Ti().optional().meta({description:"Minimum number of time units for the transfer"}),max:Ti().optional().meta({description:"Maximum number of time units for the transfer"}),unit:ri().optional().meta({examples:["day"],description:"Time unit (e.g., 'day', 'hour')"})}).meta({description:"Expected transfer completion time range"}),Oc=Vi({min:Ti().optional().meta({description:"Minimum transfer amount"}),max:Ti().optional().meta({description:"Maximum transfer amount"})}).meta({description:"Transfer amount limits"}),_c=Vi({label:ri().meta({description:"Display label for the option"}),value:ri().meta({description:"Value to submit when selected"}),flightTime:Tc.optional().meta({description:"Expected transfer time for TRANSFER_METHOD options"}),transferLimit:Oc.optional().meta({description:"Transfer amount limits for TRANSFER_METHOD options"}),processingTime:ri().optional().meta({description:"Human-readable processing time description"})}).meta({description:"A selectable option in a form field"}),Dc=Vi({type:ro(["INPUT","SELECT","RADIO","TRANSFER_METHOD","DYNAMIC_SELECT"]).meta({examples:["INPUT"],description:"The type of form input to render"}),label:ri().optional().meta({description:"Display label for the field"}),placeholder:ri().optional().meta({description:"Placeholder text for input fields"}),description:ri().optional().meta({description:"Detailed description of the field"}),tip:ri().optional().meta({description:"Tooltip information shown on hover"}),example:ri().optional().meta({description:"Example value for the field"}),default:ri().optional().meta({description:"Default value to pre-populate the field"}),key:ri().optional().meta({description:"Unique key identifier for the field"}),options:Yi(_c).optional().meta({description:"Available options for SELECT and RADIO field types"}),refresh:Si().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"}),Sc=Vi({pattern:ri().optional().meta({description:"Regex pattern for field validation"}),type:ri().optional().meta({description:"Validation type identifier"})}).meta({description:"Validation rules for a form field"}),Mc=Vi({path:ri().meta({examples:["beneficiary.bank_details.account_number"],description:"Dot-notation path to the field in the beneficiary request object"}),enabled:Si().meta({examples:[!0],description:"Whether this field should be displayed"}),required:Si().meta({examples:[!0],description:"Whether this field is required for submission"}),field:Dc.optional().meta({description:"Field definition with type, label, and options"}),rule:Sc.optional().meta({description:"Validation rules for the field"})}).meta({description:"A single field in the beneficiary form schema with display and validation rules"}),Pc=Vi({bankCountryCode:ri().regex(/^[A-Z]{2}$/).meta({examples:["AU"],description:"Two-letter ISO 3166-1 alpha-2 country code for the bank location"}),accountCurrency:Eo.meta({examples:["AUD"],description:"Three-letter ISO 4217 currency code for the beneficiary account"}),entityType:ro(["PERSONAL","COMPANY"]).meta({examples:["COMPANY"],description:"Whether the beneficiary is an individual or a company"}),transferMethod:ro(["LOCAL","SWIFT"]).optional().meta({examples:["LOCAL"],description:"Transfer method: SWIFT for international wire transfers, LOCAL for domestic transfers"}),localClearingSystem:ri().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:to(ri(),ri()).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."}),jc=Vi({fields:Yi(Mc).meta({description:"Array of form fields with their display and validation configuration"}),selectedTransferMethod:ro(["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:ri().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"}),Cc=de.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(Pc.strict()).output(jc),Nc=Vi({source:ri().meta({examples:["beneficiary.bank_details.account_number"],description:"Dot-notation path to the field that failed validation"}),code:ri().meta({examples:["001"],description:"Airwallex validation error code"}),message:ri().meta({examples:["This field is required"],description:"Human-readable error message"})}).meta({description:"Details about a single validation error for a field"}),Rc=bc.meta({description:"Beneficiary request data to validate against Airwallex rules before creating"}),Uc=Vi({valid:Si().meta({examples:[!0],description:"Whether the beneficiary request passed all validation rules"}),errors:Yi(Nc).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"}),Lc=de.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(Rc.strict()).output(Uc),qc=de.route({method:"GET",path:"/events/{eventId}/admissions/{id}",summary:"Get admission by ID",tags:["Admissions"]}).input(Aa.strict()).output(Pa),Gc=de.route({method:"POST",path:"/events/{eventId}/admissions",summary:"Create a new admission",tags:["Admissions"]}).input(xa.strict()).output(Pa),zc=de.route({method:"PUT",path:"/events/{eventId}/admissions/{id}",summary:"Update an admission",tags:["Admissions"]}).input(ja.strict()).output(Pa);var Fc={get:qc,list:de.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(Ta.strict()).output(_a),create:Gc,update:zc,remove:de.route({method:"DELETE",path:"/events/{eventId}/admissions/{id}",summary:"Delete an admission",tags:["Admissions"]}).input(Ea.strict()).output(Pa),quote:de.route({method:"POST",path:"/events/{eventId}/admissions/quote",summary:"Create an admission quote",tags:["Admissions"]}).input(Sa.strict()).output(Ma)},Bc={track:de.route({method:"POST",path:"/analytics/track",summary:"Track event",tags:["Analytics"]}).input(fc).output(lc),page:de.route({method:"POST",path:"/analytics/page",summary:"Page event",tags:["Analytics"]}).input(fc).output(lc),identify:de.route({method:"POST",path:"/analytics/identify",summary:"Identify event",tags:["Analytics"]}).input(fc).output(lc),alias:de.route({method:"POST",path:"/analytics/alias",summary:"Alias event",tags:["Analytics"]}).input(fc).output(lc),group:de.route({method:"POST",path:"/analytics/group",summary:"Group event",tags:["Analytics"]}).input(fc).output(lc),screen:de.route({method:"POST",path:"/analytics/screen",summary:"Screen event",tags:["Analytics"]}).input(fc).output(lc)};const Wc=de.route({method:"GET",path:"/beneficiaries/{id}",summary:"Get beneficiary by ID",tags:["Beneficiaries"]}).input(kc.strict()).output(Ac),Yc=de.route({method:"POST",path:"/beneficiaries",summary:"Create a new beneficiary",tags:["Beneficiaries"]}).input($c.strict()).output(Ac);var Zc={get:Wc,list:de.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(xc.strict()).output(Ec),create:Yc,remove:de.route({method:"DELETE",path:"/beneficiaries/{id}",summary:"Delete a beneficiary",tags:["Beneficiaries"]}).input(Ic.strict()).output(Ac),schema:Cc,validate:Lc};const Vc=ro(["AMOUNT","PERCENT"]),Hc=ro(["TEAM","PROMOTER","EVENTS","SECTIONS","ADMISSIONS"]),Kc=Vi({id:ri().readonly().meta({examples:[xe.Coupon.id],description:"A unique identifier for this coupon."}),couponId:ri().optional().readonly().meta({examples:[xe.Coupon.couponId],description:"Duplicate of id field for GSI queries."}),createdAt:jr().readonly().meta({examples:[xe.Coupon.createdAt],description:"Timestamp in ISO 8601 format when this coupon was created."}),updatedAt:jr().readonly().meta({examples:[xe.Coupon.updatedAt],description:"Timestamp in ISO 8601 format when this coupon was last updated."}),name:ri().meta({examples:[xe.Coupon.name],description:"Internal label for the coupon, visible to event organisers."}),active:Si().optional().meta({examples:[xe.Coupon.active],description:"Whether this coupon is currently active."}),showHidden:Si().optional().meta({examples:[!1],description:"Whether this coupon reveals hidden admissions and sections within its scope."}),kind:Vc.meta({examples:["PERCENT"],description:"Type of discount this coupon gives: a fixed amount or a percentage."}),filter:Hc.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:Eo.optional().meta({examples:[xe.Coupon.currency],description:"Three-letter ISO 4217 currency code. Required for AMOUNT coupons. Optional for PERCENT coupons - when omitted, applies to all currencies."}),discount:Ti().min(0).meta({examples:[xe.Coupon.discount],description:"The discount value. If kind is 'amount', this is a currency amount. If kind is 'percent', this is a percentage."}),limit:Ti().meta({examples:[xe.Coupon.limit],description:"Maximum number of times the coupon can be redeemed across all customers."}),uses:Ti().optional().meta({examples:[xe.Coupon.uses],description:"Number of times this coupon has been redeemed so far."}),promoters:Yi(Vi({id:ri().meta({description:"Identifier of a promoter this coupon applies to."}),name:ri().meta({description:"Name of a promoter this coupon applies to."}),slug:ri().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:Yi(Vi({id:ri().meta({description:"Identifier of an event this coupon applies to."}),name:ri().meta({description:"Name of an event this coupon applies to."}),slug:ri().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:Yi(Vi({id:ri().meta({description:"Identifier of a section this coupon applies to."}),name:ri().meta({description:"Name of a section this coupon applies to."}),eventId:ri().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:Yi(Vi({id:ri().meta({description:"Identifier of an admission this coupon applies to."}),name:ri().meta({description:"Name of an admission this coupon applies to."}),eventId:ri().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:ta.meta({examples:[xe.Coupon.saleStartsAt],description:"Wall clock time when this coupon becomes valid (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)"}),saleEndsAt:ta.optional().meta({examples:[xe.Coupon.saleEndsAt],description:"Wall clock time when this coupon expires (no timezone, ISO 8601 format: YYYY-MM-DDTHH:mm:ss)"}),teamId:ri().meta({description:"Team that created this coupon."})}).meta({description:"coupon"}),Jc=Vi({id:ri().readonly().meta({examples:[xe.CouponCode.id],description:"A unique identifier for this coupon code."}),createdAt:jr().readonly().meta({examples:[xe.CouponCode.createdAt],description:"Timestamp in ISO 8601 format when this coupon code was created."}),updatedAt:jr().readonly().meta({examples:[xe.CouponCode.updatedAt],description:"Timestamp in ISO 8601 format when this coupon code was last updated."}),name:ri().meta({examples:[xe.CouponCode.name],description:"The code string that customers enter to redeem the coupon."}),active:Si().meta({examples:[xe.CouponCode.active],description:"Whether this coupon code is currently enabled for use."}),couponId:ri().meta({examples:[xe.Coupon.id],description:"Identifier of the coupon to which this code belongs."}),teamId:ri().meta({description:"Team that created this coupon code."}),uses:Ti().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"}),Qc=Jc.pick({id:!0});Vi({couponId:ri().meta({examples:[xe.Coupon.id]})}),Vi({name:ri(),couponId:ri().optional().meta({examples:[xe.Coupon.id]})});const Xc=Jc.omit({id:!0,createdAt:!0,updatedAt:!0,uses:!0}),eu=Jc.omit({createdAt:!0,updatedAt:!0,couponId:!0,teamId:!0,uses:!0}).partial().extend({id:Jc.shape.id}),tu=Qc,nu=Vi({couponId:ri().optional().meta({examples:[xe.Coupon.id],description:"Optional filter to retrieve coupon codes for a specific coupon"}),teamId:ri().optional().meta({examples:["tem_01jqpjksnsen9vprw95et60t2m"],description:"Optional filter to retrieve coupon codes created by a specific team"}),active:Io().optional().meta({examples:[!0],description:"Optional filter to retrieve only active or inactive coupon codes"}),query:ri().optional().meta({examples:["SUMMER"],description:"Optional search query to filter coupon codes by name. When provided, search-backed pagination is used."}),limit:na("coupon codes").optional(),cursor:ri().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"}),ru=Oa(Jc,"codes"),iu=Vi({couponCode:Jc}),ou=Kc.omit({id:!0,createdAt:!0,updatedAt:!0}).strict().refine((e=>"PERCENT"!==e.kind||e.discount<=100),{path:["discount"],message:"Discount must be 100 or less for PERCENT coupons"}).meta({description:"Schema for creating a new coupon without system-generated fields"}),au=Kc.pick({id:!0}).meta({description:"Schema for retrieving a single coupon by ID"}),su=au.meta({description:"Schema for deleting a coupon by ID with optional soft-delete filtering"}),du=Vi({teamId:ri().meta({examples:[xe.Team.id],description:"Unique identifier of the team whose coupons to retrieve"}),active:Io().optional().meta({examples:[!0],description:"Optional filter to retrieve only active or inactive coupons"}),query:ri().optional().meta({examples:["Half Price"],description:"Optional search query to filter coupons by name or description. When provided, search-backed pagination is used."}),limit:na("coupons").optional(),cursor:ri().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"}),cu=Oa(Kc,"coupons"),uu=Vi({coupon:Kc}),lu=Kc.omit({createdAt:!0,updatedAt:!0,teamId:!0}).partial().extend({id:Kc.shape.id.meta({examples:[xe.Coupon.id],description:"Unique identifier of the coupon to update"}),saleEndsAt:ta.nullable().optional().meta({examples:[xe.Coupon.saleEndsAt],description:"Expiry time. Pass null to remove end date; omit to leave unchanged."}),currency:Eo.nullable().optional().meta({examples:["AUD","USD","GBP"],description:"Three-letter ISO 4217 currency code. Pass null to clear; omit to leave unchanged."})}).strict().refine((e=>"PERCENT"!==e.kind||void 0===e.discount||e.discount<=100),{path:["discount"],message:"Discount must be 100 or less for PERCENT coupons"}).meta({description:"Schema for updating an existing coupon."}),pu=de.route({method:"GET",path:"/coupon-codes/{id}",summary:"Get coupon code by ID",tags:["Coupon Codes"]}).input(Qc.strict()).output(iu),mu=de.route({method:"POST",path:"/coupon-codes",summary:"Create a new coupon code",tags:["Coupon Codes"]}).input(Xc.strict()).output(iu),fu=de.route({method:"PUT",path:"/coupon-codes/{id}",summary:"Update a coupon code",tags:["Coupon Codes"]}).input(eu.strict()).output(iu);var hu={get:pu,list:de.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(nu.strict()).output(ru),create:mu,update:fu,remove:de.route({method:"DELETE",path:"/coupon-codes/{id}",summary:"Delete a coupon code",tags:["Coupon Codes"]}).input(tu.strict()).output(iu)};const vu=de.route({method:"GET",path:"/coupons/{id}",summary:"Get coupon by ID",tags:["Coupons"]}).input(au.strict()).output(uu),gu=de.route({method:"POST",path:"/coupons",summary:"Create a new coupon",tags:["Coupons"]}).input(ou).output(uu),yu=de.route({method:"PUT",path:"/coupons/{id}",summary:"Update a coupon",tags:["Coupons"]}).input(lu).output(uu);var bu={get:vu,list:de.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(du.strict()).output(cu),create:gu,update:yu,remove:de.route({method:"DELETE",path:"/coupons/{id}",summary:"Delete a coupon",tags:["Coupons"]}).input(su.strict()).output(uu),code:hu},wu={suggestTags:de.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(Ca.strict()).output(Na)};const $u=Vi({eventId:Mo.meta({description:"Event to like"})}).meta({description:"Request to like an event"}),ku=Vi({limit:na("likes"),cursor:ri().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."}),Iu=Vi({tenantId:ri().readonly().meta({description:"Tenant ID for multi-tenant isolation"}),userId:Co.readonly().meta({description:"User who liked the event"}),eventId:Mo.meta({description:"Event the user liked"}),createdAt:jr().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."}),xu=Oa(Iu,"likes").meta({description:"Paginated list of event likes. Use cursor-based pagination to navigate through results."}),Eu=Vi({eventId:Mo.meta({description:"Event to remove like from"})}).meta({description:"Request to remove the current user's like from an event"}),Au=Vi({like:Iu});var Tu={add:de.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($u).output(Au),remove:de.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(Eu).output(zi()),list:de.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(ku).output(xu)};const Ou=Vi({id:jo.readonly().meta({examples:[xe.Location.id],description:"Location identifier"}),googlePlaceId:ri().optional().meta({examples:["ChIJP3Sa8ziYEmsRUKgyFmh9AQM"],description:"Google Place ID for this location"}),createdAt:jr().meta({examples:[xe.Location.createdAt],description:"Timestamp in ISO 8601 format when the location was created"}),updatedAt:jr().meta({examples:[xe.Location.updatedAt],description:"Timestamp in ISO 8601 format when the location was last updated"}),name:ri().meta({examples:[xe.Location.name],description:"Location name"}),address:ri().meta({examples:[xe.Location.address],description:"Formatted address"}),city:ri().optional().meta({examples:[xe.Location.city],description:"City name"}),state:ri().optional().meta({examples:[xe.Location.state],description:"State or region"}),postcode:ri().optional().meta({examples:[xe.Location.postcode],description:"Postal code"}),country:ri().meta({examples:[xe.Location.country],description:"Country name"}),latitude:Ti().min(-90).max(90).meta({examples:[xe.Location.latitude],description:"Latitude coordinate"}),longitude:Ti().min(-180).max(180).meta({examples:[xe.Location.longitude],description:"Longitude coordinate"}),timeZone:ri().min(1).regex(/^[A-Za-z0-9_+-]+(\/[A-Za-z0-9_+-]+)*$/,{message:"Must be a valid IANA timezone identifier format"}).meta({examples:[xe.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:Yi(ri()).optional().meta({examples:[["establishment","point_of_interest","stadium"]],description:"Google Place types indicating the category and nature of this location"}),description:ri().optional().meta({examples:["Historic outdoor amphitheater known for summer concerts"],description:"AI-generated description of the place, when available"}),image:Ho.optional().meta({description:"Primary location photo"}),venueId:Po.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"}),_u=Ou.omit({venueId:!0}).extend({venue:Vi({id:Po.meta({description:"Venue identifier"}),name:ri().meta({description:"Venue name"}),slug:ri().meta({description:"URL-friendly venue slug"}),teamId:ri().meta({description:"Team that owns this venue"}),approval:xo.meta({description:"Venue approval status"}),image:Ho.optional().meta({description:"Venue image"}),description:ri().optional().meta({description:"Venue description"})}).optional().meta({description:"Denormalized venue details if this location is a managed venue. Only included when venue is approved."})}),Du=Vi({id:Uo.readonly().meta({examples:[xe.Promoter.id],description:"Unique identifier for the promoter organization"}),createdAt:jr().readonly().meta({examples:[xe.Promoter.createdAt],description:"Timestamp in ISO 8601 format when the promoter was created"}),updatedAt:jr().readonly().meta({examples:[xe.Promoter.updatedAt],description:"Timestamp in ISO 8601 format when the promoter was last updated"}),name:ri().min(3).max(30).meta({examples:[xe.Promoter.name],description:"Display name of the promoter organization. Must be between 3 and 30 characters"}),slug:ri().min(3).max(30).meta({examples:[xe.Promoter.slug],description:"URL-friendly slug for the promoter organization. Must be unique and between 3 and 30 characters"}),teamId:So.meta({examples:["tem_01jqpjksnsen9vprw95et60t2m"],description:"ID of the team that owns this promoter. Establishes team-based organization and permissions."}),description:ri().meta({examples:[xe.Promoter.description],description:"Detailed description of the promoter organization and their events"}),approval:xo.meta({examples:[xe.Promoter.approval],description:"Approval status of the promoter. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate"}),image:Ho.optional().meta({description:"Optional promotional image for the promoter organization with dimensions and alt text"}),location:_u.meta({description:"Primary location details for the promoter including address, coordinates, and timezone"}),geohash:ri().meta({examples:[xe.Promoter.geohash],description:"Geohash encoding of the promoter's location for efficient spatial queries"}),tracking:Vi({fbId:ri().optional().meta({examples:[xe.Promoter.tracking.fbId],description:"Facebook pixel ID for tracking conversions and analytics"}),gtmId:ri().optional().meta({examples:[xe.Promoter.tracking.gtmId],description:"Google Tag Manager container ID for web analytics"}),tikTokId:ri().optional().meta({examples:[xe.Promoter.tracking.tikTokId],description:"TikTok pixel ID for advertising and conversion tracking"})}).optional().meta({description:"Optional tracking configuration for analytics and advertising platforms"}),metadata:ea}).meta({description:"Promoter organization with location and approval status"}),Su=Vi({id:ri().readonly().meta({examples:[xe.Section.id],description:"Unique identifier for the section"}),createdAt:jr().readonly().meta({examples:[xe.Section.createdAt],description:"Timestamp when the section was created in ISO 8601 format"}),updatedAt:jr().readonly().meta({examples:[xe.Section.updatedAt],description:"Timestamp when the section was last updated in ISO 8601 format"}),name:ri().meta({examples:[xe.Section.name],description:"Display name of the section (e.g., 'VIP Area', 'General Admission')"}),capacity:Ko().prefault(-1).meta({examples:[xe.Section.capacity],description:"Maximum number of attendees for this section. Use -1 for unlimited capacity"}),limit:Jo().prefault(-1).meta({examples:[xe.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:Ti().min(-1).readonly().meta({examples:[xe.Section.available],description:"Number of tickets currently available for purchase in this section. Use -1 when capacity is unlimited"}),sold:Ti().min(0).readonly().meta({examples:[xe.Section.sold],description:"Number of tickets sold for this section"}),reserved:Ti().readonly().meta({examples:[xe.Section.reserved],description:"Number of tickets currently reserved (in pending orders) for this section"}),order:Ti().min(0).meta({examples:[xe.Section.order],description:"Display order of the section. Lower numbers appear first in listings"}),visibility:ro(["ALWAYS","STACKED","HIDDEN"]).prefault("ALWAYS").meta({examples:["ALWAYS"],description:"Controls how this section is shown: always list all visible admissions, stack to show the cheapest available admission, or hide until a scoped coupon reveals it."}),location:Ou.meta({description:"Physical location details for the section"}),teamId:ri().meta({description:"Team that owns this section. Denormalized for efficient queries."}),promoterId:ri().meta({examples:[xe.Section.promoterId],description:"Unique identifier of the promoter who owns this section"}),eventId:ri().meta({examples:[xe.Section.eventId],description:"Unique identifier of the event this section belongs to"}),eventSlug:ri().meta({examples:[xe.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"}),Mu=ro(["UPCOMING","ENDED"]),Pu=ro(["PUBLIC","PRIVATE","SCHEDULED","PASSCODE","CANCELLED"]),ju=Vi({id:Mo.readonly().meta({examples:[xe.Event.id],description:"A unique identifier for this event"}),createdAt:jr().readonly().meta({examples:[xe.Event.createdAt],description:"Timestamp in ISO 8601 format when this event was created"}),updatedAt:jr().readonly().meta({examples:[xe.Event.updatedAt],description:"Timestamp in ISO 8601 format when this event was last updated"}),name:ri().meta({examples:[xe.Event.name],description:"The title of the event shown to attendees"}),slug:ri().meta({examples:[xe.Event.slug],description:"URL-friendly identifier for the event"}),description:ri().meta({examples:[xe.Event.description],description:"Detailed description of the event"}),approval:xo.meta({examples:["APPROVED"],description:"Approval status of the event"}),status:Mu.meta({examples:["UPCOMING","ENDED"],description:"Current stage of the event lifecycle"}),visibility:Pu.meta({examples:["PUBLIC"],description:"Who can see the event"}),currency:Eo.meta({examples:["AUD"],description:"Three-letter ISO 4217 currency code used for ticket prices"}),url:ui().optional().meta({examples:["https://example.com"],description:"External URL for the event website or ticket page"}),entryStartsAt:ta.meta({examples:[xe.Event.entryStartsAt],description:"Wall clock time when event entry begins (no timezone, displays same everywhere)"}),entryEndsAt:ta.meta({examples:[xe.Event.entryEndsAt],description:"Wall clock time when event entry ends (no timezone, displays same everywhere)"}),publishAt:ta.meta({examples:[xe.Event.publishAt],description:"Wall clock time when the event becomes publicly visible (no timezone)"}),images:Vi({mobile:Ho.meta({description:"Mobile-optimized image for the event"}),desktop:Ho.meta({description:"Desktop-optimized image for the event"})}),geohash:ri().meta({examples:[xe.Event.geohash],description:"Geohash representing the event location"}),location:_u.meta({description:"Structured location details for the event"}),teamId:So.meta({description:"Team that owns this event. Denormalized for efficient queries."}),promoterId:Uo.meta({examples:[xe.Promoter.id],description:"Promoter organizing the event. Must belong to the team."}),metadata:ea,genres:Yi(ri()).optional().meta({description:"Music genres for the event (1-5 genres)",examples:[["Tech House","Melodic Techno"]]}),categories:Yi(ri()).optional().meta({description:"Event characteristics like vibe, venue type, and amenities (up to 10)",examples:[["Day Party","Open Air","Free Entry"]]}),featured:Si().optional().meta({description:"Whether this event is an editorial pick",examples:[!0]}),likes:Ti().int().min(0).optional().meta({description:"Number of users who liked this event",examples:[42]})}).meta({description:"event"}),Cu=Du.pick({id:!0,name:!0,slug:!0,description:!0,image:!0}),Nu=Vi({event:ju.extend({passcode:ri().optional().meta({description:"Plain-text event passcode. Included only on internal event detail responses for users with event.read access."}),sections:Yi(Su),admissions:Yi(Ia),promoter:Cu.optional().meta({description:"Public summary of the promoter organizing this event. Included on event detail responses only."}),liked:Si().optional().meta({description:"Whether the current user has liked this event",examples:[!0,!1]})})}),Ru=ju.omit({id:!0,teamId:!0,createdAt:!0,updatedAt:!0,status:!0,approval:!0,geohash:!0,location:!0,featured:!0,likes:!0}).extend({slug:ri().min(3).max(100).optional().meta({examples:[xe.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:ri().optional().meta({description:"Passcode for protected access to the event"}),locationId:jo.optional().meta({examples:["loc_01jqpjksnsen9vprw95et60t2m"],description:"ID of an existing location. Either locationId or googlePlaceId must be provided."}),googlePlaceId:ri().optional().meta({examples:["ChIJN1t_tDeuEmsRUsoyG83frY4"],description:"Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided."}),genres:_o.optional().meta({description:"Music genres for the event (1-5 genres)",examples:[["Tech House","Melodic Techno"]]}),categories:To.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"}),Uu=Vi({key:ri().min(1).meta({description:"Event key - either a unique ID (evt_xxx format) or URL-friendly slug",examples:[xe.Event.id,xe.Event.slug]})}),Lu=Vi({key:ri().min(1).meta({description:"Event key - either a unique ID (evt_xxx format) or URL-friendly slug",examples:[xe.Event.id,xe.Event.slug]}),name:ri().min(1).meta({description:"Name for the duplicated event",examples:[`${xe.Event.name} (Copy)`]}),entryStartsAt:ta.meta({description:"New event entry start time. Other copied event and admission datetimes are shifted by the same offset.",examples:[xe.Event.entryStartsAt]})}),qu=Vi({key:ri().min(1).meta({description:"Event key - either a unique ID (evt_xxx format) or URL-friendly slug",examples:[xe.Event.id,xe.Event.slug]}),featured:Si().meta({description:"Whether the event should be featured (editorial pick)",examples:[!0,!1]})}),Gu=Vi({key:ri().min(1).meta({description:"Event key - either a unique ID (evt_xxx format) or URL-friendly slug",examples:[xe.Event.id,xe.Event.slug]}),passcode:ri().optional().meta({description:"Passcode for accessing protected events"}),couponCode:ri().optional().meta({description:"Coupon code used to reveal hidden admissions and sections when eligible."}),teamId:ri().optional().meta({description:"Optional team scope. When provided, event must belong to this team."})}),zu=Vi({sold:Ti().min(0).meta({description:"Number of tickets sold (net of refunds)"}),reserved:Ti().min(0).meta({description:"Number of tickets reserved"}),available:Ti().min(-1).meta({description:"Number of tickets available (-1 for unlimited)"}),capacity:Ti().min(-1).meta({description:"Total capacity (-1 for unlimited)"})}),Fu=ro(["entryStartsAt","createdAt"]),Bu=ro(["asc","desc"]),Wu=Vi({status:ro(["UPCOMING","ENDED"]).optional().meta({examples:["UPCOMING"],description:"Filter events by their current lifecycle status"}),approval:xo.optional().meta({examples:["APPROVED"],description:"Filter events by their approval status"}),visibility:ro(["PUBLIC","PRIVATE","SCHEDULED","PASSCODE"]).optional().meta({examples:["PUBLIC"],description:"Filter events by their visibility setting"}),promoterId:ri().optional().meta({examples:[xe.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:ri().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:ri().optional().meta({description:"Filter events to only those at a specific venue. If not provided, returns events at all venues"}),limit:ko().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:ri().optional().meta({examples:["evt_01jps5cgsenjrazw6wswmyspa3"],description:"Cursor token for pagination. Provide the cursor from the previous response to continue fetching results"}),query:new ti({type:"string",coerce:!0,...Ze(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:ko().min(-90).max(90).optional().meta({examples:[xe.Event.location.latitude],description:"Latitude coordinate for geographic search. Provide with longitude (and optional radius)"}),longitude:ko().min(-180).max(180).optional().meta({examples:[xe.Event.location.longitude],description:"Longitude coordinate for geographic search. Provide with latitude (and optional radius)"}),radius:ko().optional().meta({examples:[20],description:"Search radius in kilometers from the provided coordinates. Defaults to 20km"}),country:ri().optional().meta({examples:["australia"],description:"Filter by country region slug. Matches events where location.country equals the region name"}),state:ri().optional().meta({examples:["nsw"],description:"Filter by state/province region slug. Matches events where location.state equals the region name"}),city:ri().optional().meta({examples:["sydney"],description:"Filter by city region slug. Matches events where location.city equals the region name"}),from:ri().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:ri().date().optional().meta({examples:["2024-12-31"],description:"Filter events that start on or before this date (YYYY-MM-DD format). Events with entryStartsAt <= to"}),sort:Fu.optional().meta({examples:["createdAt"],description:"Optional list sort field. Defaults to event start time. Use `createdAt` to return newest or oldest events first."}),direction:Bu.optional().meta({examples:["desc"],description:"Sort direction for event lists. Defaults to lifecycle-aware event start order unless `sort` is provided."}),genres:Yi(Oo).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:Yi(Ao).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:Si().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"}),Yu=Wu,Zu=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"}),Vu=Oa(ju.extend({inventory:zu.optional(),liked:Si().optional().meta({description:"Whether the current user has liked this event",examples:[!0,!1]}),price:Zu.nullable().meta({description:"Cheapest publicly purchasable admission price, or null when no public admission is currently available"})}),"events"),Hu=Vi({event:ju});ro(["ONLINE","DOOR","SALE_ENDED","SOLD_OUT"]);const Ku=Wu.omit({cursor:!0,limit:!0}).extend({limit:ko().int().min(1).max(1e3).prefault(1e3).meta({examples:[1e3],description:"Maximum number of event slugs to return. Must be between 1 and 1000, defaults to 1000"}),skip:ko().int().min(0).prefault(0).meta({examples:[0],description:"Number of matching event slugs to skip before returning results"})}),Ju=Vi({slugs:Yi(ri()).meta({description:"Current event slugs for the matching event list"}),skip:ko().int().min(0).meta({examples:[0],description:"Number of matching event slugs skipped"}),limit:ko().int().min(1).max(1e3).meta({examples:[1e3],description:"Maximum number of event slugs returned"})}),Qu=ju.omit({createdAt:!0,updatedAt:!0,geohash:!0,status:!0,location:!0,featured:!0,likes:!0}).partial().extend({key:ri().meta({examples:[xe.Event.id,xe.Event.slug],description:"Event key - either a unique ID (evt_xxx format) or URL-friendly slug"}),passcode:ri().nullable().optional().meta({description:"Passcode for protected access. Pass null to clear; omit to leave unchanged."}),url:ui().nullable().optional().meta({examples:["https://example.com/events/summer-festival-2025"],description:"External event URL. Pass null to clear; omit to leave unchanged."}),locationId:jo.optional().meta({examples:["loc_01jqpjksnsen9vprw95et60t2m"],description:"ID of an existing location to update to. Either locationId or googlePlaceId can be provided."}),googlePlaceId:ri().optional().meta({examples:["ChIJN1t_tDeuEmsRUsoyG83frY4"],description:"Google Place ID to update location from. Either locationId or googlePlaceId can be provided."}),genres:_o.optional().meta({description:"Music genres for the event (1-5 genres)",examples:[["Tech House","Melodic Techno"]]}),categories:To.meta({description:"Event characteristics like vibe, venue type, and amenities (up to 10)",examples:[["Day Party","Open Air","Free Entry"]]}),notify:Si().optional().meta({description:"Whether attendees should be notified about this event update.",examples:[!0]})}).meta({description:"Schema for updating an existing event."}),Xu=ed.extend({limit:ko().min(1).max(100).optional().default(10)}),el=Qs.extend({limit:ko().min(1).max(100).optional().default(10)}),tl=ad.extend({limit:ko().min(1).max(100).optional().default(10)}),nl=nd.extend({limit:ko().min(1).max(100).optional().default(10)}),rl=id.extend({limit:ko().min(1).max(100).optional().default(10)}),il=dd.extend({limit:ko().min(1).max(100).optional().default(10)}),ol=ud.extend({limit:ko().min(1).max(100).optional().default(10)}),al=gd.extend({limit:ko().min(1).max(50).optional().default(10)}),sl=bd.extend({includeAdmission:Io().optional().default(!0),includeSection:Io().optional().default(!0)}),dl=xd.extend({});var cl={summary:de.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(Us).output(Ls),tickets:de.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(qs).output(Gs),timeseries:de.route({method:"GET",path:"/events/{eventId}/performance/timeseries",summary:"Get event metric time series",description:"Per-bucket series of revenue, tickets, orders, page views, visitors, and conversion rate for the selected range",tags:["Event Performance"]}).input(Fs).output(Bs),funnel:de.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(Ws).output(Ys),campaigns:de.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(Xu).output(td),coupons:de.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(el).output(Xs),mediums:de.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(nl).output(rd),devices:de.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(rl).output(od),browsers:de.route({method:"GET",path:"/events/{eventId}/performance/browsers",summary:"Get browser performance",description:"Traffic breakdown by browser from tracking events",tags:["Event Performance"]}).input(tl).output(sd),locations:de.route({method:"GET",path:"/events/{eventId}/performance/locations",summary:"Get geographic performance",description:"Performance by geographic location from tracking events",tags:["Event Performance"]}).input(il).output(cd),traffic:de.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(ol).output(ld),attendance:de.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(pd).output(vd),scanners:de.route({method:"GET",path:"/events/{eventId}/performance/scanners",summary:"Get door staff scanner activity",description:"Ranked check-in activity by scanner for post-event door staff analytics",tags:["Event Performance"]}).input(al).output(yd),turnout:de.route({method:"GET",path:"/events/{eventId}/performance/turnout",summary:"Get event turnout analysis",description:"Post-event sold versus checked-in tickets by admission and section",tags:["Event Performance"]}).input(sl).output(Id),pace:de.route({method:"GET",path:"/events/{eventId}/performance/pace",summary:"Get event check-in pace",description:"Post-event check-in flow over the admission entry window with peak door volume",tags:["Event Performance"]}).input(dl).output(Ed)};const ul=de.route({method:"GET",path:"/events/slugs",summary:"List event slugs",description:"List current event slugs with the same filters and access rules as event lists. Supports skip/limit pagination for sitemap generation.",tags:["Events"]}).input(Ku).output(Ju),ll=de.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(Gu).output(Nu),pl=de.route({method:"POST",path:"/events",summary:"Create a new event",tags:["Events"]}).input(Ru.strict()).output(Hu),ml=de.route({method:"POST",path:"/events/{key}/duplicate",summary:"Duplicate an event",description:"Create a new event by copying event details, sections, and admissions from an existing event.",tags:["Events"]}).input(Lu.strict()).output(Hu),fl=de.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(Qu.strict()).output(Hu);var hl={slugs:ul,get:ll,list:de.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(Yu).output(Vu),create:pl,duplicate:ml,update:fl,remove:de.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(Uu.strict()).output(Hu),feature:de.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(qu.strict()).output(Hu),like:Tu,performance:cl,tags:wu.suggestTags};const vl=Vi({id:Wo.readonly().meta({description:"Unique identifier for the event collaborator"}),createdAt:jr().readonly().meta({description:"Timestamp in ISO 8601 format when the collaborator was added"}),updatedAt:jr().readonly().meta({description:"Timestamp in ISO 8601 format when the collaborator was last updated"}),eventId:Mo.meta({description:"Event this collaboration applies to"}),promoterId:Uo.meta({description:"Promoter collaborating on the event"}),acceptedBy:Co.meta({description:"User ID who accepted the invitation to collaborate"}),promoter:Vi({id:Uo.meta({description:"Unique identifier of the promoter"}),name:ri().meta({description:"Name of the promoter"}),teamId:So.meta({description:"Team ID of the promoter"})}).optional().meta({description:"Populated promoter details. Only included when explicitly requested."}),permissions:va.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:ri().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."}),gl=vl.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."}),yl=Vi({id:Wo.readonly().meta({description:"Unique identifier for the event collaboration invitation"}),createdAt:jr().readonly().meta({description:"Timestamp in ISO 8601 format when the invitation was created"}),updatedAt:jr().readonly().meta({description:"Timestamp in ISO 8601 format when the invitation was last updated"}),eventId:Mo.meta({description:"Event this invitation applies to"}),promoterId:Uo.meta({description:"Promoter being invited to collaborate on the event."}),invitedByPromoterId:Uo.meta({description:"Promoter who sent this invitation (event owner or collaborator with permission)."}),permissions:va.meta({description:"Permissions the promoter will receive upon accepting the invitation.",examples:[[],["event.read","event.write"],["order.read"],["ticket.scan"],["*"]]}),token:ri().readonly().meta({description:"Secure token for invite acceptance. Required to accept the invitation."}),invitedBy:Co.meta({description:"User ID who sent the invitation"}),expiresAt:Ti().int().positive().meta({description:"Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days."}),tenantId:ri().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."}),bl=yl.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."}),wl=Vi({eventId:Mo.meta({description:"Event ID that the collaboration belongs to"}),id:Wo.meta({description:"Event team access grant ID to retrieve"})}),$l=Vi({invite:yl}),kl=Vi({eventId:ri().meta({description:"Event ID to list collaborators for"}),accessPromoterId:ri().optional().meta({description:"DEPRECATED: Use 'promoterId' instead. Filter by collaborating promoter ID (what events can this promoter access). Maintained for backward compatibility."}),ownerPromoterId:ri().optional().meta({description:"DEPRECATED: No longer used. Maintained for backward compatibility only."}),limit:na("event collaborators"),cursor:ri().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."}),Il=Oa(vl,"grants"),xl=Vi({collaborator:vl});var El={get:de.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(wl.strict()).output(xl),list:de.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(kl.strict()).output(Il),create:de.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(bl.strict()).output($l),accept:de.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(gl.strict()).output(xl),remove:de.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(wl.strict()).output(zi())};const Al=Vi({language:ri().trim().max(80).optional(),platform:ri().trim().max(120).optional(),timezone:ri().trim().max(120).optional(),userAgent:ri().trim().max(800).optional(),viewport:Vi({width:Ti().int().positive().max(1e4),height:Ti().int().positive().max(1e4),devicePixelRatio:Ti().positive().max(10).optional()}).optional()}),Tl=Vi({key:ri().trim().min(1),message:ri().trim().min(10).max(4e3),pageUrl:ui().max(2e3),pageTitle:ri().trim().max(300).optional(),browser:Al.optional()}),Ol=Vi({ok:oo(!0)}),_l=Vi({file:new Ni({type:"any"}).describe("Image file to upload (max 10MB)"),folder:ro(["avatars","events","teams","promoters","venues"]).describe("Folder to upload to"),width:ko().int().positive().optional().describe("Target width in pixels"),height:ko().int().positive().optional().describe("Target height in pixels")}),Dl=Ho,Sl=de.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(_l.strict()).output(Dl);var Ml={shareFeedback:de.route({method:"POST",path:"/internal/feedback",summary:"Share product feedback",description:"Send authenticated tenant dashboard feedback to the Sessions team.",tags:["Internal"]}).input(Tl.strict()).output(Ol),uploadImage:Sl};const Pl=Vi({key:ri().min(1).meta({description:"Location key - either a location ID (loc_xxx format) or provider-specific identifier (e.g., Google Place ID)",examples:[xe.Location.id,"ChIJP3Sa8ziYEmsRUKgyFmh9AQM"]})}),jl=Vi({query:ri().min(1).meta({examples:["sydney opera"],description:"Search query for location search"}),latitude:ko().min(-90).max(90).optional().meta({examples:[xe.Location.latitude],description:"User's latitude for proximity-based results (optional for better relevance)"}),longitude:ko().min(-180).max(180).optional().meta({examples:[xe.Location.longitude],description:"User's longitude for proximity-based results (optional for better relevance)"}),types:Yi(ri()).optional().meta({examples:[["establishment"]],description:"Filter results by Google Place types (e.g., 'establishment', 'night_club', 'bar')"})}).meta({description:"Parameters for searching locations"}),Cl=Vi({googlePlaceId:ri().meta({examples:["ChIJP3Sa8ziYEmsRUKgyFmh9AQM"],description:"Google Place ID for this location"}),name:ri().meta({examples:[xe.Location.name],description:"Primary name of the location"}),description:ri().meta({examples:[xe.Location.address],description:"Full formatted address"}),venue:Vi({id:Po.meta({examples:[xe.Venue.id],description:"Venue ID if this location is a managed venue"}),name:ri().meta({examples:[xe.Venue.name],description:"Venue name"}),teamId:ri().meta({description:"Team that manages this venue"}),image:Ho.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"}),Nl=Vi({predictions:Yi(Cl).meta({description:"Array of location predictions"})}).meta({description:"Response containing location search results"}),Rl=Vi({location:_u});var Ul={list:de.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(jl.strict()).output(Nl),get:de.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(Pl.strict()).output(Rl)};const Ll=Vi({name:ri().meta({examples:["tenant-web","team-web","api","partner"],description:"Free-form channel identifier describing where the order originated."}),referrer:ri().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:ri().optional().meta({examples:["instagram"],description:"Optional UTM source captured from the originating URL."}),utmMedium:ri().optional().meta({examples:["social"],description:"Optional UTM medium captured from the originating URL."}),utmCampaign:ri().optional().meta({examples:["summer-launch"],description:"Optional UTM campaign captured from the originating URL."}),deviceType:ro(["MOBILE","TABLET","DESKTOP"]).optional().meta({examples:["MOBILE"],description:"Optional analytics device classification captured at order creation."}),browser:ri().optional().meta({examples:["Chrome"],description:"Optional analytics browser classification captured at order creation."}),country:ri().optional().meta({examples:["Australia"],description:"Optional viewer country captured at order creation for analytics attribution."}),region:ri().optional().meta({examples:["Australia - New South Wales"],description:"Optional viewer region captured at order creation for analytics attribution."}),sessionId:ri().optional().meta({examples:["ses_01HX..."],description:"Session ID captured at order creation for client/server analytics linking."}),anonymousId:ri().optional().meta({examples:["aid_01HX..."],description:"Browser anonymous ID captured at order creation for attribution linking."})}),ql=Vi({id:ri().meta({examples:[xe.CouponCode.id],description:"Unique identifier of the coupon code used in the order"}),name:ri().meta({examples:[xe.CouponCode.name],description:"The coupon code string that was entered by the customer"}),couponId:ri().meta({examples:[xe.CouponCode.couponId],description:"Unique identifier of the parent coupon configuration"})}),Gl=Vi({id:ri().meta({examples:[xe.Customer.id],description:"Unique identifier of the customer who placed the order"}),firstName:ri().meta({examples:[xe.Customer.firstName],description:"First name of the customer"}),lastName:ri().meta({examples:[xe.Customer.lastName],description:"Last name of the customer"}),email:ai().meta({examples:[xe.Customer.email],description:"Email address of the customer"}),phone:ri().meta({examples:[xe.Customer.phone],description:"Customer phone number in E.164 format for SMS delivery"}).optional()}),zl=Vi({id:ri().meta({examples:[xe.Event.id],description:"Unique identifier of the event associated with the order"}),name:ri().meta({examples:[xe.Event.name],description:"Display name of the event"}),slug:ri().meta({examples:[xe.Event.slug],description:"URL-friendly slug of the event"}),location:ri().meta({examples:[xe.Event.location.name],description:"Name of the venue or location where the event takes place"}).optional()}),Fl=ro(["GATEWAY","SHIPPING","SMS_DELIVERY"]).meta({description:"Type of fee applied to an order"}),Bl=Vi({id:ri().meta({examples:[xe.OrderFee.id],description:"Unique identifier for this order fee"}),createdAt:jr().readonly().meta({examples:[xe.OrderFee.createdAt],description:"Timestamp in ISO 8601 format when this fee was created"}),reason:ri().meta({examples:[xe.OrderFee.reason],description:"Description explaining why this fee was applied to the order"}),amount:Ti().finite("Amount must be a valid number").meta({examples:[xe.OrderFee.amount],description:"Fee amount in cents (positive value indicates charge to customer, negative value indicates credit or discount)"}),currency:Eo.meta({examples:[xe.OrderFee.currency],description:"Currency code in ISO 4217 format"}),requestId:ri().meta({examples:[xe.OrderFee.requestId],description:"External payment processor request identifier for tracking this fee"}),kind:Fl.optional().meta({examples:["GATEWAY"],description:"Type of fee for categorization and reporting"})}),Wl=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:Ie(me(new Date,1)),entryEndsAt:Ie(me(new Date,2)),publishAt:Ie(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}),Yl=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:Ie(me(new Date,1)),entryEndsAt:Ie(me(new Date,2)),saleStartsAt:Ie(new Date),saleEndsAt:Ie(me(new Date,2)),price:{base:1e3,booking:200,currency:"AUD"},tenantId:e.tenantId}),Zl=e=>({id:"tkt_01jps5cgsh51kzg7534pzap7gk",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),status:"REDEEMED",scans:[],token:e.token,attendee:{email:Hl.Customer.email,firstName:Hl.Customer.firstName,lastName:Hl.Customer.lastName},event:{id:Hl.WrongEvent.id,name:Hl.WrongEvent.name,slug:Hl.WrongEvent.slug,location:Hl.WrongEvent.location,entryStartsAt:Hl.WrongEvent.entryStartsAt,entryEndsAt:Hl.WrongEvent.entryEndsAt,images:Hl.WrongEvent.images},admission:{id:Hl.WrongAdmission.id,name:Hl.WrongAdmission.name,price:Hl.WrongAdmission.price,entryStartsAt:Hl.WrongAdmission.entryStartsAt,entryEndsAt:Hl.WrongAdmission.entryEndsAt},eventId:Hl.WrongEvent.id,customerId:Hl.Customer.id,orderId:Hl.WrongOrder.id,orderItemId:Hl.WrongOrderItem.id,admissionId:Hl.WrongOrderItem.admissionId,...e.teamId?{teamId:e.teamId}:{},promoterId:Hl.WrongPromoter.id,promoterSlug:Hl.WrongPromoter.slug,tenantId:Hl.Tenant.id}),Vl=e=>{let t=new Date(2020,1,1);return{...xe.Event,id:e.id,status:e.status,createdAt:t.toISOString(),updatedAt:t.toISOString(),publishAt:Ie(t),entryStartsAt:Ie(t),entryEndsAt:Ie(new Date(2020,1,2)),slug:e.slug,name:e.name}};let Hl;!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}=xe;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=Vl({id:"evt_01jqqt1ztw4676fdrr27z7de1c",status:"ENDED",slug:"past-event",name:"Past Event"}),e.CancelledEvent=Vl({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:Hl.User.id,user:Hl.User,id:"mbr_01jpwzceh3zvab64kwq633q4cc"},e.SmsOrder={...T,id:xe.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:xe.Customer,customerId:xe.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,visibility:"ALWAYS",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,visibility:"ALWAYS",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,visibility:"ALWAYS"};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=Wl({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=Yl({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,visibility:"ALWAYS",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:Ie(new Date(2020,0,1)),entryEndsAt:Ie(me(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:Ie(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=Zl({token:"a1b2c3d4e5f6789012345678901234567890123456789012345678901234abcd",teamId:C.id}),e.AnotherTicket={...D,id:"tkt_01jq6v4gmad9m28kzw8g8910jw"},e.ExpiredTicket=Zl({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},Y=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"},Z=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:Y.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:Z.id,promoterSlug:Z.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=Wl({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:Y.id,promoterId:Z.id,tenantId:B.id}),Q=e.MixmagSashEvent=Wl({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:Y.id,promoterId:Z.id,tenantId:B.id}),X=e.MixmagAdmission=Yl({id:"adm_01jps5cgsmbepdasrtxvh9xa0k",sectionId:(e.MixmagSection={id:"sct_01jps5cgsmhrfxjn18y9bfdqc2",createdAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),teamId:Y.id,promoterId:Z.id,eventId:J.id,eventSlug:J.slug,name:"Mixmag Admission",capacity:200,limit:-1,available:200,reserved:0,order:0,sold:0,visibility:"ALWAYS",location:h,tenantId:B.id}).id,teamId:Y.id,promoterId:Z.id,eventId:J.id,eventSlug:J.slug,name:"Mixmag Release",tenantId:B.id});e.MixmagSashAdmission=Yl({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:Y.id,promoterId:Z.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:Ie(new Date(2025,1,10,3,0,0)),saleEndsAt:void 0,deletedAt:void 0,teamId:Y.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:Y.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:Z.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:Z.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:Z.id,promoterSlug:Z.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}}}}(Hl||={});const Kl=Vi({net:_i().min(0).meta({examples:[xe.OrderItem.price.net],description:"Total amount to pay to promoter in cents.\nCalculated as: total - booking - refunded"}),total:_i().min(0).meta({examples:[xe.OrderItem.price.total],description:"Total amount the customer should pay in cents.\nCalculated as: gross - discount"}),gross:_i().min(0).meta({examples:[xe.OrderItem.price.gross],description:"Total amount before refunds and discounts in cents.\nCalculated as: base + booking"}),base:_i().min(0).meta({examples:[xe.OrderItem.price.base],description:"Total ticket price in cents"}),booking:_i().min(0).meta({examples:[xe.OrderItem.price.booking],description:"Total booking fees in cents (non-refundable)"}),refunded:_i().max(0).meta({examples:[xe.OrderItem.price.refunded],description:"Total amount refunded in cents"}),discount:_i().max(0).meta({examples:[xe.OrderItem.price.discount],description:"Total amount discounted in cents"}),currency:Eo.meta({examples:[xe.OrderItem.price.currency],description:"Currency code in ISO 4217 format."})}),Jl=ro(["ADMISSION","ADDON"]),Ql=Vi({id:ri().meta({examples:[xe.OrderItem.id],description:"Unique identifier for this order item"}),kind:Jl.meta({examples:[xe.OrderItem.kind],description:"Type of item: ADMISSION for tickets, ADDON for additional products or services"}),quantity:_i().min(1).meta({examples:[xe.OrderItem.quantity],description:"Number of items purchased (minimum 1)"}),admissionId:ri().optional().meta({examples:[xe.OrderItem.admissionId],description:"Unique identifier of the admission ticket type, required for ADMISSION items"}),sectionId:ri().optional().meta({examples:[xe.OrderItem.sectionId],description:"Unique identifier of the venue section for this admission"}),admission:Ia.optional().meta({examples:[Hl.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:Su.optional().meta({examples:[Hl.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:Kl.meta({description:"Pricing breakdown for this order item including all fees and discounts"})}),Xl=Vi({promoter:Si(),tenant:Si()}),ep=ro(["SMS_DELIVERY"]).meta({description:"Type of pre-computed offer available for this order"}),tp=Vi({amount:_i().min(0).meta({examples:[200],description:"Offer price in the smallest currency unit (e.g. cents)"}),currency:Eo.meta({examples:["AUD"],description:"Three-letter ISO 4217 currency code"})}),np=Vi({kind:ep.meta({examples:["SMS_DELIVERY"],description:"Discriminator identifying the type of offer"}),label:ri().meta({examples:["SMS ticket delivery"],description:"Human-readable label for the offer"}),price:tp.meta({description:"Pre-computed price for this offer"})}),rp=ro(["FREE","AIRWALLEX","STRIPE"]),ip=ro(["AMERICAN_EXPRESS","CHINA_UNION_PAY","DINERS_CLUB_INTERNATIONAL","DISCOVER","JCB","MAESTRO","MASTERCARD","UNION_PAY","VISA"]),op=ro("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(".")),ap=Vi({method:rp.meta({examples:["FREE"],description:"Payment gateway used to process this order: FREE for no-cost orders, AIRWALLEX or STRIPE for paid orders"}),source:op.optional().meta({examples:["APPLEPAY","GOOGLEPAY","CARD"],description:"Payment method used by the customer such as ApplePay, GooglePay, or card-based payments"}),brand:ip.optional().meta({examples:["VISA","MASTERCARD","AMERICAN_EXPRESS"],description:"Card brand when source is CARD (Visa, Mastercard, American Express, etc.)"}),last4:ri().optional().meta({examples:["4242"],description:"Last 4 digits of the card number when source is CARD"}),stripeId:ri().optional().meta({examples:["pi_1234567890abcdef"],description:"Stripe payment intent identifier when using Stripe gateway"}),stripeClientSecret:ri().optional().meta({examples:["pi_1234567890abcdef_secret_xyz"],description:"Stripe PaymentIntent client secret associated with the order, used to complete the payment flow"}),stripeAccountId:ri().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:ri().optional().meta({examples:["int_hkdmr7v9rg1j8donpkmv96"],description:"Airwallex payment intent identifier when using Airwallex gateway"}),airwallexClientSecret:ri().optional().meta({examples:["eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiaW50ZW50X2lkIjoiaW50X2hrZG1yN3Y5cmcxajhkb25wa212OTYifQ.K8vLx2nPzQHdR5mT1wYcBfJkLmNpS3xG7aE9dH4qZvM"],description:"Airwallex client secret used to authenticate requests for payment initialization"}),airwallexCustomerId:ri().optional().meta({examples:["cus_hkdmrhkh8he4j3kvela"],description:"Airwallex customer ID attached to the PaymentIntent for saved cards functionality"}),airwallexCustomerClientSecret:ri().optional().meta({examples:["eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiY3VzdG9tZXJfaWQiOiJjdXNfaGtkbXJoa2g4aGU0ajNrdmVsYSJ9.abc123"],description:"Airwallex customer client secret for accessing saved payment methods in the Drop-in Element"})}),sp=Vi({net:_i().meta({examples:[xe.Order.price.net],description:"Total amount to pay to promoter in cents.\nCalculated as: total + booking + refunded + dispute"}),total:_i().meta({examples:[xe.Order.price.total],description:"Total amount the customer should pay in cents.\nCalculated as: gross + discount"}),gross:_i().min(0).meta({examples:[xe.Order.price.gross],description:"Total amount before refunds and discounts in cents.\nCalculated as: base + booking + shipping"}),base:_i().min(0).meta({examples:[xe.Order.price.base],description:"Total ticket price in cents"}),booking:_i().min(0).meta({examples:[xe.Order.price.booking],description:"Total booking fees in cents (non-refundable)"}),shipping:_i().min(0).meta({examples:[xe.Order.price.shipping],description:"Total shipping amount in cents"}),sms:_i().min(0).default(0).meta({examples:[xe.Order.price.sms],description:"SMS delivery fee in cents (customer-facing price in event currency)"}),refunded:_i().max(0).meta({examples:[xe.Order.price.refunded],description:"Total amount refunded in cents (negative value)"}),discount:_i().max(0).meta({examples:[xe.Order.price.discount],description:"Total amount discounted in cents (negative value)"}),gateway:_i().max(0).meta({examples:[xe.Order.price.gateway],description:"Total absorbed payment gateway fees in cents (negative value)"}),dispute:_i().max(0).meta({examples:[xe.Order.price.dispute],description:"Total non-absorbed payment gateway fees in cents (negative value)"}),currency:Eo.meta({examples:[xe.Order.price.currency],description:"Currency code in ISO 4217 format"})}),dp=ro(["PENDING","PROCESSING","SUCCEEDED","FAILED"]),cp=ro(["CUSTOMER_REQUEST","DUPLICATE","EVENT_CANCELLED","OTHER"]),up=ro(["USER","GATEWAY","SYSTEM"]),lp=Vi({orderItemId:ri().meta({examples:[xe.OrderRefundItem.orderItemId],description:"Identifier of the order item being refunded"}),quantity:_i().min(1).meta({examples:[xe.OrderRefundItem.quantity],description:"Number of units refunded for this item"}),amount:_i().min(0).meta({examples:[xe.OrderRefundItem.amount],description:"Refund amount for this item in cents (base price only, excludes booking fee)"}),ticketIds:Yi(ri()).meta({examples:[xe.OrderRefundItem.ticketIds],description:"Specific ticket identifiers that were refunded (selected via FIFO)"})}),pp=Vi({idempotencyKey:ri().optional().meta({examples:[xe.OrderRefund.request.idempotencyKey],description:"Client-provided key to prevent duplicate refund processing"})}),mp=Vi({currency:ri().meta({examples:["AUD"],description:"Currency used for all refund amounts"}),total:_i().min(1).meta({examples:[xe.OrderRefund.price.total],description:"Total refund amount in cents, including ticket, shipping, and fee portions."}),items:_i().min(0).meta({examples:[xe.OrderRefund.price.items],description:"Ticket item portion of the refund in cents"}),shipping:_i().min(0).meta({examples:[xe.OrderRefund.price.shipping],description:"Shipping portion of the refund in cents"}),fees:_i().min(0).meta({examples:[xe.OrderRefund.price.fees],description:"Fee portion of the refund in cents"})}),fp=Vi({cancelRequested:Si().meta({examples:[xe.OrderRefund.tickets.cancelRequested],description:"Whether ticket cancellation was requested for the refund"}),cancelled:Si().meta({examples:[xe.OrderRefund.tickets.cancelled],description:"Whether tickets were cancelled as part of this refund"}),cancelledCount:_i().min(0).meta({examples:[xe.OrderRefund.tickets.cancelledCount],description:"Number of tickets that were cancelled"})}),hp=Vi({provider:rp.meta({examples:["STRIPE","AIRWALLEX"],description:"Payment gateway used to process the refund"}),refundId:ri().optional().meta({examples:[xe.OrderRefund.gateway.refundId],description:"Refund identifier from the payment gateway"}),idempotencyKey:ri().optional().meta({examples:[xe.OrderRefund.gateway.idempotencyKey],description:"Idempotency key sent to the payment gateway"})}),vp=Vi({type:up.meta({examples:["USER","GATEWAY"],description:"Who initiated the refund"}),userId:ri().optional().meta({examples:[xe.OrderRefund.actor.userId],description:"Identifier of the user who initiated the refund"})}),gp=Vi({requested:Si().meta({examples:[xe.OrderRefund.notification.requested],description:"Whether a customer refund confirmation email was requested."}),sentAt:jr().optional().meta({examples:[xe.OrderRefund.notification.sentAt],description:"Timestamp when the refund confirmation email was sent."})}),yp=Vi({reason:ri().meta({examples:["Insufficient funds for refund"],description:"Gateway or system failure reason"}),message:ri().optional().meta({examples:["The refund could not be processed."],description:"User-facing failure message when available"})}),bp=Vi({id:ri().meta({examples:[xe.OrderRefund.id],description:"Unique identifier for this refund"}),request:pp.optional().meta({description:"Request metadata supplied by Sessions or API callers"}),status:dp.meta({examples:["PENDING","SUCCEEDED"],description:"Current processing status. PENDING: awaiting gateway confirmation or async processing (e.g., bank transfers). PROCESSING: gateway confirmed, ticket cancellation in progress. SUCCEEDED/FAILED: terminal states."}),acceptedAt:jr().optional().meta({examples:[xe.OrderRefund.acceptedAt],description:"Timestamp when the payment gateway accepted the refund"}),failedAt:jr().optional().meta({examples:[xe.OrderRefund.failedAt],description:"Timestamp when the refund failed"}),failure:yp.optional().meta({description:"Failure details when the refund failed"}),price:mp.meta({description:"Refund amount breakdown"}),reason:cp.meta({examples:["CUSTOMER_REQUEST","DUPLICATE","EVENT_CANCELLED"],description:"Categorized reason for the refund used for analytics"}),note:ri().optional().meta({examples:[xe.OrderRefund.note],description:"Free-form notes explaining the refund"}),items:Yi(lp).meta({description:"Line items included in this refund with quantities and amounts"}),tickets:fp.meta({description:"Ticket cancellation state for the refund"}),gateway:hp.meta({description:"Gateway refund identifiers"}),actor:vp.meta({description:"Refund initiator"}),metadata:to(ri(),ri()).optional().meta({examples:[{supportTicket:"#12345"}],description:"Custom key-value pairs passed through to the payment gateway"}),notification:gp.meta({description:"Refund confirmation notification state"}),createdAt:jr().meta({examples:[xe.OrderRefund.createdAt],description:"Timestamp when the refund was created"})}),wp=sp.extend({exchangeRate:Ti().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 $p(e,t,n={}){return Vi({id:ri().meta({examples:t.idExamples,description:t.idDescription}),createdAt:jr().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:Si().meta({examples:[!1],description:"Whether this timeline entry can be edited by users"}),pinned:Si().meta({examples:[!1],description:"Whether this timeline entry is pinned to the top of the timeline"}),description:ri().meta({examples:t.descriptionExamples,description:"Human-readable description of what happened in this timeline event"}),author:ri().meta({examples:["System"],description:"Name of the user or system that created this timeline entry"}),userId:ri().optional().meta({examples:[xe.User.id],description:t.userIdDescription??"Identifier of the user who created this timeline entry, when available"}),externalId:ri().optional().meta({examples:t.externalIdExamples,description:t.externalIdDescription})})}const kp=$p(ro("ORDER_STATUS_UPDATED.ORDER_EXPIRED.ORDER_COMPLETED.PAYMENT_INITIATED.PAYMENT_PROCESSING.PAYMENT_FAILED.PAYMENT_SUCCEEDED.REFUND_INITIATED.REFUND_PROCESSING.REFUND_SUCCEEDED.REFUND_SETTLED.REFUND_FAILED.CHARGEBACK_INITIATED.CHARGEBACK_EVIDENCE_SUBMITTED.CHARGEBACK_WON.CHARGEBACK_LOST.CHARGEBACK_FUNDS_WITHDRAWN.TICKETS_GENERATED.TICKET_ADDED.TICKETS_SCANNED.TICKET_EDITED.TICKET_STATUS_CHANGED.EMAIL_SENT.EMAIL_DELIVERED.EMAIL_OPENED.EMAIL_BOUNCED.EMAIL_COMPLAINED.EMAIL_FAILED.SMS_SENT.SMS_DELIVERED.SMS_FAILED.NOTE".split(".")),{createdAtExamples:[xe.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:[xe.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:ri().optional().meta({examples:["SUCCESSFUL"],description:"Order status associated with this timeline entry, when applicable."})}),Ip=ro(["PENDING","PROCESSING","SUCCESSFUL","DISPUTED","ABANDONED"]),xp=Vi({id:No.readonly().meta({examples:[xe.Order.id],description:"A unique identifier for this order."}),createdAt:jr().readonly().meta({examples:[xe.Order.createdAt],description:"Timestamp in ISO 8601 format when this order was created."}),updatedAt:jr().readonly().meta({examples:[xe.Order.updatedAt],description:"Timestamp in ISO 8601 format when this order was last updated."}),status:Ip.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:ap.optional().meta({description:"Payment gateway details including method, card brand, and transaction identifiers. Absent for free orders."}),items:Yi(Ql).meta({description:"Line items in this order, each with a ticket type, quantity, and price breakdown."}),fees:Yi(Bl).meta({description:"Gateway fees recorded against this order from settlement processing (e.g. payment processing fees, dispute fees)."}),price:sp.meta({description:"Price breakdown in the event currency. This reflects what the customer was charged."}),settlement:wp.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:ql.optional().meta({description:"Coupon code applied to this order for discount calculation."}),customer:Gl.optional().meta({description:"Customer who placed this order. Absent for guest checkouts before customer details are captured."}),marketingConsent:Xl.optional().meta({description:"Marketing opt-in choices captured during checkout."}),timeline:Yi(kp).optional().meta({description:"Chronological audit trail of events for this order (payments, refunds, emails, scans)."}),refunds:Yi(bp).default([]).meta({description:"Refunds processed for this order including pending, succeeded, and failed attempts."}),offers:Yi(np).default([]).meta({description:"Pre-computed add-on offers available during checkout (e.g. SMS ticket delivery)."}),customerId:Lo.optional().meta({examples:[xe.Customer.id],description:"Identifier of the customer who placed this order."}),createdBy:Gl.optional().meta({description:"Admin user who created this order on behalf of the customer."}),teamId:So.meta({description:"Team that owns this order."}),promoterId:Uo.meta({examples:[xe.Promoter.id],description:"Promoter managing this order."}),event:zl.meta({description:"Snapshot of the event at time of purchase (name, slug, location)."}),payoutIds:Yi(zo.meta({examples:["pay_01HQXYZ"],description:"Payout identifier."})).meta({description:"Payout identifiers for settlements that included this order."}),eventId:Mo.meta({examples:[xe.Event.id],description:"Identifier of the event this order belongs to."}),checkoutUrl:ri().optional().readonly().meta({examples:["https://example.com/checkout/ord_1234567890"],description:"Derived checkout URL where the customer can complete payment for this order."}),returnUrl:ri().optional().meta({examples:["https://example.com/event/success"],description:"URL to redirect to after successful payment completion."}),channel:Ll.optional().meta({description:"Channel metadata captured at order creation to identify origin and redirect context."}),reservedAt:jr().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."}),Ep=Vi({id:ri().meta({examples:[xe.Order.id],description:"Unique identifier of the order to add a note to"}),note:ri().min(1).max(1e3).meta({examples:["Customer requested special seating arrangements"],description:"Note text content (1-1000 characters)"})}),Ap=Ql.omit({id:!0,price:!0,kind:!0}).extend({id:ri().optional().meta({examples:["itm_01jps5cgsfwyxj0516571eaf17"],description:"Unique identifier for this order item. When omitted, the server assigns an id during processing"})}),Tp=Vi({eventId:ri().meta({description:"Unique identifier of the event for which to create a complimentary order"}),items:Yi(Ap).min(1).meta({description:"Admission items to include in the complimentary order"}),customer:Vi({firstName:ri().min(1),lastName:ri().min(1),email:ai()}),notifyCustomer:Si().default(!0).meta({description:"Whether to send the standard order confirmation email after tickets are generated"}),reason:ri().min(1),idempotencyKey:ri().trim().min(1).max(255).optional()}),Op=Vi({eventId:ri().meta({examples:["evt_01jps5cgsenjrazw6wswmyspa3"],description:"Unique identifier of the event for which to create the order"}),items:Yi(Ap).meta({description:"List of items to include in the new order"}),couponCode:ri().optional().meta({examples:["TEST50"],description:"Optional coupon code to apply discount to the order"}),returnUrl:ri().optional().meta({examples:["https://example.com/event/success"],description:"Optional URL to redirect to after successful payment"}),channel:Ll.optional().meta({description:"Optional channel metadata for where the order originated (for attribution and redirect routing)."})}),_p=Vi({id:ri().meta({examples:[xe.Order.id],description:"Unique identifier of the order"}),noteId:ri().meta({examples:["tl_1234567890_abc123"],description:"Unique identifier of the timeline note to delete"})}),Dp=ro(["EMAIL","SMS"]).meta({examples:["EMAIL"],description:"Method used to deliver tickets to the customer: EMAIL or SMS"});Vi({id:ri().meta({examples:[xe.Order.id],description:"Unique identifier of the order to edit"}),signature:ya.meta({description:"HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for editing order items."}),items:Yi(Ap).min(1).meta({description:"Updated list of items for the order (replaces existing items). Prices will be recalculated and payment intent updated."})});const Sp=Vi({id:ri().meta({examples:[xe.Order.id],description:"Unique identifier of the order to retrieve"}),signature:ya.optional().meta({description:"HMAC signature for public order access (16 characters, base64url encoded)"})}),Mp="Either locationId or googlePlaceId must be provided",Pp={locationId:jo.optional().meta({examples:["loc_01jqpjksnsen9vprw95et60t2m"],description:"ID of an existing location. Either locationId or googlePlaceId must be provided."}),googlePlaceId:ri().optional().meta({examples:["ChIJN1t_tDeuEmsRUsoyG83frY4"],description:"Google Place ID to create a new location from. Either locationId or googlePlaceId must be provided."})};function jp(e){return!(!e.locationId&&!e.googlePlaceId)}const Cp=Su.omit({id:!0,createdAt:!0,updatedAt:!0,order:!0,available:!0,sold:!0,reserved:!0,visibility:!0,promoterId:!0,eventSlug:!0,location:!0}).extend({order:Ti().optional().meta({examples:[xe.Section.order],description:"Display order of the section. Lower numbers appear first in listings. Defaults to 0 if not specified"}),visibility:Su.shape.visibility.optional(),...Pp}).refine(jp,{message:Mp}).meta({description:"Schema for creating a new section within an event venue. Excludes system-generated fields and fields derived from the event"}),Np=Su.pick({id:!0}).extend({eventId:ri().meta({examples:[xe.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"}),Rp=Su.pick({id:!0}).extend({eventId:ri().meta({examples:[xe.Section.eventId],description:"Unique identifier of the event to verify section belongs to"})}).meta({description:"Schema for retrieving a specific section by ID"}),Up=Vi({eventId:Su.shape.eventId,query:ri().optional().meta({examples:["VIP"],description:"Optional search query. When provided, automatically uses search-backed pagination for full-text search capabilities"}),limit:ko().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:ri().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"}),Lp=Oa(Su,"sections"),qp=Vi({section:Su}),Gp=Su.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}).extend({id:ri().meta({examples:[xe.Section.id],description:"Unique identifier of the section to update"}),eventId:ri().meta({examples:[xe.Section.eventId],description:"Unique identifier of the event to verify section belongs to"}),name:Su.shape.name.optional(),capacity:Ko().optional(),limit:Jo().optional(),order:Su.shape.order.optional(),visibility:ro(["ALWAYS","STACKED","HIDDEN"]).optional(),locationId:jo.optional().meta({examples:["loc_01jqpjksnsen9vprw95et60t2m"],description:"ID of an existing location to update to. Either locationId or googlePlaceId can be provided."}),googlePlaceId:ri().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."}),zp=Ql.extend({admission:Ia.optional().meta({description:"Complete admission details for this order item when available"}),section:Su.optional().meta({description:"Complete section details for this order item when applicable"})}),Fp=ro(["asc","desc"]),Bp=Vi({mine:Si().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:ri().optional().meta({description:"Filter orders by team unique identifier"}),eventId:ri().optional().meta({examples:["evt_01jps5cgsenjrazw6wswmyspa3"],description:"Filter orders by event unique identifier"}),status:Ip.optional().meta({examples:["SUCCESSFUL"],description:"Filter orders by payment status"}),query:ri().optional().meta({examples:["John Doe"],description:"Optional search query to filter orders by customer details. When provided, search-backed pagination is used."}),includeEventTerms:Si().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:Fp.optional().meta({examples:["asc","desc"],description:"Sort direction for order lists. Orders are always sorted by creation time. Defaults to `desc` when omitted."}),from:ri().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:ri().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:na("orders"),cursor:ri().optional().meta({examples:["eyJpZCI6Im9yZF8wMWpwczVjZ3NmZ3ZlNWI1ZzI2NjZreXJ5aCJ9"],description:"Pagination cursor for continuing to fetch subsequent results"})}),Wp=Oa(xp,"orders"),Yp=Vi({items:Yi(zp).meta({description:"List of order items with complete pricing and admission details"}),price:sp.meta({description:"Total pricing breakdown for the entire order quote"}),couponCode:Jc.optional().meta({description:"Applied coupon code details if a discount was used in this quote"})}),Zp=Vi({eventId:ri().meta({examples:["evt_01jps5cgsenjrazw6wswmyspa3"],description:"Unique identifier of the event for which to generate a price quote"}),items:Yi(Ap).meta({description:"List of items to include in the price quote calculation"}),couponCode:ri().optional().meta({examples:["TEST50"],description:"Optional coupon code to apply discount to the quote"})}),Vp=Vi({quote:Yp}),Hp=Vi({orderItemId:ri().meta({examples:[xe.OrderRefundItem.orderItemId],description:"Identifier of the order item to refund"}),quantity:_i().min(1).meta({examples:[xe.OrderRefundItem.quantity],description:"Number of units to refund for this item"})}),Kp=Vi({id:No.meta({examples:[xe.Order.id],description:"Identifier of the order to refund"}),fullRefund:Si().default(!1).meta({examples:[!1],description:"When true, refunds all remaining refundable items. Mutually exclusive with items."}),items:Yi(Hp).optional().meta({description:"Specific items and quantities to refund. Required if fullRefund is false."}),shippingAmount:_i().min(0).optional().meta({examples:[500],description:"Amount of shipping to refund in cents. Cannot exceed remaining refundable shipping."}),cancelTickets:Si().default(!0).meta({examples:[!0],description:"Whether to cancel tickets associated with refunded items. Defaults to true."}),notify:Si().default(!0).meta({examples:[!0],description:"Whether to send a refund confirmation email to the customer. Defaults to true."}),reason:cp.meta({examples:["CUSTOMER_REQUEST","DUPLICATE","EVENT_CANCELLED"],description:"Categorized reason for the refund"}),note:ri().optional().meta({examples:["Customer requested refund due to schedule conflict"],description:"Free-form notes explaining the refund"}),idempotencyKey:ri().optional().meta({examples:["refund_12345_customer_request"],description:"Client-provided key to prevent duplicate refund processing. Recommended for programmatic refunds."}),metadata:to(ri(),ri()).optional().meta({examples:[{supportTicket:"#12345"}],description:"Custom key-value pairs passed through to the payment gateway"})}),Jp=Vi({refund:bp}),Qp=Vi({id:ri().meta({examples:[xe.Order.id],description:"Order ID to resend tickets for"}),email:ri().email().optional().meta({examples:["customer@example.com"],description:"Email address to send tickets to. If not provided, uses order.customer.email"})}),Xp=Vi({id:ri().meta({examples:[xe.Order.id],description:"Unique identifier of the order to reserve inventory for"}),signature:ya.meta({description:"HMAC signature for customer access during checkout (16 characters, base64url encoded)."})}),em=Vi({order:xp});var tm={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 nm(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 rm={}.constructor;function im(e){return null!=e&&e.constructor===rm}function om(e){return om="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},om(e)}function am(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function sm(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,dm(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dm(e){var t=function(e){if("object"!=om(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=om(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==om(t)?t:t+""}var cm=" ext. ",um=/^\d+$/,lm=sm((function e(t){am(this,e),gm(t),this.metadata=t,wm.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&&um.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw Error(`Unknown country: ${e}`);this.numberingPlan=new pm(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw Error(`Unknown calling code: ${t}`);this.numberingPlan=new pm(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}}]),pm=sm((function e(t,n){am(this,e),this.globalMetadataObject=n,this.metadata=t,wm.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 mm(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()&&vm(this.types(),e))return new hm(vm(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?cm:this.metadata[13]||cm}}]),mm=sm((function e(t,n){am(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()||fm.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),fm=/^\(?\$1\)?$/,hm=sm((function e(t,n){am(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 vm(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 gm(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!im(e)||!im(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 ${im(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+ym(e)+": "+e}.`)}var ym=function(e){return om(e)};function bm(e,t){if((t=new lm(t)).hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw Error(`Unknown country: ${e}`)}function wm(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===nm(t,"1.2.0")?this.v2=!0:-1===nm(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}function $m(e,t,n){return function(e,t,n,r){t&&(r=new lm(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 km(e,t,n){return"IS_POSSIBLE"===$m(e,t,n)}function Im(e,t){return e||="",RegExp("^(?:"+t+")$").test(e)}function xm(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 Em=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Am(e,t,n){if(t||={},e.country||e.countryCallingCode){(n=new lm(n)).selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(Im(r,n.nationalNumberPattern())){if(Tm(r,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()||!n.type("MOBILE")||Tm(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 xm(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)?xm(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.")}(Em);!(i=o()).done;){var a=i.value;if(Tm(r,a,n))return a}}}}function Tm(e,t,n){return!(!(t=n.type(t))||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&Im(e,t.pattern())}var Om="0-90-9٠-٩۰-۹",_m="-‐-―−ー-//..  ­​⁠ ()()[]\\[\\]~⁓∼~",Dm=RegExp("(["+Om+"])");function Sm(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 Mm(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 lm(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 Sm(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)?Sm(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(Am({phone:e,country:a},void 0,r.metadata))return a}}(n,{countries:i,metadata:r.metadata})}function Pm(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!(Im(e,n.nationalNumberPattern())&&!Im(t,n.nationalNumberPattern()))}(e,o,n)&&(!n.numberingPlan.possibleLengths()||(t||=Mm(n.numberingPlan.callingCode(),{nationalNumber:o,metadata:n}),function(e,t,n){switch($m(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(o,t,n)))?{nationalNumber:o,carrierCode:i}:{nationalNumber:e}}function jm(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 lm(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(Dm);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?bm(n,i):r;if(0===e.indexOf(o)){(i=new lm(i)).selectNumberingPlan(n,o);var a=e.slice(o.length),s=Pm(a,t,i).nationalNumber,d=Pm(e,t,i).nationalNumber;if(!Im(d,i.nationalNumberPattern())&&Im(s,i.nationalNumberPattern())||"TOO_LONG"===$m(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 lm(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 Cm=/(\$\d)/;var Nm=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/,Rm=function(e){return`([${Om}]{1,${e}})`};function Um(){var e="[  \\t,]*",t="[:\\..]?[  \\t,-]*",n="#?",r="[  \\t]*";return";ext="+Rm("20")+"|"+e+"(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)"+t+Rm("20")+"#?|"+e+"(?:[xx##~~]|int|int)"+t+Rm("9")+"#?|[- ]+"+Rm("6")+"#|"+r+"(?:,{2}|;)"+t+Rm("15")+"#?|"+r+"(?:,)+"+t+Rm("9")+n}var Lm="["+Om+"]{2}",qm="[++]{0,1}(?:["+_m+"]*["+Om+"]){3,}["+_m+Om+"]*",Gm=RegExp("^[++]{0,1}(?:["+_m+"]*["+Om+"]){1,2}$","i"),zm=qm+"(?:"+Um()+")?",Fm=RegExp("^"+Lm+"$|^"+zm+"$","i"),Bm={formatExtension:function(e,t,n){return`${e}${n.ext()}${t}`}};function Wm(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 Im(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(Cm,t.nationalPrefixFormattingRule()):t.format());return r?function(e){return e.replace(RegExp(`[${_m}]+`,"g")," ").trim()}(o):o}(e,o,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!(o.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&!1===i.nationalPrefix)}):e}function Ym(e,t,n,r){return t?r(e,t,n):e}function Zm(e){return Zm="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},Zm(e)}function Vm(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 Hm(e){for(var t=1;t<arguments.length;t++){var n=null==arguments[t]?{}:arguments[t];t%2?Vm(Object(n),!0).forEach((function(t){Km(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Km(e,t,n){return(t=Jm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jm(e){var t=function(e){if("object"!=Zm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zm(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zm(t)?t:t+""}var Qm=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,Jm(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(im(n)&&im(n.countries)){r=n;var i=t;if(!ef.test(i))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var o=jm(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");gm(r);var a=function(e,t){var n,r,i=new lm(t);return Xm(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 lm(n).getCountryCodesForCallingCode(e);return r?r.filter((function(e){return function(e,t,n){var r=new lm(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 lm(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 km(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 lm(n)).selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?void 0!==Am(e,t,n.metadata):Im(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new lm(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return Am(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]}({},Bm,n):Bm,r=new lm(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?Ym(Wm(o,0,"NATIONAL",r,n),e.ext,r,n.formatExtension):"";case"INTERNATIONAL":return o?Ym(`+${i} ${Wm(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(bm(r,i.metadata)===n){var o=Wm(e,0,"NATIONAL",i);return"1"===n?n+" "+o:o}var a=function(e,t,n){var r=new lm(n);return r.selectNumberingPlan(e,void 0),r.defaultIDDPrefix()?r.defaultIDDPrefix():Nm.test(r.IDDPrefix())?r.IDDPrefix():void 0}(r,0,i.metadata);if(a)return`${a} ${n} ${Wm(e,0,"INTERNATIONAL",i)}`}(o,0,i,n.fromCountry,r);return a?Ym(a,e.ext,r,n.formatExtension):void 0;default:throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`)}}(this,e,t?Hm(Hm({},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)}}]),Xm=function(e){return/^[A-Z]{2}$/.test(e)},ef=/^\+\d+$/;function tf(e){return tf="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},tf(e)}function nf(e){var t="function"==typeof Map?new Map:void 0;return nf=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(rf())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&of(i,n.prototype),i}(e,arguments,af(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),of(n,e)},nf(e)}function rf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(rf=function(){return!!e})()}function of(e,t){return of=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},of(e,t)}function af(e){return af=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},af(e)}var sf=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=af(t),function(e,t){if(t&&("object"==tf(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,rf()?Reflect.construct(t,n||[],af(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&&of(e,t)}(e,nf(Error)),function(e){return Object.defineProperty(e,"prototype",{writable:!1}),e}(e)}(),df=RegExp("(?:"+Um()+")$","i"),cf={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 uf(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 lf(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 uf(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)?uf(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+=pf(t.value,n)||"";return n}function pf(e,t){if("+"===e){if(t)return;return"+"}return function(e){return cf[e]}(e)}var mf="(["+Om+"]|[\\-\\.\\(\\)]?)",ff=new RegExp("^\\+"+mf+"*["+Om+"]"+mf+"*$","g"),hf=new RegExp("^(["+Om+"]+((\\-)*["+Om+"])*\\.)*[a-zA-Z]+((\\-)*["+Om+"])*\\.?$","g"),vf=";phone-context=";var gf=RegExp("[++"+Om+"]"),yf=RegExp("[^"+Om+"#]+$");function bf(e,t,n){if(t||={},n=new lm(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new sf("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(vf);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&&(ff.test(e)||hf.test(e))}(i))throw new sf("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(vf);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 sf("TOO_LONG");return}if(!1===t)return e;var r=e.search(gf);if(!(r<0))return e.slice(r).replace(yf,"")}}(e,n,t)}});if(!r)return{};if(!function(e){return e.length>=2&&Fm.test(e)}(r))return function(e){return Gm.test(e)}(r)?{error:"TOO_SHORT"}:{};var i=function(e){var t=e.search(df);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(df),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 sf("TOO_SHORT"===r.error?"TOO_SHORT":"NOT_A_NUMBER");return{}}var a=function(e,t,n,r){var i,o=jm(lf(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||bm(t,r.metadata)}if(!d)return{countryCallingCodeSource:a,countryCallingCode:s};var c=Pm(lf(d),i,r),u=c.nationalNumber,l=c.carrierCode,p=Mm(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 sf("INVALID_COUNTRY");return{}}if(!d||d.length<2){if(t.v2)throw new sf("TOO_SHORT");return{}}if(d.length>17){if(t.v2)throw new sf("TOO_LONG");return{}}if(t.v2){var p=new Qm(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)&&Im(d,n.nationalNumberPattern());return t.extended?{country:s,countryCallingCode:c,carrierCode:l,valid:m,possible:!!m||!(!0!==t.extended||!n.possibleLengths()||!km(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 wf(e){return wf="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},wf(e)}function $f(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 kf(e){for(var t=1;t<arguments.length;t++){var n=null==arguments[t]?{}:arguments[t];t%2?$f(Object(n),!0).forEach((function(t){If(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function If(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=wf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=wf(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==wf(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xf(e){return xf="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},xf(e)}function Ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Af(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=xf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=xf(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==xf(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tf(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 Of(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 Tf(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)?Tf(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(!im(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?Ef(Object(n),!0).forEach((function(t){Af(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ef(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 _f(e){return _f="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},_f(e)}function Df(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 Sf(e){for(var t=1;t<arguments.length;t++){var n=null==arguments[t]?{}:arguments[t];t%2?Df(Object(n),!0).forEach((function(t){Mf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Df(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mf(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=_f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=_f(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==_f(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pf(e){return Pf="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},Pf(e)}function jf(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 Cf(e){for(var t=1;t<arguments.length;t++){var n=null==arguments[t]?{}:arguments[t];t%2?jf(Object(n),!0).forEach((function(t){Nf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nf(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Pf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Pf(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Pf(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rf(){var e=Of(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=Sf(Sf({},t),{},{defaultCountry:void 0}));try{return function(e,t,n){return bf(e,kf(kf({},t),{},{v2:!0}),n)}(e,t,n)}catch(e){if(!(e instanceof sf))throw e}}(e.text,t=Cf(Cf({},t),{},{extract:!1}),n);return r&&r.isValid()||!1}const Uf=Op.omit({eventId:!0,channel:!0}).partial().extend({id:ri().meta({examples:[xe.Order.id],description:"Unique identifier of the order to update"}),signature:ya.meta({description:"HMAC signature for customer access during checkout (16 characters, base64url encoded). Required for all order updates."}),items:Yi(Ap).min(1).optional().meta({description:"Updated list of items for the order. Requires signature. Prices will be recalculated and payment intent updated."}),customer:Vi({firstName:ri().meta({examples:[xe.Customer.firstName],description:"Updated first name of the customer"}).optional(),lastName:ri().meta({examples:[xe.Customer.lastName],description:"Updated last name of the customer"}).optional(),email:ai().meta({examples:[xe.Customer.email],description:"Updated email address of the customer"}).optional(),phone:ri().refine((e=>!e||function(){return function(e,t){var n=Array.prototype.slice.call(t);return n.push(tm),e.apply(this,n)}(Rf,arguments)}(e)),{message:"Phone must be in E.164 format (e.g., +61412345678)"}).meta({examples:[xe.Customer.phone],description:"Updated phone number in E.164 format (e.g., +61412345678)"}).optional(),deliveryMethod:Dp.optional()}).optional().meta({description:"Updated customer information for the order. All fields are optional for partial updates."}),marketingConsent:Xl.optional().meta({description:"Marketing opt-in choices captured during checkout."})}),Lf=Vi({id:ri().meta({examples:[xe.Order.id],description:"Unique identifier of the order"}),noteId:ri().meta({examples:["tl_1234567890_abc123"],description:"Unique identifier of the timeline note to update"}),note:ri().min(1).max(1e3).meta({examples:["Updated: Customer confirmed special seating arrangements"],description:"Updated note text content (1-1000 characters)"})});var qf={create:de.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(Ep.strict()).output(em),update:de.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(Lf.strict()).output(em),remove:de.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(_p.strict()).output(zi())};const Gf=de.route({method:"GET",path:"/orders/{id}",summary:"Get order by ID",tags:["Orders"]}).input(Sp.strict()).output(em),zf=de.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(Bp.strict()).output(Wp),Ff=de.route({method:"POST",path:"/orders/quote",summary:"Create order quote",tags:["Orders"]}).input(Zp.strict()).output(Vp);var Bf={get:Gf,list:zf,create:de.route({method:"POST",path:"/orders",summary:"Create a new order",tags:["Orders"]}).input(Op.strict()).output(em),createComplimentary:de.route({method:"POST",path:"/orders/complimentary",summary:"Create a complimentary order",tags:["Orders"]}).input(Tp.strict()).output(em),update:de.route({method:"PUT",path:"/orders/{id}",summary:"Update an order",tags:["Orders"]}).input(Uf.strict()).output(em),reserve:de.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(Xp.strict()).output(em),quote:Ff,resend:de.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(Qp.strict()).output(em),refund:de.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(Kp.strict()).output(Jp),note:qf};Vi({success:Si().meta({description:"Whether the payout approval was successful"}),message:ri().optional().meta({description:"Optional message about the approval result"}),payoutId:ri().meta({description:"ID of the payout that was approved"})});const Wf=Vi({payoutId:ri().meta({examples:[xe.Payout.id],description:"Unique identifier of the payout for which to retrieve the detailed breakdown of orders and financial calculations."})}),Yf=Vi({id:ri().readonly().meta({examples:[xe.PayoutDeduction.id],description:"Unique identifier for this deduction record."}),createdAt:jr().readonly().meta({examples:[xe.PayoutDeduction.createdAt],description:"Timestamp in ISO 8601 format when this deduction was created."}),updatedAt:jr().readonly().meta({examples:[xe.PayoutDeduction.updatedAt],description:"Timestamp in ISO 8601 format when this deduction was last updated."}),amount:_i().max(0).meta({examples:[xe.PayoutDeduction.amount],description:"Deduction amount in cents. Negative values reduce the payout."}),currency:Eo.meta({examples:[xe.PayoutDeduction.currency],description:"Currency code in ISO 4217 format for the deduction amount."}),description:ri().meta({examples:[xe.PayoutDeduction.description],description:"Human-readable description explaining the reason for this deduction (e.g., 'Minimum bar spend not met', 'Venue damage charge')."}),gateway:ri().meta({examples:[xe.PayoutDeduction.gateway],description:"Payment gateway identifier where this deduction was processed."}),gatewayId:ri().meta({examples:[xe.PayoutDeduction.gatewayId],description:"Unique identifier assigned by the payment gateway for this deduction transaction."}),beneficiary:ri().meta({examples:[xe.PayoutDeduction.beneficiary],description:"Human-readable name of the beneficiary account from which this deduction was taken."}),beneficiaryId:ri().meta({examples:[xe.PayoutDeduction.beneficiaryId],description:"Unique identifier of the beneficiary account from which this deduction was taken."}),transferId:ri().optional().meta({description:"Optional reference to a transfer record when this deduction results in money being moved to a future payout."}),transferPayoutId:ri().optional().meta({description:"Optional reference to a future payout where the deducted amount will be applied."})}),Zf=Vi({id:ri().meta({examples:[xe.Event.id],description:"Unique identifier for the event associated with this payout."}),name:ri().meta({examples:[xe.Event.name],description:"Human-readable name of the event."}),slug:ri().meta({examples:[xe.Event.slug],description:"URL-friendly slug identifier for the event."}),location:ri().optional().meta({examples:[xe.Event.location.name],description:"Optional human-readable location name where the event takes place."})}),Vf=Vi({net:_i().meta({examples:[xe.Payout.price.net],description:"Total amount to pay to promoter.\nCalculated as: total + booking + refunded + dispute + deductions"}),total:_i().meta({examples:[xe.Payout.price.total],description:"Total amount the collected in ticket revenue.\nCalculated as: gross + discount"}),gross:_i().min(0).meta({examples:[xe.Payout.price.gross],description:"Total amount before refunds, disputes, deductions and discounts.\nCalculated as: base + booking + shipping"}),base:_i().min(0).meta({examples:[xe.Payout.price.base],description:"Total value of tickets."}),booking:_i().min(0).meta({examples:[xe.Payout.price.booking],description:"Total value of booking fees (non-refundable)."}),shipping:_i().min(0).meta({examples:[xe.Payout.price.shipping],description:"Total value of shipping."}),sms:_i().min(0).default(0).meta({examples:[xe.Payout.price.sms],description:"Total SMS delivery fees collected in cents (owed to Session Services, not the event organiser)."}),refunded:_i().max(0).meta({examples:[xe.Payout.price.refunded],description:"Total value of refunds (negative value)."}),discount:_i().max(0).meta({examples:[xe.Payout.price.discount],description:"Total value of discounts (negative value)."}),gateway:_i().meta({examples:[xe.Payout.price.gateway],description:"Total value of absorbed payment gateway fees. Negative values are charges; positive values are reversals."}),dispute:_i().meta({examples:[xe.Payout.price.dispute],description:"Total value of non-absorbed payment gateway fees. Negative values are charges; positive values are reversals."}),deductions:_i().max(0).meta({examples:[xe.Payout.price.deductions],description:"Total value of payout-level deductions (negative value)."}),currency:Eo.meta({examples:[xe.Payout.price.currency],description:"Currency code in ISO 4217 format."})}),Hf=$p(ro(["CREATED","APPROVED","REJECTED","PROCESSING","PAID","FAILED","CANCELLED","NOTE"]),{createdAtExamples:[xe.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"]}),Kf=Vi({id:ri().meta({examples:[xe.PayoutTransfer.id],description:"Unique identifier for this transfer record."}),createdAt:jr().meta({examples:[xe.PayoutTransfer.createdAt],description:"Timestamp in ISO 8601 format when this transfer was created."}),kind:ro(["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:_i().min(0).meta({examples:[xe.PayoutTransfer.amount],description:"Transfer amount in cents. Positive values represent money being transferred to the beneficiary."}),currency:Eo.meta({examples:[xe.PayoutTransfer.currency],description:"Currency code in ISO 4217 format for the transfer amount."}),fee:_i().min(0).meta({examples:[xe.PayoutTransfer.fee],description:"Gateway processing fee for this transfer in cents. This fee is deducted from the transfer amount."}),feeCurrency:Eo.meta({examples:[xe.PayoutTransfer.feeCurrency],description:"Currency code in ISO 4217 format for the gateway fee."}),reference:ri().meta({examples:[xe.PayoutTransfer.reference],description:"External reference identifier for tracking this transfer with the payment gateway."}),gateway:ro(["AIRWALLEX","STRIPE"]).meta({examples:["AIRWALLEX"],description:"Payment gateway used to process this transfer."}),gatewayId:ri().meta({examples:[xe.PayoutTransfer.gatewayId],description:"Unique identifier assigned by the payment gateway for this transfer."}),beneficiary:ri().meta({examples:[xe.PayoutTransfer.beneficiary],description:"Human-readable name of the beneficiary receiving this transfer."}),beneficiaryId:ri().meta({examples:[xe.PayoutTransfer.beneficiaryId],description:"Unique identifier of the beneficiary account receiving this transfer."}),status:ri().optional().meta({examples:["SCHEDULED"],description:"Transfer status from the payment gateway (e.g. SCHEDULED, IN_PROGRESS, COMPLETED)."}),settlementAmount:_i().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:Eo.optional().meta({examples:["USD"],description:"Currency code in ISO 4217 format for the settlement amount. Present only for cross-currency transfers."}),deductionId:ri().optional().meta({description:"Optional reference to a deduction record when this transfer represents money being held back from a previous negative payout."}),deductionPayoutId:ri().optional().meta({description:"Optional reference to the payout that originated this transfer when it represents an outstanding balance being carried forward."})}),Jf=ro(["UPCOMING","FAILED","PROCESSING","PAID","CANCELLED"]),Qf=ro(["AIRWALLEX","STRIPE","MANUAL"]),Xf=ro(["DAILY","WEEKLY","AFTER_EVENT","ON_DEMAND"]),eh=Vi({id:ri().readonly().meta({examples:[xe.Payout.id],description:"A unique identifier for this payout."}),createdAt:jr().readonly().meta({examples:[xe.Payout.createdAt],description:"Timestamp in ISO 8601 format when this payout was created."}),updatedAt:jr().readonly().meta({examples:[xe.Payout.updatedAt],description:"Timestamp in ISO 8601 format when this payout was last updated."}),paidAt:jr().optional().meta({examples:[xe.Payout.paidAt],description:"Timestamp in ISO 8601 format when this payout was completed."}),dueAt:jr().optional().meta({examples:[xe.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:Jf.meta({examples:["PAID"],description:"Current payment status of this payout."}),method:Qf.meta({examples:["MANUAL"],description:"The payout channel used for disbursing funds."}),approval:xo.meta({examples:["APPROVED"],description:"Approval status for this payout."}),frequency:Xf.default("AFTER_EVENT").meta({examples:["AFTER_EVENT"],description:"Schedule on which this payout is generated."}),structure:ri().meta({examples:[xe.Payout.structure],description:"Data structure defining how funds are allocated in this payout."}),transfers:Yi(Kf).meta({description:"List of individual transfer records included in this payout."}),deductions:Yi(Yf).meta({description:"List of deductions applied before calculating the payout total."}),price:Vf.meta({description:"Summary of amounts for transfers and deductions in this payout."}),event:Zf.meta({description:"Information about the event associated with this payout."}),timeline:Yi(Hf).optional().meta({description:"Chronological list of status changes and notes for this payout."}),eventId:ri().meta({examples:[xe.Payout.eventId],description:"Identifier of the event for which this payout was generated."}),teamId:ri().meta({description:"Team receiving this payout. BREAKING CHANGE: Replaced promoterId/promoterSlug."})}).meta({description:"payout"});Vi({id:ri().meta({examples:[xe.Payout.id],description:"Unique identifier of the payout to approve for processing."})}),Vi({id:ri().meta({examples:[xe.Payout.id],description:"Unique identifier of the payout to reject."}),reason:ri().optional().meta({examples:["Insufficient funds in account"],description:"Optional reason for rejecting the payout. This will be recorded for audit purposes."})}),Vi({id:ri().meta({examples:[xe.Payout.id],description:"Unique identifier of the payout to process and initiate transfers."})}),Vi({id:ri().meta({examples:[xe.Payout.id],description:"Unique identifier of the payout to retry transfer processing for."})});const th=Vi({id:ri().meta({examples:[xe.Payout.id],description:"Unique identifier of the payout to add a note to"}),note:ri().trim().min(1).max(1e3).meta({examples:["Transfer confirmed via bank statement"],description:"Note text content (1-1000 characters)"})}),nh=Vi({name:ri(),gateway:ro(["AIRWALLEX","STRIPE","FREE"]),message:ri(),eventIds:Yi(ri()).optional(),venues:Yi(ri()).optional(),tenants:Yi(ri()).optional(),teams:Yi(ri()).optional(),ticketBeneficiaryTeamId:ri().optional(),min:Ti().optional(),max:Ti().optional(),percent:Ti().optional(),split:Vi({tenant:Ti(),team:Ti(),venue:Ti(),sessions:Ti()})}),rh=Vi({tenant:Ti().meta({examples:[5e4],description:"Amount allocated to the tenant (platform) in cents. This represents the platform's share of the revenue."}),venue:Ti().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:Ti().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:Ti().meta({examples:[3e3],description:"Amount allocated to Sessions platform commission in cents. This represents the platform's service fees."}),tickets:Ti().meta({examples:[2e3],description:"Amount allocated to ticketing fees in cents. This represents fees charged for ticket processing and management."})});Vi({payout:eh.meta({description:"Complete payout record containing all financial details and metadata for calculating beneficiary allocations."}),feeStructure:nh.meta({description:"Fee structure configuration that defines how revenue is split between different parties (promoter, venue, platform, etc.)."}),split:rh.meta({description:"Calculated split amounts showing how the payout total is divided among the different beneficiaries in cents."})});const ih=Vi({orders:Ti().meta({examples:[150],description:"Total number of orders included in this payout breakdown."}),price:sp.meta({description:"Aggregated price information for all orders included in this payout, showing total revenue, fees, and deductions."}),split:rh.meta({description:"How the total payout amount is split between different beneficiaries (tenant, venue, promoter, etc.) in cents."}),structure:ri().meta({examples:["DEFAULT"],description:"Fee structure identifier that was used to calculate the payout split and allocations."})}),oh=Vi({total:ih.meta({description:"Summary totals for all orders included in this payout breakdown, including aggregated financial calculations."}),orders:Yi(Vi({order:xp.meta({description:"Complete order information including customer details, items, and payment status."}),price:sp.meta({description:"Settled price information for this specific order, showing final amounts after refunds and adjustments."}),split:rh.meta({description:"How this individual order's revenue is split between different beneficiaries in cents."}),structure:ri().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."})});eh.pick({id:!0,eventId:!0}).extend({id:ri().meta({examples:[xe.Payout.id],description:"Unique identifier of the payout for which to retrieve the detailed breakdown."}),eventId:ri().meta({examples:[xe.Event.id],description:"Unique identifier of the event associated with the payout breakdown."})}),eh.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:ri().meta({examples:[xe.Event.id],description:"Unique identifier of the event for which the payout is being created"}),teamId:ri().meta({examples:["tem_01jqpjksnsen9vprw95et60t2m"],description:"Unique identifier of the team who will receive the payout"}),method:ro(["AIRWALLEX","STRIPE","MANUAL"]).optional().meta({examples:["AIRWALLEX"],description:"Optional payment method for the payout. Defaults to promoter's preferred method if not specified"}),frequency:ro(["DAILY","WEEKLY","AFTER_EVENT"]).optional().meta({examples:["AFTER_EVENT"],description:"Optional payout frequency. Defaults to 'AFTER_EVENT' if not specified"})});const ah=Vi({id:ri().meta({examples:[xe.Payout.id],description:"Unique identifier of the payout"}),noteId:ri().meta({examples:["tl_1234567890_abc123"],description:"Unique identifier of the timeline note to delete"})}),sh=eh.pick({id:!0}).extend({id:ri().meta({examples:[xe.Payout.id],description:"Unique identifier of the payout to retrieve."})}),dh=ro(["createdAt"]),ch=ro(["asc","desc"]),uh=Vi({mine:Si().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:ri().optional().meta({description:"Filter payouts by specific team unique identifier. BREAKING CHANGE: Replaced promoterId filter."}),eventId:ri().optional().meta({examples:[xe.Event.id],description:"Filter payouts by specific event unique identifier. When provided, only returns payouts for this event."}),status:ro(["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:xo.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:ri().optional().meta({examples:["PAID venue:sydney"],description:"Optional search query to filter payouts by text fields. When provided, search-backed pagination is used."}),sort:dh.optional().meta({examples:["createdAt"],description:"Optional list sort field. Use `createdAt` to return newest or oldest payouts first."}),direction:ch.optional().meta({examples:["desc"],description:"Sort direction for payout lists. Defaults to `desc` when `sort` is provided."}),limit:na("payouts").optional(),cursor:ri().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"}),lh=Oa(eh,"payouts"),ph=Vi({status:ro(["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:ri().optional().meta({examples:["Using fallback beneficiary with matching gateway only."],description:"Optional warning message shown when fallback or missing beneficiary resolution was required."}),beneficiary:Vi({id:ri().optional().meta({examples:[xe.Beneficiary.id],description:"Identifier for the beneficiary."}),teamId:ri().optional().meta({examples:[xe.Team.id],description:"Team that owns this beneficiary configuration."}),name:ri().meta({examples:[xe.Beneficiary.name],description:"Display name for the resolved beneficiary."}),gateway:ro(["AIRWALLEX","STRIPE"]).optional().meta({examples:[xe.Beneficiary.gateway],description:"Payment gateway for this beneficiary when available from configuration."}),gatewayId:ri().meta({examples:[xe.Beneficiary.gatewayId],description:"Gateway-specific beneficiary identifier used for transfer creation."}),currency:Eo.meta({examples:[xe.Beneficiary.currency],description:"Currency configured for this beneficiary."})}).optional()}),mh=Vi({kind:ro(["tickets","tenant","venue","team","sessions"]).meta({examples:["tickets"],description:"Split component represented by this row."}),amount:Ti().int().meta({examples:[114500],description:"Amount in cents for this split component."}),currency:Eo.meta({examples:[xe.Payout.price.currency],description:"Currency code for this split component."}),beneficiary:ph}),fh=ro(["TRACKED","N_A","SKIPPED"]),hh=Vi({orders:Ti().int().meta({examples:[12],description:"Number of orders in this settlement bucket."}),price:sp.meta({description:"Aggregated totals for the orders in this bucket, in the bucket's native currency."})}),vh=Vi({state:fh.meta({examples:["TRACKED"],description:"Whether settlement tracking applies to this payout preview. Non-Airwallex payouts return N_A."}),settled:hh.optional().meta({description:"Completed Airwallex orders that already have settlement data available."}),awaitingSettlement:hh.optional().meta({description:"Completed Airwallex orders still waiting on settlement ingestion."})}),gh=Vi({payout:eh.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:Yi(mh).meta({description:"Non-zero split rows with beneficiary resolution status and warnings."}),settlementSummary:vh.meta({description:"Settlement status summary for the payout event. Airwallex payouts expose settled vs awaiting-settlement buckets."})}),yh=sh.extend({includeSettlementSummary:Si().optional().meta({examples:[!0],description:"When true, includes the Airwallex settlement summary for the payout preview."})}),bh=Vi({payout:eh,breakdown:oh,canExportBookingFees:Si()}),wh=to(ri(),to(ri(),Vi({net:Ti(),total:Ti(),gross:Ti(),base:Ti(),booking:Ti(),shipping:Ti(),refunded:Ti(),discount:Ti(),gateway:Ti(),dispute:Ti(),deductions:Ti()}))).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}}}]}),$h=Vi({teamId:ri().optional().meta({description:"Filter stats by team ID"}),startDate:ri().optional().meta({description:"Start date for stats period (YYYY-MM-DD)"}),endDate:ri().optional().meta({description:"End date for stats period (YYYY-MM-DD)"})}),kh=eh.pick({id:!0}).merge(eh.pick({status:!0,approval:!0}).partial()).extend({id:ri().meta({examples:[xe.Payout.id],description:"Unique identifier of the payout to update."}),status:ro(["CANCELLED"]).optional().meta({examples:["CANCELLED"],description:"Optional new payment status for the payout. Only CANCELLED is allowed for manual updates."}),approval:xo.optional().meta({examples:["APPROVED"],description:"Optional new approval status for the payout. PENDING: awaiting approval, APPROVED: approved for processing, REJECTED: rejected."})}),Ih=Vi({id:ri().meta({examples:[xe.Payout.id],description:"Unique identifier of the payout"}),noteId:ri().meta({examples:["tl_1234567890_abc123"],description:"Unique identifier of the timeline note to update"}),note:ri().trim().min(1).max(1e3).meta({examples:["Updated: Transfer confirmed - reference #12345"],description:"Updated note text content (1-1000 characters)"})}),xh=Vi({payout:eh});var Eh={create:de.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(th.strict()).output(xh),update:de.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(Ih.strict()).output(xh),remove:de.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(ah.strict()).output(xh)},Ah={get:de.route({method:"GET",path:"/payouts/{id}",summary:"Get payout by ID with breakdown",tags:["Payouts"]}).input(sh.strict()).output(bh),list:de.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(uh.strict()).output(lh),preview:de.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(yh.strict()).output(gh),stats:de.route({method:"POST",path:"/payouts/stats",summary:"Get payout statistics",tags:["Payouts"]}).input($h.strict()).output(wh),breakdown:de.route({method:"GET",path:"/payouts/{payoutId}/breakdown",summary:"Get payout breakdown",tags:["Payouts"]}).input(Wf.strict()).output(oh),update:de.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(kh.strict()).output(eh),note:Eh};const Th=ro(["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."}),Oh=Vi({id:ri().readonly().meta({description:"Unique identifier for the permission scope"}),createdAt:jr().readonly().meta({description:"Timestamp in ISO 8601 format when the scope was created"}),updatedAt:jr().readonly().meta({description:"Timestamp in ISO 8601 format when the scope was last updated"}),teamMemberId:ri().meta({description:"Team member this scope applies to"}),teamId:ri().meta({description:"Team the member belongs to"}),userId:ri().meta({description:"ID of the user this permission scope applies to"}),permissions:Yi(ha).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:Yi(ri()).optional().meta({description:"Optional role IDs applied at this scope. Role-derived permissions are merged with explicit scoped nodes."}),tenantId:ri().readonly().meta({description:"Tenant identifier"})}),_h=Qi("kind",[Oh.extend({kind:oo("PROMOTER").meta({description:"Scope type: PROMOTER-specific permissions"}),promoterId:ri().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."}),Oh.extend({kind:oo("VENUE").meta({description:"Scope type: VENUE-specific permissions"}),venueId:ri().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."}),Dh=Vi({permissions:Yi(ha).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:Yi(ri()).optional().meta({description:"Optional role IDs to apply at this scope."})}),Sh=Qi("kind",[Dh.extend({kind:oo("PROMOTER").meta({description:"Scope type: PROMOTER-specific permissions"}),promoterId:ri().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."}),Dh.extend({kind:oo("VENUE").meta({description:"Scope type: VENUE-specific permissions"}),venueId:ri().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."}),Mh=Vi({id:Yo.meta({description:"Unique identifier for the permission scope"})}).meta({description:"Schema for retrieving a single permission scope by ID"}),Ph=Vi({teamMemberId:ri().optional().meta({description:"Filter by team member ID"}),userId:ri().optional().meta({description:"Filter by user ID"}),kind:Th.optional().meta({description:"Filter by scope kind (PROMOTER or VENUE)"}),promoterId:ri().optional().meta({description:"Filter by promoter ID (only for kind=PROMOTER scopes)"}),venueId:ri().optional().meta({description:"Filter by venue ID (only for kind=VENUE scopes)"}),limit:na("permission scopes"),cursor:ri().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"}),jh=Oa(_h,"items").meta({description:"Paginated response containing permission scopes with cursor for next page"}),Ch=Dh.meta({description:"Schema for updating an existing permission scope. Only permissions array can be modified."}),Nh=Vi({key:ri(),memberId:ri()}),Rh=Nh.merge(Mh).strict();var Uh={get:de.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(Rh).output(_h),list:de.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(Nh.merge(Ph).strict()).output(jh),create:de.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(Nh.and(Sh)).output(_h),update:de.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(Nh.extend({id:ri()}).merge(Ch).strict()).output(_h),remove:de.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(Rh).output(_h)};const Lh=Vi({id:Zo.meta({description:"Permission role ID"}),teamId:So.meta({description:"Team that owns this role"}),name:ri().min(1).meta({description:"Role display name"}),description:ri().optional().meta({description:"Optional role description"}),permissions:ga.meta({description:"Permission nodes granted by this role"}),createdAt:jr().meta({description:"Timestamp in ISO 8601 format when the role was created"}),updatedAt:jr().meta({description:"Timestamp in ISO 8601 format when the role was last updated"})}).meta({description:"Team-scoped permission role"}),qh=Vi({role:Lh}),Gh=Vi({roles:Yi(Lh)}),zh=Vi({key:ri().meta({description:"Team identifier (ID or slug)"})}),Fh=Vi({key:ri().meta({description:"Team identifier (ID or slug)"}),roleId:Zo}),Bh=Vi({key:ri().meta({description:"Team identifier (ID or slug)"}),name:ri().min(1).meta({description:"Role display name"}),description:ri().optional().meta({description:"Optional role description"}),permissions:ga}),Wh=Vi({key:ri().meta({description:"Team identifier (ID or slug)"}),roleId:Zo,name:ri().min(1).meta({description:"Role display name"}),description:ri().optional().meta({description:"Optional role description"}),permissions:ga}),Yh=Vi({memberId:Fo,permissions:Yi(ha),updatedAt:jr()}),Zh=Vi({member:Yh}),Vh=Vi({key:ri().meta({description:"Team identifier (ID or slug)"}),memberId:Fo}),Hh=Vi({key:ri().meta({description:"Team identifier (ID or slug)"}),memberId:Fo,permissions:Yi(ha).meta({description:"Direct permission nodes for this member. Full-replace semantics; use an empty array to remove all direct grants."})}),Kh=Vi({memberId:Fo,roleIds:Yi(Zo).meta({description:"Role IDs assigned to this member"}),updatedAt:jr()}),Jh=Vi({member:Kh}),Qh=Vi({key:ri().meta({description:"Team identifier (ID or slug)"}),memberId:Fo}),Xh=Vi({key:ri().meta({description:"Team identifier (ID or slug)"}),memberId:Fo,roleIds:Yi(Zo)}),ev=Vi({direct:Yi(ri()),fromRoles:Yi(ri()),effective:Yi(ri()),denied:Yi(ri())});Vi({memberId:Fo,permissions:ev}),Vi({key:ri().meta({description:"Team identifier (ID or slug)"}),memberId:Fo,domain:ri().optional().meta({description:"Optional domain filter (for example: ticket, event)"}),action:ri().optional().meta({description:"Optional action filter (for example: read, write, scan)"}),resourceId:ri().optional().meta({description:"Optional resource ID filter"})});var tv={roles:{list:de.route({method:"GET",path:"/teams/{key}/roles",summary:"List team roles",description:"Returns all roles configured for a team.",tags:["Permissions"]}).input(zh.strict()).output(Gh),create:de.route({method:"POST",path:"/teams/{key}/roles",summary:"Create team role",description:"Creates a team-scoped permission role.",tags:["Permissions"]}).input(Bh.strict()).output(qh),get:de.route({method:"GET",path:"/teams/{key}/roles/{roleId}",summary:"Get team role",description:"Retrieves a team role by ID.",tags:["Permissions"]}).input(Fh.strict()).output(qh),update:de.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(Wh.strict()).output(qh),remove:de.route({method:"DELETE",path:"/teams/{key}/roles/{roleId}",summary:"Delete team role",description:"Deletes a team role.",tags:["Permissions"]}).input(Fh.strict()).output(qh)},members:{permissions:{get:de.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(Vh.strict()).output(Zh),replace:de.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(Hh.strict()).output(Zh)},roles:{get:de.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(Qh.strict()).output(Jh),replace:de.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(Xh.strict()).output(Jh)}}};const nv=Vi({key:ri().min(1).meta({description:"Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug",examples:[xe.Promoter.id,xe.Promoter.slug]})}).meta({description:"Request schema for retrieving a promoter by either its unique ID or slug"});Du.pick({slug:!0});const rv=Du.omit({id:!0,createdAt:!0,updatedAt:!0,geohash:!0,approval:!0,location:!0}).extend({teamId:ri().meta({examples:["tem_01jqpjksnsen9vprw95et60t2m"],description:"ID of the team that will own this promoter. User must be a member of this team."}),slug:ri().min(3).max(30).optional().meta({examples:[xe.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"}),...Pp}).refine(jp,{message:Mp}).meta({description:"Schema for creating a new promoter organization. The system automatically generates the ID, tenant association, geohash, and timestamps"}),iv=Vi({key:ri().min(1).meta({description:"Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug",examples:[xe.Promoter.id,xe.Promoter.slug]})}).meta({description:"Schema for removing (soft deleting) a promoter organization by key (ID or slug)"});Du.pick({id:!0}).meta({description:"Schema for retrieving a specific promoter by ID"});const ov=ro(["createdAt"]),av=ro(["asc","desc"]),sv=Vi({teamId:ri().optional().meta({description:"Filter promoters to only those belonging to a specific team"}),approval:xo.optional().meta({examples:[xe.Promoter.approval],description:"Filter promoters by approval status. PENDING: awaiting review, APPROVED: can create events, REJECTED: cannot operate"}),query:ri().optional().meta({examples:["Session Services"],description:"Optional search query. When provided, results are fetched from search with unified cursor pagination."}),latitude:ko().min(-90).max(90).optional().meta({examples:[xe.Promoter.location.latitude],description:"Latitude used with longitude and radius to filter promoters by proximity when searching."}),longitude:ko().min(-180).max(180).optional().meta({examples:[xe.Promoter.location.longitude],description:"Longitude used with latitude and radius to filter promoters by proximity when searching."}),radius:ko().optional().meta({examples:[50],description:"Search radius in kilometers applied when latitude and longitude are provided."}),mine:Io().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)."}),sort:ov.optional().meta({examples:["createdAt"],description:"Optional list sort field. Use `createdAt` to return newest or oldest promoters first."}),direction:av.optional().meta({examples:["desc"],description:"Sort direction for promoter lists. Defaults to `desc` when omitted."}),limit:function(e,t){return yo(so(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}),Ti().min(1).max(100).prefault(20)).meta({examples:[20],description:"Maximum number of promoters to return (1-100, defaults to 20)"}).optional(),cursor:ri().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"}),dv=Oa(Du,"promoters"),cv=Vi({promoter:Du}),uv=Du.omit({createdAt:!0,updatedAt:!0,id:!0,location:!0}).partial().extend({key:ri().min(1).meta({description:"Promoter key - either a unique ID (pmt_xxx format) or URL-friendly slug",examples:[xe.Promoter.id,xe.Promoter.slug]}),locationId:jo.optional().meta({examples:["loc_01jqpjksnsen9vprw95et60t2m"],description:"ID of an existing location to update to. Either locationId or googlePlaceId can be provided."}),googlePlaceId:ri().optional().meta({examples:["ChIJN1t_tDeuEmsRUsoyG83frY4"],description:"Google Place ID to update location from. Either locationId or googlePlaceId can be provided."}),image:Ho.nullable().optional().meta({description:"Promoter image. Pass null to clear; omit to leave unchanged.",examples:[xe.Promoter.image,null]}),tracking:Vi({fbId:ri().optional(),gtmId:ri().optional(),tikTokId:ri().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 lv={summary:de.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(Ad).output(Td),revenue:de.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(Od).output(_d),events:de.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(Dd).output(Sd)};const pv=de.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(nv.strict()).output(cv),mv=de.route({method:"POST",path:"/promoters",summary:"Create a new promoter",description:"Create a new promoter brand within a team",tags:["Promoters"]}).input(rv.strict()).output(cv),fv=de.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(uv.strict()).output(cv);var hv={get:pv,list:de.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(sv.strict()).output(dv),create:mv,update:fv,remove:de.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(iv.strict()).output(cv),performance:lv};const vv=de.route({method:"GET",path:"/events/{eventId}/sections/{id}",summary:"Get section by ID",tags:["Sections"]}).input(Rp.strict()).output(qp),gv=de.route({method:"POST",path:"/events/{eventId}/sections",summary:"Create a new section",tags:["Sections"]}).input(Cp.strict()).output(qp),yv=de.route({method:"PUT",path:"/events/{eventId}/sections/{id}",summary:"Update a section",tags:["Sections"]}).input(Gp.strict()).output(qp);var bv={get:vv,list:de.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(Up.strict()).output(Lp),create:gv,update:yv,remove:de.route({method:"DELETE",path:"/events/{eventId}/sections/{id}",summary:"Delete a section",tags:["Sections"]}).input(Np.strict()).output(qp)};const wv=Vi({key:ri().meta({description:"Team identifier (ID or slug)"}),inviteId:ri().meta({description:"Team invite ID to accept"}),token:ri().meta({description:"Secure token used to accept the team invite. This token must match the one sent in the invitation email."})}),$v=Vi({provider:ro(["STRIPE","AIRWALLEX"]).meta({description:"Payment gateway provider type"}),connectedAt:jr().meta({description:"Timestamp when the payment gateway was connected to this team"}),connectedBy:ri().meta({description:"User ID of the team member who connected the payment gateway"}),accountId:ri().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"}),kv=Vi({id:So.readonly().meta({description:"Unique identifier for the team organization"}),createdAt:jr().readonly().meta({description:"Timestamp in ISO 8601 format when the team was created"}),updatedAt:jr().readonly().meta({description:"Timestamp in ISO 8601 format when the team was last updated"}),name:ri().min(3).max(30).meta({description:"Display name of the team organization. Must be between 3 and 30 characters"}),slug:ri().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:ri().email().optional().meta({description:"Support email address for customer inquiries. Used as reply-to address in order confirmation emails"}),publicBaseUrl:ui().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:Ho.optional().meta({description:"Team image with dimensions and alt text for branding across the platform"}),metadata:ea,approval:xo.meta({description:"Approval status of the team. PENDING: awaiting review, APPROVED: can create promoters/venues/events, REJECTED: cannot operate"}),deletedAt:jr().optional().readonly().meta({description:"Timestamp in ISO 8601 format when the team was soft deleted. Only present for deleted teams."}),tenantId:ri().readonly().meta({description:"Tenant ID for multi-tenant isolation"}),isAdmin:Si().optional().meta({description:"Whether this team is the admin team for the tenant"}),gateway:$v.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."});kv.extend({promoter:Du.meta({description:"The primary promoter brand associated with this team"})}).meta({description:"Team organization with its primary promoter brand included for convenience"});const Iv=kv.extend({member:Vi({id:Fo.meta({description:"Current user's team member identifier for this team"}),permissions:va.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:Si().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"}),xv=Vi({key:ri().min(1).meta({description:"Team key - either a unique ID (tem_xxx format) or URL-friendly slug",examples:[xe.Team.id,xe.Team.slug]})}).meta({description:"Request schema for retrieving a team by either its unique ID or slug"}),Ev=kv.omit({id:!0,tenantId:!0,createdAt:!0,updatedAt:!0,deletedAt:!0}).extend({slug:ri().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:kv.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"});Vi({id:So.meta({description:"Team ID to delete"})}),Vi({id:So.meta({description:"Team ID to retrieve"})});const Av=Vi({id:Bo.readonly().meta({description:"Unique identifier for the team invitation"}),createdAt:jr().readonly().meta({description:"Timestamp in ISO 8601 format when the invitation was created"}),updatedAt:jr().readonly().meta({description:"Timestamp in ISO 8601 format when the invitation was last updated"}),teamId:So.meta({description:"Team this invitation is for"}),email:ai().meta({description:"Email address of the invited user. Used for sending invitation."}),permissions:Yi(ha).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:Yi(ri()).optional().meta({description:"Role IDs assigned on invite acceptance. Effective permissions are role + explicit nodes."}),access:ba.optional().meta({description:"Promoter access to apply when the invitation is accepted."}),token:ri().readonly().meta({description:"Secure token for invite acceptance. Required to accept the invitation."}),expiresAt:Ti().int().positive().meta({description:"Unix timestamp (seconds) for DynamoDB TTL. Invitation will be automatically deleted after 7 days."}),invitedBy:Co.meta({description:"User ID who sent the invitation"}),tenantId:ri().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."}),Tv=Vi({key:ri().meta({description:"Team identifier (ID or slug)"}),inviteId:ri().meta({description:"Team invite ID to cancel"})}),Ov=Vi({key:ri().meta({description:"Team identifier (ID or slug)"}),email:ai().meta({description:"Email address of the user to invite"}),roleIds:Yi(ri()).min(1).meta({description:"Role IDs to grant to the invited user."}),access:wa.optional().meta({description:"Optional promoter access assignment. Omit to preserve existing team-wide behavior."})}),_v=Vi({key:ri().meta({description:"Team identifier (ID or slug)"}),inviteId:Bo.meta({description:"Team invite ID to retrieve"})}),Dv=Vi({key:ri().meta({description:"Team identifier (ID or slug)"}),query:ri().optional().meta({description:"Search query to filter invitations by email. Case-insensitive partial match"}),limit:Ti().int().min(1).max(100).default(20).optional().meta({description:"Maximum number of invitations to return per page"}),cursor:ri().optional().meta({description:"Pagination cursor for fetching the next page"})}),Sv=Oa(Av,"invites"),Mv=Vi({invite:Av}),Pv=ro(["createdAt"]),jv=ro(["asc","desc"]),Cv=Vi({userId:Co.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:xo.optional().meta({description:"Filter teams by approval status. PENDING: awaiting review, APPROVED: can operate, REJECTED: cannot operate"}),query:ri().optional().meta({description:"Optional search query for filtering teams by name or slug"}),sort:Pv.optional().meta({examples:["createdAt"],description:"Optional list sort field. Use `createdAt` to return newest or oldest teams first."}),direction:jv.optional().meta({examples:["desc"],description:"Sort direction for team lists. Defaults to `desc` when `sort` is provided."}),limit:na("teams"),cursor:ri().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"}),Nv=Oa(Iv,"teams"),Rv=ro(["STRIPE","AIRWALLEX"]),Uv=Vi({key:ri().meta({description:"Team identifier (ID or slug)"}),provider:Rv.meta({description:"Payment processor to connect",examples:["STRIPE","AIRWALLEX"]})}),Lv=Vi({authorizationUrl:ri().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=..."]})}),qv=Vi({key:ri().meta({description:"Team identifier (ID or slug)"})}),Gv=Vi({team:Iv.extend({isAdmin:Si().optional().meta({description:"Whether this team is the tenant admin team"})})}),zv=Vi({id:ri().meta({description:"Role ID"}),teamId:ri().meta({description:"Team ID this role belongs to"}),key:ri().meta({description:"Role key"}),name:ri().meta({description:"Role display name"}),description:ri().optional().meta({description:"Role description"}),permissions:Yi(ri()).meta({description:"Permission nodes granted by this role"}),scope:oo("TEAM").meta({description:"Role scope"}),isPreset:Si().meta({description:"Whether this role is a system preset role"})});Vi({roles:Yi(zv)}),Vi({key:ri().meta({description:"Team identifier (ID or slug)"})});const Fv=kv.omit({tenantId:!0,createdAt:!0,updatedAt:!0,id:!0}).partial().extend({key:ri().min(1).meta({description:"Team key - either a unique ID (tem_xxx format) or URL-friendly slug",examples:[xe.Team.id,xe.Team.slug]}),supportEmail:ri().email().nullable().optional().meta({description:"Support email for customer inquiries. Pass null to clear, omit to leave unchanged."}),publicBaseUrl:ui().nullable().optional().meta({description:"Public website base URL for team-owned event and order links. Pass null to clear, omit to leave unchanged."}),image:Ho.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 Bv={summary:de.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(Md).output(Pd),revenue:de.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(jd).output(Cd),funnel:de.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(Ud).output(Ld),traffic:de.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(Bd).output(Wd),insights:de.route({method:"GET",path:"/teams/{teamId}/performance/insights",summary:"Get team performance insights",description:"Order-backed revenue, tickets, refund, and dispute totals for an exact time window",tags:["Team Performance"]}).input(Yd).output(Hd),payouts:de.route({method:"GET",path:"/teams/{teamId}/performance/payouts",summary:"Get team payout performance",description:"Upcoming and recently paid payout totals aggregated across the team",tags:["Team Performance"]}).input(Jd).output(tc),events:de.route({method:"GET",path:"/teams/{teamId}/performance/events",summary:"Get team top events by tickets",description:"Top events by ticket count, aggregated across all events in the team",tags:["Team Performance"]}).input(Nd).output(Rd),admissions:de.route({method:"GET",path:"/teams/{teamId}/performance/admissions",summary:"Get team top admissions by tickets",description:"Top admission types by ticket count, aggregated across all events in the team",tags:["Team Performance"]}).input(zd).output(Fd),orders:de.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(qd).output(Gd),tracking:de.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(nc).output(rc)},Wv={get:de.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(xv.strict()).output(Gv),list:de.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(Cv.strict()).output(Nv),create:de.route({method:"POST",path:"/teams",summary:"Create a new team",description:"Create a new team organization",tags:["Teams"]}).input(Ev.strict()).output(Gv),update:de.route({method:"PATCH",path:"/teams/{key}",summary:"Update a team",description:"Update an existing team by ID or slug",tags:["Teams"]}).input(Fv.strict()).output(Gv),remove:de.route({method:"DELETE",path:"/teams/{key}",summary:"Delete a team",description:"Soft delete a team by ID or slug",tags:["Teams"]}).input(xv.strict()).output(Gv),performance:Bv};const Yv=Vi({id:Fo.readonly().meta({description:"Unique identifier for the team member"}),createdAt:jr().readonly().meta({description:"Timestamp in ISO 8601 format when the member was created"}),updatedAt:jr().readonly().meta({description:"Timestamp in ISO 8601 format when the member was last updated"}),teamId:So.meta({description:"Team this member belongs to"}),userId:Co.meta({description:"User ID of the team member"}),user:Vi({id:Co.meta({description:"Unique identifier of the user"}),email:ai().meta({description:"Email address of the user"}),firstName:ri().meta({description:"First name of the user"}),lastName:ri().meta({description:"Last name of the user"}),imageUrl:ri().optional().meta({description:"Profile image URL of the user"})}).meta({description:"Denormalized user details for quick access without additional queries."}),permissions:Yi(ha).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:Yi(ri()).optional().meta({description:"Role IDs assigned to this team member. Effective permissions are derived from role nodes plus explicit permission nodes."}),isOwner:Si().meta({description:"Whether this member is the owner of the team. Only one owner per team is allowed. Owner has full control and cannot be deleted."}),access:ba.optional().meta({description:"Promoter access summary. Omitted only for legacy/no-access records."}),tenantId:ri().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."}),Zv=Vi({member:Yv});var Vv={list:de.route({method:"GET",path:"/teams/{key}/invites",summary:"List pending team invitations with cursor-based pagination",description:"Returns pending team invitations for a specific team. Team key can be ID or slug. These are email-based invitations that have not yet been accepted.",tags:["Team Invites"]}).input(Dv.strict()).output(Sv),get:de.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(_v.strict()).output(Mv),create:de.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(Ov.strict()).output(Mv),accept:de.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(wv.strict()).output(Zv),resend:de.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(_v.strict()).output(Mv),cancel:de.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(Tv.strict()).output(Mv)},Hv={connect:de.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(Uv.strict()).output(Lv),disconnect:de.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(qv.strict()).output(kv)};const Kv=Yv.omit({id:!0,tenantId:!0,createdAt:!0,updatedAt:!0,user:!0,teamId:!0,permissions:!0}).extend({key:ri().meta({description:"Team identifier (ID or slug)"}),roleIds:Yi(ri()).min(1).meta({description:"Role IDs assigned to this team member."}),access:wa.optional().meta({description:"Optional promoter access assignment. Omit to preserve existing team-wide behavior."})}).meta({description:"Schema for adding an existing user to a team. Requires userId of an existing user account."}),Jv=Vi({key:ri().meta({description:"Team identifier (ID or slug)"}),userId:ri().meta({description:"User ID of the team member to retrieve"})}),Qv=Vi({key:ri().meta({description:"Team identifier (ID or slug)"}),query:ri().optional().meta({description:"Search query to filter members by name or email. Case-insensitive partial match"}),limit:na("team members"),cursor:ri().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"}),Xv=Oa(Yv,"members"),eg=Vi({key:ri().meta({description:"Team identifier (ID or slug)"}),newOwnerId:ri().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."}),tg=Vi({previousOwner:Yv.meta({description:"The previous owner (now a regular member with owner-equivalent access, typically via `*`)"}),newOwner:Yv.meta({description:"The new owner (now has isOwner: true)"})}).meta({description:"Response payload for team ownership transfer operation"}),ng=Vi({id:ri().meta({description:"Team member ID to update"}),roleIds:Yi(ri()).min(1).meta({description:"Replace role assignments for this team member with the provided role IDs."}),isOwner:Si().optional().meta({description:"Whether this team member is an owner of the team"}),access:wa.optional().meta({description:"Optional promoter access assignment. Omit to update only role assignments."})}).meta({description:"Schema for updating team member roles. Cannot update teamId, userId, or owner status."});var rg={get:de.route({method:"GET",path:"/teams/{key}/members/{userId}",summary:"Get team member by user ID",description:"Retrieve a team member using the team key (ID or slug) and user ID",tags:["Team Members"]}).input(Jv.strict()).output(Zv),list:de.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(Qv.strict()).output(Xv),create:de.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(Kv.strict()).output(Zv),update:de.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(ng.extend({key:ri(),userId:ri()}).strict()).output(Zv),remove:de.route({method:"DELETE",path:"/teams/{key}/members/{userId}",summary:"Remove a team member",description:"Remove an active member from a team. Team key can be ID or slug. Cannot remove the team owner (transfer ownership first). To cancel pending invitations, use the team invites endpoint.",tags:["Team Members"]}).input(Jv.strict()).output(Zv),transfer:de.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(eg.strict()).output(tg)};const ig=ro(["ALL","COUNTRY","STATE","CITY","VENUE"]),og=Vi({id:ri(),name:ri(),slug:ri(),kind:ig,parentId:ri().optional(),latitude:Ti().optional(),longitude:Ti().optional(),radius:Ti().optional(),enabled:Si(),order:Ti(),zoom:Ti().optional(),heroImage:ri().optional(),description:ri().optional()}),ag=Vi({tenant:Vi({id:ri(),name:ri(),slug:ri(),adminTeamId:ri(),legacyTenantsToTeams:to(ri(),ri()).optional(),features:to(ri(),Si()).optional(),defaultCurrency:ri(),logo:Vi({email:Vi({src:ri(),width:Ti(),height:Ti()}),website:Vi({src:ri(),width:Ti(),height:Ti()})}),baseUrl:Vi({dev:ri().optional(),production:ri().optional()}),publicBaseUrl:Vi({dev:ri().optional(),sandbox:ri().optional(),production:ri().optional()}).optional()}),regions:Yi(og)}),sg=Vi({regions:Yi(og)}),dg=Vi({teamId:ri().optional()}),cg=Vi({counts:Vi({teams:Si(),promoters:Si(),venues:Si(),events:Si(),payouts:Si()})}),ug=de.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(ag),lg=de.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(sg);var pg={approvals:de.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(dg).output(cg),config:ug,regions:lg};const mg=Vi({id:ri().meta({examples:[xe.Admission.id],description:"Admission ID reference"}),name:ri().meta({examples:["VIP Access","General Admission","Early Bird"],description:"Admission type name at time of purchase"}),price:Vi({base:Ti().meta({description:"Base price in smallest currency unit (cents)"}),booking:Ti().meta({description:"Booking fee in smallest currency unit (cents)"}),currency:ri().meta({examples:["USD","EUR","GBP"],description:"ISO 4217 currency code"})}).meta({description:"Price snapshot at time of purchase"}),entryStartsAt:ta.meta({description:"Wall clock time when ticket holder can enter (no timezone, displays same everywhere)"}),entryEndsAt:ta.meta({description:"Wall clock time when entry period ends (no timezone, displays same everywhere)"})}).meta({description:"Admission details for this ticket"}),fg=Vi({firstName:ri().trim().min(1).meta({examples:[xe.Customer.firstName],description:"First name of the ticket attendee"}),lastName:ri().trim().min(1).meta({examples:[xe.Customer.lastName],description:"Last name of the ticket attendee"}),email:ai().meta({examples:[xe.Customer.email],description:"Email address of the ticket attendee"}),phone:ri().meta({examples:[xe.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."}),hg=Vi({id:ri().meta({examples:[xe.Event.id],description:"Event ID reference"}),name:ri().meta({examples:[xe.Event.name],description:"The title of the event shown to attendees"}),slug:ri().meta({examples:[xe.Event.slug],description:"URL-friendly identifier for the event"}),location:Ou.meta({description:"Structured location details for the event"}),entryStartsAt:ta.meta({examples:[xe.Event.entryStartsAt],description:"Wall clock time when event entry begins (no timezone, displays same everywhere)"}),entryEndsAt:ta.meta({examples:[xe.Event.entryEndsAt],description:"Wall clock time when event entry ends (no timezone, displays same everywhere)"}),images:Vi({mobile:Ho.meta({description:"Mobile-optimized image for the event"}),desktop:Ho.meta({description:"Desktop-optimized image for the event"})})}).meta({description:"Event details for this ticket"}),vg=Vi({id:ri().meta({examples:[xe.User.id],description:"Unique identifier of the user who performed the ticket scan"}),firstName:ri().meta({examples:[xe.User.firstName],description:"First name of the user who performed the scan"}),lastName:ri().meta({examples:[xe.User.lastName],description:"Last name of the user who performed the scan"}),email:ai().meta({examples:[xe.User.email],description:"Email address of the user who performed the scan"})}).meta({description:"Information about the user who scanned a ticket"}),gg=ro(["CHECK_IN","CHECK_OUT"]),yg=Vi({id:ri().meta({examples:[xe.TicketScan.id],description:"Unique identifier of the ticket scan record"}),scannedAt:jr().readonly().meta({examples:[xe.TicketScan.scannedAt],description:"Timestamp when the ticket was scanned in ISO 8601 format"}),scannedById:ri().meta({examples:[xe.TicketScan.scannedById],description:"Unique identifier of the user who performed the scan"}),scannedBy:vg.meta({description:"Detailed information about the user who performed the scan"}),deviceId:ri().meta({examples:[xe.TicketScan.deviceId],description:"Unique identifier of the device used for scanning"}),kind:gg.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"}),bg=Vi({id:ri().meta({examples:[xe.Section.id],description:"Section ID reference"}),name:ri().meta({examples:["Floor Section A","Balcony Left","VIP Lounge"],description:"Section name at time of purchase"}),location:Vi({name:ri().meta({description:"Venue or location name"}),address:ri().optional().meta({description:"Street address"}),city:ri().optional().meta({description:"City name"}),state:ri().optional().meta({description:"State or province"}),postcode:ri().optional().meta({description:"Postal/ZIP code"}),country:ri().optional().meta({description:"ISO country code"}),latitude:Ti().optional().meta({description:"Geographic latitude coordinate"}),longitude:Ti().optional().meta({description:"Geographic longitude coordinate"}),timeZone:ri().optional().meta({examples:["America/New_York","Europe/London"],description:"IANA timezone identifier"})}).meta({description:"Physical location details"})}).meta({description:"Section details for this ticket"}),wg=ro(["ACTIVE","REDEEMED","CANCELLED"]),$g=Vi({id:ri().readonly().meta({examples:[xe.Ticket.id],description:"Unique identifier for the ticket"}),createdAt:jr().readonly().meta({examples:[xe.Ticket.createdAt],description:"Timestamp when the ticket was created in ISO 8601 format"}),updatedAt:jr().readonly().meta({examples:[xe.Ticket.updatedAt],description:"Timestamp when the ticket was last updated in ISO 8601 format"}),scans:Yi(yg).meta({description:"Array of all scan records for this ticket (check-ins and check-outs)"}),status:wg.meta({examples:["ACTIVE"],description:"Current status of the ticket: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)"}),attendee:fg.meta({description:"Attendee information for this ticket - editable by tenant admins"}),customerId:Lo.meta({examples:[xe.Ticket.customerId],description:"Unique identifier of the customer who purchased this ticket (read-only)"}),eventId:Mo.meta({examples:[xe.Ticket.eventId],description:"Unique identifier of the event this ticket grants access to"}),event:hg.meta({description:"Event details for this ticket"}),admissionId:qo.meta({examples:[xe.Ticket.admissionId],description:"Unique identifier of the admission type/tier this ticket represents"}),admission:mg.meta({description:"Admission details for this ticket"}),section:bg.optional().meta({description:"Section details for this ticket (if assigned to a section)"}),orderId:No.meta({examples:[xe.Ticket.orderId],description:"Unique identifier of the order this ticket was purchased in"}),orderItemId:ri().meta({examples:[xe.Ticket.orderItemId],description:"Unique identifier of the specific order item this ticket represents (optional for legacy tickets)"}).optional(),teamId:So.meta({examples:[xe.Ticket.teamId],description:"Identifier of the team that owns this ticket"}),promoterId:Uo.meta({examples:[xe.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."}),kg=Vi({kind:ro(["CHECK_IN","CHECK_OUT"]).meta({description:"The most recent attendee scan action."}),scannedAt:jr().meta({description:"Timestamp for the most recent attendee scan."})}),Ig=Vi({key:ro("#ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")).meta({description:"Alpha navigation bucket key for attendee roster jumps."}),count:ko().int().min(0).meta({description:"Number of roster rows currently available in this bucket."}),anchor:ri().meta({description:"Server-issued bookmark for the first roster row in this bucket under the active filters."})}),xg=mg.pick({id:!0,name:!0,entryEndsAt:!0}),Eg=bg.pick({id:!0,name:!0}),Ag=Vi({id:Ro.meta({examples:[xe.Ticket.id],description:"Ticket identifier for this attendee roster row."}),orderId:No.meta({examples:[xe.Ticket.orderId],description:"Order identifier used to navigate to order details."}),status:wg.meta({description:"Current ticket status for the attendee row."}),attendee:fg.meta({description:"Editable attendee identity fields for this ticket."}),admission:xg.meta({description:"Admission snapshot needed for roster labels and expiry state."}),section:Eg.optional().meta({description:"Optional section label shown in the roster row."}),lastScan:kg.optional().meta({description:"Most recent scan event for compact roster activity text."}),lastCheckInAt:jr().optional().meta({description:"Timestamp for the most recent check-in scan, used for checked-in labels."})}),Tg=Vi({eventId:Mo.meta({examples:[xe.Event.id],description:"Event identifier for the attendee alpha index."}),admissionIds:Yi(qo).optional().meta({examples:[[xe.Admission.id]],description:"Optional admission filters used when computing available attendee buckets."}),sectionIds:Yi(Go).optional().meta({examples:[[xe.Section.id]],description:"Optional section filters used when computing available attendee buckets."})}),Og=Vi({buckets:Yi(Ig).meta({description:"Available attendee alpha buckets for the active filter set."})}),_g=ko().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)."}),Dg=Vi({eventId:Mo.meta({examples:[xe.Event.id],description:"Event identifier for the attendee roster."}),admissionIds:Yi(qo).optional().meta({examples:[[xe.Admission.id]],description:"Optional admission filters. When provided, only matching ticket admissions are included."}),sectionIds:Yi(Go).optional().meta({examples:[[xe.Section.id]],description:"Optional section filters. When provided, only matching ticket sections are included."}),query:ri().optional().meta({examples:["John","john@example.com","+61400000000"],description:"Optional attendee search query. Matches attendee name, email, and phone."}),cursor:ra.optional(),before:ra.optional().meta({description:"Cursor for loading roster rows before the current window. Mutually exclusive with cursor and anchor."}),anchor:ri().optional().meta({description:"Server-issued bookmark used to jump to a roster bucket. Mutually exclusive with cursor and before."}),limit:_g.optional()}),Sg=Oa(Ag,"tickets"),Mg=$g.pick({status:!0,admissionId:!0,orderItemId:!0}).extend({orderId:ri().meta({examples:[xe.Order.id],description:"The order this ticket belongs to"}),customerId:ri().meta({examples:[xe.Customer.id],description:"The customer who purchased this ticket"}),attendee:fg.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"}),Pg=$g.pick({id:!0}).extend({signature:ya.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"}),jg=Vi({promoterId:ri().optional().meta({examples:[xe.Promoter.id],description:"Filter tickets by promoter/organizer unique identifier (optional)"}),eventId:ri().optional().meta({examples:[xe.Event.id],description:"Filter tickets by event unique identifier (optional)"}),customerId:ri().optional().meta({examples:[xe.Customer.id],description:"Filter tickets by customer unique identifier (optional)"}),orderId:ri().optional().meta({examples:[xe.Order.id],description:"Filter tickets by order unique identifier (optional)"}),status:wg.optional().meta({examples:["ACTIVE"],description:"Filter tickets by status: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)"}),orderSignature:ya.optional().meta({description:"Order signature used to access tickets for a specific order without permissions (16 characters, base64url encoded)"}),query:ri().optional().meta({examples:["John Doe"],description:"Optional search query to filter tickets by customer details. When provided, search-backed pagination is used."}),limit:na("tickets").optional(),cursor:ri().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"}),Cg=Oa($g,"tickets"),Ng=Vi({ticket:$g}),Rg=$g.pick({id:!0,eventId:!0}).extend({key:$g.shape.id.meta({description:"Transition key. Supports canonical ticket IDs (tkt_*), order IDs (ord_*), and legacy Neon ticket IDs."}),deviceId:$g.shape.scans.element.shape.deviceId.optional().meta({description:"Unique identifier of the scanning device (optional)."}),eventId:$g.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:Si().optional().meta({description:"Confirms an order-level check-in when some tickets are already redeemed and some remain active."}),idempotencyKey:ri().trim().min(1).max(255).optional().meta({description:"Stable client-generated key used to replay a scan request without turning a timed-out success into a duplicate denial."})}).omit({id:!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."}),Ug=ro(["ticket","order","legacy"]),Lg=ro(["NOOP_TRANSITION"]),qg=ro(["PARTIAL_ORDER_CONFIRMATION_REQUIRED"]),Gg=ro(["EVENT_MISMATCH"]),zg=Vi({id:$g.shape.orderId,checkedInCount:Ti().int().nonnegative().optional(),items:Yi(Vi({quantity:Ti().int().positive()}))}),Fg=hg.pick({id:!0,name:!0,slug:!0,entryStartsAt:!0}).extend({teamId:$g.shape.teamId}),Bg=Ki([Vi({reason:Lg,kind:ro(["CHECK_IN","CHECK_OUT"]),targetType:Ug,order:zg.optional(),ticket:$g.optional()}),Vi({reason:Gg,kind:ro(["CHECK_IN","CHECK_OUT"]),targetType:Ug,requestedEventId:$g.shape.eventId.optional(),event:Fg,order:zg.optional(),ticket:$g.optional()}),Vi({reason:qg,kind:oo("CHECK_IN"),targetType:oo("order"),order:zg,ticket:$g.optional()})]),Wg=Vi({tickets:Yi($g).meta({description:"Transition result tickets. Single-item array for ticket/legacy targets and full order tickets for order targets."}),targetType:Ug.meta({description:"Resolved target scope from the provided key."}),order:zg.optional()}),Yg=ro(["ACTIVE","CANCELLED"]).describe("Status updates allowed via PATCH: ACTIVE (reactivate), CANCELLED (void). REDEEMED is set via scan endpoint."),Zg=Vi({id:ri().meta({examples:[xe.Ticket.id],description:"Unique identifier of the ticket to update"}),status:Yg.optional().meta({description:"Update ticket status: CANCELLED to void, ACTIVE to reactivate"}),attendee:fg.partial().nullable().optional().meta({description:"Attendee info. Pass object to set/update, null to clear, or omit to leave unchanged."}),admissionId:ri().optional().meta({examples:[xe.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."}),Vg=de.route({method:"GET",path:"/tickets/{id}",summary:"Get ticket by ID",tags:["Tickets"]}).input(Pg.strict()).output(Ng),Hg=de.route({method:"POST",path:"/tickets",summary:"Create a new ticket",tags:["Tickets"]}).input(Mg.strict()).output(Ng),Kg=de.route({method:"PUT",path:"/tickets/{id}",summary:"Update a ticket",tags:["Tickets"]}).input(Zg.strict()).output(Ng);var Jg={get:Vg,list:de.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(jg.strict()).output(Cg),attendees:{list:de.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(Dg.strict()).output(Sg),index:de.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(Tg.strict()).output(Og)},create:Hg,update:Kg,checkInByKey:de.route({method:"PUT",path:"/tickets/{key}/check-in",summary:"Check in tickets by key",tags:["Tickets"]}).input(Rg.strict()).errors({UNPROCESSABLE_ENTITY:{data:Bg}}).output(Wg),checkOutByKey:de.route({method:"PUT",path:"/tickets/{key}/check-out",summary:"Check out tickets by key",tags:["Tickets"]}).input(Rg.strict()).errors({UNPROCESSABLE_ENTITY:{data:Bg}}).output(Wg)};const Qg={id:xe.User.id,createdAt:xe.User.createdAt,updatedAt:xe.User.updatedAt,email:xe.User.email,firstName:xe.User.firstName,lastName:xe.User.lastName,imageUrl:"https://assets.session.services/examples/avatar.jpg",tenantId:xe.User.tenantId},Xg=Vi({id:ri().readonly().meta({description:"Unique identifier for the user",examples:[xe.User.id]}),createdAt:jr().readonly().meta({description:"ISO 8601 timestamp when the user account was created",examples:[xe.User.createdAt]}),updatedAt:jr().readonly().meta({description:"ISO 8601 timestamp when the user account was last updated",examples:[xe.User.updatedAt]}),email:ai().meta({description:"User's email address, used for authentication and communication",examples:[xe.User.email]}),firstName:ri().min(1).meta({description:"User's first name",examples:[xe.User.firstName]}),lastName:ri().min(1).meta({description:"User's last name",examples:[xe.User.lastName]}),imageUrl:ui().optional().meta({description:"Optional URL to the user's profile image or avatar",examples:["https://assets.session.services/examples/avatar.jpg"]}),metadata:to(ri(),Xo).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:[Qg]}),ey=Yv.meta({ref:"MeTeamMember",description:"Team membership for the current user with denormalized user details and role-expanded team permissions."}),ty=Vi({access:ri().meta({description:"JWT access token with updated user data"}),refresh:ri().meta({description:"Refresh token for obtaining new access tokens"})}).meta({ref:"Tokens",description:"Authentication tokens for client session management"}),ny=Vi({user:Xg.meta({description:"The updated user profile"}),tokens:ty.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."}),ry=Vi({deleted:oo(!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."}),iy=Vi({user:Xg.nullable().meta({description:"Current authenticated user profile, null if not authenticated"}),isAdmin:Si().meta({description:"Whether the current user has admin privileges for the tenant"}),members:Yi(ey).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"}]}]}),oy=de.route({method:"GET",path:"/users/me",summary:"Get the current user and their team memberships",tags:["Users"]}).output(iy),ay=Vi({firstName:ri().min(1).optional(),lastName:ri().min(1).optional(),imageUrl:ui().nullable().optional(),metadata:to(ri(),Xo).optional(),refreshToken:ri().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"}),sy=de.route({method:"PATCH",path:"/users/me",summary:"Update the current user's profile",tags:["Users"]}).input(ay).output(ny);var dy={me:oy,remove:de.route({method:"DELETE",path:"/users/me",summary:"Delete the current user's account",tags:["Users"]}).output(ry),update:sy};const cy=Vi({id:ri().readonly().meta({description:"Unique identifier for the venue"}),createdAt:jr().readonly().meta({description:"Timestamp in ISO 8601 format when the venue was created"}),updatedAt:jr().readonly().meta({description:"Timestamp in ISO 8601 format when the venue was last updated"}),teamId:ri().meta({description:"Team that manages this venue"}),locationId:jo.meta({examples:["loc_01h2xk3j9k8m2n5p7q9r1s3t4v"],description:"Location identifier for this venue"}),googlePlaceId:ri().optional().meta({examples:["ChIJP3Sa8ziYEmsRUKgyFmh9AQM"],description:"Google Place ID when this venue is linked to a Google Places location"}),approval:xo.meta({examples:["APPROVED"],description:"Approval status of the venue"}),name:ri().min(3).max(100).meta({description:"Display name of the venue. Must be between 3 and 100 characters"}),slug:ri().min(3).meta({description:"URL-friendly slug for the venue. Must be unique within tenant"}),description:ri().max(500).optional().meta({description:"Short description of the venue for listings and discovery"}),image:Ho.optional().meta({description:"Venue image"}),contact:Vi({email:ai().optional().meta({description:"Public contact email for venue inquiries"}),phone:ri().optional().meta({description:"Public contact phone number"}),website:ui().optional().meta({description:"Venue website URL"}),instagram:ri().optional().meta({description:"Instagram profile URL"}),facebook:ri().optional().meta({description:"Facebook page URL"}),twitter:ri().optional().meta({description:"Twitter/X profile URL"}),tiktok:ri().optional().meta({description:"TikTok profile URL"}),youtube:ri().optional().meta({description:"YouTube channel URL"})}).optional().meta({description:"Public contact information and social media links"}),location:Ou.omit({venueId:!0}).meta({description:"Physical location details including address, coordinates, and timezone"}),geohash:ri().meta({description:"Geohash encoding of the venue's location for efficient spatial queries"}),capacity:Ti().int().min(1).optional().meta({description:"Maximum capacity of the venue (number of attendees)"}),metadata:ea,deletedAt:jr().readonly().optional().meta({description:"Timestamp in ISO 8601 format when the venue was soft-deleted. Null if not deleted"}),tenantId:ri().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."}),uy=cy.omit({id:!0,tenantId:!0,createdAt:!0,updatedAt:!0,geohash:!0,deletedAt:!0,location:!0,googlePlaceId:!0,approval:!0}).extend({slug:ri().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"}),ly=Vi({key:ri().min(1).meta({description:"Venue key - either a unique ID (ven_xxx format) or URL-friendly slug",examples:[xe.Venue.id,xe.Venue.slug]})}),py=Vi({key:ri().meta({examples:[xe.Venue.id,xe.Venue.slug],description:"Venue key - either a unique ID (ven_xxx format) or URL-friendly slug"})}),my=ro(["createdAt"]),fy=ro(["asc","desc"]),hy=Vi({teamId:ri().optional().meta({description:"Filter venues by owner team ID"}),approval:xo.optional().meta({description:"Filter venues by approval status. PENDING: awaiting review, APPROVED: can be used for events, REJECTED: cannot be used"}),query:ri().optional().meta({description:"Optional search query for filtering venues by name or slug"}),latitude:ko().min(-90).max(90).optional().meta({description:"Latitude for location-based search. Must be used with longitude"}),longitude:ko().min(-180).max(180).optional().meta({description:"Longitude for location-based search. Must be used with latitude"}),radius:ko().min(1).max(2e4).optional().meta({description:"Search radius in kilometers (1-20000). Requires latitude and longitude"}),sort:my.optional().meta({examples:["createdAt"],description:"Optional list sort field. Use `createdAt` to return newest or oldest venues first."}),direction:fy.optional().meta({examples:["desc"],description:"Sort direction for venue lists. Defaults to `desc` when `sort` is provided."}),limit:na("venues"),cursor:ri().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"}),vy=Oa(cy,"venues").meta({description:"Paginated response containing venues with cursor for next page"}),gy=Vi({venue:cy}),yy=cy.omit({id:!0,tenantId:!0,teamId:!0,createdAt:!0,updatedAt:!0,deletedAt:!0,geohash:!0}).partial().extend({key:ri().meta({examples:[xe.Venue.id,xe.Venue.slug],description:"Venue key - either a unique ID (ven_xxx format) or URL-friendly slug"}),description:ri().max(500).nullable().optional().meta({description:"Short description of the venue. Pass null to clear, omit to leave unchanged."}),image:Ho.nullable().optional().meta({description:"Venue image. Pass null to clear, omit to leave unchanged."}),capacity:Ti().int().min(1).nullable().optional().meta({description:"Maximum capacity. Pass null to clear, omit to leave unchanged."}),contact:Vi({email:ai().optional(),phone:ri().optional(),website:ui().optional(),instagram:ri().optional(),facebook:ri().optional(),twitter:ri().optional(),tiktok:ri().optional(),youtube:ri().optional()}).nullable().optional().meta({description:"Contact information. Pass null to clear all contact fields, omit to leave unchanged."}),googlePlaceId:ri().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."}),by={analytics:Bc,beneficiary:Zc,section:bv,event:hl,eventCollaborator:El,admission:Fc,order:Bf,ticket:Jg,internal:Ml,location:Ul,coupon:bu,payout:Ah,teams:tv,permissionScope:Uh,promoter:hv,team:Wv,teamInvite:Vv,teamPayment:Hv,teamMember:rg,tenant:pg,venue:{get:de.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(py.strict()).output(gy),list:de.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(hy.strict()).output(vy),create:de.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(uy.strict()).output(gy),update:de.route({method:"PATCH",path:"/venues/{key}",summary:"Update a venue",description:"Update an existing venue. Cannot change venue ownership (teamId)",tags:["Venues"]}).input(yy.strict()).output(gy),remove:de.route({method:"DELETE",path:"/venues/{key}",summary:"Delete a venue",description:"Soft delete a venue",tags:["Venues"]}).input(ly.strict()).output(gy),linkLocation:de.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(py.extend({locationKey:ri().meta({description:"Location ID (loc_xxx) or Google Place ID to link to this venue",examples:["loc_01jps5cgsm7qxvh6watsons0eq","ChIJP3Sa8ziYEmsRUKgyFmh9AQM"]})}).strict()).output(gy),unlinkLocation:de.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(py.extend({locationKey:ri().meta({description:"Location ID (loc_xxx) or Google Place ID to unlink from this venue",examples:["loc_01jps5cgsm7qxvh6watsons0eq","ChIJP3Sa8ziYEmsRUKgyFmh9AQM"]})}).strict()).output(gy)},user:dy},wy=ro(["ORDER"]).meta({description:"Aggregate type this notification belongs to"}),$y=ro(["ORDER_CONFIRMATION","REFUND_CONFIRMATION","ORDER_REMINDER","ORDER_CANCELLATION","ORDER_TIME_CHANGE","ORDER_VENUE_CHANGE","ORDER_TIME_AND_VENUE_CHANGE"]).meta({description:"Notification kind"}),ky=ro(["SMS","EMAIL"]).meta({description:"Delivery channel"}),Iy=ro(["PENDING","PROCESSING","SENT","DELIVERED","FAILED","CANCELLED"]).meta({description:"Current notification status"});function xy(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 Ey(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 Ay(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={}){if(e instanceof ReadableStream)return e;let r=t.get("content-disposition");return t.delete("content-type"),t.delete("content-disposition"),void 0!==e?e instanceof Blob?(t.set("content-type",e.type),t.set("content-length",e.size.toString()),t.set("content-disposition",r??function(e,t="inline"){return`${t}; filename="${e.replace(/[^\x20-\x7E]/g,"_").replace(/"/g,'\\"')}"; filename*=utf-8''${encodeURIComponent(e).replace(/['()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)).replace(/%(7C|60|5E)/g,((e,t)=>String.fromCharCode(Number.parseInt(t,16))))}`}(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(Y({comments:[d]}))},async pull(t){try{i&&(n=setInterval((()=>{t.enqueue(Y({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(Y({...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(Y({...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)):void 0}(e.body,n,t);return new Request(e.url,{signal:e.signal,method:e.method,headers:n,body:r})}Vi({id:Vo.meta({examples:[xe.Notification.id],description:"Unique notification identifier"}),createdAt:jr().readonly().meta({examples:[xe.Notification.createdAt],description:"Timestamp when notification was created"}),updatedAt:jr().readonly().meta({examples:[xe.Notification.updatedAt],description:"Timestamp when notification was last updated"}),aggregateType:wy.meta({examples:[xe.Notification.aggregateType]}),aggregateId:No.meta({examples:[xe.Notification.aggregateId],description:"Aggregate identifier (order ID for ORDER notifications)"}),eventId:Mo.optional().meta({examples:[xe.Notification.eventId],description:"Associated event identifier when applicable"}),kind:$y.meta({examples:[xe.Notification.kind]}),channel:ky.meta({examples:[xe.Notification.channel]}),status:Iy.meta({examples:[xe.Notification.status]}),providerMessageId:ri().optional().meta({examples:[xe.Notification.providerMessageId],description:"Provider message identifier"}),sentAt:jr().optional().meta({examples:[xe.Notification.sentAt],description:"Timestamp when provider accepted send request"}),deliveredAt:jr().optional().meta({examples:[xe.Notification.deliveredAt],description:"Timestamp when provider confirmed delivery"}),failedAt:jr().optional().meta({examples:[xe.Notification.failedAt],description:"Timestamp when notification failed"}),failureCode:ri().optional().meta({examples:[xe.Notification.failureCode],description:"Failure code when notification is FAILED"}),failureReason:ri().optional().meta({examples:[xe.Notification.failureReason],description:"Failure reason when notification is FAILED"})}).meta({description:"Notification delivery record"}),Vi({id:Fo.meta({description:"Team member ID to delete"})});var Ty=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)}},Oy=class{constructor(e,t,n={}){this.codec=e,this.sender=t,new Ty(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 _y(e){return`/${e.map(encodeURIComponent).join("/")}`}var Dy=class extends Ty{initRuntimeAdapter(e){for(let t of this.plugins)t.initRuntimeAdapter?.(e)}},Sy=class{fetch;toFetchRequestOptions;adapterInterceptors;constructor(e){new Dy(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=Ay(e,this.toFetchRequestOptions);return function(e,t={}){return{body:d((()=>xy(e,t))),status:e.status,get headers(){let t=Ey(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})}},My=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]=jy(o[a])):t.has(o[a])?(t.delete(o[a]),o[a]=Cy(o[a])):Py(n,this.maxArrayIndex)||(o[a]=jy(o[a]))):Array.isArray(o[a])&&!Py(n,this.maxArrayIndex)&&(t.has(o[a])?(t.delete(o[a]),o[a]=Cy(o[a])):o[a]=jy(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 Py(e,t){return/^0$|^[1-9]\d*$/.test(e)&&Number(e)<=t}function jy(e){let t=new E;return e.forEach(((e,n)=>{t[n]=e})),t}function Cy(e){let t=new E;return t[""]=1===e.length?e[0]:e,t}var Ny=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 Ry(e){return`/${e.replace(/\/{2,}/g,"/").replace(/^\/|\/$/g,"")}`}function Uy(e){return e?Ry(e).match(/\/\{[^}]+\}/g)?.map((e=>({raw:e,name:e.match(/\{\+?([^}]+)\}/)[1]}))):void 0}var Ly=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?Ey(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(!te(o))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${e.join(".")}`);return"compact"===ue("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=Ry(e["~orpc"].route.path??_y(t)),s=n,d=Uy(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=ue("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=Ry(e["~orpc"].route.path??_y(t)),s=Uy(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=ue("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(!te(o))throw Error(`[StandardOpenapiLinkCodec] expect a contract procedure at ${n.join(".")}`);return"compact"===ue("defaultOutputStructure",o["~orpc"].route.outputStructure)?i:{status:e.status,headers:e.headers,body:i}}},qy=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}},Gy=class extends Oy{constructor(e,t,n){super(new Ly(e,new qy(new Ny(n),new My({maxBracketNotationArrayIndex:4294967294})),n),t,n)}},zy=class extends Gy{constructor(e,t){super(e,new Sy(t),t)}};const Fy={sandbox:"https://api.sandbox.session.services",prod:"https://api.session.services"};var By,Wy={},Yy=function(){if(By)return Wy;By=1,Object.defineProperty(Wy,"__esModule",{value:!0}),Wy.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},Wy.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 Wy}();function Zy(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 Vy{constructor(e,t={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const e=this.cookies;this.cookies=Yy.parse(document.cookie),this._checkChanges(e)};const n="undefined"==typeof document?"":document.cookie;this.cookies=function(e){return"string"==typeof e?Yy.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:Zy(this.cookies[t])})}))}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(e,t={}){return t.doNotUpdate||this.update(),Zy(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();const t={};for(let n in this.cookies)t[n]=Zy(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=Yy.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=Yy.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])}}const Hy="sessions_attribution";function Ky(e,t){return e.get(t)||void 0}function Jy(e){return!(!e||!Object.values(e).some(Boolean))}function Qy(){try{let e=window.localStorage?.getItem(Hy);if(!e)return;let t=JSON.parse(e);if(!t||"object"!=typeof t)return void window.localStorage?.removeItem(Hy);let n=t;return!n.expiresAt||n.expiresAt<=Date.now()?void window.localStorage?.removeItem(Hy):n}catch{return}}function Xy(e){return"string"==typeof e&&e.length>0?e:void 0}function eb(){if(typeof window>"u")return;let e=function(e){return{source:Ky(e,"utm_source"),medium:Ky(e,"utm_medium"),name:Ky(e,"utm_campaign"),term:Ky(e,"utm_term"),content:Ky(e,"utm_content")}}(new URLSearchParams(window.location.search));return Jy(e)?(function(e){if(Jy(e))try{window.localStorage?.setItem(Hy,JSON.stringify({...Qy(),expiresAt:Date.now()+2592e6,utm_campaign:e?.name,utm_content:e?.content,utm_medium:e?.medium,utm_source:e?.source,utm_term:e?.term}))}catch{return}}(e),e):function(){let e=Qy();if(!e)return;let t={source:Xy(e.utm_source),medium:Xy(e.utm_medium),name:Xy(e.utm_campaign),term:Xy(e.utm_term),content:Xy(e.utm_content)};return Jy(t)?t:void 0}()}function tb(e){return{anonymous_id:e.anonymousId,browser:ib(e.context.userAgent),browser_session_id:e.sessionId,device_type:rb(e.context.userAgent),page_path:e.context.page.path,page_title:e.context.page.title,page_url:e.context.page.url,referrer:e.context.page.referrer,user_agent:e.context.userAgent||void 0,utm_campaign:e.context.campaign?.name,utm_content:e.context.campaign?.content,utm_medium:e.context.campaign?.medium,utm_source:e.context.campaign?.source,utm_term:e.context.campaign?.term}}function nb(){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:eb()}}function rb(e){let t=e.toLowerCase();return t?function(e){return!!/ipad|tablet|playbook|silk|kindle|sm-t|tab/.test(e)||/android/.test(e)&&!/mobile/.test(e)}(t)?"TABLET":function(e){return/iphone|ipod|android|windows phone|blackberry|bb10|mobile/.test(e)}(t)?"MOBILE":"DESKTOP":"DESKTOP"}function ib(e){let t=e.toLowerCase();return t?t.includes("instagram")?"Instagram App":/fban|fbav|fb_iab|fbios|facebook/.test(t)?"Facebook App":/tiktok|musical_ly|bytedance|bytelo/.test(t)?"TikTok App":t.includes("snapchat")?"Snapchat App":t.includes("pinterest")?"Pinterest App":t.includes("linkedin")?"LinkedIn App":/twitter|twitterandroid/.test(t)?"X App":t.includes("micromessenger")?"WeChat App":/\bline\//.test(t)?"LINE App":t.includes("gsa/")?"Google App":/edg\/|edge|edgios|edga/.test(t)?"Edge":t.includes("samsungbrowser")?"Samsung Internet":/opr\/|opera|opios/.test(t)?"Opera":/firefox|fxios/.test(t)?"Firefox":t.includes("crios")?"Chrome":/iphone|ipod|ipad/.test(t)&&t.includes("safari")?"Mobile Safari":t.includes("android")&&t.includes("wv")?"Android WebView":/chrome|chromium/.test(t)?"Chrome":t.includes("safari")?"Safari":"Other":"Unknown"}function ob(e,t,n){n&&(e[t]=n)}function ab(...e){return e.find(Boolean)}function sb(e){return(t,n)=>{e(t,n.product_id),function(e,t){ob(e,"content_name",t.name),ob(e,"value",ab(t.value,t.price)),e.content_type="product"}(t,n)}}function db(e){return(t,n)=>{e(t,n),ob(t,"content_category",n.category)}}function cb(e,t){ob(e,"value",ab(t.value,t.total))}function ub(e,t){ob(e,"value",ab(t.value,t.total,t.revenue))}function lb(e,t){if(Array.isArray(e))return e.map(t)}const pb={"Product Viewed":"ViewContent","Product Added":"AddToCart","Checkout Started":"InitiateCheckout","Payment Info Entered":"AddPaymentInfo","Order Completed":"Purchase"},mb=new Set(["AddPaymentInfo","AddToCart","AddToWishlist","CompleteRegistration","Contact","CustomizeProduct","Donate","FindLocation","InitiateCheckout","Lead","Purchase","Schedule","Search","StartTrial","SubmitApplication","Subscribe","ViewContent"]),fb=new Set,hb=new Map;function vb(e){if(Array.from(document.scripts??[]).some((e=>e.src.includes("connect.facebook.net/en_US/fbevents.js"))))return!0;let t=document.createElement("script");t.async=!0,t.src="https://connect.facebook.net/en_US/fbevents.js",t.addEventListener?.("load",(()=>{wb(e,"[Facebook Pixel] fbevents.js loaded")})),t.addEventListener?.("error",(()=>{wb(e,"[Facebook Pixel] fbevents.js failed to load")}));let n=document.getElementsByTagName("script")[0],r=n?.parentNode??document.head??document.body;return!!r&&(r.insertBefore(t,n??null),wb(e,"[Facebook Pixel] inserted fbevents.js"),!0)}function gb(e,t){!t||!Array.isArray(t)||(e.content_ids=t.map((e=>e.product_id)).filter(Boolean),e.num_items=t.length,e.contents=lb(t,(e=>({id:e.product_id,quantity:e.quantity||1,item_price:e.price}))))}function yb(e,t){let n=window;typeof window>"u"||!n.fbq||(t?n.fbq("init",e,{external_id:t}):n.fbq("init",e))}function bb(e,t,n){let r=window;typeof window>"u"||!r.fbq||r.fbq(e,t,n)}function wb(e,...t){e&&console.log(...t)}function $b(e,t,n){return!!function(e){if(typeof window>"u")return!1;let t=window;if(t.fbq)return vb(e);let n=(...e)=>{n.callMethod?n.callMethod(...e):n.queue.push(e)};return n.push=n,n.loaded=!0,n.version="2.0",n.queue=[],t.fbq=n,t._fbq||=n,vb(e)}(n)&&(function(e,t,n){let r=hb.get(e);return!(!t||t===r||(yb(e,t),hb.set(e,t),fb.add(e),wb(n,`[Facebook Pixel] Re-initialized pixel ${e} with userId ${t}`),0))}(e,t,n)||fb.has(e)||function(e,t,n){yb(e,t),fb.add(e),t&&hb.set(e,t),wb(n,`[Facebook Pixel] Initialized pixel ${e}`)}(e,t,n),!0)}const kb=sb((function(e,t){t&&(e.content_ids=[t])}));function Ib(e,t){kb(e,t),t.product_id&&(e.contents=[{id:t.product_id,quantity:t.quantity||1,item_price:t.price}])}function xb(e,t){gb(e,t.products),cb(e,t),e.content_type="product",ob(e,"order_id",t.order_id)}function Eb(e,t){ob(e,"value",t.value),t.product_id&&(e.content_ids=[t.product_id])}const Ab={ViewContent:db(kb),AddToCart:Ib,InitiateCheckout:xb,AddPaymentInfo:xb,Purchase:function(e,t){gb(e,t.products),ub(e,t),e.content_type="product",ob(e,"order_id",t.order_id)},"Product List Viewed":function(e,t){gb(e,t.products),e.content_type="product"},"Product Removed":Ib,"Cart Viewed":xb,"Coupon Applied":xb,"Coupon Removed":xb};function Tb(e,t){let n={};return ob(n,"currency",t.currency),ob(n,"event_id",t.event_id),(Ab[e.name]??Ab[e.sourceName]??Eb)(n,t),n}function Ob(e,t=2){let n=e.trim();if(!n.includes("%")||0===t)return n;try{return Ob(decodeURIComponent(n),t-1)}catch{return n}}function _b(e){let t=e.match(/[A-Za-z0-9]+/g);return t?t.map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(""):"Unknown"}function Db(e){let t=Ob(function(e){return e.name||"Unknown"}(e)),n=pb[t]||t;return mb.has(n)?{method:"track",name:n,sourceName:t}:{method:"trackCustom",name:_b(n),sourceName:t}}function Sb(e=!1){let t=(t,n)=>{n.fbId&&$b(n.fbId,t.userId,e)&&(bb("track","PageView",{}),wb(e,"[Facebook Pixel] Sent PageView"))};return{name:"Facebook Pixel",preload:(t,n)=>{n.fbId&&$b(n.fbId,t.userId,e)},track:(t,n)=>{if(!n.fbId||!$b(n.fbId,t.userId,e))return;let r=Db(t),i=Tb(r,t.properties);bb(r.method,r.name,i),wb(e,`[Facebook Pixel] Sent ${r.name}:`,i)},page:t,screen:t,identify:(t,n)=>{!n.fbId||!t.userId||($b(n.fbId,t.userId,e),wb(e,`[Facebook Pixel] Identity synced: ${t.userId}`))}}}const Mb={"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"},Pb=new Set;function jb(e){let t=window;typeof window>"u"||!t.dataLayer||t.dataLayer.push(e)}function Cb(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 Nb(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 Rb(e){return Array.isArray(e.products)?e.products.map(Cb):[]}function Ub(e){return[...Nb(e),...Rb(e)]}function Lb(e,t,n){n&&(e[t]=n)}function qb(e,t){if(e.gtmId)return function(e,t){return!!Pb.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)&&(Pb.add(e),t&&console.log(`[GTM] Loaded container ${e}`),!0)}(e.gtmId,t)?e.gtmId:void 0}function Gb(e,t){Lb(e,"user_id",t.userId)}function zb(e){e.userId&&jb({user_id:e.userId})}function Fb(e=!1){return{name:"Google Tag Manager",preload:(t,n)=>{qb(n,e)&&zb(t)},track:(t,n)=>{if(!qb(n,e))return;let r=function(e){let t=e||"Unknown";return Mb[t]||t}(t.name);jb({ecommerce:null});let i=function(e,t){let n={items:Ub(t)};return Lb(n,"currency",t.currency),Lb(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);Gb(i,t),jb(i),function(e,t,n){e&&console.log(t,n)}(e,`[GTM] Pushed ${r}:`,i)},page:(t,n)=>{if(!qb(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};Lb(r,"page_referrer",t.context.page.referrer),Gb(r,t),jb(r),e&&console.log("[GTM] Pushed page_view:",r)},screen:(t,n)=>{if(!qb(n,e))return;let r={event:"screen_view",screen_name:t.name||"Unknown"};Gb(r,t),jb(r),e&&console.log("[GTM] Pushed screen_view:",r)},identify:(t,n)=>{!t.userId||!qb(n,e)||(zb(t),e&&console.log(`[GTM] Identity synced: ${t.userId}`))}}}const Bb=new Set(Object.values(oc));function Wb(e){return e.messageId??`msg_${e.timestamp.toString(36)}`}function Yb(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 Zb(e,t,n){return n&&t?{...e,name:t}:e}const Vb={"Product Viewed":"ViewContent","Product Added":"AddToCart","Checkout Started":"InitiateCheckout","Payment Info Entered":"AddPaymentInfo","Order Completed":"Purchase"},Hb=new Set;function Kb(e,t){let n=window;typeof window>"u"||!n.ttq||n.ttq.instance(e)("identify",{external_id:t})}function Jb(e,...t){e&&console.log(...t)}function Qb(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}()&&(Hb.has(e)||(function(e){let t=window;typeof window>"u"||!t.ttq||t.ttq("init",e)}(e),Hb.add(e),Jb(t,`[TikTok Pixel] Initialized pixel ${e}`)),!0)}const Xb=sb((function(e,t){ob(e,"content_id",t)}));function ew(e,t){ob(e,"contents",lb(t,(e=>({content_id:e.product_id,content_name:e.name,quantity:e.quantity||1,price:e.price}))))}function tw(e,t){ew(e,t.products),cb(e,t)}function nw(e,t){ob(e,"value",t.value)}const rw={ViewContent:db(Xb),AddToCart:function(e,t){Xb(e,t),ob(e,"quantity",t.quantity)},InitiateCheckout:tw,AddPaymentInfo:tw,Purchase:function(e,t){ew(e,t.products),ub(e,t),ob(e,"order_id",t.order_id)}};function iw(e,t){let n={};return ob(n,"currency",t.currency),ob(n,"event_id",t.event_id),(rw[e]??nw)(n,t),n}function ow(e){return e.tikTokId}function aw(e=!1){let t=(t,n)=>{let r=ow(n);r&&Qb(r,e)&&(function(e){let t=window;typeof window>"u"||!t.ttq||t.ttq.instance(e)("page")}(r),Jb(e,"[TikTok Pixel] Sent page view"))};return{name:"TikTok Pixel",preload:(t,n)=>{let r=ow(n);r&&Qb(r,e)&&t.userId&&Kb(r,t.userId)},track:(t,n)=>{let r=ow(n);if(!r||!Qb(r,e))return;let i=function(e){let t=function(e){return e.name||"Unknown"}(e);return Vb[t]||t}(t),o=iw(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),Jb(e,`[TikTok Pixel] Sent ${i}:`,o)},page:t,screen:t,identify:(t,n)=>{let r=ow(n);!r||!t.userId||Qb(r,e)&&(Kb(r,t.userId),Jb(e,`[TikTok Pixel] Identity synced: ${t.userId}`))}}}const sw={preload:(e,t,n)=>e.preload(t,n),track:(e,t,n)=>e.track(t,n),page:(e,t,n)=>e.page(t,n),screen:(e,t,n)=>e.screen(t,n),identify:(e,t,n)=>e.identify(t,n)},dw=["fbId","gtmId","tikTokId"];function cw(e){return e||void 0}function uw(e,t=!1,n={}){let r=new Map,i=new Map,o=!1===n.sessions?null: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||!Bb.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,messageId:Wb(e),occurredAt:new Date(e.timestamp).toISOString(),properties:Zb(t.rest,e.name,r),context:Yb(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",preload:()=>{t&&console.log("[Sessions API] Preload received (no-op)")},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),a=[!1===n.facebook?null:Sb(t),!1===n.gtm?null:Fb(t),!1===n.tikTok?null:aw(t)].filter((e=>!!e)),s=async n=>{try{let r=function(e){let t=e??{};return Object.fromEntries(dw.map((e=>[e,cw(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),{}}},d=(e,n,r)=>{try{c(e,n,r)}catch(n){t&&console.error(`[DestinationManager] ${e.name} error:`,n)}},c=(e,t,n)=>{sw[t.type]?.(e,t,n)};return{sendEvent:async(e,t)=>{if(!o&&0===a.length)return;let n=a.length>0?await(async e=>{let t=r.get(e);if(t)return t;let n=i.get(e);if(n)return n;n=s(e),i.set(e,n);try{let t=await n;return r.set(e,t),t}finally{i.delete(e)}})(t):{};if(o&&d(o,e,n),function(e){return dw.some((t=>!!e[t]))}(n))for(let t of a)d(t,e,n)},clearCache:()=>{r.clear(),i.clear()}}}function lw(){return typeof document>"u"?null:new Vy}const pw={deleteCookie:function(e){let t=lw();t&&t.remove(e,{path:"/"})},getCookie:function(e){return lw()?.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=lw();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{}}};function mw(){return function(e){let t=e.getCookie(ls);if(t)return t;let n=ms();return e.setCookie(ls,n),n}(pw)}function fw(){return function(e){let t=e.getItem(ps);if(t)return t;let n=fs();return e.setItem(ps,n),n}(pw)}const hw={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}},vw={locale:"en-US",exponent:2};function gw(){return globalThis.crypto?.randomUUID?.()??`msg_${Date.now().toString(36)}_${Math.random().toString(36).slice(2)}`}function yw(e="tenant-web"){let t=nb(),n=tb({anonymousId:fw(),context:t,sessionId:mw()});return{name:e,referrer:t.page.referrer,utmSource:t.campaign?.source,utmMedium:t.campaign?.medium,utmCampaign:t.campaign?.name,browser:bw(n.browser),deviceType:ww(n.device_type),sessionId:bw(n.browser_session_id),anonymousId:bw(n.anonymous_id)}}function bw(e){return"string"==typeof e&&e.length>0?e:void 0}function ww(e){return"MOBILE"===e||"TABLET"===e||"DESKTOP"===e?e:void 0}var $w,kw,Iw={},xw={},Ew={},Aw={};function Tw(){return kw||(kw=1,Aw.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(" ")}),Aw}var Ow,_w,Dw,Sw={},Mw={};function Pw(){if(Ow)return Mw;Ow=1,Mw.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 Mw}function jw(){if(_w)return Sw;_w=1,Sw.TZDateMini=void 0;var e=Pw();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)}}Sw.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}))})),Sw}function Cw(){if(Dw)return Ew;Dw=1,Ew.TZDate=void 0;var e=Tw(),t=jw();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 Ew.TZDate=n,Ew}var Nw,Rw,Uw,Lw,qw,Gw={},zw={},Fw=(Uw||(Uw=1,function(e){var t=($w||($w=1,xw.constructFromSymbol=void 0,xw.constructFromSymbol=Symbol.for("constructDateFrom")),xw);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=Cw();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=jw();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(Nw)return Gw;Nw=1,Gw.tz=void 0;var e=Cw();return Gw.tz=t=>n=>e.TZDate.tz(t,+new Date(n)),Gw}();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=Pw();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(Rw)return zw;Rw=1,zw.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=Pw();return zw}();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=Tw();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]}}))}))}(Iw)),Iw),Bw={},Ww={},Yw={},Zw={},Vw={};function Hw(){if(Lw)return Vw;Lw=1,Vw.secondsInYear=Vw.secondsInWeek=Vw.secondsInQuarter=Vw.secondsInMonth=Vw.secondsInMinute=Vw.secondsInHour=Vw.secondsInDay=Vw.quartersInYear=Vw.monthsInYear=Vw.monthsInQuarter=Vw.minutesInYear=Vw.minutesInMonth=Vw.minutesInHour=Vw.minutesInDay=Vw.minTime=Vw.millisecondsInWeek=Vw.millisecondsInSecond=Vw.millisecondsInMinute=Vw.millisecondsInHour=Vw.millisecondsInDay=Vw.maxTime=Vw.daysInYear=Vw.daysInWeek=Vw.constructFromSymbol=void 0,Vw.daysInWeek=7;const e=Vw.daysInYear=365.2425,t=Vw.maxTime=24*Math.pow(10,8)*60*60*1e3;Vw.minTime=-t,Vw.millisecondsInWeek=6048e5,Vw.millisecondsInDay=864e5,Vw.millisecondsInMinute=6e4,Vw.millisecondsInHour=36e5,Vw.millisecondsInSecond=1e3,Vw.minutesInYear=525600,Vw.minutesInMonth=43200,Vw.minutesInDay=1440,Vw.minutesInHour=60,Vw.monthsInQuarter=3,Vw.monthsInYear=12,Vw.quartersInYear=4;const n=Vw.secondsInHour=3600;Vw.secondsInMinute=60;const r=Vw.secondsInDay=24*n;Vw.secondsInWeek=7*r;const i=Vw.secondsInYear=r*e,o=Vw.secondsInMonth=i/12;return Vw.secondsInQuarter=3*o,Vw.constructFromSymbol=Symbol.for("constructDateFrom"),Vw}function Kw(){if(qw)return Zw;qw=1,Zw.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=Hw();return Zw}var Jw,Qw,Xw={};function e$(){if(Jw)return Xw;Jw=1,Xw.toDate=function(t,n){return(0,e.constructFrom)(n||t,t)};var e=Kw();return Xw}function t$(){if(Qw)return Yw;Qw=1,Yw.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=Kw(),t=e$();return Yw}var n$,r$,i$={};function o$(){if(n$)return i$;n$=1,i$.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=Kw(),t=e$();return i$}function a$(){if(r$)return Ww;r$=1,Ww.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=t$(),t=o$(),n=Kw(),r=e$();return Ww}var s$,d$={},c$={};function u$(){if(s$)return c$;s$=1,c$.isSaturday=function(t,n){return 6===(0,e.toDate)(t,n?.in).getDay()};var e=e$();return c$}var l$,p$={};function m$(){if(l$)return p$;l$=1,p$.isSunday=function(t,n){return 0===(0,e.toDate)(t,n?.in).getDay()};var e=e$();return p$}var f$,h$,v$={};function g$(){if(f$)return v$;f$=1,v$.isWeekend=function(t,n){const r=(0,e.toDate)(t,n?.in).getDay();return 0===r||6===r};var e=e$();return v$}function y$(){if(h$)return d$;h$=1,d$.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=Kw(),t=u$(),n=m$(),r=g$(),i=e$();return d$}var b$,w$,$$={},k$={};function I$(){if(b$)return k$;b$=1,k$.addMilliseconds=function(n,r,i){return(0,e.constructFrom)(i?.in||n,+(0,t.toDate)(n)+r)};var e=Kw(),t=e$();return k$}function x$(){if(w$)return $$;w$=1,$$.addHours=function(n,r,i){return(0,e.addMilliseconds)(n,r*t.millisecondsInHour,i)};var e=I$(),t=Hw();return $$}var E$,A$,T$,O$,_$={},D$={},S$={},M$={},P$={};function j$(){if(E$)return P$;E$=1,P$.getDefaultOptions=function(){return e},P$.setDefaultOptions=function(t){e=t};let e={};return P$}function C$(){if(A$)return M$;A$=1,M$.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=j$(),t=e$();return M$}function N$(){if(T$)return S$;T$=1,S$.startOfISOWeek=function(t,n){return(0,e.startOfWeek)(t,{...n,weekStartsOn:1})};var e=C$();return S$}function R$(){if(O$)return D$;O$=1,D$.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=Kw(),t=N$(),n=e$();return D$}var U$,L$={},q$={},G$={};function z$(){if(U$)return G$;U$=1,G$.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=e$();return G$}var F$,B$={};function W$(){if(F$)return B$;F$=1,B$.normalizeDates=function(t,...n){const r=e.constructFrom.bind(null,t||n.find((e=>"object"==typeof e)));return n.map(r)};var e=Kw();return B$}var Y$,Z$,V$={};function H$(){if(Y$)return V$;Y$=1,V$.startOfDay=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setHours(0,0,0,0),r};var e=e$();return V$}function K$(){if(Z$)return q$;Z$=1,q$.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=z$(),t=W$(),n=Hw(),r=H$();return q$}var J$,Q$,X$,ek={};function tk(){if(J$)return ek;J$=1,ek.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=Kw(),t=R$(),n=N$();return ek}function nk(){if(Q$)return L$;Q$=1,L$.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=Kw(),t=K$(),n=tk(),r=e$();return L$}function rk(){if(X$)return _$;X$=1,_$.addISOWeekYears=function(n,r,i){return(0,t.setISOWeekYear)(n,(0,e.getISOWeekYear)(n,i)+r,i)};var e=R$(),t=nk();return _$}var ik,ok={};function ak(){if(ik)return ok;ik=1,ok.addMinutes=function(n,r,i){const o=(0,t.toDate)(n,i?.in);return o.setTime(o.getTime()+r*e.millisecondsInMinute),o};var e=Hw(),t=e$();return ok}var sk,dk={};function ck(){if(sk)return dk;sk=1,dk.addQuarters=function(t,n,r){return(0,e.addMonths)(t,3*n,r)};var e=o$();return dk}var uk,lk={};function pk(){if(uk)return lk;uk=1,lk.addSeconds=function(t,n,r){return(0,e.addMilliseconds)(t,1e3*n,r)};var e=I$();return lk}var mk,fk={};function hk(){if(mk)return fk;mk=1,fk.addWeeks=function(t,n,r){return(0,e.addDays)(t,7*n,r)};var e=t$();return fk}var vk,gk={};function yk(){if(vk)return gk;vk=1,gk.addYears=function(t,n,r){return(0,e.addMonths)(t,12*n,r)};var e=o$();return gk}var bk,wk={};function $k(){if(bk)return wk;bk=1,wk.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=e$();return wk}var kk,Ik={},xk={};function Ek(){if(kk)return xk;kk=1,xk.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=Kw(),t=e$();return xk}var Ak,Tk,Ok={};function _k(){if(Ak)return Ok;Ak=1,Ok.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=Kw(),t=e$();return Ok}function Dk(){if(Tk)return Ik;Tk=1,Ik.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=W$(),t=Ek(),n=_k();return Ik}var Sk,Mk={};function Pk(){if(Sk)return Mk;Sk=1,Mk.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=e$();return Mk}var jk,Ck={};function Nk(){if(jk)return Ck;jk=1,Ck.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=W$(),t=Pk(),n=Kw();return Ck}var Rk,Uk={};function Lk(){if(Rk)return Uk;Rk=1,Uk.compareAsc=function(t,n){const r=+(0,e.toDate)(t)-+(0,e.toDate)(n);return r<0?-1:r>0?1:r};var e=e$();return Uk}var qk,Gk={};function zk(){if(qk)return Gk;qk=1,Gk.compareDesc=function(t,n){const r=+(0,e.toDate)(t)-+(0,e.toDate)(n);return r>0?-1:r<0?1:r};var e=e$();return Gk}var Fk,Bk={};function Wk(){if(Fk)return Bk;Fk=1,Bk.constructNow=function(t){return(0,e.constructFrom)(t,Date.now())};var e=Kw();return Bk}var Yk,Zk={};function Vk(){if(Yk)return Zk;Yk=1,Zk.daysToWeeks=function(t){const n=Math.trunc(t/e.daysInWeek);return 0===n?0:n};var e=Hw();return Zk}var Hk,Kk={},Jk={};function Qk(){if(Hk)return Jk;Hk=1,Jk.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=W$(),t=H$();return Jk}var Xk,eI,tI,nI={},rI={};function iI(){return Xk||(Xk=1,rI.isDate=function(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}),rI}function oI(){if(eI)return nI;eI=1,nI.isValid=function(n){return!(!(0,e.isDate)(n)&&"number"!=typeof n||isNaN(+(0,t.toDate)(n)))};var e=iI(),t=e$();return nI}function aI(){if(tI)return Kk;tI=1,Kk.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=W$(),t=t$(),n=K$(),r=Qk(),i=oI(),o=g$();return Kk}var sI,dI={};function cI(){if(sI)return dI;sI=1,dI.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=W$(),t=R$();return dI}var uI,lI={};function pI(){if(uI)return lI;uI=1,lI.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=z$(),t=W$(),n=Hw(),r=N$();return lI}var mI,fI={};function hI(){if(mI)return fI;mI=1,fI.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=W$();return fI}var vI,gI,yI={},bI={};function wI(){if(vI)return bI;vI=1,bI.getQuarter=function(t,n){const r=(0,e.toDate)(t,n?.in);return Math.trunc(r.getMonth()/3)+1};var e=e$();return bI}function $I(){if(gI)return yI;gI=1,yI.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=W$(),t=wI();return yI}var kI,II={};function xI(){if(kI)return II;kI=1,II.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=z$(),t=W$(),n=Hw(),r=C$();return II}var EI,AI={};function TI(){if(EI)return AI;EI=1,AI.differenceInCalendarYears=function(t,n,r){const[i,o]=(0,e.normalizeDates)(r?.in,t,n);return i.getFullYear()-o.getFullYear()};var e=W$();return AI}var OI,_I={};function DI(){if(OI)return _I;OI=1,_I.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=W$(),t=K$();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 _I}var SI,MI,PI={},jI={};function CI(){return SI||(SI=1,jI.getRoundingMethod=function(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}),jI}function NI(){if(MI)return PI;MI=1,PI.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=CI(),t=W$(),n=Hw();return PI}var RI,UI,LI={},qI={};function GI(){if(RI)return qI;RI=1,qI.subISOWeekYears=function(t,n,r){return(0,e.addISOWeekYears)(t,-n,r)};var e=rk();return qI}function zI(){if(UI)return LI;UI=1,LI.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=W$(),t=Lk(),n=cI(),r=GI();return LI}var FI,BI={};function WI(){if(FI)return BI;FI=1,BI.differenceInMilliseconds=function(t,n){return+(0,e.toDate)(t)-+(0,e.toDate)(n)};var e=e$();return BI}var YI,ZI={};function VI(){if(YI)return ZI;YI=1,ZI.differenceInMinutes=function(r,i,o){const a=(0,n.differenceInMilliseconds)(r,i)/t.millisecondsInMinute;return(0,e.getRoundingMethod)(o?.roundingMethod)(a)};var e=CI(),t=Hw(),n=WI();return ZI}var HI,KI={},JI={},QI={};function XI(){if(HI)return QI;HI=1,QI.endOfDay=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setHours(23,59,59,999),r};var e=e$();return QI}var ex,tx,nx,rx={};function ix(){if(ex)return rx;ex=1,rx.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=e$();return rx}function ox(){if(tx)return JI;tx=1,JI.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=XI(),t=ix(),n=e$();return JI}function ax(){if(nx)return KI;nx=1,KI.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=W$(),t=Lk(),n=hI(),r=ox();return KI}var sx,dx={};function cx(){if(sx)return dx;sx=1,dx.differenceInQuarters=function(n,r,i){const o=(0,t.differenceInMonths)(n,r,i)/3;return(0,e.getRoundingMethod)(i?.roundingMethod)(o)};var e=CI(),t=ax();return dx}var ux,lx={};function px(){if(ux)return lx;ux=1,lx.differenceInSeconds=function(n,r,i){const o=(0,t.differenceInMilliseconds)(n,r)/1e3;return(0,e.getRoundingMethod)(i?.roundingMethod)(o)};var e=CI(),t=WI();return lx}var mx,fx={};function hx(){if(mx)return fx;mx=1,fx.differenceInWeeks=function(n,r,i){const o=(0,t.differenceInDays)(n,r,i)/7;return(0,e.getRoundingMethod)(i?.roundingMethod)(o)};var e=CI(),t=DI();return fx}var vx,gx={};function yx(){if(vx)return gx;vx=1,gx.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=W$(),t=Lk(),n=TI();return gx}var bx,wx,$x={},kx={};function Ix(){if(bx)return kx;bx=1,kx.normalizeInterval=function(t,n){const[r,i]=(0,e.normalizeDates)(t,n.start,n.end);return{start:r,end:i}};var e=W$();return kx}function xx(){if(wx)return $x;wx=1,$x.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=Ix(),t=Kw();return $x}var Ex,Ax={};function Tx(){if(Ex)return Ax;Ex=1,Ax.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=Ix(),t=Kw();return Ax}var Ox,_x={};function Dx(){if(Ox)return _x;Ox=1,_x.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=Ix(),t=ak(),n=Kw();return _x}var Sx,Mx={};function Px(){if(Sx)return Mx;Sx=1,Mx.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=Ix(),t=Kw();return Mx}var jx,Cx,Nx={},Rx={};function Ux(){if(jx)return Rx;jx=1,Rx.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=e$();return Rx}function Lx(){if(Cx)return Nx;Cx=1,Nx.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=Ix(),t=ck(),n=Kw(),r=Ux();return Nx}var qx,Gx={};function zx(){if(qx)return Gx;qx=1,Gx.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=Ix(),t=hk(),n=Kw(),r=C$();return Gx}var Fx,Bx={};function Wx(){if(Fx)return Bx;Fx=1,Bx.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=Ix(),t=Kw(),n=xx(),r=g$();return Bx}var Yx,Zx,Vx={},Hx={};function Kx(){if(Yx)return Hx;Yx=1,Hx.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=e$();return Hx}function Jx(){if(Zx)return Vx;Zx=1,Vx.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=Wx(),t=ix(),n=Kx();return Vx}var Qx,Xx={},eE={};function tE(){if(Qx)return eE;Qx=1,eE.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=e$();return eE}var nE,rE,iE={};function oE(){if(nE)return iE;nE=1,iE.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=e$();return iE}function aE(){if(rE)return Xx;rE=1,Xx.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=Wx(),t=tE(),n=oE();return Xx}var sE,dE={};function cE(){if(sE)return dE;sE=1,dE.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=Ix(),t=Kw();return dE}var uE,lE={};function pE(){if(uE)return lE;uE=1,lE.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=e$();return lE}var mE,fE={};function hE(){if(mE)return fE;mE=1,fE.endOfHour=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setMinutes(59,59,999),r};var e=e$();return fE}var vE,gE,yE={},bE={};function wE(){if(vE)return bE;vE=1,bE.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=j$(),t=e$();return bE}function $E(){if(gE)return yE;gE=1,yE.endOfISOWeek=function(t,n){return(0,e.endOfWeek)(t,{...n,weekStartsOn:1})};var e=wE();return yE}var kE,IE={};function xE(){if(kE)return IE;kE=1,IE.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=Kw(),t=R$(),n=N$();return IE}var EE,AE={};function TE(){if(EE)return AE;EE=1,AE.endOfMinute=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setSeconds(59,999),r};var e=e$();return AE}var OE,_E={};function DE(){if(OE)return _E;OE=1,_E.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=e$();return _E}var SE,ME={};function PE(){if(SE)return ME;SE=1,ME.endOfSecond=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setMilliseconds(999),r};var e=e$();return ME}var jE,CE={};function NE(){if(jE)return CE;jE=1,CE.endOfToday=function(t){return(0,e.endOfDay)(Date.now(),t)};var e=XI();return CE}var RE,UE={};function LE(){if(RE)return UE;RE=1,UE.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=Wk();return UE}var qE,GE={};function zE(){if(qE)return GE;qE=1,GE.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=Kw(),t=Wk();return GE}var FE,BE={},WE={},YE={},ZE={};function VE(){if(FE)return ZE;FE=1,ZE.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 ZE.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},ZE}var HE,KE,JE={},QE={};function XE(){return HE||(HE=1,QE.buildFormatLongFn=function(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}),QE}function eA(){if(KE)return JE;KE=1,JE.formatLong=void 0;var e=XE();return JE.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"})},JE}var tA,nA={};function rA(){if(tA)return nA;tA=1,nA.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 nA.formatRelative=t=>e[t],nA}var iA,oA,aA={},sA={};function dA(){return iA||(iA=1,sA.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]}}),sA}function cA(){if(oA)return aA;oA=1,aA.localize=void 0;var e=dA();return aA.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"})},aA}var uA,lA={},pA={};function mA(){return uA||(uA=1,pA.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)}}}),pA}var fA,hA,vA,gA,yA={};function bA(){return fA||(fA=1,yA.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)}}}),yA}function wA(){if(hA)return lA;hA=1,lA.match=void 0;var e=mA();return lA.match={ordinalNumber:(0,bA().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"})},lA}function $A(){return vA||(vA=1,YE.enUS=void 0,YE.enUS={code:"en-US",formatDistance:VE().formatDistance,formatLong:eA().formatLong,formatRelative:rA().formatRelative,localize:cA().localize,match:wA().match,options:{weekStartsOn:0,firstWeekContainsDate:1}}),YE}function kA(){return gA||(gA=1,function(){Object.defineProperty(WE,"defaultLocale",{enumerable:!0,get:function(){return e.enUS}});var e=$A()}()),WE}var IA,xA={},EA={};function AA(){if(IA)return EA;IA=1,EA.getDayOfYear=function(r,i){const o=(0,n.toDate)(r,i?.in);return(0,e.differenceInCalendarDays)(o,(0,t.startOfYear)(o))+1};var e=K$(),t=oE(),n=e$();return EA}var TA,OA={};function _A(){if(TA)return OA;TA=1,OA.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=Hw(),t=N$(),n=tk(),r=e$();return OA}var DA,SA,MA,PA={},jA={},CA={};function NA(){if(DA)return CA;DA=1,CA.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=j$(),t=Kw(),n=C$(),r=e$();return CA}function RA(){if(SA)return jA;SA=1,jA.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=j$(),t=Kw(),n=NA(),r=C$();return jA}function UA(){if(MA)return PA;MA=1,PA.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=Hw(),t=C$(),n=RA(),r=e$();return PA}var LA,qA={};function GA(){return LA||(LA=1,qA.addLeadingZeros=function(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}),qA}var zA,FA,BA={};function WA(){if(zA)return BA;zA=1,BA.lightFormatters=void 0;var e=GA();return BA.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)}},BA}function YA(){if(FA)return xA;FA=1,xA.formatters=void 0;var e=AA(),t=_A(),n=R$(),r=UA(),i=NA(),o=GA(),a=WA();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 xA.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)}},xA}var ZA,VA={};function HA(){if(ZA)return VA;ZA=1,VA.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 VA.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))}},VA}var KA,JA,QA={};function XA(){if(KA)return QA;KA=1,QA.isProtectedDayOfYearToken=function(t){return e.test(t)},QA.isProtectedWeekYearToken=function(e){return t.test(e)},QA.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 QA}function eT(){return JA||(JA=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=kA(),n=j$(),r=YA(),i=HA(),o=XA(),a=oI(),s=e$();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}}(BE)),BE}var tT,nT={};function rT(){if(tT)return nT;tT=1,nT.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=kA(),t=j$(),n=z$(),r=W$(),i=Lk(),o=Hw(),a=ax(),s=px();return nT}var iT,oT={};function aT(){if(iT)return oT;iT=1,oT.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=kA(),t=j$(),n=CI(),r=z$(),i=W$(),o=Lk(),a=Hw();return oT}var sT,dT={};function cT(){if(sT)return dT;sT=1,dT.formatDistanceToNow=function(n,r){return(0,t.formatDistance)(n,(0,e.constructNow)(n),r)};var e=Wk(),t=rT();return dT}var uT,lT={};function pT(){if(uT)return lT;uT=1,lT.formatDistanceToNowStrict=function(n,r){return(0,t.formatDistanceStrict)(n,(0,e.constructNow)(n),r)};var e=Wk(),t=aT();return lT}var mT,fT={};function hT(){if(mT)return fT;mT=1,fT.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=kA(),t=j$();const n=["years","months","weeks","days","hours","minutes","seconds"];return fT}var vT,gT={};function yT(){if(vT)return gT;vT=1,gT.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=GA(),t=e$();return gT}var bT,wT={};function $T(){if(bT)return wT;bT=1,wT.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=GA(),t=oI(),n=e$();return wT}var kT,IT={};function xT(){return kT||(kT=1,IT.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`}),IT}var ET,AT={};function TT(){if(ET)return AT;ET=1,AT.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=GA(),t=oI(),n=e$();return AT}var OT,_T={};function DT(){if(OT)return _T;OT=1,_T.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=GA(),t=oI(),n=e$();const r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return _T}var ST,MT={};function PT(){if(ST)return MT;ST=1,MT.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=kA(),t=j$(),n=W$(),r=K$(),i=eT();return MT}var jT,CT={};function NT(){if(jT)return CT;jT=1,CT.fromUnixTime=function(t,n){return(0,e.toDate)(1e3*t,n?.in)};var e=e$();return CT}var RT,UT={};function LT(){if(RT)return UT;RT=1,UT.getDate=function(t,n){return(0,e.toDate)(t,n?.in).getDate()};var e=e$();return UT}var qT,GT={};function zT(){if(qT)return GT;qT=1,GT.getDay=function(t,n){return(0,e.toDate)(t,n?.in).getDay()};var e=e$();return GT}var FT,BT={};function WT(){if(FT)return BT;FT=1,BT.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=Kw(),t=e$();return BT}var YT,ZT,VT={},HT={};function KT(){if(YT)return HT;YT=1,HT.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=e$();return HT}function JT(){if(ZT)return VT;ZT=1,VT.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=KT(),t=e$();return VT}var QT,XT={};function eO(){if(QT)return XT;QT=1,XT.getDecade=function(t,n){const r=(0,e.toDate)(t,n?.in).getFullYear();return 10*Math.floor(r/10)};var e=e$();return XT}var tO,nO={};function rO(){if(tO)return nO;tO=1,nO.getDefaultOptions=function(){return Object.assign({},(0,e.getDefaultOptions)())};var e=j$();return nO}var iO,oO={};function aO(){if(iO)return oO;iO=1,oO.getHours=function(t,n){return(0,e.toDate)(t,n?.in).getHours()};var e=e$();return oO}var sO,dO={};function cO(){if(sO)return dO;sO=1,dO.getISODay=function(t,n){const r=(0,e.toDate)(t,n?.in).getDay();return 0===r?7:r};var e=e$();return dO}var uO,lO={};function pO(){if(uO)return lO;uO=1,lO.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=hk(),t=Hw(),n=tk();return lO}var mO,fO={};function hO(){if(mO)return fO;mO=1,fO.getMilliseconds=function(t){return(0,e.toDate)(t).getMilliseconds()};var e=e$();return fO}var vO,gO={};function yO(){if(vO)return gO;vO=1,gO.getMinutes=function(t,n){return(0,e.toDate)(t,n?.in).getMinutes()};var e=e$();return gO}var bO,wO={};function $O(){if(bO)return wO;bO=1,wO.getMonth=function(t,n){return(0,e.toDate)(t,n?.in).getMonth()};var e=e$();return wO}var kO,IO={};function xO(){if(kO)return IO;kO=1,IO.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=z$(),t=Hw(),n=e$();return IO}var EO,AO={};function TO(){if(EO)return AO;EO=1,AO.getSeconds=function(t){return(0,e.toDate)(t).getSeconds()};var e=e$();return AO}var OO,_O={};function DO(){if(OO)return _O;OO=1,_O.getTime=function(t){return+(0,e.toDate)(t)};var e=e$();return _O}var SO,MO={};function PO(){if(SO)return MO;SO=1,MO.getUnixTime=function(t){return Math.trunc(+(0,e.toDate)(t)/1e3)};var e=e$();return MO}var jO,CO={};function NO(){if(jO)return CO;jO=1,CO.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=j$(),t=LT(),n=zT(),r=Kx(),i=e$();return CO}var RO,UO,LO={},qO={};function GO(){if(RO)return qO;RO=1,qO.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=e$();return qO}function zO(){if(UO)return LO;UO=1,LO.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=xI(),t=GO(),n=Kx(),r=e$();return LO}var FO,BO={};function WO(){if(FO)return BO;FO=1,BO.getYear=function(t,n){return(0,e.toDate)(t,n?.in).getFullYear()};var e=e$();return BO}var YO,ZO={};function VO(){if(YO)return ZO;YO=1,ZO.hoursToMilliseconds=function(t){return Math.trunc(t*e.millisecondsInHour)};var e=Hw();return ZO}var HO,KO={};function JO(){if(HO)return KO;HO=1,KO.hoursToMinutes=function(t){return Math.trunc(t*e.minutesInHour)};var e=Hw();return KO}var QO,XO={};function e_(){if(QO)return XO;QO=1,XO.hoursToSeconds=function(t){return Math.trunc(t*e.secondsInHour)};var e=Hw();return XO}var t_,n_={};function r_(){if(t_)return n_;t_=1,n_.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=W$();return n_}var i_,o_={};function a_(){if(i_)return o_;i_=1,o_.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=Ix(),t=a$(),n=DI(),r=NI(),i=VI(),o=ax(),a=px(),s=yx();return o_}var s_,d_={};function c_(){if(s_)return d_;s_=1,d_.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=e$();return d_}var u_,l_={};function p_(){if(u_)return l_;u_=1,l_.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=W$(),t=Hw(),n=K$(),r=hI(),i=$I(),o=xI(),a=TI(),s=NI(),d=VI(),c=px();return l_}var m_,f_={};function h_(){if(m_)return f_;m_=1,f_.isAfter=function(t,n){return+(0,e.toDate)(t)>+(0,e.toDate)(n)};var e=e$();return f_}var v_,g_={};function y_(){if(v_)return g_;v_=1,g_.isBefore=function(t,n){return+(0,e.toDate)(t)<+(0,e.toDate)(n)};var e=e$();return g_}var b_,w_={};function $_(){if(b_)return w_;b_=1,w_.isEqual=function(t,n){return+(0,e.toDate)(t)==+(0,e.toDate)(n)};var e=e$();return w_}var k_,I_={};function x_(){return k_||(k_=1,I_.isExists=function(e,t,n){const r=new Date(e,t,n);return r.getFullYear()===e&&r.getMonth()===t&&r.getDate()===n}),I_}var E_,A_={};function T_(){if(E_)return A_;E_=1,A_.isFirstDayOfMonth=function(t,n){return 1===(0,e.toDate)(t,n?.in).getDate()};var e=e$();return A_}var O_,__={};function D_(){if(O_)return __;O_=1,__.isFriday=function(t,n){return 5===(0,e.toDate)(t,n?.in).getDay()};var e=e$();return __}var S_,M_={};function P_(){if(S_)return M_;S_=1,M_.isFuture=function(t){return+(0,e.toDate)(t)>Date.now()};var e=e$();return M_}var j_,C_,N_={},R_={},U_={},L_={};function q_(){if(j_)return L_;j_=1,L_.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=Kw();return L_}function G_(){if(C_)return U_;C_=1,U_.ValueSetter=U_.Setter=U_.DateTimezoneSetter=void 0;var e=Kw(),t=q_();let n=class{subPriority=0;validate(e,t){return!0}};return U_.Setter=n,U_.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)}},U_.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))}},U_}var z_,F_,B_={},W_={},Y_={};function Z_(){if(z_)return Y_;z_=1,Y_.Parser=void 0;var e=G_();return Y_.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}},Y_}function V_(){if(F_)return W_;F_=1,W_.EraParser=void 0;var e=Z_();return W_.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"]},W_}var H_,K_,J_,Q_={},X_={},eD={};function tD(){return H_||(H_=1,eD.timezonePatterns=eD.numericPatterns=void 0,eD.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}/},eD.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/}),eD}function nD(){if(K_)return X_;K_=1,X_.dayPeriodEnumToHours=function(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}},X_.isLeapYearIndex=function(e){return e%400==0||e%4==0&&e%100!=0},X_.mapValue=function(e,t){return e?{value:t(e.value),rest:e.rest}:e},X_.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},X_.parseAnyDigitsSigned=function(e){return n(t.numericPatterns.anyDigitsSigned,e)},X_.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)}},X_.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)}},X_.parseNumericPattern=n,X_.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=Hw(),t=tD();function n(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}return X_}function rD(){if(J_)return Q_;J_=1,Q_.YearParser=void 0;var e=Z_(),t=nD();return Q_.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}},Q_}var iD,oD={};function aD(){if(iD)return oD;iD=1,oD.LocalWeekYearParser=void 0;var e=NA(),t=C$(),n=Z_(),r=nD();return oD.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"]},oD}var sD,dD={};function cD(){if(sD)return dD;sD=1,dD.ISOWeekYearParser=void 0;var e=N$(),t=Kw(),n=Z_(),r=nD();return dD.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"]},dD}var uD,lD={};function pD(){if(uD)return lD;uD=1,lD.ExtendedYearParser=void 0;var e=Z_(),t=nD();return lD.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"]},lD}var mD,fD={};function hD(){if(mD)return fD;mD=1,fD.QuarterParser=void 0;var e=Z_(),t=nD();return fD.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"]},fD}var vD,gD={};function yD(){if(vD)return gD;vD=1,gD.StandAloneQuarterParser=void 0;var e=Z_(),t=nD();return gD.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"]},gD}var bD,wD={};function $D(){if(bD)return wD;bD=1,wD.MonthParser=void 0;var e=tD(),t=Z_(),n=nD();return wD.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}},wD}var kD,ID={};function xD(){if(kD)return ID;kD=1,ID.StandAloneMonthParser=void 0;var e=tD(),t=Z_(),n=nD();return ID.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"]},ID}var ED,AD,TD={},OD={};function _D(){if(ED)return OD;ED=1,OD.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=UA(),t=e$();return OD}function DD(){if(AD)return TD;AD=1,TD.LocalWeekParser=void 0;var e=_D(),t=C$(),n=tD(),r=Z_(),i=nD();return TD.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"]},TD}var SD,MD,PD={},jD={};function CD(){if(SD)return jD;SD=1,jD.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=_A(),t=e$();return jD}function ND(){if(MD)return PD;MD=1,PD.ISOWeekParser=void 0;var e=CD(),t=N$(),n=tD(),r=Z_(),i=nD();return PD.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"]},PD}var RD,UD={};function LD(){if(RD)return UD;RD=1,UD.DateParser=void 0;var e=tD(),t=Z_(),n=nD();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 UD.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"]},UD}var qD,GD={};function zD(){if(qD)return GD;qD=1,GD.DayOfYearParser=void 0;var e=tD(),t=Z_(),n=nD();return GD.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"]},GD}var FD,BD,WD={},YD={};function ZD(){if(FD)return YD;FD=1,YD.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=j$(),t=t$(),n=e$();return YD}function VD(){if(BD)return WD;BD=1,WD.DayParser=void 0;var e=ZD(),t=Z_();return WD.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"]},WD}var HD,KD={};function JD(){if(HD)return KD;HD=1,KD.LocalDayParser=void 0;var e=ZD(),t=Z_(),n=nD();return KD.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"]},KD}var QD,XD={};function eS(){if(QD)return XD;QD=1,XD.StandAloneLocalDayParser=void 0;var e=ZD(),t=Z_(),n=nD();return XD.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"]},XD}var tS,nS,rS={},iS={};function oS(){if(tS)return iS;tS=1,iS.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=t$(),t=cO(),n=e$();return iS}function aS(){if(nS)return rS;nS=1,rS.ISODayParser=void 0;var e=oS(),t=Z_(),n=nD();return rS.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"]},rS}var sS,dS={};function cS(){if(sS)return dS;sS=1,dS.AMPMParser=void 0;var e=Z_(),t=nD();return dS.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"]},dS}var uS,lS={};function pS(){if(uS)return lS;uS=1,lS.AMPMMidnightParser=void 0;var e=Z_(),t=nD();return lS.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"]},lS}var mS,fS={};function hS(){if(mS)return fS;mS=1,fS.DayPeriodParser=void 0;var e=Z_(),t=nD();return fS.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"]},fS}var vS,gS={};function yS(){if(vS)return gS;vS=1,gS.Hour1to12Parser=void 0;var e=tD(),t=Z_(),n=nD();return gS.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"]},gS}var bS,wS={};function $S(){if(bS)return wS;bS=1,wS.Hour0to23Parser=void 0;var e=tD(),t=Z_(),n=nD();return wS.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"]},wS}var kS,IS={};function xS(){if(kS)return IS;kS=1,IS.Hour0To11Parser=void 0;var e=tD(),t=Z_(),n=nD();return IS.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"]},IS}var ES,AS={};function TS(){if(ES)return AS;ES=1,AS.Hour1To24Parser=void 0;var e=tD(),t=Z_(),n=nD();return AS.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"]},AS}var OS,_S={};function DS(){if(OS)return _S;OS=1,_S.MinuteParser=void 0;var e=tD(),t=Z_(),n=nD();return _S.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"]},_S}var SS,MS={};function PS(){if(SS)return MS;SS=1,MS.SecondParser=void 0;var e=tD(),t=Z_(),n=nD();return MS.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"]},MS}var jS,CS={};function NS(){if(jS)return CS;jS=1,CS.FractionOfSecondParser=void 0;var e=Z_(),t=nD();return CS.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"]},CS}var RS,US={};function LS(){if(RS)return US;RS=1,US.ISOTimezoneWithZParser=void 0;var e=Kw(),t=z$(),n=tD(),r=Z_(),i=nD();return US.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"]},US}var qS,GS={};function zS(){if(qS)return GS;qS=1,GS.ISOTimezoneParser=void 0;var e=Kw(),t=z$(),n=tD(),r=Z_(),i=nD();return GS.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"]},GS}var FS,BS={};function WS(){if(FS)return BS;FS=1,BS.TimestampSecondsParser=void 0;var e=Kw(),t=Z_(),n=nD();return BS.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="*"},BS}var YS,ZS,VS,HS,KS={};function JS(){if(YS)return KS;YS=1,KS.TimestampMillisecondsParser=void 0;var e=Kw(),t=Z_(),n=nD();return KS.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="*"},KS}function QS(){if(ZS)return B_;ZS=1,B_.parsers=void 0;var e=V_(),t=rD(),n=aD(),r=cD(),i=pD(),o=hD(),a=yD(),s=$D(),d=xD(),c=DD(),u=ND(),l=LD(),p=zD(),m=VD(),f=JD(),h=eS(),v=aS(),g=cS(),y=pS(),b=hS(),w=yS(),$=$S(),k=xS(),I=TS(),x=DS(),E=PS(),A=NS(),T=LS(),O=zS(),_=WS(),D=JS();return B_.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},B_}function XS(){return VS||(VS=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=kA(),n=HA(),r=XA(),i=Kw(),o=rO(),a=e$(),s=G_(),d=QS();const c=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,u=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,l=/^'([^]*?)'?$/,p=/''/g,m=/\S/,f=/[a-zA-Z]/}(R_)),R_}function eM(){if(HS)return N_;HS=1,N_.isMatch=function(n,r,i){return(0,e.isValid)((0,t.parse)(n,r,new Date,i))};var e=oI(),t=XS();return N_}var tM,nM={};function rM(){if(tM)return nM;tM=1,nM.isMonday=function(t,n){return 1===(0,e.toDate)(t,n?.in).getDay()};var e=e$();return nM}var iM,oM={};function aM(){if(iM)return oM;iM=1,oM.isPast=function(t){return+(0,e.toDate)(t)<Date.now()};var e=e$();return oM}var sM,dM,cM={},uM={};function lM(){if(sM)return uM;sM=1,uM.startOfHour=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setMinutes(0,0,0),r};var e=e$();return uM}function pM(){if(dM)return cM;dM=1,cM.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=W$(),t=lM();return cM}var mM,fM,hM={},vM={};function gM(){if(mM)return vM;mM=1,vM.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=W$(),t=C$();return vM}function yM(){if(fM)return hM;fM=1,hM.isSameISOWeek=function(t,n,r){return(0,e.isSameWeek)(t,n,{...r,weekStartsOn:1})};var e=gM();return hM}var bM,wM={};function $M(){if(bM)return wM;bM=1,wM.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=tk(),t=W$();return wM}var kM,IM,xM={},EM={};function AM(){if(kM)return EM;kM=1,EM.startOfMinute=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setSeconds(0,0),r};var e=e$();return EM}function TM(){if(IM)return xM;IM=1,xM.isSameMinute=function(t,n){return+(0,e.startOfMinute)(t)==+(0,e.startOfMinute)(n)};var e=AM();return xM}var OM,_M={};function DM(){if(OM)return _M;OM=1,_M.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=W$();return _M}var SM,MM={};function PM(){if(SM)return MM;SM=1,MM.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=W$(),t=Ux();return MM}var jM,CM,NM={},RM={};function UM(){if(jM)return RM;jM=1,RM.startOfSecond=function(t,n){const r=(0,e.toDate)(t,n?.in);return r.setMilliseconds(0),r};var e=e$();return RM}function LM(){if(CM)return NM;CM=1,NM.isSameSecond=function(t,n){return+(0,e.startOfSecond)(t)==+(0,e.startOfSecond)(n)};var e=UM();return NM}var qM,GM={};function zM(){if(qM)return GM;qM=1,GM.isSameYear=function(t,n,r){const[i,o]=(0,e.normalizeDates)(r?.in,t,n);return i.getFullYear()===o.getFullYear()};var e=W$();return GM}var FM,BM={};function WM(){if(FM)return BM;FM=1,BM.isThisHour=function(r,i){return(0,t.isSameHour)((0,n.toDate)(r,i?.in),(0,e.constructNow)(i?.in||r))};var e=Wk(),t=pM(),n=e$();return BM}var YM,ZM={};function VM(){if(YM)return ZM;YM=1,ZM.isThisISOWeek=function(r,i){return(0,n.isSameISOWeek)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r))};var e=Kw(),t=Wk(),n=yM();return ZM}var HM,KM={};function JM(){if(HM)return KM;HM=1,KM.isThisMinute=function(n){return(0,t.isSameMinute)(n,(0,e.constructNow)(n))};var e=Wk(),t=TM();return KM}var QM,XM={};function eP(){if(QM)return XM;QM=1,XM.isThisMonth=function(r,i){return(0,n.isSameMonth)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r))};var e=Kw(),t=Wk(),n=DM();return XM}var tP,nP={};function rP(){if(tP)return nP;tP=1,nP.isThisQuarter=function(r,i){return(0,n.isSameQuarter)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r))};var e=Kw(),t=Wk(),n=PM();return nP}var iP,oP={};function aP(){if(iP)return oP;iP=1,oP.isThisSecond=function(n){return(0,t.isSameSecond)(n,(0,e.constructNow)(n))};var e=Wk(),t=LM();return oP}var sP,dP={};function cP(){if(sP)return dP;sP=1,dP.isThisWeek=function(r,i){return(0,n.isSameWeek)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r),i)};var e=Kw(),t=Wk(),n=gM();return dP}var uP,lP={};function pP(){if(uP)return lP;uP=1,lP.isThisYear=function(r,i){return(0,n.isSameYear)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r))};var e=Kw(),t=Wk(),n=zM();return lP}var mP,fP={};function hP(){if(mP)return fP;mP=1,fP.isThursday=function(t,n){return 4===(0,e.toDate)(t,n?.in).getDay()};var e=e$();return fP}var vP,gP={};function yP(){if(vP)return gP;vP=1,gP.isToday=function(r,i){return(0,n.isSameDay)((0,e.constructFrom)(i?.in||r,r),(0,t.constructNow)(i?.in||r))};var e=Kw(),t=Wk(),n=Qk();return gP}var bP,wP={};function $P(){if(bP)return wP;bP=1,wP.isTomorrow=function(r,i){return(0,n.isSameDay)(r,(0,e.addDays)((0,t.constructNow)(i?.in||r),1),i)};var e=t$(),t=Wk(),n=Qk();return wP}var kP,IP={};function xP(){if(kP)return IP;kP=1,IP.isTuesday=function(t,n){return 2===(0,e.toDate)(t,n?.in).getDay()};var e=e$();return IP}var EP,AP={};function TP(){if(EP)return AP;EP=1,AP.isWednesday=function(t,n){return 3===(0,e.toDate)(t,n?.in).getDay()};var e=e$();return AP}var OP,_P={};function DP(){if(OP)return _P;OP=1,_P.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=e$();return _P}var SP,MP,PP={},jP={};function CP(){if(SP)return jP;SP=1,jP.subDays=function(t,n,r){return(0,e.addDays)(t,-n,r)};var e=t$();return jP}function NP(){if(MP)return PP;MP=1,PP.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=Kw(),t=Wk(),n=Qk(),r=CP();return PP}var RP,UP={};function LP(){if(RP)return UP;RP=1,UP.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=e$();return UP}var qP,GP,zP={},FP={};function BP(){if(qP)return FP;qP=1,FP.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=j$(),t=e$();return FP}function WP(){if(GP)return zP;GP=1,zP.lastDayOfISOWeek=function(t,n){return(0,e.lastDayOfWeek)(t,{...n,weekStartsOn:1})};var e=BP();return zP}var YP,ZP={};function VP(){if(YP)return ZP;YP=1,ZP.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=Kw(),t=R$(),n=N$();return ZP}var HP,KP={};function JP(){if(HP)return KP;HP=1,KP.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=e$();return KP}var QP,XP={};function ej(){if(QP)return XP;QP=1,XP.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=e$();return XP}var tj,nj={};function rj(){return tj||(tj=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=WA(),n=oI(),r=e$();const i=/(\w)\1*|''|'(''|[^'])+('|$)|./g,o=/^'([^]*?)'?$/,a=/''/g,s=/[a-zA-Z]/}(nj)),nj}var ij,oj={};function aj(){if(ij)return oj;ij=1,oj.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=Hw();return oj}var sj,dj={};function cj(){if(sj)return dj;sj=1,dj.millisecondsToHours=function(t){return Math.trunc(t/e.millisecondsInHour)};var e=Hw();return dj}var uj,lj={};function pj(){if(uj)return lj;uj=1,lj.millisecondsToMinutes=function(t){return Math.trunc(t/e.millisecondsInMinute)};var e=Hw();return lj}var mj,fj={};function hj(){if(mj)return fj;mj=1,fj.millisecondsToSeconds=function(t){return Math.trunc(t/e.millisecondsInSecond)};var e=Hw();return fj}var vj,gj={};function yj(){if(vj)return gj;vj=1,gj.minutesToHours=function(t){return Math.trunc(t/e.minutesInHour)};var e=Hw();return gj}var bj,wj={};function $j(){if(bj)return wj;bj=1,wj.minutesToMilliseconds=function(t){return Math.trunc(t*e.millisecondsInMinute)};var e=Hw();return wj}var kj,Ij={};function xj(){if(kj)return Ij;kj=1,Ij.minutesToSeconds=function(t){return Math.trunc(t*e.secondsInMinute)};var e=Hw();return Ij}var Ej,Aj={};function Tj(){if(Ej)return Aj;Ej=1,Aj.monthsToQuarters=function(t){return Math.trunc(t/e.monthsInQuarter)};var e=Hw();return Aj}var Oj,_j={};function Dj(){if(Oj)return _j;Oj=1,_j.monthsToYears=function(t){return Math.trunc(t/e.monthsInYear)};var e=Hw();return _j}var Sj,Mj={};function Pj(){if(Sj)return Mj;Sj=1,Mj.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=t$(),t=zT();return Mj}var jj,Cj={};function Nj(){if(jj)return Cj;jj=1,Cj.nextFriday=function(t,n){return(0,e.nextDay)(t,5,n)};var e=Pj();return Cj}var Rj,Uj={};function Lj(){if(Rj)return Uj;Rj=1,Uj.nextMonday=function(t,n){return(0,e.nextDay)(t,1,n)};var e=Pj();return Uj}var qj,Gj={};function zj(){if(qj)return Gj;qj=1,Gj.nextSaturday=function(t,n){return(0,e.nextDay)(t,6,n)};var e=Pj();return Gj}var Fj,Bj={};function Wj(){if(Fj)return Bj;Fj=1,Bj.nextSunday=function(t,n){return(0,e.nextDay)(t,0,n)};var e=Pj();return Bj}var Yj,Zj={};function Vj(){if(Yj)return Zj;Yj=1,Zj.nextThursday=function(t,n){return(0,e.nextDay)(t,4,n)};var e=Pj();return Zj}var Hj,Kj={};function Jj(){if(Hj)return Kj;Hj=1,Kj.nextTuesday=function(t,n){return(0,e.nextDay)(t,2,n)};var e=Pj();return Kj}var Qj,Xj={};function eC(){if(Qj)return Xj;Qj=1,Xj.nextWednesday=function(t,n){return(0,e.nextDay)(t,3,n)};var e=Pj();return Xj}var tC,nC={};function rC(){if(tC)return nC;tC=1,nC.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=Hw(),t=Kw(),n=e$();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 nC}var iC,oC={};function aC(){if(iC)return oC;iC=1,oC.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=e$();return oC}var sC,dC={};function cC(){if(sC)return dC;sC=1,dC.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=zT(),t=CP();return dC}var uC,lC={};function pC(){if(uC)return lC;uC=1,lC.previousFriday=function(t,n){return(0,e.previousDay)(t,5,n)};var e=cC();return lC}var mC,fC={};function hC(){if(mC)return fC;mC=1,fC.previousMonday=function(t,n){return(0,e.previousDay)(t,1,n)};var e=cC();return fC}var vC,gC={};function yC(){if(vC)return gC;vC=1,gC.previousSaturday=function(t,n){return(0,e.previousDay)(t,6,n)};var e=cC();return gC}var bC,wC={};function $C(){if(bC)return wC;bC=1,wC.previousSunday=function(t,n){return(0,e.previousDay)(t,0,n)};var e=cC();return wC}var kC,IC={};function xC(){if(kC)return IC;kC=1,IC.previousThursday=function(t,n){return(0,e.previousDay)(t,4,n)};var e=cC();return IC}var EC,AC={};function TC(){if(EC)return AC;EC=1,AC.previousTuesday=function(t,n){return(0,e.previousDay)(t,2,n)};var e=cC();return AC}var OC,_C={};function DC(){if(OC)return _C;OC=1,_C.previousWednesday=function(t,n){return(0,e.previousDay)(t,3,n)};var e=cC();return _C}var SC,MC={};function PC(){if(SC)return MC;SC=1,MC.quartersToMonths=function(t){return Math.trunc(t*e.monthsInQuarter)};var e=Hw();return MC}var jC,CC={};function NC(){if(jC)return CC;jC=1,CC.quartersToYears=function(t){return Math.trunc(t/e.quartersInYear)};var e=Hw();return CC}var RC,UC={};function LC(){if(RC)return UC;RC=1,UC.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=CI(),t=Kw(),n=e$();return UC}var qC,GC={};function zC(){if(qC)return GC;qC=1,GC.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=CI(),t=Kw(),n=e$();return GC}var FC,BC={};function WC(){if(FC)return BC;FC=1,BC.secondsToHours=function(t){return Math.trunc(t/e.secondsInHour)};var e=Hw();return BC}var YC,ZC={};function VC(){if(YC)return ZC;YC=1,ZC.secondsToMilliseconds=function(t){return t*e.millisecondsInSecond};var e=Hw();return ZC}var HC,KC={};function JC(){if(HC)return KC;HC=1,KC.secondsToMinutes=function(t){return Math.trunc(t/e.secondsInMinute)};var e=Hw();return KC}var QC,XC,eN={},tN={};function nN(){if(QC)return tN;QC=1,tN.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=Kw(),t=WT(),n=e$();return tN}function rN(){if(XC)return eN;XC=1,eN.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=Kw(),t=nN(),n=e$();return eN}var iN,oN={};function aN(){if(iN)return oN;iN=1,oN.setDate=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setDate(n),i};var e=e$();return oN}var sN,dN={};function cN(){if(sN)return dN;sN=1,dN.setDayOfYear=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setMonth(0),i.setDate(n),i};var e=e$();return dN}var uN,lN={};function pN(){if(uN)return lN;uN=1,lN.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=j$();return lN}var mN,fN={};function hN(){if(mN)return fN;mN=1,fN.setHours=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setHours(n),i};var e=e$();return fN}var vN,gN={};function yN(){if(vN)return gN;vN=1,gN.setMilliseconds=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setMilliseconds(n),i};var e=e$();return gN}var bN,wN={};function $N(){if(bN)return wN;bN=1,wN.setMinutes=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setMinutes(n),i};var e=e$();return wN}var kN,IN={};function xN(){if(kN)return IN;kN=1,IN.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=nN(),t=e$();return IN}var EN,AN={};function TN(){if(EN)return AN;EN=1,AN.setSeconds=function(t,n,r){const i=(0,e.toDate)(t,r?.in);return i.setSeconds(n),i};var e=e$();return AN}var ON,_N={};function DN(){if(ON)return _N;ON=1,_N.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=j$(),t=Kw(),n=K$(),r=RA(),i=e$();return _N}var SN,MN={};function PN(){if(SN)return MN;SN=1,MN.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=Kw(),t=e$();return MN}var jN,CN={};function NN(){if(jN)return CN;jN=1,CN.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=e$();return CN}var RN,UN={};function LN(){if(RN)return UN;RN=1,UN.startOfToday=function(t){return(0,e.startOfDay)(Date.now(),t)};var e=H$();return UN}var qN,GN={};function zN(){if(qN)return GN;qN=1,GN.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=Kw(),t=Wk();return GN}var FN,BN={};function WN(){if(FN)return BN;FN=1,BN.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=Wk();return BN}var YN,ZN,VN={},HN={};function KN(){if(YN)return HN;YN=1,HN.subMonths=function(t,n,r){return(0,e.addMonths)(t,-n,r)};var e=o$();return HN}function JN(){if(ZN)return VN;ZN=1,VN.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=Kw(),t=CP(),n=KN();return VN}var QN,XN={};function eR(){if(QN)return XN;QN=1,XN.subBusinessDays=function(t,n,r){return(0,e.addBusinessDays)(t,-n,r)};var e=y$();return XN}var tR,nR={};function rR(){if(tR)return nR;tR=1,nR.subHours=function(t,n,r){return(0,e.addHours)(t,-n,r)};var e=x$();return nR}var iR,oR={};function aR(){if(iR)return oR;iR=1,oR.subMilliseconds=function(t,n,r){return(0,e.addMilliseconds)(t,-n,r)};var e=I$();return oR}var sR,dR={};function cR(){if(sR)return dR;sR=1,dR.subMinutes=function(t,n,r){return(0,e.addMinutes)(t,-n,r)};var e=ak();return dR}var uR,lR={};function pR(){if(uR)return lR;uR=1,lR.subQuarters=function(t,n,r){return(0,e.addQuarters)(t,-n,r)};var e=ck();return lR}var mR,fR={};function hR(){if(mR)return fR;mR=1,fR.subSeconds=function(t,n,r){return(0,e.addSeconds)(t,-n,r)};var e=pk();return fR}var vR,gR={};function yR(){if(vR)return gR;vR=1,gR.subWeeks=function(t,n,r){return(0,e.addWeeks)(t,-n,r)};var e=hk();return gR}var bR,wR={};function $R(){if(bR)return wR;bR=1,wR.subYears=function(t,n,r){return(0,e.addYears)(t,-n,r)};var e=yk();return wR}var kR,IR={};function xR(){if(kR)return IR;kR=1,IR.weeksToDays=function(t){return Math.trunc(t*e.daysInWeek)};var e=Hw();return IR}var ER,AR={};function TR(){if(ER)return AR;ER=1,AR.yearsToDays=function(t){return Math.trunc(t*e.daysInYear)};var e=Hw();return AR}var OR,_R={};function DR(){if(OR)return _R;OR=1,_R.yearsToMonths=function(t){return Math.trunc(t*e.monthsInYear)};var e=Hw();return _R}var SR,MR,PR={};function jR(){if(SR)return PR;SR=1,PR.yearsToQuarters=function(t){return Math.trunc(t*e.quartersInYear)};var e=Hw();return PR}function CR(){return MR||(MR=1,function(e){var t=a$();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=y$();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=t$();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=x$();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=rk();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=I$();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=ak();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=o$();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=ck();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=pk();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=hk();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=yk();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=$k();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=Dk();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=Pk();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=Nk();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=Lk();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=zk();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=Kw();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=Wk();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 $=Vk();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=aI();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=K$();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=cI();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=pI();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=hI();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=$I();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=xI();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 _=TI();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=DI();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=NI();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=zI();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=WI();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=VI();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=ax();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=cx();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=px();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=hx();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=yx();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=xx();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=Tx();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=Dx();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=Px();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=Lx();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=zx();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 Y=Wx();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 Z=Jx();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 V=aE();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=cE();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=XI();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=pE();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=hE();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=$E();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=xE();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=TE();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=ix();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=DE();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=PE();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=NE();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=LE();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=wE();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=tE();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=zE();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=eT();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=rT();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=aT();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=cT();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=pT();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=hT();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=yT();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=$T();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=xT();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=TT();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=DT();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=PT();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=NT();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=LT();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=zT();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=AA();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=WT();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=JT();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=eO();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=rO();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=aO();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=cO();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=_A();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=R$();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=pO();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=hO();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=yO();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=$O();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=xO();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=wI();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=TO();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=DO();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=PO();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=UA();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=NO();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=NA();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 Ye=zO();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 Ze=WO();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 Ve=VO();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=JO();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=e_();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=r_();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=a_();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=c_();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=p_();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=h_();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=y_();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=iI();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=$_();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=x_();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=T_();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=D_();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=P_();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=ox();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=KT();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=eM();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=rM();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=aM();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=Qk();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=pM();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=yM();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=$M();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=TM();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=DM();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=PM();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=LM();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=gM();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=zM();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=u$();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=m$();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=WM();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=VM();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=JM();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=eP();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=rP();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=aP();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=cP();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=pP();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=hP();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=yP();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=$P();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=xP();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=oI();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=TP();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=g$();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=DP();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=NP();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=LP();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=WP();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=VP();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 Yt=GO();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 Zt=JP();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 Vt=BP();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=ej();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=rj();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=Ek();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=aj();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=cj();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=pj();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=hj();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=_k();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=yj();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=$j();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=xj();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=Tj();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=Dj();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=Pj();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=Nj();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=Lj();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=zj();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=Wj();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=Vj();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=Jj();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=eC();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=XS();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=rC();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=aC();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=cC();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=pC();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=hC();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=yC();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=$C();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=xC();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=TC();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=DC();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=PC();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=NC();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=LC();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=zC();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=WC();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=VC();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=JC();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=rN();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=aN();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=ZD();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=cN();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=pN();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=hN();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=oS();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=CD();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=nk();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=yN();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=$N();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 Yn=nN();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 Zn=xN();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 Vn=TN();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=_D();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=DN();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=PN();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=H$();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=NN();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=lM();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=N$();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=tk();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=AM();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=Kx();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=Ux();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=UM();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=LN();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=zN();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=C$();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=RA();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=oE();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=WN();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=JN();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=eR();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=CP();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=rR();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=GI();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=aR();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=cR();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=KN();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=pR();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=hR();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=yR();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=$R();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=e$();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=q_();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=xR();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=TR();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=DR();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=jR();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]}}))}))}(Bw)),Bw}var NR=CR();function RR(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 Fw.TZDate(n,r-1,i,o,a,s,t)}function UR(e,t){const n=NR.parse(e,"yyyy-MM-dd'T'HH:mm:ss",new Date);return NR.format(n,t)}function LR(e,t){return RR(e,t)<new Fw.TZDate(new Date,t)}function qR(e,t){return RR(e,t)>new Fw.TZDate(new Date,t)}function GR(e){return null==e||-1===e?Number.POSITIVE_INFINITY:Math.max(0,e)}function zR(e){return Math.min(GR(e.admission.available),GR(e.admission.limit),GR(e.section?.available),GR(e.section?.limit))}function FR(e){return zR(e)<=0}function BR(e){return e?.trim().toUpperCase()??""}function WR(e,t){return`${e}::${t||"none"}`}function YR(e){return e?"total"in e&&"number"==typeof e.total?e.total:(e.base??0)+(e.booking??0):0}function ZR(e){return e.location?.timeZone??"UTC"}function VR(e){return new Map(e.sections.map((e=>[e.id,e])))}function HR(e,t){return!e.sectionId||t.has(e.sectionId)}function KR(e){const t=VR(e),n=ZR(e);return e.admissions.some((e=>function(e,t,n){return!!HR(e,n)&&!!function(e,t){return!qR(e.saleStartsAt,t)&&!LR(e.saleEndsAt,t)}(e,t)&&function(e,t){return zR({admission:e,section:t})>0}(e,function(e,t){if(e.sectionId)return t.get(e.sectionId)}(e,n))}(e,n,t)))}function JR(e,t){return qR(e.saleStartsAt,t)?{text:`On sale ${UR(e.saleStartsAt,"EEE, MMM d · h:mm a")}`,tone:"muted"}:null}function QR(e){const t=function(e){return LR(e.entryEndsAt,ZR(e))}(e),n=e.url||void 0,r=function(e){return!KR(e)&&"DOOR"===function(e){const t=VR(e),n=e.admissions.filter((e=>HR(e,t)));if(0!==n.length)return KR(e)?"ONLINE":function(e,t){const n=e.filter((e=>LR(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,ZR(e))}(e)}(e),i=!t&&Boolean(n),o=!t&&!i&&function(e){const t=VR(e);return e.admissions.some((e=>HR(e,t)))}(e);return{externalTicketUrl:n,isDoorOnly:r,isEnded:t,isUnavailableForSale:!r&&!KR(e)&&o,showExternalTicketing:i,showTicketing:o,ticketHeading:r?"Tickets at the Door":"Get Tickets"}}function XR(e){const t=WR(e.admission.id,e.section.id);return aU({admission:e.admission,initialPrice:e.initialAdmissionPrices?.[t],previewItem:e.previewItems.get(t),quoteItem:e.quoteItems.get(t)}).base}function eU(e){return null==e||-1===e?Number.POSITIVE_INFINITY:Math.max(0,e)}function tU(e,t,n){const r=t.filter((t=>t.sectionId===e.id)).sort(((e,t)=>e.order-t.order));if("STACKED"!==e.visibility||r.length<=1)return r;const i=n.mode??"default",o=r.filter((t=>function(e){return"door"===e.mode||!e.event||!oU({admission:e.admission,event:e.event,section:e.section}).disabled}({admission:t,event:n.event,mode:i,section:e}))),a=o.length>0?o:r,[s,d]=[...a].sort(function(e,t){const n=sU(e.previewQuote??null),r=sU(e.quote??null);return(i,o)=>{const a=XR({admission:i,initialAdmissionPrices:e.initialAdmissionPrices,previewItems:n,quoteItems:r,section:t})-XR({admission:o,initialAdmissionPrices:e.initialAdmissionPrices,previewItems:n,quoteItems:r,section:t});if(0!==a)return a;const s=i.order-o.order;return 0!==s?s:i.id.localeCompare(o.id)}}(n,e));return s?d&&function(e){const t=eU(e.available);if(!Number.isFinite(t))return!1;const n=eU(e.limit);return Number.isFinite(n)?n>t:t<10}(s)?[s,d]:[s]:[]}function nU(e,t,n){return e.map((e=>({type:"section",section:e,admissions:tU(e,t,n)}))).filter((e=>e.admissions.length>0))}function rU(e){return"section"===e.type?e.section.order:e.admission.order}function iU(e,t,n){return[!t,!n,(e.available??0)>0,(e.available??0)<20].every(Boolean)}function oU(e){const t=ZR(e.event),n=qR(e.admission.saleStartsAt,t),r=LR(e.admission.saleEndsAt,t),i=r&&"SOLD_OUT"===e.admission.saleEndsBehavior,o=Boolean(e.sectionSoldOut)||i||FR({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:JR(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(zR({admission:d,section:c}),10)),postSale:r,showScarcity:iU(e.admission,o,a),soldOut:o,statusLabel:s?.text??null,statusTone:s?.tone??null};var d,c}function aU(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}}function sU(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 dU(e){const t=new Set(e.sections.map((e=>e.id))),n=ZR(e);return e.admissions.filter((e=>!(e.sectionId&&!t.has(e.sectionId)||qR(e.saleStartsAt,n)||LR(e.saleEndsAt,n)))).map((e=>({admissionId:e.id??"",quantity:1,sectionId:e.sectionId??void 0})))}const cU=e=>e.price?.total??0;function uU(e,t){return e instanceof Error?e.message:t}function lU(e){try{return JSON.parse(e)}catch{return null}}function pU(e){return[e.location?.venue?.name,e.location?.name].find(Boolean)}function mU(e){if(!e)return"external site";try{return new URL(e).hostname.replace(/^www\./,"")}catch{return"external site"}}function fU(e){return Boolean(e?.items?.length)}function hU(e){return{product_id:e.admissionId,sku:e.admissionId,quantity:e.quantity,admission_id:e.admissionId,section_id:e.sectionId}}function vU({event:e,admission:t,section:n}){return{name:t?.name,category:e?.name,variant:n?.name}}function gU(e){return{price:YR(e.price)/100,price_base:e.price?.base,price_booking_fee:e.price?.booking}}const yU=()=>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"})),bU=()=>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"})),wU=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=()=>{BR(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 Fy?Fy[e]:e}(e.environment);return Q(new zy(by,{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 BR(this.couponCode)||("undefined"==typeof window?"":BR((e=window.location.search,new URLSearchParams(e).get("discount")??"")));var e}parsedInitialPreviewQuote(){return this.initialPreviewQuote?"string"!=typeof this.initialPreviewQuote?this.initialPreviewQuote:lU(this.initialPreviewQuote):null}parsedInitialAdmissionPrices(){if(this.initialAdmissionPrices)return"string"!=typeof this.initialAdmissionPrices?this.initialAdmissionPrices:lU(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=>YR(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:YR(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,couponCode:this.appliedCouponCode||void 0,passcode:this.activePasscode||void 0});this.event=e.event,this.pruneSelectedItems(e.event),this.trackLoadedEvent(e.event),await this.updatePreviewQuote()}catch(e){this.passcodeDenied=function(e){const t=uU(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=uU(e,"Failed to load event data"),this.errorOccurred.emit({error:this.error})}finally{this.loading=!1}}pruneSelectedItems(e){const t=new Set(e.admissions.map((e=>WR(e.id,e.sectionId??null)))),n=Array.from(this.selectedItems).filter((([e])=>t.has(e)));n.length!==this.selectedItems.size&&(this.selectedItems=new Map(n),this.quote=null,this.quoteError=null)}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=uw(e.client,n,e.destinations),i=mw(),o=fw();n&&console.log("[Analytics] Initialized:",{sessionId:i,anonymousId:o});let a=(e,n,r)=>{let a=nb();return{type:e,name:n,properties:{...tb({anonymousId:o,context:a,sessionId:i}),...r},context:a,timestamp:Date.now(),messageId:gw(),sessionId:i,anonymousId:o,userId:t}},s=async(e,t)=>{try{await 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},c=async(e,t={})=>{let n=d(t,"track");n&&await s(a("track",e,t),n)},u=async(e={})=>{let t=d(e,"preload");t&&await s(a("preload","Preload",e),t)},l=async(e,t={})=>{let n=d(t,"page");n&&await s(a("page",e||"Page Viewed",t),n)},p=async(e,t={})=>{let n=d(t,"screen");n&&await s(a("screen",e||"Screen Viewed",t),n)},m=async(e,r={})=>{t=e;let a=r.promoter_id;a&&await s({type:"identify",properties:{},context:nb(),timestamp:Date.now(),messageId:gw(),sessionId:i,anonymousId:o,userId:e,traits:r},a),n&&console.log("[Analytics] User identified:",e)},f=async(e,r={})=>{let a=r.promoter_id;a&&await s({type:"group",properties:{},context:nb(),timestamp:Date.now(),messageId:gw(),sessionId:i,anonymousId:o,userId:t,groupId:e,traits:r},a),n&&console.log("[Analytics] Group called:",{groupId:e,traits:r})};return{preload:(e={})=>{u(e)},preloadAsync:u,track:(e,t={})=>{c(e,t)},trackAsync:c,page:(e,t={})=>{l(e,t)},pageAsync:l,screen:(e,t={})=>{p(e,t)},screenAsync:p,identify:(e,t={})=>{m(e,t)},identifyAsync:m,alias:(e,t)=>{n&&console.log("[Analytics] Alias called:",{userId:e,previousId:t})},group:(e,t={})=>{f(e,t)},groupAsync:f,reset:()=>{let e=function(e){let t=ms(),n=fs();return e.setCookie(ls,t),e.setItem(ps,n),{sessionId:t,anonymousId:n}}(pw);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:pU(e),venue_city:e.location?.city})}async updateQuantity(e,t,n){const r=WR(e,t);await this.setQuantity(e,t,(this.selectedItems.get(r)||0)+n)}async setQuantity(e,t,n){const r=WR(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:YR(e.admission.price)/100,quantity:Math.abs(e.delta),admission_id:e.admission.id,section_id:(t=e.sectionId,t||void 0),section_name:e.section?.name};var t}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:cU(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===dU(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:dU(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=BR(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="",await this.loadEventData(),this.previewRequestId++,this.previewLoading=!1,this.previewQuote=null,this.trackCouponRemoved(e,null)}async applyCartCoupon(e){this.requestId++;const t=this.requestId,n=this.appliedCouponCode;try{if(this.quoteLoading=!0,this.appliedCouponCode=e,await this.loadEventData(),t!==this.requestId)return;if(0===this.selectedItems.size)return void await this.applyPreviewCoupon(e);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(r){t===this.requestId&&(this.appliedCouponCode=n),this.handleCouponError(t),this.trackCouponDenied(e)}finally{t===this.requestId&&(this.quoteLoading=!1)}}async applyPreviewCoupon(e){const t=this.appliedCouponCode;this.appliedCouponCode=e;try{await this.loadEventData()}catch(n){return this.appliedCouponCode=t,this.setCouponError(),void this.trackCouponDenied(e)}const n=this.event;if(!n)return;const r=this.activeInitialPreviewQuote(e);if(r)return this.appliedCouponCode=e,this.previewQuote=r,void this.trackCouponApplied(e,r);if(0===dU(n).length)return this.appliedCouponCode=e,void(this.previewQuote=null);this.previewRequestId++;const i=this.previewRequestId;try{this.previewLoading=!0;const t=await this.fetchPreviewQuote(e);if(i!==this.previewRequestId)return;this.appliedCouponCode=e,this.previewQuote=t.quote,this.trackCouponApplied(e,t.quote)}catch(t){i===this.previewRequestId&&(this.setCouponError(),this.trackCouponDenied(e))}finally{i===this.previewRequestId&&(this.previewLoading=!1)}}async removeCartCoupon(){this.requestId++;const e=this.requestId,t=this.appliedCouponCode;try{if(this.quoteLoading=!0,this.appliedCouponCode="",await this.loadEventData(),0===this.selectedItems.size)return this.couponInput="",this.previewQuote=null,void this.trackCouponRemoved(t,null);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?cU(t)/100:0,value:t?cU(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?cU(t)/100:0,value:t?cU(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;const e=await this.client.order.create({eventId:this.eventId,items:this.getCheckoutItems(this.quote),couponCode:this.appliedCouponCode||void 0,returnUrl:this.returnUrl,channel:yw("elements")});this.trackCheckoutStarted(this.quote,e.order.id),this.handleCheckoutOrder(e.order)}catch(e){this.handleCheckoutError()}}trackCheckoutStarted(e,t){const n=cU(e)/100;this.trackEvent("Checkout Started",{order_id:t,value:n,revenue:n,currency:this.event?.currency,products:this.getCheckoutProducts()})}trackExternalTicketClick(e,t){this.trackEvent("Checkout Started",{ticketing_mode:"external",external_ticket_url:e,external_ticket_domain:mU(e),cta_surface:t})}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||!fU(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{...hU(e),...vU(this.quoteProductContext(e)),...gU(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`${UR(e,"EEE, MMM d · h:mm a")} - ${UR(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=hw[t]??vw,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=WR(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","data-testid":"event-admission-decrement"},"−"),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}`,"data-testid":"event-admission-quantity-input"}),r("button",{type:"button",class:"quantity-btn increase",onClick:()=>this.handleQuantityIncrease(e.id,t),disabled:n||a>=i,"aria-label":"Increase quantity","data-testid":"event-admission-increment"},"+"))}getMaxQuantity(e,t){return this.event?oU({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},yU(),this.formatDateTimeRange(e.entryStartsAt,e.entryEndsAt)):null}renderAdmissionTime(e,t){return e?.entryStartsAt&&e.entryEndsAt?r("div",{class:t},yU(),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"},bU(),t):null}renderEventLocation(e,t){return e.location?r("div",{class:t},bU(),e.location.name):null}renderPriceAndControls(e,t,n,i){const o=WR(e.id,t),a=aU({admission:e,initialPrice:this.activeInitialAdmissionPrices()?.[o],quoteItem:sU(this.quote).get(o),previewItem:sU(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=oU({admission:e,event:t,section:n,sectionSoldOut:i}),s=n?.id||null;return r("section",{class:this.getAdmissionClassName(a,n),key:WR(e.id,s),tabindex:a.disabled?-1:0,"aria-label":this.getAdmissionAriaLabel(e,n,a),"data-testid":"event-admission-card","data-admission-id":e.id,"data-admission-name":e.name,"data-section-id":n?.id??""},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=>GR(e)<=0))||e.admissions.length>0&&e.admissions.every((t=>FR({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)||!fU(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===cU(this.quote)?"Continue":`Pay ${this.getOrderTotalText()}`:"Pay"}getOrderTotalText(){if(!this.quote)return"N/A";const e=cU(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,"data-testid":"event-checkout-cta-desktop"},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=mU(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",onClick:()=>this.trackExternalTicketClick(e.externalTicketUrl,"sticky")},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=QR(e),n=t.isDoorOnly?"door":"default",i=function(e,t,n={}){return[...nU(e,t,n),...t.filter((e=>!e.sectionId)).map((e=>({type:"admission",admission:e})))].sort(((e,t)=>rU(e)-rU(t)))}(e.sections,function(e,t){if("door"!==t)return e.admissions;const n=ZR(e);return e.admissions.filter((e=>"DOOR"===e.saleEndsBehavior&&LR(e.saleEndsAt,n)))}(e,n),{event:e,initialAdmissionPrices:this.activeInitialAdmissionPrices(),mode:n,previewQuote:this.previewQuote,quote:this.quote});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=QR(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=mU(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",onClick:()=>this.trackExternalTicketClick(e.externalTicketUrl,"inline")},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"]}}};wU.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"]) .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{wU as session_services_ticketing}